@soleur/opencode 3.398.0 → 3.399.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleur/opencode",
3
- "version": "3.398.0",
3
+ "version": "3.399.1",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -78,9 +78,21 @@ Only item 1 is applied by `--fix`. Items 2–7 are reported in the PR body for a
78
78
  `model-launch-review.test.ts` pins it, so a chained table fails fast rather than silently.
79
79
  A new or retargeted pair also touches that test file in six places: `CURRENT_IDS`, the `SUPERSEDED`
80
80
  map, the synthetic-prefix source string, the id named in the prefix test's floor message, the sed-anchor
81
- fixture and the pair-count floor. For a Fable pair, do not merge a `--fix` until the pinned CLI bundle
82
- contains the new id (`grep -a` the unpacked platform package): `[2b]` probes only ids that appear as
83
- literals in `model-tiers.ts` and `constants.ts`, and no Fable literal does today (#12514).
81
+ fixture and the pair-count floor. A Fable pair also touches `REVIEWED_ADVISOR_EFFORT` in
82
+ `apps/web-platform/test/server/inngest/claude-cli-pin-knows-models.test.ts`: its key set must equal the
83
+ distinct `claude-fable-` targets of `AUTOFIX_PAIRS`, and each value is the new row's reviewed
84
+ `default_effort` (re-review the ADR-083 consult effort before writing it). Read that value from the
85
+ platform binary, outside the repo, never by running it:
86
+ `grep -a -o -E '\{id:"<new-id>",family:([^{}]|\{[^{}]*\})*\}' <unpacked>/claude | grep -o 'default_effort:"[a-z]*"'`.
87
+ Expect exactly one row; no `default_effort` in the row means the row has none (Guard 5 then reds), not
88
+ "medium". For a Fable pair, do not merge a `--fix` until the pinned CLI bundle
89
+ contains the new id (`grep -a` the unpacked platform package). Since #12514 CI enforces this:
90
+ `claude-cli-pin-knows-models.test.ts` derives its id set from the right-hand side of `AUTOFIX_PAIRS`
91
+ (plus the tier literals and the hosted SDK default) and checks it in BOTH pinned binaries, the CLI and
92
+ the Agent SDK, so a retarget reds until the pins carry the id. `[2b]` is much narrower than that test:
93
+ it greps only the INSTALLED `claude-code-linux-x64` binary under `node_modules` (not a candidate
94
+ version unless that version is installed, and never the Agent SDK binary), and only for the tier
95
+ literals in `model-tiers.ts` and `constants.ts`, so it checks no `fable` alias target at all.
84
96
 
85
97
  Then verify item 2b: the new ID must appear in the **pinned** `@anthropic-ai/claude-code`
86
98
  bundle (`[2b]` in the audit output). If it reports DRIFT, in ONE PR: (1) bump the pin in
@@ -89,8 +101,9 @@ Only item 1 is applied by `--fix`. Items 2–7 are reported in the PR body for a
89
101
  Since #8603 this is also a CI gate: `apps/web-platform/test/server/inngest/claude-cli-pin-knows-models.test.ts`
90
102
  fails any PR whose tier ids are absent from the pinned bundle, whose package.json and
91
103
  Dockerfile pins disagree, or whose `AUDIT_EFFORT` the pinned CLI does not accept — so an
92
- id-swap PR opened before the bump goes red. `[2b]` stays the hand-run check for CANDIDATE
93
- versions. Grep the bundle with `grep -a`
104
+ id-swap PR opened before the bump goes red. `[2b]` is a hand-run echo of part of that gate (the
105
+ installed claude-code binary, tier literals only, no `fable` target, no SDK binary); to test a
106
+ CANDIDATE version, unpack it and grep it as described below. Grep the bundle with `grep -a`
94
107
  — the linux-x64 CLI is a compiled binary and a text-mode grep reports zero hits for
95
108
  EVERY id, a null result that reads exactly like a real one.
96
109
 
@@ -125,6 +138,28 @@ Only item 1 is applied by `--fix`. Items 2–7 are reported in the PR body for a
125
138
  on the new id makes the control fail on model resolution instead of on the hook, and the
126
139
  comparison measures nothing.
127
140
 
141
+ **Every CLI or SDK bump re-measures the `fable` alias (required, #12514).** The alias is
142
+ version-agnostic and resolved by the bundled model table, so a bump can move it with no argv change
143
+ (2.1.311 / 0.3.311 resolved it to Fable 5.1, 2.1.321 / 0.3.321 to Fable 5.2). Measure both the CLI
144
+ and the Agent SDK platform binaries, new pin and old pin as the control, in a throwaway container
145
+ (never on a credentialed host; `--rm -u 1000:1000`, tmpfs `HOME`, no repository mount, no docker socket):
146
+ 1. Zero-cost start-up probe with an invalid key:
147
+ `<bin> -p hi --model fable --output-format stream-json --verbose --max-turns 1` with
148
+ `ANTHROPIC_API_KEY=sk-ant-invalid-probe`, then read the `system`/`init` event
149
+ (`jq -c 'select(.type=="system" and .subtype=="init") | {model, claude_code_version}'`). The turn
150
+ then fails 401; the init event is the measurement of the bundled resolution path.
151
+ 2. One authenticated turn (`-p hi --model fable --max-turns 1 --output-format json`) with the Doppler
152
+ `ci` key (read-only, never `prd`), recording only `jq '.modelUsage|keys'`. The key goes in a 0600
153
+ file mounted read-only and is read by the wrapper inside the container
154
+ (`bash -c 'set +x; IFS= read -r ANTHROPIC_API_KEY < /k/key; export ANTHROPIC_API_KEY; exec …'`),
155
+ never as `VAR=<value>` on any command line, `env` included (`env -i K=<v> cmd` puts it on env's
156
+ argv). This catches a server-side alias override the invalid-key probe cannot see, for the ci
157
+ key's account only.
158
+
159
+ Record both results (init `model` + `claude_code_version` per binary, and the `modelUsage` keys) in the
160
+ `sdk-bump-verified:` trailer and the PR body. A target that differs from the `AUTOFIX_PAIRS` Fable
161
+ target is a finding, not a pass.
162
+
128
163
  Probe the PLATFORM package, never the `@anthropic-ai` scope: `claude-agent-sdk` and
129
164
  `claude-agent-sdk-linux-x64` both carry `claude-sonnet-5`, so a scope-wide grep answers
130
165
  "present" from the agent SDK while `claude-code` lacks the id entirely.
@@ -137,7 +172,10 @@ Only item 1 is applied by `--fix`. Items 2–7 are reported in the PR body for a
137
172
  a `lockfile-sync` member re-run inside `guards-ruleset` makes such a PR red regardless. Measured on npm 11.19.0: once the
138
173
  lockfile pins the version, `npm install --package-lock-only` under the floor exits 0 and
139
174
  leaves the lockfile unchanged, and `npm ci` installs it — the floor gates new resolution,
140
- not an already-locked version.
175
+ not an already-locked version. A same-week `AUTOFIX_PAIRS` retarget PR therefore stays red
176
+ on `claude-cli-pin-knows-models.test.ts` until a release carrying the id clears the floor
177
+ and the pins move to it. That is by design (#12514): keep the PR draft and wait, or get the
178
+ operator's waiver.
141
179
 
142
180
  3. **Auto-fix** model-ID swaps (mechanical; allowlist + deletion guard; never `git add -A`):
143
181
 
@@ -183,6 +221,7 @@ change" trigger never fired when Fable 5 shipped. The cron files an issue, never
183
221
 
184
222
  ## Sharp edges
185
223
 
224
+ - **A "binary knows model id X" guard must check the model-table ROW (`{id:"X",family:`), not a whole-token hit — and the alias target (`latest_per_family`) is a separate table that needs its own guard.** A token also appears in deprecation strings and error text; a pin can carry the new row while still mapping `fable` to the old id. **Why:** #12553 — Guard 4 shipped token-only until review; Guard 6 added for the alias table. See `knowledge-base/project/learnings/2026-11-10-the-bump-risk-was-in-the-changelog-not-the-argv-census.md`.
186
225
  - Resolve every model ID / pin SHA / release tag via `gh api` or official docs in-pass — never
187
226
  from memory (2026-04-18 / 2026-02-22 learnings; SHA-from-memory errors recur).
188
227
  - **Selection and rewriting must share ONE boundary — and the asymmetry was already live before
@@ -64,8 +64,8 @@ AUTOFIX_PAIRS=(
64
64
  # Haiku 5.5 launch, 2026-10-08. BOTH Haiku 4.5 spellings: the id boundary defined
65
65
  # below makes the undated id a different token from the dated one, so one pair alone
66
66
  # leaves the other spelling stale forever. Both RHS are the current id, so the
67
- # single-hop invariant holds. No closing paren in comments here: the test parser
68
- # reads this array up to the first one.
67
+ # single-hop invariant holds. The shared test parser (plugins/soleur/test/lib/autofix-pairs.ts)
68
+ # ends this array at the first line that is only a closing paren.
69
69
  "claude-haiku-4-5-20251001=claude-haiku-5-5"
70
70
  "claude-haiku-4-5=claude-haiku-5-5"
71
71
  )
@@ -462,7 +462,9 @@ echo " - devin subagent-model freshness (item 7, agent-run): compare 'devin mod
462
462
  echo " against Devin slugs Soleur references (no TIER_MAPS.devin row by design)."
463
463
  echo " - thinking-API shape: the REQUEST side sets no thinking params, but the CLI applies each"
464
464
  echo " model row's default_effort: re-decide AUDIT_EFFORT (apps/web-platform/server/inngest/"
465
- echo " model-tiers.ts) and update REVIEWED_DEFAULT_EFFORT in claude-cli-pin-knows-models.test.ts (#8603)."
465
+ echo " model-tiers.ts) and update REVIEWED_DEFAULT_EFFORT in claude-cli-pin-knows-models.test.ts (#8603);"
466
+ echo " for a new fable alias target, re-review the ADR-083 consult effort and update REVIEWED_ADVISOR_EFFORT"
467
+ echo " in the same file (its keys must equal the AUTOFIX_PAIRS fable targets, #12514)."
466
468
  echo " The RESPONSE side is NOT inert: a thinking-by-default model puts a thinking block"
467
469
  echo " FIRST, so any reader indexing a fixed content position silently returns empty"
468
470
  echo " and the model's answer is billed and discarded (#8392)."
@@ -12,22 +12,22 @@
12
12
  }
13
13
  },
14
14
  "node_modules/@anthropic-ai/claude-agent-sdk": {
15
- "version": "0.3.311",
16
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.311.tgz",
17
- "integrity": "sha512-8aKYcHGB3LsYP79e2EHNdwbpIvRJkMLd19qSx4u9+J9yDDAK7w9uy1GyvFUz8xa1A+xIEtTW1k/r419uE/Kbsw==",
15
+ "version": "0.3.321",
16
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.321.tgz",
17
+ "integrity": "sha512-Smer/h/jQLTtT+l4sxaAUwZq7wif/9RzzuqltS5Gy+kAFo/iP89H7JHa8avhVT0xGkPBvBD/1Bbdg3pcArhQcw==",
18
18
  "license": "SEE LICENSE IN README.md",
19
19
  "engines": {
20
20
  "node": ">=18.14.0"
21
21
  },
22
22
  "optionalDependencies": {
23
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.311",
24
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.311",
25
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.311",
26
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.311",
27
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.311",
28
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.311",
29
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.311",
30
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.311"
23
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.321",
24
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.321",
25
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.321",
26
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.321",
27
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.321",
28
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.321",
29
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.321",
30
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.321"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@anthropic-ai/sdk": ">=0.93.0",
@@ -36,9 +36,9 @@
36
36
  }
37
37
  },
38
38
  "node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": {
39
- "version": "0.3.311",
40
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.311.tgz",
41
- "integrity": "sha512-pzlXQGLh3pH/oIAliApR79OIkTFTAGpWJpf1HLt5MocWPBxox/aoHVWOKHqbnYnmGrr54LwdG+E4V1boaQzyvA==",
39
+ "version": "0.3.321",
40
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.321.tgz",
41
+ "integrity": "sha512-r718mW98hvRbmCa0TtSgImHkgyPUjPXSHOsORrehn2a8Z0FU1A2RkX9gCjY7EzZgL0RNbZXsBbkuab//kUjzJw==",
42
42
  "cpu": [
43
43
  "arm64"
44
44
  ],
@@ -49,9 +49,9 @@
49
49
  ]
50
50
  },
