Harness Intelligence Wiki
SpecsCLIHuman Backlog

Plan: Human Backlog

Execution Plan: Human Backlog

Context Pointers

AliasSourceExact identityFreshness rule
SPECSPEC.md blobcommit 72c46e6137065eb11cc36514d97e6ab02c5920ff; git blob c7df796b285a171716854ab729a324c5eaf94152; sha256 7ea8719ebddc217657631abc4edb9ef04d1b4391c65c7362f8c484295b81a686A byte change invalidates every task proof that cites a SPEC# selector; a requirement change returns to Requirements Phase
ARCHARCHITECTURE.md blobcommit 41368d2660f27b299ba62bf45f76fe6e12512b47; git blob 2c48097c9284ce97df82e93edf876558f0f7a695 (equals SPEC#architecture-source); sha256 e04d26db3f88d64fc118264f4e047e26328953e126307393212c9183800651ffSame
MODELapps/wiki/content/docs/project/specs/cli/human-backlog/models/human-state.proof.tsgit blob a5dd8e5fc00d2f175fad46f456711eb38595b3fb; sha256 edd67b47…4d51f1; 153 distinct states with tsprover@0.0.2Draft Model; T3 moves a copy to ci-app (D9)
STATUSapps/wiki/content/docs/project/grilling/human-backlog-pack-grill-status.mdgit blob aac707a2f85292e8533128dd05f4f80d49a23af9Closed grill (closed R6)
LOGapps/wiki/content/docs/project/grilling/human-backlog-pack-grill-log.md (#q1–#q48, #glossary-q49, #closure)git blob 25562f670fd2947898a6e20dc34f4d548c07bdbeSame
GLOSSARYapps/wiki/content/docs/project/domains/human-backlog-pack-glossary.mdxgit blob bf6b170ae82b72be3e4b70fb7c802aa25dc6604aCanonical terms: Core Backlog, Human Backlog, Business Request, Human State, Human Backlog skills, Human Backlog Config, Human Backlog Provider, Setup Human Backlog, Eject, Fog
ZIPGiovanni's skills zip /home/stefan/.t3/userdata/attachments/8a7f9c32-fce0-4c02-86da-000618b3db31-8c88ffb7-344c-4dde-a28c-06d2a61fbd22-zip.zipsha256 a723a4f7544ad28167711d0b43b233e3bc3be01230a8628be2ce36674d161883Untrusted archive: extract into a new empty directory; run its Python only with python3 -I
HI_BASEwearedevpunks/harness-intelligence main886966be721e65c0d48d33c22046234af6f2e847; branch team/stefan/backlog-for-humans-skill-pack at 72c46e613 (pushed)Base for release:classify and the one HI PR
CIAPP_BASEcollective-intelligence-platform/ci-app origin/maince07167e8f when discovery read it (5b906d6ed5 at review time; it moves often)Branch team/stefan/human-backlog-package from the current origin/main at W1 start (D6). T6 re-reads ci.yml, release-npm-packages.yml and npm_release.py at the PR base before it pushes
SKILLS_BASEwearedevpunks/skills main0da31e06bcd215187b54923accbfb44e40bea141 (local main = origin/main); HI sync pin refs/tags/sync/property-testing-delivery-0da31e06bcd2Base for T5 RED

Selectors: SPEC#out-NNN, SPEC#ac-NNN, SPEC#spec-invariants, ARCH#arc-NNN, ARCH#flow-NNN, ARCH#flow-NNN-step-NNN, ARCH#models, ARCH#modules-and-interfaces, LOG#qN. Workers read each selector at its source. This plan copies no accepted decision except bounded excerpts that name their selector.

Architecture/SPEC Pair Complete gate (installed delivery-phase references/artifact-state.md): pass.

  • Both artifacts have status: compiled and readiness: agent-ready.
  • Both commits are on origin/team/stefan/backlog-for-humans-skill-pack.
  • SPEC#architecture-source names the ARCH commit and blob, and the ARCH blob at HEAD is the same.
  • ARCH#spec-traceability is complete and maps OUT-001..OUT-010 and AC-001..AC-032.
  • The STATUS, LOG and GLOSSARY blobs match the source identities that SPEC#architecture-source records.

Task Identity and Backlog Sync

  • task_identity_mode: provider-task for every task. relation_mode: native. backlog_sync_skip_reason is blank.
  • write-backlog projected the SPEC into Linear (linear-devpunks). Planning read back every Task on 2026-10-30. It made no provider mutation.
  • Hierarchy: Initiative IP-546 "Client Visibility of Business Request Status" → Epic IP-547 "Human Backlog" → Stories IP-548, IP-549, IP-550, IP-551. Milestone for every Task: V4.10 Human Backlog (1c18bfca-9278-4d7f-80c9-9155d7e67cfa).
AliasProvider TaskParent StoryNative blockedByStatus at readback
T1IP-552IP-548noneBacklog
T2IP-553IP-549noneBacklog
T3IP-554IP-548IP-552Backlog
T4IP-555IP-549IP-552Backlog
T5IP-557IP-551IP-554Backlog
T6IP-556IP-550IP-554, IP-555Backlog
T7IP-558IP-550IP-556Backlog

depends_on mirrors these six native edges exactly. Two order rules are write-scope constraints, not provider edges: T3 before T4 (D7), and T7 after the T2 and T5 Task Gates (D17).

Architecture Applicability

architecture_applicability: architecture-bearing. Evidence:

  • Seven Tasks under four Stories change one capability cumulatively, across three repositories.
  • New owners: a ci-app public package (ARCH#arc-002), the ado.py public CLI seam (ARCH#arc-003), a settings key (ARCH#arc-005), and a write-backlog branch (ARCH#arc-006).
  • New cross-owner edges: npm tarball → HI sync → ci-solutions Pack; write-backlog → ado.py by installed path.

backend-domain-structure and frontend-domain-structure do not apply. The owners are a Python CLI, Markdown skills, CLI catalog data, an Effect Schema and a Node sync script. None is a backend service or a frontend. The convergence views below come from ARCH#whole-system, ARCH#modules-and-interfaces and ARCH#flow-004.

Initial Situation

  • HI branch team/stefan/backlog-for-humans-skill-pack is clean and pushed. It carries the grill, glossary, ARCH, SPEC and MODEL.
  • HI CLI version: apps/cli/package.json 6.6.1. CHANGELOG.md has an empty ## Unreleased. BASELINE_CHANGELOG.md ## Unreleased holds the model-checking entry (Compatibility >=6.3.0 <7.0.0).
  • apps/cli/src/data/catalog/package-skills.ts has one source (collectiveIntelligenceLintSkills, pin 0.1.24). scripts/sync-package-skills.mjs takes one source. Tests: apps/cli/src/scripts/sync-package-skills.test.ts.
  • apps/cli/src/registry/settings.ts:20 SettingsDocument has no humanBacklog. check.ts:101 decodeCheckSettings. Tests: settings.test.ts, check.test.ts.
  • apps/cli/src/data/catalog/tools.ts:114 already has python3. It has no az entry.
  • The ci-app public packages are under packages/public/* and have no backlog. packages/public/lint is the precedent for a package that ships skills: files includes skills, and it has AGENTS.md, a CLAUDE.md mirror and CHANGELOG.md.
  • ci-app CI (.github/workflows/ci.yml:514) runs bun run --cwd <dir> test:pack for every packages/public/*/. A package without test:pack fails that job.
  • ci-app release (.github/workflows/release-npm-packages.yml): workflow_dispatch inputs bump, version and stage. stage is "required for new packages": it stages the publish for a maintainer's npm 2FA approval and uses NPM_BOOTSTRAP_TOKEN.
  • The local ci-app checkout /home/stefan/repos/collective-intelligence is on main at bdb8ff860e, behind origin/main, and has untracked .agents/skills/[DEPRECATED] * folders. Do not use it as a work tree (D6).
  • Skills repo /home/stefan/repos/skills: on main at SKILLS_BASE. It is clean except the pre-existing untracked tests/fixtures/v43/IP-453/. Never stage that folder.
  • ZIP holds skills/{create-business-request,analyze-business-request,update-business-request,plan-sprint,create-bug}/ (each SKILL.md plus references/), skills/_shared/scripts/ado.py, and skills/_shared/tests/test_{br_revision,ratings,sprint_planning,bug_intake}.py (72 tests). It also has __MACOSX/ and .DS_Store noise.
  • The Emera repos do not hold Giovanni's skills or ado.py. ZIP is the only source.

Problem and Solution Shape

  • Problem: SPEC#context.
  • Solution: SPEC#out-001..SPEC#out-010, with the structure in ARCH#whole-system.
  • Delivery order (follows ARCH#flow-004):
    1. Build the ci-app package: port (T1), then lifecycle and set-state (T3), then setup, doctor and Eject (T4).
    2. In parallel: the HI setting (T2) and the write-backlog branch (T5).
    3. Publish the package (T6).
    4. HI pins the published version, syncs it into ci-solutions, and releases (T7).

Dependency Readiness

Ready (copied from SPEC#dependency-readiness). Re-verified at plan time:

  • 886966be7 is HI origin/main.
  • npm_release.py glob and staged publish are present on ci-app origin/main ce07167e8f.
  • Effect Schema.isPattern / Schema.isUUID: unchanged pin.

Branch/Base Intent

Copied from SPEC#branch-base-intent, with the ci-app branch chosen (D6):

  • HI: branch team/stefan/backlog-for-humans-skill-pack from 886966be7. T2, T5 (HI part) and T7 write here. One PR.
  • Skills repo: the checked-out main only. T5 commits and pushes there and tags it; then bun run sync:skills in HI.
  • ci-app: branch team/stefan/human-backlog-package from origin/main, in a new dedicated worktree. T1, T3, T4 and T6 write here. One PR.

No stacked PRs. depends_on edges are delivery blockers only.

Resolved Decision Ledger

IdDecisionResolutionEvidence
D1Task identityprovider-task, native; Tn aliases abovereferences/backlog-sync.md; Linear readback 2026-10-30
D2Applicabilityarchitecture-bearingSection above
D3 (P1)HI release kindMixed: apps/cli/package.json 6.6.1 → 6.7.0 with a CHANGELOG.md ## 6.7.0 section, plus BASELINE_CHANGELOG.md ## Unreleased entriesUser: "yes". The new settings key and sync loop ship in the CLI (minor: a new feature); the seven skills and the write-backlog change ship in the Baseline
D4 (P2)Joint review with GiovanniDoes not gate the first publish. The review stays parked (owner Stefan with Giovanni). Its outcomes ship as a later package releaseUser: "no" to the gate. SPEC#parked-decisions row 2 keeps its owner; only its resume trigger stops gating T6
D5 (P3)Emera Azure DevOps process migrationOutside this plan. It is a manual operation after the joint review, done from setup-human-backlog/references/process.mdUser: "agree, will see later"
D6ci-app branch and checkoutteam/stefan/human-backlog-package from origin/main. The delivery parent creates one dedicated ci-app worktree before W1; workers never use /home/stefan/repos/collective-intelligence itselfSPEC#branch-base-intent leaves the choice to the plan; ci-app branch convention team/stefan/<slug>; the local checkout is stale and dirty
D7T3 and T4 both edit ado.pyT3 first, then T4. Both are unblocked after T1, but they share skills/human-backlog-ado/scripts/ado.py, skills/human-backlog-ado/SKILL.md, tests/test_skill_text.py and CHANGELOG.md. T3 is on the longest chain (T3 → T5, T3 → T6 → T7)ARCH#arc-003: ado.py is one file (LOG#q45); capacity priority rule in references/plan-schema.md
D8First package version and release runRelease dispatch bump: minor, stage: true → 0.1.0. T7 pins the version that npm view reads back. The merge itself starts a non-staged push run on main that fails for the new package; this failure is expected. Before the dispatch, T6 runs the read-only npm_release.py plan on the merged main SHA and shows the user every selected package and version as part of the D15 go; the dispatch has no package filternpm_release.py:122 bumps from 0.0.0 for a new package; stage is required for new packages; release-npm-packages.yml on: push for packages/public/** and bun.lock; command_publish checks every package before it publishes any (plan review finding 1)
D9Model commit and CIT3 copies MODEL to ci-app packages/public/backlog/models/human-state.proof.ts, outside files, so it does not ship. T3 adds devDependency "tsprover": "0.0.2", script "check:models": "tsprover", and a tsconfig.json that type-checks models/*.ts with a type-check script (lint package pattern). test:pack runs check:models, so the existing CI pack-test loop runs it. Do not edit the ci-app workflowmodel-checking Commit and CI; ci.yml:514 loop; AC-023 (no extra tarball entries)
D10Stateful property toolingPython stdlib only. The INV-001 property enumerates every command sequence up to length 4 over all eight Human States plus one unknown name, from every start state, against the in-memory fake. Bounded and exhaustive; no Hypothesisci-app CI installs no Python packages; tdd/properties.md generator rules (full declared shape; bounding is not narrowing)
D11test:pack on the branch before T6T1 sets "test:pack": "bun run test" so ci-app CI stays green on intermediate pushes. T6 replaces it with the tarball check, then test, then check:modelsci.yml:514 fails a package without test:pack
D12Skills repo custodyWorkers never commit, push or stash in /home/stefan/repos/skills. The parent commits T5 paths with pathspecs as author simosabba, pushes main, and tags sync/human-backlog-<sha12>Root CLAUDE.md shared-skills rule; memory "skills sync release flow"
D13HI .agents/skillsNot edited. sync:skills and sync:package-skills write apps/cli/skills/** only; installed copies arrive through hi updateRoot CLAUDE.md: no hand edits of .agents/skills/*; precedent brainstorm-grill-altitude D13
D14Port sourceZIP only. Skip __MACOSX/ and .DS_Store. Map _shared/scripts/ado.py → skills/human-backlog-ado/scripts/ado.py and _shared/tests/* → tests/; the tests import ado from ../skills/human-backlog-ado/scriptsARCH#modules-and-interfaces; Initial Situation
D15Outward actionsT5 pushes skills main; T6 opens and merges the ci-app PR and dispatches the staged release; T7 opens the HI PR. The executor asks the user for an explicit go before each push, merge or dispatch. npm 2FA approval of the staged publish is a maintainer actionHarness rule on outward-facing actions; stage needs maintainer 2FA
D17T7 order after T2 and T5T7 starts only after the T2 and T5 Task Gates. T7 moves T2's CHANGELOG.md bullet into ## 6.7.0, writes after T5 in BASELINE_CHANGELOG.md, the runbook and skill-graph.mdx, and its release:classify and HI PR include T5's syncShared files; plan review finding 2
D18Baseline compatibility lineStays >=6.3.0 <7.0.0. Older CLIs ignore the optional humanBacklog key (excess keys are ignored, as T2's RED shows), and the seven skills use existing catalog fields (requiresTools, framework) and the existing python3 toolBASELINE_CHANGELOG.md:5; T2 expected_red_failure; tools.ts:114
D16Pin quotes in docsT5 updates the sync pin quotes in apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md and apps/wiki/content/docs/harness/skills-and-packs/skill-graph.mdx. History in BASELINE_CHANGELOG.md, apps/wiki/log.md and earlier IMPLEMENTATION-NOTES.md staysgrep -rln 0da31e06bcd2 at plan time

Assumptions and Constraints

  • Constraints: SPEC#constraints. Fixed Human State names, no mapping layer; HI requires no provider tool; write-backlog stays the only Core Backlog writer; sprints are two working weeks.
  • Skill files are English. Saved content uses the user's language (LOG#q6, LOG#q22).
  • Every skill and prompt edit loads and applies writing-for-agents (user rule). This includes the ported skills, human-backlog-ado/SKILL.md, setup-human-backlog, write-backlog and the package AGENTS.md.
  • No test creates a live Azure DevOps work item (SPEC#verification-seams).
  • Machine policy /AGENTS.md: run heavy jobs (bun install, full CLI tests, registry:build) under systemd-run --user --scope --slice=agent-work.slice … nice -n 10. Remove every temp directory and the ZIP extraction in the same task.
  • Lefthook: if a hook rewrites .githooks/pre-commit or creates .githooks/pre-commit.old, restore them. If the pre-commit hook fails on lint in packages the task did not touch, prove the failure on a clean origin/main worktree and record it before any --no-verify.
  • CLI tests: write new Vitest cases in the (): PromiseLike<void> => Effect.runPromise(Effect.gen(...)) form, with no new async functions and no top-level node:* imports (CI changed-line lint).
  • Use a disk TMPDIR for full CLI tests. Run bun run build before build-dist/release-publication tests, then delete apps/cli/dist.

Codebase Findings

  • package-skills.ts exports collectiveIntelligenceLintSkills and packageSkillSourceDirectory. The sync script imports the lint source directly (sync-package-skills.mjs:26-29) and defaults source to it (:60). The receipt is one object today.

  • packs.ts ci-solutions has trigger packages but no detection technology. The 6.6.1 fix installs lint devDependencies for such Packs. The detection test is src/registry/shape.test.ts:363-391. Membership tests are src/registry/publisher/sources/{skills,packs}.test.ts.

  • ci-solution-structure appears in wiki pages harness/skills-and-packs/{skill-reference,skill-packs,skill-graph,skill-model}.mdx and in runbook hi-cli-scaffolding.md:655. T7 adds the seven skills where the ci-solutions membership is listed.

  • Skills repo tests: node --test tests/*.test.mjs, with nine write-backlog* and backlog contract files. write-backlog/SKILL.md step 9 is "Write only the validated delta…" (SKILL.md:61).

  • ci-app rule registry (.agents/rules/index.md): package-boundaries (packages/**), root-operational-docs (repository-wide), root-enum-values (packages/**; applies to the Human State names). docs-durable-docs and wiki-knowledge-contract: not applicable (no docs/** or apps/wiki/** edit).

  • HI Codebase Rule Registry activation:

    • HI-CLI-001, HI-CLI-003: T2, T5 (scripts), T7.
    • HI-CLI-002, HI-REPO-005: T2, T7 (changelogs, version).
    • HI-CLI-004: T7 (src/data/**).
    • HI-REPO-004: T5, T7 (apps/cli/skills/**, skills.ts).
    • HI-REPO-003: T2, T5, T7 (runbooks).
    • HI-WIKI-001, HI-WIKI-003, HI-DOCS-001: T2, T5, T7 and plan bookkeeping.
    • HI-UI-001: not applicable (wiki content only, no runtime change).
    • HI-REPO-002: T7 (it edits apps/cli/src/registry/publisher/sources/{skills,packs}.test.ts; no publisher source change).

    Each executor records pass, fail or not-applicable with evidence in its task log.

Wiki Context

Discovery: apps/wiki/content/docs/project/index.mdx cues (Specs, Grilling, Domains, Runbooks). Searches: package-skills, ci-solutions, ci-solution-structure, settings.json, 0da31e06bcd2.

Knowledge used

PageSelected byClaims usedFreshnessStatus / evidence
Grill status, grill logGrilling cueQ1–Q48, Glossary Q49, closurefreshAccepted decisions. Blobs match SPEC#architecture-source
Human Backlog GlossaryDomains cueCanonical terms and axiomsfreshAccepted. Blob matches
CLI scaffolding runbook, line 34 (settings table) and lines 653–655 (skill sync, package skills)search settings.json, package-skillsSettings keys; the sync:package-skills procedure, receipt and tarball override; the skills sync pinfresh. Line 34 becomes stale at T2; lines 653–655 at T5 and T7Verified implementation against settings.ts, sync-package-skills.mjs and sync-skills-repo.mjs:23-24
Skill packs, Skill reference, Skill graph, Skill modelsearch ci-solution-structureci-solutions membership; skill-sync pin quote (graph)fresh. They become stale at T5 (pin) and T7 (membership)Verified against packs.ts, skills.ts

Stale or contradictory claims

  • None at plan time. The Linear body of IP-556 still says the Giovanni review comes before the first publish. That body conflicts with D4 and is reported to the user. Planning makes no provider mutation.

Returned findings

  • Knowledge no-op for docs-ingest-phase. Every claim used matches primary evidence. The wiki edits that this delivery causes are inside T2, T5 and T7.

External Research

  • ci-app release mechanics read from .github/scripts/npm_release.py and .github/workflows/{ci,release-npm-packages}.yml at CIAPP_BASE.
  • Effect Schema checks: SPEC#dependency-readiness (Effect 4.1.0 Schema.ts:6889, :7013). Re-read through opensrc path effect if the pin changed.
  • tsprover@0.0.2 behavior: installed model-checking skill.
  • No web research needed.

Target Ownership Topology

Source: ARCH#whole-system, ARCH#modules-and-interfaces.

ci-app packages/public/backlog/            ARC-002 owner: package + tests
├── skills/human-backlog-ado/scripts/ado.py ARC-003: only Azure DevOps
│                                          writer; config, auth, set-state
├── skills/<5 Human Backlog skills>/       call ../human-backlog-ado/...
├── skills/setup-human-backlog/            ARC-007: config, doctor, Eject
├── models/human-state.proof.ts            Model (not shipped)
└── tests/                                 unittest (not shipped)
HI apps/cli/
├── src/registry/settings.ts, check.ts     ARC-005: humanBacklog schema
├── src/data/catalog/package-skills.ts     ARC-004: pins, source list
├── scripts/sync-package-skills.mjs        ARC-004: copy + receipt
└── src/data/catalog/{skills,packs}.ts     ARC-004: ci-solutions entries
skills main write-backlog/                 ARC-006, ARC-008
└── references/human-backlog.md            late Human States, Fog links
OwnerResponsibilityPublic entrypointMust not absorb
ARC-002 packageSource of truth for the seven skill folders and the Python testsnpm tarball package/skills/<skill>HI catalog data; client config
ARC-003 ado.pyConfig resolution, az token, every Human Backlog read and write, forward-only ruleCLI commands (ARCH#arc-003)Delivery evidence logic; HI settings schema
ARC-007 setup-human-backlogInterview, write the Human Backlog Config, run doctor, request an EjectSkill invocation; ado.py doctor, ado.py eject --outProcess creation through the API (LOG#q37)
ARC-005 settingsValidate humanBacklog shapeSettingsDocument.humanBacklogAn hi init prompt; provider calls
ARC-004 sync and catalogPin, copy and catalog package skillspackageSkillSources, skills.ts, packs.tsSkill content; an az tool entry
ARC-006 write-backlog branchOwed Human State from Core Backlog evidence; Fog ↔ Business Request linksreferences/human-backlog.md from step 9Direct Azure DevOps REST calls; blocking delivery

Declared Dependency Graph

Forbidden edges:

  • Any skill or write-backlog → Azure DevOps REST without ado.py.
  • Skills repo → ci-app beyond the installed helper path.
  • HI → an az tool entry.
  • ado.py → HI code.
  • HI tests → Python.

All edges are one-way and acyclic.

Responsibility Acceptance Criteria

criterion_idOwnerObservable assertionEvidencedue_architecture_waveTasks
RAC-1ARC-002, ARC-003Ported skills and ado.py contain no client text. Config resolves env → settings → config.json. Auth uses only az. The two-week sprint check stays (AC-018..AC-022)python3 -m unittest discover -s tests in the package; the forbidden-text grep is emptyA1T1
RAC-2ARC-005SettingsDocument accepts a valid humanBacklog and rejects bad provider, host and tenant; hi update keeps the value (AC-028, AC-029)settings.test.ts, check.test.tsA1T2
RAC-3ARC-003set-state is forward-only and idempotent, with final states and a test /rev patch; the lifecycle writers call it (AC-001..AC-008; INV-001)tests/test_set_state.py stateful property; check:models exits 0 with 153 statesA2T3
RAC-4ARC-007doctor is read-only and reports ready only when every check passes; eject requires --out and is reproducible (AC-030..AC-032; INV-002)tests/test_doctor.py, tests/test_eject.pyA2T4
RAC-5ARC-006, ARC-008write-backlog branch text meets AC-009..AC-017, and HI syncs ittests/write-backlog-human-backlog.contract.test.mjs; HI sync receiptA2T5
RAC-6ARC-002The published tarball root and skills are exact, with no tests; CI runs the unittest suite (AC-023, AC-024)test:pack; npm view @collective-intelligence/backlog@0.1.0A3T6
RAC-7ARC-004Two package sources sync; the receipt is keyed by package; seven ci-solutions entries with requiresTools: ["python3"]; hi update installs them (AC-025..AC-027)Vitest sync and catalog suites; hi update fixture runA4T7

Architecture Waves

WaveTopology deltaEntryCriteria dueTemporary seamsCheckpoint
A1 boundary establishmentPackage and generic ado.py exist; the settings key existsnoneRAC-1, RAC-2noneCP-A1: RAC-1 and RAC-2 green; forbidden-edge grep (az in tools.ts, client text in skills/) empty
A2 behavior slicesset-state and lifecycle writers; setup, doctor and Eject; write-backlog branch synced into HICP-A1 for the consumed owner onlyRAC-3, RAC-4, RAC-5noneCP-A2: RAC-1..RAC-5; the full package unittest suite; check:models
A3 publishTarball on npmCP-A2 (RAC-3, RAC-4)RAC-6noneCP-A3: npm view readback, plus RAC-1, RAC-3 and RAC-4 regression via test:pack
A4 distribution and final closureHI pins, syncs and catalogs the packageCP-A3RAC-7noneCP-A4: every RAC green; zero drift against the views above; migration ledger empty; release:classify = mixed

Only work that consumes an unproved responsibility waits. T2 and T5 do not wait for ci-app checkpoints.

Public Seam Contract

SeamOwnerAllowed consumersChange in this plan
ado.py CLI (ARCH#arc-003)ARC-003Sibling skills by ../human-backlog-ado/scripts/ado.py; write-backlog by .agents/skills/human-backlog-ado/scripts/ado.py; setup-human-backlogNew doctor, set-state, eject; create sets no State; revision-check uses the new names
humanBacklog key (ARCH#arc-005)ARC-005 schema; written by ARC-007ado.py, write-backlog, hi checkNew optional key
Tarball layout package/skills/<skill>ARC-002sync-package-skills.mjsNew package
packageSkillSourcesARC-004Sync script, skills.tsReplaces the single default source
Fog ↔ Business Request link format (ARCH#arc-008)ARC-006write-backlog runs; peopleNew

Migration Ledger

Empty. No temporary seam is planned. The D11 test:pack placeholder is a branch-local step that T6 replaces, and it never reaches main. Final closure (CP-A4) requires the ledger to stay empty.

Dependency Graph and Waves

WaveTasks (earliest frontier)Repository and write scopeNotes
W1T1, T2ci-app package; HI apps/cli/src/registry + CHANGELOG.md + runbookDisjoint repositories, parallel
W2T3ci-app packageT4 is unblocked by provider edges but waits for the T3 Task Gate (D7)
W3T4, T5ci-app package; skills main + HI sync pathsDisjoint. T5's HI part writes the runbook and waits for the T2 Task Gate if T2 is still open
W4T6ci-app package + PR + releaseOutward actions need user go (D15)
W5T7HI apps/cli + changelogs + wiki + PREntry: T6 Task Gate plus the T2 and T5 Task Gates (D17). Outward actions need user go (D15)

Shared-file order across waves: CHANGELOG.md (T2 → T7); BASELINE_CHANGELOG.md, skill-graph.mdx (T5 → T7); runbook hi-cli-scaffolding.md (T2 → T5 → T7); ci-app package.json, CHANGELOG.md (T1 → T3 → T4 → T6).

Testing Strategy

  • ci-app package: python3 -m unittest discover -s tests, run from packages/public/backlog. The tests use the in-memory Azure DevOps fake from Giovanni's tests. Giovanni's 72 tests are adapted, not dropped.
  • INV-001 (T3): a stateful property (D10), plus a Pinned Replay of the Model finding trace (ARCH#models).
  • INV-002 (T4): a property over every subset of failing doctor checks. Pattern: security gate.
  • Sensitivity Proofs: each executor applies the Mutant and records the result in sensitivity_evidence:
    • T3: remove the final-state guard, then remove the forward guard; the property must fail each time.
    • T4: drop one doctor check from the gate; the property must fail.
  • check:models (T3, D9) keeps MODEL green in CI.
  • HI: Vitest suites around settings decoding, syncPackageSkills with a tarball override (HI_CI_BACKLOG_TARBALL), and catalog membership. bun run --cwd apps/cli check-types and lint for the affected workspace.
  • Skills repo: node --test tests/write-backlog-human-backlog.contract.test.mjs, then npm test (light suite).
  • Runtime: T6 (CI run on the PR, staged publish, npm view readback) and T7 (sync:package-skills from npm; hi update on a fixture repo against a locally built Registry).
  • CI owns the full repository suites (implement-spec/references/validation-scope.md).

Risks and Mitigations

RiskMitigation
Concurrent edits to ado.pyD7: T3 then T4
The merge of the ci-app PR starts a failing push release run, and holds back other packages waiting for release until backlog is on npmD8: the failure is expected and named in the PR Merge Danger. Dispatch the staged run right after the merge, with the read-only plan output shown in the D15 go
The staged dispatch releases other changed ci-app packages tooD8: the user sees the exact package list before the go. With other packages on the list, ask before the dispatch
Python tests need packages that ci-app CI does not installStdlib only (D10). T6 runs CI on the PR before merge
test:pack missing breaks ci-app CI on intermediate pushesD11 placeholder. Push the ci-app branch only from T6
__MACOSX or .DS_Store gets into the tarballD14 skip list. T6 test:pack asserts the exact tarball entries
The ci-app oxfmt or lint hooks reject Python or Markdown filesRun ci-app format:check and lint on touched paths before commit. Prove pre-existing failures on clean origin/main
Staged publish needs npm 2FA from a maintainerD15. T6 stops with the staged run URL until a maintainer approves; T7 starts only after npm view reads the version back
A sync:skills pull brings in unrelated skills-repo commitsT5 checks git log SKILLS_BASE..main before the tag and lists every commit in the BASELINE_CHANGELOG.md entry
write-backlog text drifts from ado.py command namesT5 reads ado.py --help from the T3 result, and the contract test asserts the exact set-state call
The Giovanni review later changes state namesD4. Fix through a later package release and a new HI pin
Pre-commit hook fails on unrelated lintProve on a clean origin/main worktree and record before any --no-verify

Unresolved Questions

None block execution.

  • Parked: the delivery step that records staging and production evidence (SPEC#parked-decisions row 1). Until it exists, only In progress is written automatically.
  • Parked, non-gating (D4): the Giovanni confirmations. These are: one script, the state rename, and whether the Feature Ratings Sync pipeline uses ado.py.
  • Outside plan (D5): the Emera process migration.
  • Non-blocking: the IP-556 Linear body still names the Giovanni review as a publish gate. A write-backlog reconcile should update it if the user wants the provider body to match D4.

Planning Run Record

  • planning-discovery and $parallel-research were skipped. The evidence set was small and read locally: HI catalog, sync and settings sources; ci-app origin/main workflows, release script and the lint package; the skills repo write-backlog; ZIP listing; and Linear readback.
  • $grilling: round 1 asked P1–P3 with the question-block contract. Answers became D3–D5. All other decisions (D6–D16) follow from evidence and change no accepted requirement.
  • $swarm-planner produced the graph and task contract. $tdd (properties.md Form and Patterns) produced the RED/GREEN targets, Forms and Sensitivity Proofs. $codebase-design produced the seam notes per task. $show-me produced the topology, dependency and wave views. $wait-what ran an ASD-STE100 pass with glossary terms; the ledger did not change.
  • writing-for-agents: applied to this plan (agent-consumed artifact).
  • plan-reviewer: see Plan Review.

Tasks

Common fields. These apply to every task unless the task says otherwise:

  • Identity: task_identity_mode: provider-task; relation_mode: native; backlog_sync_skip_reason blank; status: Planned.
  • Execution fields that start blank: log, files edited/created, red_evidence, green_evidence, sensitivity_evidence, runtime_evidence.
  • Runtime: runtime_validation: not_required unless the task says so; then runtime_target and runtime_cleanup are not_applicable.
  • relevant_input_set always includes the SPEC, ARCH and MODEL identities. Re-hash them before and after checks.
  • ci-app tasks run in the D6 worktree, named $CIAPP below. $PKG = $CIAPP/packages/public/backlog.

T1: Port the Human Backlog skills and a generic ado.py into ci-app

  • depends_on: []
  • backlog_item_id: IP-552
  • backlog_item_url: https://linear.app/devpunks/issue/IP-552/port-the-human-backlog-skills-and-a-generic-adopy-into-ci-app
  • location: ci-app packages/public/backlog/
  • owned_paths: [$PKG/package.json, $PKG/README.md, $PKG/CHANGELOG.md, $PKG/AGENTS.md, $PKG/CLAUDE.md (symlink to AGENTS.md), $PKG/.gitignore, $PKG/skills/human-backlog-ado/**, $PKG/skills/{create-business-request,analyze-business-request,update-business-request,plan-sprint,create-bug}/**, $PKG/tests/**, $CIAPP/bun.lock]
  • read_dependencies: SPEC#out-005, SPEC#ac-018..SPEC#ac-022, SPEC#accepted-technical-decisions; ARCH#arc-002, ARCH#arc-003, ARCH#flow-005; LOG#q24, #q28, #q41, #q42, #q45, #q48; GLOSSARY; ZIP; ci-app packages/public/lint/{package.json,AGENTS.md} as the layout precedent; ci-app .agents/rules/index.md.
  • shared_runtime_resources: the ci-app worktree (exclusive writes inside owned_paths); a task-owned mktemp -d extraction of ZIP, removed at task end.
  • relevant_input_set: common; ZIP sha256 equals a723a4f7…161883 before extraction; CIAPP_BASE SHA.
  • wave_boundary: W1
  • description:
    1. Extract ZIP (D14) and copy the five skills, ado.py and the four test files into the ARCH#modules-and-interfaces layout.
    2. Write the new tests first (see tdd_target), then make ado.py generic:
      • Replace the ORG, PROJECT and TENANT constants with a lazy load_config(). Order: ADO_* env, then humanBacklog in the nearest .devpunks/settings.json above the working directory, then config.json beside ado.py.
      • Derive org and project from projectUrl. A missing provider, projectUrl or tenant stops with the key name before any network call. --help works with no config.
      • Make token() use only az account get-access-token --tenant <tenant>. A missing az or no login stops with install and az login --tenant <tenant> guidance.
      • Remove every client string (AC-018) and keep the planning-check two-week rule.
    3. Rewrite the skill files in English. Each skill tells the agent to save content in the user's language and to keep an existing item's language (AC-021).
    4. Point the sibling skills at ../human-backlog-ado/scripts/ado.py. Write human-backlog-ado/SKILL.md as the helper reference for the existing commands.
    5. Package files:
      • package.json: name @collective-intelligence/backlog, files: ["README.md","skills"], publishConfig.access: public, test: python3 -m unittest discover -s tests, test:pack: bun run test (D11), placeholder version as the other public packages use.
      • A CHANGELOG.md "New package" entry, a README.md, and an AGENTS.md that follows the lint package pattern, with writing-for-agents for skill edits and a ## Skills table.
    6. Register the workspace as the lint package is registered, and update bun.lock.
  • validation:
    • cd $PKG && python3 -m unittest discover -s tests passes. It includes the 72 adapted tests.
    • grep -rnE 'emera-group|Collective-Intelligence|b60db498-a991-498d-bfb5-7f0657f02891|definitionId=1' $PKG/skills gives no hit.
    • find $PKG -name .DS_Store -o -name __MACOSX is empty.
    • bun run --cwd $PKG test:pack exits 0.
    • ci-app bun run format:check and lint on the touched paths are clean, or the failure is proved pre-existing.
  • assigned_skills: [writing-for-agents, tdd, codebase-design]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: Port each skill with front-loaded descriptions, one trigger per branch, steps with checkable completion criteria, and a positive language rule. Delete client-specific sediment; do not just reword it.
    • skill: tdd applicable_behavior: Write test_config.py, test_auth.py and test_skill_text.py against the verbatim port and capture RED before you generalize ado.py. test_skill_text.py iterates every skills/* folder, so later skills are covered without a new test.
    • skill: codebase-design applicable_behavior: Keep load_config() and token() as the only config and auth seams; every command reads them lazily, so --help needs no config.
  • tdd_status: required
  • tdd_target: load_config() resolves ADO_* env over settings over config.json, and a missing tenant stops with the key name before any network call.
  • red_command: cd $PKG && python3 -m unittest tests.test_config tests.test_auth tests.test_skill_text
  • expected_red_failure: AttributeError: module 'ado' has no attribute 'load_config'; test_skill_text lists emera-group and the tenant UUID in skills/.
  • green_command: cd $PKG && python3 -m unittest discover -s tests
  • reason_not_testable:
  • test_form: example
  • invariant_refs: none
  • codebase_design_notes: Deep module: one ado.py file behind a CLI interface. Config and auth are two seams (load_config, token). The in-memory fake stays the test adapter.
  • review_mode: cli
  • architecture_wave: A1
  • behavior_owner: ARC-002 package; ARC-003 ado.py
  • integration_surface: The ado.py CLI, called by the sibling skills
  • public_seam: ado.py existing commands; tarball layout (shape only)
  • topology_delta: New package owner in ci-app. Client constants become the Human Backlog Config.
  • forbidden_ownership: HI catalog data; set-state, doctor, eject (T3, T4); any az alternative
  • temporary_seams: none (D11 is branch-local)
  • responsibility_acceptance_criteria: [RAC-1]
  • Covers: OUT-005; AC-018, AC-019, AC-020, AC-021, AC-022

T2: Declare and validate the humanBacklog setting in HI

  • depends_on: []
  • backlog_item_id: IP-553
  • backlog_item_url: https://linear.app/devpunks/issue/IP-553/declare-and-validate-the-humanbacklog-setting-in-hi
  • location: HI apps/cli/src/registry/
  • owned_paths: [apps/cli/src/registry/settings.ts, apps/cli/src/registry/settings.test.ts, apps/cli/src/registry/check.ts, apps/cli/src/registry/check.test.ts, CHANGELOG.md (## Unreleased bullet only), apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md (settings row, line 34)]
  • read_dependencies: SPEC#out-008, SPEC#ac-028, SPEC#ac-029; ARCH#arc-005; LOG#q12, #q31, #q44; Effect Schema.isPattern, Schema.isUUID (opensrc path effect); apps/cli/AGENTS.md.
  • shared_runtime_resources: the HI worktree (exclusive writes inside owned_paths).
  • relevant_input_set: common; HI_BASE; the Effect version in bun.lock.
  • wave_boundary: W1
  • description:
    • Add HumanBacklogSettings exactly as in ARCH#arc-005, with an https: URL check for ratingsPipelineUrl.
    • Add SettingsDocument.humanBacklog as Schema.optional, and make decodeCheckSettings read it. Add no ProjectIntent field and no hi init prompt.
    • Add tests for accepted and rejected shapes, for hi check reporting .devpunks/settings.json: <error>, and for hi update keeping an existing value unchanged.
    • Add a CLI CHANGELOG.md ## Unreleased bullet and the runbook settings row.
  • validation:
    • bun run --cwd apps/cli test -- src/registry/settings.test.ts src/registry/check.test.ts passes.
    • bun run --cwd apps/cli check-types and bun run --cwd apps/cli lint are clean.
    • bun run --cwd apps/wiki check:health shows no new finding.
  • assigned_skills: [effect, quality-types, tdd]
  • implementation_skill_guidance:
    • skill: effect applicable_behavior: Use Effect 4 Schema checks (Schema.String.check(Schema.isPattern(...)), Schema.isUUID()), not hand-written validation.
    • skill: quality-types applicable_behavior: Derive the settings type from the schema. Add no restated interface, and keep provider a literal.
    • skill: tdd applicable_behavior: First show that a document with tenant "not-a-uuid" decodes today (RED), then make it fail.
  • tdd_status: required
  • tdd_target: hi check fails with .devpunks/settings.json: <error> for a humanBacklog whose tenant is not a UUID.
  • red_command: bun run --cwd apps/cli test -- src/registry/settings.test.ts src/registry/check.test.ts
  • expected_red_failure: The new rejection cases expect a decode error but get success (excess key ignored), and the preserve case finds humanBacklog absent from the decoded document.
  • green_command: same as red_command
  • reason_not_testable:
  • test_form: example
  • invariant_refs: none
  • codebase_design_notes: Interface: SettingsDocument is the only settings seam. The new key is optional, so existing documents still decode.
  • review_mode: cli
  • architecture_wave: A1
  • behavior_owner: ARC-005
  • integration_surface: hi check, hi update, hi init settings read and write
  • public_seam: humanBacklog key (new, optional)
  • topology_delta: The settings schema gains one optional struct.
  • forbidden_ownership: Provider calls; hi init prompts; defaults for the client values
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-2]
  • Covers: OUT-008; AC-028, AC-029

T3: Add forward-only ado.py set-state and wire the Human State lifecycle

  • depends_on: [T1]
  • backlog_item_id: IP-554
  • backlog_item_url: https://linear.app/devpunks/issue/IP-554/add-forward-only-adopy-set-state-and-wire-the-human-state-lifecycle
  • location: ci-app packages/public/backlog/
  • owned_paths: [$PKG/skills/human-backlog-ado/**, $PKG/skills/{create-business-request,analyze-business-request,update-business-request,plan-sprint}/**, $PKG/tests/test_set_state.py, $PKG/tests/test_br_revision.py, $PKG/tests/test_skill_text.py, $PKG/models/human-state.proof.ts, $PKG/tsconfig.json, $PKG/package.json, $PKG/CHANGELOG.md, $CIAPP/bun.lock]
  • read_dependencies: SPEC#out-001, SPEC#out-002, SPEC#ac-001..SPEC#ac-008, SPEC#spec-invariants (INV-001); ARCH#arc-003, ARCH#flow-001, ARCH#flow-002-step-004, ARCH#models; MODEL; LOG#q2, #q3, #q34, #q36, #glossary-q49; T1 result.
  • shared_runtime_resources: the ci-app worktree; bun run check:models (the tsprover 0.0.2 devDependency).
  • relevant_input_set: common; T1 Task Gate commit; MODEL blob a5dd8e5f….
  • wave_boundary: W2
  • description:
    • Add BR_FLOW and BR_FINAL (ARCH#arc-003).
    • Add set-state ID STATE --comment TEXT [--expected-rev N] [--dry-run]:
      • a final current state → refused, nonzero exit, no write;
      • a target earlier than the current state → refused, except Rejected and Withdrawn;
      • the same state → no write, exit 0;
      • otherwise one JSON Patch with test /rev, then exactly one comment;
      • a stale --expected-rev fails before any write.
    • create sets no State. revision-check uses the new names (AC-005).
    • Wire the writers: create-business-request (Received, initial), analyze-business-request (set-state <id> "In analysis" at the first Feature link), plan-sprint (set-state <id> Planned at the first sprint of the first linked Feature), update-business-request (Rejected or Withdrawn only on user request).
    • Document set-state in human-backlog-ado/SKILL.md.
    • Commit the Model and CI wiring (D9).
  • validation:
    • cd $PKG && python3 -m unittest discover -s tests passes.
    • bun run --cwd $PKG check:models exits 0 and reports 153 states.
    • bun run --cwd $PKG type-check exits 0.
    • test_skill_text.py asserts each writer's exact set-state call and that create sends no State field.
    • Sensitivity Proofs (Testing Strategy) are recorded.
  • assigned_skills: [writing-for-agents, tdd, model-checking, codebase-design]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: State each writer's trigger and exact set-state call as one step with a checkable completion criterion. Name the Human States exactly, and add no mapping layer.
    • skill: tdd applicable_behavior: Start with one example (Received → In analysis), then add the D10 stateful property against an independent in-test model of the rules (no tautological oracle). Pin the Model finding trace as a replay.
    • skill: model-checking applicable_behavior: Run step 4 (replay each trace action as one command, in order) and step 5 (move the Model, add tsprover 0.0.2, add check:models, make CI run it through test:pack).
    • skill: codebase-design applicable_behavior: Keep the forward-only rule inside set-state as the one write path for State. Skills call it; they do not patch State themselves.
  • tdd_status: required
  • tdd_target: ado.py set-state 1 Planned on a Live request exits nonzero and makes no write.
  • red_command: cd $PKG && python3 -m unittest tests.test_set_state
  • expected_red_failure: argparse invalid choice: 'set-state', exit 2, in every case.
  • green_command: cd $PKG && python3 -m unittest discover -s tests && bun run check:models
  • reason_not_testable:
  • test_form: stateful-property
  • invariant_refs: [INV-001]
  • codebase_design_notes: One deep set-state behind the CLI. The fake keeps its revision counter so test /rev is observable. The Model is outside files.
  • review_mode: cli
  • architecture_wave: A2
  • behavior_owner: ARC-003
  • integration_surface: The four writer skills; write-backlog (T5) by path
  • public_seam: ado.py set-state (new); create (no State); revision-check (new names)
  • topology_delta: Every automated Human State write goes through one guarded command.
  • forbidden_ownership: Delivery evidence logic (T5); doctor and eject (T4)
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-3]
  • Covers: OUT-001, OUT-002; AC-001..AC-008

T4: Add setup-human-backlog with read-only ado.py doctor and ado.py eject

  • depends_on: [T1] (native); after the T3 Task Gate (D7)
  • backlog_item_id: IP-555
  • backlog_item_url: https://linear.app/devpunks/issue/IP-555/add-setup-human-backlog-with-read-only-adopy-doctor-and-adopy-eject
  • location: ci-app packages/public/backlog/
  • owned_paths: [$PKG/skills/human-backlog-ado/**, $PKG/skills/setup-human-backlog/**, $PKG/tests/test_doctor.py, $PKG/tests/test_eject.py, $PKG/tests/test_skill_text.py, $PKG/CHANGELOG.md]
  • read_dependencies: SPEC#out-009, SPEC#out-010, SPEC#ac-030..SPEC#ac-032, INV-002; ARCH#arc-007, ARCH#flow-003; LOG#q11, #q23, #q31, #q32, #q33, #q37, #q47; T3 result.
  • shared_runtime_resources: the ci-app worktree; task-owned temp --out directories, removed at task end.
  • relevant_input_set: common; T3 Task Gate commit.
  • wave_boundary: W3
  • description:
    • Add doctor. It is read-only and checks config, az login, project reach, work-item types, fields and the eight Human States against references/process.md. It reports ready only when every check passes; otherwise it reports blocked with the full mismatch list.
    • Add eject --out PATH. It fails without --out. It writes one zip with the sibling skill folders (no tests), config.json and MANIFEST.json: package name, skill-tree sha256 (sorted paths, stable bytes), config sha256 and date. There is no version in the file name.
    • Add the setup-human-backlog skill, which runs: interview → write humanBacklog → doctor → ready or blocked → optional Eject.
    • Add references/process.md, which lists the five work-item types, every field the skills use, and the eight Human States.
    • Add references/eject.md.
  • validation:
    • cd $PKG && python3 -m unittest discover -s tests passes.
    • doctor records zero write calls on the fake.
    • Two eject runs over the same tree give the same skill-tree sha256.
    • test_skill_text.py covers setup-human-backlog (English, language rule, no client text), and the AC-018 grep over $PKG/skills gives no hit.
    • The INV-002 Sensitivity Proof is recorded.
  • assigned_skills: [writing-for-agents, tdd, codebase-design]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: Write setup-human-backlog as ordered steps that end on ready or blocked. Put the process definition and the Eject contents in disclosed references.
    • skill: tdd applicable_behavior: Start with one blocked example (missing Human State), then the security-gate property over every subset of failing checks.
    • skill: codebase-design applicable_behavior: doctor reuses the same read helpers as other commands; eject hashes the installed sibling tree, not package metadata.
  • tdd_status: required
  • tdd_target: ado.py doctor on a project that lacks the Human State "On staging" reports blocked with that mismatch and makes no write.
  • red_command: cd $PKG && python3 -m unittest tests.test_doctor tests.test_eject
  • expected_red_failure: argparse invalid choice: 'doctor' and invalid choice: 'eject'.
  • green_command: cd $PKG && python3 -m unittest discover -s tests
  • reason_not_testable:
  • test_form: property
  • invariant_refs: [INV-002]
  • codebase_design_notes: doctor is a pure gate over read results. eject is a pure function of the tree and config plus one file write.
  • review_mode: cli
  • architecture_wave: A2
  • behavior_owner: ARC-007 (with ARC-003 commands)
  • integration_surface: setup-human-backlog invocation; Eject zip consumers
  • public_seam: ado.py doctor, ado.py eject --out (new)
  • topology_delta: Setup and Eject become one skill over two read-only or local commands.
  • forbidden_ownership: Process creation through the API; HI settings writes outside humanBacklog
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-4]
  • Covers: OUT-009, OUT-010; AC-030, AC-031, AC-032
  • depends_on: [T3]
  • backlog_item_id: IP-557
  • backlog_item_url: https://linear.app/devpunks/issue/IP-557/add-the-write-backlog-human-state-branch-and-fog-business-request
  • location: /home/stefan/repos/skills skills/agnostic/requirements/write-backlog/; HI sync paths
  • owned_paths: skills repo [skills/agnostic/requirements/write-backlog/references/human-backlog.md, skills/agnostic/requirements/write-backlog/SKILL.md (one step-9 pointer line), tests/write-backlog-human-backlog.contract.test.mjs]; HI [apps/cli/scripts/sync-skills-repo.mjs (pin lines 23–24), apps/cli/skills/** except apps/cli/skills/npm/**, BASELINE_CHANGELOG.md (## Unreleased bullet), apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md (pin quote), apps/wiki/content/docs/harness/skills-and-packs/skill-graph.mdx (pin quote)]
  • read_dependencies: SPEC#out-003, SPEC#out-004, SPEC#ac-009..SPEC#ac-017; ARCH#arc-006, ARCH#arc-008, ARCH#flow-002, ARCH#models (Model finding: owed state from all evidence); LOG#q13–#q15, #q19–#q21, #q25, #q29, #q30, #q35, #q46; T3 ado.py --help; write-backlog/{SKILL.md,references/fog-intake.md,references/delivery-status.md,references/providers/*} (read-only).
  • shared_runtime_resources: the single skills checkout (shared reads; parent-only git index writes, D12); the HI worktree (waits for the T2 Task Gate on the runbook).
  • relevant_input_set: common; SKILLS_BASE; sha256 of fog-intake.md, delivery-status.md and references/providers/* before and after (must be equal, AC-015).
  • wave_boundary: W3
  • description:
    1. Write references/human-backlog.md:
      • Applicability: humanBacklog is set and the Fog links a Business Request; otherwise zero writes and no failure.
      • Owed state = the highest state that all recorded evidence for the Fog scope supports: In progress, On staging (every Story and Task), Live (Fog complete), Withdrawn (Cancelled, no production evidence). Superseded: no write; move both links to the successor in the same run.
      • Call .agents/skills/human-backlog-ado/scripts/ado.py set-state with one comment in the request's language (date, release name when known, no technical link).
      • Missing helper → setup guidance and zero Human Backlog writes.
      • A failed write → residual delta, retried at the next delivery event, never blocks Core Backlog writes.
      • Link format: Linear attachment link; GitHub body line Business Request: <url>; back link on the Business Request. Written at Fog intake when a URL is supplied, or later on an explicit link instruction. One Business Request per Fog.
    2. Add one pointer line in SKILL.md step 9.
    3. Add the contract test.
    4. The parent commits, pushes main and tags (D12, D15).
    5. In HI:
      • Bump the pin and run bun run --cwd apps/cli sync:skills.
      • Verify that the apps/cli/.devpunks-cache/skills-sync.json commit equals the new SHA.
      • Update the two pin quotes (D16).
      • Add the BASELINE_CHANGELOG.md bullet with the canonical source line.
  • validation:
    • Skills repo: node --test tests/write-backlog-human-backlog.contract.test.mjs, then npm test with no new failure against the SKILLS_BASE baseline.
    • git -C /home/stefan/repos/skills diff SKILLS_BASE -- skills/agnostic/requirements/write-backlog/references/fog-intake.md skills/agnostic/requirements/write-backlog/references/delivery-status.md skills/agnostic/requirements/write-backlog/references/providers is empty.
    • HI: the receipt commit check; bun run --cwd apps/cli test -- src/registry/publisher/sources/skills.test.ts passes; bun run --cwd apps/wiki check:health shows no new finding.
  • assigned_skills: [writing-for-agents, tdd]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: One disclosed reference reached by one pointer line. Write the owed-state rule as a decision table with a checkable completion criterion, and phrase "never blocks delivery" as the positive residual-delta step.
    • skill: tdd applicable_behavior: Write the contract test first and prove it RED against SKILLS_BASE (reference missing, no pointer line), then GREEN.
  • tdd_status: required
  • tdd_target: The write-backlog step 9 points to references/human-backlog.md, and that reference names the owed-state table, the exact set-state call path and the residual-delta retry.
  • red_command: cd /home/stefan/repos/skills && node --test tests/write-backlog-human-backlog.contract.test.mjs
  • expected_red_failure: ENOENT for references/human-backlog.md, and no step-9 pointer match.
  • green_command: cd /home/stefan/repos/skills && node --test tests/write-backlog-human-backlog.contract.test.mjs && npm test
  • reason_not_testable:
  • test_form: example
  • invariant_refs: none
  • codebase_design_notes: Locality: all Human Backlog behavior of write-backlog lives in one reference. The ado.py path is the only seam to ci-app.
  • review_mode: cli
  • architecture_wave: A2
  • behavior_owner: ARC-006, ARC-008
  • integration_surface: write-backlog runs at Fog intake and delivery status
  • public_seam: Fog ↔ Business Request link format (new); consumes ado.py set-state
  • topology_delta: write-backlog gains one guarded branch toward the Human Backlog.
  • forbidden_ownership: Direct Azure DevOps REST calls; edits to provider references, fog-intake.md and delivery-status.md; blocking Core Backlog writes
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-5]
  • Covers: OUT-003, OUT-004; AC-009..AC-017

T6: Publish @collective-intelligence/backlog from ci-app with test:pack in CI

  • depends_on: [T3, T4]
  • backlog_item_id: IP-556
  • backlog_item_url: https://linear.app/devpunks/issue/IP-556/publish-collective-intelligencebacklog-from-ci-app-with-testpack-in-ci
  • location: ci-app packages/public/backlog/; ci-app PR and release workflow
  • owned_paths: [$PKG/package.json (test:pack), $PKG/tools/check-pack.py, $PKG/README.md, $PKG/CHANGELOG.md]; ci-app PR on team/stefan/human-backlog-package
  • read_dependencies: SPEC#out-006, SPEC#ac-023, SPEC#ac-024; ARCH#arc-002, ARCH#flow-004; LOG#q39, #q42; ci-app .github/workflows/{ci,release-npm-packages}.yml, .github/scripts/npm_release.py; ci-app root AGENTS.md PR rules; T1, T3 and T4 results.
  • shared_runtime_resources: ci-app GitHub Actions; the npm registry (one new package); NPM_BOOTSTRAP_TOKEN (staged run only).
  • relevant_input_set: common; T4 Task Gate commit; PR head SHA; release run id; npm dist.integrity.
  • wave_boundary: W4
  • description:
    1. Add tools/check-pack.py (not shipped). It runs npm pack --dry-run --json and asserts the exact root README.md, package.json and skills; the seven skill folders; and no test, .DS_Store or __MACOSX entry.
    2. Set test:pack to the check, then test, then check:models (D9, D11).
    3. Finish README.md (install, the seven skills, Human Backlog Config, az login) and the CHANGELOG.md entry.
    4. Re-read ci.yml, release-npm-packages.yml and npm_release.py at the PR base. Push the branch and open the ci-app PR with a $pr body; Merge Danger names the expected failing push release run (D8, D15).
    5. Get CI green on the PR head SHA, and merge after a user go.
    6. Run python .github/scripts/npm_release.py plan --plan <tmp>/plan.json on the merged main SHA (read-only). Show the user the selected packages and versions. After a user go, dispatch the release with bump: minor, stage: true (D8).
    7. After maintainer 2FA approval, read back the version.
  • validation:
    • bun run --cwd $PKG test:pack passes locally.
    • The ci-app CI "Pack test" and "Pack, check and install" entries pass for backlog on the PR head SHA.
    • The staged run log shows @collective-intelligence/backlog@0.1.0 staged. After maintainer approval, npm view @collective-intelligence/backlog@0.1.0 version returns 0.1.0. The release tag is created by a later non-staged run from the npm gitHead; it is not a T6 gate.
  • assigned_skills: [tdd, pr]
  • implementation_skill_guidance:
    • skill: tdd applicable_behavior: The pack check passes on its first honest run, so prove it with a Sensitivity Proof: add tests to files, see the failure, revert.
    • skill: pr applicable_behavior: Write the ci-app PR body as a Managed Region with Summary, before/after Evidence and Merge Danger (first publish of a new package; staged approval).
  • tdd_status: required
  • tdd_target: test:pack fails when the tarball contains anything beyond README.md, package.json and the seven skills.
  • red_command: cd $PKG && cp package.json package.json.bak && node -e 'const fs=require("fs");const p=JSON.parse(fs.readFileSync("package.json"));p.files.push("tests");fs.writeFileSync("package.json",JSON.stringify(p,null,2))' && bun run test:pack; mv package.json.bak package.json
  • expected_red_failure: check-pack.py reports an unexpected tarball entry package/tests/… and exits 1.
  • green_command: bun run --cwd $PKG test:pack
  • reason_not_testable:
  • test_form: example
  • invariant_refs: none
  • codebase_design_notes: The pack check is the test adapter for the tarball layout seam, and it owns the "exact entries" rule.
  • review_mode: cli
  • runtime_validation: required
  • runtime_target: The ci-app GitHub Actions CI on the PR head, the release workflow (staged), and the npm registry.
  • runtime_evidence: The PR CI run URL and head SHA, green. The read-only release plan output. The staged release run URL. npm view @collective-intelligence/backlog@0.1.0 dist.integrity gitHead output, and npm pack @collective-intelligence/backlog@0.1.0 --dry-run --json entries that equal the AC-023 set.
  • runtime_cleanup: Remove local pack output and /tmp copies. A published npm version is permanent: do not unpublish.
  • architecture_wave: A3
  • behavior_owner: ARC-002
  • integration_surface: npm tarball consumed by HI sync
  • public_seam: Tarball layout package/skills/<skill> (published)
  • topology_delta: The package exists on npm at 0.1.0.
  • forbidden_ownership: HI catalog changes; skill behavior changes after T4
  • temporary_seams: Removes the D11 placeholder.
  • responsibility_acceptance_criteria: [RAC-6]
  • Covers: OUT-006; AC-023, AC-024

T7: Sync the backlog package skills into the ci-solutions Pack and release HI

  • depends_on: [T6] (native); after the T2 and T5 Task Gates (D17)
  • backlog_item_id: IP-558
  • backlog_item_url: https://linear.app/devpunks/issue/IP-558/sync-the-backlog-package-skills-into-the-ci-solutions-pack
  • location: HI apps/cli/
  • owned_paths: [apps/cli/src/data/catalog/package-skills.ts, apps/cli/scripts/sync-package-skills.mjs, apps/cli/scripts/sync-package-skills.d.mts, apps/cli/src/scripts/sync-package-skills.test.ts, apps/cli/src/data/catalog/skills.ts, apps/cli/src/data/catalog/packs.ts, apps/cli/src/registry/publisher/sources/skills.test.ts, apps/cli/src/registry/publisher/sources/packs.test.ts, apps/cli/skills/npm/collective-intelligence-backlog/**, apps/cli/package.json (version), CHANGELOG.md, BASELINE_CHANGELOG.md, apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md (package-skills paragraph), apps/wiki/content/docs/harness/skills-and-packs/{skill-reference,skill-packs,skill-graph,skill-model}.mdx]; the HI PR
  • read_dependencies: SPEC#out-007, SPEC#ac-025..SPEC#ac-027; ARCH#arc-004, ARCH#flow-004; LOG#q27, #q38, #q40, #q43; T6 npm view readback; apps/cli/AGENTS.md; memory "CLI patch release gotchas".
  • shared_runtime_resources: the npm registry (read); a locally built Registry in a task temp directory; a temp fixture repo.
  • relevant_input_set: common; the T6 published version and dist.integrity; the T2 and T5 Task Gate commits (D17).
  • wave_boundary: W5
  • description:
    • Add collectiveIntelligenceBacklogVersion (the T6 version), collectiveIntelligenceBacklogSkills and packageSkillSources (ARCH#arc-004).
    • Make the sync script iterate the sources, with one receipt entry per package name. Lint behavior stays unchanged.
    • Run bun run --cwd apps/cli sync:package-skills.
    • Add the seven skills.ts entries (tier: "framework", framework: "ci-solutions", language: null, requiresTools: ["python3"]) and the ci-solutions membership with one promptDetails line. Add no az tool.
    • Release (D3): apps/cli/package.json → 6.7.0; CHANGELOG.md ## 6.7.0 - <date> from ## Unreleased plus the T7 bullet; a BASELINE_CHANGELOG.md bullet for the seven ci-solutions skills.
    • Update the runbook paragraph and the four harness pages.
    • Open the HI PR from team/stefan/backlog-for-humans-skill-pack (D15).
  • validation:
    • bun run --cwd apps/cli test -- src/scripts/sync-package-skills.test.ts src/registry/publisher/sources/skills.test.ts src/registry/publisher/sources/packs.test.ts src/registry/shape.test.ts passes.
    • bun run --cwd apps/cli check-types and lint are clean.
    • The receipt shows two entries with source: "npm", the pinned versions and their integrity values.
    • node apps/cli/scripts/classify-release-impact.mjs --base origin/main --head HEAD reports mixed.
    • bun run --cwd apps/wiki check:health and check:content show no new finding.
    • The HI PR CI is green.
  • assigned_skills: [quality-types, tdd, pr, hi-cli]
  • implementation_skill_guidance:
    • skill: quality-types applicable_behavior: Keep PackageSkillSource as the one source type, and derive the skill-id list from the source constant instead of restating it.
    • skill: tdd applicable_behavior: First show that syncPackageSkills with HI_CI_BACKLOG_TARBALL set to a test-built fixture tarball does not copy the backlog skills (RED), then GREEN. Keep the lint override test unchanged. The real npm tarball belongs only to runtime_evidence.
    • skill: pr applicable_behavior: Write the HI PR body as a Managed Region covering the spec, plan, setting, write-backlog sync and package sync; Merge Danger names the mixed release.
    • skill: hi-cli applicable_behavior: Drive the AC-027 runtime check with hi update against a locally built Registry through HI_REGISTRY_URL=file://….
  • tdd_status: required
  • tdd_target: syncPackageSkills with HI_CI_BACKLOG_TARBALL pointing at a fixture tarball that the test builds itself (as the existing HI_ACME_LINT_TARBALL case does) copies the seven skills into skills/npm/collective-intelligence-backlog/ and writes a receipt entry keyed @collective-intelligence/backlog.
  • red_command: bun run --cwd apps/cli test -- src/scripts/sync-package-skills.test.ts src/registry/publisher/sources/skills.test.ts src/registry/publisher/sources/packs.test.ts
  • expected_red_failure: packageSkillSources is not exported; the backlog directory is absent; the ci-solutions Pack lacks human-backlog-ado.
  • green_command: same as red_command
  • reason_not_testable:
  • test_form: example
  • invariant_refs: none
  • codebase_design_notes: The source list is the one seam the sync loop and the catalog share. The receipt shape changes to a map keyed by package; the tests cover reading it.
  • review_mode: cli
  • runtime_validation: required
  • runtime_target: sync:package-skills against the npm registry; hi update on a temp fixture repo that depends on @collective-intelligence/external-apps-client-sdk, against bun run --cwd apps/cli registry:build output.
  • runtime_evidence: The receipt JSON. The fixture's .agents/skills/ lists the seven skills. .agents/skills/human-backlog-ado/scripts/ado.py --help exits 0 with no config.
  • runtime_cleanup: Remove the temp Registry build, the fixture repo and apps/cli/dist; tag each with a run id and remove only those.
  • architecture_wave: A4
  • behavior_owner: ARC-004
  • integration_surface: hi update in CI solution repos
  • public_seam: packageSkillSources (new); receipt shape (keyed by package)
  • topology_delta: HI distributes the second package skill source through ci-solutions.
  • forbidden_ownership: Skill content edits (they come only from the tarball); an az tool
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-7]
  • Covers: OUT-007; AC-025, AC-026, AC-027

Coverage Matrix

Spec codeTask
OUT-001, OUT-002; AC-001..AC-008; INV-001T3
OUT-003, OUT-004; AC-009..AC-017T5
OUT-005; AC-018..AC-022T1
OUT-006; AC-023, AC-024T6
OUT-007; AC-025..AC-027T7
OUT-008; AC-028, AC-029T2
OUT-009, OUT-010; AC-030..AC-032; INV-002T4

Every OUT, AC and INV maps to exactly one task.

Plan Review

plan-reviewer (readonly subagent, 2026-10-30) checked edges, coverage, write overlap, RED/GREEN commands, skill guidance and repo facts. It confirmed the six native edges, full OUT/AC/INV coverage, and the cited facts in settings.ts, package-skills.ts, sync-package-skills.mjs, ci-app ci.yml:514-525, the lint package and write-backlog/SKILL.md:61. All nine findings are applied:

#SeverityFindingResolution
1HighThe merge starts a failing non-staged push release run; the dispatch has no package filterD8, T6 steps 4 and 6, two Risk rows
2HighT7 shares files and results with T2 and T5 but had no order ruleD17, graph, W5 entry
3MediumA staged run creates no release tagT6 validation
4Mediumsetup-human-backlog was outside the skill-text checks; D7 named package.json that T4 does not ownT4 owned_paths and validation; T1 test iterates skills/*; D7
5MediumThe T7 RED needed the real T6 tarballT7 RED uses a test-built fixture; the real tarball stays in runtime evidence
6LowHI-REPO-002 applies to T7 test filesCodebase Findings
7LowTwo ways to run tsprover in T3T3 uses bun run check:models
8LowNo decision on the Baseline compatibility lineD18
9Lowci-app origin/main movedCIAPP_BASE row; T6 step 4

On this page