Harness Intelligence Wiki
SpecsCLIHuman Backlog

Human Backlog

Architecture: Human Backlog

Context and Scope

  • Capability identity: apps/wiki/content/docs/project/specs/cli/human-backlog/. Boundary: the Human Backlog skills, their ci-app package, their HI distribution through the ci-solutions Pack, the humanBacklog setting, and the write-backlog human-state branch.
  • Actors and outcome: business requesters and product owners at a client read and write Business Requests in the client's Azure DevOps project. They see each request's Human State without reading the Core Backlog. Our team installs the same skills in HI repos. A client gets a zip that runs in any harness. (Q1, Q8, Q38)
  • In scope: the items in Modules and Interfaces.
  • Non-goals: caching, staging retirement, BI metadata, document procedures, development-side skills, choice of the client harness (Brief: Out Of Scope). A delivery step that records staging and production evidence is outside this scope (Q19).
  • Spec: sibling SPEC.md in this folder.

Canonical Terms

The current terms are in the Human Backlog Glossary. This document uses them exactly:

  • Core Backlog: the HI-owned delivery backlog that only write-backlog writes.
  • Human Backlog: the client's Azure DevOps project.
  • Business Request: one business ask, a Human Backlog work item with no parent and no children.
  • Human State: Received, In analysis, Planned, In progress, On staging, Live, Rejected, Withdrawn.
  • Human Backlog skills, Human Backlog Config, Human Backlog Provider, Setup Human Backlog, Eject.
  • Fog, Story, Task keep their meaning from the project backlog operating model.

Axioms (Glossary Q34, Glossary Q27, Glossary Q23):

  1. The team owns the Human Backlog process. Clients change only the Human Backlog Config.
  2. Automated writers move a Business Request forward only. Live, Rejected and Withdrawn are final. Only a person corrects a state.
  3. A Business Request has one active Fog. A Fog has at most one Business Request.
  4. HI requires no provider-specific tool. Provider authentication belongs to the client environment.
  5. Merge is never staging. Staging is never production.

Sources

SourceRoleExact location and anchorImmutable revision or content hash
S1Grill status and closureapps/wiki/content/docs/project/grilling/human-backlog-pack-grill-status.md; Branch Dashboard, Current Round (Closure: closed R6)blob aac707a2f85292e8533128dd05f4f80d49a23af9 (axiom Checkable as hints added after closure, Glossary Q49)
S2Durable grill logapps/wiki/content/docs/project/grilling/human-backlog-pack-grill-log.md; #q1–#q48, #glossary-q1, #glossary-q23, #glossary-q27, #glossary-q34, #glossary-q49, #closureblob 25562f670fd2947898a6e20dc34f4d548c07bdbe
S3Current glossarystatus ## Glossary (S1) and published apps/wiki/content/docs/project/domains/human-backlog-pack-glossary.mdxblob bf6b170ae82b72be3e4b70fb7c802aa25dc6604a
S4Brainstorm Briefapps/wiki/content/docs/project/grilling/human-backlog-pack-brainstorm-brief.mdblob 99ace072dc0cac40ef55a707fc5d7bd3e48f5584 (sha256 at import 653eee1e…be16)
S5Giovanni's skills (current behavior)skills.zip attachment: _shared/scripts/ado.py (1,374 lines, 16 commands, ORG/PROJECT/TENANT env defaults, two-week check lines 652–658), five SKILL.md, 72 offline testssha256 a723a4f7544ad28167711d0b43b233e3bc3be01230a8628be2ce36674d161883
S6HI package skills sync (current behavior)apps/cli/src/data/catalog/package-skills.ts:collectiveIntelligenceLintSkills, packageSkillSourceDirectory; apps/cli/scripts/sync-package-skills.mjs:syncPackageSkills, main; apps/cli/src/data/catalog/skills.ts ci-solution-structure; apps/cli/src/data/catalog/packs.ts ci-solutionscommit 886966be721e65c0d48d33c22046234af6f2e847
S7HI settings (current behavior)apps/cli/src/registry/settings.ts:SettingsDocument, readSettingsDocument; apps/cli/src/registry/check.ts:decodeCheckSettings; apps/cli/src/registry/harness-adapters.ts:FileNameId (Schema.String.check(Schema.makeFilter…))commit 886966be7
S8Effect Schema primitivesEffect 4.1.0 packages/effect/src/Schema.ts:isPattern (line 6889), isUUID (line 7013)opensrc Effect-TS/effect 4.1.0
S9ci-app public package release (current behavior)packages/public/lint/package.json (files, test:pack); tools/test-pack.ts:55; .github/workflows/ci.yml:514-525; .github/workflows/release-npm-packages.yml; .github/scripts/npm_release.py:137-144, :617-621ci-app commit d34b4b06bb
S10write-backlog (current behavior).agents/skills/write-backlog/SKILL.md step 8–9; references/delivery-status.md (facts, Fog completion on production only, Cancelled/Superseded); references/providers/linear.md (Fog Kind/fog, relatedTo); references/providers/github.md (Fog backlink)commit 886966be7
S11Human State modelmodels/human-state.proof.ts in this folderchecked with tsprover@0.0.2, 153 distinct states

