Baseline Video, Retro and Plan Move Plan
Plan: Baseline Video, Retro and Plan Move
Context Pointers
| Pointer | Identity | Freshness rule |
|---|---|---|
| SPEC | SPEC.md @ 8904a57fe1d6824b22fbd8b14a0435c00b20dff7 | Re-verify the blob bytes before each wave; a changed SPEC invalidates this plan |
| ARCHITECTURE | ARCHITECTURE.md @ f13fbba1b97f15756d52851827a609433554b650 | Traceability complete; selectors ARC-001–ARC-011, FLOW-001–FLOW-005, DEC-001–DEC-008 |
| Grill | status blob 497e6654…, log blob 0637b523… at commit e36d20e35 | Closed R2; Q IDs are stable |
| Skills source | wearedevpunks/skills main at 022a4851fa028028dfbf313dc99ba12ed67be590 (plan time) | Each skills Task records the commit it lands |
| Backlog | Linear 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/scaffoldboundary (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 reportcarries 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
| ID | Decision | Source |
|---|---|---|
| L1 | Tasks are the 17 Linear Tasks (provider-task, native relations) | write-backlog readback |
| L2 | IP-503 runs in the wave after IP-502 (shared files), with no new Linear blocker | P1, user "yes agree all" |
| L3 | Skills-repo workers may edit in parallel on disjoint paths in the single main checkout; commits are serialized, and each runs bun run test first | P2 |
| L4 | IP-505 is a separate proof task before IP-509/IP-510 | P3 |
| L5 | HI catalog tasks IP-506 → IP-508 → IP-507 run in sequence, because they share catalog/{packs,skills}.ts and the sync output | write-scope custody |
| L6 | Each 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 pin | ARC-001, sync-skills-repo.mjs:21-22 |
| L7 | One HI PR from spec/baseline-video-retro-plan-move; skills commits go to main with no PR | SPEC Branch/Base Intent, Q16, Q41 |
| L8 | No new provenance tests; existing tests change only where edits break them | Q54, Q55 |
| L9 | Custody 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 |
| L10 | Every 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:skills | plan-reviewer finding 7 |
| L11 | Every HI task commits and pushes to spec/baseline-video-retro-plan-move; T17 opens and links the one PR | plan-reviewer finding 9, L7 |
| L12 | Opt-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/skillsonmain. Never hand-editapps/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
TMPDIRto a disk directory, because/tmpis tmpfs. /AGENTS.mdcleanup applies to IP-505 and any scratch uv or git directory.
Codebase Findings
- Pack categories are defined in
packages/scaffold/src/catalog/identity.ts:3andapps/cli/src/registry/model.ts:139.registry/shape.ts:262 detectedPacksis the single proposal source. data/catalog/tools.tsholds six npm tools and nokindfield.integrations/tool-management.tshas a sync API overToolCommandRuntimeand no Effect layer.registry/dependencies.ts:141 planWorkspacehas no range check.registry/check.ts:201 runCheckreturns status only.- The commit gate sets
lefthookVersion = "2.1.10"atpublisher/sources/commit-gate.ts:17. A second literal is atfeatures/commit-gate/index.ts:41, and the rootpackage.json:94pins 2.1.10. - The CLI type check is
bun run check-types(tsc --noEmit). The memory note aboutbun checkis stale.
Wiki Context
-
Knowledge used:
Page Selected by Claims used Freshness Primary evidence harness/skills-and-packs/skill-packs.mdxsearch "Pack category" four categories; frontendmembersfresh identity.ts:3,packs.ts:214-233harness/entrypoints/design.mdxsearch "design-taste-frontend" variant round; retired skill mentions fresh variant-round.mdproject/runbooks/hi-cli-scaffolding.mdCommit Gate runbook verify writes nothing; opt-out steps fresh commit-gate-command.tsproject/domains/lefthook-commit-gate-{glossary,lifecycle}.mdxCommit Gate terms 2.1.10 pin; Opt-Out meaning fresh for the pin commit-gate.ts:17 -
Stale or contradictory claims:
- The lefthook lifecycle :24/:31 and glossary :40 say "
hi ensurepersists policy".ensureexists only insidetools-command.ts. - The lifecycle :39/:41 says "
hi check --jsonwrites a receipt". The runbook says verify writes nothing.
Resolution: IP-512 corrects both while it rewrites those pages.
project/reference/hi-requirements.mdmentions the retiredimprove-mobile-frontendandgpt-taste; IP-506 removes them. - The lefthook lifecycle :24/:31 and glossary :40 say "
-
Returned findings: the stale memory note
bun-check-typecheck-decisiongoes 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-011Declared Dependency Graph
Edges are one-way. Forbidden:
uv-tool.tsimporting from the catalog;check.tswritingpackage.json;- skills text naming CLI internals beyond public commands.
Responsibility Acceptance Criteria
| criterion_id | Owner | Assertion | Evidence | due_architecture_wave |
|---|---|---|---|---|
| RAC-1 | scaffold + registry | optional decodes; detectedPacks never yields default/optional | shape.test.ts, public-scaffold-contract.test.ts | A1 |
| RAC-2 | integrations | uv kind installs at full pin, skips on matching receipt; check-only reports min/found | tool-management.test.ts, uv-tool.test.ts | A1 |
| RAC-3 | registry | range finding advisory in update and check; no package.json write | dependencies.test.ts, check.test.ts | A2 |
| RAC-4 | commit gate | lefthook 2.2.2; Managed Hook Script fails closed; activation never overrides; verify by digest; opt-out | IP-505 proof, commit-gate*.test.ts | A2 |
| RAC-5 | skills repo | skill text matches AC-001–AC-005, AC-015–AC-022 (ask-hi parts excluded) | bun run test in skills; grep checks in tasks | A2 |
| RAC-8 | ask-hi | ask-hi references match AC-033 and the ask-hi parts of AC-002, AC-004, AC-021 | bun run test in skills; grep checks in T16 | A3 |
| RAC-6 | catalog | video, retro, frontend membership; requiresTools ids validated | build.test.ts, sources/*.test.ts | A2 |
| RAC-7 | release | CLI 6.3.0; Compatibility >=6.3.0 <7.0.0; final skills pin | release:classify reports mixed | A3 |
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 emptyPublic Seam Contract
| Seam | Owner | Allowed consumers |
|---|---|---|
PackCategory incl. optional | packages/scaffold | CLI registry, Baseline decode |
tool catalog kind union | data/catalog/tools.ts | tool-management, publisher |
UpdateAction dependency-range-unreproducible | registry/model.ts | update report, hi-cli post-command flow |
CheckResult.dependencyFindings | registry/check.ts | hi check --json consumers |
.githooks/pre-commit, .agents/scripts/activate-git-hooks.mjs | commit gate | consumer 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).
| Wave | Tasks | Notes |
|---|---|---|
| W1 | T1 IP-497, T2 IP-498, T3 IP-499, T4 IP-500, T5 IP-501, T6 IP-502, T8 IP-504, T9 IP-505 | Skills tasks edit disjoint paths and commit one at a time (L3) |
| W2 | T7 IP-503, T10 IP-506, T13 IP-509, T14 IP-510 | T10, T13, T14 start after T3 (L9) |
| W3 | T12 IP-508, T15 IP-512 | |
| W4 | T11 IP-507, T16 IP-511 | T11 also waits for T15 (L9) |
| W5 | T17 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 runbun run check-typesandbun run checkin each touched workspace. - Skills tasks:
cd /home/stefan/repos/skills && bun run testbefore 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) andcheck:content. - Commits: skills tasks push
mainafter each commit (L10); HI tasks push the spec branch (L11). - CI owns the full suite.
Risks and Mitigations
| Risk | Mitigation |
|---|---|
| lefthook 2.2.2 behaves unlike the 2.1.14 reading | T9 (IP-505) proves it first and blocks IP-509 and IP-510 |
| Concurrent skills commits collide in one Git index | L3: 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 optional | IP-513 raises Compatibility to >=6.3.0 |
| A full test run fills tmpfs | TMPDIR 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
maincheckout 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-frontendwith v2.1.4 verbatim and addUPSTREAM.md(local edit: directory rename only) andLICENSE. AddUPSTREAM.mdandLICENSEto the four image skills, pinned to imagegen-skillsbeb16b0d. Delete the two retired skills. Invariant-round.md, delete the redesign line and passimprove-existingtodesign-taste-frontend's redesign route. Incopy-lens.md, delete the full-output paragraph. Fix the broken test assertions. - validation:
cd /home/stefan/repos/skills && bun run test;diff -ragainst the upstreamskills/taste-skillat6010f91ashows onlyUPSTREAM.mdandLICENSE;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-agentsapplicable_behavior: Keep vendored text verbatim; local edits to design-phase text stay minimal and imperative.
- skill:
- 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
maincheckout and index (exclusive at commit time) - relevant_input_set: upstream tree hashes at both pins
- wave_boundary: W1
- description: Copy
skills/cineticfrom cinetic atecfa6605, andskills/earshotandskills/real-soundfrom earshot at925ebe56, verbatim. AddUPSTREAM.md(pin, path,## Local edits: None) and the upstreamLICENSEto each. - validation:
bun run testin skills;diff -ragainst each upstream path shows onlyUPSTREAM.mdandLICENSE - 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-agentsapplicable_behavior: Vendor verbatim;UPSTREAM.mdstates pin and local edits only.
- skill:
- 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"toPackCategorySchemaandPackCategory, and drop theExcludeinpacks.ts. IndetectedPacks, return no evidence fordefaultoroptional. - validation: focused vitest on
shape.test.ts,pipeline.test.tsandpublic-scaffold-contract.test.ts;bun run check-typesinapps/cliandpackages/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:
tddapplicable_behavior: RED throughproposePacksand adoption with a fixture optional Pack before editing. - skill:
quality-typesapplicable_behavior: Keep the category a closed literal union; no string widening. - skill:
simplifyapplicable_behavior: One predicate; no new helper module. - skill:
effectapplicable_behavior: KeepSchema.Literalsdecoding for the category.
- skill:
- tdd_status: required
- tdd_target: A catalog Pack with category
optionaland matching triggers is absent fromproposePacks,hi init --yesdefaults,hi updateadoption andhi diffunselected-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[].gitwith?rev=) - wave_boundary: W1
- description: (AC-010–AC-012, AC-014.) Add the
kindunion (npm-globaldefault,uv,check-only) and the entriesearshot(uv;requirement, full-SHApin,installArgs ["--torch-backend","cpu"]),uv,ffmpeg,ffprobe,python3(min 3.11) andnode(min 22). Createuv-tool.tswithreadUvToolRevandinstallUvTool.ensureToolsInstalleddispatches 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. Routegh,glabandazthrough check-only. Add a test that a required-tool set withoutearshotruns nouv 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:
tddapplicable_behavior: RED onensureToolsInstalledwith a stub runtime: missing earshot runs the exact uv argv; a matching receipt runs nothing; python3 3.10 fails with min/found. - skill:
quality-typesapplicable_behavior: Discriminated union onkind; exhaustive switch. - skill:
simplifyapplicable_behavior: No Effect layer; reuseToolCommandRuntimeandisMinimumVersionSatisfied. - skill:
codebase-designapplicable_behavior:uv-tool.tsis a thin adapter; policy stays intool-management.ts.
- skill:
- tdd_status: required
- tdd_target:
ensureToolsInstalled(["earshot"])with no receipt runsuv 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, oruv-tool.tsis 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
kindunion - 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
maincheckout and index (exclusive at commit time) - relevant_input_set: upstream retro tree at
5beb35b0; mattpocock LICENSE sha2560e7ac423… - wave_boundary: W1
- description: Vendor
skills/engineering/retrowithoutagents/openai.yaml, setdisable-model-invocation: false, and record both inUPSTREAM.md; addLICENSE. In hi-clicommands.mdhi report, before submission, require activating$retroscoped to the reported issue, with its findings filling--steps,--expectedand--actualand no project-environment fixes. Add one line to the SKILL.md commands area. Do not change the post-command Report branch. - validation:
bun run testin 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-agentsapplicable_behavior: One imperative hi-cli step; no duplicated retro content.
- skill:
- 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
maincheckout and index (exclusive at commit time) - relevant_input_set:
create-specretain 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. Givecreate-planretain steps (commit, push, verify blob URL) and update its Contract lines. Deletedelivery-phase/phases/plan.md. Router step 7 sends a missing or stale plan tophases/spec.md.artifact-state.mdPlan Complete requires retention.implement-specroutes a missing or invalid plan to requirements-phase and keeps the direct execution-only amendment. Update the debugging-phase "revise the plan" line. Repointwayfinder-lifecycle:363/:379. - validation:
bun run testin 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-agentsapplicable_behavior: Change only the routing sentences; keep the phase vocabulary. - skill:
write-graph-based-skillsapplicable_behavior: Keep the delivery router's precedence total after removing the plan phase; no dead links.
- skill:
- 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
maincheckout 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 testin 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-agentsapplicable_behavior: One canonical sentence using the glossary term Touched Repository.
- skill:
- 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
maincheckout 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-agentsapplicable_behavior: One sentence; no new section.
- skill:
- 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(plaininstall) -
wave_boundary: W1
-
description: In a scratch bun project with lefthook 2.2.2 and the planned
lefthook.ymlkeys, write temporary copies of the planned.githooks/pre-commitandactivate-git-hooks.mjs. Prove each of these:- Activation sets
core.hooksPathwhen it is unset and is idempotent. bun installin a second worktree leaves.githooks/pre-commitbyte-identical and writes no.oldfile.- A commit in a worktree without
node_modulesexits non-zero and names lefthook. - A different existing
core.hooksPathis untouched. - Activation is skipped when lefthook is below 2.1.14.
Record the outputs in this task's log. Delete the directory afterwards.
- Activation sets
-
validation: each of the five checks prints its expected result;
lsof 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:
prototypeapplicable_behavior: Throwaway proof only; no repository edits; record the verdict.
- skill:
-
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-commitsha256 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, runbun run sync:skillsand remove theredesign-existing-projectsandfull-output-enforcementcatalog entries andfrontendmembers. Update the wiki skill pages anddesign.mdxfor Taste 2.1 scope, and drop the retired skills,improve-mobile-frontendandgpt-tastefromhi-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; wikicheck:health,check:content;grep -rniE "not for (dashboards|app screens)" apps/wiki/content apps/cli/skillsreturns 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:
tddapplicable_behavior: RED: the publisher build lists no removed skill infrontend. - skill:
writing-for-agentsapplicable_behavior: Wiki edits state current behavior; superseding grill entries cite Q2, Q3 and Q37 of this release.
- skill:
- tdd_status: required
- tdd_target: The
pack-frontenditem has noredesign-existing-projectsorfull-output-enforcementdependency. - 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.packswithvideoinstalls the three skills under.agents/skills/(AC-008). Add catalog entriescinetic,earshotandreal-sound(tieragnostic,requiresToolsper AC-013). Add Packvideo(categoryoptional,promptSurfaces: ["root-prompt-spec"]). Make the publisher fail when arequiresToolsid is missing fromtoolCatalog. Document theoptionalcategory and thevideoPack inskill-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:
tddapplicable_behavior: RED: a skill naming an unknown tool id makes the publisher build throw;pack-videocarriesmeta.hi.pack.category: "optional". - skill:
quality-typesapplicable_behavior: TyperequiresToolsagainst the catalog id union where possible. - skill:
simplifyapplicable_behavior: Reuse the existingtools.ts:15validation pattern.
- skill:
- tdd_status: required
- tdd_target: Building the registry with the video Pack yields
pack-videowith 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-videois 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(tiermisc,sourceDirectory: "skills/misc/retro") and addretroto Packmisc. - 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:
tddapplicable_behavior: RED:pack-misclistsretro.
- skill:
- tdd_status: required
- tdd_target: The built
pack-miscdepends onretro. - red_command:
cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 src/registry/publisher/sources/packs.test.ts - expected_red_failure:
retrois absent frompack-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/; skillsskills/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, skillsskills/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
mainindex (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,""). InplanWorkspace'spresent()branch, emitdependency-range-unreproduciblewith the detail<name>: "<range>" -> pin <seed>. Add the advisoryCheckResult.dependencyFindings, with status unchanged. Add the row to the hi-cli post-command flow. - validation: focused vitest on
dependencies.test.tsandcheck.test.ts;bun run check-types;bun run check;bun run testin 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:
tddapplicable_behavior: RED throughplanDependencieswith a workspace declaring"@oxlint/plugins": "latest", and throughrunCheck. - skill:
quality-typesapplicable_behavior: New union member forUpdateAction; typed finding record. - skill:
simplifyapplicable_behavior: One pure predicate shared by update and check. - skill:
writing-for-agentsapplicable_behavior: One post-command-flow row: report only, never rewrite.
- skill:
- tdd_status: required
- tdd_target:
planDependenciesreturns adependency-range-unreproduciblerow forlatestand none for^1.86.0;package.jsonwrites 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;
dependencyFindingsis undefined - green_command: same command
- reason_not_testable:
- red_evidence:
- green_evidence:
- codebase_design_notes:
check.tsgains read-onlypackage.jsonI/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.jsonwrites - 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, rootpackage.json(lefthook devDependency), rootlefthook.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.tsscalar-overwrite behavior - wave_boundary: W2
- description: Set
lefthookVersion = "2.2.2", import it infeatures/commit-gate/index.ts, and bump HI's own root devDependency. Add the managedlefthook.ymlkeysno_auto_install: true,lefthook: node_modules/.bin/lefthookandassert_lefthook_installed: true. Add the Copied.githooks/pre-commitand.agents/scripts/activate-git-hooks.mjs. Addscripts.prepareonly when the project has none; otherwise report the exact append command. Run activation once afterhi initandhi update. Apply the same threelefthook.ymlkeys to HI's own rootlefthook.yml, and prove thatbun installin an HI worktree leaves HI's.githooks/pre-commitbyte-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-commitequal before and afterbun installin 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:
tddapplicable_behavior: RED on the commit-gate Registry Item content and onrunInstallwith an existingprepare. - skill:
quality-typesapplicable_behavior: A single version constant; no string literals elsewhere. - skill:
simplifyapplicable_behavior: Activation is a small Node script; no new CLI command. - skill:
effectapplicable_behavior: Post-run activation stays inside the existing pipeline Effect flow with typed failure.
- skill:
- tdd_status: required
- tdd_target: The commit-gate item contains the two Copied files and the three
lefthook.ymlkeys at 2.2.2;runInstallon a project withpreparekeeps 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
prepareoverwritten - 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.hooksPathand is skipped below lefthook 2.1.14 (proven in T9). - review_mode: cli
- runtime_validation: required
- runtime_target:
hi initfrom this branch's CLI build in a scratch repository - runtime_evidence:
git config core.hooksPathis.githooks; a commit withoutnode_modulesexits 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:
observeCommitGaterecognizes the Managed Hook Script by digest whencore.hooksPathis.githooks;hasOtherManagernarrows to non-managed paths; verify reports inactive when the setting is unset. Opt-out (L12): when settings saycommitGate: "disabled",hi updateremoves.githooks/pre-commit, unsetscore.hooksPathonly when it is.githooks, and reports an old.git/hooks/pre-commitwithout 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:
tddapplicable_behavior: RED: verify on an activated fixture passes;core.hooksPath=.huskycounts as another manager. - skill:
quality-typesapplicable_behavior: Typed observation states (managed,inactive,other). - skill:
writing-for-agentsapplicable_behavior: Runbook steps match the new commands exactly.
- skill:
- tdd_status: required
- tdd_target:
hi commit-gate verifypasses for an activated repository whose script digest matches, and reports inactive whencore.hooksPathis 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
.githooksis 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
mainindex - relevant_input_set: final skill texts
- wave_boundary: W4
- description: Update the Pack table (
optional,video,miscwithask-hiandretro,frontendwithout 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 testin skills (therequirements-grill-graphlink checker);grep -rniE "phases/plan.md|not for (dashboards|app screens)|exactly one pull request" skills/agnostic/cli/ask-hireturns 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-agentsapplicable_behavior: Mirror the landed skill text; no new claims.
- skill:
- 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
maincommit 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. Runbun installto refreshbun.lockfor 6.3.0. Set@punks/clito 6.3.0 and addCHANGELOG.md6.3.0 notes. AddBASELINE_CHANGELOG.mdUnreleased notes with Compatibility>=6.3.0 <7.0.0. Documenthi tools ensurekinds, thevideoPack 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:classifyreportsreleaseKind: mixed;apps/cli/.devpunks-cache/skills-sync.jsoncommit equals the pin;cd apps/cli && bunx vitest run --config vitest.config.ts --maxWorkers=1 src/registry/publisher/build.test.tsandbun run check-typespass after the final sync;gh pr view spec/baseline-video-retro-plan-moveshows 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-agentsapplicable_behavior: Changelog notes state user-visible change and compatibility only.
- skill:
- 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 forrequiredtasks. - 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;
classifyreports 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
.githooksclean on 2.1.10. It is non-material, and T9/T14 re-test activation.