Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
270 commits
Select commit Hold shift + click to select a range
8b6cde6
Merge branch 'claude/vigilant-mendel-bctz9n-p1b' into p2
claude Oct 24, 2026
fb23df4
Merge branch 'claude/vigilant-mendel-bctz9n-p-t1a' into p-t1b
claude Oct 24, 2026
9cd81de
Merge branch 'claude/vigilant-mendel-bctz9n-p-t1b' into p-h
claude Oct 24, 2026
1a568f9
Merge branch 'claude/vigilant-mendel-bctz9n-p2' into p-t1a
claude Oct 24, 2026
c7121a3
feat: the plugin owns the opencode and opencode-go routes
claude Oct 24, 2026
50d39f5
Merge branch 'claude/vigilant-mendel-bctz9n-p-h' into p-r1
claude Oct 24, 2026
2728666
test: measure which endpoint families the gateway serves
claude Oct 24, 2026
4c491fe
Merge branch 'claude/vigilant-mendel-bctz9n-p-r1' into p-r2
claude Oct 24, 2026
1c11d22
feat: Settings offers the catalog's models pi does not list
claude Oct 24, 2026
8c04672
test: restructure the suite
claude Oct 25, 2026
2ebaffc
chore: refresh the generated catalog and limits tables
claude Oct 26, 2026
d51a3e6
test: skip free models the gateway has withdrawn in the live suite
claude Oct 26, 2026
409b5e1
fix: address the second review of P-T1b
claude Oct 26, 2026
aec8c1a
Merge branch 'claude/vigilant-mendel-bctz9n-p-t1b' into p-h
claude Oct 26, 2026
0dd1b9c
Merge branch 'claude/vigilant-mendel-bctz9n' into p1a
claude Oct 26, 2026
1f5ed90
Merge branch 'claude/vigilant-mendel-bctz9n-p1a' into p1b
claude Oct 26, 2026
05faa93
Merge branch 'claude/vigilant-mendel-bctz9n-p1b' into p2
claude Oct 26, 2026
73db37b
Merge branch 'claude/vigilant-mendel-bctz9n-p2' into p-t1a
claude Oct 26, 2026
9f7e8e2
Merge branch 'claude/vigilant-mendel-bctz9n-p-t1a' into p-t1b
claude Oct 26, 2026
1f48272
test: follow the vendor catalog refresh
claude Oct 26, 2026
3cfacd9
fix: address the second review of P-H
claude Oct 26, 2026
bffd3a4
Merge branch 'claude/vigilant-mendel-bctz9n-p-h' into p-r1
claude Oct 26, 2026
8ab5d65
Merge branch 'claude/vigilant-mendel-bctz9n-p-t1b' into p-h
claude Oct 26, 2026
25dc182
Merge branch 'claude/vigilant-mendel-bctz9n-p-h' into p-r1
claude Oct 26, 2026
9cf8372
test: follow the vendor catalog refresh
claude Oct 26, 2026
0cceb81
fix: address the second review of P-R1
claude Oct 27, 2026
9f694bf
Merge branch 'claude/vigilant-mendel-bctz9n-p-r1' into p-r2
claude Oct 27, 2026
059236a
ci: gate freshness only on a pull request's own generator changes
claude Oct 27, 2026
d13cbe2
chore: refresh the generated catalog after Zen retired deepseek-v4-flash
claude Oct 27, 2026
32f2d71
Merge branch 'claude/vigilant-mendel-bctz9n' into claude/vigilant-men…
claude Oct 27, 2026
64c8acc
Merge branch 'claude/vigilant-mendel-bctz9n-p1a' into claude/vigilant…
claude Oct 27, 2026
6988e7a
Merge branch 'claude/vigilant-mendel-bctz9n-p1b' into claude/vigilant…
claude Oct 27, 2026
aba2c4a
Merge branch 'claude/vigilant-mendel-bctz9n-p2' into claude/vigilant-…
claude Oct 27, 2026
c6d8965
Merge branch 'claude/vigilant-mendel-bctz9n-p-t1a' into claude/vigila…
claude Oct 27, 2026
c6077be
Merge branch 'claude/vigilant-mendel-bctz9n-p-t1b' into claude/vigila…
claude Oct 27, 2026
3d7cb38
test: give the freshness walk's dynamic import a script-local target
claude Oct 27, 2026
e4aa0c9
Merge branch 'claude/vigilant-mendel-bctz9n' into claude/vigilant-men…
claude Oct 27, 2026
94c3a22
Merge branch 'claude/vigilant-mendel-bctz9n-p1a' into claude/vigilant…
claude Oct 27, 2026
14c1544
Merge branch 'claude/vigilant-mendel-bctz9n-p1b' into claude/vigilant…
claude Oct 27, 2026
8ee4245
Merge branch 'claude/vigilant-mendel-bctz9n-p2' into claude/vigilant-…
claude Oct 27, 2026
5133c0c
Merge branch 'claude/vigilant-mendel-bctz9n-p-t1a' into claude/vigila…
claude Oct 27, 2026
b518061
Merge branch 'claude/vigilant-mendel-bctz9n-p-t1b' into claude/vigila…
claude Oct 27, 2026
3ccd70c
fix: address the second review of P-R2
claude Oct 27, 2026
79d0036
Merge branch 'claude/vigilant-mendel-bctz9n-p-r2' into p3
claude Oct 27, 2026
29b43ca
chore: refresh the generated catalog after Zen retired deepseek-v4-flash
claude Oct 27, 2026
4891c07
test: follow the vendor catalog refresh
claude Oct 27, 2026
4dbd22e
fix: send Google's thinking level to Gemini models the catalog gives …
claude Oct 27, 2026
d8821f0
Merge remote-tracking branch 'origin/claude/vigilant-mendel-bctz9n-p-…
claude Oct 27, 2026
dec00c8
docs: correct the Go shape count, the README date and the install range
claude Oct 27, 2026
be649da
Merge remote-tracking branch 'origin/claude/vigilant-mendel-bctz9n-p-…
claude Oct 27, 2026
d16a600
docs: date the refreshed model count and correct three stale figures
claude Oct 27, 2026
f8a4af3
Merge branch 'claude/vigilant-mendel-bctz9n' into claude/vigilant-men…
claude Oct 27, 2026
cb3cdda
Merge branch 'claude/vigilant-mendel-bctz9n-p1a' into claude/vigilant…
claude Oct 27, 2026
3d461c2
Merge branch 'claude/vigilant-mendel-bctz9n-p1b' into claude/vigilant…
claude Oct 27, 2026
659b0f3
Merge branch 'claude/vigilant-mendel-bctz9n-p2' into claude/vigilant-…
claude Oct 27, 2026
fa6a5bd
Merge branch 'claude/vigilant-mendel-bctz9n-p-t1a' into claude/vigila…
claude Oct 27, 2026
c82fa3e
Merge branch 'claude/vigilant-mendel-bctz9n-p-t1b' into claude/vigila…
claude Oct 27, 2026
a583874
Merge branch 'claude/vigilant-mendel-bctz9n-p-h' into claude/vigilant…
claude Oct 27, 2026
72852fb
Merge branch 'claude/vigilant-mendel-bctz9n-p-r1' into claude/vigilan…
claude Oct 27, 2026
dbe995e
fix: address the second review of P3
claude Oct 27, 2026
3794482
Merge branch 'claude/vigilant-mendel-bctz9n-p3' into p-t2
claude Oct 27, 2026
c0ac147
chore: refresh the generated catalog after Zen retired deepseek-v4-flash
claude Oct 27, 2026
61e2c5d
docs: close the audit's remaining findings on P-R1
claude Oct 27, 2026
1c91312
Merge remote-tracking branch 'origin/main' into claude/vigilant-mende…
claude Nov 2, 2026
854a337
chore: follow the vendor's retirement of nemotron-3-ultra-free
claude Nov 2, 2026
b0f0bdc
test: walk past a model the gateway answers ModelDeprecated for
claude Nov 2, 2026
15e6236
test: install the plane-lookup world before each test
claude Nov 2, 2026
2454609
test(scripts): move the generated-table skip into the CLI-version rules
claude Nov 2, 2026
beae0ca
test(e2e): read an upstream's 400 "Model is unavailable" as a retirement
claude Nov 2, 2026
1d4aaab
docs(testing): describe the suite this branch keeps
claude Nov 2, 2026
4b0ebea
test(e2e): keep the free-tier case's narrowing in the subject picker
claude Nov 2, 2026
979ea27
chore(vendor): follow opencode 1.19.5
claude Nov 2, 2026
28fee8d
docs(plan): restack the plan onto 1.8.0 and the alpha host
claude Nov 2, 2026
8b9da84
build: raise the client bundle ceiling to 136 KB
claude Nov 2, 2026
281fc9f
docs: complete the restack of P0
claude Nov 2, 2026
6812723
docs: close the restack review of P0
claude Nov 2, 2026
7cd12d3
docs: hold the meter's allowance figures to the generated table
claude Nov 3, 2026
e3216d1
Merge remote-tracking branch 'origin/claude/vigilant-mendel-bctz9n' i…
claude Nov 3, 2026
73d5465
style: lint and format the merged purge row and token test
claude Nov 3, 2026
2ecf689
fix: complete the restack of P1a
claude Nov 3, 2026
252d0f8
docs: state the measured meter-scan reasons and P1a's refusal test cases
claude Nov 3, 2026
bf5717b
Merge remote-tracking branch 'origin/claude/vigilant-mendel-bctz9n-p1…
claude Nov 3, 2026
5e60c1b
test: one catalogue fixture, behind the one door
claude Nov 3, 2026
f3697a5
docs: describe debugFile by the gate main chose (D24)
claude Nov 3, 2026
074c834
style: satisfy main's promise lint in the retry test
claude Nov 3, 2026
19f05e6
docs(plan): record P1b's restack
claude Nov 3, 2026
8e9f36e
test: keep the fallback case's comment free of a model name
claude Nov 3, 2026
7136ca0
fix: complete the restack of P1b
claude Nov 3, 2026
786de90
docs: name the setup file in the door rule and count the fixture's en…
claude Nov 3, 2026
239d635
docs(plan): record the both-channel host question for P-T1a
claude Nov 3, 2026
bab4fc8
Merge remote-tracking branch 'origin/claude/vigilant-mendel-bctz9n-p1…
claude Nov 3, 2026
521b98f
test: route main's new tests through the one door
claude Nov 3, 2026
737a49d
docs(testing): drop the wrapper forwarder P2 retires again
claude Nov 3, 2026
c15aca0
docs: stop the count sweep record asserting a superseded catalog
claude Nov 3, 2026
798ba2e
chore: refresh the generated catalog for pulse-alpha-free
claude Nov 3, 2026
749669c
Merge branch 'claude/vigilant-mendel-bctz9n' into claude/vigilant-men…
claude Nov 3, 2026
835c793
Merge branch 'claude/vigilant-mendel-bctz9n-p1a' into claude/vigilant…
claude Nov 3, 2026
0563db6
chore: merge the parent's catalog refresh into P2
claude Nov 3, 2026
394e892
Merge remote-tracking branch 'origin/claude/vigilant-mendel-bctz9n-p2…
claude Nov 3, 2026
d65ed21
build: switch the dev install between the harness channels
claude Nov 3, 2026
f595d2d
test: fail if src reads what the desktop's patched pi changes
claude Nov 3, 2026
ea228a6
ci: run the unit and mock suites on both harness channels
claude Nov 3, 2026
90048d7
docs: record the both-channel, no-patch host policy
claude Nov 3, 2026
bcae61f
docs: keep the plan's D14'' row one table cell
claude Nov 3, 2026
44a6d5b
docs: complete the restack of P-T1a
claude Nov 3, 2026
bce1863
test: hold the relock's lockfile strip and name the channel switch's …
claude Nov 3, 2026
4679c1d
fix: report harness channel drift nightly and complete the restack of…
claude Nov 3, 2026
6310663
fix: keep Dependabot and the rc lockfile inside the channel-bump rule…
claude Nov 3, 2026
fb6a686
Merge remote-tracking branch 'origin/claude/vigilant-mendel-bctz9n-p-…
claude Nov 3, 2026
0101239
test: characterize the real host on both harness channels, newest and…
claude Nov 3, 2026
017adad
ci: boot each channel's published binary, as npm installs it and at t…
claude Nov 3, 2026
e1d775c
docs: describe the host cells and the per-channel binary e2e
claude Nov 3, 2026
4871d87
test: name the host cell each row and dispatch set belongs to
claude Nov 3, 2026
79ef58a
test: record the alpha host's broken save as a host limitation
claude Nov 3, 2026
8688046
fix: pin the e2e-host floor cell to the shipped tree and narrow its h…
claude Nov 4, 2026
c1fca83
fix: hold the cordis family to the declared range floors
claude Nov 4, 2026
ec38185
fix: hold the cordis family at the record's floors through a relock
claude Nov 4, 2026
011b99e
Merge remote-tracking branch 'origin/claude/vigilant-mendel-bctz9n-p-…
claude Nov 4, 2026
d001586
docs: pair the reload bullet in the Chinese README
claude Nov 4, 2026
ff2db1d
docs: retitle P-H as the fix it ships
claude Nov 4, 2026
58ba532
Merge remote-tracking branch 'origin/claude/vigilant-mendel-bctz9n-p-…
claude Nov 4, 2026
4a66384
fix: leave the Google thinking control to the host's pi
claude Nov 4, 2026
7ed93a7
fix: route by the plugin's own endpoint table, never pi's catalog
claude Nov 4, 2026
34d6959
fix: size undescribed models with pi-ai's own defaults, not a copy
claude Nov 4, 2026
fa53d8e
docs: cite both channels' host lines and correct the session header c…
claude Nov 4, 2026
db81e7e
test: size the adapter's toggle case through pi-ai's own Config
claude Nov 4, 2026
48776d2
test: hold every remote codec's two parser doors to one parser
claude Nov 4, 2026
0a165d6
test: record the floor's budget refusal in the dispatch cases
claude Nov 4, 2026
2701c88
test: record where the route claim cannot engage on the alpha npm host
claude Nov 4, 2026
76d11e0
fix: complete the restack of P-R1
claude Nov 4, 2026
8bb7b7f
docs: record the withdrawn thinking-level rewrite and finish the P-R1…
claude Nov 4, 2026
26d1e74
docs: complete the restack review of P-R1
claude Nov 4, 2026
7fec19d
Merge remote-tracking branch 'origin/claude/vigilant-mendel-bctz9n-p-…
claude Nov 4, 2026
53388e2
test(mock): the mock serves every dispatched request and no root one
claude Nov 4, 2026
67faee7
test: record the refusal, header and family shapes the community plug…
claude Nov 4, 2026
b9bff93
test: the dispatch derivation reads the root shape P-R2 probes
claude Nov 4, 2026
7322b8b
test: the endpoint-family pins use stand-in route defaults
claude Nov 4, 2026
6c4c643
fix: read ModelDeprecated as gone in every probe classifier and finis…
claude Nov 4, 2026
24fcf00
fix: name the session gate a capped free walk met, and close P-R2's p…
claude Nov 4, 2026
de9bfc0
Merge remote-tracking branch 'origin/claude/vigilant-mendel-bctz9n-p-…
claude Nov 4, 2026
da3dec9
docs: record what the restack changed for P3 in the plan
claude Nov 4, 2026
f006ce6
fix: offer Settings fetch's catalog complement only once the route cl…
claude Nov 4, 2026
38f19dc
test: a harness that is the real host
claude Nov 12, 2026
9cc5cd6
test: pin the host contracts for both internal/config call shapes
claude Nov 12, 2026
2db6e7b
test: re-measure the host cells on rc 0.2.2-rc.2 and alpha 0.2.2-alpha.3
claude Nov 12, 2026
d4723c2
test: pin the bridges' route-level api set per channel, and state bot…
claude Nov 12, 2026
0a000c5
docs: put P-T1b on main 1.9.2 and name the cores and owners the revie…
claude Nov 12, 2026
6786ee2
Merge the pre-rebase tip of claude/vigilant-mendel-bctz9n-p-t1b (hist…
claude Nov 12, 2026
0b2cf31
fix: disabling or reloading the plugin restores the host methods it w…
claude Nov 12, 2026
bea5722
docs: cite the new cordis core for the shadow-method trap, and name t…
claude Nov 12, 2026
da01f95
Merge the pre-rebase tip of claude/vigilant-mendel-bctz9n-p-h (histor…
claude Nov 12, 2026
57b0851
Merge origin/main (#168) into claude/vigilant-mendel-bctz9n-p-t1b
claude Nov 12, 2026
b1d8e29
Merge claude/vigilant-mendel-bctz9n-p-t1b (#110's head, with main #16…
claude Nov 12, 2026
e13848d
Merge origin/main (#110 squash) into claude/vigilant-mendel-bctz9n-p-h
claude Nov 12, 2026
d90f066
feat: the plugin owns the opencode and opencode-go routes
claude Nov 12, 2026
0ab3fa7
fix: the route claim speaks both internal/config call shapes
claude Nov 12, 2026
9ba2290
fix: plane profiles carry pi-ai's image bounds where pi-ai defines them
claude Nov 12, 2026
d4f6557
test: the binary e2e expects the claim on both host cores
claude Nov 12, 2026
5f82bd1
test: the route claim through a pi-ai row the loader removed first
claude Nov 12, 2026
bbd924d
docs: record the new host core and the claim on both shapes
claude Nov 12, 2026
aa70a43
fix: the route claim's re-append never throws into pi-ai's status emit
claude Nov 12, 2026
1f80a51
docs: mark P-T1b and P-H merged, and put P-R1 on main 1.9.2
claude Nov 12, 2026
0b6fc99
docs: the plan's summaries say P0 to P-H are merged
claude Nov 12, 2026
974b43a
Merge the pre-rebase tip of claude/vigilant-mendel-bctz9n-p-r1 (histo…
claude Nov 12, 2026
b54b1de
test: measure which endpoint families the gateway serves
claude Nov 12, 2026
a706d44
docs: record P-R2's dispatch set re-measured on the new host core
claude Nov 12, 2026
af1de77
Merge the pre-rebase tip of claude/vigilant-mendel-bctz9n-p-r2 (histo…
claude Nov 12, 2026
e04e719
Merge claude/vigilant-mendel-bctz9n-p-h (this PR's base) into claude/…
claude Nov 12, 2026
3eb8541
feat: Settings offers the catalog's models pi does not list
claude Nov 12, 2026
60f6552
test: the F21 restart case finds pi-ai's fiber by uid on the new core
claude Nov 12, 2026
c35e6a4
test: Settings' fetch follows the claim's engagement on the new core
claude Nov 12, 2026
40bb655
test: the binary e2e's Settings fetch rows run in every cell of both …
claude Nov 12, 2026
cbca50a
docs: P3's guard on the new core, and its e2e rows in every cell
claude Nov 12, 2026
6c172fe
test: name the pi versions host-discovery's capacity check is measure…
claude Nov 12, 2026
a7cb95a
test: drive Settings' fetch guard through states the host cores reach
claude Nov 13, 2026
33925ef
Merge origin/main (#170, #159) into claude/vigilant-mendel-bctz9n-p-r1
claude Nov 13, 2026
77f538b
fix: Settings' fetch answers the catalog through a handover's restart
claude Nov 13, 2026
96789b4
docs: the plan's patch-method section reads claiming() as the other r…
claude Nov 13, 2026
fdd1ec8
Merge the pre-rebase tip of claude/vigilant-mendel-bctz9n-p3 (history…
claude Nov 13, 2026
71dae39
docs: the plan's P3 rebase note counts four cases and says which chan…
claude Nov 13, 2026
8648541
test: restructure the suite
claude Nov 13, 2026
c3a715a
test: the route claim's stand-in models both cordis cores in one place
claude Nov 13, 2026
8a0cc97
docs: record P-T2's rebase onto P3 and where the new core's cases landed
claude Nov 13, 2026
d3be8ab
test: the refusal oracle classifies a 403 through the installed pi-ai
claude Nov 13, 2026
e18d5b5
test: the refusal oracle's control reads the probe's words, and logLi…
claude Nov 13, 2026
6fcd5b5
docs: place the route claim's stand-in in its support file and record…
claude Nov 13, 2026
11410fd
Merge the pre-rebase tip of claude/vigilant-mendel-bctz9n-p-t2 (histo…
claude Nov 13, 2026
5ecc037
fix: the route claim steps aside for a plane another plugin owns
claude Nov 13, 2026
e21f99d
docs: D27, and the routes OpenCode Console serves
claude Nov 13, 2026
6527780
fix: keep the plugin off every stepped-aside plane, by realm or marker
claude Nov 13, 2026
d63a24c
docs: D27 names the realm by what each context resolves, and covers t…
claude Nov 13, 2026
a1db1d2
fix: a live change of pi-ai's realm alone moves its planes, with one …
claude Nov 13, 2026
51f4626
fix: the purge never rewrites a plane entry another plugin owns
claude Nov 13, 2026
7052ab0
test: pin the step-aside's multi-row branches and the save check on a…
claude Nov 13, 2026
574604e
docs: D27 covers a realm-only live edit and the purge
claude Nov 13, 2026
140c9c9
fix: a live realm change on the plugin's own row or a group moves the…
claude Nov 13, 2026
3c85d97
fix: a marker saved beside a second pi-ai row releases the plane in t…
claude Nov 13, 2026
d58994b
test: perform the discovery and meter step-aside through the applied …
claude Nov 13, 2026
b2d5a86
docs: D27 covers every row's realm edit and the second-row release; t…
claude Nov 13, 2026
219263f
Merge claude/vigilant-mendel-bctz9n-p-r1 (D27 step-aside, main #170/#…
claude Nov 13, 2026
d563282
test: the endpoint setting never moves a plane another plugin owns
claude Nov 13, 2026
25c8c9e
Merge claude/vigilant-mendel-bctz9n-p-r2 (D27 step-aside, main #170/#…
claude Nov 13, 2026
c1d9e86
fix: Settings leaves a stepped-aside plane's list to pi-ai
claude Nov 13, 2026
8b2fa44
fix: Settings leaves a foreign-realm row's undeclared plane to pi-ai
claude Nov 13, 2026
b20bf4b
Merge claude/vigilant-mendel-bctz9n-p3 (D27 step-aside, main #170/#15…
claude Nov 13, 2026
340bf68
docs: record where D27's cases landed in P-T2's layout
claude Nov 13, 2026
5c3854b
chore: refresh the generated catalog and limits tables
github-actions[bot] Nov 13, 2026
586c6b8
chore: follow the catalog refresh through the docs and tests
claude Nov 13, 2026
7534edc
docs: point the routes module header at the per-SDK counts instead of…
claude Nov 13, 2026
ff2f0d6
docs: say where the per-SDK counts live without claiming a single copy
claude Nov 13, 2026
152d0c0
docs: replace the retired muse-spark-1.3-contributor-free id in both …
claude Nov 13, 2026
37bcf0c
Merge the catalog refresh (#171) into claude/vigilant-mendel-bctz9n-p-r1
claude Nov 13, 2026
ce889ef
chore: follow the catalog refresh through P-R1's tests and docs
claude Nov 13, 2026
65b8443
Merge claude/vigilant-mendel-bctz9n-p-r1 (catalog refresh #171) into …
claude Nov 13, 2026
285aeaf
Merge claude/vigilant-mendel-bctz9n-p-r2 (catalog refresh #171) into …
claude Nov 13, 2026
50ef6ab
Merge claude/vigilant-mendel-bctz9n-p3 (catalog refresh #171) into cl…
claude Nov 13, 2026
1e46ef7
ci: one setup, one unit run, and stricter scripts
claude Nov 14, 2026
5690400
Merge branch 'main' into p-t3
claude Nov 14, 2026
fd3a6bc
fix: report the gateway's refusals honestly
claude Nov 14, 2026
2c8e154
refactor: one installer for the remote services
claude Nov 14, 2026
cc9d484
Merge origin/main into p-t3
claude Nov 15, 2026
84feb50
fix: decide every README value of a host bump against the paragraph a…
claude Nov 15, 2026
17d6a50
test: name a pnpmfile among the build approvals the tokenless plan st…
claude Nov 15, 2026
7a41445
test: spawn the catalog scripts current and on a moved endpoint, and …
claude Nov 15, 2026
a787b5e
docs: name what enforces the client-bundle boundary, and P-T3's pull …
claude Nov 15, 2026
9911b30
test: find a root pnpmfile on disk and hold the global pnpmfile spell…
claude Nov 15, 2026
1e51e5d
Merge the re-reviewed p-t3 into p-r3
claude Nov 15, 2026
46175e3
test: tie each variant row's "no key" label to its keyed switch
claude Nov 16, 2026
42929dc
Merge the re-reviewed p-r3 into p5
claude Nov 16, 2026
bf01001
docs: record that P5's pins landed in its one change commit
claude Nov 16, 2026
ef74a26
Merge main (#177 toolchain bump, #178 refresh) into p-t3
claude Nov 16, 2026
0f97615
Merge p-t3 into p-r3
claude Nov 16, 2026
6c599a5
Merge p-r3 into p5
claude Nov 16, 2026
bf1b3b8
fix: narrow the typert peer to the request-headers seam
claude Nov 16, 2026
359ae87
refactor: one resolver for the fetch patch's credential fill
claude Nov 16, 2026
524e95a
revert: keep the typert peer range and state the seam's floor in the …
claude Nov 16, 2026
544c88a
docs: record the typert peer decision as taken for the owner in the P…
claude Nov 16, 2026
c424b21
docs: state what #163 did to the cordis peer, not an intent it never …
claude Nov 16, 2026
5749d91
chore: refresh the generated catalog and limits tables
github-actions[bot] Nov 16, 2026
997eb17
refactor: one source per table
claude Nov 16, 2026
ac8f34f
Merge branch 'claude/vigilant-mendel-bctz9n-p6' into p7
claude Nov 16, 2026
7ebbe83
chore: follow the catalog refresh through the docs and tests
claude Nov 16, 2026
beaf08b
test: stop saying the newest pi lists every Go catalog model
claude Nov 16, 2026
1ad8bd8
test: word the pi-gap comment so it depends on no host cell
claude Nov 16, 2026
f36e849
Merge main (#181 toolchain bump) and the catalog refresh (#182) into …
claude Nov 16, 2026
71316be
Merge claude/vigilant-mendel-bctz9n-p-t3 (main #181, refresh #182) in…
claude Nov 16, 2026
aa58754
Merge claude/vigilant-mendel-bctz9n-p-r3 (main #181, refresh #182) in…
claude Nov 16, 2026
0834b63
Merge claude/vigilant-mendel-bctz9n-p5 (main #181, refresh #182) into…
claude Nov 16, 2026
f5610db
Merge claude/vigilant-mendel-bctz9n-p6 (main #181, refresh #182) into…
claude Nov 16, 2026
121bd6d
Merge main (#180) into claude/vigilant-mendel-bctz9n-p7
claude Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions AGENTS.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Zen's provider-level SDK is `@ai-sdk/openai-compatible`. models.dev names a **di
| `@ai-sdk/openai` | 32 | OpenAI Responses |
| `@ai-sdk/anthropic` | 18 | Anthropic Messages |
| `@ai-sdk/google` | 10 | Google Generative AI |
| `@ai-sdk/mistral` | 1 | OpenAI Chat Completions, as pi's own data files it |
| `@ai-sdk/mistral` | 1 | OpenAI Chat Completions, the plugin's own rule for this SDK |

Counts are the **89** active `opencode` models in `models.opencode.ai` as of 2026-11-16 — everything else the vendor lists is deprecated or retired, and the patch ships only what the gateway still serves. The same 89 are bundled offline in `src/catalog-data.ts`, so every one of them routes correctly before the first catalog refresh; regenerate that file with `pnpm run catalog:shim -- --write` (without `--write` it only checks).

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Zen 的 provider 级 SDK 是 `@ai-sdk/openai-compatible`。models.dev **只在
| `@ai-sdk/openai` | 32 | OpenAI Responses |
| `@ai-sdk/anthropic` | 18 | Anthropic Messages |
| `@ai-sdk/google` | 10 | Google Generative AI |
| `@ai-sdk/mistral` | 1 | OpenAI Chat Completions(与 pi 自己的数据一致) |
| `@ai-sdk/mistral` | 1 | OpenAI Chat Completions(插件自己对该 SDK 的规则) |

数量为 `models.opencode.ai` 中 `opencode` 的 89 个**在用**模型,统计于 2026-11-16 —— 其余已废弃或下架,补丁只内置网关仍在服务的部分。同样这 89 个模型离线内置在 `src/catalog-data.ts`,因此在第一次 catalog 刷新之前它们每一个路由都是正确的;用 `pnpm run catalog:shim -- --write` 重新生成该文件(不加 `--write` 时只做检查)。

Expand Down
7 changes: 4 additions & 3 deletions docs/deep-dive.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ When DSH spawns subagents (`subagent` / `subagent_fork`), each child runs in a s
▼ spawns subagent
[Child DSH Session: "session-xyz"] ──> [ses_<12hex><14base62>]

Outgoing subagent request:
x-opencode-session: ses_<child 12hex><14base62>
Outgoing subagent request on an OpenCode plane:
x-opencode-session-id: ses_<child 12hex><14base62>
x-session-affinity: ses_<child 12hex><14base62>
x-opencode-session: ses_<child 12hex><14base62>
x-opencode-parent-session-id: ses_<parent 12hex><14base62>
x-parent-session-id: ses_<parent 12hex><14base62>
```

A relay adds `x-session-affinity` and `X-Session-Id` after the plane pair, both carrying the child's id; which headers go where is recorded once, in `CLIENT_GENERATIONS` (`src/utils/client-generation.ts`).

This lineage lets upstream servers optimize prompt caching across agent teams and delegation workflows.

### 3. Dynamic workspace project attribution
Expand Down
2 changes: 1 addition & 1 deletion docs/engineering-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ So the round that "fixed the tool schemas" renamed `filePath` to `path` and adde
Other deltas the comparison establishes, none of them acted on yet:

- `x-opencode-request` **is** sent by 1.19.5 (the user message id) and was dropped in 2.x. This plugin omitted it for a round — the turn store held no message id — and now sends one minted per turn in the same shape; the section below records how and why.
- `x-session-affinity` and `X-Session-Id` are **not** sent for `opencode*` providers in 1.19.5 — they are the other branch, for relays. This plugin sends them on every claimed request.
- `x-session-affinity` and `X-Session-Id` are **not** sent for `opencode*` providers in 1.19.5 — they are the other branch, for relays. This plugin sent them on every claimed request when this was written; it now sends them on a relay only, as `CLIENT_GENERATIONS["1.x"]` (`src/utils/client-generation.ts`) records.
- `User-Agent` is `opencode/<version>` in 1.19.5, and `opencode/<channel>/<version>/<client>` in 2.x. The plugin sends `opencode/1.19.5 ai-sdk/provider-utils/… runtime/bun/…`, which is neither.
- Chat bodies use `max_tokens` in 1.19.5 and `max_completion_tokens` in 2.x.
- `b3` is absent in **both** generations, and `traceparent` appears only under `experimental.openTelemetry` — so neither belongs in the plugin's request on the evidence available.
Expand Down
20 changes: 14 additions & 6 deletions docs/improvement-plan.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/protocol-routing-and-merge.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ OpenCode serves its models on **four different API shapes**, and which one a mod
| OpenAI **Responses** | `POST /inference/openai/v1/responses` | 32 of 89 | `@ai-sdk/openai` |
| Anthropic **Messages** | `POST /inference/anthropic/v1/messages` | 18 of 89 | `@ai-sdk/anthropic` |
| Google **Generative AI** | `POST /inference/google/v1beta/models/<id>:streamGenerateContent` | 10 of 89 | `@ai-sdk/google` |
| OpenAI **Chat Completions** (as pi files it) | `POST /inference/openai/v1/chat/completions` | 1 of 89 | `@ai-sdk/mistral` |
| OpenAI **Chat Completions** (the plugin's own rule) | `POST /inference/openai/v1/chat/completions` | 1 of 89 | `@ai-sdk/mistral` |

Counts are the shipped catalog. They are asserted against this table by `catalog-docs.test.ts`, because a count written into prose does not regenerate with the data it counts. Go's endpoints are the same paths under `/inference/go/…`; `endpoint: legacy` sends every protocol to `/zen/v1` (`/zen/go/v1` on Go), except Go's Google, which only the inference family serves.

**"OpenAI" is two of the four served shapes.** Chat Completions and Responses are different wire formats, and a model that needs Responses does not work on the completions endpoint. The gateway does not fall back; it answers `500`. So each model has to be sent to the endpoint its own SDK names, without asking the user to configure anything.

**Mistral is completions (D16).** `@ai-sdk/mistral` was once kept unserved for want of a measured dialect. pi's own installed data files `mistral-large-4` under `openai-completions`, so the plugin follows pi, and no SDK is withheld any more.
**Mistral is completions (D16).** `@ai-sdk/mistral` was once kept unserved for want of a measured dialect. The plugin's own rule: `PROTOCOL_FOR_SDK` files the SDK as `openai-completions`, on the OpenAI root the catalog's family table places it; which dialect the gateway serves there is unmeasured. No SDK is withheld any more.

## 2. How a model is served: one route per plane (D13)

Expand Down
2 changes: 1 addition & 1 deletion docs/redirect-planes.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ That is why the servability check treats `undefined` as servable, and why `@ai-s

**The two bold cells were the gap, and they are closed.** The Go plane serves 12 models on shapes other than completions; both planes now serve every shape either one carries, on the plane's own route (§3).

**`@ai-sdk/mistral` is completions (D16).** pi's own data files `mistral-large-4` under `openai-completions`, so the plugin follows it rather than keeping the SDK unserved; nothing is withheld for its protocol any more.
**`@ai-sdk/mistral` is completions (D16).** The plugin's own rule: `PROTOCOL_FOR_SDK` files the SDK as `openai-completions`, on the OpenAI root the catalog's family table places it; which dialect the gateway serves there is unmeasured. Nothing is withheld for its protocol any more.

## 3. Routes

Expand Down
8 changes: 5 additions & 3 deletions docs/upstream-findings.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The payload we send is negotiated with whatever gateway the account is on, and b
| :-- | :-- | :-- |
| Latest at time of writing | 1.19.5 | 2.0.32 |
| Session id generator | `packages/opencode/src/id/id.ts` **and** `packages/schema/src/identifier.ts` | `packages/schema/src/identifier.ts` only (`packages/opencode/` is gone) |
| Header assembly | `packages/core/src/session/runner/llm.ts` | `packages/core/src/session/model-request.ts` |
| Header assembly | `packages/opencode/src/session/llm/request.ts` at the `v1.19.5` tag, as `CLIENT_GENERATIONS["1.x"]` records it (§1.2 has an earlier, unreconciled reading) | `packages/core/src/session/model-request.ts` |
| Gateway shape | `opencode.ai/zen/v1/…` | `opencode.ai/inference/<proto>/v1/…` |
| Free-tier gate | `allowAnonymous` on the model entry | not present in the snapshot (see §1.5) |

Expand Down Expand Up @@ -72,7 +72,9 @@ Three facts, each of which contradicts something this plugin once assumed:

### 1.2 The header contract — 1.19.5

`packages/core/src/session/runner/llm.ts`, the authoritative assembly:
> **Unreconciled reading.** The plugin follows the plane and relay branches of `packages/opencode/src/session/llm/request.ts` at the `v1.19.5` tag, recorded once in `CLIENT_GENERATIONS["1.x"]` (`src/utils/client-generation.ts`): on an `opencode*` route, `x-opencode-session-id` and `x-opencode-session`; the affinity pair (`x-session-affinity`, `X-Session-Id`) only on a relay. The block below is an earlier reading of `packages/core/src/session/runner/llm.ts`, most likely taken from the `dev` branch (`docs/engineering-notes.md` records three such misreadings), and has not been checked against the tag. It is kept as found, not as the contract.

`packages/core/src/session/runner/llm.ts`, as first read:

```ts
const promptCacheKey = /^ses_[0-9a-f]{64}$/.test(session.id) ? session.id.slice(4) : session.id
Expand Down Expand Up @@ -124,7 +126,7 @@ Differences that matter to us:
2. **Three headers 1.19 does not send**: `User-Agent`, `x-opencode-project`, `x-opencode-client` (value `app.name`).
3. `x-opencode-session` exists in both lines but carries different things.

**Consequence.** Our plugin sends `session.id` in all five of 1.19's headers. That is exactly 1.19's contract and correct for a 1.19 account. For a 2.x account the gateway expects the affinity-derived value in three of them, so a 2.x account sees a session that does not group as the client intended. Whether the 2.x gateway _enforces_ this is **unverified** — it may happily accept `session.id`.
**Consequence.** Our plugin sends the session id in 1.19's headers as `CLIENT_GENERATIONS["1.x"]` records them: two session headers on a plane route (`x-opencode-session-id`, `x-opencode-session`), four on a relay (those two plus `x-session-affinity` and `X-Session-Id`), and the parent pair for a subagent. That is 1.19's contract and correct for a 1.19 account. For a 2.x account the gateway expects the affinity-derived value in three of them, so a 2.x account sees a session that does not group as the client intended. Whether the 2.x gateway _enforces_ this is **unverified** — it may happily accept `session.id`.

### 1.4 The gateway path table — identical in both lines

Expand Down
11 changes: 10 additions & 1 deletion scripts/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,17 @@ try {
* That is the kind of growth the last four raises were: a surface the HOST
* answers, not a dependency that should have stayed external — which is the case
* this tripwire exists to catch, and which the ceiling is not raised for.
*
* Raised 136 -> 140 KB when P7 gave each table one source: the client now
* carries the one dollar formatter with both styles (`src/utils/usd.ts`,
* replacing the allowance one it took from `go-limits.ts`) and the route rule
* the meter's Zen test reads (`planeForRoute`, `src/utils/planes.ts`; the
* table itself is tree-shaken out). The growth is chiefly the `metered`
* style's rationale comment, which used to live in the host-only
* `session-cost.ts`. Source and its comments, not a dependency — the client
* measured 141010 bytes against the old line, from 139148 on the base.
*/
const CLIENT_BUDGET = 136 * 1024;
const CLIENT_BUDGET = 140 * 1024;
const clientPath = join(ROOT, "lib/client.js");
if (existsSync(clientPath)) {
const clientStat = statSync(clientPath);
Expand Down
7 changes: 4 additions & 3 deletions scripts/vendor-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ export const disagreements = (
* No constant pins that generation: `OPENCODE_CLI_VERSION` is a 1.x version
* and the plugin sends the 1.x form. A 2.x literal in the tree is therefore a
* claim about what the CLI sends that nothing checks, the kind of copy this
* gate exists to keep from drifting. The client-generation table that would
* pin it is P7's (L6); until then such a literal is a placeholder, never a
* value.
* gate exists to keep from drifting. The client-generation table
* (`src/utils/client-generation.ts`, L6) records the 2.x FORMAT, but pins no
* 2.x version, so a concrete literal is still a claim; such a literal is a
* placeholder, never a value.
*
* @param found - each 2.x-form literal, with the files that say it.
* @returns the messages, one per literal.
Expand Down
5 changes: 3 additions & 2 deletions src/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import {
usableKey,
} from "./utils/credential-policy.ts";
import { isRecord } from "./utils/guards.ts";
import { planeOfPlaneRoute } from "./utils/planes.ts";

/** What the gateway's answer says about the key a request carried. */
export type KeyOutcome = "accepted" | "refused";
Expand Down Expand Up @@ -464,9 +465,9 @@ export const createCredentials = (
// Only a known gateway plane may ask for its own variable: a configured
// provider can also claim other URLs, which take the Zen one, as they
// always have.
// A URL on a plane decides alone; with none, the exact route does.
const declaredName =
plane === "opencode-go" ||
(plane.length === 0 && provider === "opencode-go")
planeOfPlaneRoute(plane.length === 0 ? provider : plane) === "go"
? "OPENCODE_GO_API_KEY"
: "OPENCODE_API_KEY";
const declared = environment(declaredName);
Expand Down
9 changes: 4 additions & 5 deletions src/fetch-patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ import { extractApiKeyFromHeaders } from "./key-capture.ts";
import {
type CatalogPlane,
enrichModelsResponse,
findModelSpec,
findModelSpecOn,
isModelsListingUrl,
specOn,
} from "./models-catalog.ts";
import {
isOpenCodeSessionId,
Expand All @@ -51,7 +50,7 @@ import {
authHeaderFor,
gatewayPlaneFor,
headerSourceOf,
isGoPlaneUrl,
planeForUrl,
planeHeadersFor,
pluginMarkerOn,
projectHeaderOf,
Expand Down Expand Up @@ -99,7 +98,7 @@ const isFreeModelBody = (
// has to be the plane's. The plane-agnostic lookup searches Go first, which
// today agrees with the plane-aware one for every model in the catalog, and
// is wrong the day it does not.
const spec = findModelSpecOn(plane, model) ?? findModelSpec(model);
const spec = specOn(plane, model);
return spec?.is_free === true;
} catch {
return false;
Expand Down Expand Up @@ -345,7 +344,7 @@ export const patchFetch = (
//
// A body the check cannot read answers "not free", which is the safe
// side - the warning is the status quo, not a new failure.
!isFreeModelBody(bodyToPatch, isGoPlaneUrl(url) ? "go" : "zen")
!isFreeModelBody(bodyToPatch, planeForUrl(url))
) {
warnedNoCredential.add(plane);
const { consulted } = decision;
Expand Down
8 changes: 0 additions & 8 deletions src/go-limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ export const allowanceFor = (
model: string
): ModelAllowance | undefined => limits.get(model.trim().toLowerCase());

/** Unknown allowances (including NaN serialized as null) are never dollar values. */
export const formatUsd = (value: unknown): string => {
if (typeof value !== "number" || !Number.isFinite(value) || value < 0) {
return "—";
}
return Number.isInteger(value) ? `$${value}` : `$${value.toFixed(2)}`;
};

/**
* Normalize a doc-table row label to a model id.
*
Expand Down
3 changes: 2 additions & 1 deletion src/host/plane-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import {
isRecord,
} from "../utils/guards.ts";
import type { PlaneProviderBuilder } from "../utils/plane-profile.ts";
import { planeOfPlaneRoute } from "../utils/planes.ts";
import { PROTOCOLS } from "../utils/protocols.ts";

/** A resolved plane profile, as far as this module reads one. */
Expand Down Expand Up @@ -650,7 +651,7 @@ export const buildPlaneProvider =
})
),
auth:
id === "opencode-go"
planeOfPlaneRoute(id) === "go"
? libraries.opencodeGoAuth
: libraries.opencodeAuth,
id,
Expand Down
20 changes: 6 additions & 14 deletions src/host/route-claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ import {
} from "../cordis-context.ts";
import {
catalogGeneration,
getLiveGoCatalog,
getLiveZenCatalog,
liveCatalogOn,
onCatalogChange,
} from "../models-catalog.ts";
import {
Expand All @@ -128,6 +127,7 @@ import {
planeProfileFor,
withoutPlaneProviders,
} from "../utils/plane-profile.ts";
import { PLANE_OF_ROUTE } from "../utils/planes.ts";
import { PLANE_ROUTES, type PlaneRoute } from "../utils/protocols.ts";
import {
buildPlaneProvider,
Expand Down Expand Up @@ -482,14 +482,10 @@ export const installRouteClaim = (
}
const result = planeProfileFor({
buildProvider: buildPlaneProvider(libraries),
catalog:
route === "opencode-go" ? getLiveGoCatalog() : getLiveZenCatalog(),
catalog: liveCatalogOn(PLANE_OF_ROUTE[route]),
endpoint: config.endpoint,
entry: entries[route],
familyApi:
route === "opencode-go"
? OPENCODE_FAMILY_API.go
: OPENCODE_FAMILY_API.zen,
familyApi: OPENCODE_FAMILY_API[PLANE_OF_ROUTE[route]],
...(interpolate === undefined
? {}
: { interpolate: (value: unknown) => interpolate(pi.ctx, value) }),
Expand Down Expand Up @@ -912,14 +908,10 @@ export const installRouteClaim = (
const { interpolate } = modules.libraries;
const result = planeProfileFor({
buildProvider: buildPlaneProvider(modules.libraries),
catalog:
plane === "opencode-go" ? getLiveGoCatalog() : getLiveZenCatalog(),
catalog: liveCatalogOn(PLANE_OF_ROUTE[plane]),
endpoint: config.endpoint,
entry: candidate[plane],
familyApi:
plane === "opencode-go"
? OPENCODE_FAMILY_API.go
: OPENCODE_FAMILY_API.zen,
familyApi: OPENCODE_FAMILY_API[PLANE_OF_ROUTE[plane]],
...(interpolate === undefined
? {}
: { interpolate: (value: unknown) => interpolate(fiber.ctx, value) }),
Expand Down
13 changes: 11 additions & 2 deletions src/identity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
* @module dsh-opencode-patch/identity
*/

import {
CLIENT_GENERATIONS,
EMULATED_GENERATION,
} from "./utils/client-generation.ts";

/** Component identity (log lines, service scoping). */
export const name = "dsh-opencode-patch";

Expand Down Expand Up @@ -59,8 +64,12 @@ export const OPENCODE_CLI_VERSION = "1.19.5";
* SDK's own User-Agent, which is what a DIFFERENT transport stamps on a request;
* it is not the client's, and 2.x changed the shape again to
* `opencode/<channel>/<version>/<client>` (`packages/core/src/app.ts:24`).
* Both forms are rows of `CLIENT_GENERATIONS` (`utils/client-generation.ts`),
* and this is the emulated generation's.
*/
export const OPENCODE_USER_AGENT = `opencode/${OPENCODE_CLI_VERSION}`;
export const OPENCODE_USER_AGENT = CLIENT_GENERATIONS[
EMULATED_GENERATION
].userAgent({ version: OPENCODE_CLI_VERSION });

/** The User-Agent the plugin signs its own requests with. */
export const OPENCODE_PATCH_USER_AGENT = `opencode/${OPENCODE_CLI_VERSION} dsh-opencode-patch`;
export const OPENCODE_PATCH_USER_AGENT = `${OPENCODE_USER_AGENT} dsh-opencode-patch`;
20 changes: 7 additions & 13 deletions src/key-capture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import { isPlaceholderApiKey } from "./utils/credential-policy.ts";
import { isRecord } from "./utils/guards.ts";
import { planeOfPlaneRoute } from "./utils/planes.ts";
import { gatewayPlaneFor } from "./utils/request-shape.ts";

/** Account tiers a captured credential can belong to. */
Expand Down Expand Up @@ -61,21 +62,14 @@ export const tierForRequest = (url?: string, provider?: string): KeyTier => {
// not in `/inference/openai/v1`, so the ZEN openai family was filed under
// no account at all. A key filed under the wrong account is worse than one
// filed under none: it is used, and it is the wrong one.
const plane = gatewayPlaneFor(url);
if (plane === "opencode-go") {
return "go";
const onUrl = planeOfPlaneRoute(gatewayPlaneFor(url));
if (onUrl !== undefined) {
return onUrl;
}
if (plane === "opencode") {
return "zen";
}
}
if (provider === "opencode-go") {
return "go";
}
if (provider === "opencode") {
return "zen";
}
return "unknown";
// Only the two exact routes name a plane; a relay or a renamed route is a
// hint the URL above did not confirm.
return planeOfPlaneRoute(provider) ?? "unknown";
};

const readHeaderString = (
Expand Down
Loading
Loading