Repository navigation
qa-loops: the review engine is review-code's lane — the Reviewer worker runs the workflow at every level - #142
Merged
Merged
Conversation
…er runs the workflow at every level, REVIEW_LEVEL and REVIEW_CODE_DIR replace the codex bindings, the codex engine moves to the bench; bump 7.87.0
…eck is scoped to single-reviewer levels (the panel's explanation is workflow-generated); only the sweep's launch failure enters the outage path
… with retrospective
… 7.93.0 This branch's base, `board-seams`, merged as #141, so the PR is re-pointed at main. The branch already carried board-seams through its round-three head (9b6a924), so only two commits from that line are new here, plus main's own two. What arrived, and why none of it disturbs the native-review port: - `## Unresolved Review Findings` (#141's last fix) adds a self-contained paragraph to TRIAGE describing how the build's carried findings arrive in the PR body. It is about what TRIAGE reads, not about how the engine runs, so it sits beside the rewritten START ENGINE section without touching it. - The dependency yield (arkho #49) edits the implement protocol's park paragraph; this branch edits that file's pre-PR self-review clause. Different paragraphs, no overlap. - The reviewer agents now block `Skill` as well as `Agent` in frontmatter. That constrains a reviewer AGENT. START ENGINE calls the workflow from the Reviewer WORKER's own session, which is not a reviewer agent, so the port's mechanism is untouched — and the block reinforces the same no-recursion boundary the workflow already drew by running each reviewer in its own worktree. Conflicts were the four declared version manifests and the 2026-09-12 spec's Revision Notes, where both lines appended. Both sides' notes are kept; this branch's supersession note (the verification entry is the review's LEVEL, not a reason to fan out codex runs) stays last, since it is what amends Acceptance 16's fan-out clause. Versions resolved to main's 7.92.0, then re-bumped to 7.93.0 with scripts/bump-version.sh. The qa-loops design spec's own version references move with it, and a revision note records this rebase. Suites on the merged tree: qa-loops test-skill-entrypoint, test-bootstrap-parity; issue-tracker test-protocol-content; review-bench test-review-engine (at its moved path); skill-links test-cross-doc-refs (210 refs / 17 skills); version-bump test-bump-version. scripts/lint-shell.sh exit 0, whitespace check clean. The retired-binding sweep over skills/agents/scripts/tests/docs still returns only the tests' own assert_not_contains lines.
SSFSKIM
added a commit
that referenced
this pull request
Oct 25, 2026
…the harness tests wait for their fake claude Board #142. linkedom builds only the structure a document's tags spell out, and HTML lets a page leave out <html> or <body>. When it does, linkedom makes the page's first element the root and sets the rest of the page beside it, or leaves the content beside an empty body. For rfc-editor's RFCs, a run of bare <pre> blocks, Defuddle then found 0 words. Only the Chromium render recovered them, so a host without Chromium saved an empty page. Such a document is now rebuilt with the tags a browser supplies. Its parsed nodes move into a fresh document with importNode: the leading head elements into <head>, the rest into <body>. The <html> and <body> attributes are copied. Nothing is written out and parsed again. A document whose content is all in its <body> is parsed once, as before. The branch's first cut serialized the nodes and parsed the result. The review found that lossy, because linkedom writes a title's decoded text and attribute values unescaped. An escaped "</title><script>" in a title opened a script that swallowed the page. Across 50 saved documents only RFC 8439 changes, from 0 words to 14,648, the render's count. Live under WEB_CHROME=none it saves with no render. The eval harness tests: test_a_process_deaf_to_the_interrupt_is_killed and its sibling sent SIGINT at a 1 s limit counted from Popen. On a loaded machine the signal could reach the fake claude before it had set up its SIGINT handling, and the test failed. Popen now returns once the fake claude writes to a ready pipe, so the limit runs from there. With a 3 s start simulated, the old tests fail every time and the new ones pass. Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 25, 2026
web: a document without <html>/<body> extracts with no browser (board #142); load-independent harness tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The board's Reviewer worker (doperpowers:qa-loops) was the last place a codex process ran in the review path: START ENGINE shelled out to
review-engine.sh, and the protocol said "the reviewer is codex-only". This PR puts the loop on doperpowers:review-code's native lane, the follow-on the lane design (2026-09-09) recorded as next.code-review.js) from the worker's own session at every level: one registered reviewer (doperpowers:reviewer-low|medium|high) at the single-reviewer levels, the multi-lens panel at xhigh/max. Every reviewer works in a fresh worktree at the reviewed head (norepoargument), so nothing it runs touches the worker's checkout.REVIEW_LEVELfloor (default medium), and review-code's size rule; a risk-surface hit or whole-branch scale goes one rung up, and nothing lowers a rung the spec named. The verification call a spec records now reaches the board's review as the rung it names.lens), diff-derived; the panel owns its own lenses.interruptedis a failed sweep at every level; at single-reviewer levels acorrectverdict whose explanation names nothing examined, or says the reviewer could not inspect, is also a failed sweep. A failed sweep fails the round and enters the unchanged outage path (ENGINE-UNAVAILABLE); a lensed call that fails or will not launch is only recorded.REVIEW_LEVEL(validated at dispatch) andREVIEW_CODE_DIR(a derived path, likeIMPLEMENT_PROTOCOL_FILE) replaceREVIEW_ENGINE,CODEX_REVIEW_MODEL,CODEX_REVIEW_EFFORTin the dispatcher, the bootstrap, and the skill.review-engine.sh) and its hermetic suite move totests/review-bench/, whererun-case.sh --engine codexis their only consumer; codex-companion is untouched.Design, decisions, and surprises:
docs/doperpowers/specs/2026-09-13-qa-loops-native-review-design.md(a spec that carries its own execution).Reviews
doperpowers:adversarial-reviewer, background): four findings, all applied. The first overturned the draft's mechanism: a directly dispatched reviewer agent keeps Bash and would have run in the worker's shared checkout, dropping the read-only boundary the codex sandbox enforced, so the engine runs through the workflow at every level (isolated worktree per reviewer). The others added the fail-closed rule, the audit-ordering sentence, and the live smoke below.doperpowers:reviewer-high): two findings, both applied by a fix wave — the fail-closed explanation check is scoped to single-reviewer levels (the panel's explanation is workflow-generated and would have failed on every clean panel), and only the sweep's launch failure enters the outage path.Validation Evidence
Smoke in the production shape (Acceptance 12): a
claude --bgseat spawned bysminos spawn … --worktree smoke-review-lanecalled the workflow at level low with norepoargument, ended its turn, and was re-invoked by the completion notification 21 minutes later; it wrote the result andSMOKE-DONE incorrect 2 ok. The reviewer ran in the workflow's own scratch worktree (wf_450cf310-da9-1, removed afterwards); the seat's checkout was untouched. Its two findings land on feat(methodology): one spec, sized by the gate — fold the ExecPlan track into the living spec #138's files (ticket-gate wording; the archived skill's relative links) and are listed under Residue.tests/qa-loops/test-skill-entrypoint.sh— all tests passed (placeholder sets exact; new assertions for the lane, isolation, fail-closed, audit ordering, lensed-failure handling; nocodex/review-engine/CODEX_REVIEWin the protocol; manual names no codex CLI prerequisite).tests/qa-loops/test-review-dispatch.sh— all tests passed (334 PASS): prompt bindsREVIEW_LEVELandREVIEW_CODE_DIR, carries no engine script or codex env; an invalidREVIEW_LEVELrefuses before any spawn. Two assertions ("pins the QAgent model to opus") were already red onmain(anchored' opus$'on a spawn line that now carries--role/--stamp); re-anchored on--model opus( |$).tests/qa-loops/test-bootstrap-parity.sh— all tests passed.tests/review-bench/test-review-engine.sh(moved) — all green.tests/issue-tracker/test-protocol-content.sh— all tests passed.scripts/lint-shell.sh— exit 0.Sweep:
grep -rn -E 'review-engine|CODEX_REVIEW' skills agents scripts tests/qa-loops tests/issue-tracker tests/claude-code CLAUDE.md README.md docs/INSTALL-doperpowers.mdreturns only the tests' ownassert_not_containslines.Version 7.93.0 via
scripts/bump-version.sh(7.87.0 when first validated; re-bumped on the rebase below).Rebased onto main (2026-09-16)
This PR's original base,
board-seams, merged as #141, which closed this PR and left it unmergeable. The branch is now re-merged ontomain, the base is re-pointed atmain, and the version is re-bumped to 7.93.0, above main's 7.92.0. The push was a fast-forward; nothing was force-pushed or rewritten.This branch already carried board-seams through its round-three head (
9b6a9244), so only two commits from that line were new, alongside main's own two. None of it disturbs the port:## Unresolved Review Findings(board seams: one owner for the branch review, pre-spec builds in the Architect's session, design approval on the plan route #141's last fix) adds a self-contained paragraph to TRIAGE about how the build's carried findings arrive in the PR body. It concerns what TRIAGE reads, not how the engine runs, so it sits beside the rewritten START ENGINE section without touching it.Skillas well asAgentin frontmatter. That constrains a reviewer agent. START ENGINE calls the workflow from the Reviewer worker's own session, which is not a reviewer agent, so the port's mechanism is unaffected - and the block reinforces the same no-recursion boundary the workflow already draws by running each reviewer in its own worktree.Conflicts were the four declared version manifests and the 2026-09-12 spec's Revision Notes, where both lines appended. Both sides' notes are kept, with this branch's supersession note last, since it is what amends Acceptance 16's fan-out clause. The qa-loops design spec's own version references moved with the bump and a revision note records the rebase.
Suites re-run on the merged tree, all green:
tests/qa-loops/test-skill-entrypoint.sh,test-review-dispatch.sh,test-bootstrap-parity.sh;tests/issue-tracker/test-protocol-content.sh;tests/review-bench/test-review-engine.sh(at its moved path);tests/skill-links/test-cross-doc-refs.sh(210 references / 17 skills);tests/version-bump/test-bump-version.sh.scripts/lint-shell.shexits 0 andgit diff --checkis clean. The retired-binding sweep still returns only the tests' ownassert_not_containslines. No new behavior evaluation was run - the merge changed no behavior-shaping text.Residue
skills/issue-tracker/references/ticket-gate.mdstill says "when the work is several units" where the route should key the shape (P2);archive/execplan/SKILL.md's relative links did not move with the file (P3)..claude/worktrees/smoke-review-lane(branchworktree-smoke-review-lane) is left for the human to remove; the seat is retired.