Baseline Video, Retro and Plan Move
Spec: Baseline Video, Retro and Plan Move
Context
This release has two parts. The Harness Baseline gets new and changed shared
skills, and @punks/cli 6.3.0 gets Pack, tool and Commit Gate changes. The
changes are:
- Taste-skill 2.1 adoption.
- A manual
videoPack for code-made films. retro-backedhi reportevidence.- Plans created during requirements, not delivery.
- One PR rule.
- A brainstorm stop rule.
- Visible non-reproducible ranges.
- Commit hooks that fail closed in every worktree.
The decisions come from the closed grill: status, log and glossary. The design companion is the sibling ARCHITECTURE.md.
The actors:
- Agents operate the skills and
hicommands in consumer repositories. - Operators select Packs and file reports.
- Maintainers publish the release.
Non-Goals
- Issue #263: the bad wiki command is APITO-owned (Q25).
- Pinning APITO's
latestranges or refreshing itsbun.lock(Q19). - HI-managed cinetic Python environments, earshot MCP registration, earshot model pre-fetch, and a Chromium check (Q7-Q9, Q28).
- Uninstalling tools when a Pack is deselected (Q26).
- Reporting consumers on an old
lefthook(Q35). - New provenance tests (Q54, Q55).
Requirements Outcomes
OUT-001: Taste-skill 2.1 is the frontend art-direction skill for pages and app screens
Architecture: OUT-001, ARC-002.
OUT-002: The image skills record their new upstream
Architecture: OUT-002, ARC-002.
OUT-003: A user can opt into a video Pack that is never selected automatically
Architecture: OUT-003, ARC-003, ARC-007, FLOW-001.
OUT-004: hi tools ensure installs earshot reproducibly and verifies Check-only Tools
Architecture: OUT-004, ARC-009, FLOW-001.
OUT-005: hi report carries retro evidence scoped to the reported issue
Architecture: OUT-005, ARC-004, FLOW-004.
OUT-006: Requirements Phase produces the retained plan; delivery only consumes it
Architecture: OUT-006, ARC-005, FLOW-003.
OUT-007: Planning and delivery create at most one pull request per Touched Repository
Architecture: OUT-007, ARC-006.
OUT-008: Brainstorm never starts implementation
Architecture: OUT-008, ARC-006.
OUT-009: HI reports Non-reproducible Ranges of the devDependencies it requires
Architecture: OUT-009, ARC-010, FLOW-005.
OUT-010: The Commit Gate fails closed in every worktree and never repoints shared hooks
Architecture: OUT-010, ARC-008, FLOW-002.
OUT-011: ask-hi explains the released behavior
Architecture: OUT-011, ARC-006.
OUT-012: The release ships as one compatible Baseline and CLI pair
Architecture: OUT-012, ARC-011.
Acceptance Criteria
-
AC-001:
design-taste-frontendin the skills repository is byte-identical toLeonxlnx/taste-skillskills/taste-skillat6010f91a9935f1c167dfc500fb1a475681892e6b(v2.1.4). It has anUPSTREAM.md, whose only local edit is the directory rename, and the upstreamLICENSE.- Covers: OUT-001
- Architecture: AC-001, ARC-002
-
AC-002:
redesign-existing-projectsandfull-output-enforcementare absent from the skills repository, the HI skill catalog, thefrontendPack,design-phase,ask-hiand the HI wiki skill pages.- Covers: OUT-001
- Architecture: AC-002, ARC-002, DEC-008
-
AC-003:
design-phasevariant-round.mdactivatesdesign-taste-frontendon every variant. It passes the intake intentimprove-existingto that skill's redesign route. The design-phase-redesign grill log has superseding entries for its Q17 and Q18.- Covers: OUT-001
- Architecture: AC-003, ARC-002
-
AC-004: No skill, ask-hi reference or wiki page describes
design-taste-frontendas "not for dashboards" or "not for app screens".- Covers: OUT-001, OUT-011
- Architecture: AC-004, ARC-002, ARC-006
-
AC-005:
brandkit,image-to-code,imagegen-frontend-webandimagegen-frontend-mobileeach have anUPSTREAM.mdthat namesLeonxlnx/imagegen-skillsatbeb16b0d0f4dae9a6f5cb04ea41e97b93a54ab8e, and the upstreamLICENSE.- Covers: OUT-002
- Architecture: AC-005, ARC-002
-
AC-006: The Pack category schema accepts
optional. ThevideoPack has categoryoptionaland memberscinetic,earshotandreal-sound.- Covers: OUT-003
- Architecture: AC-006, ARC-007, DEC-001
-
AC-007: For a repository whose manifests match every trigger, none of these returns
video:- Pack detection;
hi init --yes;hi updateadoption of newly detected Packs;hi diffunselected-detected reporting.- Covers: OUT-003
- Architecture: AC-007, FLOW-001-STEP-002, DEC-001
-
AC-008: Selecting
videothrough thehi initprompt orsettings.packsinstalls the three video skills under.agents/skills/.- Covers: OUT-003
- Architecture: AC-008, FLOW-001-STEP-001
-
AC-009: The three video skills exist under
skills/agnostic/video/in the skills repository. Each has anUPSTREAM.mdand aLICENSE.cineticis pinned toecfa6605de1adb9345ce937724810dc32267d068;earshotandreal-soundare pinned to925ebe56a1b755e5d354ab642bb8f344440cfa9c.- Covers: OUT-003
- Architecture: AC-009, ARC-003, DEC-004
-
AC-010: With
earshotabsent,hi tools ensurerunsuv tool install --torch-backend cpu "earshot[mcp] @ git+https://github.com/Leonxlnx/earshot@925ebe56a1b755e5d354ab642bb8f344440cfa9c"with the full 40-character SHA.- Covers: OUT-004
- Architecture: AC-010, FLOW-001-STEP-006, DEC-002, DEC-003
-
AC-011: When the earshot uv receipt
revequals the pin,hi tools ensuredoes not runuv tool install. When it differs,hi tools ensurereinstalls at the pin.- Covers: OUT-004
- Architecture: AC-011, FLOW-001-STEP-005, DEC-003
-
AC-012:
hi tools ensurefails with a message that names the tool, the minimum version and the found version in two cases: whenpython3is below 3.11, and whennodeis below 22. A missing Check-only Tool fails as not available. HI never installsuv,ffmpeg,ffprobe,python3ornode.- Covers: OUT-004
- Architecture: AC-012, FLOW-001-STEP-004, DEC-002, DEC-003
-
AC-013: The video skills declare these
requiresTools:earshotandreal-sound:earshot,uv,ffmpeg,ffprobe,python3;cinetic:node,ffmpeg,ffprobe,python3.
The Baseline publisher fails when any skill names a tool id that is not in the tool catalog.
- Covers: OUT-004
- Architecture: AC-013, FLOW-001-STEP-003, DEC-004
-
AC-014: Deselecting
videoand runninghi updateleaves the earshot uv tool installed.- Covers: OUT-004
- Architecture: AC-014, FLOW-001
-
AC-015: The skills repository has
skills/misc/retroat mattpocock/skills5beb35b040e3de97e54fa9e386d7e42d15c295c2, withdisable-model-invocation: falseand noagents/openai.yaml. ItsUPSTREAM.mdrecords both as local edits. ThemiscPack includesretro.- Covers: OUT-005
- Architecture: AC-015, ARC-004
-
AC-016: The
hi-clihi reportguidance requires activatingretrobefore submission, scoped to the reported issue. Its findings go into--steps,--expectedand--actual. It proposes no project-environment fixes. The post-command Report branch is unchanged.- Covers: OUT-005
- Architecture: AC-016, FLOW-004
-
AC-017:
requirements-phaserunscreate-planafter a written or provider-absent Write Backlog result. It stops without a plan on a blocked result. Its final result names the retainedARCHITECTURE.md,SPEC.md, Write Backlog result andPLAN.md.- Covers: OUT-006
- Architecture: AC-017, FLOW-003-STEP-001, FLOW-003-STEP-002, FLOW-003-STEP-003
-
AC-018:
create-plancommits and pushesPLAN.mdand verifies its immutable blob URL before it returns.requirements-phaseverifies that URL.- Covers: OUT-006
- Architecture: AC-018, FLOW-003-STEP-004
-
AC-019:
delivery-phasehas nophases/plan.mdand no plan-creation route. A missing or stale plan routes throughphases/spec.mdtorequirements-phase.artifact-state.mdPlan Complete requires a retained plan.- Covers: OUT-006
- Architecture: AC-019, FLOW-003-STEP-005, DEC-007
-
AC-020:
implement-specroutes a missing or invalid plan torequirements-phase. Its execution-only amendment fromarchitecture-conformance.mdstill callscreate-plandirectly.- Covers: OUT-006
- Architecture: AC-020, FLOW-003-STEP-005, FLOW-003-STEP-006
-
AC-021: These files state "at most one pull request per Touched Repository, split or stacked only when the user explicitly asks":
create-spec(readiness and template Branch/Base Intent);create-plan(task graph and plan schema);implement-spec(SKILL.md and lifecycle);delivery-phase;- ask-hi
delivery.md.
No file still says "exactly one pull request" for a delivery run.
- Covers: OUT-007
- Architecture: AC-021, DEC-008
-
AC-022:
brainstormstates that it creates no branch, commit or worktree, starts no implementation agent, and that implementation starts only on the user's explicit go. Its Exits section keeps exactly two exits.- Covers: OUT-008
- Architecture: AC-022, DEC-008
-
AC-023: For a required devDependency already declared as
latest,next,*,xor an empty string,hi updateemits adependency-range-unreproduciblerow whose detail names the package, the range and the catalog seed.package.jsonis unchanged.- Covers: OUT-009
- Architecture: AC-023, FLOW-005-STEP-001, DEC-005
-
AC-024: A semver range such as
^1.86.0produces nodependency-range-unreproduciblerow.- Covers: OUT-009
- Architecture: AC-024, DEC-005
-
AC-025:
hi check --jsonlists each Non-reproducible Range independencyFindings. Itsstatusis the same as without the finding.- Covers: OUT-009
- Architecture: AC-025, FLOW-005-STEP-002, DEC-005
-
AC-026: The Commit Gate seeds
lefthook2.2.2 from one constant. The managedlefthook.ymlcontainsno_auto_install: true,lefthook: node_modules/.bin/lefthookandassert_lefthook_installed: true.- Covers: OUT-010
- Architecture: AC-026, FLOW-002-STEP-001, DEC-006
-
AC-027: In a worktree without
node_modules, a commit through the Managed Hook Script exits non-zero and names the missing lefthook.- Covers: OUT-010
- Architecture: AC-027, FLOW-002-STEP-004
-
AC-028:
bun installrun in one worktree of an activated repository leaves.githooks/pre-commitunchanged. It writes no.githooks/pre-commit.oldand no absolute worktree path into any hook.- Covers: OUT-010
- Architecture: AC-028, FLOW-002-STEP-001
-
AC-029:
activate-git-hooks.mjsbehaves as follows:- sets
core.hooksPathto.githookswhen it is unset and installed lefthook is 2.1.14 or later; - leaves a different existing value unchanged;
- leaves the configuration unchanged when lefthook is older.
- Covers: OUT-010
- Architecture: AC-029, FLOW-002-STEP-002, FLOW-002-STEP-003
- sets
-
AC-030:
hi init/hi updateadd rootscripts.prepareonly when the project has none. With an existingprepare,hi updatekeeps it and reports the exact command to append. Both run the activation script once.- Covers: OUT-010
- Architecture: AC-030, FLOW-002-STEP-002, FLOW-002-STEP-003
-
AC-031:
hi commit-gate verifypasses for an activated repository whose Managed Hook Script digest matches. It reports the gate as inactive whencore.hooksPathis unset. A differentcore.hooksPathstill counts as another hook manager.- Covers: OUT-010
- Architecture: AC-031, DEC-006
-
AC-032: Commit Gate Opt-Out removes
.githooks/pre-commit. It unsetscore.hooksPathonly when its value is.githooks. A pre-existing.git/hooks/pre-commitis reported and not deleted.- Covers: OUT-010
- Architecture: AC-032, FLOW-002
-
AC-033: The ask-hi references
baseline.md,discovery-and-docs.md,delivery.md,phase-graph.mdandrequirements.mddescribe these:- the
optionalcategory and thevideoPack; retroinmisc;- the removed and re-pinned frontend skills;
- the plan move;
- the PR rule and the brainstorm rule.
- Covers: OUT-011
- Architecture: AC-033, DEC-008
- the
-
AC-034:
@punks/cliis 6.3.0.CHANGELOG.mdhas 6.3.0 notes.BASELINE_CHANGELOG.mdhas non-empty notes and Compatibility>=6.3.0 <7.0.0.apps/cli/scripts/sync-skills-repo.mjspins the skills commit that contains every skills change.- Covers: OUT-012
- Architecture: AC-034, ARC-011
Constraints
- Skills are edited only in
/home/stefan/repos/skillsonmain, then synced withbun run sync:skills. Do not hand-editapps/cli/skills/*or.agents/skills/*(root guidance). - A skill must be synced before a catalog entry references it
(
publisher/sources/skills.ts:118). hi updatenever rewrites an existing devDependency (#248).- HI never overrides a
core.hooksPaththat a project set to another directory. - Existing tests change only where these edits break them. No new provenance test (Q54, Q55).
Dependency Readiness
No Stack Required.
Branch/Base Intent
- harness-intelligence: one branch,
spec/baseline-video-retro-plan-move, based onmainat906e72726, and one pull request intomain(Q16, Q41). - wearedevpunks/skills: commits go to
maindirectly. Root guidance allows only that checked-outmainfor shared skills, so this repository has no pull request.
Architecture Source
- URL: https://github.com/wearedevpunks/harness-intelligence/blob/f13fbba1b97f15756d52851827a609433554b650/apps/wiki/content/docs/project/specs/cli/baseline-video-retro-plan-move/ARCHITECTURE.md
- Path:
apps/wiki/content/docs/project/specs/cli/baseline-video-retro-plan-move/ARCHITECTURE.md - Commit:
f13fbba1b97f15756d52851827a609433554b650
Accepted Technical Decisions
- Pack category
optionalinpackages/scaffold/src/catalog/identity.ts:PackCategorySchemaandapps/cli/src/registry/model.ts:PackCategory. One predicate inregistry/shape.ts:detectedPacks(Q44, DEC-001). - Tool entries carry
kind:npm-global,uvorcheck-only. The new ids areearshot,uv,ffmpeg,ffprobe,python3(3.11) andnode(22). Provider CLIs use the check-only path (Q45, DEC-002). apps/cli/src/integrations/uv-tool.tsexportsreadUvToolRevandinstallUvTooloverToolCommandRuntime. The receipt[tool].requirements[].gitrevis the installed-pin authority (Q46, DEC-003).- Video skills sit at
skills/agnostic/video/<id>with tieragnostic. The PackpromptSurfacesis["root-prompt-spec"]. The publisher checksrequiresToolsids (Q47, DEC-004). isReproducibleRangeandUpdateActiondependency-range-unreproduciblelive inregistry/dependencies.ts.CheckResult.dependencyFindingsis the advisory field (Q49, DEC-005).lefthookVersion = "2.2.2"is the single source. The Copied files are.githooks/pre-commitand.agents/scripts/activate-git-hooks.mjs. A digest check runs inplatform/commit-gate-capabilities.ts, and the hint is incli/lifecycle.ts:229-235(Q50-Q52, DEC-006).- Planning file moves: Q53, DEC-007. Rule placement: Q56-Q58, DEC-008.
Accepted Testing Decisions
-
Unit tests cover:
isReproducibleRange;- the
detectedPacksexclusion ofoptional; - uv receipt parsing and reinstall decisions;
- Check-only version failures.
They run through the existing test files (
shape.test.ts,tool-management.test.ts,dependenciestests,check.test.ts). -
Fixtures pin catalog shapes:
packages/scaffold/src/public-scaffold-contract.test.tsandpublisher/build.test.ts. They are updated foroptionaland the new tool shape. -
Skills-repository tests are updated only where edits break them:
emil-kowalski-animation-provenance: brandkit removed, two skills retired;design-phase-graph;wayfinder-lifecycle: plan.md paths go tophases/spec.md;brainstorm: the Exits sentence.
-
Hook activation is proven in a disposable repository with worktrees. The proof shows that
bun installin a worktree, a commit withoutnode_modules, and activation idempotency behave as AC-027 to AC-029 state.
Verification Seams
- CLI commands:
hi init,hi update --json,hi check --json,hi tools ensure,hi commit-gate verify. - The uv receipt file
$UV_TOOL_DIR/earshot/uv-receipt.toml. - Git state:
git config core.hooksPath,.githooks/pre-commitbytes, and the commit exit code. - Skill text and file presence in the skills repository and in
apps/cli/skillsafter sync.
Decision Log
| Decision | Evidence | Rationale |
|---|---|---|
| Optional Pack category | Q6, Q44 | User: "ok this can be optional pack" |
| uv tool kind for earshot | Q7, Q10, Q27 | User: "i want this"; uv prototype proven |
| Check-only tools, no Chromium | Q8, Q9, Q33 | User accepted the defaults |
retro disable-model-invocation: false | Q11, Q42 | User: "set to false" |
| Plan after Write Backlog | Q13, Q14 | User: "yeah no plan step in delivery" |
| No new provenance test | Q55 | User: "we dont put a fucking test for this" |
| Managed Hook Script + Hook Activation | Q22, Q30-Q32, Q50-Q52 | lefthook 2.1.10 install -f overwrote the committed hook (F3) |
| Advisory range finding | Q20, Q29, Q49 | #248 project-owned versions |