51
51
  "node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": {
52
- "version": "0.3.311",
53
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.311.tgz",
54
- "integrity": "sha512-xVoQD+ZwScwbPitYBmedm1/j3dUIyyLFB1zgk3q99YQXac6r6wAKR4HP+QTrrEwsQa0slePbE/Ljj/5u2z14nw==",
52
+ "version": "0.3.321",
53
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.321.tgz",
54
+ "integrity": "sha512-C08vEnnDylWDaFprx/B1B13RZK3la1HOqR986igkZSwhY//Yxsk5eRI+gz7sxMfhcLZX2NS8PftCOiXr3S74/Q==",
55
55
  "cpu": [
56
56
  "x64"
57
57
  ],
@@ -62,9 +62,9 @@
62
62
  ]
63
63
  },
64
64
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": {
65
- "version": "0.3.311",
66
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.311.tgz",
67
- "integrity": "sha512-iCic3eanG/Cb6MZan0uiGzBExwVu3ZDABih5uR0iBQ/bVF0yXiG79EwwJC7DPzgu2RQghtECR+q6wx/+Z2YUHg==",
65
+ "version": "0.3.321",
66
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.321.tgz",
67
+ "integrity": "sha512-vdk9tON09SnsSh/6ULzYTBgsKRat6FyIaqnh4snYl3uy3qX0jpv5UuFUWgS5tvQ1ewI0qYF2k+D78El4gi7/iQ==",
68
68
  "cpu": [
69
69
  "arm64"
70
70
  ],
