Skip to content

v1.93.21.0 fix(ship): native FIXABLE collects at its own Severity outside gate and risk reviews (GST-987) - #3869

Merged
capy-ai[bot] merged 22 commits into
mainfrom
gst-987-fixable-by-class
Nov 2, 2026
Merged

capy-ai[bot] merged 22 commits into
mainfrom
gst-987-fixable-by-class

Conversation

@garrytan

@garrytan garrytan commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3869,
  "head": "c1abf2be801ee655ac5c0fa311fdf14a16494757",
  "version": "1.93.7.0",
  "base": "main",
  "session_kind": "unattended",
  "head_tree": "ecaee4ca3a550b8eff8f5b3bfcfbcc5f72752e6e",
  "product_patch_id": "9a1d17302c13d3b7fef9aa835733b5cc4b9ee01a",
  "gstack_version": "1.92.71.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 66,
    "rules": "b2272efd321ce7cb",
    "base": "fc292e22f5708da2e33f3edeaf641374d0144a9e",
    "registry": "fc292e22f5708da2e33f3edeaf641374d0144a9e",
    "gate_scan": {
      "tagged": 0,
      "head": "c1abf2be801ee655ac5c0fa311fdf14a16494757"
    },
    "reasons": [
      "risk:money",
      "runtime=66"
    ],
    "risk": [
      "money"
    ]
  },
  "pregate": "requires-remote cleared @ecaee4ca3a55 (1 checks, current for c1abf2be801e)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41499370310/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=ecaee4ca3a55 tests=6053 receipt=/home/user/.capy/work/gst987/remote-receipt4.txt sha256=20029b88b54b"
  ],
  "docs": {
    "status": "updated",
    "scope": "docs/review-policy.md; changelog.d/gst-987-fixable-by-class.md"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 4,
    "deferred": 0,
    "noted": 2,
    "fixed": 4,
    "scope": "in-diff",
    "fix_checks": 4
  },
  "review_loop_exception": {
    "accepted_by": "GStack Minder (GSTA-36)",
    "date": "2026-11-02",
    "via": "GSTA-36",
    "reason": "GSTA-36 2026-11-02: one single-reader scoped fix-check on 9d910f9..521ef5b (rule 23), ceiling 43,850 credits; GSTA-36 2026-11-02: one single-reader re-check of 521ef5b..cfde08d (rule 23), ceiling 46,000 credits final; GSTA-36 2026-11-02: rule 23 grant, one single-reader re-check of ecd12e4, inside the 53,000 cap; GSTA-36 2026-11-02: Rule 19 grant, one merge of origin/main at fc292e22 into #3869 with one single-reader scoped check of the #149 fix and the verify one-liner",
    "fix_check": {
      "head": "3f2bcf3efc289b1209e6e63ae6b602a6be7c9061",
      "findings": 1
    }
  },
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "c82addff6fb60fa0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "9a1d17302c13d3b7fef9aa835733b5cc4b9ee01a",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  },
  "carry": {
    "from": "3f2bcf3efc289b1209e6e63ae6b602a6be7c9061",
    "reason": "release metadata",
    "product_patch_id": "9a1d17302c13d3b7fef9aa835733b5cc4b9ee01a",
    "changed_paths": [
      "metadata:changelog.d/gst-976-severity-field-first.md"
    ],
    "merge_commits": 0,
    "range_diff": "1:  519b64482 =  1:  519b64482 fix(review-ledger): a finding's Severity field sets its label, body severity words never raise it (GST-976)\n 2:  c950a49a4 =  2:  c950a49a4 fix(review-ledger): Severity counts only in field position, locus-first and emoji-led labels lead, an inline field floors the next (GST-976 review)\n 3:  25b45aaa3 =  3:  25b45aaa3 fix(review-ledger): linear lead-label prefix, all-caps leads before a space, fields after a parenthesis or without a colon at the line start (GST-976 review)\n 4:  f3810d470 =  4:  f3810d470 fix(review-ledger): a lead's file:line has no runaway backtracking and may be a range; a mid-line Severity field must close its clause (GST-976 review)\n 5:  b3ddd6c74 =  5:  b3ddd6c74 fix(review-ledger): a field at the line's start needs no closing clause; mid-line fields accept : / and → after the label (GST-976 fix-check)\n 6:  89893b6cf =  6:  89893b6cf docs: changelog fragment and review-policy collect step for GST-976\n 7:  a0adf6e3b =  7:  a0adf6e3b fix(review-ledger): a Severity field's label chain (High/Critical) takes its strongest label; mid-line fields keep the clause-closing set (GST-976 scoped check)\n 8:  c9e3cd9bf =  8:  c9e3cd9bf test(review-ledger): never weaker than main invariant over pinned inputs, fixtures and generated field shapes; a multi-label Severity field counts as none, lowercase fields keep their label (GST-976)\n 9:  f017177ee =  9:  f017177ee docs: GST-976 re-audit, multi-label and lowercase Severity fields\n10:  932df75e1 = 10:  932df75e1 fix: native FIXABLE raises only on gate and risk review classes (GST-987)\n11:  48e9f2c5c = 11:  48e9f2c5c fix: collect records fixable_raises:false so a later re-derive uses the same class (GST-987)\n12:  9d910f962 = 12:  9d910f962 fix: GST-987 review fixes: history/floor reasons and FIXABLE-only fields keep v2; manifest must name this ledger\n13:  521ef5b3f = 13:  521ef5b3f fix: GST-987 round-2 fixes: FIXABLE relaxes only beside Blocks: no; raw FIXABLE heading; unreadable manifest keeps v2\n14:  cfde08d90 = 14:  cfde08d90 fix: GST-987 fix-check: items under a FIXABLE heading need Blocks: no; Blocks: no-op is not Blocks: no; wrong-tree collect with an unreadable manifest\n15:  48da0e0de = 15:  48da0e0de docs: GST-987 docs audit: depth section notes the native FIXABLE exception\n16:  35dcb44b4 = 16:  35dcb44b4 fix: a paragraph under a numbered finding heading joins it, so its fields attach (gstack-evals #149, GST-987)\n17:  8b591faf9 = 17:  8b591faf9 fix: verify re-derives native labels with the collect's class (GST-987, after #3717)\n18:  ecd12e43f = 18:  ecd12e43f fix: #149 join stops at a labeled or located paragraph and after the fields (GST-987)\n19:  3f2bcf3ef = 19:  3f2bcf3ef test: GST-987 #149 sibling shapes as named never-weaker invariant fixtures\n -:  --------- > 20:  c1abf2be8 chore: drop the released GST-976 changelog fragment carried by the stack",
    "covers": [
      "pre-landing review",
      "adversarial review",
      "gate integrity",
      "documentation audit"
    ],
    "reruns": [
      "CI at head (gstack-ship-queue ready requires it); test and helper code changed since the reviewed head runs there unreviewed"
    ],
    "ancestry": "linear",
    "trees": [
      "fce1840715b9c3cd50b4ababf449131672e7775f"
    ]
  }
}

