Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 7, 2026, 9:46 PM ET / August 8, 2026, 01:46 UTC. ClawSweeper reviewWhat this changesThe PR moves embedded-run queue and steering coverage into a colocated test suite to avoid a max-lines CI violation without changing production behavior. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Current main already satisfies the max-lines constraint through the merged lifecycle split, but this protected, currently conflicting PR needs a maintainer decision on whether its alternative queue-focused organization is still worth preserving. Priority: P3 Review scores
Verification
How this fits togetherThe embedded-agent run registry tracks active runs and accepts queued or steering messages while an agent is running. These tests verify that registry boundary before queued input reaches the running agent. flowchart LR
A[Incoming user message] --> B[Embedded run registry]
B --> C[Active run handle]
C --> D[Queue and steering]
D --> E[Running agent]
F[Colocated regression suites] --> B
Decision needed
Why: Both layouts can satisfy the line limit, but the branch conflicts with a newer merged split and no longer repairs a current CI failure on its own. Before merge
Agent review detailsSecurityNone. PR surfaceTests +37. Total +37 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the current lifecycle-owned split as the canonical CI repair unless an owner explicitly prefers the queue-focused organization, in which case rebase and revalidate that deliberate replacement. Do we have a high-confidence way to reproduce the issue? No: current main's 835-line run-registry suite is already below the 1,000-line test-file limit, with no new baseline suppression. Is this the best way to solve the issue? No: current main already resolves the stated CI problem with a lifecycle-owned split; this alternate organization needs an explicit owner preference before it displaces that layout. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5a79d19ba179. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Resolves a problem where the
check-lintCI job fails onmainbecause the embedded-runner registry test file exceeds the max-lines limit.Why This Change Was Made
Moves the queue and steering cases intact into a concept-owned colocated test suite. This keeps both suites below the ratchet without raising the limit or suppressing the rule; production behavior and coverage are unchanged.
AI-assisted: yes. The patch was independently reviewed with the repository autoreview workflow.
User Impact
There is no runtime or user-visible behavior change. Maintainers regain a passing max-lines check, and the affected tests are organized around clearer lifecycle and queue/steering boundaries.
Evidence
node scripts/run-vitest.mjs src/agents/embedded-agent-runner/runs.test.ts src/agents/embedded-agent-runner/runs.queue.test.tsnode scripts/check-max-lines-ratchet.mjs --base origin/mainOPENCLAW_OXLINT_SKIP_PREPARE=1 node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/agents/embedded-agent-runner/runs.test.ts src/agents/embedded-agent-runner/runs.queue.test.ts../../node_modules/.bin/oxfmt --check src/agents/embedded-agent-runner/runs.test.ts src/agents/embedded-agent-runner/runs.queue.test.tsgit diff --check