Skip to content

qa-loops: the review engine is review-code's lane — the Reviewer worker runs the workflow at every level - #142

Merged
SSFSKIM merged 5 commits into
mainfrom
qa-loops-native-review
Sep 15, 2026
Merged

SSFSKIM merged 5 commits into
mainfrom
qa-loops-native-review

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Sep 13, 2026 •

Copy link
Copy Markdown
Owner

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.

  • START ENGINE now runs the lane's workflow (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 (no repo argument), so nothing it runs touches the worker's checkout.
  • Level is the highest of three signals: the rung the ticket's spec names in its verification entry, the operator's REVIEW_LEVEL floor (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.
  • Fan-out survives at single-reviewer levels as one to three lensed calls (lens), diff-derived; the panel owns its own lenses.
  • Fail-closed moved from the codex sandbox log to the result: interrupted is a failed sweep at every level; at single-reviewer levels a correct verdict 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.
  • Audit before findings is stated as discipline: a result that lands before the compliance audit is written waits for it (the codex file boundary used to give this order for free).
  • Bindings: REVIEW_LEVEL (validated at dispatch) and REVIEW_CODE_DIR (a derived path, like IMPLEMENT_PROTOCOL_FILE) replace REVIEW_ENGINE, CODEX_REVIEW_MODEL, CODEX_REVIEW_EFFORT in the dispatcher, the bootstrap, and the skill.
  • The codex engine (review-engine.sh) and its hermetic suite move to tests/review-bench/, where run-case.sh --engine codex is their only consumer; codex-companion is untouched.
  • The operation manual, wave-board, the implement protocol's one clause, and Revision Notes on the three review design specs follow. The 2026-07-12 "codex-only" mandate is recorded as superseded by the human's direction of 2026-09-13.

Design, decisions, and surprises: docs/doperpowers/specs/2026-09-13-qa-loops-native-review-design.md (a spec that carries its own execution).

Reviews

  • Spec review (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.
  • Branch review (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 --bg seat spawned by sminos spawn … --worktree smoke-review-lane called the workflow at level low with no repo argument, ended its turn, and was re-invoked by the completion notification 21 minutes later; it wrote the result and SMOKE-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; no codex / review-engine / CODEX_REVIEW in the protocol; manual names no codex CLI prerequisite).

  • tests/qa-loops/test-review-dispatch.sh — all tests passed (334 PASS): prompt binds REVIEW_LEVEL and REVIEW_CODE_DIR, carries no engine script or codex env; an invalid REVIEW_LEVEL refuses before any spawn. Two assertions ("pins the QAgent model to opus") were already red on main (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.md returns only the tests' own assert_not_contains lines.

  • 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 onto main, the base is re-pointed at main, 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:

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.sh exits 0 and git diff --check is clean. The retired-binding sweep still returns only the tests' own assert_not_contains lines. No new behavior evaluation was run - the merge changed no behavior-shaping text.

Residue

  • From the smoke's reviewer, on feat(methodology): one spec, sized by the gate — fold the ExecPlan track into the living spec #138's files (direct follow-ups, not this PR): skills/issue-tracker/references/ticket-gate.md still 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).
  • The smoke seat's worktree .claude/worktrees/smoke-review-lane (branch worktree-smoke-review-lane) is left for the human to remove; the seat is retired.
  • The reviewer agents may run the repository's own test suites from their isolated worktree; on this repo those suites are slow, so a single low-level review can take 20–40 minutes and approach the protocol's 45-minute bound. Telling the reviewer that CI covers the suites is a review-code prompt change, out of this PR's scope.
  • A panel finder that could not inspect the range but returned an empty findings array is invisible to the worker until the workflow surfaces finder explanations (review-code follow-on).
  • The codex panel and its tests remain the lane design's own later deletion.

…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
… 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 SSFSKIM reopened this Sep 15, 2026
@SSFSKIM
SSFSKIM changed the base branch from board-seams to main September 15, 2026 16:32
@SSFSKIM
SSFSKIM merged commit e7cb3e3 into main Sep 15, 2026
@SSFSKIM
SSFSKIM deleted the qa-loops-native-review branch September 15, 2026 16:47
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant