feat(continuation): extract post-compaction delegate dispatch helper#360
feat(continuation): extract post-compaction delegate dispatch helper#360cael-dandelion-cult wants to merge 1 commit intocael/325-canonical2from
Conversation
…rtable helper Stage 1 of #343 / #332 Item B path B (move chain-budget enforcement out of agent-runner inline loop). Per-delegate chain-budget evaluation and the spawnSubagentDirect call live in src/auto-reply/reply/post-compaction-delegate-dispatch.ts; agent-runner's post-compaction release block becomes a thin aggregator over the helper's discriminated outcomes. Same log strings, same system events, same re-stage trigger. Stage 2 (substrate-side payload kind + queue-drain delivery) is sketched in NOTE.md; the helper is the structural prerequisite that makes that follow-up tractable without a sprawling refactor.
💡 Codex Reviewopenclaw/src/auto-reply/reply/agent-runner.ts Lines 2114 to 2116 in cf6e62e
openclaw/src/auto-reply/reply/agent-runner.ts Lines 2121 to 2123 in cf6e62e Post-compaction dispatch initializes ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Closing as superseded by #354 (
|
Summary
cael/343-queue-drain-budgetontoce49d93113(mainafter docs(rfc): fixup pass — ToC regen, dev-state strip, narrative flow, current capability incorporation #358)Why
This is the prince-driven comparison lane for #343 queue-drain-budget work. It is intentionally narrower than the gpt2/codex sibling lane: this PR isolates the stage-1 extraction so the cohort can compare a minimal helper-first shape against the fuller queue-correctness/cap lane.
What changed
post-compaction-delegate-dispatch.tsagent-runner.tsNOTE.mdwith the stage-1/stage-2 rationale and follow-up sketchVerification
pnpm test src/auto-reply/reply/post-compaction-delegate-dispatch.test.ts src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts src/auto-reply/reply/post-compaction-context.test.ts src/auto-reply/reply/session.test.ts src/auto-reply/continuation-delegate-store.test.tsComparison surface
Sibling lane with fuller queue-model repairs:
frond-scribe/20260424/candidate-gpt2-354-codex-fixesThis PR exists so the cohort can byte-compare the narrower extraction against the more complete repair lane and decide whether to converge, cherry-pick, or supersede.