Repository navigation
Defaults name current models, and review stops reading "the HIGH branch" as a HIGH finding (GST-3462) - #4678
Merged
Conversation
…IGH branch as no severity The design prototype takes its models from design/src/models.ts, an unreported Gemini model is labelled Gemini 4 Argon, context-bill --exact counts with Claude Opus 5.5, and a capitalized severity word that names code in a reviewer's reply collects at INFORMATIONAL. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… HIGH, MEDIUM or LOW, and the prototype builds its request with the design binary's helper Review-Finding: p1/adversarial-native#1 reader=adversarial-native Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/adversarial-native#5 reader=adversarial-native Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/adversarial-native#6 reader=adversarial-native Review-Finding: p1/outside-voice#3 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ed label 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 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.
Three defaults gstack picks now name current models, and a reviewer's mention of a code name like "the HIGH branch" no longer becomes a HIGH finding.
Why: our rule is no older-generation model in a role we choose, and the review parser forced a ruling on two notes that only quoted code.
Nothing to do: no settings change; overrides work as before.
What changed
Review parser labels before and after. Code names like "the HIGH branch" no longer count as HIGH findings, and CRITICAL keeps its label.
Evidence
test/r116-model-defaults.test.ts(3 tests) andtest/review-ledger-name-use.test.ts(2 tests, with the captured reply from #4612's review) fail on main and pass here. The existing review-parser suites, including the never-weaker-than-main invariant and the "reaches the CRITICAL write path" control, pass.Before/after as text: Review parser labels before and after: code names like the HIGH branch no longer count as HIGH findings, and CRITICAL keeps its label
A reviewer who wrote "the redact-doc HIGH and scanner-failure branches" about redact-doc's HIGH exit path got that line collected as a HIGH finding nobody could lower. Now a capitalized HIGH, MEDIUM or LOW used as the name of something in the code ("the HIGH branch", "the MEDIUM and LOW tiers") collects at INFORMATIONAL when it is the line's only label, so the reviewer's own Severity fields decide. CRITICAL is never read as a name, even in "the HIGH and CRITICAL write paths", and a word that rates a finding ("the HIGH finding", "the HIGH vulnerability") keeps its label.
The design prototype script sent gpt-4o, which cannot drive the image tool's current model. It now builds its request with the design binary's own helper, so it takes the binary's models and stops with the binary's fix-it message on a pairing OpenAI would reject. A Gemini run whose CLI reports no model is labelled and priced as Gemini 4 Argon instead of Gemini 2.5 Pro, and
gstack-context-bill --exactcounts tokens with Claude Opus 5.5 instead of Opus 4.5. The judge model is unchanged, because it moves only with a recalibration run.Why
"No gpt-4o or older-generation model sits in a role we choose." Three defaults still did. Separately, a review of #4612 collected two notes that only quoted code as HIGH findings, and the lead had to rule on them by hand.
Blast radius
The parser change touches every /ship and /review reply the review parser collects. It can only lower HIGH, MEDIUM or LOW on a line with no Severity field, and
blockingRowcounts only rank 4 (CRITICAL or P0), so no blocker can drop (lib/review-ledger.ts read; the 31 test files that import the parser pass, 516 tests). The model defaults touch a dev-only script, a test adapter's fallback label and one CLI default.Pre-Landing Review
Two rounds. Round 1 found that the first version of the parser change read "the HIGH and CRITICAL write paths" as a code name and dropped a CRITICAL to INFORMATIONAL; two reviewers found it independently, and it is fixed with controls. Round 1 also moved the prototype onto the design binary's request helper. Round 2 found nothing at the blocking floor. Second-model review (GPT-6.2 Astra): completed.
Deferred findings
Blocking findings in code this PR did not change (review scope: frozen). They stay on this PR and are not filed as issues.
test/helpers/providers/gemini.ts:167run() passes only opts.model to resultFromGeminiStream, so a model requested through extraArgs is labelled with the unreported-model fallback when the stream omits it. Pre-existing; line 167 is unchanged by this PR.Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/context-bill.ts:66Divisor header should say which tokenizer a refit uses.test/helpers/providers/gemini.ts:79Unreported-model label is a guess recorded as if reported.sf-9864856e2e60security finding, details recorded privatelyExploratory QA
Three probes on the changed code, all pass: a code-name line collects INFORMATIONAL while a real HIGH lead stays HIGH; CRITICAL,
Blocks: yesand a rating noun keep CRITICAL, CRITICAL and HIGH; the prototype bundles with its new import (no live API call).Eval Results
No prompt, template or judge changed, so paid evals were not run. The selector lists behavior probes only because they import the review parser.
Scope Drift
Scope Check: CLEAN
Documentation
Status: updated. One factual addition to the review collection policy.
Scope: base c2b4f0d to HEAD dea7de7 (3 commits, 8 files: design/prototype.ts, lib/context-bill.ts, lib/review-ledger.ts, test/helpers/providers/gemini.ts, a changelog.d fragment and tests). There were no staged, unstaged or new files outside that set.
Documentation health:
Blocks: yeskeep blocking (GSTA-711).gstack-context-bill --exactdescription names no model.Coverage debt: The
--exact-modeldefault (now claude-opus-5-5) is documented only in the CLI usage text. The Gemini fallback model (gemini-4-argon) lives only in a test helper and needs no user documentation. design/prototype.ts is an internal script with no docs.Diagram drift: none.
Tests
TODOS
No TODO items completed in this PR.
Agent notes
Agent notes
Fixes GST-3462 items 3 (part) and 5 (parser); GSTA-711. Plan: exempt as a bug fix with failing-first tests.
Approvals
Approved: yes (record r-5fb7b3f2a382). The full approval record stays private.
Plan: exempt: bug fix with failing-first tests (kind=fix, no plan review)
Plan check: exempt bug fix
REVIEW_LOOP: passes=2 blocking_found=6 deferred=1 noted=6 fixed=6 scope=frozen open=2 unbound=1 ledgers_read=4 dispatches=4
Ruled note: p1/adversarial-native#1 at fe6809c ruled by GSTA-36 (relayed from GSTA-794:2026-11-22T07:22:49.482Z) at 2026-11-22T07:22:49.668Z: fixed in 79542ff and confirmed by round 2's Red Team; open only because the round-2 row omitted them. (approval a-11c24559db76)
Ruled note: p1/outside-voice#1 at fe6809c ruled by GSTA-36 (relayed from GSTA-794:2026-11-22T07:22:49.482Z) at 2026-11-22T07:22:49.770Z: fixed in 79542ff and confirmed by round 2's Red Team; open only because the round-2 row omitted them. (approval a-46b6723028e0)
Gate edits: none detected (gate scan tagged 0 hunks)