Commit graph

9 commits

Author SHA1 Message Date
Alexandre Teixeira
9d0257134f feat(runtime): enforce server request authority 2026-10-01 18:35:41 +01:00
Alexandre Teixeira
d49071bbec fix: close Wave 1.1 completion-gate audit findings
- Headless consumers (task scheduler, background follow-up) now treat a
  completion-gate final_response as the authoritative answer instead of
  collecting deltas only. A gated replacement no longer leaves scheduled
  output empty, which used to trigger an extra, ungated grace-summary
  model call.
- The scheduler closes the agent stream with contextlib.aclosing, so the
  approval-pause break unwinds the gate's journal and teacher-takeover
  context in its own task. Chained runs no longer inherit a stale
  parent_run_id, and later finalization no longer raises ContextVar
  reset errors.
- On provider error, the completion gate applies the live answer's
  statement filter to persisted round_texts. Diagnostics and the failure
  note survive; claims rejected by the gate cannot reappear on reload.
2026-10-01 14:49:32 +01:00
Alexandre Teixeira
f4793696f4 merge: reconcile Wave 1.1 with post-PR40 lab
Merge canonical lab 9557b8d5909eb4a885c3bf49e19a65dd904f8c1d exactly once.
Retain invocation journal ownership and lineage, provider terminal ordering,
teacher handoff, framed DONE handling, and canonical authority/Ajax routing.

Combine dynamic dispatch receipts with lab policy forwarding. Adapt native
shell/patch evidence, explicit TUI verifiers, and artifact recovery presentation.
Refresh generated configuration source links and strengthen adapter regressions.

Validation: focused 2118 passed; Wave 1.1 script 2291 passed; broad runtime
5649 passed; full pytest 11581 passed, 53 skipped, 2 xfailed, 6 subtests passed.
Compileall 1689 Python files; syntax 279 JS and 82 MJS files; diff and
conflict-marker checks passed.
2026-10-01 09:09:55 +01:00
Alexandre Teixeira
aedec7d005 fix(runtime): isolate nested invocation ownership 2026-10-01 02:11:53 +01:00
Alexandre Teixeira
4c122de880 fix(runtime): scope completion claims to execution obligations 2026-10-01 01:36:18 +01:00
Alexandre Teixeira
466a6b323a fix(runtime): preserve provider error terminal ordering 2026-10-01 00:33:46 +01:00
Alexandre Teixeira
cea8ed297e fix(runtime): reject unobserved verification and preserve safe reasoning 2026-09-26 14:24:29 +01:00
Alexandre Teixeira
b241bb3a7b fix(runtime): close completion stream bypass and preserve explanations 2026-09-26 14:13:40 +01:00
Alexandre Teixeira
eaa5668baa feat(runtime): record execution evidence and gate completion 2026-09-26 13:48:12 +01:00