Skip to content

Implement declarative plugin behavior context proof (#1068)#1092

Open
tamirdresher wants to merge 11 commits into
bradygaster:devfrom
tamirdresher:squad/1068-plugin-extensibility-mvp
Open

Implement declarative plugin behavior context proof (#1068)#1092
tamirdresher wants to merge 11 commits into
bradygaster:devfrom
tamirdresher:squad/1068-plugin-extensibility-mvp

Conversation

@tamirdresher
Copy link
Copy Markdown
Collaborator

@tamirdresher tamirdresher commented May 6, 2026

Closes #1068
References #1069, #1070, #1071, #1076

Summary

  • Adds declarative plugin metadata for repositories, upstream packages, optional MCP integrations, and typed provider contracts.
  • Adds runtime plugin context injection so enabled plugins contribute installed static guidance and provider summaries to spawned agent system prompts.
  • Adds real external integration samples for Graphify, MemPalace, and Index Server without fake Copilot dependencies or arbitrary execution.
  • Documents the three-lane boundary: Squad declarative plugins, Copilot plugin dependencies, and external upstream/MCP/provider metadata.

Behavioral proof

  • Disabled plugins do not affect spawned agent context.
  • Enabled Graphify, MemPalace, and Index Server plugins inject their installed static guidance under Plugin Context.
  • Provider contracts are parsed, validated, persisted in installed plugin state, surfaced by the CLI, and injected into spawned-agent context as declarative metadata.
  • Deterministic simulations prove scenario-specific spawned-agent planning deltas:
    • Graphify selects knowledge graph / code relationship analysis and references graphify-out/GRAPH_REPORT.md.
    • MemPalace selects spatial memory concepts: rooms, shelves, trails, and landmarks.
    • Index Server selects a governed instruction / knowledge catalog workflow.
  • Tampered plugin state cannot read outside .squad/.
  • Squad still does not install upstream packages, run external CLIs, start MCP servers, call provider tools, or query external services in this MVP.

Validation

  • npm test -- --run test/plugin-extensibility.test.ts - 16 passed
  • Fresh ephemeral CLI lifecycle experiments for Graphify, MemPalace, and Index Server - validate, dry-run, install, enable, switch, list --json provider persistence, verify, uninstall-clean passed
  • npm run lint - passed
  • npm run build - passed
  • npm run lint:docs - passed
  • npm run docs:build - passed
  • git --no-pager diff --check - passed

Caveat

Full npm test is still not used as the local merge gate here because this worktree has unrelated existing baseline/environment failures outside plugin extensibility. The focused plugin behavior suite, provider-contract simulations, lint, package build, docs lint, and docs build are clean.

Adds the product plugin manifest parser, lifecycle state model, CLI commands, focused tests, docs, and a safer TypeDoc resolver for docs builds.

Refs bradygaster#1068, bradygaster#1069, bradygaster#1070, bradygaster#1071, bradygaster#1076

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 6, 2026 16:15
Add runtime plugin context injection for enabled declarative plugins so installed static artifacts can influence spawned agent prompts while preserving the no-execution security boundary. Add real Graphify, MemPalace, and Index Server samples plus behavioral A/B tests proving disabled plugins are excluded and enabled plugins are injected.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tamirdresher tamirdresher changed the title Implement declarative plugin lifecycle MVP Implement declarative plugin behavior context proof (#1068) May 7, 2026
Copilot and others added 7 commits May 8, 2026 00:09
Add deterministic disabled-vs-enabled simulations for Graphify, MemPalace, and Index Server plugin context so the plugin behavior proof covers scenario-specific spawned-agent planning deltas without relying on live LLM output or external tool execution.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add the missing changeset required by policy gates for the plugin extensibility SDK/CLI changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Implement capability-gated runtime artifact generation for Squad plugins with a built-in Graphify provider. Add lifecycle refresh commands, runtime manifest validation, audit events, sample metadata, tests, and documentation while keeping shell execution, package installs, network access, MCP startup, and plugin-provided code execution denied.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tamirdresher
Copy link
Copy Markdown
Collaborator Author

Follow-up roadmap filed so #1092 can stay focused as the governed MVP:

Recommendation: merge #1092 as the safe foundation, then handle executable/tool/provider power through these gated follow-ups with explicit security review.

Copilot and others added 2 commits May 9, 2026 08:59
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

[Plugins] Epic: Squad plugin / extensibility system (PRD + design)

1 participant