code wiki / (root) / nx_wflow_approve_capacity_gate_t278.nx

nx_wflow_approve_capacity_gate_t278.nx

buildroot/runtime/nx_wflow_approve_capacity_gate_t278.nx

6429 B123 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind orphan librarytopic wflow
docsdependenciesstructsconstsfunctions

about

nx_wflow_approve_gate.nx -- R4 HUMAN-IN-THE-LOOP approvals gate. An `approve` step PARKS the run (status=WAIT, in-flight -- neither DONE nor FAILED) until an operator decision record lands on the SAME event-sourced ledger (WFDEC ... decision=APPROVED|DENIED by=<who>); wf_resume then completes or fail-stops it. DENY WINS (fail-safe). Proves: parked run gates later steps; resume WITHOUT a decision never fabricates approval; APPROVED unlocks exactly once (no re-exec of OK steps); DENIED fail-stops; bad decision word refused; a decision for the WRONG step does NOT unlock. ZERO forks. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_wflow_engine_capacity_candidate nx_gate_verdict.nx nx_wflow_approve_capacity_gate

imports: nx_wflow_engine_capacity_candidate_t278.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

11func ag_n(led: *u8, ridtok: *u8, st: *u8) -> i64
18func main() -> i64