Repository navigation
refactor(agents): deslop runners, harness and recovery - #157294
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 24, 2026, 8:10 PM ET / September 25, 2026, 00:10 UTC (Revision 5). ClawSweeper reviewWhat this changesThe branch consolidates repeated logic across agent runners, harness selection, failover, and restart recovery while retaining the Plugin SDK's relay testing signatures. Merge readiness⛔ Blocked before merge - 2 items remain Current main still contains the duplicated harness-selection path, so this PR remains useful. The latest head restores the shipped SDK signatures flagged in the prior review; the inspected changes establish no new blocking defect. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw's agent runtime turns model requests and tool results into transcript updates and replies. Harness selection chooses an execution path, while restart recovery resumes eligible interrupted sessions. flowchart LR
A[Agent request] --> B[Harness selection]
B --> C[Agent runner]
C --> D[Model and tools]
D --> E[Transcript and reply]
E --> F[Restart recovery]
F --> G[Resume or settle]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one owner for each consolidated decision while preserving shipped SDK signatures and the current run and recovery authority fences. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR addresses repeated implementation logic rather than a reported product failure. Current main still contains the separate selection path. Is this the best way to solve the issue? Yes: reusing the existing owners is a maintainable way to remove the duplication, and the latest head preserves the shipped SDK testing contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2ef3b4a0fdde. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
|
@clawsweeper re-review The array-details finding conflates two different coercers. At this exact head, I verified the production recorder entrypoint against real isolated SQLite storage, without mocks: The consolidated tool-call repair map is per-stream in-memory bookkeeping, not a persisted data-model change. Please reassess the finding and its dependent merge-risk/migration items. This request is review-only; do not merge. |
|
🦞👀 Re-review progress:
|
Consolidate runner helpers while preserving auth, transcript, lifecycle, and public SDK contracts.
c2e7517 to
bc62383
Compare
|
Merged via squash.
|
* commit 'ef2dd3235123371860c9154da7b47b2c1e940788': (41 commits) fix(ci): prevent Security Review checkout retry collisions (#157652) fix(ci): recover interrupted Security Review response bodies (#157651) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (#139131) refactor(msteams): share stored service URL validation (#157706) fix(codex): honor configured tool PATH in native commands (#157290) refactor(msteams): share approval kind labels (#157705) fix(sessions): keep session results current during cold reads (#156121) fix(testing): capture bounded upgrade integrity diagnostics (#157535) refactor(i18n): reuse native branch candidate extraction (#157636) fix(update): preserve recovery files after ownership refusal (#148890) fix(test): prevent late announcements from contaminating registry tests (#157681) fix(e2e): scan full onboarding logs for prompts (#157624) refactor(session-tools): derive contracts from schemas (#156365) refactor(channels): derive config contracts from schemas (#156367) perf(test): reuse MCP archives and batch worker fixture copies (#157689) refactor: reuse prepared fixtures in slow core tests (#157685) refactor(codex): reuse marketplace reference selection (#157621) chore(ui): refresh control ui locales (#157710) ...
* commit '05edd36e124dc376f63475256f45e82ec437412c': (30 commits) refactor(matrix): reuse bounded direct-room cache insertion (#157775) fix: preserve channel-owner revocation across recovery (#157709) fix(ci): stop blocking CI during release validation (#157757) refactor(tlon): remove unreachable DM summary branches (#157789) chore: speed up worktree recovery tests with Bun (#157674) fix(sessions): release PR caches when pending viewers leave (#157776) refactor(twitch): reuse setup account selection (#157787) test: skip empty task ledger resets in cron fixtures (#157767) perf: reduce gateway and state test startup (#157711) fix: preserve maintenance leases during slow heartbeat renewal (#157696) fix(channels): match non-TTY setup advice to registered flags (#157551) fix: keep failed update report uploads in the CLI (#156633) fix: preserve rejected settings reason when opening config (#157731) test(update): load real filesystem dependencies in swap fixture fix(ci): prevent Security Review checkout retry collisions (#157652) fix(ci): recover interrupted Security Review response bodies (#157651) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (#139131) refactor(msteams): share stored service URL validation (#157706) ...
* commit '229ab8a1fe957d3d4822309a39ddf9c7ec616395': (25 commits) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (#139131) refactor(msteams): share stored service URL validation (#157706) fix(codex): honor configured tool PATH in native commands (#157290) refactor(msteams): share approval kind labels (#157705) fix(sessions): keep session results current during cold reads (#156121) fix(testing): capture bounded upgrade integrity diagnostics (#157535) refactor(i18n): reuse native branch candidate extraction (#157636) fix(update): preserve recovery files after ownership refusal (#148890) fix(test): prevent late announcements from contaminating registry tests (#157681) fix(e2e): scan full onboarding logs for prompts (#157624) refactor(session-tools): derive contracts from schemas (#156365) refactor(channels): derive config contracts from schemas (#156367) perf(test): reuse MCP archives and batch worker fixture copies (#157689) refactor: reuse prepared fixtures in slow core tests (#157685) refactor(codex): reuse marketplace reference selection (#157621) chore(ui): refresh control ui locales (#157710) docs(gateway): show how we build OpenClaw on Team (#157675) refactor: verify IRC surrogate chunking over loopback (#157580) ...
* fix(ui): keep Stop available while drafts cannot send * chore: integrate main fixes for Stop UI validation * commit 'ef2dd3235123371860c9154da7b47b2c1e940788': (41 commits) fix(ci): prevent Security Review checkout retry collisions (#157652) fix(ci): recover interrupted Security Review response bodies (#157651) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (#139131) refactor(msteams): share stored service URL validation (#157706) fix(codex): honor configured tool PATH in native commands (#157290) refactor(msteams): share approval kind labels (#157705) fix(sessions): keep session results current during cold reads (#156121) fix(testing): capture bounded upgrade integrity diagnostics (#157535) refactor(i18n): reuse native branch candidate extraction (#157636) fix(update): preserve recovery files after ownership refusal (#148890) fix(test): prevent late announcements from contaminating registry tests (#157681) fix(e2e): scan full onboarding logs for prompts (#157624) refactor(session-tools): derive contracts from schemas (#156365) refactor(channels): derive config contracts from schemas (#156367) perf(test): reuse MCP archives and batch worker fixture copies (#157689) refactor: reuse prepared fixtures in slow core tests (#157685) refactor(codex): reuse marketplace reference selection (#157621) chore(ui): refresh control ui locales (#157710) ... Co-authored-by: Vincent Koc <[email protected]>
* refactor(agents): deslop embedded and CLI runners Consolidate runner helpers while preserving auth, transcript, lifecycle, and public SDK contracts. * refactor(agents): deslop runners, harness and recovery * refactor(agents): preserve shipped relay testing signatures
* fix(ui): keep Stop available while drafts cannot send * chore: integrate main fixes for Stop UI validation * commit '5dae23c843013fce2e0bb80037d232bbabfc70e5': (41 commits) fix(ci): prevent Security Review checkout retry collisions (openclaw#157652) fix(ci): recover interrupted Security Review response bodies (openclaw#157651) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (openclaw#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (openclaw#139131) refactor(msteams): share stored service URL validation (openclaw#157706) fix(codex): honor configured tool PATH in native commands (openclaw#157290) refactor(msteams): share approval kind labels (openclaw#157705) fix(sessions): keep session results current during cold reads (openclaw#156121) fix(testing): capture bounded upgrade integrity diagnostics (openclaw#157535) refactor(i18n): reuse native branch candidate extraction (openclaw#157636) fix(update): preserve recovery files after ownership refusal (openclaw#148890) fix(test): prevent late announcements from contaminating registry tests (openclaw#157681) fix(e2e): scan full onboarding logs for prompts (openclaw#157624) refactor(session-tools): derive contracts from schemas (openclaw#156365) refactor(channels): derive config contracts from schemas (openclaw#156367) perf(test): reuse MCP archives and batch worker fixture copies (openclaw#157689) refactor: reuse prepared fixtures in slow core tests (openclaw#157685) refactor(codex): reuse marketplace reference selection (openclaw#157621) chore(ui): refresh control ui locales (openclaw#157710) ... Co-authored-by: Vincent Koc <[email protected]>
* refactor(ui): share slash-command failure results * Merge main to incorporate the upstream update type fix * commit '0484d7a3ecf52589b0d3d98741e58e5f6b5bf661': (68 commits) fix(subagents): stop completion transcript retry loops (#157571) perf(sessions): remove duplicate foreground history reference scans (#157572) improve(typesafe): defer startup work until the first decision (#157380) fix(update): restore npm-pack helper typechecking (#157659) fix(packaging): avoid heap exhaustion on large bundles (#157471) refactor(infra): share process error handler registries (#157632) chore(ui): refresh control ui locales (#157573) fix(gateway): release remote Skills subscriptions when shutdown drains (#157592) perf(plugins): reuse declared tool membership during resolution (#156205) fix(ui): pasted text previews fail before sending (#157390) fix(agents): wait for database resources during deletion (#157631) improve: move operator profile database reads off the Gateway thread (#155800) fix: explain rejected settings without losing edits (#157549) fix: keep Gateway responsive while recording trajectory events (#157598) fix(auth): show SIWC email and selected model account identity (#157629) docs: explain Codex app approval precedence (#155089) refactor(wizard): share select prompt requests (#157607) fix(ui): omit empty sections from conversation Markdown exports (#157590) fix(doctor): explain update lint supervisor refusals (#156547) fix(ui): GitHub folder links lose repository context (#157619) ... * Merge frozen main to include the question fixture authority fix * commit '229ab8a1fe957d3d4822309a39ddf9c7ec616395': (25 commits) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (#139131) refactor(msteams): share stored service URL validation (#157706) fix(codex): honor configured tool PATH in native commands (#157290) refactor(msteams): share approval kind labels (#157705) fix(sessions): keep session results current during cold reads (#156121) fix(testing): capture bounded upgrade integrity diagnostics (#157535) refactor(i18n): reuse native branch candidate extraction (#157636) fix(update): preserve recovery files after ownership refusal (#148890) fix(test): prevent late announcements from contaminating registry tests (#157681) fix(e2e): scan full onboarding logs for prompts (#157624) refactor(session-tools): derive contracts from schemas (#156365) refactor(channels): derive config contracts from schemas (#156367) perf(test): reuse MCP archives and batch worker fixture copies (#157689) refactor: reuse prepared fixtures in slow core tests (#157685) refactor(codex): reuse marketplace reference selection (#157621) chore(ui): refresh control ui locales (#157710) docs(gateway): show how we build OpenClaw on Team (#157675) refactor: verify IRC surrogate chunking over loopback (#157580) ... * chore: merge frozen main prerequisite repairs Co-authored-by: Vincent Koc <[email protected]>
* refactor(ui): share slash-command failure results * Merge main to incorporate the upstream update type fix * commit 'dda1f68bfa102cb804392c0e7cc22c0566a0944a': (68 commits) fix(subagents): stop completion transcript retry loops (openclaw#157571) perf(sessions): remove duplicate foreground history reference scans (openclaw#157572) improve(typesafe): defer startup work until the first decision (openclaw#157380) fix(update): restore npm-pack helper typechecking (openclaw#157659) fix(packaging): avoid heap exhaustion on large bundles (openclaw#157471) refactor(infra): share process error handler registries (openclaw#157632) chore(ui): refresh control ui locales (openclaw#157573) fix(gateway): release remote Skills subscriptions when shutdown drains (openclaw#157592) perf(plugins): reuse declared tool membership during resolution (openclaw#156205) fix(ui): pasted text previews fail before sending (openclaw#157390) fix(agents): wait for database resources during deletion (openclaw#157631) improve: move operator profile database reads off the Gateway thread (openclaw#155800) fix: explain rejected settings without losing edits (openclaw#157549) fix: keep Gateway responsive while recording trajectory events (openclaw#157598) fix(auth): show SIWC email and selected model account identity (openclaw#157629) docs: explain Codex app approval precedence (openclaw#155089) refactor(wizard): share select prompt requests (openclaw#157607) fix(ui): omit empty sections from conversation Markdown exports (openclaw#157590) fix(doctor): explain update lint supervisor refusals (openclaw#156547) fix(ui): GitHub folder links lose repository context (openclaw#157619) ... * Merge frozen main to include the question fixture authority fix * commit 'dc64cc3a3a3cf38fff1e44c1d7af42a32929d7e4': (25 commits) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (openclaw#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (openclaw#139131) refactor(msteams): share stored service URL validation (openclaw#157706) fix(codex): honor configured tool PATH in native commands (openclaw#157290) refactor(msteams): share approval kind labels (openclaw#157705) fix(sessions): keep session results current during cold reads (openclaw#156121) fix(testing): capture bounded upgrade integrity diagnostics (openclaw#157535) refactor(i18n): reuse native branch candidate extraction (openclaw#157636) fix(update): preserve recovery files after ownership refusal (openclaw#148890) fix(test): prevent late announcements from contaminating registry tests (openclaw#157681) fix(e2e): scan full onboarding logs for prompts (openclaw#157624) refactor(session-tools): derive contracts from schemas (openclaw#156365) refactor(channels): derive config contracts from schemas (openclaw#156367) perf(test): reuse MCP archives and batch worker fixture copies (openclaw#157689) refactor: reuse prepared fixtures in slow core tests (openclaw#157685) refactor(codex): reuse marketplace reference selection (openclaw#157621) chore(ui): refresh control ui locales (openclaw#157710) docs(gateway): show how we build OpenClaw on Team (openclaw#157675) refactor: verify IRC surrogate chunking over loopback (openclaw#157580) ... * chore: merge frozen main prerequisite repairs Co-authored-by: Vincent Koc <[email protected]>
Brings the branch onto current main; GitHub reported it CONFLICTING. One conflict, in auth-controller.ts: openclaw#157294 (2819676) inlined resolveApiKeyForCandidate into applyApiKeyInfo. The credential-resolution deadline now wraps that inlined getApiKeyForModelCore call; the label still names the model whose provider is being resolved. The 700 s budget still holds against main's owner constants: OAUTH_REFRESH_LOCK_OPTIONS 20 retries x 10 s and OAUTH_REFRESH_CALL_TIMEOUT_MS 120 s, so 2 x 320 s + 60 s.
What Problem This Solves
Agent runners, harness adapters, failover classification and main-session recovery repeat setup and projection logic, leaving multiple places to maintain the same decisions.
User Impact
No user-visible behavior change is intended. CLI/config, model routing, transcript bytes, retry ordering, custody and live-authority contracts are preserved. The shipped SDK testing signatures, including the retired-file helpers, are retained. No config, schema, protocol or dependency changes.
Why This Change Was Made
The original runner sweep is extended into the coordinator-assigned harness, failover and recovery owners. Existing owners now serve these duplicated paths:
Authority checks after awaits, disposal custody, prompt/tool descriptions and transcript ordering remain intact. No tests were changed or removed. The assertion baseline update only removes allowances for deleted assertions. The sweep leaves tools, sandbox, subagents and sessions owners untouched.
Fixes Found Along the Way
No separate product bug or test flake was identified during the source sweep. Review restored a billing guard before validation: compact HTTP429 text can reach the JSON error classifier, so that check is required. A zero-line-savings reply-fact projection was also dropped after a real helper probe showed that it changed empty serialized reasons from
undefinedto an empty string; the original normalization is retained.Evidence
The requested non-test measurement is:
That removes 1,182 net non-test lines, including six assertion-baseline lines; production TypeScript removes 1,176 net lines.
Validation ran on sequential Blacksmith Testbox leases, with final compatibility proof on
tbx_01m3aqghdrtyw44jpjw26pbgphthroughscripts/crabbox-wrapper.mjs run --provider blacksmith-testbox --id … --keep --timing-json -- OPENCLAW_TESTBOX=1 OPENCLAW_TESTBOX_REMOTE_RUN=1 …. The remote payload verifies the exact bytes of all 83 changed files before running checks, with a frozen-lockfile install first.pnpm install --frozen-lockfilenode scripts/run-oxlint.mjsnode scripts/check-changed.mjspnpm plugin-sdk:check-exportspnpm plugin-sdk:surface:checkpnpm buildnode scripts/run-vitest.mjs— 604 focused/cross-shard core test filesscripts/test-projects.mts— 78 plugin consumer test filesnode scripts/run-vitest.mjs --config test/vitest/vitest.e2e.config.ts— 12 E2E files220b558a29993dbb3743e699bbdb87248e88e89c; CI run, aggregate gateThe first lease workflow was cancelled during E2E artifact preparation after the checks, build, core and plugin phases had passed. Its workflow was a
workflow_dispatchlease run on the base, not this PR’s CI. Blacksmith confirmed it was stopped. The unfinished E2E and repeated lifecycle phases resumed on replacement leasetbx_01m3ak03znfns1anstqgph8316, with source hashes and frozen install checked again. No completed test phase was retried for a greener result. Two SSH launches on the replacement failed before executing the proof (mm_send_fd: Message too long); a smaller command envelope retained the same aggregate verification of all 83 file hashes and launched successfully. Lease workflows: initial, replacement.node scripts/watch-pr-ci.mjs 157294 220b558a29993dbb3743e699bbdb87248e88e89c --repo openclaw/openclaw --attach-timeout 900 --timeout 3600 --interval 120exited 0 withGREEN. The exact-head CI workflow and aggregate gate succeeded; the watcher excluded seven superseded check records. All task-owned Testbox leases are stopped. The PR remains open and ready for coordinator review, with no merge or auto-merge requested.The previous ClawSweeper SDK-signature finding is addressed by the verified restoration. Its asynchronous full-review refresh remains pending; independent Codex autoreview and the required aggregate CI gate are green.
The test inventory includes module/export consumer searches across
src/,extensions/,packages/,ui/,apps/,scripts/andtest/, includingtest/scripts/plugin-sdk-surface-report.test.ts. E2E coverage includes the native hook relay through a real Gateway and pinned Codex CLI against a synthetic local Responses server. No external live-provider result is claimed. No tests were added or changed, so this PR adds no ongoing test cost.Review identified the two retired-file testing methods as shipped SDK members; both methods and the
nativeHookRelayTestingexport throughopenclaw/plugin-sdk/agent-harness-runtimewere verified inv2026.9.6. Their original signatures and throwing behavior are restored. The restoration costs seven lines and keeps the production reduction above the campaign threshold. Follow-up changed checks, SDK gates, build, 25 core native-hook/SDK files (194.41 s), 12 plugin consumer files (125.94 s), and five lifecycle runs all passed ontbx_01m3aqghdrtyw44jpjw26pbgph(lease workflow). The table records the final changed/SDK/build/lifecycle results. The broader 604-file core, 78-file plugin and 12-file E2E proofs preceded only this seven-line restoration; all other source bytes are unchanged.A previous-base changed check found an unchanged 1,032-line failover test above its 1,000-line limit. Main had already fixed that in #157406; rebasing onto
0603d46c1b7616efb6fe99225498487aea3e9470picked up the owner fix and the current changed gate passes. No budget, timeout, assertion or ignore was weakened. Review remains valid after the rebase: both reviewed patches are unchanged, and the newly incorporated harness registry cleanup was inspected for interaction.This checkout has no
plugin-sdk:api:checkcommand; its declared gates areplugin-sdk:check-exports,plugin-sdk:surface:check, andtest/scripts/plugin-sdk-surface-report.test.ts.The earlier array-details review finding was corrected:
asOptionalObjectRecordaccepts arrays. An isolated real-SQLite recorder round trip preserved heterogeneous-array, empty-array and object details. The consolidated tool-call repair map is allocated per stream and cleared when the stream settles; it does not change a persisted data model and requires no migration.Codex contracts were inspected directly at upstream commit
8f38d5a877da8c5c2c0b5158e72bb5f2290a3157: native hook metadata/permission decisions, structured question and MCP form schemas, model-list ownership, turn outcomes, retry categories and compaction.Production-file coverage: 196 modules over 200 lines
l35 runners, harness, failover and recovery coverage
Rebased baseline:
0603d46c1b7616efb6fe99225498487aea3e9470. The original runner sweep covered all 142 production modules over 200 lines; the extension sweep read every harness, failover and recovery production module, largest first. This combined inventory has 196 modules over 200 lines, sorted by pre-extension-sweep size. Test corpora, fixtures and test harnesses are excluded. All smaller production modules were also read.src/agents/cli-runner/prepare.tssrc/agents/embedded-agent-runner/runs.tssrc/agents/embedded-agent-runner/tool-result-truncation.tssrc/agents/embedded-agent-runner/extra-params.tssrc/agents/embedded-agent-runner/replay-history.tssrc/agents/embedded-agent-runner/run/attempt-session-prepare.tssrc/agents/harness/native-hook-relay-permissions.tssrc/agents/embedded-agent-runner/model.static-catalog.tssrc/agents/embedded-agent-runner/run/attempt-llm-boundary.tssrc/agents/embedded-agent-runner/compact.queued.tssrc/agents/harness/gateway-question.tssrc/agents/embedded-agent-runner/run-orchestrator.tssrc/agents/main-session-recovery/main-session-recovery-state.tssrc/agents/harness/selection.tssrc/agents/embedded-agent-runner/run/terminal-resolution.tssrc/agents/harness/host-capability.tssrc/agents/embedded-agent-runner/run/images.tssrc/agents/cli-runner/execute.tssrc/agents/embedded-agent-runner/model.configured-overrides.tssrc/agents/embedded-agent-runner/run/run-attempt-dispatch.tssrc/agents/embedded-agent-runner/compaction-session-execution.tssrc/agents/embedded-agent-runner/run-entry.tssrc/agents/embedded-agent-runner/context-engine-maintenance.tssrc/agents/embedded-agent-runner/run-loop.tssrc/agents/cli-runner/execute-tool-tracking.tssrc/agents/embedded-agent-runner/run/auth-controller.tssrc/agents/cli-runner/execute-plugin.tssrc/agents/harness/native-hook-relay.tssrc/agents/embedded-agent-runner/run/attempt-stream-settle.tssrc/agents/embedded-agent-runner/run/settled-turn-finalization.tssrc/agents/cli-runner/cli-run-settlement.tssrc/agents/embedded-agent-runner/run/attempt.tool-call-argument-repair.tssrc/agents/failover/user-copy.tssrc/agents/main-session-recovery/main-session-restart-recovery-store.tssrc/agents/harness/types.tssrc/agents/embedded-agent-runner/compact.queued-execution.tssrc/agents/embedded-agent-runner/prepared-compaction-runtime.tssrc/agents/main-session-recovery/main-session-restart-dispatch.tssrc/agents/harness/structured-input-schema.tssrc/agents/embedded-agent-runner/run/attempt-finalize.tssrc/agents/embedded-agent-runner/thinking.tssrc/agents/embedded-agent-runner/compact.tssrc/agents/embedded-agent-runner/run/compaction-runtime.tssrc/agents/embedded-agent-runner/google-prompt-cache.tssrc/agents/embedded-agent-runner/run/attempt-stream-prepare.tssrc/agents/embedded-agent-runner/run/attempt-prompt-build.tssrc/agents/embedded-agent-runner/run/attempt-prompt-helpers.tssrc/agents/embedded-agent-runner/run/attempt.tssrc/agents/embedded-agent-runner/run/llm-idle-timeout.tssrc/agents/embedded-agent-runner/run/runtime-preparation.tssrc/agents/cli-runner/bundle-mcp.tssrc/agents/cli-runner/execute-process.tssrc/agents/embedded-agent-runner/run/attempt-recovery.tssrc/agents/harness/compaction.tssrc/agents/cli-runner/session-history.tssrc/agents/cli-runner/model-call-diagnostics.tssrc/agents/harness/execution-environment.tssrc/agents/cli-runner/helpers.tssrc/agents/cli-runner/cli-run-transcript.tssrc/agents/embedded-agent-runner/model.tssrc/agents/embedded-agent-runner/tool-result-context-guard.tssrc/agents/embedded-agent-runner/run/payloads.tssrc/agents/embedded-agent-runner/delivery-evidence.tssrc/agents/embedded-agent-runner/run/assistant-failure.tssrc/agents/harness/context-engine-turn-outbox.tssrc/agents/embedded-agent-runner/run/attempt-setup.tssrc/agents/embedded-agent-runner/run/attempt-prompt-phase.tssrc/agents/main-session-recovery/main-session-restart-recovery-resume-policy.tssrc/agents/embedded-agent-runner/run/attempt.model-diagnostic-lifecycle.tssrc/agents/main-session-recovery/main-session-restart-recovery-checkpoint.tssrc/agents/embedded-agent-runner/model.registry-resolution.tssrc/agents/embedded-agent-runner/run/session-bootstrap.tssrc/agents/harness/lifecycle.tssrc/agents/embedded-agent-runner/run/types.tssrc/agents/embedded-agent-runner/run/attempt-stream.tssrc/agents/harness/tool-result-middleware.tssrc/agents/harness/model-catalog.tssrc/agents/main-session-recovery/main-session-restart-recovery-marking.tssrc/agents/embedded-agent-runner/run/lane-controller.tssrc/agents/embedded-agent-runner/run/attempt-tool-call-replay-sanitization.tssrc/agents/embedded-agent-runner/run/attempt-system-prompt-prepare.tssrc/agents/embedded-agent-runner/run/attempt-tool-prepare.tssrc/agents/embedded-agent-runner/run/overflow-context-recovery.tssrc/agents/failover/classification-rules.tssrc/agents/cli-runner/execute-events.tssrc/agents/embedded-agent-runner/run/attempt-result.tssrc/agents/embedded-agent-runner/run/attempt-history.tssrc/agents/harness/runtime-plugin-load-plan.tssrc/agents/embedded-agent-runner/run/attempt-settle.tssrc/agents/failover/classify-core.tssrc/agents/embedded-agent-runner/run/attempt-queue-message.tssrc/agents/harness/context-engine-lifecycle.tssrc/agents/embedded-agent-runner/run/incomplete-turn-recovery.tssrc/agents/embedded-agent-runner/direct-compaction-preparation.tssrc/agents/embedded-agent-runner/run-state.tssrc/agents/harness/native-hook-relay-bridge.tssrc/agents/embedded-agent-runner/prompt-cache-observability.tssrc/agents/embedded-agent-runner/run/params.tssrc/agents/embedded-agent-runner/run/failover-retry-controller.tssrc/agents/embedded-agent-runner/run/incomplete-turn-resolution.tssrc/agents/embedded-agent-runner/run/preemptive-compaction.tssrc/agents/embedded-agent-runner/compaction-runtime-context.tssrc/agents/embedded-agent-runner/compaction-successor.tssrc/agents/embedded-agent-runner/run/prompt-failure.tssrc/agents/embedded-agent-runner/run/attempt.model-diagnostic-observation.tssrc/agents/main-session-recovery/main-session-restart-recovery-runtime.tssrc/agents/embedded-agent-runner/run/attempt-prompt-support.tssrc/agents/embedded-agent-runner/types.tssrc/agents/embedded-agent-runner/compaction-hooks.tssrc/agents/embedded-agent-runner/run/terminal-preparation.tssrc/agents/failover/message-patterns.tssrc/agents/embedded-agent-runner/run/model-setup.tssrc/agents/main-session-recovery/main-session-recovery-store.tssrc/agents/embedded-agent-runner/run/tool-media-payloads.tssrc/agents/embedded-agent-runner/model.manifest-alias.tssrc/agents/embedded-agent-runner/run/attempt-prompt-submit.tssrc/agents/harness/native-hook-relay-types.tssrc/agents/harness/native-hook-relay-events.tssrc/agents/cli-runner/execute-node-claude.tssrc/agents/cli-runner/cli-live-session-registry.tssrc/agents/harness/support.tssrc/agents/harness/tool-result-facts.tssrc/agents/embedded-agent-runner/run/attempt-normalization.tssrc/agents/harness/user-input-bridge.tssrc/agents/embedded-agent-runner/result-fallback-classifier.tssrc/agents/cli-runner/cli-native-tool-approval.tssrc/agents/embedded-agent-runner/run/history-image-prune.tssrc/agents/harness/structured-input.tssrc/agents/cli-runner/bundle-mcp-codex.tssrc/agents/embedded-agent-runner/run/tool-error-warning.tssrc/agents/embedded-agent-runner/run/attempt-tool-call-stream-normalization.tssrc/agents/embedded-agent-runner/run/setup.tssrc/agents/embedded-agent-runner/run/attempt-tool-construction-plan.tssrc/agents/embedded-agent-runner/run/attempt-session-runtime-prepare.tssrc/agents/embedded-agent-runner/cli-backend-dispatch.tssrc/agents/cli-runner/types.tssrc/agents/embedded-agent-runner/stream-resolution.tssrc/agents/embedded-agent-runner/run/attempt-prompt-preflight.tssrc/agents/embedded-agent-runner/compaction-runtime-preparation.tssrc/agents/harness/context-engine-turn-attempt.tssrc/agents/embedded-agent-runner/run/incomplete-turn-classification.tssrc/agents/embedded-agent-runner/run-entry-terminal.tssrc/agents/embedded-agent-runner/run/attempt-bundle-tools.tssrc/agents/embedded-agent-runner/openrouter-model-capabilities.tssrc/agents/embedded-agent-runner/message-visibility.tssrc/agents/harness/selection-decision.tssrc/agents/harness/native-session/binding-leases.tssrc/agents/embedded-agent-runner/model.provider-hooks.tssrc/agents/harness/context-engine-logical-turn.tssrc/agents/embedded-agent-runner/run/auth-profile-success.tssrc/agents/embedded-agent-runner/run/attempt.model-diagnostic-events.tssrc/agents/embedded-agent-runner/run/session-prompt-state.tssrc/agents/embedded-agent-runner/run/attempt-history-prepare.tssrc/agents/embedded-agent-runner/run/attempt-client-tools.tssrc/agents/main-session-recovery/main-session-recovery-lifecycle.tssrc/agents/cli-runner/mcp-grant-context.tssrc/agents/embedded-agent-runner/run/auth-plan.tssrc/agents/embedded-agent-runner/run/attempt-tool-catalog.tssrc/agents/harness/lifecycle-hook-helpers.tssrc/agents/embedded-agent-runner/transcript-rewrite.tssrc/agents/embedded-agent-runner/run/attempt-async-tasks.tssrc/agents/embedded-agent-runner/cli-backend-dispatch-transcript.tssrc/agents/embedded-agent-runner/run/failover-policy.tssrc/agents/embedded-agent-runner/run/helpers.tssrc/agents/harness/structured-input-execution.tssrc/agents/embedded-agent-runner/model.inline-provider.tssrc/agents/harness/tool-surface-bridge.tssrc/agents/embedded-agent-runner/model.configured-fallback.tssrc/agents/harness/structured-input-boundary.tssrc/agents/harness/prompt-compaction-hook-helpers.tssrc/agents/harness/runtime-plugin.tssrc/agents/harness/native-hook-relay-store.kernel.tssrc/agents/embedded-agent-runner/run/attempt-transcript-lifecycle.tssrc/agents/embedded-agent-runner/sandbox-skills.tssrc/agents/embedded-agent-runner/run/provider-review-run.tssrc/agents/failover/assistant-request-failure-copy.tssrc/agents/cli-runner/run-diagnostics.tssrc/agents/embedded-agent-runner/run/deferred-lifecycle-owner.tssrc/agents/harness/native-hook-relay-client.tssrc/agents/embedded-agent-runner/history.tssrc/agents/cli-runner/history-boundary.tssrc/agents/embedded-agent-runner/run/attempt-context-engine-helpers.tssrc/agents/embedded-agent-runner/session-prompt-state.tssrc/agents/harness/native-hook-relay-utils.tssrc/agents/cli-runner/cli-run-recovery.tssrc/agents/cli-runner/execute-logging.tssrc/agents/failover/error.tssrc/agents/embedded-agent-runner/run/attempt-tool-call-name-resolution.tssrc/agents/harness/tool-authority.runtime.tssrc/agents/embedded-agent-runner/run/pre-persisted-user-turn.tssrc/agents/main-session-recovery/main-session-restart-recovery-failure.tssrc/agents/embedded-agent-runner/run/provider-review-continuation.tssrc/agents/harness/native-session/binding-lifecycle.tssrc/agents/embedded-agent-runner/run/attempt-execution-phase.tssrc/agents/harness/native-session/binding-generation.tssrc/agents/embedded-agent-runner/run/attempt-session-settle.tsNo configuration, protocol, database schema or dependency changes. No bugs or flaky tests identified in source inspection. Public SDK contracts retained except two unused throwing retired-file testing members, with no in-repo or documented consumers.