Skip to content

fix(server): provider compatibility is looked up with the release the pinned code ships as - #526

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5/upstream-version-guard
Oct 10, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5/upstream-version-guard

Conversation

@Jacksondr5

Copy link
Copy Markdown
Owner

Problem

J5 answers upstream's provider compatibility table as T3 Code 0.0.45, but the upstream code it contains ships as 0.0.46. On J5, OpenCode 2.x is called broken with a recommendation to use 1.14.19 (the code is built against OpenCode 2.0.23), and Pi and Muse match no policy at all. Codex, Claude, Cursor, Grok and Antigravity select the same policy either way. Refs #503.

What changed

  • J5_UPSTREAM_T3_CODE_VERSION is 0.0.46. In feat(j5): advance to upstream main at 29980a3140 #500 it was read from upstream's package.json, which holds upstream's last release; main is already the next one (upstream's nightlies from this code are 0.0.46-nightly.*, and upstream's own test names 0.0.46 as the first V2 release).
  • A test fails when the constant does not select each built-in harness's newest bundled policy. The bundled table is written for the pinned code, so that is the right answer by construction. With 0.0.45 the test fails on OpenCode.
  • The merge guide and FORK.md case 59 say which version to set: the one the pinned code will ship as, not upstream's package.json version.

The search #503 asked for found no other code that compares the app's version with upstream's numbering; the details are on the issue.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior (backend changes ship with focused tests)
  • UI changes: before/after screenshots above, and a video for motion or interaction. No UI change.
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR. No upstream file is edited; case 59's text is corrected.
  • Upstream product: any change to what upstream's product does has a human decision linked above and a register entry in docs/j5/product/upstream.md. None; this restores upstream's behavior.
  • Surfaces: entry points, clients, providers, contracts, reverse states, connection modes (see AGENTS.md). Providers: OpenCode, Pi and Muse change policy; the other five are unchanged. Not run against a live OpenCode, Pi or Muse install.
  • Docs: definitions under docs/j5/product/ and user docs rewritten where this changes them. Merge guide and FORK.md only.

Claude Opus 5.5, Claude Code.

🤖 Generated with Claude Code

… pinned code ships as

J5 answered upstream's compatibility table as T3 Code 0.0.45, the last release in upstream's
package.json. The pinned code is upstream main, which ships as 0.0.46, so OpenCode 2 was called
broken and Pi and Muse matched no policy. A test now fails when the constant does not select each
harness's newest bundled policy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Oct 10, 2026 10:34pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 919b93d5-b966-4a2c-8a57-35b7574a86ae

📥 Commits

Reviewing files that changed from the base of the PR and between e66e04c and cc3331a.


📒 Files selected for processing (4)
  • FORK.md
  • apps/server/src/j5/upstreamVersion.test.ts
  • apps/server/src/j5/upstreamVersion.ts
  • docs/j5/process/upstream-merge.md

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.



📝 Walkthrough

Walkthrough

The recorded upstream release version changes from 0.0.45 to 0.0.46. The version-setting guidance is revised, and a test checks compatibility policy selection for built-in drivers.

Changes

Upstream version tracking

Layer / File(s) Summary
Version value, instructions, and policy coverage
apps/server/src/j5/upstreamVersion.ts, FORK.md, docs/j5/process/upstream-merge.md, apps/server/src/j5/upstreamVersion.test.ts
The exported version changes to 0.0.46. The comments and checklists say to set the value to the release the pinned code will ship as. A test checks compatibility policy resolution for built-in drivers, except acpRegistry, with and without version 9999.0.0.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix


Merge Risk: ⚪ Minimal · up to cc333

No actionable merge-blocking issue is identified; this is mergeable after normal checks.

Pre-merge checks | Passed 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly states the primary change: provider compatibility now uses the release version shipped by the pinned code. It is specific and related to the changeset.
Description check Passed The description explains the problem, the implementation, the test coverage, affected providers, documentation changes, and testing limitations. It follows the required template and clearly states tha…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@Jacksondr5
Jacksondr5 merged commit 553119c into j5/main Oct 10, 2026
36 checks passed
@Jacksondr5
Jacksondr5 deleted the j5/upstream-version-guard branch October 10, 2026 22:46

This branch was successfully deployed

1 active deployment
Preview — cc3331af Deployed Oct 10, 2026 by vercel[bot]
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