@@ -78,9 +78,9 @@
78
78
  ]
79
79
  },
80
80
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": {
81
- "version": "0.3.311",
82
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.311.tgz",
83
- "integrity": "sha512-sXUjbaZCguGRUmTC5nJWbj7pmvT+RiUXxiGx7/o4Lj+V3BqL2YdQh33blYWFw+9HlVC2+sKSMWfEsVh0GHcA6A==",
81
+ "version": "0.3.321",
82
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.321.tgz",
83
+ "integrity": "sha512-+8zFXMpJT2r+0j4E1v9BgRf+Qjtmmp4IG/3mDLT6jB6iA+9UvG9RLex+cqct09d+7xP2mDP8kL4cD1WtKUFX1w==",
84
84
  "cpu": [
85
85
  "arm64"
86
86
  ],
@@ -94,9 +94,9 @@
94
94
  ]
95
95
  },
96
96
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": {
97
- "version": "0.3.311",
98
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.311.tgz",
99
- "integrity": "sha512-yq7zMyESMnznCLTre5NRmyfedDp24I2c94DdCq9TCMRUQEhhW1Zb2UC9QAQP28ZzncP2dSs70EM8Nvp2+VBSqg==",
97
+ "version": "0.3.321",
98
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.321.tgz",
99
+ "integrity": "sha512-i/Y8Ps4q68SRwWB54yFXyItBwn5YHIOYY4R1gla6p4UwF/pM+xxrHycv+yecbC7oU30ShuBYKWN9mRIZ/BCMqw==",
100
100
  "cpu": [
101
101
  "x64"
102
102
  ],
