Skip to content

feat(agents): sync reviewed marketplace plugins across workers - #69

Merged
nixuuu merged 1 commit into
feat/agent-environment-3from
feat/agent-environment-4
Nov 4, 2026
Merged

nixuuu merged 1 commit into
feat/agent-environment-3from
feat/agent-environment-4

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 4, 2026

Copy link
Copy Markdown
Member

Stage 4 (final) of the agent environment stack: Claude Code and Codex plugin marketplaces and plugins synced to workers.

  • Marketplaces from git sources pinned to a commit, with update tracking and diffs (reuses stage 3).
  • Browse plugins, enable them per worker tag assignment; paste box maps /plugin marketplace add … and /plugin install … to fixed recipes (no arbitrary shell).
  • Worker reconcile writes the harnesses' own declarative config (Claude Code 2.1.308 and Codex 0.164.0 both have native plugins) into the homes Canopy uses, with drift handling and removal on unassign.
  • Plugins that bundle MCP servers or hooks require an explicit, audited, checksum-bound confirmation before they are enabled.
  • Migration 0060_agent_plugins. The whole stack was rebased onto current dev with migrations 0057–0060.

Limits: repository-local plugin bundles only (external git/npm bundles and automatic dependencies are not supported yet); running Codex processes may need a restart.

Checks: install, gen:check, typecheck, lint, format:check on every stage; check:tmp (912 pass, 151 skip, 0 fail) and web build on top. Browser checked light/dark at desktop and phone widths before the rebase.

@nixuuu
nixuuu added this pull request to stack #64 November 4, 2026 15:44
@nixuuu
nixuuu marked this pull request as ready for review November 4, 2026 16:28
@nixuuu
nixuuu merged commit 883f717 into dev Nov 4, 2026
1 check passed
@nixuuu
nixuuu deleted the feat/agent-environment-4 branch November 4, 2026 16:28
nixuuu added a commit that referenced this pull request Nov 17, 2026
## Change

Active Claude sessions create `.in_use/<pid>` files inside plugin
folders. Canopy treated those markers as unapproved additions, reported
drift and blocked new sessions; Overwrite could not resolve it because
the marker remained an extra file. Skill loading also rejected the
marker directory in its Claude wrapper. Preserve and exclude reserved
Claude session markers from code comparisons while continuing to reject
symlinks, special files and unapproved plugin additions.

Managed plugin activation JSON now compares object keys independently of
their order, including nested objects. Existing ownership journals,
launch receipts and Keep decisions remain compatible; real value changes
still require a fresh overwrite decision. Update the agent environment
documentation and add regressions for restart, update, removal,
reassignment and migration.

## Verification

- 30 targeted tests passed across `agent-skills-files`, `agent-plugins`,
`agent-plugin-cache` and `agent-plugin-config`, run through `check:tmp`.
- Worker and integration-test package typechecks passed.
- Lint and formatting passed for the edited TypeScript files; diff
checks passed.
- Full repository verification and builds are left to CI.

Fixes: #69
nixuuu added a commit that referenced this pull request Nov 17, 2026
Managed plugins could block every new session after a successful
installation. On Windows, filesystem reads lose POSIX executable bits;
Canopy treated that as code drift. Codex also refreshes versioned
plugins from `local` into their manifest version, leaving Canopy’s
ownership record and launch receipt pointing at a missing directory.

This change compares installed files using Windows filesystem semantics
while preserving canonical artifact and approval checksums. Codex uses
its preferred manifest version for the cache directory. Exact owned
bundles moved by older Codex sessions recover their ownership
atomically; upgrades and downgrades retire old owned versions before
activation. Interrupted retirement remains recoverable until transaction
cleanup and directory removal finish. Invalid manifest versions block
only their affected targets, allowing retired activation to be removed;
missing or null versions use the native `local` fallback. Modified
files, symlinks, private additions and competing cache entries remain
blocked and preserved.

Validation:
- Targeted filesystem, Windows-mode, native-cache, migration and
gateway–worker tests passed through `check:tmp` (including cleanup). The
10 migration regressions cover interrupted retirement, atomic ownership
recovery, malformed replacements, upgrades, downgrades and private-file
preservation.
- Native forced refresh verified with Codex 0.164.0 and 0.169.0; real
model sessions exercised `itsolpowers` 0.26.0.
- Worker and integration-test package typechecks, edited-file lint,
formatting and diff checks passed locally. Windows metadata behavior is
simulated on Linux; no native Windows execution.
- Full repository verification and builds are left to CI.

Copy audit (§8): diagnostic messages identify the problem and an action
in English, using existing error details. “Resolve its ownership” →
“Move the extra entry before syncing this plugin” gives a concrete
recovery step. No new controls or layout changes.

Fixes: #69
Fixes: #63
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