<!-- Authored per the the-loop:writing skill. -->
Tasks: publish a work item's spec chain as one Claude doc
Task list
[x] 1. Red tests.
cli/tests/test_claude_doc.py(render, resolve, state, runtime, prompt, archive) and the Slack pin, failing before the change.- Depends on: none
- Requirements: R1–R3, R4.1, R4.2
- Test: T1–T7 (red)
[x] 2. The gate.
CLAUDE_DOC_TOKEN, the second row and note,_parse_claude_doc, the conflict rule, the confirmation, result data, frozen graph.- Depends on: 1
- Requirements: R1.1–R1.5, R2
- Test: T1, T2 —
pytest tests/test_claude_doc.py(red→green); unauthorized tick is the negative case
[x] 3. The frozen record.
WorkItemState.claude_docwith the both-true collapse, the runtime freeze, the attribute catalogue, the archive and thegraphsummary.- Depends on: 2
- Requirements: R3
- Test: T3, T4, T6 — state coercion is the negative case
[x] 4. The prompt.
GraphContext.claude_docfrom both builders andCLAUDE_DOC_LINEon the outer loop.- Depends on: 3
- Requirements: R4.1, R4.2
- Test: T5
[x] 5. The Slack mirror. Non-phase token and the defaults note.
- Depends on: 2
- Requirements: R1.6
- Test: T7
[x] 6. Fixtures. Regenerate the rendered checklist fixtures the new row changes.
- Depends on: 2
- Requirements: R1.1
- Test: T8 (the fixture-backed suites)
[x] 7. The skill.
SKILL.md,reference/workflow.md(the doc procedure),reference/explainer.md(publishing table),reference/collaboration.md,commands/explain.md.- Depends on: 4
- Requirements: R4.3–R4.7
- Test: review (
evidence/self-review.md)
[x] 8. The docs.
docs/capabilities/spec-workflow.md,process-graph.md,docs/cli/commands/graph.md,docs/cli/state.md, with history rows.- Depends on: 7
- Requirements: R3.5, R4.8
- Test: T8 (markdownlint)
[x] 9. Handoff doc import (Requirement 5, added on the PR).
spec-docin the record,claudeDocUrladopted at start, named in the prompt, archived; the handoff skill and the CLI/capability docs.- Depends on: 4
- Requirements: R5
- Test: T13 — the non-claude.ai and non-https cases are the negative tests
Dependency graph (DAG)
Checkpoints
After task 4 and after task 6: cd cli && uv run python -m pytest -q. After task 8: make check and make pre-commit, then the verification node runs testing-plan.md.
Review comments
None yet.