ontoref-code/.governance/wo-adr001-zero-deps.ncl

25 lines
1.3 KiB
Text
Raw Normal View History

# code/sow/wo-adr001-zero-deps.ncl — first real instance of governed-delivery,
# built to actually test the mode (not a fabricated scenario): ontoref-ontology
# must never depend on stratum-graph/stratum-state/stratum-orchestrator per
# ADR-001 ("the ontology crate is the protocol's minimal adoption surface").
{
id = "wo-adr001-zero-deps",
objective = "Verify ontoref-ontology's Cargo.toml declares zero stratumiops dependencies, per ADR-001.",
existing_mechanisms_searched = [
"grep -rn stratum crates/*/Cargo.toml — no existing automated check found",
"code/.claude/CLAUDE.md's 'Critical constraint from ADR-001' — documented as prose, not enforced by any script or CI step",
"code/domains/framework/ontology/schema.ncl and .ontoref/reflection/schema.ncl — the mode/guard mechanism this WO now uses, not a new one",
],
contracts = [
{
id = "C1-ontology-crate-zero-stratumiops-deps",
kind = 'static,
why = "ADR-001: ontoref-ontology must stay buildable with zero stratumiops path deps — it is the protocol's minimal adoption surface. A dependency here would force every consumer to also vendor stratumiops just to read the ontology.",
check = "! grep -n stratum crates/ontoref-ontology/Cargo.toml",
scope = ["crates/ontoref-ontology/Cargo.toml"],
},
],
}