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 theci-solutionsPack, thehumanBacklogsetting, and thewrite-backloghuman-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.mdin 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-backlogwrites. - 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):
- The team owns the Human Backlog process. Clients change only the Human Backlog Config.
- Automated writers move a Business Request forward only. Live, Rejected and Withdrawn are final. Only a person corrects a state.
- A Business Request has one active Fog. A Fog has at most one Business Request.
- HI requires no provider-specific tool. Provider authentication belongs to the client environment.
- Merge is never staging. Staging is never production.
Sources
| Source | Role | Exact location and anchor | Immutable revision or content hash |
|---|---|---|---|
| S1 | Grill status and closure | apps/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) |
| S2 | Durable grill log | apps/wiki/content/docs/project/grilling/human-backlog-pack-grill-log.md; #q1–#q48, #glossary-q1, #glossary-q23, #glossary-q27, #glossary-q34, #glossary-q49, #closure | blob 25562f670fd2947898a6e20dc34f4d548c07bdbe |
| S3 | Current glossary | status ## Glossary (S1) and published apps/wiki/content/docs/project/domains/human-backlog-pack-glossary.mdx | blob bf6b170ae82b72be3e4b70fb7c802aa25dc6604a |
| S4 | Brainstorm Brief | apps/wiki/content/docs/project/grilling/human-backlog-pack-brainstorm-brief.md | blob 99ace072dc0cac40ef55a707fc5d7bd3e48f5584 (sha256 at import 653eee1e…be16) |
| S5 | Giovanni'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 tests | sha256 a723a4f7544ad28167711d0b43b233e3bc3be01230a8628be2ce36674d161883 |
| S6 | HI 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-solutions | commit 886966be721e65c0d48d33c22046234af6f2e847 |
| S7 | HI 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 |
| S8 | Effect Schema primitives | Effect 4.1.0 packages/effect/src/Schema.ts:isPattern (line 6889), isUUID (line 7013) | opensrc Effect-TS/effect 4.1.0 |
| S9 | ci-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-621 | ci-app commit d34b4b06bb |
| S10 | write-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 |
| S11 | Human State model | models/human-state.proof.ts in this folder | checked with tsprover@0.0.2, 153 distinct states |
Source Disposition
| Question / entry | Disposition | Accepted detail, replacement, or unresolved point | Evidence | Parked owner / resume trigger |
|---|---|---|---|---|
| Q1–Q7, Q10–Q25, Q27–Q32, Q34–Q48, Glossary Q49 | accepted | As in Accepted Detail Coverage; Glossary Q49 adds test checkability hints only | S2 | — |
Q8 (#q8), team distribution line | superseded | Replaced by Q38: ci-solutions Pack through sync:package-skills. The client zip part of Q8 stays accepted. | S2 #q38 | — |
Q9 (#q9) | superseded | Replaced by Q38: no human-backlog Pack; skills join ci-solutions; source in ci-app | S2 #q38 | — |
Q26 (#q26), test location | superseded | Replaced 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 folder | superseded | Replaced 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" | superseded | Replaced by Q6 and Q22 | S2 #q6, #q22 | — |
Giovanni confirmations (one script; state rename; ratings pipeline use of ado.py) | unknown | External confirmation at the joint review. Not a design input: the design keeps ado.py (Q10) and fixes the state names (Q3). | S2 #closure | Stefan 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 / level | Owner | State and authority | Interface / dependency | Supported constraint and source |
|---|---|---|---|---|
| ARC-001 Human Backlog process (client Azure DevOps) | The team creates it once by hand; the client hosts it | Authoritative 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-003 | Q3, Q4, Q37; axiom 1 |
ARC-002 @collective-intelligence/backlog (ci-app packages/public/backlog/) | ci-app | Source of truth for the seven skill folders and the Python tests | npm 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.py | ci-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 catalog | apps/cli | package-skills.ts holds the pins; the receipt .devpunks-cache/package-skills-sync.json records what was copied | packageSkillSources; sync-package-skills.mjs; skills.ts entries; packs.ts ci-solutions | Q38, Q40, Q43, Q27; S6 |
ARC-005 humanBacklog setting | apps/cli schema; value written by ARC-007 | .devpunks/settings.json key; authoritative Human Backlog Config in HI repos | SettingsDocument.humanBacklog, decodeCheckSettings | Q12, Q31, Q44; S7, S8 |
ARC-006 write-backlog human-state branch | wearedevpunks/skills | Writes 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 path | Q13–Q15, Q19–Q21, Q25, Q29, Q30, Q35, Q46; S10 |
ARC-007 setup-human-backlog and Eject | ci-app (ARC-002) | Writes the Human Backlog Config; produces the Eject zip | ado.py doctor, ado.py eject --out <path>; references/process.md, references/eject.md | Q11, Q23, Q31, Q32, Q33, Q37, Q47 |
| ARC-008 Fog ↔ Business Request link | ARC-006 | One link on the Fog plus one back link on the Business Request; the Fog side is in the Core Backlog | Linear: attachment link; GitHub: body line Business Request: <url>; Azure DevOps: back link to the Fog | Q14, 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-requestcreates the item. Received is the initial state of the Business Request type, socreatesets no State (Q45). - FLOW-001-STEP-002.
analyze-business-requestcallsset-state <id> "In analysis"when it adds the first Feature link. - FLOW-001-STEP-003.
plan-sprintcallsset-state <id> Plannedwhen the first linked Feature gets a sprint. - FLOW-001-STEP-004. A person decides Rejected
or Withdrawn.
update-business-requestwrites 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
humanBacklogis 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-backlogcalls.agents/skills/human-backlog-ado/scripts/ado.py set-statewith 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.
provideris alwaysazure-devops(Q28). - FLOW-003-STEP-002. The skill writes the
setting;
hi initdoes not prompt for it (Q31). - FLOW-003-STEP-003.
doctorchecks login, the five work-item types and every field the skills use, exactly the eight Business Request states, team iterations, and onevalidateOnlycreate per type. It writes nothing. Any mismatch returnsblockedwith the full list (Q32). The team creates a missing process by hand (Q37). - FLOW-003-STEP-004.
ejectwrites one zip to the user-chosen--outpath.MANIFEST.jsonholds 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
collectiveIntelligenceBacklogVersionto 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
humanBacklogthey only point tosetup-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,
humanBacklogin the nearest.devpunks/settings.jsonabove the working directory. - FLOW-005-STEP-003. Last,
config.jsonbesideado.pyin 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
| Flow | Model path | Invariants | State count | Sensitivity Proof |
|---|---|---|---|---|
FLOW-001 + FLOW-002: three writers on one Human State; write-backlog retry | models/human-state.proof.ts | noAutomatedRegression (axiom 2, Q34, Q36); @leadsTo liveEvidenceOwed → settled (Q19, Q30): owed Live with fair retry ends in a final state | 153 | Remove 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 newARC-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-checkrule 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 fieldAn 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 anchor | Exact accepted choice and supplied detail | Provided rationale / alternatives | Architecture selector + applicable visual | System constraint served |
|---|---|---|---|---|
Q1 #q1 | Two 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 map | One source per backlog |
Q2 #q2, Q3 #q3 | Eight Human States; exact names in the fixed process; no mapping | Rejected: Giovanni's names + mapping | ARC-001; FLOW-001 diagram | No mapping layer for write-backlog to read |
Q4 #q4, Q37 #q37 | Types, fields, states fixed by the team; created by hand from references/process.md; doctor only verifies | Rejected: process API creation | ARC-001, ARC-007; FLOW-003-STEP-003 | Axiom 1 |
Q5 #q5 | Sprint length two working weeks | not recorded | ARC-003 interface | Unchanged planning-check |
Q6 #q6, Q22 #q22 | Skill files English; saved content in the user's language; edits keep the item's language | Rejected: always English; per-project setting | ARC-003 interface notes | No mixed-language items |
Q7 #q7, Q12 #q12 | Configurable: provider, projectUrl, tenant, ratingsPipelineUrl | not recorded | ARC-005; FLOW-005 | Smallest config surface |
Q8 #q8 (zip part), Q11 #q11, Q23 #q23 | Zip per Eject; setup-human-backlog interviews, writes, proves, ejects | Rejected: eject-human-backlog, two skills | ARC-007; FLOW-003 | Clients run in any harness |
Q10 #q10 | Keep ado.py, generic | Rejected: prompt-only REST/MCP | ARC-003 | One enforced write path |
Q13 #q13, Q14 #q14, Q15 #q15 | write-backlog writes late states on the Business Request linked to a Fog; supersedes the Azure DevOps out-of-scope decision for this path only | Rejected: link-only reminder; Epic↔Feature link | ARC-006, ARC-008; FLOW-002 | Human State follows delivery evidence |
Q16 #q16 | Received at creation; In analysis at first Feature link; Planned at first sprint | Fixes the "never leaves New" gap (S4 Findings) | FLOW-001-STEP-001..003 | Every state has one writer |
Q17 #q17 | Free edit / cascade eligibility under new names | Maps Giovanni's rule | FLOW-001-STEP-005 | No edits after work starts |
Q18 #q18 | Person or update-business-request writes Rejected/Withdrawn; Cancelled Fog → Withdrawn; Superseded → nothing | not recorded | FLOW-001-STEP-004, FLOW-002-STEP-003 | Business decisions stay human |
Q19 #q19 | In progress / On staging / Live evidence rules; deploy evidence capture outside scope | Rejected: add deploy capture here | FLOW-002-STEP-003; Models | Merge ≠ staging ≠ production |
Q20 #q20 | No link or no Fog → no write, no failure | not recorded | FLOW-002-STEP-003 | Delivery never depends on Human Backlog |
Q21 #q21 | Fog ↔ Business Request one-to-one active; link moves on supersession | Rejected: many Fogs with roll-up | ARC-008 | One state source |
Q24 #q24 | One catalogued helper human-backlog-ado; siblings call ../human-backlog-ado/scripts/ado.py | Rejected: copy per skill | ARC-003; module tree | Publisher ships only catalogued dirs (S6) |
Q25 #q25 | write-backlog calls .agents/skills/human-backlog-ado/scripts/ado.py set-state; absent → setup guidance, zero writes | Rejected: Pack dependency requirements→CI | FLOW-002-STEP-004 | Skills repo stays independent of ci-app |
Q26 #q26 (CI part) | One ci-app CI job runs Python tests; HI runs none | not recorded | ARC-002; FLOW-004 | Test ownership with the source |
Q27 #q27 | requiresTools: ["python3"] only; no az in HI | Rejected: check-only az tool | ARC-004 catalog entries | Axiom 4 |
Q28 #q28 | env → nearest settings → config.json; org/project from projectUrl; required provider, projectUrl, tenant; stop before network on missing key | Env overrides already exist (S5) | FLOW-005-STEP-001..003 | Same code in HI and Eject |
Q29 #q29 | Linear attachment link; GitHub body line Business Request: <url>; back link on request; moved on Superseded | Rejected: description line only | ARC-008; FLOW-002-STEP-003 | Readable, stable link |
Q30 #q30 | Core writes stand; failed write in residual delta; retried next event | not recorded | FLOW-002-STEP-005; Models | Delivery never blocked |
Q31 #q31, Q44 #q44 | Skill writes humanBacklog; CLI validates with Schema.Literal, isPattern, isUUID; decodeCheckSettings reads it; no ProjectIntent field | Rejected: no CLI change; check-only validation | ARC-005 schema | Documented settings contract |
Q32 #q32 | doctor checks login, types, fields, eight states, iterations, validateOnly create; read-only | not recorded | FLOW-003-STEP-003 | Ready means the process matches |
Q33 #q33 (contents), Q47 #q47 | Zip: sibling skills without tests, config.json, MANIFEST.json (package, tree sha256, config sha256, date); --out required | Installed skill cannot read npm version; HI writes no gitignore | FLOW-003-STEP-004 | Reproducible Eject |
Q34 #q34, Q36 #q36 | Forward-only; finals final; same state no-op; enforced in set-state with revision test | Rejected: backward on evidence loss; prompt-only rules | ARC-003 interface; Models | Axiom 2 |
Q35 #q35 | One comment per state change in the request's language, date and release name | Rejected: state only | FLOW-002-STEP-004 | Business sees why |
Q38 #q38 | Skills join ci-solutions; source in ci-app via npm package sync | Rejected: new optional Pack | ARC-002, ARC-004; FLOW-004 | One distribution mechanism (S6) |
Q39 #q39 | Package @collective-intelligence/backlog; HI list of package sources | Rejected: backlog-skills name; ship in lint | ARC-002, ARC-004 | Independent versions |
Q40 #q40 | Every CI solution repo installs the skills | Rejected: optional split Pack | FLOW-004-STEP-005 | No manual step per repo |
Q41 #q41 | az-only auth; install and login guidance when missing | Rejected: ADO_TOKEN first or only | FLOW-005-STEP-004 | Keeps Giovanni's path |
Q42 #q42 | Package layout, scripts, tests outside skills/, first publish staged | not recorded | Module tree | Tests never installed |
Q43 #q43 | Catalog and sync shapes, receipt keyed by package | not recorded | ARC-004 entries; FLOW-004-STEP-003 | Two sources coexist |
Q45 #q45 | ado.py single file, lazy load_config, BR_FLOW, BR_FINAL, new commands, no client text, adapted tests | not recorded | ARC-003 interface | One enforced helper |
Q46 #q46 | write-backlog/references/human-backlog.md + one pointer line | Rejected: spread over four files | Module tree | Small, local change |
Q48 #q48 | Keep Giovanni's five ids; add human-backlog-ado, setup-human-backlog | Rejected: rename two | Module tree | Team 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 selector | Architecture selectors | Accepted grill Q / exact log-entry and evidence anchors | Coverage explanation |
|---|---|---|---|
OUT-001 (SPEC #requirements-and-outcomes) | ARC-001, FLOW-001 | Q2, Q3, Q16, Q17, Q18; S2 | Human State lifecycle and its writers |
AC-001 (SPEC #acceptance-criteria) | FLOW-001-STEP-001, ARC-003 | Q16, Q45; S2 | Received is the type's initial state; create sets no State |
AC-002 (SPEC #acceptance-criteria) | FLOW-001-STEP-002 | Q16; S2 | In analysis at the first Feature link through set-state |
AC-003 (SPEC #acceptance-criteria) | FLOW-001-STEP-003 | Q16; S2 | Planned at the first sprint through set-state |
AC-004 (SPEC #acceptance-criteria) | FLOW-001-STEP-004 | Q18; S2 | Rejected and Withdrawn only on a person's request |
AC-005 (SPEC #acceptance-criteria) | FLOW-001-STEP-005 | Q17; S2 | Revision eligibility under the new names |
OUT-002 (SPEC #requirements-and-outcomes) | ARC-003, Models | Q34, Q36, Glossary Q49; S2 | Forward-only set-state |
AC-006 (SPEC #acceptance-criteria) | ARC-003 interface, Models | Q34, Q36; S2 | Refuses backward and out-of-final moves with no write |
AC-007 (SPEC #acceptance-criteria) | ARC-003 interface | Q34; S2 | Same state is a no-op |
AC-008 (SPEC #acceptance-criteria) | ARC-003 interface, FLOW-002-STEP-004 | Q35, Q36; S2 | Revision test plus exactly one comment |
OUT-003 (SPEC #requirements-and-outcomes) | ARC-006, FLOW-002 | Q13, Q15, Q19, Q20, Q25, Q30, Q35, Q46; S2 | write-backlog human-state branch |
AC-009 (SPEC #acceptance-criteria) | FLOW-002-STEP-003 | Q18, Q19; S2 | Evidence → state table, Cancelled and Superseded |
AC-010 (SPEC #acceptance-criteria) | FLOW-002-STEP-003, Models | Q19; S2 | Owed state derived from all evidence (Model finding) |
AC-011 (SPEC #acceptance-criteria) | FLOW-002-STEP-003 | Q20; S2 | No config, link or Fog: no write, no failure |
AC-012 (SPEC #acceptance-criteria) | FLOW-002-STEP-004 | Q25; S2 | Missing helper: setup guidance, zero Human writes |
AC-013 (SPEC #acceptance-criteria) | FLOW-002-STEP-002, FLOW-002-STEP-005 | Q30; S2 | Core writes stand; residual delta; retry |
AC-014 (SPEC #acceptance-criteria) | FLOW-002-STEP-004 | Q35; S2 | One comment per change in the request's language |
AC-015 (SPEC #acceptance-criteria) | ARC-006, module tree | Q46; S2 | One new reference plus one pointer line |
OUT-004 (SPEC #requirements-and-outcomes) | ARC-008 | Q14, Q21, Q29; S2 | Fog ↔ Business Request link |
AC-016 (SPEC #acceptance-criteria) | ARC-008 | Q21, Q29; S2 | Per-provider link, back link, at intake or on instruction |
AC-017 (SPEC #acceptance-criteria) | ARC-008, FLOW-002-STEP-003 | Q21, Q29; S2 | Links move on supersession; one request per Fog |
OUT-005 (SPEC #requirements-and-outcomes) | ARC-003, FLOW-005 | Q5, Q6, Q7, Q10, Q22, Q28, Q41, Q45; S2 | Generic ado.py and skills |
AC-018 (SPEC #acceptance-criteria) | ARC-003 interface | Q7, Q45; S2 | No client-specific values in shipped files |
AC-019 (SPEC #acceptance-criteria) | FLOW-005-STEP-001, FLOW-005-STEP-002, FLOW-005-STEP-003 | Q28, Q45; S2 | Config resolution order and stop on missing key |
AC-020 (SPEC #acceptance-criteria) | FLOW-005-STEP-004 | Q41; S2 | az-only authentication with guidance |
AC-021 (SPEC #acceptance-criteria) | ARC-003 interface notes | Q6, Q22; S2 | Language rules |
AC-022 (SPEC #acceptance-criteria) | ARC-003 interface notes | Q5; S2 | Two-week sprint check kept |
OUT-006 (SPEC #requirements-and-outcomes) | ARC-002, FLOW-004-STEP-001 | Q24, Q26, Q39, Q42, Q48; S2 | ci-app package |
AC-023 (SPEC #acceptance-criteria) | ARC-002, module tree | Q24, Q39, Q42, Q48; S2 | Tarball root, seven skill ids, no tests |
AC-024 (SPEC #acceptance-criteria) | ARC-002 | Q26, Q42; S2 | Python tests run in ci-app CI |
OUT-007 (SPEC #requirements-and-outcomes) | ARC-004, FLOW-004 | Q27, Q38, Q40, Q43; S2 | HI distribution through ci-solutions |
AC-025 (SPEC #acceptance-criteria) | ARC-004 catalog entries, FLOW-004-STEP-003 | Q43; S2 | Source list, loop, per-package receipt |
AC-026 (SPEC #acceptance-criteria) | ARC-004 catalog entries | Q27, Q43; S2 | Seven entries, python3 only, no az |
AC-027 (SPEC #acceptance-criteria) | FLOW-004-STEP-005 | Q38, Q40; S2 | hi update installs the seven skills |
OUT-008 (SPEC #requirements-and-outcomes) | ARC-005 | Q12, Q31, Q44; S2 | humanBacklog setting |
AC-028 (SPEC #acceptance-criteria) | ARC-005 schema | Q44; S2 | Schema accepts valid and rejects invalid values |
AC-029 (SPEC #acceptance-criteria) | ARC-005, FLOW-003-STEP-002 | Q31; S2 | No hi init prompt; hi update keeps the key |
OUT-009 (SPEC #requirements-and-outcomes) | ARC-007, FLOW-003 | Q11, Q23, Q32, Q37, Glossary Q49; S2 | Setup and proof |
AC-030 (SPEC #acceptance-criteria) | FLOW-003-STEP-002, FLOW-003-STEP-003 | Q32; S2 | doctor gate: ready only when all checks pass |
AC-031 (SPEC #acceptance-criteria) | ARC-001, ARC-007 | Q4, Q37; S2 | Process reference content |
OUT-010 (SPEC #requirements-and-outcomes) | ARC-007, FLOW-003-STEP-004 | Q8, Q33, Q47; S2 | Eject |
AC-032 (SPEC #acceptance-criteria) | FLOW-003-STEP-004 | Q33, Q47; S2 | Zip contents, required --out, reproducible tree hash |
Flow Failure Coverage
| Lens | Evidence / unknown / justified not applicable | Guarantee at stake | Material unresolved gap |
|---|---|---|---|
| 1. Entry points and path convergence | Skills, 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 writer | None |
| 2. Critical execution paths | FLOW-002: Core writes before Human write (Q30); FLOW-003: write config before doctor (Q32) | Delivery independent of Human Backlog | None |
| 3. State ownership and authority | ARC table: Azure DevOps owns Human States; write-backlog owns Fog links; setup-human-backlog owns the setting | One writer per state class | None |
| 4. Transaction and side-effect boundaries | set-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 state | Revision test in set-state; Model noAutomatedRegression with a person writer (S11) | No overwrite of a person's decision | None |
| 6. Idempotency and retries | Same-state no-op; owed state derived from all evidence (Model finding); sync receipt keyed per package (Q43) | Safe retry; Live not lost | None |
| 7. Partial failure and recovery | Residual delta (Q30); missing helper → guidance, zero writes (Q25); missing config or az → stop before network (Q28, Q41); doctor lists every mismatch (Q32) | Delivery never blocked | None |
| 8. Execution lifetime and durability | Owed 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 run | None |
| 9. Lifecycle and dependency transitions | Supersession moves links (Q29); package pin bump then sync (FLOW-004); first publish staged (Q42) | No dangling link; no unpublished pin | None |
| 10. Completion and observability | Comment per state change (Q35); doctor ready/blocked list (Q32); MANIFEST.json hashes (Q47); sync receipt (Q43) | Business and operator can see outcomes | None |
Parked Work and Non-material Unknowns
| Question / source | Disposition and scope consequence | Owner / resume trigger | Why current guarantees remain closed |
|---|---|---|---|
| Q19 deploy evidence | Outside scope: no delivery step records staging or production evidence; On staging and Live are not written automatically until one exists | Owner not recorded; resume when a delivery step records deploy evidence | The branch derives states from whatever evidence exists; no guarantee depends on the missing step |
Giovanni confirmations (S2 #closure) | unknown, external | Stefan with Giovanni; joint review before first publish | The design fixes names and keeps ado.py regardless |
| Feature Ratings Sync pipeline | unknown whether it runs ado.py; the pipeline is client-side | Same as above | sync-ratings stays an ado.py command |
Validation
- Decision/source/glossary reconciliation: S1
Closure: closed R6with 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.tsexits 0 with 153 distinct states; four Sensitivity Proof mutants each report the expected violation. - Mermaid parsing/rendering:
mermaid.parsefrommermaid@11.15.0(workspaceapps/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.