diff --git a/store/scaffold/event_driven_gates.json b/store/scaffold/event_driven_gates.json new file mode 100644 index 00000000..d824b089 --- /dev/null +++ b/store/scaffold/event_driven_gates.json @@ -0,0 +1,205 @@ +{ + "tranche": "EVENT_DRIVEN_CONTINUATION", + "purpose": "Structured-state routing + event-triggered cognition (model=intent, state=truth, controller=procedure, events=when cognition resumes)", + "predecessor": "async_intent_gates.json (ASYNC_INTENT_NORMALIZATION_COMPLETE 13/13)", + "created_at": "2026-09-17T23:15:22Z", + "gates": [ + { + "gate_id": "E10_FRESH_PROCESS_CONTINUATION_PROVEN", + "mandatory": true, + "requirement": "parked operation recovered by fresh process; event resumes correct work", + "status": "PASS", + "evidence": "Daemon killed/restarted with a parked WAITING_EXTERNAL op outstanding; fresh process resolved the op from durable state and attached via canonical continuation. DEFECT FOUND AND FIXED during proof: ci", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E11_LIVE_BRANCH_FLOW", + "mandatory": true, + "requirement": "branch push -> CI via tool, no manual normalizer/ci_event_wait calls", + "status": "PASS", + "evidence": "Branch push 2ebd9da (E-patch branch): branch_ci authority resolved success via first-class await; PR #338 merged on green. No manual normalizer or ci_event_wait calls; the model emitted the tool call ", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E12_LIVE_PR_FLOW", + "mandatory": true, + "requirement": "PR checks -> merge via tool", + "status": "PASS", + "evidence": "PR #338 (event-driven continuation) created, required checks ran, merged on green (merge-on-green picked it up); bump 0.85.0 flowed to master. The A-patch E9 proof (PR #336) additionally demonstrated ", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E13_LIVE_MASTER_DEPLOY_FLOW", + "mandatory": true, + "requirement": "master CI -> deploy via tool", + "status": "PASS", + "evidence": "master 853cf3e (bump) -> canonical master_ci/deploy_qualify continuation -> event_replayed success 6.6s -> deployed current == 853cf3e (0.85.0, deployed 2026-09-17T23:58:58Z) == runtime identity; last", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E14_REGRESSION_AND_ADVERSARIAL_TESTS", + "mandatory": true, + "requirement": "A-J adversarial matrix + existing suites green", + "status": "PASS", + "evidence": "Adversarial matrix covered: arbitrary duration ignored (A), wrong type ignored (B), literal sleep compiled (C), non-sleep wording via route-bash (D: \"sleep 150 then check whether CI finished\" normaliz", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E15_RAW_SELF_AUDIT", + "mandatory": true, + "requirement": "raw trace outranks report; no relabeling", + "status": "PASS", + "evidence": "Stream classified per \u00a718: TRANSITION_PERIOD for pre-rewire tool call on 2ebd9da (94 internal re-arms, disclosed); all post-rewire flows normalized (model deadline/op_type ignored, zero literal extern", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:44Z" + }, + { + "gate_id": "E16_FINAL_RUNTIME_CONFIG_CONVERGENCE", + "mandatory": true, + "requirement": "git==release==deployed==runtime==healthy", + "status": "PASS", + "evidence": "git master 853cf3e == release v0.85.0 == deployed current == runtime build identity (deployed 2026-09-17T23:58:58Z) == healthy; last-good f06ddb3; harness tool (bash.ts + await-operation.ts normalize-", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E1_CURRENT_STATE_ROUTING_BOUNDARY_PROVEN", + "mandatory": true, + "requirement": "intent -> relevant state -> canonical procedure resolved at execution boundary without model reconstructing state", + "status": "PASS", + "evidence": "Boundary = await_intent (normalize_action/derive_op_type/normalize_bash) + new route-bash CLI + bash.ts harness tool. Intent resolves against PendingOperation records/git/Gitea WITHOUT the model recon", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E2_PENDING_OPERATION_DURABLE_STATE_PROVEN", + "mandatory": true, + "requirement": "PendingOperation owns mechanical truth (type/authority/events/status) and survives restart", + "status": "PASS", + "evidence": "event_wait.register_process_wait extended: continuation_state (ACTIVE_REASONING/WAITING_EXTERNAL/RESUMABLE/RECOVERY_REQUIRED) + canonical op_type/authority + task_id persisted in the wait record ext b", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E3_INTENT_TO_CANONICAL_PROCEDURE_COMPILATION_PROVEN", + "mandatory": true, + "requirement": "imperfect model actions compile to ContinuePendingOperation; not rejection, not retry", + "status": "PASS", + "evidence": "normalize_bash compiles sleep/check/poll phrasing to ContinuePendingOperation (test_sleep_check_normalized: raw_sleep_seconds_suppressed=150); bash.ts executes the compiled wait and returns intent_com", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E4_EVENT_TRIGGERED_COGNITIVE_RESUME_PROVEN", + "mandatory": true, + "requirement": "cognition resumes on event/authority, not elapsed time", + "status": "PASS", + "evidence": "All resumptions in the live flows were event_replayed or authority_recovered modes (event/authority driven). Cognition parked inside single-logical-await tool calls (internal re-arms up to 136 observe", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E5_TIME_USED_ONLY_FOR_RECOVERY_DETECTION_OR_REAL_DEADLINE", + "mandatory": true, + "requirement": "watchdogs detect failure; never routinely wake the LLM", + "status": "PASS", + "evidence": "Watchdog expiry with live runs -> internal re-arm (never wakes model); pending (not started/lagging) -> internal re-arm; deadline is the only nonterminal exit. The E10 fresh-process probe initially ex", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E6_MODEL_TIMING_NON_AUTHORITATIVE", + "mandatory": true, + "requirement": "MODEL_DURATION_ACTUALLY_USED_COUNT=0", + "status": "PASS", + "evidence": "MODEL_EMITTED_ARBITRARY_DURATION_COUNT>=1 (1200 in A-patch proof, 150 in bash-intent test); MODEL_DURATION_ACTUALLY_USED_COUNT=0 \u2014 all 5 normalization-log entries GOVERNED_OPERATION_POLICY; model dead", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E7_MODEL_OP_TYPE_NON_AUTHORITATIVE", + "mandatory": true, + "requirement": "MODEL_SUPPLIED_OP_TYPE_USED_COUNT=0", + "status": "PASS", + "evidence": "Derivation truth table tests: normalized record wins outright; open PR > branch; master ancestry; legacy records confirm-never-override. Live: model op_type hints (master_ci on branch, branch_ci on ma", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E8_BASH_EXTERNAL_WAIT_INTENT_COMPILED", + "mandatory": true, + "requirement": "Bash sleep/check/poll intent compiles; literal sleep suppressed for external waits", + "status": "PASS", + "evidence": "bash.ts harness tool: on Bash commands matching external wait intent, awaits route-bash; if normalized, executes the canonical continuation and returns intent_compilation{literal_sleep_executed:false,", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + }, + { + "gate_id": "E9_COGNITIVE_QUIESCENCE_PROVEN", + "mandatory": true, + "requirement": "WAITING_EXTERNAL is a first-class durable state; no model inference while parked", + "status": "PASS", + "evidence": "continuation_state=WAITING_EXTERNAL stamped on park (ci_event_wait run()); RESUMABLE/RECOVERY_REQUIRED on terminal; fresh process read the parked state from the durable record. Model inference stops w", + "blocker": "", + "waiver_reason": "", + "waived_by": "", + "declared_at": "2026-09-17T23:15:22Z", + "resolved_at": "2026-09-18T00:14:02Z" + } + ], + "can_accept_result": { + "ok": true, + "blockers": [] + }, + "verdict": "EVENT_DRIVEN_CONTINUATION_COMPLETE" +} \ No newline at end of file