Skip to content

v1.92.76.0 wave(review): #3809 #3813 #3826 #3831 #3838 - #3848

Merged
capy-ai[bot] merged 43 commits into
mainfrom
wave/review-e7b551ebd865
Nov 2, 2026
Merged

capy-ai[bot] merged 43 commits into
mainfrom
wave/review-e7b551ebd865

Conversation

@garrytan

@garrytan garrytan commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3848,
  "head": "b306a49bc507911d216fa5c37e0f4b1e0ddcd104",
  "version": "1.92.66.0",
  "base": "main",
  "session_kind": "unattended",
  "head_tree": "26ac068a38f119ae3f085f45dd0c24acd0741b05",
  "product_patch_id": "f9c0a200edb1bb2e960d55740ff0f2d663e7ad0c",
  "gstack_version": "1.92.66.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 437,
    "rules": "551486253e156572",
    "base": "0c84f4ee14c32734313e68b700417e0748ad1d55",
    "registry": "0c84f4ee14c32734313e68b700417e0748ad1d55",
    "gate_scan": {
      "tagged": 0,
      "head": "b306a49bc507911d216fa5c37e0f4b1e0ddcd104"
    },
    "reasons": [
      "gate-class",
      "risk:money",
      "risk:security",
      "runtime=437"
    ],
    "risk": [
      "money",
      "security"
    ]
  },
  "pregate": "requires-remote cleared @26ac068a38f1 (1 checks, current for b306a49bc507)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41420425081",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/41420425035",
    "pregate.json/remote_gate: remote-gate tree=26ac068a38f1 tests=20141"
  ],
  "issues": {
    "fixes": [
      3650
    ],
    "refs": [
      3749,
      3809,
      3813,
      3831,
      3838
    ],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, CONTRIBUTING.md, AGENTS.md, CLAUDE.md against the 28 wave files"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 1,
    "deferred": 0,
    "noted": 1,
    "fixed": 3,
    "scope": "frozen",
    "fix_checks": 2,
    "rounds": 4,
    "dispatches": {
      "specialist": 6
    }
  },
  "review_loop_exception": {
    "accepted_by": "GStack Minder (GSTA-36)",
    "date": "2026-11-02",
    "via": "GSTA-36 message to GSTA-249",
    "reason": "rule 23 grant: one scoped fix-check on the one-line docs/review-policy.md docs-audit hunk plus one native-adversarial rebind; findings ship as open notes",
    "fix_check": {
      "head": "b306a49bc507911d216fa5c37e0f4b1e0ddcd104",
      "findings": 0,
      "files": [
        "docs/review-policy.md"
      ]
    }
  },
  "review_targeted": {
    "classes": [
      "money",
      "gate"
    ],
    "rules": "c82addff6fb60fa0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "f9c0a200edb1bb2e960d55740ff0f2d663e7ad0c",
    "status": "failed",
    "findings": 0,
    "raised_by": "targeted"
  }
}

Wave review-e7b551ebd865

One slot and one version for 5 PRs in area review, each merged unchanged with a merge commit:

Each constituent is closed with a link to this PR after it lands (gstack-ship-queue wave settle).

Issues

Fixes #3650
Refs #3749
Refs #3809
Refs #3813
Refs #3831
Refs #3838

What changed

Why

Five review-pipeline fixes touched the same files, so they land as one wave (R46) instead of five slots.

Blast radius

gstack-review-plan, gstack-diff-scope, gstack-gate-diff, the queue's depth check and /retro. No workflow, install, network or secret handling changed.

Pre-Landing Review

REVIEW_LOOP: passes=2 blocking_found=1 deferred=0 noted=1 fixed=3 scope=frozen fix_checks=2 dispatches=6

Review-loop exception: accepted by GStack Minder (GSTA-36) 2026-11-02 via GSTA-36 message to GSTA-249: rule 23 grant: one scoped fix-check on the one-line docs/review-policy.md docs-audit hunk plus one native-adversarial rebind; findings ship as open notes (fix-check at b306a49, 0 findings)

