Repository navigation
feat(agents): sync reviewed marketplace plugins across workers - #69
Merged
Merged
Conversation
nixuuu
marked this pull request as ready for review
November 4, 2026 16:28
This was referenced Nov 13, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stage 4 (final) of the agent environment stack: Claude Code and Codex plugin marketplaces and plugins synced to workers.
/plugin marketplace add …and/plugin install …to fixed recipes (no arbitrary shell).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.