Skip to content

Keep reviewer product challenges open on the approval page - #4431

Merged
capy-ai[bot] merged 6 commits into
mainfrom
approval-page-keeps-reviewer-product-challenges-open
Nov 17, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
approval-page-keeps-reviewer-product-challenges-open

Conversation

@garrytan

@garrytan garrytan commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

/autoplan's approval page no longer turns a reviewer's objection to a plan's scope, build order or direction into a default "keep your direction", because only lines the owner actually wrote now count as the owner's direction. The person approving a plan sees every reviewer's product challenge as a lettered choice instead of missing it.

What changed, why, review and tests

What changed

Before: in the replayed GHome-shaped run, round 1's build-order (F4) and promise-scope (F18) challenges disappeared once round 2 stayed silent about them, and round 2's one-voice ordering challenge (d1) was recommended as "keep your direction", because the planning agent's own draft counted as the owner's direction. The page had 2 lettered items. After: F4, F18 and d1 are lettered proposals recommending the reviewer's change (a: take the change, b: keep the plan's draft), the day-one table is the first thing on the page, and the page has 7 lettered items.

  • Owner's words. lib/autoplan-owner-text.ts parses ### Owner's words (one quoted bullet each), ### Day one and ### What it won't do yet. Reviewers report changes on any finding that changes scope, cost, direction, packaging or ordering, at any severity, and user_challenge with owner_quote: <n> only when the change goes against quote n. Quotes feed the owner-words redaction index from every plan text the run kept, so a quote a later revision removed stays redacted in public exports.
  • Gate items (lib/autoplan-gate-items.ts). A challenge to a quoted owner line keeps today's both-voices rule. A finding with changes against agent-written text becomes a proposal item; its changes is scope, cost or direction when any row names one, so its cost line reopens the phase. Declining a proposal behind a Critical or High finding keeps the plan's draft and carries the finding into the build as a blocking task. A plan with no Owner's words section keeps today's defaults plus one confirm_direction item. App plans get day-one and cut questions.
  • Open challenges carry across rounds. An earlier round's challenge stays on the page until the owner answers it, a later challenge or settled row covers it, or the confirm round marks it resolves. A later round staying silent closes nothing.
  • Briefs and docs. render --captain and the owner brief open with the day-one table, the cuts and the owner's words. docs/unattended.md, docs/troubleshooting.md and the Capy captain guide describe the new items.

Why

"The approval page hid the reviewer's build-order and scope objections behind keep your direction." The planning agent's draft was treated as the owner's own direction, so a one-voice product challenge defaulted to no change and an earlier round's challenge vanished when the next round said nothing. Now only the owner's quoted words are direction, and every other recommended change reaches the owner as a choice.

Blast radius

The change touches the /autoplan gate builder, its reviewer prompt (autoplan/DRIVER.md, regenerated), the confirm and revise paths, the captain and owner briefs, and public exports. A plan with no Owner's words section keeps today's defaults plus one auto item, which the replay controls show (script ran: lettered items on main 5b4fa9e vs this branch, below), and the redaction index was reproduced leaking before the fix and redacted after it (repro).

Summary

Reviewers' product objections were being defaulted away on the approval page. The gate now separates the owner's quoted words from the agent's draft, turns any other recommended change into a lettered proposal whose cost line matches what revise does, keeps earlier rounds' challenges open until answered, and opens briefs with the day-one table. Review fixes in this PR keep removed owner quotes redacted, pick the strongest changes value for a proposal, and keep a declined High proposal as a blocking build task.

Test Coverage

Every changed source file has changed tests that reference it (per-file map from the coverage step: for example lib/autoplan-gate-items.ts 2 changed tests, lib/gate-list.ts 4, lib/headless-artifacts.ts 2 of 119 referencing).

  • test/autoplan-day-one-gate.test.ts (24 tests): a synthetic, public-safe replay (titles and fields only; no owner replies or real quotes) plus negative controls. Lettered items, same fixture on main 5b4fa9e → this branch: replay 2 → 7; (a) a challenge to a quoted owner line: 2 → 7, keeps "keep your direction"; (b) no Owner's words section: 2 → 8, today's default plus one confirm item; (c) a round-1 challenge resolved or answered: 2 → 5, does not resurface. The review fixes add an ordering-plus-scope proposal test, a declined-High-proposal test and a removed-quote redaction test; the pair and redaction tests fail when their fixes are reverted.
  • Pre-existing failure: autoplan-gate-judgment "b, as-is, or a token reply…" hits Bun's 5 s default timeout on main 5b4fa9e too (same machine, same file set: 490 pass, 1 fail). The /ship lane runs with --timeout=30000, where it passes.