Gate edits: 9 listed, 1 read, 0 findings (the review-depth pin repin under GST-911-redos).

Review notes

  • adversarial-native: SVG_REFUSED is exported (for a test) as a mutable array; an importer could change verdicts. Low, not blocking; a shallow Object.freeze did not close it and was reverted.
  • targeted: fix(review): /ship planner misreads: chart SVG as code, session data as auth, stale local base (GST-911, GST-884) #3838's session-data exemption in bin/gstack-diff-scope can drop SCOPE_AUTH for a session-named JSON that code consumes. Filed under GST-961.
  • adversarial-native: JS \s is wider than CSS whitespace, so url(\u00a0#x) reads as same-document. This predates the branch and is kept unchanged by verdict identity.
  • test/review-targeted.test.ts end to end fails when run under a sourced gstack launch env (GSTACK_STATE_ROOT leaks into the fixture); it passes in CI and without that env.

Exploratory QA

Wave PR #3848 at 170b32a, functional surface (CLIs), report-only smoke (5 min / 12 probes; 4 used). Verdict: pass.

  • checkpoint 002: gstack-review-plan on a changed SVG holding a 1 MB whitespace run inside url(#a) planned in about 0.3 s, class docs (drawing).
  • checkpoint 003: gate-diff fixture lacked an origin remote; superseded.
  • checkpoint 004: gate-diff with origin configured reads origin/main over a stale local main (2 files, no upstream widening).
  • Capture 001: gstack-diff-scope main keeps SCOPE_BACKEND=false over a stale local main.

Limits: retro-metrics not probed; capture 003's fixture shape (origin refs without an origin remote) is not a real clone.

Documentation

Scope: audited the 28 files of the wave/review-e7b551ebd865 candidate (base 0c84f4e, head 5acdd24, no staged, unstaged or untracked changes) against the 135 docs in the candidate. This covered the review policy, skills, design and troubleshooting docs, the README/AGENTS/CLAUDE/CONTRIBUTING set, and the bin and lib behavior changes (origin-base resolution, SVG drawing check, retro history in the state root, sessions-data auth scope).

Result: docs already matched most of the changes. I made one edit to docs/review-policy.md, adding that an SVG with a DOCTYPE other than a bare <!DOCTYPE svg> or W3C's SVG DTD stays code. No tests were run.

Debt: the diff-scope base-resolution order is documented only in the changelog fragments and code comments, not in the docs.

Test plan

  • Focused lane: 520 tests pass; typecheck clean; test typecheck ratchet: none new.
  • Remote pregate on tree 26ac068a: 20,141 tests, 0 failed ($0.08); macOS and Windows lanes cleared by this head's CI runs.

garrytan and others added 30 commits November 1, 2026 16:16
…rees (#3749)

/retro saved snapshots under .context/retros inside the working tree, so a run
in a linked worktree saw none of the main checkout's history, reported "First
retro recorded", and wrote a snapshot that git worktree remove deletes.

gstack-retro-metrics --history [--next <date>] now resolves the history
directory as <state root>/projects/<slug>/retros (the slug is keyed on the git
common dir, so every worktree shares it), moves any legacy .context/retros from
this worktree and the main checkout into it, lists prior snapshots and prints
the next snapshot path. Step 12/13 and the gbrain prior-retros query use it.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ff-scope (#3650)

gstack-gate-diff and gstack-diff-scope resolved a bare base such as main to
the local branch whenever it shared history with HEAD. A local main that is
behind origin/main (a linked worktree, or a Capy clone, where local main
never moves) then set the merge base, so /ship's gate scan and specialist
scope also read commits already upstream. Both now prefer origin/<base>
when it resolves, the base /ship fetches and merges against.

Fixes #3650

Co-authored-by: exGeni <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nt runs (#3749 review)

Review pass 1 findings: a .context/retros that resolves outside its worktree
(or to the shared history itself) is left alone, so migration can no longer
delete the history it points at; moves are no-clobber with retry; a copy
identical to any same-date snapshot collapses; RETRO_FILE is reserved as {}
so overlapping runs in two worktrees never share a path; --next must be a
YYYY-MM-DD date; a missing option value no longer loops forever. Step 12
names RETRO_HISTORY_ERROR instead of reading it as a stale helper.

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>
…ough origin too)

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>
…remote never replaces the base)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…s both date inputs

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>
…Windows shard passes

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…cal main or a shadowing tag (GST-883, failing first)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…n/<base> by full ref name; review-plan scans the merge base its own diff used (GST-883)

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>
…the R51 rm and rmSync rules fail (GST-898)

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… verdict-identity replay

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nc window; repin on the GST-898 no-loss replay

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>
… auth, bare base in diff-scope and receipt depth (GST-911, GST-884, failing first)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…y; session data files are not auth; diff-scope and the receipt depth read origin/<base> by full ref name (GST-911, GST-884)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-padded character references; the security class reads a file's changed SVG lines joined (GST-911 review pass 1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… SVG (GST-911 review pass 2, failing first)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…g its value, so a stray quote cannot hide an external href (GST-911 review pass 2)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d): image-set(), image(), element() keep it code (GST-911 Step 11, failing first)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nd no function but url(#id), which closes image-set(), image(), element() and every other CSS load (GST-911 Step 11)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…unclosed style tags are refused in linear time, and every drawing verdict holds at 1 MB and 8 MB (GST-911, failing first)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ts and reading CDATA, so no hidden </style> ends it early and unclosed style tags refuse in linear time (GST-911)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan and others added 6 commits November 2, 2026 05:56
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	lib/review-risk.ts
#	test/review-packets-removed.test.ts
… rules (GST-898)

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

# Conflicts:
#	bin/gstack-gate-diff
#	lib/gate-diff/git.ts
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	docs/review-policy.md
#	lib/review-depth.ts
#	lib/review-risk.ts
#	test/review-packets-removed.test.ts
@trunk-io

trunk-io Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

… red-team CRITICAL)

SVG_REFUSED's url() entry backtracked quadratically on url( followed by a
long whitespace run (80k spaces: 820 ms; 1 MB: over 230 s), and
svgDrawing runs in collectLive and in collectCommit, which ship-queue
ready, train build and land call with no timeout. The rewritten entry
refuses exactly what #3838's pattern refused.

Repin lib/review-depth.ts under no-loss replay GST-911-redos
(verdict identity: 60,000 seeded strings, the edges and every SVG blob
in history, zero differences).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan and others added 6 commits November 2, 2026 09:05
- bin/gstack-diff-scope: _resolve_base takes a related local <base> before
  another remote's twin, the order resolveBase uses, so the two tools pick
  the same base for a bare name when origin/<base> is unrelated.
- lib/review-depth.ts: a drawing's DOCTYPE names no document but W3C's SVG
  DTD; SYSTEM and other PUBLIC identifiers keep the SVG code.

Repin lib/review-depth.ts under no-loss replay GST-911-redos (the DOCTYPE
change only keeps more SVGs code, so it drops no reviewer).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Exported only so test/review-risk-redos.test.ts can reach the url() entry;
a frozen readonly copy keeps any importer from changing verdicts while
DEPTH_RULES still reports the original rules.

Repin lib/review-depth.ts under no-loss replay GST-911-redos (no pattern
changed).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…p 11)"

The fix-check (wave review-2) showed Object.freeze is shallow: each RegExp
can still be changed in place, so the freeze did not close
adversarial-native#1, and it moved the tree past the one the Step 11
voices reviewed. The finding ships as an open note (its reviewer rated it
Low, not blocking; no production caller mutates the list).

Restores the lib/review-depth.ts pin under no-loss replay GST-911-redos.

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>
…ave review-2 docs audit)

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.

/ship helpers resolve the same bare <base> to different commits when the local base branch is behind origin

1 participant