Skip to content

v1.93.36.0 autoplan: R65 defaults: no review for bug fixes, one lean reviewer with the draft code for features - #3897

Merged
capy-ai[bot] merged 4 commits into
mainfrom
capy/r65-defaults-no-review
Nov 3, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
capy/r65-defaults-no-review

Conversation

@garrytan

@garrytan garrytan commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3897,
  "head": "96f96fffa45b56a62daa235d0d1ca30b1532f815",
  "version": "1.93.24.0",
  "base": "main",
  "session_kind": "unattended",
  "thread": "jam_01M6F8Z1344HTY1924HKVGDX6Z",
  "head_tree": "db2574e31af907eddea373696f0e2691b3bcc04d",
  "product_patch_id": "0f09d575b39deb9cd604734d7d37085adcc2d748",
  "gstack_version": "1.93.24.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 299,
    "rules": "b2272efd321ce7cb",
    "base": "e85005482addbd902d2557a3deb964b29b0335bb",
    "registry": "e85005482addbd902d2557a3deb964b29b0335bb",
    "gate_scan": {
      "tagged": 0,
      "head": "96f96fffa45b56a62daa235d0d1ca30b1532f815"
    },
    "reasons": [
      "risk:money",
      "risk:security",
      "runtime=299"
    ],
    "risk": [
      "money",
      "security"
    ]
  },
  "pregate": "requires-remote cleared @db2574e31af9 (1 checks, current for 96f96fffa45b)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41552507035/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/41552506944/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=db2574e31af9 tests=19805"
  ],
  "docs": {
    "status": "updated",
    "scope": "docs/unattended.md, autoplan/DRIVER.md, changelog.d fragment"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 15,
    "deferred": 0,
    "noted": 3,
    "fixed": 11,
    "scope": "frozen",
    "rounds": 2,
    "unrecorded": 6,
    "ledgers_read": 2,
    "dispatches": {
      "specialist": 2,
      "red-team": 2
    }
  },
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "c82addff6fb60fa0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "0f09d575b39deb9cd604734d7d37085adcc2d748",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

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 prints AUTOPLAN: not needed (bug fix; R65), a PROOF: reminder and GSTACK_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 --incorporates applies accepted changes without re-review and approves).
  • E12: the reviewer reads the draft code with the plan. The run writes git diff from the merge base with --base <ref> (default origin/HEAD, untracked files included, the run directory left out) into the snapshot as draft.diff, hashes it into run.json and the phase_opened journal row, and says DRAFT: none (<why>) when there is no code yet. The result must name the hash on a DRAFT: line or submit refuses it.
  • --full restores every phase and voice. Off Capy, and in interactive sessions, nothing changes.
  • The gate cost line and the owner brief say a lean rec reopens nothing.
  • After review: a failed git command reads DRAFT: none (draft capture failed: …) instead of "no code changes". A draft over 100,000 bytes is still inlined, cut there and marked shown=, 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, and DRAFT: names the checkout it diffed (root=). run stays the full run unless --kind feature is given, run --kind fix skips before any paid call, --kind fix --json prints one skipped object, and --kind fix on an --out that 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 --full on a first next that names no kind, so tests of the full run's mechanics are unchanged. Security read: captureDraft runs local git (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 existing GSTACK_CAPY check, 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 and draft: 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.

  • INFORMATIONAL lib/autoplan-lean.ts:36 SECRET_NAME misses .envrc, .env-production and .env_local although docs say .env*
  • INFORMATIONAL lib/autoplan-lean.ts:86 No test covers the per-file git diff --no-index failure branch
  • INFORMATIONAL lib/autoplan-lean.ts:88 git diff --no-index exits 1 on access errors (untracked symlink to a directory, nested repo), so those paths add empty output with no note

Open in Capy

…inding E12)

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

trunk-io Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits November 3, 2026 00:19
…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>
@github-actions github-actions Bot changed the title autoplan: R65 defaults: no review for bug fixes, one lean reviewer with the draft code for features v1.93.36.0 autoplan: R65 defaults: no review for bug fixes, one lean reviewer with the draft code for features Nov 3, 2026
@capy-ai
capy-ai Bot merged commit 5192908 into main Nov 3, 2026
45 checks passed
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