Skip to content

fix(cli): dispatch marketplace skills from hooks - #149

Merged
rucka merged 8 commits into
mainfrom
feature/US-130-hook-and-launchd-dispatch-fire-for
Nov 6, 2026
Merged

rucka merged 8 commits into
mainfrom
feature/US-130-hook-and-launchd-dispatch-fire-for

Conversation

@rucka

@rucka rucka commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

Hooks invoke Claude for marketplace-installed skills without a vault-local skill file. They remain asynchronous and non-blocking.

Closes #130

Changes Made

  • T-1/T-2: Regression coverage and removal of the local file guard; retain event guards and transcript handling.
  • T-3: Verified existing launchd commands, working directory, plist fixtures and inactive installation.
  • T-4: Updated architecture, user documentation and patch changeset.

Services to Release

  • gilberto: hook dispatcher fix.

Testing

  • pnpm quality-gate:ci and pre-push pnpm quality-gate: passed.
  • Hook and launchd focused tests: 77 passed; plutil -lint accepted all three fixtures.
  • AC 1 and 2: external — pending live verification with Claude marketplace in a real vault.

@rucka

rucka commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Verdict

risk:yellow · cost:orange — CHANGES-REQUESTED — non-blocking proof and docs incomplete.

Open findings: 2. Both Minor.

PR: #149 · Story: #130 · Type: bug · Reviewer: Pair

Classification matrix — per dimension
Dimension Tier Source Note
Service/domain criticality yellow KB default Medium
Change/diff risk yellow refinement floor Hooks
Business impact yellow supporting Lifecycle
Security relevance green assess-security Existing local shell boundary
Coupling balance green assess-coupling Published Claude CLI contract

Tier confirmed. Cost: LLM usage.

Assessments

Security — Input validation

Verdict: green — quoted vault paths and transcript parsing retained; hostile-path tests pass.

Security — Output handling

Verdict: green — subprocess output remains redirected; no added output surface.

Security — Authentication

Verdict: green — no authentication change; Claude retains its existing credentials.

Security — Authorization

Verdict: green — no authorization change; event and recursion guards remain.

Security — Introduced vulnerabilities

Verdict: green — 0 introduced, 0 evidenced pre-existing vulnerabilities. KB rules; no project security delta.

Cost

Verdict: cost:orange — removing the guard restores unattended model usage; existing recursion, preference and daily-stamp controls remain.

Architecture (Coupling)

Verdict: green — shell-to-Claude uses a published command contract across a process/vendor boundary; estimated medium domain volatility. Removing filesystem discovery reduces private-layout knowledge. No new architectural decision.

Bug fix — Red test before fix

Verdict: green — no-local-file invocation assertions land in 7df8596, before guard removal c003070; the old guard cannot produce their expected Claude log.

Details

Findings by severity

Critical: none.

Major: none.

Minor (must fix before merge)

  • r0-1 — apps/cli/src/commands/install/wizard/steps/07-hooks.shell.test.ts:337 — AC4's non-blocking requirement lacks regression proof. All Claude stubs finish immediately. In an isolated copy, removing only the dispatcher's background & left all 61 hook tests passing, although a slow Claude would then block the hook. Add a controlled running stub and assert every hook returns successfully before that stub completes. Preserve zero-exit assertions.
  • r0-2 — apps/cli/README.md:43; apps/website/content/docs/getting-started/what-install-writes.mdx:38; apps/website/content/docs/a-day-with-gilberto.mdx:19; .pair/adoption/decision-log/2026-10-27-spec-assessment-outcomes.md:15 — these still promise skill not installed from hooks. The guard and message are removed; Claude output is suppressed. Update active docs and annotate the older accepted decision as superseded for this behavior. One stale claim, all locations.

Questions: none.

Positive feedback

Minimal production change; event guards and literal-path coverage preserved.

Functionality & requirements (AC coverage)

AC1: three no-local-file invocation cases prove vault root and process arguments. AC2: plist fixtures, executable selection, inactive installation and plutil pass. AC3: recursive/cross-event guards, preference, stamp and transcript cases pass. AC4: zero exit proven; asynchronous behavior weak (r0-1). AC5: artifacts pass; documentation inconsistent (r0-2). Real marketplace/live-vault execution remains unexercised, as disclosed in the PR and qualified “where available” in the story. Claude's naming documentation supports bare plugin aliases.

Testing & quality gates

pnpm install --frozen-lockfile: exit 0. pnpm quality-gate:ci: exit 0 on reviewed head; identity sha256:f6e411614d74edb1d8ff109e766612a08101d4c5f29e39ea6ef1b485849fd845. Independent focused run: 77 passed; three plist fixtures valid. Mutation copy: 61 tests passed after removing &, confirming r0-1. CI and platform smoke checks pass. Custody verified, contract none.

Adoption compliance

Stack and ADR-0001/0002 compliant. No new dependencies or runtime CLI/source-repository dependency. Review remains read-only.

Tech debt

No additional evidenced debt; findings remain current-card obligations.

Documentation

Architecture and patch changeset updated; four stale-claim locations remain.

Performance & deployment

Existing background execution retained; automated proof needs r0-1. Jobs remain inactive. Small reversible guard removal.

rucka added 4 commits November 6, 2026 13:07
Pair-RED-Snapshot: pr=149; phase=r1-g1; base=094f036d575f941a86e0bd21707820c2c2480bd4; manifest=.pair/red-snapshots/pr-149-r1-g1.json
Pair-RED-Snapshot: pr=149; phase=r1-g2; base=f5528f1fced26f70dfcd66f43173672cb6ebc812; manifest=.pair/red-snapshots/pr-149-r1-g2.json
@rucka

rucka commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Delivery workflow summary

1. Identity — pair-implement-batch 4.0.1 | run story-130 | models: not recorded (in-session) | reviewed head: d503c11fdff7eb6b6590a1a5ff2ed46350dafa6f

2. Status — quality: converged · delivery: ready-for-merge · gate/custody: passed

3. Cycles — completed 1 / attempted 1 · review batches 2 · review executions 2 · retries 0 · redirects null · contract revisions 0 · preparation repairs 1 · invalidated remediations 0 · regression repairs 0 · active regression risks 0 · discharged regression risks 0 · admin/engine recoveries null

4. Cost / time — tokens not recorded (in-session: no host runtime supplied usage) · elapsed ≈ 31m (handoff timestamps, 10 handoffs; wall clock including waits) · profile economico-codex

5. Late defects (by origin) — preexisting-missed 0 · introduced-by-remediation 0 · unknown 0 · missedUpstream 0

Findings

id severity found status location summary resolution
r0-1 Minor r0 resolved apps/cli/src/commands/install/wizard/steps/07-hooks.shell.test.ts:337 AC4 non-blocking behavior has no distinguishing test. resolved (see the re-review)
r0-2 Minor r0 resolved apps/cli/README.md:43; apps/website/content/docs/getting-started/what-install-writes.mdx:38; apps/website/content/docs/a AC5 consistency fails: four documentation locations still promise skill not installed from hooks. resolved (see the re-review)

No scope proposals.

6. Machine-readable summary

{
  "schemaVersion": 1,
  "sourceDigest": "sha256:92535d8f376bf58f082206db4bf0e72e8e22babbcdfb9f80e19f2d61c858d4de",
  "asOf": "2026-11-06T12:20:17.478Z",
  "metricsRevision": 1,
  "completeness": "partial",
  "missingSources": []
}

@rucka
rucka merged commit c256b53 into main Nov 6, 2026
8 checks passed
@rucka
rucka deleted the feature/US-130-hook-and-launchd-dispatch-fire-for branch November 6, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hook and launchd dispatch fire for marketplace-installed skills

1 participant