Repository navigation
feat(plugin): plugin install/remove, bundled + external sources - #148
Conversation
Code Review — PR #148Verdict
PR: #148 · Date: 2026-11-03 · Story: US-100 Classification matrix — per dimension
Tier = max(assessed). AssessmentsSecurity — Input validationVerdict: yellow — paths/names/keys validated; manifest Details
Security — Output handlingVerdict: yellow — markdown table row built from untrusted Security — AuthenticationVerdict: green — none touched. Security — AuthorizationVerdict: green — none touched. Security — Introduced vulnerabilitiesVerdict: yellow — 1 introduced (registry injection, r0-1), 0 pre-existing. CostVerdict: Architecture (Coupling)Verdict: green — new modules within plugin command; anatomy paths per ADL file map. Bug fix — Red test before fixVerdict: not applicable — not a bug fix. DetailsFindings by severityMinor (must fix before merge)
Questions (informational, never blocking)
Positive feedback
Functionality & requirements (AC coverage)
Testing & quality gates
Adoption compliance
|
Open findingsRe-review r2: 2 new (r1-5 new in r1, r2-6 new in r2), 3 still open.
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pair-RED-Snapshot: pr=148; phase=r1-g1; base=7a70808f31c76ff99cd45c0ca66b35160618c22e; manifest=.pair/red-snapshots/pr-148-r1-g1.json
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pair-RED-Snapshot: pr=148; phase=r1-g2; base=30a1a771b8e4feff9b9b4a2f0a70f939fc65e46b; manifest=.pair/red-snapshots/pr-148-r1-g2.json
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pair-RED-Snapshot: pr=148; phase=r1-g2-rev2; base=e11705d65f4171aba9ecf0900ba4ba8326b1884d; manifest=.pair/red-snapshots/pr-148-r1-g2-rev2.json
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pair-RED-Snapshot: pr=148; phase=r1-g3; base=57f03067c1dd5293ff1aa23b8a79a22a5b1b9e22; manifest=.pair/red-snapshots/pr-148-r1-g3.json
r1-5: apps/cli/plugins gitignored, turbo build output, root plugins/ input. r2-6: ADL reflects packaged plugins/ preference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
b71049f to
96ce90e
Compare
PR Information
Story: #100 · Type: Feature
Closes #100
Summary
gilberto plugin install <name|repo-url>/remove <name>replace placeholders; cwd = vaultplugins/<name>, single-plugin repo, multi-plugin repo (subdirs with manifest); git clone--depth 1to temp, always cleanedvalidateManifest→ plan (traversal/symlink/collision checks) → stage → backup → move → row; any failure rolls back (vault unchanged)skills present(viainstalled_plugins.json, best-effort) or/plugin install <name>file://git fixtures, failure injectionDecisions
anatomy/.plugins/<name>.json(path → sha256):removedeletes exactly those, keeps user-edited unless--purgeplugins.mdrow:name | manifest version (default 0.0.0;|/newline refused) | YYYY-MM-DDgilberto.pillar→anatomy/templates/<pillar>/<basename>/plugins/copied in bypostbuild, listed infiles); overrideGILBERTO_PLUGINS_DIR.pair/adoption/decision-log/2026-11-03-plugin-install-contribution-record.mdChanges Made
apps/cli/src/commands/plugin/{registry,source,marketplace,plan,record,install,remove}.ts+ tests,testkit.tshandler.ts,metadata.ts(flags/help),manifest.ts(exportinsidePluginDir),placeholders.test.tsscripts/postbuild.jscopies repoplugins/into the package;package.jsonfilesships it; packed-layout test (source.packed.test.ts)Testing
pnpm quality-gate:cigreen (ts:check, tests, lint, prettier, mdlint, hygiene)🤖 Generated with Claude Code