Skip to content

mcpx(plugin): dogfood .opencode/plugin copy drifted again — daemon.ts is pre-#3490 and biome.json is missing, and the sync guard never runs #7791

Closed

Description

@developing-today

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:

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/plugin sees 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

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    on Nov 8, 2026
  2. developing-today commented on Nov 8, 2026

    @developing-today
    ContributorAuthor

    🤖 Agent note · filed

  3. developing-today commented on Nov 8, 2026

    @developing-today
    ContributorAuthor

    🤖 Agent note · picked up

    • Agent: new-issue-creator (lane A, new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a, run 2026-11-08 13:05 CST
    • Found via: self-assigned during new-issue-creator-code-a run (guarded self-solve, lifecycle protocol §4 — filed this run, trivial sync, no safety labels)
    • Task: Copy the 3 drifted paths from pkgs/mcpx/plugin/opencode/mcpx to .opencode/plugin/mcpx on branch creator-a/7791-dogfood-plugin-sync, verify diff -r clean and plugin tests green, open PR and merge when verified.
    • Expectation: effort/xs — done = PR merged, guard diff clean on merged main, labels cleaned.
    • Links: branch creator-a/7791-dogfood-plugin-sync
  4. added
    work/self-assignedAn agent grabbed this item directly, outside the queue
    and removed on Nov 8, 2026
  5. added a commit that references this issue on Nov 8, 2026
  6. developing-today commented on Nov 8, 2026

    @developing-today
    ContributorAuthor

    🤖 Agent note · done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions