Repository navigation
v1.92.61.0 fix(ship): risk classes cover outbound clients, archives, child_process and metering (GST-850) - #3829
Merged
Merged
Conversation
…ot yet repinned; review pending) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…he GST-850 no-loss replay Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…erpolation, escapes, YAML types, linear import scan) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ay code); repin under GST-850 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…any outbound client call), drop stale docs paragraph; repin Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…hor-run inputs for every new pattern Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
This was referenced Nov 2, 2026
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.
GST-850: the security class now covers outbound HTTP clients, archive extraction, path traversal and every
child_processimport, and the money class covers metering and charge code (gbrain-evals #289). UI text and SVGs stay code: the allowlist docs paths were built and then dropped for review cost.What changed
lib/review-risk.ts): coarse rules that parse no import clause and no call arguments.child_processornode:child_process, in any spelling.fetch,http(s).getor.request, axios, got, undici,requests,httpx, urllib). A literal URL gets no exemption.new URLfrom input, redirect toggles, proxy settings and host allowlists.path.joinorresolveon request or entry input, and'..'checks.exec(call.RISK_RULEShashes every new pattern, andDEPTH_RULESfolds it in. A temp-copy test proves the hash changes when a pattern does.test/review-packets-removed.test.tsare repinned under the new GST-850 replay id.Before / after
require, dynamicimport,type-first)nonecostume, CLIprintUsage, a plainproxyTarget,docs/usage.mdProof
failing-first.txt). The security and money rows still fail on main. The allowlist rows were later turned around to assert code.test/review-risk-linear.test.ts), including its anchor followed by a long run of the characters it repeats, and the minifiedimport a, {line.Review
Full panel, at most 2 rounds plus one Captain-granted scoped fix-check.
rmrule, which predates this PR (see Known issues).REVIEWED_TREE, socollectrefused it (COLLECT_WRONG_TREE). Its findings were verified and acted on. The tooling bug is filed separately.Dropped for review cost
The allowlist docs paths (a new presentational SVG as docs, a locale value edit as docs) were built in
lib/review-allowlist.tsand removed under Captain choice A. A future plan should start from these bypasses, all of which are test rows that class as code:.ts; edits inside an existing<script>; multi-line SVG attributes; namespaced<s:script>; Vue and Alpine bindings (:title,v-bind:,x-bind:,@click); exponential backtracking in the resource regex.command: rm -rfundersrc/i18n/)..propertiesfile under alocale,langori18ndirectory was admitted (roles/locale/tasks/main.yml,resources/lang/app.properties,tools/lang/rules.json).<script>, an uppercaseSCRIPT, anonclickhandler and a multi-lineonloadin SVG.<!-->and<!--->early, so a script after them was live.java\nscript:, protocol-relative//host,{{…}}in SVG attributes and numeric references spelling{{all got through.nullandfalsecounted as string edits; gettext%(name)swasn't checked as a placeholder.Below-floor notes
exec,orexec as run,binding inside an existing multi-linechild_processimport is not flagged when the import'sfromline is unchanged. A changedexec(call line still is.requests.push(…)on a JS variable, or a comment that only names axios or undici, routes the diff to security. The cost is extra review; nothing is missed.Known issues
rmrule/\brm\s+-(?:[a-z]*r[a-z]*f|[a-z]*f[a-z]*r)\b/is quadratic onrm -followed by a run ofrs (100k characters take 3.2 s). It is on main since v1.92.45.0 and isn't changed here. The linear-time claim indocs/review-policy.mdcovers only the rules GST-850 adds.Rule 25
Trial merges at 1ec2f43 with
--no-commitagainst #3698 (0003d49), #3826 (76ec425) and #3798 (38f1619) are all clean.Security read
No network calls, environment reads, permission changes, workflow, setup or install edits, and no new dependencies. The #289 fixture holds changed lines from garrytan/gbrain-evals#289, read as text through
gh pr diff. No gbrain-evals code was checked out or run.Approvals
config/localesstays code; chose A (drop the allowlist), then B+ (coarse rules) with one scoped fix-check, then B (leave R51's rule, file GST-898).Review-loop exception: accepted by GStack Minder (GSTA-36) 2026-11-02 via GSTA-36 message to GSTA-167: Round 1 at e664d8f, round 2 at c1eea4c, scoped fix-check at 41f1612. The outside voice's findings from both rounds were real and were fixed. The round-2 ledger reads dirty only because the outside voice was refused for the wrong tree (GST-897), so the judged set could not be certified. Granted by GStack Minder (GSTA-36) 2026-11-02. (fix-check at 41f1612, 1 finding)