Plan: Human Backlog
Execution Plan: Human Backlog
Context Pointers
| Alias | Source | Exact identity | Freshness rule |
|---|---|---|---|
SPEC | SPEC.md blob | commit 72c46e6137065eb11cc36514d97e6ab02c5920ff; git blob c7df796b285a171716854ab729a324c5eaf94152; sha256 7ea8719ebddc217657631abc4edb9ef04d1b4391c65c7362f8c484295b81a686 | A byte change invalidates every task proof that cites a SPEC# selector; a requirement change returns to Requirements Phase |
ARCH | ARCHITECTURE.md blob | commit 41368d2660f27b299ba62bf45f76fe6e12512b47; git blob 2c48097c9284ce97df82e93edf876558f0f7a695 (equals SPEC#architecture-source); sha256 e04d26db3f88d64fc118264f4e047e26328953e126307393212c9183800651ff | Same |
MODEL | apps/wiki/content/docs/project/specs/cli/human-backlog/models/human-state.proof.ts | git blob a5dd8e5fc00d2f175fad46f456711eb38595b3fb; sha256 edd67b47…4d51f1; 153 distinct states with tsprover@0.0.2 | Draft Model; T3 moves a copy to ci-app (D9) |
STATUS | apps/wiki/content/docs/project/grilling/human-backlog-pack-grill-status.md | git blob aac707a2f85292e8533128dd05f4f80d49a23af9 | Closed grill (closed R6) |
LOG | apps/wiki/content/docs/project/grilling/human-backlog-pack-grill-log.md (#q1–#q48, #glossary-q49, #closure) | git blob 25562f670fd2947898a6e20dc34f4d548c07bdbe | Same |
GLOSSARY | apps/wiki/content/docs/project/domains/human-backlog-pack-glossary.mdx | git blob bf6b170ae82b72be3e4b70fb7c802aa25dc6604a | Canonical terms: Core Backlog, Human Backlog, Business Request, Human State, Human Backlog skills, Human Backlog Config, Human Backlog Provider, Setup Human Backlog, Eject, Fog |
ZIP | Giovanni's skills zip /home/stefan/.t3/userdata/attachments/8a7f9c32-fce0-4c02-86da-000618b3db31-8c88ffb7-344c-4dde-a28c-06d2a61fbd22-zip.zip | sha256 a723a4f7544ad28167711d0b43b233e3bc3be01230a8628be2ce36674d161883 | Untrusted archive: extract into a new empty directory; run its Python only with python3 -I |
HI_BASE | wearedevpunks/harness-intelligence main | 886966be721e65c0d48d33c22046234af6f2e847; branch team/stefan/backlog-for-humans-skill-pack at 72c46e613 (pushed) | Base for release:classify and the one HI PR |
CIAPP_BASE | collective-intelligence-platform/ci-app origin/main | ce07167e8f 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_BASE | wearedevpunks/skills main | 0da31e06bcd215187b54923accbfb44e40bea141 (local main = origin/main); HI sync pin refs/tags/sync/property-testing-delivery-0da31e06bcd2 | Base 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: compiledandreadiness: agent-ready. - Both commits are on
origin/team/stefan/backlog-for-humans-skill-pack. SPEC#architecture-sourcenames theARCHcommit and blob, and theARCHblob atHEADis the same.ARCH#spec-traceabilityiscompleteand maps OUT-001..OUT-010 and AC-001..AC-032.- The
STATUS,LOGandGLOSSARYblobs match the source identities thatSPEC#architecture-sourcerecords.
Task Identity and Backlog Sync
task_identity_mode: provider-taskfor every task.relation_mode: native.backlog_sync_skip_reasonis blank.write-backlogprojected theSPECinto 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).
| Alias | Provider Task | Parent Story | Native blockedBy | Status at readback |
|---|---|---|---|---|
| T1 | IP-552 | IP-548 | none | Backlog |
| T2 | IP-553 | IP-549 | none | Backlog |
| T3 | IP-554 | IP-548 | IP-552 | Backlog |
| T4 | IP-555 | IP-549 | IP-552 | Backlog |
| T5 | IP-557 | IP-551 | IP-554 | Backlog |
| T6 | IP-556 | IP-550 | IP-554, IP-555 | Backlog |
| T7 | IP-558 | IP-550 | IP-556 | Backlog |
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), theado.pypublic CLI seam (ARCH#arc-003), a settings key (ARCH#arc-005), and awrite-backlogbranch (ARCH#arc-006). - New cross-owner edges: npm tarball → HI sync →
ci-solutionsPack;write-backlog→ado.pyby 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-packis clean and pushed. It carries the grill, glossary,ARCH,SPECandMODEL. - HI CLI version:
apps/cli/package.json6.6.1.CHANGELOG.mdhas an empty## Unreleased.BASELINE_CHANGELOG.md## Unreleasedholds themodel-checkingentry (Compatibility>=6.3.0 <7.0.0). apps/cli/src/data/catalog/package-skills.tshas one source (collectiveIntelligenceLintSkills, pin0.1.24).scripts/sync-package-skills.mjstakes onesource. Tests:apps/cli/src/scripts/sync-package-skills.test.ts.apps/cli/src/registry/settings.ts:20SettingsDocumenthas nohumanBacklog.check.ts:101decodeCheckSettings. Tests:settings.test.ts,check.test.ts.apps/cli/src/data/catalog/tools.ts:114already haspython3. It has noazentry.- The ci-app public packages are under
packages/public/*and have nobacklog.packages/public/lintis the precedent for a package that ships skills:filesincludesskills, and it hasAGENTS.md, aCLAUDE.mdmirror andCHANGELOG.md. - ci-app CI (
.github/workflows/ci.yml:514) runsbun run --cwd <dir> test:packfor everypackages/public/*/. A package withouttest:packfails that job. - ci-app release (
.github/workflows/release-npm-packages.yml):workflow_dispatchinputsbump,versionandstage.stageis "required for new packages": it stages the publish for a maintainer's npm 2FA approval and usesNPM_BOOTSTRAP_TOKEN. - The local ci-app checkout
/home/stefan/repos/collective-intelligenceis onmainatbdb8ff860e, behindorigin/main, and has untracked.agents/skills/[DEPRECATED] *folders. Do not use it as a work tree (D6). - Skills repo
/home/stefan/repos/skills: onmainatSKILLS_BASE. It is clean except the pre-existing untrackedtests/fixtures/v43/IP-453/. Never stage that folder. ZIPholdsskills/{create-business-request,analyze-business-request,update-business-request,plan-sprint,create-bug}/(eachSKILL.mdplusreferences/),skills/_shared/scripts/ado.py, andskills/_shared/tests/test_{br_revision,ratings,sprint_planning,bug_intake}.py(72 tests). It also has__MACOSX/and.DS_Storenoise.- The Emera repos do not hold Giovanni's skills or
ado.py.ZIPis the only source.
Problem and Solution Shape
- Problem:
SPEC#context. - Solution:
SPEC#out-001..SPEC#out-010, with the structure inARCH#whole-system. - Delivery order (follows
ARCH#flow-004):- Build the ci-app package: port (T1), then lifecycle and
set-state(T3), then setup, doctor and Eject (T4). - In parallel: the HI setting (T2) and the
write-backlogbranch (T5). - Publish the package (T6).
- HI pins the published version, syncs it into
ci-solutions, and releases (T7).
- Build the ci-app package: port (T1), then lifecycle and
Dependency Readiness
Ready (copied from SPEC#dependency-readiness). Re-verified at plan time:
886966be7is HIorigin/main.npm_release.pyglob and staged publish are present on ci-apporigin/maince07167e8f.- 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-packfrom886966be7. T2, T5 (HI part) and T7 write here. One PR. - Skills repo: the checked-out
mainonly. T5 commits and pushes there and tags it; thenbun run sync:skillsin HI. - ci-app: branch
team/stefan/human-backlog-packagefromorigin/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
| Id | Decision | Resolution | Evidence |
|---|---|---|---|
| D1 | Task identity | provider-task, native; Tn aliases above | references/backlog-sync.md; Linear readback 2026-10-30 |
| D2 | Applicability | architecture-bearing | Section above |
| D3 (P1) | HI release kind | Mixed: apps/cli/package.json 6.6.1 → 6.7.0 with a CHANGELOG.md ## 6.7.0 section, plus BASELINE_CHANGELOG.md ## Unreleased entries | User: "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 Giovanni | Does not gate the first publish. The review stays parked (owner Stefan with Giovanni). Its outcomes ship as a later package release | User: "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 migration | Outside this plan. It is a manual operation after the joint review, done from setup-human-backlog/references/process.md | User: "agree, will see later" |
| D6 | ci-app branch and checkout | team/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 itself | SPEC#branch-base-intent leaves the choice to the plan; ci-app branch convention team/stefan/<slug>; the local checkout is stale and dirty |
| D7 | T3 and T4 both edit ado.py | T3 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 |
| D8 | First package version and release run | Release 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 filter | npm_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) |
| D9 | Model commit and CI | T3 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 workflow | model-checking Commit and CI; ci.yml:514 loop; AC-023 (no extra tarball entries) |
| D10 | Stateful property tooling | Python 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 Hypothesis | ci-app CI installs no Python packages; tdd/properties.md generator rules (full declared shape; bounding is not narrowing) |
| D11 | test:pack on the branch before T6 | T1 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:models | ci.yml:514 fails a package without test:pack |
| D12 | Skills repo custody | Workers 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" |
| D13 | HI .agents/skills | Not edited. sync:skills and sync:package-skills write apps/cli/skills/** only; installed copies arrive through hi update | Root CLAUDE.md: no hand edits of .agents/skills/*; precedent brainstorm-grill-altitude D13 |
| D14 | Port source | ZIP 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/scripts | ARCH#modules-and-interfaces; Initial Situation |
| D15 | Outward actions | T5 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 action | Harness rule on outward-facing actions; stage needs maintainer 2FA |
| D17 | T7 order after T2 and T5 | T7 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 sync | Shared files; plan review finding 2 |
| D18 | Baseline compatibility line | Stays >=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 tool | BASELINE_CHANGELOG.md:5; T2 expected_red_failure; tools.ts:114 |
| D16 | Pin quotes in docs | T5 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 stays | grep -rln 0da31e06bcd2 at plan time |
Assumptions and Constraints
- Constraints:
SPEC#constraints. Fixed Human State names, no mapping layer; HI requires no provider tool;write-backlogstays 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-backlogand the packageAGENTS.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) undersystemd-run --user --scope --slice=agent-work.slice … nice -n 10. Remove every temp directory and theZIPextraction in the same task. - Lefthook: if a hook rewrites
.githooks/pre-commitor 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 cleanorigin/mainworktree and record it before any--no-verify. - CLI tests: write new Vitest cases in the
(): PromiseLike<void> => Effect.runPromise(Effect.gen(...))form, with no newasyncfunctions and no top-levelnode:*imports (CI changed-line lint). - Use a disk
TMPDIRfor full CLI tests. Runbun run buildbeforebuild-dist/release-publicationtests, then deleteapps/cli/dist.
Codebase Findings
-
package-skills.tsexportscollectiveIntelligenceLintSkillsandpackageSkillSourceDirectory. The sync script imports the lint source directly (sync-package-skills.mjs:26-29) and defaultssourceto it (:60). The receipt is one object today. -
packs.tsci-solutionshas trigger packages but no detection technology. The 6.6.1 fix installs lint devDependencies for such Packs. The detection test issrc/registry/shape.test.ts:363-391. Membership tests aresrc/registry/publisher/sources/{skills,packs}.test.ts. -
ci-solution-structureappears in wiki pagesharness/skills-and-packs/{skill-reference,skill-packs,skill-graph,skill-model}.mdxand in runbookhi-cli-scaffolding.md:655. T7 adds the seven skills where theci-solutionsmembership is listed. -
Skills repo tests:
node --test tests/*.test.mjs, with ninewrite-backlog*and backlog contract files.write-backlog/SKILL.mdstep 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-docsandwiki-knowledge-contract: not applicable (nodocs/**orapps/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 editsapps/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
| Page | Selected by | Claims used | Freshness | Status / evidence |
|---|---|---|---|---|
| Grill status, grill log | Grilling cue | Q1–Q48, Glossary Q49, closure | fresh | Accepted decisions. Blobs match SPEC#architecture-source |
| Human Backlog Glossary | Domains cue | Canonical terms and axioms | fresh | Accepted. Blob matches |
| CLI scaffolding runbook, line 34 (settings table) and lines 653–655 (skill sync, package skills) | search settings.json, package-skills | Settings keys; the sync:package-skills procedure, receipt and tarball override; the skills sync pin | fresh. Line 34 becomes stale at T2; lines 653–655 at T5 and T7 | Verified implementation against settings.ts, sync-package-skills.mjs and sync-skills-repo.mjs:23-24 |
| Skill packs, Skill reference, Skill graph, Skill model | search ci-solution-structure | ci-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.pyand.github/workflows/{ci,release-npm-packages}.ymlatCIAPP_BASE. - Effect Schema checks:
SPEC#dependency-readiness(Effect 4.1.0Schema.ts:6889,:7013). Re-read throughopensrc path effectif the pin changed. tsprover@0.0.2behavior: installedmodel-checkingskill.- 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| Owner | Responsibility | Public entrypoint | Must not absorb |
|---|---|---|---|
| ARC-002 package | Source of truth for the seven skill folders and the Python tests | npm tarball package/skills/<skill> | HI catalog data; client config |
ARC-003 ado.py | Config resolution, az token, every Human Backlog read and write, forward-only rule | CLI commands (ARCH#arc-003) | Delivery evidence logic; HI settings schema |
ARC-007 setup-human-backlog | Interview, write the Human Backlog Config, run doctor, request an Eject | Skill invocation; ado.py doctor, ado.py eject --out | Process creation through the API (LOG#q37) |
| ARC-005 settings | Validate humanBacklog shape | SettingsDocument.humanBacklog | An hi init prompt; provider calls |
| ARC-004 sync and catalog | Pin, copy and catalog package skills | packageSkillSources, skills.ts, packs.ts | Skill content; an az tool entry |
ARC-006 write-backlog branch | Owed Human State from Core Backlog evidence; Fog ↔ Business Request links | references/human-backlog.md from step 9 | Direct Azure DevOps REST calls; blocking delivery |
Declared Dependency Graph
Forbidden edges:
- Any skill or
write-backlog→ Azure DevOps REST withoutado.py. - Skills repo → ci-app beyond the installed helper path.
- HI → an
aztool entry. ado.py→ HI code.- HI tests → Python.
All edges are one-way and acyclic.
Responsibility Acceptance Criteria
| criterion_id | Owner | Observable assertion | Evidence | due_architecture_wave | Tasks |
|---|---|---|---|---|---|
| RAC-1 | ARC-002, ARC-003 | Ported 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 empty | A1 | T1 |
| RAC-2 | ARC-005 | SettingsDocument 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.ts | A1 | T2 |
| RAC-3 | ARC-003 | set-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 states | A2 | T3 |
| RAC-4 | ARC-007 | doctor 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.py | A2 | T4 |
| RAC-5 | ARC-006, ARC-008 | write-backlog branch text meets AC-009..AC-017, and HI syncs it | tests/write-backlog-human-backlog.contract.test.mjs; HI sync receipt | A2 | T5 |
| RAC-6 | ARC-002 | The 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.0 | A3 | T6 |
| RAC-7 | ARC-004 | Two 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 run | A4 | T7 |
Architecture Waves
| Wave | Topology delta | Entry | Criteria due | Temporary seams | Checkpoint |
|---|---|---|---|---|---|
| A1 boundary establishment | Package and generic ado.py exist; the settings key exists | none | RAC-1, RAC-2 | none | CP-A1: RAC-1 and RAC-2 green; forbidden-edge grep (az in tools.ts, client text in skills/) empty |
| A2 behavior slices | set-state and lifecycle writers; setup, doctor and Eject; write-backlog branch synced into HI | CP-A1 for the consumed owner only | RAC-3, RAC-4, RAC-5 | none | CP-A2: RAC-1..RAC-5; the full package unittest suite; check:models |
| A3 publish | Tarball on npm | CP-A2 (RAC-3, RAC-4) | RAC-6 | none | CP-A3: npm view readback, plus RAC-1, RAC-3 and RAC-4 regression via test:pack |
| A4 distribution and final closure | HI pins, syncs and catalogs the package | CP-A3 | RAC-7 | none | CP-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
| Seam | Owner | Allowed consumers | Change in this plan |
|---|---|---|---|
ado.py CLI (ARCH#arc-003) | ARC-003 | Sibling skills by ../human-backlog-ado/scripts/ado.py; write-backlog by .agents/skills/human-backlog-ado/scripts/ado.py; setup-human-backlog | New 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-007 | ado.py, write-backlog, hi check | New optional key |
Tarball layout package/skills/<skill> | ARC-002 | sync-package-skills.mjs | New package |
packageSkillSources | ARC-004 | Sync script, skills.ts | Replaces the single default source |
Fog ↔ Business Request link format (ARCH#arc-008) | ARC-006 | write-backlog runs; people | New |
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
| Wave | Tasks (earliest frontier) | Repository and write scope | Notes |
|---|---|---|---|
| W1 | T1, T2 | ci-app package; HI apps/cli/src/registry + CHANGELOG.md + runbook | Disjoint repositories, parallel |
| W2 | T3 | ci-app package | T4 is unblocked by provider edges but waits for the T3 Task Gate (D7) |
| W3 | T4, T5 | ci-app package; skills main + HI sync paths | Disjoint. T5's HI part writes the runbook and waits for the T2 Task Gate if T2 is still open |
| W4 | T6 | ci-app package + PR + release | Outward actions need user go (D15) |
| W5 | T7 | HI apps/cli + changelogs + wiki + PR | Entry: 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 frompackages/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) keepsMODELgreen in CI.- HI: Vitest suites around settings decoding,
syncPackageSkillswith a tarball override (HI_CI_BACKLOG_TARBALL), and catalog membership.bun run --cwd apps/cli check-typesandlintfor the affected workspace. - Skills repo:
node --test tests/write-backlog-human-backlog.contract.test.mjs, thennpm test(light suite). - Runtime: T6 (CI run on the PR, staged publish,
npm viewreadback) and T7 (sync:package-skillsfrom npm;hi updateon a fixture repo against a locally built Registry). - CI owns the full repository suites (
implement-spec/references/validation-scope.md).
Risks and Mitigations
| Risk | Mitigation |
|---|---|
Concurrent edits to ado.py | D7: 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 npm | D8: 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 too | D8: 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 install | Stdlib only (D10). T6 runs CI on the PR before merge |
test:pack missing breaks ci-app CI on intermediate pushes | D11 placeholder. Push the ci-app branch only from T6 |
__MACOSX or .DS_Store gets into the tarball | D14 skip list. T6 test:pack asserts the exact tarball entries |
| The ci-app oxfmt or lint hooks reject Python or Markdown files | Run 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 maintainer | D15. 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 commits | T5 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 names | T5 reads ado.py --help from the T3 result, and the contract test asserts the exact set-state call |
| The Giovanni review later changes state names | D4. Fix through a later package release and a new HI pin |
| Pre-commit hook fails on unrelated lint | Prove 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-decisionsrow 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-backlogreconcile should update it if the user wants the provider body to match D4.
Planning Run Record
planning-discoveryand$parallel-researchwere skipped. The evidence set was small and read locally: HI catalog, sync and settings sources; ci-apporigin/mainworkflows, release script and the lint package; the skills repowrite-backlog;ZIPlisting; 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-plannerproduced the graph and task contract.$tdd(properties.mdForm and Patterns) produced the RED/GREEN targets, Forms and Sensitivity Proofs.$codebase-designproduced the seam notes per task.$show-meproduced the topology, dependency and wave views.$wait-whatran 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_reasonblank;status: Planned. - Execution fields that start blank:
log,files edited/created,red_evidence,green_evidence,sensitivity_evidence,runtime_evidence. - Runtime:
runtime_validation: not_requiredunless the task says so; thenruntime_targetandruntime_cleanuparenot_applicable. relevant_input_setalways includes theSPEC,ARCHandMODELidentities. Re-hash them before and after checks.- ci-app tasks run in the D6 worktree, named
$CIAPPbelow.$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 toAGENTS.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-apppackages/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-ownedmktemp -dextraction ofZIP, removed at task end. - relevant_input_set: common;
ZIPsha256 equalsa723a4f7…161883before extraction;CIAPP_BASESHA. - wave_boundary: W1
- description:
- Extract
ZIP(D14) and copy the five skills,ado.pyand the four test files into theARCH#modules-and-interfaceslayout. - Write the new tests first (see
tdd_target), then makeado.pygeneric:- Replace the
ORG,PROJECTandTENANTconstants with a lazyload_config(). Order:ADO_*env, thenhumanBacklogin the nearest.devpunks/settings.jsonabove the working directory, thenconfig.jsonbesideado.py. - Derive org and project from
projectUrl. A missingprovider,projectUrlortenantstops with the key name before any network call.--helpworks with no config. - Make
token()use onlyaz account get-access-token --tenant <tenant>. A missingazor no login stops with install andaz login --tenant <tenant>guidance. - Remove every client string (AC-018) and keep the
planning-checktwo-week rule.
- Replace the
- 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).
- Point the sibling skills at
../human-backlog-ado/scripts/ado.py. Writehuman-backlog-ado/SKILL.mdas the helper reference for the existing commands. - 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, aREADME.md, and anAGENTS.mdthat follows the lint package pattern, withwriting-for-agentsfor skill edits and a## Skillstable.
- Register the workspace as the lint package is registered, and update
bun.lock.
- Extract
- validation:
cd $PKG && python3 -m unittest discover -s testspasses. It includes the 72 adapted tests.grep -rnE 'emera-group|Collective-Intelligence|b60db498-a991-498d-bfb5-7f0657f02891|definitionId=1' $PKG/skillsgives no hit.find $PKG -name .DS_Store -o -name __MACOSXis empty.bun run --cwd $PKG test:packexits 0.- ci-app
bun run format:checkandlinton 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-agentsapplicable_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:
tddapplicable_behavior: Writetest_config.py,test_auth.pyandtest_skill_text.pyagainst the verbatim port and capture RED before you generalizeado.py.test_skill_text.pyiterates everyskills/*folder, so later skills are covered without a new test. - skill:
codebase-designapplicable_behavior: Keepload_config()andtoken()as the only config and auth seams; every command reads them lazily, so--helpneeds no config.
- skill:
- tdd_status: required
- tdd_target:
load_config()resolvesADO_*env over settings overconfig.json, and a missingtenantstops 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_textlistsemera-groupand the tenant UUID inskills/. - 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.pyfile 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.pyCLI, called by the sibling skills - public_seam:
ado.pyexisting 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); anyazalternative - 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(## Unreleasedbullet 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; EffectSchema.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 inbun.lock. - wave_boundary: W1
- description:
- Add
HumanBacklogSettingsexactly as inARCH#arc-005, with anhttps:URL check forratingsPipelineUrl. - Add
SettingsDocument.humanBacklogasSchema.optional, and makedecodeCheckSettingsread it. Add noProjectIntentfield and nohi initprompt. - Add tests for accepted and rejected shapes, for
hi checkreporting.devpunks/settings.json: <error>, and forhi updatekeeping an existing value unchanged. - Add a CLI
CHANGELOG.md## Unreleasedbullet and the runbook settings row.
- Add
- validation:
bun run --cwd apps/cli test -- src/registry/settings.test.ts src/registry/check.test.tspasses.bun run --cwd apps/cli check-typesandbun run --cwd apps/cli lintare clean.bun run --cwd apps/wiki check:healthshows no new finding.
- assigned_skills: [
effect,quality-types,tdd] - implementation_skill_guidance:
- skill:
effectapplicable_behavior: Use Effect 4 Schema checks (Schema.String.check(Schema.isPattern(...)),Schema.isUUID()), not hand-written validation. - skill:
quality-typesapplicable_behavior: Derive the settings type from the schema. Add no restated interface, and keepprovidera literal. - skill:
tddapplicable_behavior: First show that a document with tenant"not-a-uuid"decodes today (RED), then make it fail.
- skill:
- tdd_status: required
- tdd_target:
hi checkfails with.devpunks/settings.json: <error>for ahumanBacklogwhose 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
humanBacklogabsent from the decoded document. - green_command: same as
red_command - reason_not_testable:
- test_form: example
- invariant_refs: none
- codebase_design_notes: Interface:
SettingsDocumentis 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 initsettings read and write - public_seam:
humanBacklogkey (new, optional) - topology_delta: The settings schema gains one optional struct.
- forbidden_ownership: Provider calls;
hi initprompts; 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(thetsprover0.0.2 devDependency). - relevant_input_set: common; T1 Task Gate commit;
MODELbloba5dd8e5f…. - wave_boundary: W2
- description:
- Add
BR_FLOWandBR_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-revfails before any write.
createsets no State.revision-checkuses 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> Plannedat the first sprint of the first linked Feature),update-business-request(Rejected or Withdrawn only on user request). - Document
set-stateinhuman-backlog-ado/SKILL.md. - Commit the Model and CI wiring (D9).
- Add
- validation:
cd $PKG && python3 -m unittest discover -s testspasses.bun run --cwd $PKG check:modelsexits 0 and reports 153 states.bun run --cwd $PKG type-checkexits 0.test_skill_text.pyasserts each writer's exactset-statecall and thatcreatesends 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-agentsapplicable_behavior: State each writer's trigger and exactset-statecall as one step with a checkable completion criterion. Name the Human States exactly, and add no mapping layer. - skill:
tddapplicable_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-checkingapplicable_behavior: Run step 4 (replay each trace action as one command, in order) and step 5 (move the Model, addtsprover0.0.2, addcheck:models, make CI run it throughtest:pack). - skill:
codebase-designapplicable_behavior: Keep the forward-only rule insideset-stateas the one write path for State. Skills call it; they do not patch State themselves.
- skill:
- tdd_status: required
- tdd_target:
ado.py set-state 1 Plannedon 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-statebehind the CLI. The fake keeps its revision counter sotest /revis observable. The Model is outsidefiles. - 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);
doctorandeject(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
--outdirectories, 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,azlogin, project reach, work-item types, fields and the eight Human States againstreferences/process.md. It reportsreadyonly when every check passes; otherwise it reportsblockedwith the full mismatch list. - Add
eject --out PATH. It fails without--out. It writes one zip with the sibling skill folders (no tests),config.jsonandMANIFEST.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-backlogskill, which runs: interview → writehumanBacklog→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.
- Add
- validation:
cd $PKG && python3 -m unittest discover -s testspasses.doctorrecords zero write calls on the fake.- Two
ejectruns over the same tree give the same skill-tree sha256. test_skill_text.pycoverssetup-human-backlog(English, language rule, no client text), and the AC-018 grep over$PKG/skillsgives no hit.- The INV-002 Sensitivity Proof is recorded.
- assigned_skills: [
writing-for-agents,tdd,codebase-design] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_behavior: Writesetup-human-backlogas ordered steps that end onreadyorblocked. Put the process definition and the Eject contents in disclosed references. - skill:
tddapplicable_behavior: Start with one blocked example (missing Human State), then the security-gate property over every subset of failing checks. - skill:
codebase-designapplicable_behavior:doctorreuses the same read helpers as other commands;ejecthashes the installed sibling tree, not package metadata.
- skill:
- tdd_status: required
- tdd_target:
ado.py doctoron a project that lacks the Human State "On staging" reportsblockedwith 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'andinvalid 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:
doctoris a pure gate over read results.ejectis 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-backloginvocation; 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
T5: Add the write-backlog human-state branch and Fog ↔ Business Request links
- 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/skillsskills/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/**exceptapps/cli/skills/npm/**,BASELINE_CHANGELOG.md(## Unreleasedbullet),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; T3ado.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 offog-intake.md,delivery-status.mdandreferences/providers/*before and after (must be equal, AC-015). - wave_boundary: W3
- description:
- Write
references/human-backlog.md:- Applicability:
humanBacklogis 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-statewith 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.
- Applicability:
- Add one pointer line in
SKILL.mdstep 9. - Add the contract test.
- The parent commits, pushes
mainand tags (D12, D15). - In HI:
- Bump the pin and run
bun run --cwd apps/cli sync:skills. - Verify that the
apps/cli/.devpunks-cache/skills-sync.jsoncommit equals the new SHA. - Update the two pin quotes (D16).
- Add the
BASELINE_CHANGELOG.mdbullet with the canonical source line.
- Bump the pin and run
- Write
- validation:
- Skills repo:
node --test tests/write-backlog-human-backlog.contract.test.mjs, thennpm testwith no new failure against theSKILLS_BASEbaseline. 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/providersis empty.- HI: the receipt commit check;
bun run --cwd apps/cli test -- src/registry/publisher/sources/skills.test.tspasses;bun run --cwd apps/wiki check:healthshows no new finding.
- Skills repo:
- assigned_skills: [
writing-for-agents,tdd] - implementation_skill_guidance:
- skill:
writing-for-agentsapplicable_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:
tddapplicable_behavior: Write the contract test first and prove it RED againstSKILLS_BASE(reference missing, no pointer line), then GREEN.
- skill:
- tdd_status: required
- tdd_target: The
write-backlogstep 9 points toreferences/human-backlog.md, and that reference names the owed-state table, the exactset-statecall 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:
ENOENTforreferences/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-backloglives in one reference. Theado.pypath is the only seam to ci-app. - review_mode: cli
- architecture_wave: A2
- behavior_owner: ARC-006, ARC-008
- integration_surface:
write-backlogruns at Fog intake and delivery status - public_seam: Fog ↔ Business Request link format (new); consumes
ado.py set-state - topology_delta:
write-backloggains one guarded branch toward the Human Backlog. - forbidden_ownership: Direct Azure DevOps REST calls; edits to provider references,
fog-intake.mdanddelivery-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 onteam/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 rootAGENTS.mdPR 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:
- Add
tools/check-pack.py(not shipped). It runsnpm pack --dry-run --jsonand asserts the exact rootREADME.md,package.jsonandskills; the seven skill folders; and no test,.DS_Storeor__MACOSXentry. - Set
test:packto the check, thentest, thencheck:models(D9, D11). - Finish
README.md(install, the seven skills, Human Backlog Config,azlogin) and theCHANGELOG.mdentry. - Re-read
ci.yml,release-npm-packages.ymlandnpm_release.pyat the PR base. Push the branch and open the ci-app PR with a$prbody; Merge Danger names the expected failingpushrelease run (D8, D15). - Get CI green on the PR head SHA, and merge after a user go.
- Run
python .github/scripts/npm_release.py plan --plan <tmp>/plan.jsonon the mergedmainSHA (read-only). Show the user the selected packages and versions. After a user go, dispatch the release withbump: minor,stage: true(D8). - After maintainer 2FA approval, read back the version.
- Add
- validation:
bun run --cwd $PKG test:packpasses locally.- The ci-app CI "Pack test" and "Pack, check and install" entries pass for
backlogon the PR head SHA. - The staged run log shows
@collective-intelligence/backlog@0.1.0staged. After maintainer approval,npm view @collective-intelligence/backlog@0.1.0 versionreturns0.1.0. The release tag is created by a later non-staged run from the npmgitHead; it is not a T6 gate.
- assigned_skills: [
tdd,pr] - implementation_skill_guidance:
- skill:
tddapplicable_behavior: The pack check passes on its first honest run, so prove it with a Sensitivity Proof: addteststofiles, see the failure, revert. - skill:
prapplicable_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).
- skill:
- tdd_status: required
- tdd_target:
test:packfails when the tarball contains anything beyondREADME.md,package.jsonand 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.pyreports an unexpected tarball entrypackage/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 gitHeadoutput, andnpm pack @collective-intelligence/backlog@0.1.0 --dry-run --jsonentries that equal the AC-023 set. - runtime_cleanup: Remove local pack output and
/tmpcopies. 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; T6npm viewreadback;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),collectiveIntelligenceBacklogSkillsandpackageSkillSources(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.tsentries (tier: "framework",framework: "ci-solutions",language: null,requiresTools: ["python3"]) and theci-solutionsmembership with onepromptDetailsline. Add noaztool. - Release (D3):
apps/cli/package.json→6.7.0;CHANGELOG.md## 6.7.0 - <date>from## Unreleasedplus the T7 bullet; aBASELINE_CHANGELOG.mdbullet for the sevenci-solutionsskills. - Update the runbook paragraph and the four harness pages.
- Open the HI PR from
team/stefan/backlog-for-humans-skill-pack(D15).
- Add
- 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.tspasses.bun run --cwd apps/cli check-typesandlintare 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 HEADreportsmixed.bun run --cwd apps/wiki check:healthandcheck:contentshow no new finding.- The HI PR CI is green.
- assigned_skills: [
quality-types,tdd,pr,hi-cli] - implementation_skill_guidance:
- skill:
quality-typesapplicable_behavior: KeepPackageSkillSourceas the one source type, and derive the skill-id list from the source constant instead of restating it. - skill:
tddapplicable_behavior: First show thatsyncPackageSkillswithHI_CI_BACKLOG_TARBALLset 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 toruntime_evidence. - skill:
prapplicable_behavior: Write the HI PR body as a Managed Region covering the spec, plan, setting,write-backlogsync and package sync; Merge Danger names the mixed release. - skill:
hi-cliapplicable_behavior: Drive the AC-027 runtime check withhi updateagainst a locally built Registry throughHI_REGISTRY_URL=file://….
- skill:
- tdd_status: required
- tdd_target:
syncPackageSkillswithHI_CI_BACKLOG_TARBALLpointing at a fixture tarball that the test builds itself (as the existingHI_ACME_LINT_TARBALLcase does) copies the seven skills intoskills/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:
packageSkillSourcesis not exported; the backlog directory is absent; theci-solutionsPack lackshuman-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-skillsagainst the npm registry;hi updateon a temp fixture repo that depends on@collective-intelligence/external-apps-client-sdk, againstbun run --cwd apps/cli registry:buildoutput. - runtime_evidence: The receipt JSON. The fixture's
.agents/skills/lists the seven skills..agents/skills/human-backlog-ado/scripts/ado.py --helpexits 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 updatein 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
aztool - temporary_seams: none
- responsibility_acceptance_criteria: [RAC-7]
- Covers: OUT-007; AC-025, AC-026, AC-027
Coverage Matrix
| Spec code | Task |
|---|---|
| OUT-001, OUT-002; AC-001..AC-008; INV-001 | T3 |
| OUT-003, OUT-004; AC-009..AC-017 | T5 |
| OUT-005; AC-018..AC-022 | T1 |
| OUT-006; AC-023, AC-024 | T6 |
| OUT-007; AC-025..AC-027 | T7 |
| OUT-008; AC-028, AC-029 | T2 |
| OUT-009, OUT-010; AC-030..AC-032; INV-002 | T4 |
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:
| # | Severity | Finding | Resolution |
|---|---|---|---|
| 1 | High | The merge starts a failing non-staged push release run; the dispatch has no package filter | D8, T6 steps 4 and 6, two Risk rows |
| 2 | High | T7 shares files and results with T2 and T5 but had no order rule | D17, graph, W5 entry |
| 3 | Medium | A staged run creates no release tag | T6 validation |
| 4 | Medium | setup-human-backlog was outside the skill-text checks; D7 named package.json that T4 does not own | T4 owned_paths and validation; T1 test iterates skills/*; D7 |
| 5 | Medium | The T7 RED needed the real T6 tarball | T7 RED uses a test-built fixture; the real tarball stays in runtime evidence |
| 6 | Low | HI-REPO-002 applies to T7 test files | Codebase Findings |
| 7 | Low | Two ways to run tsprover in T3 | T3 uses bun run check:models |
| 8 | Low | No decision on the Baseline compatibility line | D18 |
| 9 | Low | ci-app origin/main moved | CIAPP_BASE row; T6 step 4 |