Skip to content

feat: record plugin tag and content hash in the manifest - #176

Open
unicoderbot[bot] wants to merge 1 commit into
mainfrom
unicoder/issue-142
Open

unicoderbot[bot] wants to merge 1 commit into
mainfrom
unicoder/issue-142

Conversation

@unicoderbot

@unicoderbot unicoderbot Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Summary

The install manifest now records a snapshot of each plugin it was written from: the plugin's tag and a SHA-256 of its files. A re-run can then tell whether a plugin still holds what it was installed from, even if its tag was moved. This lets doctor --project detect drift in CI.

Changes

  • Add PluginSnapshot (tag + sha256) to model/, and InstallManifest.snapshots, keyed per harness and plugin name.
  • Persist snapshots under a new snapshots key in manifest.json, separate from plugins, so older versions of vgv_ai still read plugins. Missing or malformed snapshots decode to none.
  • Drop the snapshot of any plugin or harness that plugins no longer records, so removing one removes the other.
  • PluginDirectory gains a sha256 of every file under the plugin directory except .git, computed by PluginResolver.
  • install records snapshots for the plugins it wrote and keeps the recorded snapshot of any plugin it skipped. Harnesses outside the selection keep what they had.
  • ManifestAuditor.reverse carries snapshots through, and forgets them with the harness when it is emptied.
  • Update AGENTS.md and the README, and remove the "content hash per plugin" item from the not-yet-installed list.

Testing

Added or updated tests for manifest encode/decode round trips, malformed snapshots, snapshot dropping, install recording and keeping snapshots (user and project scope), and ManifestAuditor.reverse.

Closes #142

Closes #142

Co-authored-by: marcossevilla <marcossevilla@users.noreply.github.com>
@unicoderbot
unicoderbot Bot requested a review from a team as a code owner December 2, 2026 14:10
@marcossevilla

Copy link
Copy Markdown
Member

/unicoder fix CI failures

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.

feat: keep the install manifest in the project

2 participants