Skip to content

ship-policy keys: mechanical_retake and test_code name 1.97.0.0, the release that carries them (GST-1636) - #4079

Merged
capy-ai[bot] merged 1 commit into
mainfrom
capy/gst-1636-key-versions-1.97
Nov 6, 2026
Merged

capy-ai[bot] merged 1 commit into
mainfrom
capy/gst-1636-key-versions-1.97

Conversation

@garrytan

@garrytan garrytan commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 4079,
  "head": "b9d87d5f7a7d7393e7f1849873f86fb78f81df81",
  "version": "1.96.0.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 45,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "245195bb66786125a5aebb86ca1341c26aea125d",
  "product_patch_id": "815d8567e696bb265d6d051804cc6edca2289cb6",
  "gstack_version": "1.96.0.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 4,
    "rules": "70895942bb8a8ee2",
    "base": "603d6bb22afd3d204277213a9f4fec3c5b76af0a",
    "registry": "603d6bb22afd3d204277213a9f4fec3c5b76af0a",
    "gate_scan": {
      "tagged": 0,
      "head": "b9d87d5f7a7d7393e7f1849873f86fb78f81df81"
    },
    "reasons": [
      "gate-class",
      "runtime=4"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @245195bb6678 (7 checks, current for b9d87d5f7a7d)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/42241722723/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/42241722552/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=245195bb6678 tests=35940 skipped=92 runs=42241722723/1 profiles=ci-reuse/free-tests heads=b9d87d5f7a7d verified=2026-11-06T15:37:24.839Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md against the ship-policy key-version change"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 3,
    "dispatches": {
      "specialist": 1,
      "red-team": 1
    }
  }
}

What changed

MECHANICAL_RETAKE_KEY_VERSION and TEST_CODE_KEY_VERSION in lib/ship-policy-keys.ts move from the tentative 1.96.1.0 to 1.97.0.0. CI_RECORD_TIMEOUT_KEY_VERSION already names 1.97.0.0 and stays. A changelog.d fragment records the floor policies must declare.

Before/after (text version; the image renderer refused the capture because version strings match its IPv4 rule):

-export const MECHANICAL_RETAKE_KEY_VERSION = '1.96.1.0';
-export const TEST_CODE_KEY_VERSION = '1.96.1.0';
+export const MECHANICAL_RETAKE_KEY_VERSION = '1.97.0.0';
+export const TEST_CODE_KEY_VERSION = '1.97.0.0';
 export const CI_RECORD_TIMEOUT_KEY_VERSION = '1.97.0.0';

Why

The Captain asked that every key name a version the next release actually carries. gstack-release-stamp open --dry-run prints RELEASE: 1.96.0.0 -> 1.97.0.0, because two changelog.d fragments declare bump: minor, so no release will carry 1.96.1.0. Main now says the right version before the release instead of relying on the stamp to rewrite it.

Blast radius

Policy validation only: a repo that declares mechanical_retake or test_code now needs min_gstack_version 1.97.0.0 instead of 1.96.1.0, and no shipped gstack ever reported 1.96.1.0, so nobody is stranded (reviewer read lib/ship-policy.ts and ran the policy tests). gstack's own .gstack/ship-policy.json declares neither key.

Approvals

No approvals recorded for branch capy/gst-1636-key-versions-1.97. Work was assigned by Captain GStack Minder (GSTA-36) on GST-1636.

Summary

Two unreleased ship-policy key constants named a version the release skips. They now name 1.97.0.0, the version the release stamp computes from the pending fragments.

Test Coverage

CODE PATHS
[+] lib/ship-policy-keys.ts
  ├── MECHANICAL_RETAKE_KEY_VERSION [★★ TESTED] gstack-ship-policy.test.ts:118-137 (CHANGELOG key-version check)
  └── TEST_CODE_KEY_VERSION [★★ TESTED] same check
COVERAGE: 2/2 paths tested (100%) | QUALITY: ★★★:0 ★★:2 ★:0 | GAPS: 0

Coverage: 100% value-weighted (100% including 0 weakly covered paths)
Test value: 0 tests written, 1 rejected by the authoring gate, 0 existing tests extended, 0 paths weakly covered.
Tests ran: focused 45

Pre-Landing Review

Pre-Landing Review: No issues found.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen ledgers_read=3 dispatches=2
Gate edits: none detected (0 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Outside review: openai/gpt-6.1-sol (host subagent), completed, recommendation approve, no findings.

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL changelog.d/capy-gst-1636-key-versions.md:1 Fragment implies the release would have shipped 1.96.1.0; the release stamp's stamp_paths stage would have rewritten the tentative constants to 1.97.0.0 anyway, so the entry describes a pre-release correction no user saw.

Exploratory QA

Smoke, 2 probes, both pass at head b9d87d5: importing lib/ship-policy-keys.ts lists both constants at 1.97.0.0, and gstack-release-stamp open --dry-run on current main still prints RELEASE: 1.96.0.0 -> 1.97.0.0 and keeps this branch's lines. Not run: the QA method files' full charter set (no runtime surface beyond these constants).

TODOS

No TODO items completed in this PR.

Documentation

Scope: the branch diff against base 1077095, which changes the introducing versions of mechanical_retake and test_code in lib/ship-policy-keys.ts and adds a changelog fragment, plus the docs that describe ship-policy keys and min_gstack_version. Result: current. No doc cites the old 1.96.1.0 version, and the fragment already explains the change. Debt: none found.

Test plan

  • bun test test/gstack-ship-policy.test.ts test/ship-mechanical-retake.test.ts test/ship-uid-sidecar.test.ts test/ship-accept-record-timeout.test.ts: 45 pass, 0 fail
  • CI at b9d87d5: 31 checks passed, 0 failed, 0 pending (Free Tests run 42241722723 carried)

Open in Capy

…release that carries them (GST-1636)

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

trunk-io Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot merged commit 8d7091a into main Nov 6, 2026
43 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