Repository navigation
v1.92.45.0 /ship review scales to risk, with a 2-round cap (R51) - #3820
Merged
Merged
Conversation
…R51, GSTA-167) Non-risky code is light at any size; a risk class (money, auth, secret, security, user data) or gate code makes it full. UI or game text counts as docs. A fix-check counts as a round and round 2 never earns a third. The receipt records review_loop.rounds and review_depth.risk. Repins lib/review-depth.ts and pins lib/review-risk.ts under no-loss replay R51 (test/review-packets-removed.test.ts): the saved panel findings re-scored against this plan lose no blocker, and every gate, security, user-data and money fixture keeps main's reviewers plus the full panel. 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>
… owner; SQL deletes match in any case (R51, Captain choice A) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…epair, Captain grant) 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>
|
😎 This pull request was merged. |
4 tasks done
This was referenced Nov 1, 2026
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.
/ship review depth now follows risk instead of diff size, and a ship runs at most two review rounds. Code that touches security, user data, money, secrets, auth or the merge checks gets the full panel; other code is light at any size; docs, tests and eval write-ups get one reader. Implements Garry's R51 rule (2026-11-01).
Before and after of the depth rules and round cap, with the free replay results. Why: R51 says review should scale to risk, not size.
What changed
lib/review-risk.ts(new) holds the money, auth and secret matchers the targeted pass already used, plus security signals (trust boundaries, shell and HTML sinks, argv shells, recursive deletes,eval) and user-data signals (persistence paths,DELETE FROMin any case,deleteMany,destroy_all).lib/review-depth.tspicks the tier from the risk class. A larger diff never raises depth by itself. The depth refusal ingstack-ship-queue readyis kept.review_loop.roundsandreview_depth.risk; the summary line printsrounds=.Proof
PREGATE_REMOTE: tree=ce52910031845795f8af2e271f3bbe4cc76c4b3e tests=20548 failed=0 spent=0.07The replay is a free routing re-score of the depth rules, not a live preregistered no-loss replay with model reviewers.
Scope cut (Captain choice A)
The UI-text and chart-SVG light paths were removed after the round-2 voices found namespaced
<s:script>SVG and Vue:titlebypasses. UI text and SVG stay code-tier for now. GSTA-2's SVG and write-up input (gstack-evals#113) is deferred to an allowlist classifier follow-up, GST-850.Review loop
Review-loop exception: accepted by GStack Minder (Captain) 2026-11-01 via GSTA-167: Captain granted one scoped fix-check after round 2 and chose scope cut A; the second fix-check reviewed de056b0, and its two findings were repaired in aecb284, which was proved by diff and accepted by the Captain in place of another reader (fix-check at de056b0, 2 findings)
The second fix-check reviewed de056b0. Its two findings were repaired in aecb284, which no reader reviewed: the repair was proved by diff and accepted by the Captain in place of another reader.
Open notes (below the blocking floor, not fixed)
rm -Rf, split flags (rm -r -f),fs.rmand theenvwrapper.created(likely moot now: lib/review-collect.ts is reverted to main under choice A).execfrom a namednode:child_processimport (import { exec } from "node:child_process") is not matched as a shell sink. The Captain accepted it as a known gap for GST-850.readyand need a re-review.Merge order
Merges only after #3696 and #3698 land (#3803 landed as 216493f). #3702 conflicts in docs/review-policy.md, lib/review-depth.ts (DEPTH_RULES), test/review-depth.test.ts, test/review-packets-removed.test.ts and test/review-targeted.test.ts: the second PR to land rebases, unions DEPTH_RULES and repins under its replay, and R51's full panel follows main's first-pass Red Team rule.
Documentation
Scope: the committed diff on gsta-167-r51-risk-tiers (27 files, base 1ea8692) plus the docs that mention review depth, round caps and receipts. Result: docs/review-policy.md and the changelog fragment already cover the R51 tiers, risk classes, 2-round cap and receipt fields. One stale claim fixed in docs/ship-policy.md (review-loop item 3): it said "Two full passes plus one fix-check", and now says two rounds, with a fix-check counting as a round and the owner able to grant one scoped fix-check. Debt: none found. ship/sections/review-army.md.tmpl only names the fix-check step and carries no stale cap text.
Approvals
Source: gstack-approvals record for gsta-167-r51-risk-tiers (display only; not an approval citation).
Deferred to GST-850: CEO F2 (SSRF, archive and path traversal signals) and both GSTA-2 inputs (the SVG classifier and the write-up path).