Type work order closure authority

This commit is contained in:
Meta Vens 2026-07-13 03:31:03 +01:00
commit 4094c2c71c
7 changed files with 207 additions and 37 deletions

View file

@ -1028,6 +1028,19 @@ walk does not discover these lexically included modules. Expanded line counts
therefore measure readable source, not architectural growth. Ownership and
imports remain the useful measures.
## Presentation text as work-order authority
`repo.work_order` closure previously inferred schema, antecedents, receipt
chain, bounded scope, and authority denials with `content.contains`. A comment
containing `hands_action_authorized = false` could therefore conceal a real
grant. Work-order closure now parses typed TOML inside the workflow owner and
checks the actual fields. Its malicious fixture proves the counterfeit comment
cannot bless Hands authority, and the class guard prevents the family from
regaining substring authority.
Fourteen high-authority closure families are typed; 507 substring assertions
remain. Adoption and scheduling are the next workflow-shaped candidates.
The same inspection found 33 consecutive duplicate `#[cfg(test)]` attributes
on provider constructors/writers and their re-exports. One gate already makes
each item test-only; the second owned nothing. The duplicates are removed.

View file

@ -322,6 +322,13 @@ workflow rather than feeding the external drawer. External governance should
converge on tooling plus publication/accounting; operations retains
policy/deployment.
Work-order closure is now typed inside that workflow owner. The old substring
path could accept a commented Hands denial beside a real authority grant; the
malicious fixture and generic class guard now make that impossible. Fourteen
high-authority families are typed and 507 substring assertions remain. Next
inspect adoption versus scheduling and convert the authority-bearing family
with its own negative proof.
The latest structural count is 32 closure family branches, 744 remaining
substring assertions in the closure region, and 1,284 lines in
`closure_contracts.rs`. Do not blindly generate a struct forest for every