Skip to content

XCOD-239: upstream v2 spike — feature map, estimate, recommendation (stay on v1) - #197

Merged
pminevp merged 3 commits into
devfrom
xcod-239-v2-spike
Oct 13, 2026
Merged

pminevp merged 3 commits into
devfrom
xcod-239-v2-spike

Conversation

@pminevp

@pminevp pminevp commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

XCOD-239: upstream v2 spike: stay on v1 for now

Docs only: .claude/docs/xcod-239-upstream-v2-spike.md. No product code.

Recommendation: stay on v1. Track upstream's v1 release tags (option B), and close #190 without merging.

Why

  • v2 is a rewrite, not a release. It deletes packages/opencode, which holds 418 files Lunos changed.
  • The port is large: about 117–183 person-days, or 147–228 with contingency. It would reopen XCOD-221 and XCOD-174.
  • v2 puts upstream services back on default paths:
    • a keyless Zen fallback;
    • update checks to opencode.ai;
    • models.opencode.ai as the model catalogue;
    • an opencode.ai URL as the MCP OAuth client identity.
  • Upstream still ships v1. It has a v1 branch, and v1.19.0 came out on 2026-10-11.

When to migrate (proposed triggers)

  • upstream publishes a v1 end-of-life date;
  • no upstream v1.* tag for 30 days;
  • a security or provider fix lands only in v2 and costs more than 2 person-days to backport;
  • a paying pilot needs a v2-only capability.

Re-run the spike on 2026-11-24 either way. When a trigger fires, re-fork from an upstream v2 tag and ship in three waves under lunos-ai@next.

Risks found along the way, with decisions for the PO in the doc

  • Lunos and upstream share ~/.local/share/opencode/opencode.db. Upstream v2 migrates that database, and nobody has tested whether Lunos v1 still starts afterwards.
  • v2 ignores unknown config keys with only a warning. Lunos's compliance keys (residency, audit, locks) would fail open.

🤖 Generated with Claude Code

pminev1 and others added 3 commits October 13, 2026 07:19
…n (draft)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Reconcile the estimate figures, state the shared-database risk as
evidenced (12 v2-only migrations, untested v1 restart), add the
re-verify row and the fail-open compliance-keys risk.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@pminevp pminevp added the no-changelog Skip the CHANGELOG warning (XCOD-227): docs, CI or internal-only change label Oct 13, 2026
@pminevp
pminevp merged commit 4d5763f into dev Oct 13, 2026
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Skip the CHANGELOG warning (XCOD-227): docs, CI or internal-only change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants