Harness Intelligence Wiki
SpecsCLIBaseline Video, Retro and Plan Move

Baseline Video, Retro and Plan Move Plan

Plan: Baseline Video, Retro and Plan Move

Context Pointers

PointerIdentityFreshness rule
SPECSPEC.md @ 8904a57fe1d6824b22fbd8b14a0435c00b20dff7Re-verify the blob bytes before each wave; a changed SPEC invalidates this plan
ARCHITECTUREARCHITECTURE.md @ f13fbba1b97f15756d52851827a609433554b650Traceability complete; selectors ARC-001–ARC-011, FLOW-001–FLOW-005, DEC-001–DEC-008
Grillstatus blob 497e6654…, log blob 0637b523… at commit e36d20e35Closed R2; Q IDs are stable
Skills sourcewearedevpunks/skills main at 022a4851fa028028dfbf313dc99ba12ed67be590 (plan time)Each skills Task records the commit it lands
BacklogLinear Epic IP-486, milestone V4.6, 9 Stories, 17 Tasks, 20 native blocker edges (write-backlog readback 2026-10-22)Provider state wins; re-read before closeout

Applicability

architecture_applicability: architecture-bearing. Evidence:

  • Eleven Stories change one capability cumulatively.
  • Tasks change public seams: the Pack category schema, the tool catalog shape, UpdateAction, CheckResult, and the Commit Gate files.
  • The change crosses two repositories and the packages/scaffold boundary (ARC-007–ARC-010).

Situation and Problem

  • Taste-skill 2.1 covers app screens, so the design-phase exception and two retired skills are obsolete. Consumers have no way to opt into video tooling.
  • hi report carries no researched evidence.
  • Plans are created in delivery.
  • PR topology is unstated: issue #259.
  • Brainstorm has started implementation: issue #260.
  • "latest" ranges silently break frozen installs: issue #261.
  • lefthook 2.1.10 repoints shared hooks to worktrees and passes silently: issue #262.

Solution Shape

The SPEC (OUT-001–OUT-012) and ARCHITECTURE define the shape. Skill text moves first in wearedevpunks/skills. HI catalog, CLI and wiki work follows on branch spec/baseline-video-retro-plan-move. The release task pins the final skills commit and ships CLI 6.3.0 with the Baseline.

Decision Ledger

IDDecisionSource
L1Tasks are the 17 Linear Tasks (provider-task, native relations)write-backlog readback
L2IP-503 runs in the wave after IP-502 (shared files), with no new Linear blockerP1, user "yes agree all"
L3Skills-repo workers may edit in parallel on disjoint paths in the single main checkout; commits are serialized, and each runs bun run test firstP2
L4IP-505 is a separate proof task before IP-509/IP-510P3
L5HI catalog tasks IP-506 → IP-508 → IP-507 run in sequence, because they share catalog/{packs,skills}.ts and the sync outputwrite-scope custody
L6Each HI catalog task bumps the skills pin to the current skills main head (tag sync/<slug>-<sha12>) and runs bun run sync:skills; IP-513 sets the final pinARC-001, sync-skills-repo.mjs:21-22
L7One HI PR from spec/baseline-video-retro-plan-move; skills commits go to main with no PRSPEC Branch/Base Intent, Q16, Q41
L8No new provenance tests; existing tests change only where edits break themQ54, Q55
L9Custody edges for shared files: T3 → T10 (packs.ts), T3 → T13 (model.ts), T3 → T14 (pipeline.test.ts, init.test.ts), T14 → T15 → T11 (pipeline.ts, pipeline.test.ts, build.test.ts)plan-reviewer finding 1, 6
L10Every skills task pushes main after its commit. Every sync task creates and pushes sync/<slug>-<sha12> and checks git ls-remote --tags origin before bun run sync:skillsplan-reviewer finding 7
L11Every HI task commits and pushes to spec/baseline-video-retro-plan-move; T17 opens and links the one PRplan-reviewer finding 9, L7
L12Opt-out code owner: hi update with settings commitGate: "disabled" removes the Managed Hook Script and unsets core.hooksPath only when it is .githooks (T15)plan-reviewer finding 5, Q36

