Repository navigation
v1.93.36.0 autoplan: R65 defaults: no review for bug fixes, one lean reviewer with the draft code for features - #3897
Merged
Conversation
…inding E12) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…d, fence, secret-named files, run --kind, fix --json) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…l scan) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
3 tasks done
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.
What changed
R65 /autoplan defaults (GSTA-258, build E; design piece 5 plus fix E12).
gstack-autoplan next --kind fix: a bug fix gets no plan review. It printsAUTOPLAN: not needed (bug fix; R65), aPROOF:reminder andGSTACK_RESULT: skill=autoplan status=skipped run=-, exits 0 and writes nothing. The PR still needs the bug's proof.--kind feature, now the default for an unattended Capy run (GSTACK_CAPY=1) that names no kind, is the lean run: the eng phase alone with one native reviewer whose brief merges the CEO and Eng lenses (Design and DX only when scope detects them) and always asks "Any outside terms, licences or rights involved?". No outside voice,--max-rounds 1, no carry check, and one gate revision (revise --incorporatesapplies accepted changes without re-review and approves).git difffrom the merge base with--base <ref>(defaultorigin/HEAD, untracked files included, the run directory left out) into the snapshot asdraft.diff, hashes it intorun.jsonand thephase_openedjournal row, and saysDRAFT: none (<why>)when there is no code yet. The result must name the hash on aDRAFT:line or submit refuses it.--fullrestores every phase and voice. Off Capy, and in interactive sessions, nothing changes.recreopens nothing.DRAFT: none (draft capture failed: …)instead of "no code changes". A draft over 100,000 bytes is still inlined, cut there and markedshown=, so API reviewers without file tools see the code. The fence is longer than any tilde run in the draft. Untracked files named like secrets stay out with a note, andDRAFT:names the checkout it diffed (root=).runstays the full run unless--kind featureis given,run --kind fixskips before any paid call,--kind fix --jsonprints one skipped object, and--kind fixon an--outthat holds a run is refused.Why
Garry approved the R65 ship-check diet as gstack's default on 2026-11-02. Item 3: no autoplan for bug fixes; a feature gets one strong reviewer reading the plan and the draft code, one gate revision, no carry check, and the outside-terms question.
Blast radius
Unattended Capy autoplan runs change shape by default (one reviewer instead of up to eight attempts). Every other host and session keeps today's run. The Capy-host test helper pins
--fullon a firstnextthat names no kind, so tests of the full run's mechanics are unchanged. Security read:captureDraftruns localgit(rev-parse, merge-base, diff with--no-ext-diff --no-textconv, ls-files) in the working directory with a timeout and leaves out untracked files named like secrets; no network calls, no new env reads beyond the existingGSTACK_CAPYcheck, no dependencies, no workflow or install-script edits.Tests
test/autoplan-lean.test.ts(30 tests, each written to fail first): fix skip (text,--json,run --kind fix, live-run refusal), lean init, merged brief, draft hash anddraft: none, DRAFT receipt refusal, one gate revision to APPROVED, owner brief and Capy RELAY line, which sessions and commands default to lean, and the draft-capture edges (run dir inside the checkout, no merge base, more than 200 untracked files, failed git, large draft, tilde fence, secret-named files,root=). The review fixes failed first in 7 tests before the code changed.Remote pregate at 96f96ff (tree db2574e3): 19,805 tests, 0 failed; macOS and Windows obligations cleared from this head's CI runs.
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/autoplan-lean.ts:36SECRET_NAME misses .envrc, .env-production and .env_local although docs say .env*lib/autoplan-lean.ts:86No test covers the per-file git diff --no-index failure branchlib/autoplan-lean.ts:88git diff --no-index exits 1 on access errors (untracked symlink to a directory, nested repo), so those paths add empty output with no note