Skip to content

fix(agents): avoid false skill and plugin drift - #912

Merged
nixuuu merged 1 commit into
devfrom
fix/plugin-config-drift-detection
Nov 17, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/plugin-config-drift-detection

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 17, 2026

Copy link
Copy Markdown
Member

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

Preserve Claude session markers without treating them as unapproved plugin files. Compare managed JSON independently of object key order while retaining legacy receipts and ownership decisions.

Fixes: #69
@nixuuu
nixuuu enabled auto-merge (squash) November 17, 2026 08:00
@nixuuu
nixuuu merged commit de6c292 into dev Nov 17, 2026
15 checks passed
@nixuuu
nixuuu deleted the fix/plugin-config-drift-detection branch November 17, 2026 08:06
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