Assumptions and Constraints

  • Root guidance: skills are edited only in /home/stefan/repos/skills on main. Never hand-edit apps/cli/skills/* or .agents/skills/*.
  • Do not stage the untracked tests/fixtures/v43/IP-453/skills/ in the skills repository; another user owns it.
  • Full CLI test runs set TMPDIR to a disk directory, because /tmp is tmpfs.
  • /AGENTS.md cleanup applies to IP-505 and any scratch uv or git directory.

Codebase Findings

  • Pack categories are defined in packages/scaffold/src/catalog/identity.ts:3 and apps/cli/src/registry/model.ts:139. registry/shape.ts:262 detectedPacks is the single proposal source.
  • data/catalog/tools.ts holds six npm tools and no kind field. integrations/tool-management.ts has a sync API over ToolCommandRuntime and no Effect layer.
  • registry/dependencies.ts:141 planWorkspace has no range check. registry/check.ts:201 runCheck returns status only.
  • The commit gate sets lefthookVersion = "2.1.10" at publisher/sources/commit-gate.ts:17. A second literal is at features/commit-gate/index.ts:41, and the root package.json:94 pins 2.1.10.
  • The CLI type check is bun run check-types (tsc --noEmit). The memory note about bun check is stale.

Wiki Context

  • Knowledge used:

    PageSelected byClaims usedFreshnessPrimary evidence
    harness/skills-and-packs/skill-packs.mdxsearch "Pack category"four categories; frontend membersfreshidentity.ts:3, packs.ts:214-233
    harness/entrypoints/design.mdxsearch "design-taste-frontend"variant round; retired skill mentionsfreshvariant-round.md
    project/runbooks/hi-cli-scaffolding.mdCommit Gate runbookverify writes nothing; opt-out stepsfreshcommit-gate-command.ts
    project/domains/lefthook-commit-gate-{glossary,lifecycle}.mdxCommit Gate terms2.1.10 pin; Opt-Out meaningfresh for the pincommit-gate.ts:17
  • Stale or contradictory claims:

    • The lefthook lifecycle :24/:31 and glossary :40 say "hi ensure persists policy". ensure exists only inside tools-command.ts.
    • The lifecycle :39/:41 says "hi check --json writes a receipt". The runbook says verify writes nothing.

    Resolution: IP-512 corrects both while it rewrites those pages. project/reference/hi-requirements.md mentions the retired improve-mobile-frontend and gpt-taste; IP-506 removes them.

  • Returned findings: the stale memory note bun-check-typecheck-decision goes to agent memory. Knowledge no-op for the routed wiki beyond the fixes above.

Architecture Contract

Target Ownership Topology

wearedevpunks/skills  — skill text owner (ARC-001..006); must not hold catalog/Pack membership
apps/cli/src/data/catalog — Pack, skill, tool declarations (ARC-007, ARC-009); must not run tools
apps/cli/src/registry — Pack proposal (shape.ts), dependency planning + range finding, check (ARC-007, ARC-010)
apps/cli/src/integrations — tool install/verify incl. uv-tool.ts (ARC-009); must not decide Pack selection
commit gate (publisher/sources/commit-gate.ts, features/commit-gate, platform/commit-gate-capabilities.ts) — hook files, activation, verify (ARC-008)
packages/scaffold/src/catalog — public category schema (ARC-007)
release (package.json, changelogs, sync pin) — ARC-011

Declared Dependency Graph

Edges are one-way. Forbidden:

  • uv-tool.ts importing from the catalog;
  • check.ts writing package.json;
  • skills text naming CLI internals beyond public commands.

Responsibility Acceptance Criteria

criterion_idOwnerAssertionEvidencedue_architecture_wave
RAC-1scaffold + registryoptional decodes; detectedPacks never yields default/optionalshape.test.ts, public-scaffold-contract.test.tsA1
RAC-2integrationsuv kind installs at full pin, skips on matching receipt; check-only reports min/foundtool-management.test.ts, uv-tool.test.tsA1
RAC-3registryrange finding advisory in update and check; no package.json writedependencies.test.ts, check.test.tsA2
RAC-4commit gatelefthook 2.2.2; Managed Hook Script fails closed; activation never overrides; verify by digest; opt-outIP-505 proof, commit-gate*.test.tsA2
RAC-5skills reposkill text matches AC-001–AC-005, AC-015–AC-022 (ask-hi parts excluded)bun run test in skills; grep checks in tasksA2
RAC-8ask-hiask-hi references match AC-033 and the ask-hi parts of AC-002, AC-004, AC-021bun run test in skills; grep checks in T16A3
RAC-6catalogvideo, retro, frontend membership; requiresTools ids validatedbuild.test.ts, sources/*.test.tsA2
RAC-7releaseCLI 6.3.0; Compatibility >=6.3.0 <7.0.0; final skills pinrelease:classify reports mixedA3

Architecture Waves

A1 boundary establishment: category schema, tool kinds, hook proof (IP-499, IP-500, IP-505) + skills text (IP-497, IP-498, IP-501, IP-502, IP-504)
  checkpoint A1: RAC-1, RAC-2
A2 vertical slices: catalog (IP-506, IP-508, IP-507), ranges (IP-509), gate (IP-510, IP-512), PR rule (IP-503)
  checkpoint A2: RAC-3..RAC-6 + regress RAC-1, RAC-2
A3 closure: ask-hi (IP-511), release (IP-513)
  checkpoint A3: RAC-7, RAC-8 + regress all; migration ledger empty

Public Seam Contract

SeamOwnerAllowed consumers
PackCategory incl. optionalpackages/scaffoldCLI registry, Baseline decode
tool catalog kind uniondata/catalog/tools.tstool-management, publisher
UpdateAction dependency-range-unreproducibleregistry/model.tsupdate report, hi-cli post-command flow
CheckResult.dependencyFindingsregistry/check.tshi check --json consumers
.githooks/pre-commit, .agents/scripts/activate-git-hooks.mjscommit gateconsumer repositories

Migration Ledger

Empty. No temporary seams are planned. The lefthook 2.1.10 consumers keep their old behavior until they bump (Q35); this is not a seam.

Dependency Graph and Waves

Solid edges are native Linear blockers. Dotted edges are write-scope custody (L2, L5, L9).

WaveTasksNotes
W1T1 IP-497, T2 IP-498, T3 IP-499, T4 IP-500, T5 IP-501, T6 IP-502, T8 IP-504, T9 IP-505Skills tasks edit disjoint paths and commit one at a time (L3)
W2T7 IP-503, T10 IP-506, T13 IP-509, T14 IP-510T10, T13, T14 start after T3 (L9)
W3T12 IP-508, T15 IP-512
W4T11 IP-507, T16 IP-511T11 also waits for T15 (L9)
W5T17 IP-513

Waves name the earliest frontier. A task is released as soon as its own parents pass their Task Gates and its write scope is free.

Testing Strategy

  • HI code tasks use RED/GREEN through public functions with focused vitest: cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 <file>. Then run bun run check-types and bun run check in each touched workspace.
  • Skills tasks: cd /home/stefan/repos/skills && bun run test before each commit. Update an existing assertion only where the edit breaks it (L8).
  • Wiki: bun run --cwd apps/wiki check:health (the 10 pre-existing findings are baseline) and check:content.
  • Commits: skills tasks push main after each commit (L10); HI tasks push the spec branch (L11).
  • CI owns the full suite.

Risks and Mitigations

RiskMitigation
lefthook 2.2.2 behaves unlike the 2.1.14 readingT9 (IP-505) proves it first and blocks IP-509 and IP-510
Concurrent skills commits collide in one Git indexL3: one committer at a time; git status check before staging
A catalog references a skill that is not synced (skills.ts:118 throws)Catalog tasks are blocked by their skills task and sync first (L6)
An older CLI decodes optionalIP-513 raises Compatibility to >=6.3.0
A full test run fills tmpfsTMPDIR on disk

Tasks

T1: IP-497 Taste-skill 2.1.4, image re-pin, retire two skills (skills repo)

  • depends_on: []
  • location: /home/stefan/repos/skills/skills/agnostic/frontend/, skills/phases/design-phase/
  • owned_paths: [skills/agnostic/frontend/design-taste-frontend/**, skills/agnostic/frontend/{brandkit,image-to-code,imagegen-frontend-web,imagegen-frontend-mobile}/{UPSTREAM.md,LICENSE}, skills/agnostic/frontend/{redesign-existing-projects,full-output-enforcement}/** (delete), skills/phases/design-phase/phases/variant-round.md, skills/phases/design-phase/references/copy-lens.md, skills/phases/design-phase/AUTHORING-HANDOFF.md, tests/emil-kowalski-animation-provenance.contract.test.mjs, tests/design-phase-graph.contract.test.mjs]
  • read_dependencies: [SPEC AC-001–AC-005, ARC-002, Q1–Q4, Q37, Q55; upstream Leonxlnx/taste-skill@6010f91a, Leonxlnx/imagegen-skills@beb16b0d]
  • shared_runtime_resources: skills main checkout and index (exclusive at commit time)
  • relevant_input_set: upstream tree hashes at the two pins; LICENSE sha256 4575a543…
  • wave_boundary: W1
  • description: Replace design-taste-frontend with v2.1.4 verbatim and add UPSTREAM.md (local edit: directory rename only) and LICENSE. Add UPSTREAM.md and LICENSE to the four image skills, pinned to imagegen-skills beb16b0d. Delete the two retired skills. In variant-round.md, delete the redesign line and pass improve-existing to design-taste-frontend's redesign route. In copy-lens.md, delete the full-output paragraph. Fix the broken test assertions.
  • validation: cd /home/stefan/repos/skills && bun run test; diff -r against the upstream skills/taste-skill at 6010f91a shows only UPSTREAM.md and LICENSE; grep -rn "redesign-existing-projects\|full-output-enforcement" skills/ returns nothing
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-497
  • backlog_item_url: https://linear.app/devpunks/issue/IP-497
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [writing-for-agents]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: Keep vendored text verbatim; local edits to design-phase text stay minimal and imperative.
  • tdd_status: not_applicable
  • tdd_target: Vendored skill bytes and design-phase routing text.
  • red_command:
  • expected_red_failure:
  • green_command:
  • reason_not_testable: Vendoring and skill-text edits; existing contract tests are run and repaired only where broken (Q55).
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: not_applicable
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: Remove any scratch clone of upstream used for diff -r.
  • architecture_wave: A1
  • behavior_owner: skills repo
  • integration_surface: design-phase variant round
  • public_seam: none
  • topology_delta: two skills removed
  • forbidden_ownership: catalog membership
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-5]

T2: IP-498 Vendor video skills (skills repo)

  • depends_on: []
  • location: /home/stefan/repos/skills/skills/agnostic/video/
  • owned_paths: [skills/agnostic/video/{cinetic,earshot,real-sound}/**]
  • read_dependencies: [AC-009, ARC-003, DEC-004, Q5, Q47; Leonxlnx/cinetic@ecfa6605, Leonxlnx/earshot@925ebe56]
  • shared_runtime_resources: skills main checkout and index (exclusive at commit time)
  • relevant_input_set: upstream tree hashes at both pins
  • wave_boundary: W1
  • description: Copy skills/cinetic from cinetic at ecfa6605, and skills/earshot and skills/real-sound from earshot at 925ebe56, verbatim. Add UPSTREAM.md (pin, path, ## Local edits: None) and the upstream LICENSE to each.
  • validation: bun run test in skills; diff -r against each upstream path shows only UPSTREAM.md and LICENSE
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-498
  • backlog_item_url: https://linear.app/devpunks/issue/IP-498
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [writing-for-agents]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: Vendor verbatim; UPSTREAM.md states pin and local edits only.
  • tdd_status: not_applicable
  • tdd_target: Vendored bytes.
  • red_command:
  • expected_red_failure:
  • green_command:
  • reason_not_testable: Vendoring only.
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: not_applicable
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: Remove scratch upstream clones.
  • architecture_wave: A1
  • behavior_owner: skills repo
  • integration_surface: none
  • public_seam: none
  • topology_delta: new skills/agnostic/video/
  • forbidden_ownership: tool install logic
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-5]

T3: IP-499 Optional Pack category (HI)

  • depends_on: []
  • location: packages/scaffold/src/catalog/, apps/cli/src/registry/, apps/cli/src/data/catalog/packs.ts
  • owned_paths: [packages/scaffold/src/catalog/identity.ts, packages/scaffold/src/public-scaffold-contract.test.ts, packages/scaffold/test-fixtures/public-scaffold.json, apps/cli/src/registry/model.ts (PackCategory only), apps/cli/src/registry/shape.ts, apps/cli/src/registry/shape.test.ts, apps/cli/src/registry/pipeline.test.ts (adoption block), apps/cli/src/registry/init.test.ts (defaults block), apps/cli/src/registry/drift.test.ts, apps/cli/src/data/catalog/packs.ts (type line only)]
  • read_dependencies: [AC-006, AC-007, DEC-001, Q44]
  • shared_runtime_resources: none
  • relevant_input_set: SPEC and ARCHITECTURE pointers
  • wave_boundary: W1
  • description: Add "optional" to PackCategorySchema and PackCategory, and drop the Exclude in packs.ts. In detectedPacks, return no evidence for default or optional.
  • validation: focused vitest on shape.test.ts, pipeline.test.ts and public-scaffold-contract.test.ts; bun run check-types in apps/cli and packages/scaffold; bun run check
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-499
  • backlog_item_url: https://linear.app/devpunks/issue/IP-499
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [tdd, quality-types, simplify, effect]
  • implementation_skill_guidance:
    • skill: tdd applicable_behavior: RED through proposePacks and adoption with a fixture optional Pack before editing.
    • skill: quality-types applicable_behavior: Keep the category a closed literal union; no string widening.
    • skill: simplify applicable_behavior: One predicate; no new helper module.
    • skill: effect applicable_behavior: Keep Schema.Literals decoding for the category.
  • tdd_status: required
  • tdd_target: A catalog Pack with category optional and matching triggers is absent from proposePacks, hi init --yes defaults, hi update adoption and hi diff unselected-detected (AC-007).
  • red_command: cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 src/registry/shape.test.ts src/registry/pipeline.test.ts src/registry/init.test.ts src/registry/drift.test.ts
  • expected_red_failure: The type or decode rejects "optional", or the optional Pack appears in proposals.
  • green_command: same command, plus cd packages/scaffold && bunx vitest run --maxWorkers=1 src/public-scaffold-contract.test.ts
  • reason_not_testable:
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: The seam is detectedPacks, the single proposal source; pipeline, drift and init consume it unchanged.
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A1
  • behavior_owner: registry/shape.ts
  • integration_surface: Pack proposal
  • public_seam: PackCategory
  • topology_delta: none
  • forbidden_ownership: Pack-specific logic in pipeline/drift/init
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-1]

T4: IP-500 Tool kinds and uv adapter (HI)

  • depends_on: []
  • location: apps/cli/src/data/catalog/tools.ts, apps/cli/src/integrations/
  • owned_paths: [apps/cli/src/data/catalog/tools.ts, apps/cli/src/integrations/uv-tool.ts, apps/cli/src/integrations/uv-tool.test.ts, apps/cli/src/integrations/tool-management.ts, apps/cli/src/integrations/tool-management.test.ts, apps/cli/src/integrations/providers.ts, apps/cli/src/integrations/providers.test.ts, apps/cli/src/features/tool-ensure/application.ts]
  • read_dependencies: [AC-010–AC-012, AC-014, DEC-002, DEC-003, Q26, Q45, Q46, facts F5, F6]
  • shared_runtime_resources: none (tests stub ToolCommandRuntime)
  • relevant_input_set: uv receipt format from F6 ([tool].requirements[].git with ?rev=)
  • wave_boundary: W1
  • description: (AC-010–AC-012, AC-014.) Add the kind union (npm-global default, uv, check-only) and the entries earshot (uv; requirement, full-SHA pin, installArgs ["--torch-backend","cpu"]), uv, ffmpeg, ffprobe, python3 (min 3.11) and node (min 22). Create uv-tool.ts with readUvToolRev and installUvTool. ensureToolsInstalled dispatches by kind: uv installs when the receipt is missing or its rev differs, and never refreshes otherwise; check-only verifies presence and version and never installs. A too-old tool fails with the tool, minimum and found version. Route gh, glab and az through check-only. Add a test that a required-tool set without earshot runs no uv tool uninstall (AC-014).
  • validation: focused vitest on the three test files; bun run check-types; bun run check
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-500
  • backlog_item_url: https://linear.app/devpunks/issue/IP-500
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [tdd, quality-types, simplify, codebase-design]
  • implementation_skill_guidance:
    • skill: tdd applicable_behavior: RED on ensureToolsInstalled with a stub runtime: missing earshot runs the exact uv argv; a matching receipt runs nothing; python3 3.10 fails with min/found.
    • skill: quality-types applicable_behavior: Discriminated union on kind; exhaustive switch.
    • skill: simplify applicable_behavior: No Effect layer; reuse ToolCommandRuntime and isMinimumVersionSatisfied.
    • skill: codebase-design applicable_behavior: uv-tool.ts is a thin adapter; policy stays in tool-management.ts.
  • tdd_status: required
  • tdd_target: ensureToolsInstalled(["earshot"]) with no receipt runs uv tool install --torch-backend cpu "earshot[mcp] @ git+https://github.com/Leonxlnx/earshot@925ebe56a1b755e5d354ab642bb8f344440cfa9c".
  • red_command: cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 src/integrations/tool-management.test.ts src/integrations/uv-tool.test.ts
  • expected_red_failure: Unknown required tool earshot, or uv-tool.ts is missing.
  • green_command: same command plus src/integrations/providers.test.ts
  • reason_not_testable:
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: The receipt rev is the installed-pin authority. Always pass the full SHA, because uv stores a short SHA as given (F6).
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A1
  • behavior_owner: integrations/tool-management.ts
  • integration_surface: hi tools ensure
  • public_seam: tool catalog kind union
  • topology_delta: new integrations/uv-tool.ts
  • forbidden_ownership: Pack selection; catalog imports in uv-tool.ts
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-2]

T5: IP-501 Vendor retro and wire it into hi-cli (skills repo)

  • depends_on: []
  • location: /home/stefan/repos/skills/skills/misc/retro/, skills/agnostic/cli/hi-cli/
  • owned_paths: [skills/misc/retro/**, skills/agnostic/cli/hi-cli/SKILL.md, skills/agnostic/cli/hi-cli/references/commands.md]
  • read_dependencies: [AC-015, AC-016, ARC-004, FLOW-004, Q11, Q12, Q42, Q54; mattpocock/skills@5beb35b0]
  • shared_runtime_resources: skills main checkout and index (exclusive at commit time)
  • relevant_input_set: upstream retro tree at 5beb35b0; mattpocock LICENSE sha256 0e7ac423…
  • wave_boundary: W1
  • description: Vendor skills/engineering/retro without agents/openai.yaml, set disable-model-invocation: false, and record both in UPSTREAM.md; add LICENSE. In hi-cli commands.md hi report, before submission, require activating $retro scoped to the reported issue, with its findings filling --steps, --expected and --actual and no project-environment fixes. Add one line to the SKILL.md commands area. Do not change the post-command Report branch.
  • validation: bun run test in skills; grep -n "disable-model-invocation: false" skills/misc/retro/SKILL.md
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-501
  • backlog_item_url: https://linear.app/devpunks/issue/IP-501
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [writing-for-agents]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: One imperative hi-cli step; no duplicated retro content.
  • tdd_status: not_applicable
  • tdd_target: Skill text.
  • red_command:
  • expected_red_failure:
  • green_command:
  • reason_not_testable: Vendoring and skill text; no new test (Q54).
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: not_applicable
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A1
  • behavior_owner: skills repo
  • integration_surface: hi-cli hi report
  • public_seam: none
  • topology_delta: new skills/misc/retro
  • forbidden_ownership: Report post-command branch
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-5]

T6: IP-502 Move create-plan into requirements-phase (skills repo)

  • depends_on: []
  • location: /home/stefan/repos/skills/skills/phases/, skills/agnostic/planning/
  • owned_paths: [skills/phases/requirements-phase/SKILL.md, skills/phases/delivery-phase/{SKILL.md,phases/router.md,phases/spec.md,references/artifact-state.md}, skills/phases/delivery-phase/phases/plan.md (delete), skills/agnostic/planning/create-plan/{SKILL.md,references/stop-conditions.md}, skills/agnostic/planning/implement-spec/{SKILL.md,references/lifecycle.md}, skills/phases/debugging-phase/SKILL.md, tests/wayfinder-lifecycle.contract.test.mjs]
  • read_dependencies: [AC-017–AC-020, ARC-005, FLOW-003, DEC-007, Q13, Q14, Q38–Q40, Q43, Q53]
  • shared_runtime_resources: skills main checkout and index (exclusive at commit time)
  • relevant_input_set: create-spec retain steps 9–10 as the retention model
  • wave_boundary: W1
  • description: In requirements-phase, add a step after Write Backlog that runs create-plan: it runs on a written or provider-absent result (planning-only) and stops on a blocked result. Step 8 names the plan. Give create-plan retain steps (commit, push, verify blob URL) and update its Contract lines. Delete delivery-phase/phases/plan.md. Router step 7 sends a missing or stale plan to phases/spec.md. artifact-state.md Plan Complete requires retention. implement-spec routes a missing or invalid plan to requirements-phase and keeps the direct execution-only amendment. Update the debugging-phase "revise the plan" line. Repoint wayfinder-lifecycle :363/:379.
  • validation: bun run test in skills; test ! -e skills/phases/delivery-phase/phases/plan.md; grep -rn "phases/plan.md" skills/ returns nothing
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-502
  • backlog_item_url: https://linear.app/devpunks/issue/IP-502
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [writing-for-agents, write-graph-based-skills]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: Change only the routing sentences; keep the phase vocabulary.
    • skill: write-graph-based-skills applicable_behavior: Keep the delivery router's precedence total after removing the plan phase; no dead links.
  • tdd_status: not_applicable
  • tdd_target: Skill routing text.
  • red_command:
  • expected_red_failure:
  • green_command:
  • reason_not_testable: Skill text; existing contract tests updated only where broken.
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: not_applicable
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A1
  • behavior_owner: requirements-phase
  • integration_surface: delivery entry gate
  • public_seam: Plan Complete gate
  • topology_delta: plan phase removed from delivery
  • forbidden_ownership: plan creation inside delivery
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-5]

T7: IP-503 One PR per Touched Repository (skills repo)

  • depends_on: [] (write-scope custody after T6, L2)
  • location: /home/stefan/repos/skills/skills/agnostic/planning/, skills/phases/delivery-phase/
  • owned_paths: [skills/agnostic/planning/create-spec/{references/readiness.md,assets/SPEC-TEMPLATE.md,SKILL.md}, skills/agnostic/planning/create-plan/references/{planner-task-graph.md,plan-schema.md}, skills/agnostic/planning/implement-spec/{SKILL.md,references/lifecycle.md}, skills/phases/delivery-phase/SKILL.md]
  • read_dependencies: [AC-021, DEC-008, Q16, Q41, Q56]
  • shared_runtime_resources: skills main checkout and index
  • relevant_input_set: T6's landed commit (same files)
  • wave_boundary: W2
  • description: Replace each "exactly one pull request" line with "at most one pull request per Touched Repository; split or stack only when the user explicitly asks". Add the rule to the Branch/Base Intent guidance and the plan task graph and schema.
  • validation: bun run test in skills; grep -rn "exactly one pull request" skills/ returns nothing
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-503
  • backlog_item_url: https://linear.app/devpunks/issue/IP-503
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [writing-for-agents]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: One canonical sentence using the glossary term Touched Repository.
  • tdd_status: not_applicable
  • tdd_target: Rule text.
  • red_command:
  • expected_red_failure:
  • green_command:
  • reason_not_testable: Skill text.
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: not_applicable
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A2
  • behavior_owner: skills repo
  • integration_surface: planning and delivery
  • public_seam: none
  • topology_delta: none
  • forbidden_ownership: none
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-5]

T8: IP-504 Brainstorm stop rule (skills repo)

  • depends_on: []
  • location: /home/stefan/repos/skills/skills/agnostic/requirements/brainstorm/
  • owned_paths: [skills/agnostic/requirements/brainstorm/SKILL.md, tests/brainstorm.contract.test.mjs]
  • read_dependencies: [AC-022, Q17, Q57]
  • shared_runtime_resources: skills main checkout and index
  • relevant_input_set: SPEC pointer
  • wave_boundary: W1
  • description: Extend the Exits sentence: "Brainstorm edits no code, writes no plan, creates no branch, commit or worktree, and starts no implementation agent; implementation starts only on the user's explicit go." Keep the two exits.
  • validation: node --test tests/brainstorm.contract.test.mjs; bun run test
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-504
  • backlog_item_url: https://linear.app/devpunks/issue/IP-504
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [writing-for-agents]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: One sentence; no new section.
  • tdd_status: not_applicable
  • tdd_target: Exits sentence.
  • red_command:
  • expected_red_failure:
  • green_command:
  • reason_not_testable: Skill text.
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: not_applicable
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A1
  • behavior_owner: brainstorm
  • integration_surface: none
  • public_seam: none
  • topology_delta: none
  • forbidden_ownership: none
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-5]

T9: IP-505 Hook activation proof with lefthook 2.2.2

  • depends_on: []

  • location: disposable directory /home/stefan/.cache/hi-ip505-proof-<run>

  • owned_paths: [the disposable directory only]

  • read_dependencies: [AC-027–AC-029, FLOW-002, Q22, Q30–Q32, Q50, Q51, fact F3]

  • shared_runtime_resources: bun cache (read), a scratch git repository with two worktrees (exclusive)

  • relevant_input_set: lefthook 2.2.2 postinstall.js (plain install)

  • wave_boundary: W1

  • description: In a scratch bun project with lefthook 2.2.2 and the planned lefthook.yml keys, write temporary copies of the planned .githooks/pre-commit and activate-git-hooks.mjs. Prove each of these:

    1. Activation sets core.hooksPath when it is unset and is idempotent.
    2. bun install in a second worktree leaves .githooks/pre-commit byte-identical and writes no .old file.
    3. A commit in a worktree without node_modules exits non-zero and names lefthook.
    4. A different existing core.hooksPath is untouched.
    5. Activation is skipped when lefthook is below 2.1.14.

    Record the outputs in this task's log. Delete the directory afterwards.

  • validation: each of the five checks prints its expected result; ls of the scratch directory fails after cleanup

  • status: Planned

  • log:

  • files edited/created:

  • task_identity_mode: provider-task

  • backlog_item_id: IP-505

  • backlog_item_url: https://linear.app/devpunks/issue/IP-505

  • relation_mode: native

  • backlog_sync_skip_reason:

  • assigned_skills: [prototype]

  • implementation_skill_guidance:

    • skill: prototype applicable_behavior: Throwaway proof only; no repository edits; record the verdict.
  • tdd_status: not_applicable

  • tdd_target: Runtime proof of hook behavior.

  • red_command:

  • expected_red_failure:

  • green_command:

  • reason_not_testable: Proof task; its result gates IP-509 and IP-510.

  • red_evidence:

  • green_evidence:

  • codebase_design_notes: A failure here returns to requirements-grill for Q22/Q50/Q51 before IP-510 starts.

  • review_mode: cli

  • runtime_validation: required

  • runtime_target: scratch git repository with lefthook 2.2.2 and bun

  • runtime_evidence: command transcripts for checks 1–5 and the .githooks/pre-commit sha256 before and after

  • runtime_cleanup: remove /home/stefan/.cache/hi-ip505-proof-<run> including its worktrees; confirm no lefthook process remains

  • architecture_wave: A1

  • behavior_owner: commit gate (proof)

  • integration_surface: git hooks

  • public_seam: Managed Hook Script

  • topology_delta: none

  • forbidden_ownership: repository edits

  • temporary_seams: none

  • responsibility_acceptance_criteria: [RAC-4]

T10: IP-506 HI catalog and wiki for the Taste changes

  • depends_on: [T1]
  • location: apps/cli/src/data/catalog/, apps/cli/scripts/sync-skills-repo.mjs, apps/wiki/content/docs/
  • owned_paths: [apps/cli/src/data/catalog/{skills,packs}.ts (frontend entries), apps/cli/scripts/sync-skills-repo.mjs (pin), apps/cli/skills/** (sync output), apps/cli/.devpunks-cache/skills-sync.json, apps/cli/src/registry/publisher/sources/{skills,packs}.test.ts, apps/wiki/content/docs/harness/skills-and-packs/{skill-reference,skill-packs,skill-graph}.mdx, apps/wiki/content/docs/harness/entrypoints/design.mdx, apps/wiki/content/docs/project/reference/hi-requirements.md, apps/wiki/content/docs/project/grilling/design-phase-redesign-grill-{log,status}.md, apps/wiki/content/docs/project/domains/design-phase-redesign-glossary.mdx]
  • read_dependencies: [AC-002–AC-004, ARC-002, Q2, Q3, Q37; T1 skills commit]
  • shared_runtime_resources: sync output and skills pin (exclusive, L5/L6)
  • relevant_input_set: T1 landed skills commit SHA
  • wave_boundary: W2
  • description: Write the RED test first and run it against the current pin. Then create and push the tag sync/<slug>-<sha12> on the skills head (L10), bump the pin, run bun run sync:skills and remove the redesign-existing-projects and full-output-enforcement catalog entries and frontend members. Update the wiki skill pages and design.mdx for Taste 2.1 scope, and drop the retired skills, improve-mobile-frontend and gpt-taste from hi-requirements.md. Add superseding entries for design-phase-redesign grill Q17 and Q18.
  • validation: focused vitest src/registry/publisher/sources/skills.test.ts src/registry/publisher/sources/packs.test.ts; bun run check-types; wiki check:health, check:content; grep -rniE "not for (dashboards|app screens)" apps/wiki/content apps/cli/skills returns nothing
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-506
  • backlog_item_url: https://linear.app/devpunks/issue/IP-506
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [tdd, writing-for-agents]
  • implementation_skill_guidance:
    • skill: tdd applicable_behavior: RED: the publisher build lists no removed skill in frontend.
    • skill: writing-for-agents applicable_behavior: Wiki edits state current behavior; superseding grill entries cite Q2, Q3 and Q37 of this release.
  • tdd_status: required
  • tdd_target: The pack-frontend item has no redesign-existing-projects or full-output-enforcement dependency.
  • red_command: cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 src/registry/publisher/sources/packs.test.ts
  • expected_red_failure: the new assertion that the removed skills are absent fails (run before the sync, so the publisher does not throw first)
  • green_command: same command plus src/registry/publisher/sources/skills.test.ts
  • reason_not_testable:
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: Catalog-only change; the publisher derives the items.
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A2
  • behavior_owner: data/catalog
  • integration_surface: Baseline publication
  • public_seam: none
  • topology_delta: two catalog entries removed
  • forbidden_ownership: skill text
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-6]

T11: IP-507 Video Pack catalog and requiresTools validation

  • depends_on: [T2, T3, T4] (write-scope custody after T12 and T15, L5, L9)
  • location: apps/cli/src/data/catalog/, apps/cli/src/registry/publisher/, apps/wiki/content/docs/harness/skills-and-packs/
  • owned_paths: [apps/cli/src/data/catalog/{skills,packs}.ts (video entries), apps/cli/scripts/sync-skills-repo.mjs (pin), apps/cli/skills/**, apps/cli/.devpunks-cache/skills-sync.json, apps/cli/src/registry/publisher/sources/{skills,packs}.ts + tests, apps/cli/src/registry/publisher/build.test.ts, apps/cli/src/registry/pipeline.test.ts (video selection case), apps/wiki/content/docs/harness/skills-and-packs/{skill-packs,skill-reference}.mdx]
  • read_dependencies: [AC-006–AC-008, AC-013, AC-014, DEC-004, Q34, Q47]
  • shared_runtime_resources: sync output and skills pin (exclusive)
  • relevant_input_set: T2 skills commit; T3 category; T4 tool ids
  • wave_boundary: W4
  • description: Create and push the sync tag, then sync (L10). Add a pipeline test: settings.packs with video installs the three skills under .agents/skills/ (AC-008). Add catalog entries cinetic, earshot and real-sound (tier agnostic, requiresTools per AC-013). Add Pack video (category optional, promptSurfaces: ["root-prompt-spec"]). Make the publisher fail when a requiresTools id is missing from toolCatalog. Document the optional category and the video Pack in skill-packs.mdx.
  • validation: focused vitest on the publisher tests; bun run check-types; bun run check; wiki checks
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-507
  • backlog_item_url: https://linear.app/devpunks/issue/IP-507
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [tdd, quality-types, simplify]
  • implementation_skill_guidance:
    • skill: tdd applicable_behavior: RED: a skill naming an unknown tool id makes the publisher build throw; pack-video carries meta.hi.pack.category: "optional".
    • skill: quality-types applicable_behavior: Type requiresTools against the catalog id union where possible.
    • skill: simplify applicable_behavior: Reuse the existing tools.ts:15 validation pattern.
  • tdd_status: required
  • tdd_target: Building the registry with the video Pack yields pack-video with three skill dependencies and validated tools; an unknown tool id throws.
  • red_command: cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 src/registry/publisher/build.test.ts src/registry/publisher/sources/skills.test.ts
  • expected_red_failure: pack-video is missing, or the build does not throw on an unknown tool id
  • green_command: same command plus src/registry/publisher/sources/packs.test.ts src/registry/pipeline.test.ts
  • reason_not_testable:
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: Tools link at skill level (Q34); no Pack-level tools field.
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A2
  • behavior_owner: data/catalog + publisher
  • integration_surface: Baseline publication
  • public_seam: none new
  • topology_delta: Pack video
  • forbidden_ownership: tool install logic
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-6]

T12: IP-508 Retro catalog entry

  • depends_on: [T5] (write-scope custody after T10, L5)
  • location: apps/cli/src/data/catalog/
  • owned_paths: [apps/cli/src/data/catalog/{skills,packs}.ts (retro, misc), apps/cli/scripts/sync-skills-repo.mjs (pin), apps/cli/skills/**, apps/cli/.devpunks-cache/skills-sync.json, apps/cli/src/registry/publisher/sources/packs.test.ts]
  • read_dependencies: [AC-015, Q11]
  • shared_runtime_resources: sync output and skills pin (exclusive)
  • relevant_input_set: T5 skills commit
  • wave_boundary: W3
  • description: Write the RED test, create and push the sync tag, then sync (L10). Add the catalog entry retro (tier misc, sourceDirectory: "skills/misc/retro") and add retro to Pack misc.
  • validation: focused vitest src/registry/publisher/sources/packs.test.ts; bun run check-types
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-508
  • backlog_item_url: https://linear.app/devpunks/issue/IP-508
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [tdd]
  • implementation_skill_guidance:
    • skill: tdd applicable_behavior: RED: pack-misc lists retro.
  • tdd_status: required
  • tdd_target: The built pack-misc depends on retro.
  • red_command: cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 src/registry/publisher/sources/packs.test.ts
  • expected_red_failure: retro is absent from pack-misc
  • green_command: same command
  • reason_not_testable:
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: not_applicable
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A2
  • behavior_owner: data/catalog
  • integration_surface: Baseline publication
  • public_seam: none
  • topology_delta: none
  • forbidden_ownership: skill text
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-6]

T13: IP-509 Non-reproducible range finding (#261)

  • depends_on: [T9]
  • location: apps/cli/src/registry/; skills skills/agnostic/cli/hi-cli/references/post-command-flow.md
  • owned_paths: [apps/cli/src/registry/dependencies.ts, apps/cli/src/registry/dependencies.test.ts, apps/cli/src/registry/model.ts (UpdateAction only), apps/cli/src/registry/check.ts, apps/cli/src/registry/check.test.ts, skills skills/agnostic/cli/hi-cli/references/post-command-flow.md]
  • read_dependencies: [AC-023–AC-025, DEC-005, FLOW-005, Q20, Q29, Q49]
  • shared_runtime_resources: skills main index (exclusive at commit time); starts after T3 (L9)
  • relevant_input_set: catalog seed versions (lint.ts, commit-gate.ts)
  • wave_boundary: W2
  • description: Add isReproducibleRange(range) (false for dist-tags, *, x, ""). In planWorkspace's present() branch, emit dependency-range-unreproducible with the detail <name>: "<range>" -> pin <seed>. Add the advisory CheckResult.dependencyFindings, with status unchanged. Add the row to the hi-cli post-command flow.
  • validation: focused vitest on dependencies.test.ts and check.test.ts; bun run check-types; bun run check; bun run test in skills
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-509
  • backlog_item_url: https://linear.app/devpunks/issue/IP-509
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [tdd, quality-types, simplify, writing-for-agents]
  • implementation_skill_guidance:
    • skill: tdd applicable_behavior: RED through planDependencies with a workspace declaring "@oxlint/plugins": "latest", and through runCheck.
    • skill: quality-types applicable_behavior: New union member for UpdateAction; typed finding record.
    • skill: simplify applicable_behavior: One pure predicate shared by update and check.
    • skill: writing-for-agents applicable_behavior: One post-command-flow row: report only, never rewrite.
  • tdd_status: required
  • tdd_target: planDependencies returns a dependency-range-unreproducible row for latest and none for ^1.86.0; package.json writes are empty.
  • red_command: cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 src/registry/dependencies.test.ts src/registry/check.test.ts
  • expected_red_failure: no such row; dependencyFindings is undefined
  • green_command: same command
  • reason_not_testable:
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: check.ts gains read-only package.json I/O (Q29, accepted).
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A2
  • behavior_owner: registry/dependencies.ts
  • integration_surface: hi update, hi check
  • public_seam: UpdateAction, CheckResult.dependencyFindings
  • topology_delta: none
  • forbidden_ownership: package.json writes
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-3]

T14: IP-510 Commit Gate lefthook 2.2.2, Managed Hook Script and activation

  • depends_on: [T9]
  • location: apps/cli/src/registry/publisher/sources/, apps/cli/src/features/commit-gate/, apps/cli/src/data/scripts/, apps/cli/src/registry/, apps/cli/src/cli/
  • owned_paths: [apps/cli/src/registry/publisher/sources/commit-gate.ts + test, apps/cli/src/features/commit-gate/index.ts, apps/cli/src/data/scripts/activate-git-hooks.mjs, apps/cli/src/data/scripts/githooks-pre-commit (Managed Hook Script source), apps/cli/src/registry/pipeline.ts (post-run activation), apps/cli/src/registry/pipeline.test.ts, apps/cli/src/registry/init.ts + test, apps/cli/src/cli/lifecycle.ts, apps/cli/src/cli/lifecycle.test.ts, root package.json (lefthook devDependency), root lefthook.yml (the three keys), .githooks/pre-commit, bun.lock, apps/cli/src/registry/publisher/build.test.ts (commit-gate assertion)]
  • read_dependencies: [AC-026–AC-030, DEC-006, FLOW-002, Q30–Q32, Q50, Q51; T9 proof log]
  • shared_runtime_resources: none
  • relevant_input_set: T9 verdict; merge.ts scalar-overwrite behavior
  • wave_boundary: W2
  • description: Set lefthookVersion = "2.2.2", import it in features/commit-gate/index.ts, and bump HI's own root devDependency. Add the managed lefthook.yml keys no_auto_install: true, lefthook: node_modules/.bin/lefthook and assert_lefthook_installed: true. Add the Copied .githooks/pre-commit and .agents/scripts/activate-git-hooks.mjs. Add scripts.prepare only when the project has none; otherwise report the exact append command. Run activation once after hi init and hi update. Apply the same three lefthook.yml keys to HI's own root lefthook.yml, and prove that bun install in an HI worktree leaves HI's .githooks/pre-commit byte-identical.
  • validation: focused vitest on the commit-gate, pipeline, init, lifecycle and build.test.ts; bun run check-types; bun run check; sha256sum .githooks/pre-commit equal before and after bun install in a scratch HI worktree (remove the worktree afterwards)
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-510
  • backlog_item_url: https://linear.app/devpunks/issue/IP-510
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [tdd, quality-types, simplify, effect]
  • implementation_skill_guidance:
    • skill: tdd applicable_behavior: RED on the commit-gate Registry Item content and on runInstall with an existing prepare.
    • skill: quality-types applicable_behavior: A single version constant; no string literals elsewhere.
    • skill: simplify applicable_behavior: Activation is a small Node script; no new CLI command.
    • skill: effect applicable_behavior: Post-run activation stays inside the existing pipeline Effect flow with typed failure.
  • tdd_status: required
  • tdd_target: The commit-gate item contains the two Copied files and the three lefthook.yml keys at 2.2.2; runInstall on a project with prepare keeps it and reports the append command.
  • red_command: cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 src/registry/publisher/sources/commit-gate.test.ts src/registry/pipeline.test.ts
  • expected_red_failure: version 2.1.10, missing files or keys, or prepare overwritten
  • green_command: same command plus src/registry/init.test.ts src/cli/lifecycle.test.ts
  • reason_not_testable:
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: Activation never overrides another core.hooksPath and is skipped below lefthook 2.1.14 (proven in T9).
  • review_mode: cli
  • runtime_validation: required
  • runtime_target: hi init from this branch's CLI build in a scratch repository
  • runtime_evidence: git config core.hooksPath is .githooks; a commit without node_modules exits non-zero
  • runtime_cleanup: remove the scratch repository and the scratch HI worktree (git worktree remove)
  • architecture_wave: A2
  • behavior_owner: commit gate
  • integration_surface: consumer git hooks
  • public_seam: .githooks/pre-commit, activate-git-hooks.mjs
  • topology_delta: two Copied files
  • forbidden_ownership: hook paths other than .githooks
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-4]

T15: IP-512 Commit Gate verify by digest, opt-out, docs

  • depends_on: [T14]
  • location: apps/cli/src/platform/, apps/cli/src/cli/, apps/wiki/content/docs/project/
  • owned_paths: [apps/cli/src/platform/commit-gate-capabilities.ts + test, apps/cli/src/cli/commit-gate-command.ts + test, apps/cli/src/cli/lifecycle.ts (hint, after T14), apps/cli/src/registry/pipeline.ts (opt-out branch, after T14), apps/cli/src/registry/pipeline.test.ts (opt-out case), apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md (Commit Gate sections), apps/wiki/content/docs/project/domains/lefthook-commit-gate-{glossary,lifecycle}.mdx]
  • read_dependencies: [AC-031, AC-032, DEC-006, Q31, Q36, Q52]
  • shared_runtime_resources: none
  • relevant_input_set: T14 Managed Hook Script digest
  • wave_boundary: W3
  • description: observeCommitGate recognizes the Managed Hook Script by digest when core.hooksPath is .githooks; hasOtherManager narrows to non-managed paths; verify reports inactive when the setting is unset. Opt-out (L12): when settings say commitGate: "disabled", hi update removes .githooks/pre-commit, unsets core.hooksPath only when it is .githooks, and reports an old .git/hooks/pre-commit without deleting it. Point the lifecycle hint at the activation script. Update the runbook and fix the stale lefthook lifecycle and glossary claims.
  • validation: focused vitest on the three test files; bun run check-types; wiki checks
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-512
  • backlog_item_url: https://linear.app/devpunks/issue/IP-512
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [tdd, quality-types, writing-for-agents]
  • implementation_skill_guidance:
    • skill: tdd applicable_behavior: RED: verify on an activated fixture passes; core.hooksPath=.husky counts as another manager.
    • skill: quality-types applicable_behavior: Typed observation states (managed, inactive, other).
    • skill: writing-for-agents applicable_behavior: Runbook steps match the new commands exactly.
  • tdd_status: required
  • tdd_target: hi commit-gate verify passes for an activated repository whose script digest matches, and reports inactive when core.hooksPath is unset.
  • red_command: cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 src/platform/commit-gate-capabilities.test.ts src/cli/commit-gate-command.test.ts src/registry/pipeline.test.ts
  • expected_red_failure: the managed .githooks is classified as another manager; an opted-out update keeps the script
  • green_command: same command
  • reason_not_testable:
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: Supersedes lefthook grill Q16 and, in part, Q17.
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A2
  • behavior_owner: platform/commit-gate-capabilities.ts
  • integration_surface: hi commit-gate verify
  • public_seam: none new
  • topology_delta: none
  • forbidden_ownership: none
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-4]

T16: IP-511 ask-hi references (skills repo)

  • depends_on: [T1, T2, T5, T6, T7, T8]
  • location: /home/stefan/repos/skills/skills/agnostic/cli/ask-hi/references/
  • owned_paths: [skills/agnostic/cli/ask-hi/references/{baseline,discovery-and-docs,delivery,phase-graph,requirements,quality}.md]
  • read_dependencies: [AC-002, AC-004, AC-021, AC-033, Q15, Q58; landed commits of T1, T2, T5–T8]
  • shared_runtime_resources: skills main index
  • relevant_input_set: final skill texts
  • wave_boundary: W4
  • description: Update the Pack table (optional, video, misc with ask-hi and retro, frontend without the two skills), the Taste entry and design-phase calls, the plan move in the requirements, delivery and phase-graph references, the PR rule, the brainstorm rule, and the hi-cli report flow with retro.
  • validation: bun run test in skills (the requirements-grill-graph link checker); grep -rniE "phases/plan.md|not for (dashboards|app screens)|exactly one pull request" skills/agnostic/cli/ask-hi returns nothing
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-511
  • backlog_item_url: https://linear.app/devpunks/issue/IP-511
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [writing-for-agents]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: Mirror the landed skill text; no new claims.
  • tdd_status: not_applicable
  • tdd_target: Reference text.
  • red_command:
  • expected_red_failure:
  • green_command:
  • reason_not_testable: Documentation skill text.
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: not_applicable
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A3
  • behavior_owner: ask-hi
  • integration_surface: none
  • public_seam: none
  • topology_delta: none
  • forbidden_ownership: none
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-8]

T17: IP-513 Release CLI 6.3.0 and Baseline

  • depends_on: [T10, T11, T12, T13, T15, T16]
  • location: HI root, apps/cli/
  • owned_paths: [apps/cli/package.json (version), CHANGELOG.md, BASELINE_CHANGELOG.md, apps/cli/scripts/sync-skills-repo.mjs (final pin), apps/cli/skills/**, apps/cli/.devpunks-cache/skills-sync.json, apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md (tools, Packs, range sections), bun.lock (version refresh)]
  • read_dependencies: [AC-034, ARC-011, Q23, Q48]
  • shared_runtime_resources: sync output (exclusive)
  • relevant_input_set: final skills main commit containing T1, T2, T5–T8, T13 (skills part), T16
  • wave_boundary: W5
  • description: Create and push the final sync tag (L10), set the pin and run bun run sync:skills. Run bun install to refresh bun.lock for 6.3.0. Set @punks/cli to 6.3.0 and add CHANGELOG.md 6.3.0 notes. Add BASELINE_CHANGELOG.md Unreleased notes with Compatibility >=6.3.0 <7.0.0. Document hi tools ensure kinds, the video Pack and the range finding in the runbook. Push the branch, open the one HI PR, and link it to the thread.
  • validation: bun run release:classify reports releaseKind: mixed; apps/cli/.devpunks-cache/skills-sync.json commit equals the pin; cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 src/registry/publisher/build.test.ts and bun run check-types pass after the final sync; gh pr view spec/baseline-video-retro-plan-move shows the open PR; wiki checks
  • status: Planned
  • log:
  • files edited/created:
  • task_identity_mode: provider-task
  • backlog_item_id: IP-513
  • backlog_item_url: https://linear.app/devpunks/issue/IP-513
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [writing-for-agents]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: Changelog notes state user-visible change and compatibility only.
  • tdd_status: not_applicable
  • tdd_target: Release metadata.
  • red_command:
  • expected_red_failure:
  • green_command:
  • reason_not_testable: Release bookkeeping; the classifier is its check.
  • red_evidence:
  • green_evidence:
  • codebase_design_notes: not_applicable
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A3
  • behavior_owner: release
  • integration_surface: npm and Baseline publication
  • public_seam: Baseline Compatibility
  • topology_delta: none
  • forbidden_ownership: none
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-7]

Validation Gates

  • Task Gate: each task's validation, plus RED/GREEN evidence for required tasks.
  • A1 checkpoint (after T1–T6, T8, T9): RAC-1 and RAC-2 are green. The T9 verdict passes, or the work returns to requirements-grill.
  • A2 checkpoint: RAC-3–RAC-6 are green, and RAC-1 and RAC-2 are re-run.
  • A3 closure: RAC-7 and RAC-8 are green; all RAC are re-run; the migration ledger is empty; classify reports mixed.

Backlog Sync

provider-task mode. Each Tn aliases one Linear Task under its Story in milestone V4.6. depends_on mirrors the 20 native blocker edges. The custody edges L2 and L5 order waves only and add no provider relation.

Plan Review

plan-reviewer (2026-10-22) found 2 High, 5 Medium and 5 Low issues. All are fixed by L9–L12, RAC-8, and the T3, T4, T10–T17 field changes above.

Unresolved Questions

  • Linear placement: the Epic sits under IP-456, and the workflow Stories could move to IP-442. This is non-blocking; the user may move them.
  • F7: why HI's own worktrees keep .githooks clean on 2.1.10. It is non-material, and T9/T14 re-test activation.

On this page