ontoref/adrs/adr-defaults.ncl

17 lines
551 B
Plaintext
Raw Permalink Normal View History

2026-03-13 00:21:04 +00:00
let s = import "adr-schema.ncl" in
let c = import "adr-constraints.ncl" in
{
# RequiresJustificationWhenRisky is a cross-field contract (reads both
# ontology_check.verdict and invariant_justification) — applied here after
# the schema merge so both fields are visible in the same record.
make_adr = fun data =>
let result | c.RequiresJustificationWhenRisky = s.Adr & data in
result,
make_constraint = fun data => s.Constraint & data,
Adr = s.Adr,
Constraint = s.Constraint,
OntologyCheck = s.OntologyCheck,
}