Repository navigation
Conversation
code-yeongyu
left a comment
There was a problem hiding this comment.
Thanks, @Dante-dan. Approving aac47c2356. This covers #9590's task-terminal-state item without touching compaction.
-
The held error waits for real idle: a message-only assistant error is held until the session is idle (
agent_idle, or a heartbeat whose state shows no stream, compaction, retry, bash, steering, follow-up or pending message). It never settles on themessage_endalone, and a newagent_startstill replaces it, so retries and continuations stay live. -
Mutations, locally: 132/132 in
handle-continuation.test.ts+src/runners/rpc/.- Removing the heartbeat-driven settle in
handle.tsfails heartbeat confirms idle β the error is surfaced. - Removing the
retryAttemptguard insessionIsIdlefails heartbeat sees a retry attempt β it cannot fail the active retry.
Both guards are pinned by a test that fails without them.
- Removing the heartbeat-driven settle in
The PR conflicts only in the generated omo-task.js. On its merge turn I'll merge dev and regenerate on Linux; dev is held for a release right now.
Summary
A host child can emit an assistant error before
agent_endwhen admission compaction refuses the next turn. The task runner previously kept waiting foragent_end, leaving the task reported as running after the child was idle. Observe that error and settle it onagent_idleor a confirmed idle heartbeat, preserving the compaction diagnostic.This covers the task terminal-state acceptance item in #9590. It does not change the engine compaction algorithm or resolve the reported 380K provider / 120K estimated context mismatch.
Changes
agent_end; let a newagent_startreplace it so retries and extension continuations remain live.QA & Evidence
devthroughbecbd1dc6; generated task extension was rebuilt with the repository generator. The four scoped source files preserve the published terminal-error fix. The later dev changes affect only Codex installation, leaving the QA-tested Senpi/task inputs unchanged.bun run test:senpi: FAIL, incomplete. Build/staging completed. The failing adapter suite was interrupted with exit 130 after 3700 passing / 173 failing test lines; these are partial log counts, not a complete suite total. Failures include build-purity/rebuild timeouts and sandbox restrictions. Gateway/thread failures explicitly reportEPERM: operation not permitted, posix_spawn 'ps'. The final evidence-resolver suite was not reached; no same-root baseline attribution is claimed for these broad failures.task-e2e.mjs: FAIL overall (22 PASS / 5 FAIL). Core spawn, wake, follow-up, peek, event sequence, batch, sync, invalid-category, happy resume and TTL checks passed. Cancel setup/non-revival, killed non-revival, and LRU setup/non-revival failed. Their captures show directbashtool calls rejected by the current eval-tool surface, so sentinel waits did not execute; LRU attempted a second child while the first remained running and receivedresidency_denied. Persisted cancel/kill records have the expected terminal dispositions, but failed compound witness/timing assertions mean these no-revival invariants remain unproven. This is not a clean live QA pass.realSenpiUntouched: true,realSenpiChangedPaths: [],leakedPids: 0,mainExit: 0. Driver process exit 0 does not override its FAIL verdict. The locally installed real Senpi uses isolated agent directories and a scripted mock provider..omo/evidence/omo-senpi-adapter/20261006-9590-conflict/, includingREADME-resumed.md,live-task-resumed/verdict.json,qa-failure-attribution.jsonandpackage-gate-resumed.txt. Evidence remains local and is not committed. The earlier evidence root is retained as history.53b67e9979252b95a7eb040dbf4997d78117fe0c15177321fd0ce65b7b15b7f4.Risks & Residuals
child-turn-failedoutcome. This patch does not implement a separate compaction fallback chain.Automated Checks
Related Issues
Refs #9590
Evidence hashes (relative to the local ignored evidence root):
Summary by cubic
Fixes task settling so a host child that emits an assistant error without
agent_endno longer keeps the task reported as running after the child goes idle; the error now settles onagent_idleor a confirmed idle heartbeat.agent_endis missing; a newagent_startreplaces it so retries and continuations stay live.omo-task.jsafter merging dev.Known residuals: Full-package and batch/resume QA remain red, and the pending-cancel recovery test fails under its 50 ms close budget while its isolated recheck passes; attribution is unconfirmed. This does not change the engine compaction algorithm or resolve the 380K/120K estimated context mismatch. Refs #9590.
Written for commit db44262. Summary will update on new commits.
Generated bundle freshness correction (
aac47c235)The Ubuntu Senpi compatibility job stopped before running tests because
omo-task.jshad a stale source fingerprint. Regenerating with the repository build script changes only its first-line source digest; every executable body byte is unchanged (SHA-256a45399fa2b5fef85557355048cb05bb40ba75a07678a2efa66f244e640aa968d). No handwritten bundle edit or additional behavior change.build-extension.mjs --checkandbuild-install.mjs --check: pass after regeneration (native Node 24.15.0 / Bun 1.4.2). Focused host regressions: 10 pass / 0 fail.PASS, with ultrawork injection observed and the optional comment-checker skipped because its binary is absent. Its isolation certification is unavailable (DIRECTORY_IDENTITY_UNAVAILABLE); empty changed-path arrays do not prove real-home isolation.Local ignored evidence:
.omo/evidence/omo-senpi-adapter/20261006-9590-ci-freshness/(artifact-comparison.json,generator.txt,check-after.txt,focused.txt,live-adapter.json,README.md). Required remote CI and maintainer review remain pending.