@@ -110,9 +110,9 @@
110
110
  ]
111
111
  },
112
112
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": {
113
- "version": "0.3.311",
114
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.311.tgz",
115
- "integrity": "sha512-BFSmzqnnVnNirnfy8EJ5f/S3G0JHjN+V0bBVJGDy3Mn1ptfV4/832Wh9hIkwYGVii+jA5aoanSVG3b9tK/I8ZA==",
113
+ "version": "0.3.321",
114
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.321.tgz",
115
+ "integrity": "sha512-ils3IGsNKIDiURuOgSWorLsjMOlKcMdXQCQyaygEycdtPFItPoIBIYDVjoC1I0XV4tlfXXCHfUvNrs23g4HKNw==",
116
116
  "cpu": [
117
117
  "x64"
118
118
  ],
@@ -126,9 +126,9 @@
126
126
  ]
127
127
  },
128
128
  "node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": {
129
- "version": "0.3.311",
130
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.311.tgz",
131
- "integrity": "sha512-DEWpHyDg86ffG3I0hHxLTfrOshzGBea4mrhNxj43jpbyO1vl9de8KYlnazhruNPi6u6mxL5ly5ihhxeWuutE1A==",
129
+ "version": "0.3.321",
130
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.321.tgz",
131
+ "integrity": "sha512-v6/8ikUcYRSYhH5PSGcHq8L6+DKRq/M4I3BzFckis6kMh3degvSuUD1u3+M/oSJ/bcSOA8tXbUgTTwKrlOgvwQ==",
132
132
  "cpu": [
133
133
  "arm64"
134
134
  ],
@@ -139,9 +139,9 @@
139
139
  ]
140
140
  },
141
141
  "node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": {
142
- "version": "0.3.311",
143
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.311.tgz",
144
- "integrity": "sha512-I92TwBhMkpc9pLwu1SwLiz6wqXkcmMPAdz4LgpwKAeyB5rum2GyZgYPIDTRYEpo3cX0nEP2qmyxtKEO/tLFfoA==",
142
+ "version": "0.3.321",
143
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.321.tgz",
144
+ "integrity": "sha512-9i7ziCR+Wg47cRhYONHnUpTGxUgxfy/+J3N3/4F8YGqz7WLSNH3hpGRj6uJzNK4EMyEhFsca532uD2we0ZMckQ==",
145
145
  "cpu": [
146
146
  "x64"
147
147
  ],
@@ -10,6 +10,6 @@
10
10
  "undici": "8.12.2",
11
11
  "sharp": "0.35.5",
12
12
  "minimatch": "11.0.1",
13
- "@anthropic-ai/claude-agent-sdk": "0.3.311"
13
+ "@anthropic-ai/claude-agent-sdk": "0.3.321"
14
14
  }
