Skip to content

[Plugins] Installer, lock file, and rollback (path + git sources) #1070

Closed as not planned

Description

@tamirdresher

Part of #1068.

Scope

Implement the install pipeline for path and git sources, generate a plugin.lock.json, and provide full rollback via uninstall.

Requirements

  • squad plugin install <source> [--ref <ref>] supports path and git sources.
  • Install request fields (source, ref, optional name pin, optional permission acks) are persisted under .squad/plugins/<name>/requested.json (or equivalent).
  • Generate plugin.lock.json containing:
    • Resolved immutable ref + content digest.
    • File inventory with per-file hashes.
    • Effective permissions (derived from declared components).
    • Install timestamp + installer version + source provenance.
  • Atomic install: either the full install succeeds or no files are left behind.
  • squad plugin uninstall <name> removes every file recorded in the lock and clears registration entries.
  • Re-installing the same lock yields a byte-identical result (reproducibility test).
  • No execution of plugin-supplied scripts at any point.

Acceptance

  • Install + uninstall round-trip leaves the working tree byte-identical.
  • Lock file format documented and stable for v0.1.
  • Tests cover path source, git source, partial-failure rollback, and reproducibility.

Planning provenance: tamirdresher_microsoft/tamresearch1#2918.

Activity

  1. bradygaster commented on Nov 5, 2026

    @bradygaster
    Collaborator

    Closing as not planned for the 2.0 line during board triage (owner decision). Plugin extensibility phase 2 is out of scope for 2.0; reopen if it returns to the roadmap.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions