Skip to content

docs(ready): the ready gate's docs drop the second-look claim — describe the qa → loop → qa mechanism and its policy, cite #1344 for what was measured #1650

Closed

Description

@admarble

Epic: graph-2026-11-simplify Tier: mechanical Execution: sequant_run Blocked by: #1648 (both edit docs/reference/run-command.md)

Problem

D-2: the ready gate keeps its loop and drops its second-look claim from the docs. The docs say the gate automates the maintainer's second look and that its value under the ac policy is "the fresh second look". On fixture #34 the gate's final verdict named +0.025 more planted defects than the first verdict, null by #1344's rule; what it did reliably was turn the first verdict's named catch into a fix commit (8 of 8 pairs). The n = 27 study the docs cite found 7 of 10 catches came after the human's "any gaps?", which the gate does not ask. Founding doc §4 lists the seven lines.

Acceptance Criteria

  • AC-1: None of the seven claim lines remains. Evidence: grep -cE 'automating the habitual|already automates exactly|value there is the \*\*fresh second look|reproduce the maintainer.s manual fresh-session|which .sequant ready. automates|post-QA second look' docs/features/run-ready-gate.md docs/reference/ready-command.md docs/reference/run-command.md | awk -F: '{s+=$2} END{print s}' → 0
  • AC-2: No link points at the old anchor. Evidence: grep -rn 'ready-gate-post-qa-second-look' README.md docs | grep -v '^docs/internal/' | wc -l | tr -d ' ' → 0
  • AC-3: The feature page says what the gate does and cites the measurement. Evidence: grep -c '#1344' docs/features/run-ready-gate.md → ≥ 1
  • AC-4: No code or skill edits. Evidence: git diff --name-only $(git merge-base origin/main HEAD)..HEAD | grep -vcE '^(docs/|CHANGELOG\.md$)' → 0 (constraint)

isGateTestEvidence classifies none of these ACs as a gate (parse-check, 2026-11-04).

May touch

docs/features/run-ready-gate.md, docs/reference/ready-command.md, docs/reference/run-command.md (the Ready Gate section and its heading only), CHANGELOG.

Non-Goals

  • The gate's behaviour, flags or loop (D-2 keeps them).
  • docs/investigations/ (dated records; left as written).
  • Skill text that mentions a second look (frozen).

Done when

The ready gate's docs describe a qa → loop → qa pass to a policy and claim no catch rate.