Source Disposition

Question / entryDispositionAccepted detail, replacement, or unresolved pointEvidenceParked owner / resume trigger
Q1–Q7, Q10–Q25, Q27–Q32, Q34–Q48, Glossary Q49acceptedAs in Accepted Detail Coverage; Glossary Q49 adds test checkability hints onlyS2—
Q8 (#q8), team distribution linesupersededReplaced by Q38: ci-solutions Pack through sync:package-skills. The client zip part of Q8 stays accepted.S2 #q38—
Q9 (#q9)supersededReplaced by Q38: no human-backlog Pack; skills join ci-solutions; source in ci-appS2 #q38—
Q26 (#q26), test locationsupersededReplaced by Q42: tests in packages/public/backlog/tests/, outside skills/. The ci-app CI job part of Q26 stays accepted.S2 #q42—
Q33 (#q33), filename and foldersupersededReplaced by Q47: no version in the filename; --out path chosen by the user. Zip contents stay accepted.S2 #q47—
Brief rule "saved content always English"supersededReplaced by Q6 and Q22S2 #q6, #q22—
Giovanni confirmations (one script; state rename; ratings pipeline use of ado.py)unknownExternal confirmation at the joint review. Not a design input: the design keeps ado.py (Q10) and fixes the state names (Q3).S2 #closureStefan with Giovanni; before the ci-app package first publish

Whole System

Sources: Q38, Q39, Q43, Q44, Q25, Q47; S6, S9, S10.

Conclusion. One package in ci-app is the only source of the Human Backlog skills. HI copies a pinned version into the ci-solutions Pack, so every installed copy and every Eject come from one published tree. ado.py is the only code that writes to Azure DevOps. The skills and write-backlog reach the Human Backlog only through it, so its rules apply to every writer.

Block selector / component / levelOwnerState and authorityInterface / dependencySupported constraint and source
ARC-001 Human Backlog process (client Azure DevOps)The team creates it once by hand; the client hosts itAuthoritative for Business Requests, Human Backlog Epics/Features/PBIs/Bugs and Human States. Types, fields and the eight state names are fixed.Azure DevOps REST, reached only through ARC-003Q3, Q4, Q37; axiom 1
ARC-002 @collective-intelligence/backlog (ci-app packages/public/backlog/)ci-appSource of truth for the seven skill folders and the Python testsnpm tarball package/skills/<skill>; ci-app release workflow (glob packages/public/*)Q38, Q39, Q42, Q26 (CI job); S9
ARC-003 human-backlog-ado helper, scripts/ado.pyci-app (ARC-002)No state of its own. Reads the Human Backlog Config; writes Human Backlog items. Sole Human State writer interface.CLI commands incl. doctor, set-state, eject; az account get-access-token --tenant <tenant>Q10, Q24, Q28, Q36, Q41, Q45; S5
ARC-004 HI package skill sync and catalogapps/clipackage-skills.ts holds the pins; the receipt .devpunks-cache/package-skills-sync.json records what was copiedpackageSkillSources; sync-package-skills.mjs; skills.ts entries; packs.ts ci-solutionsQ38, Q40, Q43, Q27; S6
ARC-005 humanBacklog settingapps/cli schema; value written by ARC-007.devpunks/settings.json key; authoritative Human Backlog Config in HI reposSettingsDocument.humanBacklog, decodeCheckSettingsQ12, Q31, Q44; S7, S8
ARC-006 write-backlog human-state branchwearedevpunks/skillsWrites In progress, On staging, Live, and Withdrawn for a Cancelled Fog. Owns the Fog ↔ Business Request links.references/human-backlog.md; one pointer line in SKILL.md step 9; calls ARC-003 set-state by pathQ13–Q15, Q19–Q21, Q25, Q29, Q30, Q35, Q46; S10
ARC-007 setup-human-backlog and Ejectci-app (ARC-002)Writes the Human Backlog Config; produces the Eject zipado.py doctor, ado.py eject --out <path>; references/process.md, references/eject.mdQ11, Q23, Q31, Q32, Q33, Q37, Q47
ARC-008 Fog ↔ Business Request linkARC-006One link on the Fog plus one back link on the Business Request; the Fog side is in the Core BacklogLinear: attachment link; GitHub: body line Business Request: <url>; Azure DevOps: back link to the FogQ14, Q21, Q29

Critical Flows and Boundaries

FLOW-001 Business Request lifecycle

InAnalysis, InProgress and OnStaging are diagram ids for In analysis, In progress and On staging. Sources: Q2, Q16, Q18, Q34.

  • FLOW-001-STEP-001. create-business-request creates the item. Received is the initial state of the Business Request type, so create sets no State (Q45).
  • FLOW-001-STEP-002. analyze-business-request calls set-state <id> "In analysis" when it adds the first Feature link.
  • FLOW-001-STEP-003. plan-sprint calls set-state <id> Planned when the first linked Feature gets a sprint.
  • FLOW-001-STEP-004. A person decides Rejected or Withdrawn. update-business-request writes it on request; a person may also set it directly in Azure DevOps.
  • FLOW-001-STEP-005. Revision eligibility of update-business-request (Q17): Received with no linked Feature allows free edit; In analysis or Planned with every linked Feature New or Planned allows cascade; every other case blocks before any write.

Conclusion. Every automated arrow goes through set-state, which refuses a backward move and any move out of a final state (axiom 2). A person can still correct a state directly in Azure DevOps; no automated writer undoes that correction except by a later forward move.

FLOW-002 Delivery evidence to Human State

  • FLOW-002-STEP-001. A delivery caller sends a fact it observed (S10). This branch adds no new fact type.
  • FLOW-002-STEP-002. Core Backlog writes and readback happen first and do not depend on the Human Backlog (Q30).
  • FLOW-002-STEP-003. The branch runs only when humanBacklog is set and the Fog has a Business Request link. Otherwise it writes nothing and does not fail (Q20). The owed state comes from all evidence for the Fog's accepted scope (Q19):
    • In progress: the first Story or Task records work started;
    • On staging: every Story and Task has staging evidence;
    • Live: the Fog completes (production evidence for the whole scope);
    • Withdrawn: the Fog becomes Cancelled;
    • nothing: the Fog becomes Superseded (Q18); the link moves to the successor Fog in the same run (Q29).
  • FLOW-002-STEP-004. write-backlog calls .agents/skills/human-backlog-ado/scripts/ado.py set-state with one comment in the request's language: the date and, when known, the release name; no technical links (Q35). If the file is absent, it returns setup guidance and makes zero Human Backlog writes (Q25).
  • FLOW-002-STEP-005. A failed or missing write is returned in the residual delta and retried at the next delivery event. Forward-only makes the retry safe. A Human Backlog failure never blocks delivery (Q30).

Conclusion. The Core Backlog stays the delivery record; the Human State is a projection of its evidence. Until a delivery step records staging and production evidence (outside this scope), only In progress is written automatically (Q19).

FLOW-003 Setup and Eject

setup-human-backlog
  FLOW-003-STEP-001 interview: projectUrl, tenant, ratingsPipelineUrl?
  FLOW-003-STEP-002 write .devpunks/settings.json humanBacklog
  FLOW-003-STEP-003 ado.py doctor        # read-only, lists every mismatch
    ok        -> ready
    mismatch  -> blocked (team creates process from references/process.md)
  FLOW-003-STEP-004 on request: ask --out path
    ado.py eject --out <path>
      sibling skill folders (no tests) + config.json + MANIFEST.json
  • FLOW-003-STEP-001. The interview collects the Human Backlog Config. provider is always azure-devops (Q28).
  • FLOW-003-STEP-002. The skill writes the setting; hi init does not prompt for it (Q31).
  • FLOW-003-STEP-003. doctor checks login, the five work-item types and every field the skills use, exactly the eight Business Request states, team iterations, and one validateOnly create per type. It writes nothing. Any mismatch returns blocked with the full list (Q32). The team creates a missing process by hand (Q37).
  • FLOW-003-STEP-004. eject writes one zip to the user-chosen --out path. MANIFEST.json holds the package name, a sha256 of the skill tree, a sha256 of the config, and the date (Q47).

Conclusion. A client only gets an Eject that ran against a config the operator chose. The skill-tree hash identifies the published version, because an installed skill cannot read its npm version (Q47).

FLOW-004 Skill distribution

ci-app merge to main (packages/public/backlog changed)
  FLOW-004-STEP-001 npm_release.py: patch bump, test:pack, publish
HI
  FLOW-004-STEP-002 bump collectiveIntelligenceBacklogVersion
  FLOW-004-STEP-003 sync:package-skills  # loops packageSkillSources
    rm skills/npm/collective-intelligence-backlog
    copy package/skills/<7 skills>; receipt keyed by package name
  FLOW-004-STEP-004 Baseline release
HI-powered repo with a CI SDK dependency
  FLOW-004-STEP-005 hi update -> ci-solutions -> .agents/skills/<7 skills>
  • FLOW-004-STEP-001. The ci-app release finds the package by glob. Its first publish needs one manual staged run (S9 npm_release.py:617-621; Q42).
  • FLOW-004-STEP-002. HI bumps collectiveIntelligenceBacklogVersion to the published version (Q43).
  • FLOW-004-STEP-003. The sync clears only the directory that one source owns. A per-package receipt key stops the second source from overwriting the first (Q43).
  • FLOW-004-STEP-004. A Baseline release publishes the synced skills (S6).
  • FLOW-004-STEP-005. Every repo that depends on a CI SDK gets the seven skills. Without humanBacklog they only point to setup-human-backlog (Q40).

Conclusion. HI runs no Python tests. It trusts the pinned published version, the same as for the lint package (Q26).

FLOW-005 ado.py configuration and authentication

load_config()            # lazy: first command that needs it; --help needs none
  FLOW-005-STEP-001 ADO_* env vars
  FLOW-005-STEP-002 nearest .devpunks/settings.json humanBacklog (walk up)
  FLOW-005-STEP-003 config.json beside ado.py (Eject)
  missing provider/projectUrl/tenant -> stop, name the key, no network call
  org, project <- projectUrl https://dev.azure.com/{org}/{project}
token()
  FLOW-005-STEP-004 az account get-access-token --tenant <tenant>
  az missing or not logged in -> stop: install Azure CLI, az login --tenant <tenant>
  • FLOW-005-STEP-001. ADO_* env vars win (existing overrides, S5).
  • FLOW-005-STEP-002. Next, humanBacklog in the nearest .devpunks/settings.json above the working directory.
  • FLOW-005-STEP-003. Last, config.json beside ado.py in an Eject.
  • FLOW-005-STEP-004. The token comes only from az account get-access-token --tenant <tenant>.

Conclusion. The first match wins, so a client zip and an HI repo use the same code. A missing value or missing login stops before any network call (Q28, Q41).

Models

FlowModel pathInvariantsState countSensitivity Proof
FLOW-001 + FLOW-002: three writers on one Human State; write-backlog retrymodels/human-state.proof.tsnoAutomatedRegression (axiom 2, Q34, Q36); @leadsTo liveEvidenceOwed → settled (Q19, Q30): owed Live with fair retry ends in a final state153Remove the final-state guard → noAutomatedRegression violated. Remove the forward guard → noAutomatedRegression violated. Remove @fair from writeBacklogWrite → liveEvidenceOwed violated. Replace the evidence-derived owed state with "last event wins" → liveEvidenceOwed violated. Revert → passes, 153 states.

Model finding. The first check failed on the trace live fact → two more facts → started fact → write: a "last event wins" retry slot replaced an owed Live with In progress, so the request never reached Live. The accepted design derives each state from all evidence for the Fog scope (Q19), so the Model was corrected to that design, not the design to the Model. Implementation must keep this property: the owed state is the highest state the evidence supports, or Withdrawn on a Cancelled Fog that has no production evidence.

Model limits: a person's free correction to any state is not modelled; the Model covers Rejected and Withdrawn decisions only.

Modules and Interfaces

ci-app packages/public/backlog/                         ARC-002 (Q42)
├── package.json      name @collective-intelligence/backlog
│                     files ["README.md","skills"], publishConfig.access public
│                     test: python3 -m unittest discover -s tests
│                     test:pack: tarball root == README.md,package.json,skills
│                                + 7 skills present, then test
├── README.md
├── tests/            unittest (Giovanni's 72 adapted + config, set-state,
│                     doctor, eject); not published
└── skills/
    ├── human-backlog-ado/          ARC-003 (Q24, Q45)
    │   ├── SKILL.md                helper reference for sibling skills
    │   └── scripts/ado.py
    ├── create-business-request/    (Q48)
    ├── analyze-business-request/
    ├── update-business-request/
    ├── plan-sprint/
    ├── create-bug/
    └── setup-human-backlog/        ARC-007 (Q47)
        ├── SKILL.md
        └── references/process.md, references/eject.md

harness-intelligence apps/cli/                          ARC-004, ARC-005
├── src/data/catalog/package-skills.ts
│     + collectiveIntelligenceBacklogVersion
│     + collectiveIntelligenceBacklogSkills
│     + packageSkillSources = [lint, backlog]
├── scripts/sync-package-skills.mjs   iterate sources; receipt keyed by package
├── src/data/catalog/skills.ts        + 7 entries
├── src/data/catalog/packs.ts         ci-solutions: + 7 skills, + promptDetails
├── src/registry/settings.ts          + HumanBacklogSettings
└── src/registry/check.ts             decodeCheckSettings reads humanBacklog

wearedevpunks/skills skills/agnostic/requirements/write-backlog/   ARC-006
├── SKILL.md                    step 9: one pointer line
└── references/human-backlog.md new

ARC-003 ado.py interface (Q36, Q41, Q45)

BR_FLOW  = ("Received", "In analysis", "Planned", "In progress",
            "On staging", "Live")
BR_FINAL = {"Live", "Rejected", "Withdrawn"}

load_config() -> {provider, org, project, tenant, ratingsPipelineUrl?}
token()       -> az account get-access-token --tenant <tenant>

existing: whoami get backlog search create update link unlink
          revision-check planning-context planning-check comment attach
          sync-ratings apply           (revision-check uses BR_FLOW names)
new:      doctor
          set-state ID STATE --comment TEXT [--expected-rev N] [--dry-run]
            final current        -> refused
            STATE before current -> refused (Rejected/Withdrawn excepted)
            STATE == current     -> no-op
            else patch State with test /rev, then add comment
          eject --out PATH
  • No client-specific text remains: no org, project, tenant or pipeline id.
  • Sprint length stays two working weeks (Q5); the planning-check rule at S5 lines 652–658 stays.
  • Skill files are English. Saved content uses the user's language; an edit keeps the item's existing language (Q6, Q22).

ARC-004 catalog entries (Q43, Q27)

// package-skills.ts
export const collectiveIntelligenceBacklogSkills = {
  directory: "collective-intelligence-backlog",
  packageName: "@collective-intelligence/backlog",
  skills: [
    "human-backlog-ado", "create-business-request", "analyze-business-request",
    "update-business-request", "plan-sprint", "create-bug", "setup-human-backlog",
  ],
  tarballEnv: "HI_CI_BACKLOG_TARBALL",
  version: collectiveIntelligenceBacklogVersion,
} as const satisfies PackageSkillSource;
export const packageSkillSources = [
  collectiveIntelligenceLintSkills, collectiveIntelligenceBacklogSkills,
] as const;

// skills.ts, one per skill id
{ id, tier: "framework", framework: "ci-solutions", language: null,
  requiresTools: ["python3"],
  sourceDirectory: packageSkillSourceDirectory(collectiveIntelligenceBacklogSkills, id) }

HI declares no az tool (Q27).

ARC-005 settings schema (Q44)

const HumanBacklogSettings = Schema.Struct({
  provider: Schema.Literal("azure-devops"),
  projectUrl: Schema.String.check(
    Schema.isPattern(/^https:\/\/dev\.azure\.com\/[^/]+\/[^/]+\/?$/u)),
  tenant: Schema.String.check(Schema.isUUID()),
  ratingsPipelineUrl: Schema.optional(/* https URL */),
});
// SettingsDocument: humanBacklog: Schema.optional(HumanBacklogSettings)
// decodeCheckSettings reads it too; no ProjectIntent field

An invalid value fails hi check, hi update and hi init with .devpunks/settings.json: <error>, like any invalid setting (S7).

Accepted Detail Coverage

Question + exact entry/evidence anchorExact accepted choice and supplied detailProvided rationale / alternativesArchitecture selector + applicable visualSystem constraint served
Q1 #q1Two backlogs: Core (Linear, write-backlog) and Human (client Azure DevOps, Human Backlog skills)Rejected: separate human item set (drift)ARC-001, ARC-006; Whole System mapOne source per backlog
Q2 #q2, Q3 #q3Eight Human States; exact names in the fixed process; no mappingRejected: Giovanni's names + mappingARC-001; FLOW-001 diagramNo mapping layer for write-backlog to read
Q4 #q4, Q37 #q37Types, fields, states fixed by the team; created by hand from references/process.md; doctor only verifiesRejected: process API creationARC-001, ARC-007; FLOW-003-STEP-003Axiom 1
Q5 #q5Sprint length two working weeksnot recordedARC-003 interfaceUnchanged planning-check
Q6 #q6, Q22 #q22Skill files English; saved content in the user's language; edits keep the item's languageRejected: always English; per-project settingARC-003 interface notesNo mixed-language items
Q7 #q7, Q12 #q12Configurable: provider, projectUrl, tenant, ratingsPipelineUrlnot recordedARC-005; FLOW-005Smallest config surface
Q8 #q8 (zip part), Q11 #q11, Q23 #q23Zip per Eject; setup-human-backlog interviews, writes, proves, ejectsRejected: eject-human-backlog, two skillsARC-007; FLOW-003Clients run in any harness
Q10 #q10Keep ado.py, genericRejected: prompt-only REST/MCPARC-003One enforced write path
Q13 #q13, Q14 #q14, Q15 #q15write-backlog writes late states on the Business Request linked to a Fog; supersedes the Azure DevOps out-of-scope decision for this path onlyRejected: link-only reminder; Epic↔Feature linkARC-006, ARC-008; FLOW-002Human State follows delivery evidence
Q16 #q16Received at creation; In analysis at first Feature link; Planned at first sprintFixes the "never leaves New" gap (S4 Findings)FLOW-001-STEP-001..003Every state has one writer
Q17 #q17Free edit / cascade eligibility under new namesMaps Giovanni's ruleFLOW-001-STEP-005No edits after work starts
Q18 #q18Person or update-business-request writes Rejected/Withdrawn; Cancelled Fog → Withdrawn; Superseded → nothingnot recordedFLOW-001-STEP-004, FLOW-002-STEP-003Business decisions stay human
Q19 #q19In progress / On staging / Live evidence rules; deploy evidence capture outside scopeRejected: add deploy capture hereFLOW-002-STEP-003; ModelsMerge ≠ staging ≠ production
Q20 #q20No link or no Fog → no write, no failurenot recordedFLOW-002-STEP-003Delivery never depends on Human Backlog
Q21 #q21Fog ↔ Business Request one-to-one active; link moves on supersessionRejected: many Fogs with roll-upARC-008One state source
Q24 #q24One catalogued helper human-backlog-ado; siblings call ../human-backlog-ado/scripts/ado.pyRejected: copy per skillARC-003; module treePublisher ships only catalogued dirs (S6)
Q25 #q25write-backlog calls .agents/skills/human-backlog-ado/scripts/ado.py set-state; absent → setup guidance, zero writesRejected: Pack dependency requirements→CIFLOW-002-STEP-004Skills repo stays independent of ci-app
Q26 #q26 (CI part)One ci-app CI job runs Python tests; HI runs nonenot recordedARC-002; FLOW-004Test ownership with the source
Q27 #q27requiresTools: ["python3"] only; no az in HIRejected: check-only az toolARC-004 catalog entriesAxiom 4
Q28 #q28env → nearest settings → config.json; org/project from projectUrl; required provider, projectUrl, tenant; stop before network on missing keyEnv overrides already exist (S5)FLOW-005-STEP-001..003Same code in HI and Eject
Q29 #q29Linear attachment link; GitHub body line Business Request: <url>; back link on request; moved on SupersededRejected: description line onlyARC-008; FLOW-002-STEP-003Readable, stable link
Q30 #q30Core writes stand; failed write in residual delta; retried next eventnot recordedFLOW-002-STEP-005; ModelsDelivery never blocked
Q31 #q31, Q44 #q44Skill writes humanBacklog; CLI validates with Schema.Literal, isPattern, isUUID; decodeCheckSettings reads it; no ProjectIntent fieldRejected: no CLI change; check-only validationARC-005 schemaDocumented settings contract
Q32 #q32doctor checks login, types, fields, eight states, iterations, validateOnly create; read-onlynot recordedFLOW-003-STEP-003Ready means the process matches
Q33 #q33 (contents), Q47 #q47Zip: sibling skills without tests, config.json, MANIFEST.json (package, tree sha256, config sha256, date); --out requiredInstalled skill cannot read npm version; HI writes no gitignoreFLOW-003-STEP-004Reproducible Eject
Q34 #q34, Q36 #q36Forward-only; finals final; same state no-op; enforced in set-state with revision testRejected: backward on evidence loss; prompt-only rulesARC-003 interface; ModelsAxiom 2
Q35 #q35One comment per state change in the request's language, date and release nameRejected: state onlyFLOW-002-STEP-004Business sees why
Q38 #q38Skills join ci-solutions; source in ci-app via npm package syncRejected: new optional PackARC-002, ARC-004; FLOW-004One distribution mechanism (S6)
Q39 #q39Package @collective-intelligence/backlog; HI list of package sourcesRejected: backlog-skills name; ship in lintARC-002, ARC-004Independent versions
Q40 #q40Every CI solution repo installs the skillsRejected: optional split PackFLOW-004-STEP-005No manual step per repo
Q41 #q41az-only auth; install and login guidance when missingRejected: ADO_TOKEN first or onlyFLOW-005-STEP-004Keeps Giovanni's path
Q42 #q42Package layout, scripts, tests outside skills/, first publish stagednot recordedModule treeTests never installed
Q43 #q43Catalog and sync shapes, receipt keyed by packagenot recordedARC-004 entries; FLOW-004-STEP-003Two sources coexist
Q45 #q45ado.py single file, lazy load_config, BR_FLOW, BR_FINAL, new commands, no client text, adapted testsnot recordedARC-003 interfaceOne enforced helper
Q46 #q46write-backlog/references/human-backlog.md + one pointer lineRejected: spread over four filesModule treeSmall, local change
Q48 #q48Keep Giovanni's five ids; add human-backlog-ado, setup-human-backlogRejected: rename twoModule treeTeam already uses the names

Spec Traceability

  • State: complete

Every OUT and AC code of the sibling SPEC.md maps below. Spec Invariants: INV-001 → ARC-003, Models (Q34, Q36, Glossary Q49); INV-002 → FLOW-003-STEP-003 (Q32, Glossary Q49).

Spec code / section selectorArchitecture selectorsAccepted grill Q / exact log-entry and evidence anchorsCoverage explanation
OUT-001 (SPEC #requirements-and-outcomes)ARC-001, FLOW-001Q2, Q3, Q16, Q17, Q18; S2Human State lifecycle and its writers
AC-001 (SPEC #acceptance-criteria)FLOW-001-STEP-001, ARC-003Q16, Q45; S2Received is the type's initial state; create sets no State
AC-002 (SPEC #acceptance-criteria)FLOW-001-STEP-002Q16; S2In analysis at the first Feature link through set-state
AC-003 (SPEC #acceptance-criteria)FLOW-001-STEP-003Q16; S2Planned at the first sprint through set-state
AC-004 (SPEC #acceptance-criteria)FLOW-001-STEP-004Q18; S2Rejected and Withdrawn only on a person's request
AC-005 (SPEC #acceptance-criteria)FLOW-001-STEP-005Q17; S2Revision eligibility under the new names
OUT-002 (SPEC #requirements-and-outcomes)ARC-003, ModelsQ34, Q36, Glossary Q49; S2Forward-only set-state
AC-006 (SPEC #acceptance-criteria)ARC-003 interface, ModelsQ34, Q36; S2Refuses backward and out-of-final moves with no write
AC-007 (SPEC #acceptance-criteria)ARC-003 interfaceQ34; S2Same state is a no-op
AC-008 (SPEC #acceptance-criteria)ARC-003 interface, FLOW-002-STEP-004Q35, Q36; S2Revision test plus exactly one comment
OUT-003 (SPEC #requirements-and-outcomes)ARC-006, FLOW-002Q13, Q15, Q19, Q20, Q25, Q30, Q35, Q46; S2write-backlog human-state branch
AC-009 (SPEC #acceptance-criteria)FLOW-002-STEP-003Q18, Q19; S2Evidence → state table, Cancelled and Superseded
AC-010 (SPEC #acceptance-criteria)FLOW-002-STEP-003, ModelsQ19; S2Owed state derived from all evidence (Model finding)
AC-011 (SPEC #acceptance-criteria)FLOW-002-STEP-003Q20; S2No config, link or Fog: no write, no failure
AC-012 (SPEC #acceptance-criteria)FLOW-002-STEP-004Q25; S2Missing helper: setup guidance, zero Human writes
AC-013 (SPEC #acceptance-criteria)FLOW-002-STEP-002, FLOW-002-STEP-005Q30; S2Core writes stand; residual delta; retry
AC-014 (SPEC #acceptance-criteria)FLOW-002-STEP-004Q35; S2One comment per change in the request's language
AC-015 (SPEC #acceptance-criteria)ARC-006, module treeQ46; S2One new reference plus one pointer line
OUT-004 (SPEC #requirements-and-outcomes)ARC-008Q14, Q21, Q29; S2Fog ↔ Business Request link
AC-016 (SPEC #acceptance-criteria)ARC-008Q21, Q29; S2Per-provider link, back link, at intake or on instruction
AC-017 (SPEC #acceptance-criteria)ARC-008, FLOW-002-STEP-003Q21, Q29; S2Links move on supersession; one request per Fog
OUT-005 (SPEC #requirements-and-outcomes)ARC-003, FLOW-005Q5, Q6, Q7, Q10, Q22, Q28, Q41, Q45; S2Generic ado.py and skills
AC-018 (SPEC #acceptance-criteria)ARC-003 interfaceQ7, Q45; S2No client-specific values in shipped files
AC-019 (SPEC #acceptance-criteria)FLOW-005-STEP-001, FLOW-005-STEP-002, FLOW-005-STEP-003Q28, Q45; S2Config resolution order and stop on missing key
AC-020 (SPEC #acceptance-criteria)FLOW-005-STEP-004Q41; S2az-only authentication with guidance
AC-021 (SPEC #acceptance-criteria)ARC-003 interface notesQ6, Q22; S2Language rules
AC-022 (SPEC #acceptance-criteria)ARC-003 interface notesQ5; S2Two-week sprint check kept
OUT-006 (SPEC #requirements-and-outcomes)ARC-002, FLOW-004-STEP-001Q24, Q26, Q39, Q42, Q48; S2ci-app package
AC-023 (SPEC #acceptance-criteria)ARC-002, module treeQ24, Q39, Q42, Q48; S2Tarball root, seven skill ids, no tests
AC-024 (SPEC #acceptance-criteria)ARC-002Q26, Q42; S2Python tests run in ci-app CI
OUT-007 (SPEC #requirements-and-outcomes)ARC-004, FLOW-004Q27, Q38, Q40, Q43; S2HI distribution through ci-solutions
AC-025 (SPEC #acceptance-criteria)ARC-004 catalog entries, FLOW-004-STEP-003Q43; S2Source list, loop, per-package receipt
AC-026 (SPEC #acceptance-criteria)ARC-004 catalog entriesQ27, Q43; S2Seven entries, python3 only, no az
AC-027 (SPEC #acceptance-criteria)FLOW-004-STEP-005Q38, Q40; S2hi update installs the seven skills
OUT-008 (SPEC #requirements-and-outcomes)ARC-005Q12, Q31, Q44; S2humanBacklog setting
AC-028 (SPEC #acceptance-criteria)ARC-005 schemaQ44; S2Schema accepts valid and rejects invalid values
AC-029 (SPEC #acceptance-criteria)ARC-005, FLOW-003-STEP-002Q31; S2No hi init prompt; hi update keeps the key
OUT-009 (SPEC #requirements-and-outcomes)ARC-007, FLOW-003Q11, Q23, Q32, Q37, Glossary Q49; S2Setup and proof
AC-030 (SPEC #acceptance-criteria)FLOW-003-STEP-002, FLOW-003-STEP-003Q32; S2doctor gate: ready only when all checks pass
AC-031 (SPEC #acceptance-criteria)ARC-001, ARC-007Q4, Q37; S2Process reference content
OUT-010 (SPEC #requirements-and-outcomes)ARC-007, FLOW-003-STEP-004Q8, Q33, Q47; S2Eject
AC-032 (SPEC #acceptance-criteria)FLOW-003-STEP-004Q33, Q47; S2Zip contents, required --out, reproducible tree hash

Flow Failure Coverage

LensEvidence / unknown / justified not applicableGuarantee at stakeMaterial unresolved gap
1. Entry points and path convergenceSkills, write-backlog and a person write Human States; all automated writes converge on set-state (Q36). Settings and config.json converge on load_config (Q28).Axiom 2 for every automated writerNone
2. Critical execution pathsFLOW-002: Core writes before Human write (Q30); FLOW-003: write config before doctor (Q32)Delivery independent of Human BacklogNone
3. State ownership and authorityARC table: Azure DevOps owns Human States; write-backlog owns Fog links; setup-human-backlog owns the settingOne writer per state classNone
4. Transaction and side-effect boundariesset-state patches State with a revision test, then adds the comment; Core and Human writes are separate (Q30, Q36). A comment can be missing after a successful state patch.Comment per change (Q35)None: retry is a same-state no-op; a missing comment is visible and non-material
5. Concurrency and stale stateRevision test in set-state; Model noAutomatedRegression with a person writer (S11)No overwrite of a person's decisionNone
6. Idempotency and retriesSame-state no-op; owed state derived from all evidence (Model finding); sync receipt keyed per package (Q43)Safe retry; Live not lostNone
7. Partial failure and recoveryResidual delta (Q30); missing helper → guidance, zero writes (Q25); missing config or az → stop before network (Q28, Q41); doctor lists every mismatch (Q32)Delivery never blockedNone
8. Execution lifetime and durabilityOwed Human State lives in write-backlog's residual delta and is recomputed from durable Core evidence at the next event (Q19, Q30)Owed state survives a lost runNone
9. Lifecycle and dependency transitionsSupersession moves links (Q29); package pin bump then sync (FLOW-004); first publish staged (Q42)No dangling link; no unpublished pinNone
10. Completion and observabilityComment per state change (Q35); doctor ready/blocked list (Q32); MANIFEST.json hashes (Q47); sync receipt (Q43)Business and operator can see outcomesNone

Parked Work and Non-material Unknowns

Question / sourceDisposition and scope consequenceOwner / resume triggerWhy current guarantees remain closed
Q19 deploy evidenceOutside scope: no delivery step records staging or production evidence; On staging and Live are not written automatically until one existsOwner not recorded; resume when a delivery step records deploy evidenceThe branch derives states from whatever evidence exists; no guarantee depends on the missing step
Giovanni confirmations (S2 #closure)unknown, externalStefan with Giovanni; joint review before first publishThe design fixes names and keeps ado.py regardless
Feature Ratings Sync pipelineunknown whether it runs ado.py; the pipeline is client-sideSame as abovesync-ratings stays an ado.py command

Validation

  • Decision/source/glossary reconciliation: S1 Closure: closed R6 with quoted confirmation; every Q1–Q48 entry dispositioned above; status glossary and S3 page agree on all nine terms and five axioms.
  • Exact-detail and cross-level coverage: every accepted Q has a row in Accepted Detail Coverage with a selector; superseded parts are only in Source Disposition.
  • Relative links, selector targets, and visual source/order checks: every ARC/FLOW selector has an explicit anchor in this file; grill links use the routed /docs/project/grilling/... paths and heading slugs of S2.
  • Spec-code → architecture → grill coverage: complete; 10 OUT and 32 AC codes each map to at least one selector and one accepted Q entry.
  • Model check: npx --yes tsprover@0.0.2 models/human-state.proof.ts exits 0 with 153 distinct states; four Sensitivity Proof mutants each report the expected violation.
  • Mermaid parsing/rendering: mermaid.parse from mermaid@11.15.0 (workspace apps/wiki, jsdom shim) parsed 3/3 blocks after one fix (a ; in a sequence label). Rendering to SVG was not run.
  • Existing spec agreement: absent; architecture precedes spec.
  • Remaining limits: the Model does not cover a person's free correction to any state.

On this page