Repository navigation
Check a question against the owner's earlier answers before asking it again (GST-3025) - #4467
Merged
Merged
Conversation
… sending it (GST-3025) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…arry limits Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… targets and agent names like other fields Screen no longer proposes an older blanket yes when a newer or narrower matching answer can't be taken. --target must be one lower-case token, as the docs say. --words-by agent ids are length-capped, one line and secret-scanned. A second supersede or revoke of a row that is already replaced is refused instead of leaving the record unreadable. Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: p1/specialist-batched#2 reader=state-machines Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… row file whose write failed Reads and writes now check that owner-answers/ and its rows/, verifications/ and log/ folders resolve inside the owner's Drive folder (or the record folder off Capy), before and after creating them. A write that fails after its file is created closes and removes the file, so the same add can be rerun instead of leaving the record unreadable. Review-Finding: p3/outside-voice#1 reader=outside-voice Review-Finding: p3/outside-voice#2 reader=outside-voice 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 18, 2026
- A test, or a scratch repository in the temp directory, can no longer write approval rows into your real Capy Drive (GST-3027). (#4466) - An unattended /autoplan run on Claude Code no longer says the publication guard is off while it is on. (#4481) - A phase report written only in reasoning now gets a denial that says so and names the fix. (#4481) - `gstack-autoplan revise` no longer refuses a plan that the first `next` accepted. (#4470) - `revise --plan` with a different file now says the run follows that file. (#4470) - A second-model plan review in `/autoplan` is no longer reported as unavailable when it actually ran (GST-3051). (#4471) - The /ship conductor trial plan now lets case reverts that conflict with later code be resolved by hand in docs, tests and the planted file, so large pull requests can be cases (GST-3003). (#4460) - A locked plan for a trial of /ship without its separate conductor subagent (GST-3003). (#4456) - A driven /ship now runs each phase as one command, counts its calls, and stops itself at 100 minutes. (#4451) - /ship stops asking owners to clear two kinds of bookkeeping noise: base-side merge text and a reviewer's confirmation prose. (#4458) - A base merge that only touched base-side text no longer stops `/ship` finish for an owner's grant. (#4458) - A reviewer's confirmation prose no longer becomes a Critical finding that only an owner can clear. (#4458) - A CI run that passed only after its failed jobs were re-run is now marked wherever gstack reuses it. (#4473) - /ship reuses CI's passing test run when merging the base changed no file, and stops instead of quietly starting hour-long test runs or reviewing an empty diff (GST-3019). (#4461) - /ship on Codex no longer stops at the test coverage audit. (#4489) - A cold first-use check before an app build reaches its owner (GST-3025). (#4465) - `skill_prefix=true` now survives updates when gbrain is installed. (#4454) - The OpenClaw docs no longer send you to ClawHub, which held only April 2026 builds of office-hours, ceo-review and retro and no longer has gstack skills (the docs also said four skills while listing three). (#4454) - `gstack-issue-links` no longer reads other repositories' issues as gstack's. (#4454) - /ship's pre-gate finds the tests of a monorepo app that imports through its own `@/` alias. (#4464) - /office-hours explains why it recommends a mode. (#4450) - /office-hours keeps its 34 founder videos and essays out of the skill file. (#4463) - Two `gstack-owner-answers add` runs for the same answer no longer collide. (#4490) - A Captain can check an ask against the owner's earlier answers before sending it. (#4467) - `gstack-post` stops reading /ship's own receipt identifiers as phone numbers, so posting a /ship PR body no longer needs a confirm. (#4488) - GitHub release notes now list every change in plain words, with a link to its pull request. (#4390) - gstack's router no longer gives bug reports a special rule, so the model fixes a bug the way it would without gstack. (#4442) - /ship's review plan now sorts Swift and Xcode files by risk instead of sending every iOS PR to the full review panel (GST-3041). (#4469) - /ship's review plan now sends Swift code that touches private user data to the full review panel (GST-3052). (#4472) - A round grant at /ship's review round cap now buys the fix round it names, in the same run or the next (GST-2968). (#4479) - The secrets check stops flagging three kinds of ordinary code as a secret, and catches two misses. (#4457) - A security finding's location and reason no longer go into a PR body. (#4486) - The token-capped /ship child on Claude Code now starts its prompt with the typed `/ship` command, so the skill actually loads. (#4487) - A /ship receipt now counts the second-model review's blocking findings, and refuses to be written while one is still open. (#4485) - A `/ship` with a token cap on Claude Code no longer stops at its first handoff. (#4452) - /ship's push step now always ends with one line that says whether it pushed (GST-3053). (#4474) - A PR's review-round count can no longer be overwritten by the body `/ship` posts. (#4440) - One queued record with a malformed path no longer stops artifacts sync for every project. (#4455) - A failed artifacts push stays reported until a push succeeds. (#4455) - The /sync-gbrain memory row no longer says OK when pages failed to import. (#4455) - ### Tests (#4495) - A policy-floor test no longer fails once gstack's own version reaches the minor after the newest policy key; it now checks a floor above both, so the v1.101.0.0 release can pass CI. (#4495) - CI now uploads free-suite test results to Trunk with analytics-uploader v2.1.8 and analytics-cli 0.17.0, up from v2.1.6 and 0.16.2. (#4453) - Packing a checkout for a Ubicloud run no longer fails when git beside it is rewriting a ref. (#4447) - The /plan-ceo-review HOLD SCOPE eval no longer fails a review because its follow-up question didn't repeat the mode name. (#4447) - Unattended /autoplan now records the owner's relayed gate reply instead of refusing it. (#4484) - Unattended /autoplan now runs the second-model review you turned on, and waits for it instead of ending the session. (#4459) - Two /autoplan runs started in the same second no longer share a run id. (#4459) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
An agent can now check a draft question against the owner's earlier answers before sending it, so the owner isn't asked again about something they already said yes to.
Why: owners repeat "don't ask me, just do it" across threads, because each new session forgets earlier answers. In a four-day sample, about 1% of 444 asks were repeats this could skip, so a two-week pilot decides whether it's kept.
Nothing to do: the new command is opt-in, and no existing command, install output or factory rule changes.
What changed
An owner who already said "yes, merge when green" gets asked again by the next thread, because that thread never saw the answer.
gstack-owner-answerskeeps those answers in one record outside every repository (on Capy, the owner's private Drive folder) andscreen --ask-fileproposes leaving out only the lines that a verified, current standing yes in the owner's own words covers exactly. Everything else stays in the ask, with related answers shown beside it.screenkeeps autoplan gate items, untyped, compound and limited lines, every "always a fresh ask" class, and any line where a newer or narrower answer for the same action can't be taken.Blast radius
New files only, plus nine new entries in the result-code table and its generated anchor map (bin/gstack-doctor-components.sh); no existing command reads the new module (checked by grepping every caller of lib/owner-answers.ts: only bin/gstack-owner-answers and its test).
Test Coverage
Coverage: 74% of 23 new code paths had a test at review time (17 of 23); the gaps were CLI
check,list, argument errors, revoke through the CLI, an unreadable rows folder and long-quote truncation. Review fixes added 6 tests since. Tests ran: owner-answers 26. Tests ran: result-codes 394.Pre-Landing Review
Six findings were fixed: a target that isn't one lower-case token was accepted; a multi-line agent name could forge output lines; a newer or narrower "no" didn't stop an older blanket yes from being proposed; a second replacement of a row left the record unreadable; a record folder linked outside the owner's folder was written and read through; and a failed write left an empty row behind. Nothing blocking is open. The second-model review (GPT-6.1 Sol) completed and raised the last two.
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/owner-answers.ts:136A secret in the agent id of --words-by is refused, but the message names field by instead of --words-by.lib/owner-answers.ts:321The screen veto keeps an ask for any newer non-takeable matching row (for example a newer standing yes not yet verified), not only a 'no'; it fails closed, and the docs describe the narrower case.lib/owner-answers.ts:89On Capy without GSTACK_CAPY=1 (a shell that has not loaded the launch file) the record lands on the machine's thrown-away state root instead of the Drive.lib/owner-answers.ts:104A verification binds only words; limits, words_by and recorded_by can be edited in the row file afterwards without voiding it.lib/owner-answers.ts:257Self-verify compares recorder and verifier names exactly; a case-only difference passes.lib/owner-answers.ts:119An omitted --scope defaults to all, the widest scope.bin/gstack-owner-answers:46CLI parsing: a value flag accepts the next flag as its value, a repeated flag overwrites, and the revoke error names a --supersedes flag the CLI does not have.lib/owner-answers.ts:193A dangling owner-answers/ link reads as an empty record instead of naming the link; every ask is still kept.lib/owner-answers.ts:390logDecision still follows a link planted at the file log/.jsonl; the appended line holds no secrets.lib/owner-answers.ts:36The spend keyword net misses 'credits', 'paid' and plural 'caps'; a take still needs an exact typed match, a verified owner row and a person confirming the take.Exploratory QA
Functional smoke on the CLI with a throwaway record: before the fixes, three probes reproduced the target, agent-name and narrower-answer findings; after them, all seven probes pass (record, verify, propose, refuse a bad target, refuse a multi-line agent name, record a narrower decision, keep the ask). The secret-in-words probe was not run because the evidence recorder refuses sensitive input; the unit test covers it.
TODOS
No TODO items completed in this PR.
Documentation
Status: current. The docs match the code and nothing was edited.
Scope: Base da98d0a to head d13d3f6 on branch owner-answers-record: 6 commits, 8 files, with no staged, unstaged or new files. The change adds
gstack-owner-answers(inbin/andlib/owner-answers.ts), nineOWNER_ANSWERS_*result codes, docs/owner-answers.md, troubleshooting anchors and a changelog.d fragment.Documentation health
--eventrule all match lib/owner-answers.ts.Coverage debt:
gstack-owner-answershas a reference page and a how-to (the pilot steps). No README.md or Captain guide (capy/skill/gstack/captain.md) links to it. That looks deliberate: it is a pilot, and shared guidance waits for the keep decision. It has no tutorial.Diagram drift: none.
Tests
Agent notes
Approvals
Approved: yes (record r-53e6d9d26519). The full approval record stays private.
Plan: approved (record r-bd0b9372dba7)
Plan check: approved (record r-bd0b9372dba7)
Agent notes