Skip to content

fix: run on cordis 4.2 and DSH 0.2.3, and bump both channel records - #198

Open
viztor wants to merge 4 commits into
mainfrom
fix/cordis-4-2-host-compat
Open

viztor wants to merge 4 commits into
mainfrom
fix/cordis-4-2-host-compat

Conversation

@viztor

@viztor viztor commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Problem

Activating the plugin on the latest alpha fails:

dsh-opencode-patch: Error: cannot get property "root" without inject
    at installRouteClaim

cordis 4.2 (@deepseek-ai/cordis@4.2.0-alpha.1, shipped by dsh@0.2.3-alpha.2) replaced the ctx.root property with ctx[Symbol.for("cordis.root")]. On a plugin fiber the old name is not undefined: the context proxy resolves it as an undeclared service and throws. The route claim read it before registering anything, so the whole plugin failed to activate.

Changes

  • Read the root through rootOfContext (src/cordis-context.ts): the symbol first, the property as a fallback for cordis 4.1 and older. Used by the route claim, the remote-service mount, the capture store's per-root key and the purge realm.
  • Follow the 0.2.3 bridge changes: derive the llm-pi-ai/<route> credential address locally (recordKeyFor is internal now), treat assertUsableApiKey as optional, resolve the per-image cap from whichever fields the installed Config filled (requestImageBudgetCount, or the input-only requestImageMaxBytes), and accept a route-level Google api.
  • Bump the channel records to alpha 0.2.3-alpha.2 (cordis 4.2.0-alpha.1) and rc 0.2.2-rc.5, pi 1.6.0; relock both lockfiles, widen the peer ranges, re-measure the pi 1.6.0 catalog tables, and update both READMEs. Supersedes the nightly bump proposal build: propose @deepseek-ai/dsh 0.2.3-alpha.2 for alpha (peer range change, needs review) #195.
  • Document the macOS TMPDIR workaround for the local binary e2e.

Verification

On both channel installs (alpha and rc):

  • pnpm run check
  • unit suite: 2,542 passed, 1 skipped
  • coverage ratchet, offline mock suite (120 tests)
  • pnpm run build and scripts/check.ts consumer install/load
  • binary e2e against the real published host: 15 rows passed and 2 conditional host-limitation rows skipped per channel; the route claim engaged under cordis 4.2 and 4.1, with both planes served by the plugin's adapter.

The gate was red on a clean tree: the mock protocol fixtures are re-exported through
one index deliberately, so tests import whichever wire protocol they exercise. That
trips the barrel-file threshold (119 modules > 100); the file is a test fixture and
splitting it would not change what loads. File-level disable with the reason inline.
- vite-plus 1.6.0 -> 1.7.0 (vitest stays at the 5.1.0 the runner bundles)
- ultracite 8.3.1, es-module-lexer 3.0.5
- `scripts/use-channel.ts rc --relock` regenerated channels/rc/pnpm-lock.yaml: the
  channel-alignment test reads it against the new manifest, and it had drifted.
- the @deepseek-ai harness fork family stays on its alpha line: cordis 4.1.0 /
  schemastery 3.19.0 produce a duplicate-fork type error at build time
  (TS2883, `Config` referencing `Schema` through a private path), so those are held
  until the host harness moves.

Verified: release gate green - build, check, 2532 tests in 151 files, consumer tarball
install/load. A transient ECONNRESET failed the consumer step once; the retry passed.
cordis 4.2 replaced the `root` context property with
`Symbol.for("cordis.root")`. The old name is not merely absent on the new
core: the context proxy resolves it as an undeclared service and throws
`cannot get property "root" without inject`, which failed the route claim at
activation. Read the root through `rootOfContext` in the route claim, the
remote-service mount, the capture store's per-root key and the purge realm,
trying the symbol first and falling back to the property for older cores.

0.2.3 also made `recordKeyFor` and `assertUsableApiKey` internal (derive the
record address locally; treat the check as optional), moved the bridge's
per-image cap to `requestImageBudgetCount` with an input-only
`requestImageMaxBytes` (follow whichever fields the installed `Config`
filled), and now accepts a route-level `api: google-generative-ai`.

Bump the records to alpha `0.2.3-alpha.2` (cordis `4.2.0-alpha.1`) and rc
`0.2.2-rc.5`, pi `1.6.0`, with both lockfiles relocked, peer ranges widened,
the measured catalog tables re-measured, and both READMEs updated.

Verified on both channels: check, unit suite (2,542 passed, 1 skipped),
coverage ratchet, mock suite (120), build and the bundle gate.
The binary e2e creates its temporary HOME under `/tmp`, a symlink to
`/private/tmp` on macOS. The profile's relative `link:` dependencies then
resolve through the symlink and miss the checkout, and the run fails at
`dsh plugin … install`. Point `TMPDIR` under the checkout so both share one
real root.

Verified on both channels against the real host binary: alpha
0.2.3-alpha.2 / cordis 4.2.0-alpha.1 and rc 0.2.2-rc.5 / cordis 4.1.0,
15 rows passed and the two conditional host-limitation rows skipped on each.
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