Stacked on #3867 (base gst-976-severity-field-first). GST-987, Captain ruling on gstack-evals #141.

What changed. On a review whose plan is the code or docs class with only runtime=<n> depth reasons, a native adversarial finding marked FIXABLE that states its own Severity and Blocks: no now collects at that Severity instead of CRITICAL. Everything else keeps normalizer v2 (CRITICAL): the gate class, any risk:, error:, history: or floor: reason, a finding with no Blocks: no, no Severity field or a FIXABLE-only field, and any collect without a readable --manifest naming this ledger's pass. collect --manifest reads the plan's REVIEW_CLASS: and REVIEW_DEPTH: … reasons= lines (the Capy pass program already passes it) and records fixable_raises:false on the output event.

Proof. #141 native #4 (Medium, Blocks: no) and #6 (Low, Blocks: no) are the fixture (test/fixtures/review-ledger/gsta-141-native.md, GEVA-183's quotation). The new tests fail at f017177 (CRITICAL, CRITICAL) and pass here. The never-weaker invariant now runs per class: gate class never weaker than main, code class field-first; it fails at f017177. The 9 normalizer-v2 pins pass unchanged (gate is the default).

Replay over the GST-976 80-source set (79 stored outputs plus #143): gate mode vs f017177 0 flips, segDiff 0 over 302 findings; under each source's actual class 0 blocking→non-blocking flips; forcing every source to code class gives 7, all native findings in gate.ts and qm-stack.ts (harn15) reviews whose real class is gate.

#3717. Lands first (train 89). Its verify re-derives labels with parseFindings(reader, text); after it lands, this PR adds parseFindings(reader, text, o.fixable_raises !== false) with a test (patch ready; trial merge with 3fefd1f: the test fails without the line and passes with it).

Open notes. A FIXABLE-heading item with Blocks: no and no Severity field collects FIXABLE (rank 0); a native JSON line whose text says FIXABLE collects CRITICAL on a relaxed plan (stricter than gate); plan_lines are trusted from the manifest; non-Capy hosts don't pass --manifest, so they stay fail-safe; INFORMATIONAL heading notes from round 1.

Refs GST-987

Open in Capy

Review-loop exception: accepted by GStack Minder (GSTA-36) 2026-11-02 via GSTA-36: GSTA-36 2026-11-02: one single-reader scoped fix-check on 9d910f9..521ef5b (rule 23), ceiling 43,850 credits; GSTA-36 2026-11-02: one single-reader re-check of 521ef5b..cfde08d (rule 23), ceiling 46,000 credits final; GSTA-36 2026-11-02: rule 23 grant, one single-reader re-check of ecd12e4, inside the 53,000 cap; GSTA-36 2026-11-02: Rule 19 grant, one merge of origin/main at fc292e2 into #3869 with one single-reader scoped check of the #149 fix and the verify one-liner (fix-check at 3f2bcf3, 1 finding)

garrytan and others added 18 commits November 2, 2026 12:15
…everity words never raise it (GST-976)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…st and emoji-led labels lead, an inline field floors the next (GST-976 review)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… space, fields after a parenthesis or without a colon at the line start (GST-976 review)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d may be a range; a mid-line Severity field must close its clause (GST-976 review)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…se; mid-line fields accept : / and → after the label (GST-976 fix-check)

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>
…kes its strongest label; mid-line fields keep the clause-closing set (GST-976 scoped check)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…uts, fixtures and generated field shapes; a multi-label Severity field counts as none, lowercase fields keep their label (GST-976)

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>
…987)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…he same class (GST-987)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…lds keep v2; manifest must name this ledger

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…aw FIXABLE heading; unreadable manifest keeps v2

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…; Blocks: no-op is not Blocks: no; wrong-tree collect with an unreadable manifest

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…elds attach (gstack-evals #149, GST-987)

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

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

# Conflicts:
#	lib/review-ledger.ts
#	test/review-ledger-invariant.test.ts
…7, after #3717)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot changed the base branch from gst-976-severity-field-first to main November 2, 2026 16:34
@trunk-io

trunk-io Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@github-actions github-actions Bot changed the title fix(ship): native FIXABLE collects at its own Severity outside gate and risk reviews (GST-987) v1.93.7.0 fix(ship): native FIXABLE collects at its own Severity outside gate and risk reviews (GST-987) Nov 2, 2026
garrytan and others added 2 commits November 2, 2026 16:36
…fields (GST-987)

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

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>
@capy-ai

capy-ai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Flaky on the remote gate (rule 16): at tree ecaee4ca3a55 (head c1abf2b) the us-east-a2 remote gate failed these, then a full retry at the same tree passed (PREGATE_REMOTE: tree=ecaee4ca3a55… tests=6053 failed=0). The same tests also failed remote-only at fce1840715b9, while CI passed.

  • test/docsync-report-interface.test.ts: actual registered documentation callbacks stage the generated report contract and consume their builders
  • test/docsync-fault-interface.test.ts: registered fault callbacks execute actual transport and hook commands, consume results, and reject controls without model calls (fault controls)
  • docsync -faults / -legacy cases: ship-docsync-completion and ship-docsync-current construct their real native request without launching it; ship-docsync-missing-marker rejects invalid-repair / redirect-transport

@github-actions github-actions Bot changed the title v1.93.7.0 fix(ship): native FIXABLE collects at its own Severity outside gate and risk reviews (GST-987) v1.93.21.0 fix(ship): native FIXABLE collects at its own Severity outside gate and risk reviews (GST-987) Nov 2, 2026
@capy-ai
capy-ai Bot merged commit e0531db into main Nov 2, 2026
45 checks passed
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.

1 participant