Extract workflow closure authority

This commit is contained in:
Meta Vens 2026-07-13 03:27:21 +01:00
commit d1bcbae68f
9 changed files with 557 additions and 122 deletions

View file

@ -1014,6 +1014,20 @@ workflow contracts to external governance merely because its parser imports are
nearby. External governance should converge on tooling plus
publication/accounting; operations retains policy/deployment.
## Workflow authority physically separated
`repo.verification_request` and its counterfeit-Soul-verdict fixture now live
under `closure_contracts/workflow.rs` and `workflow_tests.rs`. External
governance no longer owns verification merely because the request arrives from
outside the process. The facade composes workflow as a peer closure domain;
adoption, scheduling, and work-order contracts should migrate into that owner
as they are typed.
The included closure files also required direct `rustfmt`: Cargo's normal fmt
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.
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

@ -312,11 +312,15 @@ Verification-request closure is now typed and class-guarded. Current count:
thirteen typed high-authority families and 543 remaining substring assertions.
The explicit malicious Soul-verdict fixture now passes as a negative proof.
Closure-domain pressure: external governance 724 production lines, operations
551, external fixtures 477. The next adoption/scheduling/work-order conversion
must create `closure_contracts/workflow.rs` and migrate typed verification with
it. This follows the generator's existing phase ownership; do not keep feeding
the external-governance drawer.
Closure-domain authority now has a physical workflow owner.
`closure_contracts/workflow.rs` owns typed verification request closure and
`workflow_tests.rs` owns its counterfeit-Soul-verdict fixture. The facade
composes workflow beside external governance and operations. Direct `rustfmt`
is required for these lexically included files because Cargo fmt does not find
them. Next, type and move one adoption/scheduling/work-order family into
workflow rather than feeding the external drawer. External governance should
converge on tooling plus publication/accounting; operations retains
policy/deployment.
The latest structural count is 32 closure family branches, 744 remaining
substring assertions in the closure region, and 1,284 lines in