* feat(kb): automatic KB builder, ingestion & validation tooling (#35) Closes #118, #119, #120, #121, #122. - Ingest committed Danbooru alias/implication snapshots during generation: synonyms reach canonicals (long black stockings -> thighhighs), implications become expand relations. Curated-wins preserved. - Automatic candidate validator (structural rules reused from kb_validation + confidence heuristic, no approval gate; SC0022). - Duplicate/conflict detection tool (scripts/detect_kb_conflicts.py) + reusable detect_conflicts; clean reference KB reports zero. - KB coverage benchmark harness (scripts/coverage_benchmark.py) + JSON summary. - Single fully-automated, CI-runnable build pipeline (scripts/build_knowledge_base.py) that fails fast on rejections/conflicts and never prompts. Docs added. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * test(kb): use pytest.approx for confidence float assertions (SonarCloud reliability) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: kunail0804 <kunail0804@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
40 lines
2.8 KiB
JSON
40 lines
2.8 KiB
JSON
[
|
|
{ "id": "dress", "tags": ["dress"], "category": "clothing" },
|
|
{ "id": "white_dress", "tags": ["white dress"], "category": "clothing" },
|
|
{ "id": "shirt", "tags": ["shirt"], "category": "clothing" },
|
|
{ "id": "t_shirt", "aliases": ["tee shirt", "tshirt"], "tags": ["t-shirt"], "category": "clothing" },
|
|
{ "id": "blouse", "tags": ["blouse"], "category": "clothing" },
|
|
{ "id": "skirt", "tags": ["skirt"], "category": "clothing" },
|
|
{ "id": "pleated_skirt", "tags": ["pleated skirt"], "category": "clothing" },
|
|
{ "id": "pants", "aliases": ["trousers"], "tags": ["pants"], "category": "clothing" },
|
|
{ "id": "jeans", "aliases": ["denim pants"], "tags": ["jeans"], "category": "clothing" },
|
|
{ "id": "shorts", "tags": ["shorts"], "category": "clothing" },
|
|
{ "id": "jacket", "tags": ["jacket"], "category": "clothing" },
|
|
{ "id": "blazer", "tags": ["blazer"], "category": "clothing" },
|
|
{ "id": "coat", "tags": ["coat"], "category": "clothing" },
|
|
{ "id": "hoodie", "aliases": ["hooded sweatshirt"], "tags": ["hoodie"], "category": "clothing" },
|
|
{ "id": "sweater", "aliases": ["jumper"], "tags": ["sweater"], "category": "clothing" },
|
|
{ "id": "school_uniform", "aliases": ["school outfit"], "tags": ["school uniform"], "category": "clothing", "expand": ["blazer", "pleated_skirt"] },
|
|
{ "id": "suit", "aliases": ["business suit"], "tags": ["formal suit"], "category": "clothing" },
|
|
{ "id": "kimono", "tags": ["kimono"], "category": "clothing" },
|
|
{ "id": "swimsuit", "aliases": ["bathing suit"], "tags": ["swimsuit"], "category": "clothing" },
|
|
{ "id": "bikini", "tags": ["bikini"], "category": "clothing" },
|
|
{ "id": "armor", "aliases": ["armour"], "tags": ["armor"], "category": "clothing" },
|
|
{ "id": "cape", "aliases": ["cloak"], "tags": ["cape"], "category": "clothing" },
|
|
{ "id": "boots", "tags": ["boots"], "category": "clothing" },
|
|
{ "id": "shoes", "tags": ["shoes"], "category": "clothing" },
|
|
{ "id": "gloves", "tags": ["gloves"], "category": "clothing" },
|
|
{ "id": "socks", "tags": ["socks"], "category": "clothing" },
|
|
{ "id": "thighhighs", "aliases": ["thigh highs", "stockings"], "tags": ["thighhighs"], "category": "clothing" },
|
|
|
|
{ "id": "hat", "tags": ["hat"], "category": "accessories" },
|
|
{ "id": "glasses", "aliases": ["eyeglasses", "spectacles"], "tags": ["glasses"], "category": "accessories" },
|
|
{ "id": "sunglasses", "tags": ["sunglasses"], "category": "accessories" },
|
|
{ "id": "necklace", "tags": ["necklace"], "category": "accessories" },
|
|
{ "id": "earrings", "tags": ["earrings"], "category": "accessories" },
|
|
{ "id": "ribbon", "tags": ["ribbon"], "category": "accessories" },
|
|
{ "id": "backpack", "tags": ["backpack"], "category": "accessories" },
|
|
{ "id": "watch", "aliases": ["wristwatch"], "tags": ["watch"], "category": "accessories" },
|
|
{ "id": "scarf", "tags": ["scarf"], "category": "accessories" }
|
|
]
|