mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-27 02:14:30 +01:00
Merge commit '5f705f367ae396aff143080a8eafd9951f32f70c' into capy/one-file-per-review
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/review-packets-removed.test.ts
This commit is contained in:
commit
a101b16958
112 files changed
+3463
-318
No files matched your search
@@ -0,0 +1,6 @@
|
||||
REVIEWED_TREE: 4d6a982968de8e11d2665976fc91587730a4767d /home/user/.capy/work/gst986-wt
|
||||
{"severity":"INFORMATIONAL","path":"docs/troubleshooting.md","line":3307,"summary":"The RECEIPT_INVALID entry still describes the old AND rule: it says write refuses when the read commit's product patch is not the receipt's AND a later change carries a targeted class. The fixed code at lib/ship-receipt-depth.ts:153 refuses on either one. So a user who hits the refusal after a docs-only or TODOS.md commit (the Step 14 and 14.5 commits) finds no matching cause in this entry. docs/review-policy.md and the changelog fragment were updated; this entry was not."}
|
||||
{"severity":"INFORMATIONAL","path":"lib/ship-receipt-depth.ts","line":153,"summary":"The fix list calls this main's rule, but it isn't. On origin/main, parseReviewTargeted(value, productPatchId) takes no head and binds any record. So under this change, every money, gate, auth or secret ship whose Step 14 or 14.5 commits after the Step 11 read now stops at Step 19 with RECEIPT_INVALID. That is the same outcome pass 1's Red Team flagged. Step 19's prose (ship/sections/pr-body.md:247, 'fix that input file and rerun') doesn't say to rerun the targeted reader on HEAD; only the tool's own error message does. The guard fails closed, and the code deliberately defers the docs-only case to GST-1031, so this is not data loss. It is a known extra stop in unattended /ship runs."}
|
||||
{"severity":"INFORMATIONAL","path":"lib/ship-receipt-depth.ts","line":153,"summary":"When the product patches are equal and only classesSince refuses (a test edit after the read that skips a case), the message prints the same patch id twice: 'whose product patch X is not this receipt's X'. This was already true before the fix and the fix kept it. The message misstates the cause; the decision itself is correct."}
|
||||
|
||||
I found nothing at the blocking floor. The OR guard fails closed in the right places: it refuses when the product patch differs, when classesSince returns null (unreadable), and when a class shows up after the read. Its only production caller, bin/gstack-ship-receipt:227, passes the same arguments as before. The test change does replace the old docs-binds assertion with a refusal, but that matches the intended new rule; it doesn't weaken coverage. The new no-money-token regression test covers the CRITICAL fix. I reran the three focused files at this tree: 34 pass, 0 fail, 403 expect() calls.
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
I reviewed the range base..HEAD, one commit that changes four files. I read every non-test file in full.
|
||||
|
||||
## Findings
|
||||
|
||||
**1. The family check refuses two models in one call even when no task is judged (check.ts:165-169). FIXABLE.**
|
||||
The family check runs whether or not the run uses a judge. Elsewhere the judge is used only when `judged` is true.
|
||||
|
||||
Before this commit the call passed. Now every judge stops with E_POLICY:
|
||||
- the default judge clashes with the second model;
|
||||
- the other judges clash with the first model.
|
||||
|
||||
So the two models can no longer run in one call, even though the judge would never be called. It fails closed with a clear message, and two calls work around it.
|
||||
Fix: `else if (judged && sameFamily.length)`, plus a test with an unjudged set.
|
||||
Severity: Medium. Blocks: no.
|
||||
|
||||
**2. max_price now uses the long-prompt rates for every call, short prompts included (prices.ts:75, set at proxy.ts:513). FIXABLE, with part to INVESTIGATE.**
|
||||
`routing` sets max_price from the price row alone, whatever the prompt length.
|
||||
|
||||
Today the only endpoints are standard, fast and ultrafast.
|
||||
|
||||
Two more problems:
|
||||
- The commit assumes the router checks max_price against long-tier rates.
|
||||
- The new doc comment gives the wrong reason.
|
||||
|
||||
Fix: build max_price per request.
|
||||
Severity: Low. Blocks: no.
|
||||
|
||||
**3. The docs' third-family judge barely exists (docs/eval.md:125, policy.ts:125-129). INVESTIGATE.**
|
||||
Only weak judges have price rows, so in practice the remedy is two calls.
|
||||
|
||||
Also, call.ts still picks the default judge by provider, not by family.
|
||||
Severity: Low. Blocks: no.
|
||||
|
||||
Recommendation: Fix the unconditional family check at check.ts:169, because gating it on `judged` is a one-line change.
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"sha":"126eff0f1de6982e03dc24d8017c67e6807c91dfa518b18d2db3aa910aac911f","replay":"GST-508+R51+GST-911"}
|
||||
{"sha":"08464b78a723ee463ca3a28d0abbc4eb8f4f512192061c703743707b66b5a311","replay":"GST-942"}
|
||||
@@ -0,0 +1 @@
|
||||
{"replay":"GST-942","justification":"GST-942 dispatch-superset no-loss check: the rmSync rule no longer stops at the first ), a matching rm( rule is added, and both read a file's changed lines joined for a delete split across lines, so a recursive delete raises security on more diffs and never on fewer; over the last 100 first-parent main commits to 3d99c2249 (62,531 changed lines) the line rules match all 170 lines the old rule matched plus 19 more, and no commit changes depth, class or risk class; reviewer text is unchanged"}
|
||||
Reference in new issue
Block a user