15
15
  }
@@ -360,5 +360,7 @@ NEVER CODE! Just research and write the plan.
360
360
 
361
361
  - **A producer check for a gated registration is evaluated over the REGISTERED population, not the system.** For a hook, guard or note registered under a predicate (a flag AND a capability such as web egress), write the producer check as rows of (cited fact, file, still true when the predicate holds?) and run the grep for each row; a predicate that turns on one capability can turn off the credential or tool the cited producer needs, and the two facts live in different files. **Why:** #12435 — the plan cited `GH_TOKEN` minted into the sandbox, true of the system and false in web-egress sessions where the env deny census removes it, so the hook registered only where `gh` fails at auth. See `knowledge-base/project/learnings/2026-11-09-a-producer-check-was-true-of-the-system-and-false-of-the-population-the-hook-registered-in.md`.
362
362
  - **A suite ledger's per-site cost is ARM cost (pristine + every mutant rep + the give_up boundary), not pristine cost — measure the pristine site before prescribing fixture surgery.** When the arm is expensive and pristine is cheap, the pathology is mutant-side runaway and the remedy is pacing (per-scan give_up that returns over-bound, cheapest-condemner ordering, a shrink-only per-invocation timeout), never smaller fixtures, which cut coverage to treat a cost the SUT never had. The same rule covers every bound a ruling asserts: derive caps/floors from a measured pristine rate, not arithmetic — a `12*len+5000` line-event cap was one event under pristine `hb`'s measured 485,001 events at 40,000 bytes (12.125/byte) and would have condemned the pristine run. **Why:** #12016/PR #12419 — `row_scan_ops` reported 47.3 s site cost; pristine was ~4.8 s. See `knowledge-base/project/learnings/performance-issues/mutant-side-runaway-read-as-pristine-site-cost-ci-replay-20261108.md`.
363
+ - **A dependency bump of a permission-brokering runtime (agent SDK, sandbox, auth lib) owes a line-by-line changelog read for *prompt / permission / callback / trust / skip / allow*, with each hit measured in a throwaway container with the production option shape — argv, fixture and lockfile diffs cannot see a change whose effect is a callback that is no longer called.** State the containment rule before the first probe, and when the bump moves a customer-engine lockfile (e.g. pen-cli) run that engine's contract probe (pen-cli: `plugins/soleur/skills/pencil-setup/scripts/engine-contract-probe.sh`) before review, new vs control lock. **Why:** #12553 — 2.1.321's "a mod's `$.tool.call` raises no permission prompt" was the PR's only P1, found by a review seat after every planned check was green; measured: a `plugins:`-bound mod ran Bash and Write with `canUseTool` called 0 times. See `knowledge-base/project/learnings/2026-11-10-the-bump-risk-was-in-the-changelog-not-the-argv-census.md`.
363
364
 
364
365
  - **A copy sentence of the form "X cannot happen unless Y" is an enforcement claim: list every path that can do X before prescribing it.** Enumerate each runner, each flag state (on, off, read failed) and each missing-dependency state, and name the line that enforces Y on each; a path with no such line is a code task or a reworded sentence in the same plan. **Why:** #12197/PR #12567 — `PUSH_DISCLOSURE` said nothing is pushed without Owner approval; the legacy runner's in-memory card let a member approve their own push whenever the approval queue gave no verdict. See `knowledge-base/project/learnings/2026-11-10-a-copy-sentence-that-promises-enforcement-must-be-checked-on-every-runner-and-flag-state.md`.
366
+ - **Before a plan names a shipped literal (a port, IP, hostname, token, sentinel URL), grep the repo's TEST FIXTURES for it — a value fixtures use as the deliberately-wrong constant poisons the suite when shipped.** `grep -rn '8444' apps/web-platform` showed the port is the assume-invalid sentinel in `apps/web-platform/infra/` firewall fixtures, so the receiver bound 8445 instead of the plan's first-draft "e.g. 8444". Same class for dispatch conditions that mirror an upstream SDK: route on the SDK's TRUTHINESS test (`get("probe")` falsy on `""`), never key presence — an empty `?probe=` is a run request, and `has()` vs `Boolean(get())` differ on exactly the input nobody hand-types. **Why:** #9137/PR #12554 — the presence-gate P1 was caught only by the sequential-fallback review's fix round; the fixture-collision was caught by the work phase's own grep. See `knowledge-base/project/learnings/logic-errors/2026-11-10-empty-probe-param-is-a-run-request-sdk-truthiness-parity.md`.