Tests ran: targeted 1665

Pre-Landing Review

Full-depth review of a gate-class change: batched specialist and red team, a fix-check, the native adversarial voice and a cross-family outside voice, the targeted money reader, then two owner-granted scoped fix-checks (the review fixes, then the docs-audit edits). Six findings were fixed, both fix-checks were clean once two prose lines the collector misread as Critical were ruled false positives, and the outside voice ran on GPT-6.1 Sol because the Codex CLI is not installed.

Known gaps

Review notes

Below the blocking floor; recorded here and not fixed in this PR.

  • The table path of parseRecordFindings (lib/autoplan-reconcile.ts) reads no owner_quote or resolves column, so hand-run records cannot carry them (red-team Fix project-local /browse installs and harden setup #4).
  • A settled row's correlates can close a different open challenge in openEarlier (first fix-check docs: add README and CLAUDE.md #1).
  • An owner item answered b is asked again in a later round; agent-invented owner quotes count as direction; generic quotes over-redact; owner items with no phase can be refused at revise (adversarial Lows).
  • A High proposal answered b is proposed again when another item reopens its phase, because the blocking-task origin keeps it open (granted fix-check docs: add README and CLAUDE.md #1).
  • A CEO-only run no longer records the auto-kept decision row for a High proposal in decisions.jsonl or the report's conservative choices; the finding still appears under Findings (granted fix-check refactor: reorganize codebase into modular structure #2).
  • The declined-High test's buildTasks assertion holds with or without the fix; only its settledIds assertion depends on it (granted fix-check Fix project-local /browse installs and harden setup #4).

Exploratory QA

Functional surface: the gate builder on synthetic run directories, 6 captures, verdict pass. A below-High changes finding in a plan with Owner's words becomes one lettered proposal; a Medium challenge with a bad owner quote, which reached the gate as nothing before the fix, is now a proposal; a round-2 Low row that only correlates with a round-1 challenge no longer closes it.

Design Review

No frontend files changed — design review skipped.

Eval Results

The PR eval selector picked 0 of 253 cases (narrow screen; the train gate's full census covers the derived gate cases), $0.

Review bot comments

No review bot comments.

Plan Completion

This run's invocation record holds no plan-completion audit result, so no plan items are claimed here.

Issues

Refs p1/red-team#2
Refs p1/red-team#3
Refs p1/specialist-batched#1
Refs p1v/adversarial-native#2
Refs p1v/outside-voice#1
Refs p1v/outside-voice#2

Verification Results

No Step 8.1 verification obligations were recorded for this run.

TODOS

No TODO items completed in this PR.

Documentation

Status: updated. Three authored docs were stale against the new /autoplan approval page. Each now gets a small factual fix, and nothing is blocked.

Scope: base 5b4fa9ea3 to head 247b77fde on approval-page-keeps-reviewer-product-challenges-open. That covers 19 committed files, one unstaged edit (the changelog.d fragment), and nothing staged or untracked. The new public surface is /autoplan's ### Owner's words, ### Day one and ### What it won't do yet plan sections. It also adds the reviewer finding fields owner_quote and resolves, changes values packaging and ordering at any severity, and the gate item classes proposal, confirm_direction, day_one, cut and cuts. The owner and captain briefs now open with a day-one block, and public exports redact quotes from the plan's Owner's words. I found related docs by searching all tracked docs and templates. No banned-terms list exists.

Documentation health:

  • docs/unattended.md: Updated. The RESULT FORMAT contract now covers changes at any severity (packaging and ordering included), user_challenge with owner_quote, and the no-section fallback. The gate step lists proposal, confirm-direction, day-one and cut items, plus earlier-round challenges that stay open. The agent-words rule lists every uc item kind. The public-copy "Whose words" bullet includes Owner's words quotes, removed ones included. The shadow item_class list has the five new classes. The owner brief opens with the day-one block.
  • docs/troubleshooting.md: Updated. The OWNER_REPLY_REQUIRED Meaning lists proposals and day-one or cut questions as owner-only uc items. The ARTIFACT_OWNER_WORDS Meaning includes quotes from the plan's Owner's words.
  • capy/skill/gstack/captain.md: Updated. The gstack-owner-brief render --captain output now lists the day-one table, the cuts and the owner's words before the ELI5 summary.
  • autoplan/DRIVER.md: Current. This is generated output, and its RESULT FORMAT already matches lib/autoplan-prompts.ts on this branch.
  • changelog.d/approval-page-keeps-reviewer-product-challenges-open.md: Current. The parent owns it, so I did not edit it.
  • README.md, CLAUDE.md, AGENTS.md, CONTRIBUTING.md, docs/captain.md: Current. None of them covers the changed gate.
  • CHANGELOG.md, TODOS.md: Skipped. Ship-owned audits do not edit them. CHANGELOG's latest entry (1.99.5.0) matches VERSION.

Documentation Debt

  • Common gap: the ### Owner's words plan section has reference docs (unattended.md and DRIVER.md) but no how-to for plan authors. capy/skill/gstack/captain.md section 3 lists only the ELI5 and the four plan sections.
  • Common gap: the ### Day one table (columns action, frequency, source, feature, route, first build, check, with assumed as a source) and ### What it won't do yet have reference docs only. No how-to shows the expected format.
  • Diagram drift: none. No module was renamed or removed. The branch adds lib/autoplan-gate-items.ts and lib/autoplan-owner-text.ts.
  • /document-generate could fill the how-to gaps.

Test plan

  • bun test --timeout=30000 test/autoplan-*.test.ts test/captain-brief.test.ts test/gate-list.test.ts test/headless-artifacts.test.ts test/owner-brief-contributor-banned.test.ts test/agent-notes.test.ts: 1665 pass, 6 skip, 0 fail across 70 files at ed1dd85
  • Free Tests dispatched on the branch at ed1dd85 (run 44066916833) and Windows Smoke (run 44066923445): green, carried by the pregate
  • bun run gen:skill-docs: no diff; typecheck, module-size ratchet and conflict markers pass

🤖 Generated with Claude Code

Agent notes

Do not land before 2026-11-21 (freeze). GStack Minder lands it after the freeze. PR 2 (skill text) stays on a pushed branch for GST-2944's eval arm and is not part of this PR. No VERSION or CHANGELOG edits; the entry is in changelog.d/.

REVIEW_LOOP: passes=1 blocking_found=2 deferred=0 noted=6 fixed=3 scope=frozen unbound=3 fix_checks=3 dispatches=6 est_input_tokens=58004
Gate edits: none detected (6 listed, 4 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Ruled note: lib/autoplan-gate.ts:257:fix-check at 3c01f91 ruled by Captain GStack Minder (GSTA-36) at 2026-11-17T10:08:19.319Z: false positive: the collector parsed a prose sentence in the fix-check reply as a Critical; no defect (approval a-ac6ea1b1f719)
Ruled note: docs/unattended.md:533:fix-check at ed1dd85 ruled by Captain GStack Minder (GSTA-36) at 2026-11-17T10:29:30.232Z: false positive: the collector parsed a prose bullet in the fix-check reply (blocking=0, NO FINDINGS) as a Critical; no defect (approval a-3f319eaf2b73)
Outside review: ran on gpt-6.1-sol (Codex CLI not installed); its two Blocks: yes findings were fixed under grant a-276cbb27154d.

Approvals

Approved: yes (record r-99e12055288e). The full approval record stays private.
Plan: approved (record r-a9fcbafe14c6)
Plan check: approved (record r-a9fcbafe14c6)

Refs GST-2947

{
  "schema_version": 1,
  "pr": 4431,
  "head": "ed1dd85c2036ba61209bac031efed23fb777eafb",
  "version": "1.99.5.0",
  "base": "main",
  "gate": {
    "targeted": {
      "pass": 1665,
      "fail": 0,
      "skip": 6
    }
  },
  "session_kind": "unattended",
  "run": "ship-4431-1",
  "head_tree": "b1b3c3cca68f1087cbca0d4f24c94e168daeb920",
  "product_patch_id": "1a05dfa1cbe7c9515fc9df39fe6d941d2af41ea2",
  "gstack_version": "1.99.5.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 440,
    "rules": "66e5174161eecc2c",
    "base": "800a9269fdcd600d80b8d59b02f5c3f1dd0b3c84",
    "registry": "800a9269fdcd600d80b8d59b02f5c3f1dd0b3c84",
    "gate_scan": {
      "tagged": 0,
      "head": "ed1dd85c2036ba61209bac031efed23fb777eafb"
    },
    "reasons": [
      "gate-class",
      "risk:money",
      "risk:security",
      "runtime=440"
    ],
    "risk": [
      "money",
      "security"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @b1b3c3cca68f (8 checks, current for ed1dd85c2036)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44066916833/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44066923445/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=b1b3c3cca68f tests=37361 skipped=76 runs=44066916833/1 profiles=ci-reuse/free-tests heads=ed1dd85c2036 verified=2026-11-17T11:39:01.889Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/ (all tracked docs), autoplan/DRIVER.md.tmpl, capy/skill/gstack/captain.md, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 6,
    "fixed": 3,
    "scope": "frozen",
    "fix_checks": 3,
    "rounds": 4,
    "est_input_tokens": 58004,
    "unbound": 3,
    "dispatches": {
      "specialist-batched": 1,
      "red-team": 1,
      "fix-check": 3,
      "targeted": 1
    }
  },
  "ruled_notes": [
    {
      "finding": "lib/autoplan-gate.ts:257:fix-check",
      "head": "3c01f9119c9df00e586b199fab326aa34e573818",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "false positive: the collector parsed a prose sentence in the fix-check reply as a Critical; no defect",
      "at": "2026-11-17T10:08:19.319Z",
      "approval": "a-ac6ea1b1f719"
    },
    {
      "finding": "docs/unattended.md:533:fix-check",
      "head": "ed1dd85c2036ba61209bac031efed23fb777eafb",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "false positive: the collector parsed a prose bullet in the fix-check reply (blocking=0, NO FINDINGS) as a Critical; no defect",
      "at": "2026-11-17T10:29:30.232Z",
      "approval": "a-3f319eaf2b73"
    }
  ],
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "8811fd300bf305f0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "1a05dfa1cbe7c9515fc9df39fe6d941d2af41ea2",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}
{"head":"ed1dd85c2036ba61209bac031efed23fb777eafb","version":"1.99.5.0","gstack_version":"1.99.5.0","run":"ship-4431-1","review_loop":{"passes":1,"blocking_found":2,"deferred":0,"noted":6,"fixed":3,"scope":"frozen","fix_checks":3,"rounds":4,"est_input_tokens":58004,"unbound":3,"dispatches":{"specialist-batched":1,"red-team":1,"fix-check":3,"targeted":1}},"depth":"full"}

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 5 commits November 17, 2026 09:02
…g the gate

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…n the cut list changes

A challenge with no change kind and no real owner quote now becomes a proposal instead of vanishing. An ordinary finding that only mentions an earlier challenge no longer closes it. The cut list and confirm-direction items carry their content in their origin, so an earlier answer is not reused for a changed list.

Review-Finding: p1/specialist-batched#1 reader=specialist-batched
Review-Finding: p1/red-team#2 reader=red-team
Review-Finding: p1/red-team#3 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ng tasks when declined

Public exports now redact the Owner's words from every plan text the run kept, so a quote a revision removed stays hidden in earlier reviewer results. A paired proposal takes the heaviest change either reviewer named, so an ordering-plus-scope pair is re-reviewed instead of settled. A proposal behind a Critical or High finding offers b as keep the draft and carry it into the build as a blocking task, and only a settles it.

Review-Finding: p1v/outside-voice#1 reader=outside-voice
Review-Finding: p1v/outside-voice#2 reader=outside-voice
Review-Finding: p1v/adversarial-native#2 reader=adversarial-native
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…pproval page

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-Authored-By: Claude <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit c5250de into main Nov 17, 2026
85 checks passed
capy-ai Bot added a commit that referenced this pull request Nov 17, 2026
- /autoplan's approval page no longer hides a reviewer's product objection behind "keep your direction". (#4431)
- Every skill that loads the shared preamble, on every host, now says to ask a question once and to check a file before handing it over. (#4383)
- The Captain manuals now name the `Failed or skipped:` and `Also changed:` lines that READY and lane reports carry. (#4432)
- gstack's shell locks hold again on Ubuntu 26.04, where `mkdir` reports success when another process won the race (GST-2247). (#4262)
- `test/gstack-lock-race.test.ts` runs the old pattern and the helper against a PATH shim that behaves like uutils 0.8.0 `mkdir`, so it runs on any runner image: the old pattern lets two of four racers win, the helper admits exactly one in each of 60 races and never overlaps across take, hold and release loops, and parallel `gstack-config` writers keep every key. (#4262)
- Windows Setup E2E now runs when `bin/gstack-lock.sh` changes. (#4433)
- Claude Code's skill list now says when to use each gstack skill, so Opus loads /review and /plan-eng-review when a request fits. (#4387)
- A pull request's merge head can no longer keep its `/ship` receipt without a full review. (#4365)
- `/ship` now counts review rounds per pull request, and the head that merges always gets a full review. (#4360)
- /ship's documentation audit no longer accepts a passing result when an earlier line from the same audit said "blocked". (#4434)
- /ship's documentation audit no longer spends an attempt when the audit child writes text after its result. (#4285)
- The README lists the two new guides, and the install doc counts its hooks right. (#4403)
- docs/releases.md now says the stable release cut treats a failed commit status as red and a pending one as still going, as it has since #4257. (#4436)
- /ship's `finish --docs-requested` now accepts a docs fix when the audit named the file with a line number. (#4437)
- Document the `.gstack/approval-classes.json` schema, `gstack-approval-classes` CLI commands, and owner approval citation format in `docs/ship-policy.md#approval-classes`. (#4355)
- `/eval-plan` now runs four result checks instead of leaving them to judgment. (#4384)
- The /review coverage-audit eval no longer fails a run that really read the source file when zsh stops a command line at an `echo ====` separator. (#4364)
- Sixteen in-repo documentation links reach their section again. (#4394)
- gstack agents now open every status report with what failed, what they didn't verify and what else they changed. (#4273)
- Two new short guides. (#4380)
- A skill you wrote whose contract still lists `check_after_last_edit` keeps the rest of its contract. (#4439)
- The ship policy guide now explains how to merge any pull request with `gstack-ship-queue land`, even in a repository with one maintainer. (#4377)
- /ship's test step runs a large unit suite on Linux. (#4426)
- Every skill that loads the shared preamble, on every host, now says never to print a whole environment, git config or process table. (#4382)
- Pull requests from /ship now open with at most three plain lines, and every merge lands as one commit titled with the PR title. (#4438)
- `gstack-pr-wait`, `gstack-ci-gate` and the release cut no longer call a commit green while a check on it failed. (#4257)
- `gstack-runaway` now says what a thread's cold and empty wakes cost, not just how many there were (GST-2770). (#4385)
- The optional Stop hook no longer checks for a test run after the last edit, and /verify asks for it in plain words instead. (#4428)
- /ship's test step says when it ran out of time, and you can set its budget. (#4429)
- The remote test command no longer puts every file on one command line. (#4429)
- The stable release no longer waits on the nightly Windows tests (GST-2815). (#4400)
- Ubicloud fan-outs can no longer overshoot the vCPU limit, and owners no longer delete each other's VMs. (#4430)
- hono is pinned to 4.13.16, which fixes five advisories the weekly OSV scan found in 4.13.13 (gstack#4406). (#4408)
- `package.json` overrides (#4408)
- `test/dependency-security.test.ts`: the lockfile floor check now covers `hono >= 4.13.16`. (#4408)
- The nightly Windows test run finishes again. (#4409)
- A short write-up checklist in ETHOS.md. (#4381)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot added a commit that referenced this pull request Nov 17, 2026
…' confirmation prose (GST-2975, GST-2972) (#4458)

/ship no longer stops for an owner's ruling when a base merge only
changes base-side text, such as the preamble hash in regenerated
SKILL.md files, and a reviewer's confirmation prose becomes a finding
the lead can lower with a reason.

Why: each of these cost a stopped /ship and an owner ruling on recent
PRs (#4383, ghome#16, #4431), which keeps unattended shipping from
finishing.

Nothing to do.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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