Harness Intelligence Wiki
SpecsCLIBaseline Video, Retro and Plan Move

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 video Pack for code-made films.
  • retro-backed hi report evidence.
  • 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 hi commands 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 latest ranges or refreshing its bun.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-frontend in the skills repository is byte-identical to Leonxlnx/taste-skill skills/taste-skill at 6010f91a9935f1c167dfc500fb1a475681892e6b (v2.1.4). It has an UPSTREAM.md, whose only local edit is the directory rename, and the upstream LICENSE.

    • Covers: OUT-001
    • Architecture: AC-001, ARC-002
  • AC-002: redesign-existing-projects and full-output-enforcement are absent from the skills repository, the HI skill catalog, the frontend Pack, design-phase, ask-hi and the HI wiki skill pages.

    • Covers: OUT-001
    • Architecture: AC-002, ARC-002, DEC-008
  • AC-003: design-phase variant-round.md activates design-taste-frontend on every variant. It passes the intake intent improve-existing to 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-frontend as "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-web and imagegen-frontend-mobile each have an UPSTREAM.md that names Leonxlnx/imagegen-skills at beb16b0d0f4dae9a6f5cb04ea41e97b93a54ab8e, and the upstream LICENSE.

    • Covers: OUT-002
    • Architecture: AC-005, ARC-002
  • AC-006: The Pack category schema accepts optional. The video Pack has category optional and members cinetic, earshot and real-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 update adoption of newly detected Packs;
    • hi diff unselected-detected reporting.
    • Covers: OUT-003
    • Architecture: AC-007, FLOW-001-STEP-002, DEC-001
  • AC-008: Selecting video through the hi init prompt or settings.packs installs 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 an UPSTREAM.md and a LICENSE. cinetic is pinned to ecfa6605de1adb9345ce937724810dc32267d068; earshot and real-sound are pinned to 925ebe56a1b755e5d354ab642bb8f344440cfa9c.

    • Covers: OUT-003
    • Architecture: AC-009, ARC-003, DEC-004
  • AC-010: With earshot absent, hi tools ensure runs uv 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 rev equals the pin, hi tools ensure does not run uv tool install. When it differs, hi tools ensure reinstalls at the pin.

    • Covers: OUT-004
    • Architecture: AC-011, FLOW-001-STEP-005, DEC-003
  • AC-012: hi tools ensure fails with a message that names the tool, the minimum version and the found version in two cases: when python3 is below 3.11, and when node is below 22. A missing Check-only Tool fails as not available. HI never installs uv, ffmpeg, ffprobe, python3 or node.

    • Covers: OUT-004
    • Architecture: AC-012, FLOW-001-STEP-004, DEC-002, DEC-003
  • AC-013: The video skills declare these requiresTools:

    • earshot and real-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 video and running hi update leaves the earshot uv tool installed.

    • Covers: OUT-004
    • Architecture: AC-014, FLOW-001
  • AC-015: The skills repository has skills/misc/retro at mattpocock/skills 5beb35b040e3de97e54fa9e386d7e42d15c295c2, with disable-model-invocation: false and no agents/openai.yaml. Its UPSTREAM.md records both as local edits. The misc Pack includes retro.

    • Covers: OUT-005
    • Architecture: AC-015, ARC-004
  • AC-016: The hi-cli hi report guidance requires activating retro before submission, scoped to the reported issue. Its findings go into --steps, --expected and --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-phase runs create-plan after a written or provider-absent Write Backlog result. It stops without a plan on a blocked result. Its final result names the retained ARCHITECTURE.md, SPEC.md, Write Backlog result and PLAN.md.

    • Covers: OUT-006
    • Architecture: AC-017, FLOW-003-STEP-001, FLOW-003-STEP-002, FLOW-003-STEP-003
  • AC-018: create-plan commits and pushes PLAN.md and verifies its immutable blob URL before it returns. requirements-phase verifies that URL.

    • Covers: OUT-006
    • Architecture: AC-018, FLOW-003-STEP-004
  • AC-019: delivery-phase has no phases/plan.md and no plan-creation route. A missing or stale plan routes through phases/spec.md to requirements-phase. artifact-state.md Plan Complete requires a retained plan.

    • Covers: OUT-006
    • Architecture: AC-019, FLOW-003-STEP-005, DEC-007
  • AC-020: implement-spec routes a missing or invalid plan to requirements-phase. Its execution-only amendment from architecture-conformance.md still calls create-plan directly.

    • 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: brainstorm states 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, *, x or an empty string, hi update emits a dependency-range-unreproducible row whose detail names the package, the range and the catalog seed. package.json is unchanged.

    • Covers: OUT-009
    • Architecture: AC-023, FLOW-005-STEP-001, DEC-005
  • AC-024: A semver range such as ^1.86.0 produces no dependency-range-unreproducible row.

    • Covers: OUT-009
    • Architecture: AC-024, DEC-005
  • AC-025: hi check --json lists each Non-reproducible Range in dependencyFindings. Its status is the same as without the finding.

    • Covers: OUT-009
    • Architecture: AC-025, FLOW-005-STEP-002, DEC-005
  • AC-026: The Commit Gate seeds lefthook 2.2.2 from one constant. The managed lefthook.yml contains no_auto_install: true, lefthook: node_modules/.bin/lefthook and assert_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 install run in one worktree of an activated repository leaves .githooks/pre-commit unchanged. It writes no .githooks/pre-commit.old and no absolute worktree path into any hook.

    • Covers: OUT-010
    • Architecture: AC-028, FLOW-002-STEP-001
  • AC-029: activate-git-hooks.mjs behaves as follows:

    • sets core.hooksPath to .githooks when 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
  • AC-030: hi init/hi update add root scripts.prepare only when the project has none. With an existing prepare, hi update keeps 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 verify passes for an activated repository whose Managed Hook Script digest matches. It reports the gate as inactive when core.hooksPath is unset. A different core.hooksPath still counts as another hook manager.

    • Covers: OUT-010
    • Architecture: AC-031, DEC-006
  • AC-032: Commit Gate Opt-Out removes .githooks/pre-commit. It unsets core.hooksPath only when its value is .githooks. A pre-existing .git/hooks/pre-commit is 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.md and requirements.md describe these:

    • the optional category and the video Pack;
    • retro in misc;
    • 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
  • AC-034: @punks/cli is 6.3.0. CHANGELOG.md has 6.3.0 notes. BASELINE_CHANGELOG.md has non-empty notes and Compatibility >=6.3.0 <7.0.0. apps/cli/scripts/sync-skills-repo.mjs pins 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/skills on main, then synced with bun run sync:skills. Do not hand-edit apps/cli/skills/* or .agents/skills/* (root guidance).
  • A skill must be synced before a catalog entry references it (publisher/sources/skills.ts:118).
  • hi update never rewrites an existing devDependency (#248).
  • HI never overrides a core.hooksPath that 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 on main at 906e72726, and one pull request into main (Q16, Q41).
  • wearedevpunks/skills: commits go to main directly. Root guidance allows only that checked-out main for shared skills, so this repository has no pull request.

Architecture Source

Accepted Technical Decisions

  • Pack category optional in packages/scaffold/src/catalog/identity.ts:PackCategorySchema and apps/cli/src/registry/model.ts:PackCategory. One predicate in registry/shape.ts:detectedPacks (Q44, DEC-001).
  • Tool entries carry kind: npm-global, uv or check-only. The new ids are earshot, uv, ffmpeg, ffprobe, python3 (3.11) and node (22). Provider CLIs use the check-only path (Q45, DEC-002).
  • apps/cli/src/integrations/uv-tool.ts exports readUvToolRev and installUvTool over ToolCommandRuntime. The receipt [tool].requirements[].git rev is the installed-pin authority (Q46, DEC-003).
  • Video skills sit at skills/agnostic/video/<id> with tier agnostic. The Pack promptSurfaces is ["root-prompt-spec"]. The publisher checks requiresTools ids (Q47, DEC-004).
  • isReproducibleRange and UpdateAction dependency-range-unreproducible live in registry/dependencies.ts. CheckResult.dependencyFindings is the advisory field (Q49, DEC-005).
  • lefthookVersion = "2.2.2" is the single source. The Copied files are .githooks/pre-commit and .agents/scripts/activate-git-hooks.mjs. A digest check runs in platform/commit-gate-capabilities.ts, and the hint is in cli/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 detectedPacks exclusion of optional;
    • uv receipt parsing and reinstall decisions;
    • Check-only version failures.

    They run through the existing test files (shape.test.ts, tool-management.test.ts, dependencies tests, check.test.ts).

  • Fixtures pin catalog shapes: packages/scaffold/src/public-scaffold-contract.test.ts and publisher/build.test.ts. They are updated for optional and 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 to phases/spec.md;
    • brainstorm: the Exits sentence.
  • Hook activation is proven in a disposable repository with worktrees. The proof shows that bun install in a worktree, a commit without node_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-commit bytes, and the commit exit code.
  • Skill text and file presence in the skills repository and in apps/cli/skills after sync.

Decision Log

DecisionEvidenceRationale
Optional Pack categoryQ6, Q44User: "ok this can be optional pack"
uv tool kind for earshotQ7, Q10, Q27User: "i want this"; uv prototype proven
Check-only tools, no ChromiumQ8, Q9, Q33User accepted the defaults
retro disable-model-invocation: falseQ11, Q42User: "set to false"
Plan after Write BacklogQ13, Q14User: "yeah no plan step in delivery"
No new provenance testQ55User: "we dont put a fucking test for this"
Managed Hook Script + Hook ActivationQ22, Q30-Q32, Q50-Q52lefthook 2.1.10 install -f overwrote the committed hook (F3)
Advisory range findingQ20, Q29, Q49#248 project-owned versions

On this page