Concept hierarchy¶
Agent Utilities uses one concept-ID grammar:
Example: AU-KG.ingest.entropy-dedup.
SLUGis the two-letter repository code registered inagent_utilities/governance/slug_registry.yaml.PILLARis one ofORCH,KG,AHE,ECO,OS, orGBOT.domainmust be present in the pillar's closed vocabulary inagent_utilities/governance/domain_vocab.yaml.conceptand optional facets are lowercase semantic kebab-case segments.
Numeric IDs, alternate spellings, aliases, and implicit hierarchy levels are
invalid. agent_utilities.governance.concept_hierarchy owns parsing, path/IRI
projection, and domain validation.
Marker parsing¶
All scanners use iter_okf_markers() rather than slicing a raw regular-expression
match. The parser keeps the canonical ID separate from an immediately adjacent
tail such as /2.15, _legacy, or UppercaseSuffix. Historical slash annotations
remain visible as OkfMarker.tail, but tails are never treated as part of the ID or
as generated concept documentation. The marker's full span includes the tail, so
the description begins only after that span.
flowchart LR
Source["Source text"] --> Parser["iter_okf_markers"]
Parser --> Id["canonical id"]
Parser --> Tail["explicit adjacent tail"]
Parser --> Span["full marker span"]
Id --> Registry["registry and governance scanners"]
Span --> Docs["description starts after span"]
Tail --> Triage["migration and triage evidence"]
Deterministic projections¶
For AU-KG.ingest.entropy-dedup:
| Projection | Value |
|---|---|
| OKF path | AU/KG/ingest/entropy-dedup |
| Concept IRI | http://knuckles.team/kg/concept/AU/KG/ingest/entropy-dedup |
| Domain IRI | http://knuckles.team/kg/concept/AU/KG/ingest |
| Shared pillar IRI | http://knuckles.team/kg/pillar/KG |
| Repository scheme | http://knuckles.team/kg/scheme/AU |
The generated RDF models concept → domain → shared pillar → repository scheme
with :partOf and SKOS relationships. Each concept stores exactly one
:conceptId.
Authoring and validation¶
Reserve the complete semantic ID before adding its marker:
Then add CONCEPT:AU-KG.ingest.entropy-dedup to source. The reservation ledger
stores only opaque session and design references. Regenerate and validate: