Repository navigation
Description
mcpx(plugin): the dogfood .opencode/plugin copy has drifted from pkgs/mcpx again — daemon.ts is pre-#3490 and biome.json is missing
Evidence (verified this run, main d222177982)
The sync guard in .github/workflows/mcpx.yml (plugin-sync job, lines 99–100; repeated in the test job, lines 130–131) is an exact byte comparison:
diff -r pkgs/mcpx/plugin/opencode/mcpx .opencode/plugin/mcpx
diff pkgs/mcpx/plugin/opencode/mcpx-session.ts .opencode/plugin/mcpx-session.ts
Run by hand on the laptop primary at d222177982, the first diff fails (rc=1) with exactly three drift paths:
Only in pkgs/mcpx/plugin/opencode/mcpx: biome.json
Files pkgs/mcpx/plugin/opencode/mcpx/daemon.test.ts and .opencode/plugin/mcpx/daemon.test.ts differ
Files pkgs/mcpx/plugin/opencode/mcpx/daemon.ts and .opencode/plugin/mcpx/daemon.ts differ
(mcpx-session.ts is in sync; the other five files in the directory are identical.)
What the drift means, concretely:
daemon.ts: the.opencodecopy is the pre-mcpx(plugin): goDurationMs treats Go-valid duration spellings as absent — dot fractions (.5s, 1.s) and Greek-mu μs (U+03BC) silently fall back to the default cooldown #3490goDurationMs— its unit table lacks the Greek-mu micro sign (U+03BC) and its grammar rejects Go-valid dot fractions (.5s,1.s), so those duration spellings silently fall back to the default cooldown; its saturation cap is9_223_372_036_854.776where the fixed source has.775.pkgs/mcpx/plugin/opencode/mcpx/daemon.tswas last fixed by04f564f211(mcpx(plugin): goDurationMs treats Go-valid duration spellings as absent — dot fractions (.5s, 1.s) and Greek-mu μs (U+03BC) silently fall back to the default cooldown #3490); the.opencodecopy was never updated after it.daemon.test.ts: the.opencodecopy lacks the mcpx(plugin): goDurationMs treats Go-valid duration spellings as absent — dot fractions (.5s, 1.s) and Greek-mu μs (U+03BC) silently fall back to the default cooldown #3490 Go-parity test block (and carries the old.776expectation), so even the copied tests would not catch the stale parser.biome.json: added to the pkgs copy by the mcpx: add pinned TypeScript lint and type-check coverage for the plugin #5151 pinned plugin lint/type-check work (6e50a61760); absent from the dogfood copy, so the copy the repo's own OpenCode loads is not the linted configuration.
The .opencode/plugin copy is the one this repo's own OpenCode sessions actually load (mcpx.yml:121: "The repo dogfoods the plugin"). The fleet's own tooling is therefore running the stale duration parser today.
Why the guard did not catch it
The guard lives only in mcpx.yml (grep over .github/workflows/*.yml, flake.nix, justfile: the two mcpx.yml sites are the only ones), and that workflow currently has no push/pull_request triggers and is disabled_manually — filed separately as the companion CI issue (mcpx.yml trigger/enablement loss). This is the third instance of the same class: #314 (ops.gen.ts 9 ops behind, no guard), #2795 (drifted again; guard push-only). Each sync without a running guard has re-drifted.
Why it matters
- A declared byte-identity contract is silently false on main; anyone reading
.opencode/pluginsees code that is not the plugin's current behavior. - The stale copy is live, not archival: it is the plugin loaded by OpenCode sessions working in this repo.
Acceptance criteria
-
diff -r pkgs/mcpx/plugin/opencode/mcpx .opencode/plugin/mcpxexits 0 on main (biome.json present; daemon.ts and daemon.test.ts at the pkgs versions). -
diff pkgs/mcpx/plugin/opencode/mcpx-session.ts .opencode/plugin/mcpx-session.tsstill exits 0. - The synced copy's plugin tests pass (the mcpx(plugin): goDurationMs treats Go-valid duration spellings as absent — dot fractions (.5s, 1.s) and Greek-mu μs (U+03BC) silently fall back to the default cooldown #3490 parity block in daemon.test.ts green against the synced daemon.ts).
- No change to
pkgs/mcpx/plugin/**itself — the pkgs tree is the source of truth.
Activity
developing-today commentedon Nov 8, 2026
🤖 Agent note · filed
.opencode/plugin/mcpxcopy to thepkgs/mcpx/plugin/opencode/mcpxsource of truth (3 drift paths verified by running the mcpx.yml guard diff on maind222177982: biome.json missing; daemon.ts/daemon.test.ts pre-mcpx(plugin): goDurationMs treats Go-valid duration spellings as absent — dot fractions (.5s, 1.s) and Greek-mu μs (U+03BC) silently fall back to the default cooldown #3490).diff -rclean) and the synced plugin tests green; self-solve attempted this run under lifecycle protocol §4 (trivial, clearly scoped, low-risk).developing-today commentedon Nov 8, 2026
🤖 Agent note · picked up
pkgs/mcpx/plugin/opencode/mcpxto.opencode/plugin/mcpxon branchcreator-a/7791-dogfood-plugin-sync, verifydiff -rclean and plugin tests green, open PR and merge when verified.creator-a/7791-dogfood-plugin-syncMerge pull request #7793 from developing-today/creator-a/7791-dogfood…
developing-today commentedon Nov 8, 2026
🤖 Agent note · done
.opencode/plugin/mcpxcopy to thepkgs/mcpx/plugin/opencode/mcpxsource of truth — complete. PR fix(mcpx/plugin): sync dogfood .opencode copy to pkgs source (#7791) #7793 merged at07c1a2a30b5f; the issue auto-closed via its Fixes keyword.d222177982, re-verified identical ate2891d45f0); post-merge, origin/main's.opencode/plugin/mcpx/daemon.tscarries the mcpx(plugin): goDurationMs treats Go-valid duration spellings as absent — dot fractions (.5s, 1.s) and Greek-mu μs (U+03BC) silently fall back to the default cooldown #3490 parser (.775cap, U+03BC unit) andbiome.jsonis present;bun testin the synced copy: 57 pass, 5 skip (real-daemon), 0 fail. Nopkgs/**change.07c1a2a30b5f); companion venue issue ci(mcpx): mcpx.yml lost its push/pull_request triggers in the Nov 4 sweep and is disabled_manually — basic: test, plugin-sync guard, and nightly stress never run, though ci-policy assigns mcpx PR + main tiers #7794 (the guard's workflow is trigger-less and disabled — the durable fix).