Grammar reference
Status: stub. Day 3 will autogenerate this page from the Athena schema (
docs/scripts/gen-dsl-ref.ts).
Top-level shape:
policy ::= {
wos_version : "3.0"
policy_id : <ident>
metadata? : { ... }
inputs : { <name>: <input-decl>, ... }
rules : [ <rule>, ... ]
fallback : <action>
audit : <audit-block>
}Per-rule shape:
rule ::= {
id : <ident>
when : <predicate-string>
then : <action>
}
action ::= {
decision : "PASS" | "REJECT" | "ESCALATE_TO_HUMAN" | "ESCALATE_TO_QUEUE"
reason_code?: <ident>
confidence? : <0..1>
}