Activity

  1. added
    graph-2026-11-simplify
    on Nov 7, 2026
  2. admarble commented on Nov 11, 2026

    @admarble
    ContributorAuthor

    Runner context, 2026-11-11: repo state since this issue was written

    #1646, #1649, #1647 and #1648 merged; main is at d1eb83be7. On that tree:

  3. admarble commented on Nov 11, 2026

    @admarble
    ContributorAuthor

    Complexity: Simple (4 ACs, 2 directories)

    AC Quality Check

    All four ACs are single-line with command-shaped Evidence:. I ran them on main (d1eb83b): AC-1 = 7, AC-2 = 2, AC-3 = 0, so each fails today and can pass only after the work. AC-4 is a constraint and passes trivially on an unchanged tree. Non-Goals section present.

    Acceptance Criteria

    AC-1: None of the seven claim lines remains

    Verification: Integration Test (the grep command in the AC). Scenario: Given the 7 matching lines (run-ready-gate.md 3, 7, 29; ready-command.md 3, 21; run-command.md 256, 277) → When each is rewritten → Then the summed count is 0.
    Assumptions: The AC regex is narrower than the claim. run-command.md:258 ("automates the maintainer's habitual any-gaps → fix-gaps → merge triple") and run-ready-gate.md:5-7 ("Why") carry the same claim but do not match, so rewrite them too and check by reading.

    AC-2: No link points at the old anchor

    Verification: Integration Test. Scenario: Given the heading ### Ready Gate (post-QA second look) → When renamed → Then the two inbound links (run-ready-gate.md:62, run-command.md:67) use the new anchor and the count is 0.

    AC-3: Feature page says what the gate does and cites #1344

    Verification: Manual Test + grep. Scenario: run-ready-gate.md describes the qa → loop → qa pass to a policy, and cites #1344 (docs/investigations/qa-second-look-measured.md) with the measured result: final verdict +0.025 planted defects over the first, null by #1344's rule. What it reliably did was turn the first verdict's named catch into a fix commit (8 of 8 pairs).

    AC-4: No code or skill edits (constraint)

    Verification: Integration Test (the git diff command). The only changes are under docs/ and CHANGELOG.md.

    Implementation Plan

    Phase 1: Rewrite

    1. docs/features/run-ready-gate.md: rewrite the Quick Start, the "Why" and the ac-policy paragraph (line 29). Describe the mechanism and policy. State that the gate asks no "any gaps?" probe. Cite investigation(qa): measure the shipped second look — does --ready-gate catch what the human "any gaps?" caught? (needs a fixture with headroom) #1344. Claim no catch rate.
    2. docs/reference/ready-command.md: rewrite the Quick Start (line 3) and "Why it exists" (line 21). The n = 27 study can stay as history, but not as the justification for the gate. Keep the two structural-gap points if they stay accurate.
    3. docs/reference/run-command.md: edit only the Ready Gate section. Rename the heading (for example ### Ready Gate), rewrite lines 258 and 277, and update the inbound link at line 67 to #ready-gate. Do not touch the sections feat(run): --chain and multi-issue runs print an "experimental" warning with their measured success rates — fixed, dated counts; the code stays #1651 and feat(qa): Evidence that names an env file, a production CLI or a live URL is handed to a person — classified in code, listed in the qa prompt as "do not run", recorded per AC in the run log, printed with its command in the run summary #1652 edit.
    4. Update the run-ready-gate.md:62 link to the new anchor.

    Phase 2: Changelog and verify

    1. Add a ### Changed line to CHANGELOG.md [Unreleased], beside feat(run): the quality loop halts on a second consecutive AC_NOT_MET — its own counter, no ladder needed; maxIterations stays 3 #1646–chore(cli)!: remove --stacked, --reflect and --full-qa — flags, run.fullQa, the MCP fullQa parameter and run-reflect.ts; --chain keeps working #1648 and fix(skills): /assess and /merger still describe --stacked, removed in 3.0 by #1648 #1675.
    2. Run the four Evidence commands. Run rg -i 'second look' docs README.md outside docs/internal and docs/investigations for leftovers.

    Design Review

    1. Where does this logic belong? Docs only, in the three pages named under "May touch".
    2. Simplest correct approach? Edit text in place. The alternative of deleting the "Why" sections was rejected, because the pages still need to say what the gate is for.
    3. Existing pattern / re-patching? Pure docs rewrite; no code symbol involved, so no recurrence count applies.

    Open Questions

    1. Heading name — Recommendation: ### Ready Gate, anchor #ready-gate. Impact: any other name only changes the two links.

    Recommended Workflow

    Phases: exec → qa
    Quality Loop: disabled
    Reasoning: Docs-only, mechanical tier, no testgen or browser test. Run any build or vitest in the worktree, not the main checkout (#1656).

    Label Review

    Current: graph-2026-11-simplify. Recommended: add planned, plus docs to match the nature of the change.

  4. added
    planned
    on Nov 11, 2026
  5. admarble commented on Nov 11, 2026

    @admarble
    ContributorAuthor

    QA Verdict: AC_MET_BUT_NOT_A_PLUS

    AC coverage: 4/4 met

    Gaps:

    • The quoted +0.025 / 8-of-8 figures are attributed via link to a public doc that does not contain them and states the comparison was not run; reword the citation — fixable in this PR
    • Marketplace README generator still links the removed anchor; out of AC-2 grep scope and AC-4 forbids code edits here — needs owner to file or drop

    Suggestions:

    Reviewed in a separate session by claude-code (claude-opus-5-5); the change was written by claude-code (claude-sonnet-5-5).

  6. added a commit that references this issue on Nov 11, 2026
  7. added a commit that references this issue on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    graph-2026-11-simplifyplanned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions