plan-atlas 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.4.0] - 2026-12-04
11
+
12
+ ### Added
13
+
14
+ - **Three ways in.** Every new plan starts from a spec: a feature (`create_feature`, then `create_plan` with `feature_id`), a fix plan (`create_plan` with `fixes`), or a small spec (`create_feature` with `kind: "small"`). The `plan-atlas` skill searches for a matching requirement first and asks the user before creating anything.
15
+ - **Small specs.** `create_feature` with `kind: "small"` writes a short spec (problem, 1–3 requirements, out of scope) as active with a confirmed track, skips clarify / checklist / analyze, and creates `plan.md` with one task covering every requirement, in the same call; the result carries `plan_id`. Warnings `small_spec_no_scope` and `small_spec_grew` (more than 3 requirements or 5 tasks). Specs carry `kind` (missing means `feature`); feature lists return it.
16
+ - **Fix plans.** `create_plan` with `fixes: ["FEAT-…/FR-…"]` writes a flat plan linked to requirements of one feature of the same project. Opening one revokes the manual confirmation of those requirements and moves a converged feature back to active. While it is open the requirements count as `planned`; its tasks count for them once done. `get_feature` returns `fix_plans`, each requirement's `fix_plans`, and plan lists and details return `fixes`. A fix plan pointing at a missing feature or requirement gets an `invalid_fixes` warning (database schema v6).
17
+ - **Spec change log.** Once a feature has a `plan.md`, `update_spec` takes a `reason` and appends a `changes` entry to the spec's front matter (time, reason, requirement ids added / removed / changed).
18
+ - **Resume.** A brief derived from the files, the evidence and the git repository: the project's open work, and for one item its position by story group, tasks in progress (with the handoff note path), the last done tasks, the next ready tasks, a truth check (claimed-only tasks, recorded commits gone from the repository, open requirements, spec changes since the last completion) and fixed instructions. Available as the MCP tool `resume` (19 tools), `plan-atlas resume [ID] [--project] [--json]`, and `GET /api/resume?project=&id=` (without the commit check).
19
+ - **Web.** The Coverage tab links each requirement's fix plans (marked *being fixed* while open) and shows when its text changed; Confirm is disabled while a fix plan is open. The Spec tab lists the changes after lock. A fix plan's page has a banner naming the requirements it fixes; plans with no spec are labelled and grouped apart on the project page; small specs are labelled. Feature pages show a **Continue** strip with the position, what to re-check and a **Copy prompt** button; project pages list the open work.
20
+ - Skills: the `plan-atlas` skill routes work through the three paths and calls `resume` first when the user asks to continue; `atlas-specify` has the small-spec template; `atlas-implement` re-reads the covered requirements before each task and writes `docs/handoff-<task>.md` when stopping halfway; `atlas-converge` runs converge for the feature a finished fix plan fixes.
21
+
22
+ - **Evidence for completed tasks.** `complete_task` (MCP) and `plan-atlas task done` accept evidence: the commits made for the task and each check command exactly as it was run. Plan Atlas looks the commits up in git, matches each check against the command results its hooks recorded since the task was started, labels every item observed or declared, and records the task's level (`claimed`, `implemented` or `verified`). A completion whose declared check last failed is refused. Evidence is appended to `evidence/<plan-id>.jsonl` next to the plan and survives rebuilding the index.
23
+ - **Requirement coverage.** Every `FR-…`/`SC-…` of a feature gets a state derived from evidence: `uncovered`, `planned`, `claimed`, `implemented` or `verified`. `get_feature`, the feature API and the feature list return it.
24
+ - **Coverage tab** on the feature page: each requirement with its state, covering tasks and their evidence, check commands shown verbatim, and a Confirm / Revoke button per requirement (`PATCH /api/features/{id}/requirements/{req}`, stored in `evidence/confirmations.jsonl`). The task panel shows a done task's evidence and level, the flow map shows unverified requirements per converge round, and feature cards show `verified/total`.
25
+ - **Converge gate.** `record_converge` returns `unverified` and `open_requirements` (state, covering tasks, next step for each).
26
+ - Hooks for `PostToolUse` and `PostToolUseFailure` (Bash only) record whether each command succeeded, storing a hash of the command, never its text or output (database schema v5).
27
+ - `plan-atlas task done` flags `--commit <sha>`, `--check "<command>"` (both repeatable) and `--note <text>`.
28
+
29
+ ### Changed
30
+
31
+ - **Redesigned web UI.** A dark-first, technical look (light follows the OS) with Geist and Geist Mono, one blue accent and hairline rules. The workspace is scoped by project: a sidebar with a project switcher and the project's views (Overview, Features, Plans, Board, Map), a header with breadcrumbs, search and a live toggle, and a live-activity panel beside the page on wide screens. Every page uses one header frame; projects, features and plans are listed as tables; project pages have Overview / Features / Plans tabs (`#/project/<name>/features|plans`). The project website was redesigned to match.
32
+ - **Behavior change:** `create_plan` refuses a plan with neither `feature_id` nor `fixes`. Plans that already exist, and plans imported from files, are unchanged and can still be updated.
33
+ - **Behavior change:** `update_spec` requires a non-blank `reason` once the feature has a `plan.md`; nothing is written without one. Changed and removed requirements lose their manual confirmation.
34
+ - **Behavior change:** a requirement is no longer `verified` while a fix plan for it is open (even if it was confirmed by hand; confirming it is refused until the fix is done), and evidence recorded before the requirement's text last changed no longer counts for it.
35
+ - The hook no longer unlinks a session from its task when `complete_task` / `plan-atlas task done` runs; the task's sessions are unlinked once the task is actually done, so a refused completion keeps recording the reruns of its checks. `SessionEnd` still unlinks.
36
+ - A feature becomes `converged` only when a converge round finds 0 gaps **and** every requirement is `verified`; otherwise the converge step stays active with the `evidence_pending` flag.
37
+ - Upgrading: launching the new version adds the two new hook events to `~/.claude/settings.json` when setup was done before (a backup is written first). The `atlas-implement`, `atlas-converge` and `plan-atlas` skills explain evidence and the new gate.
38
+
39
+ ## [0.3.1] - 2026-12-02
40
+
41
+ ### Fixed
42
+
43
+ - The task board, plan pages and MCP task tools failed with `internal error: missing field 'covers'` for plans indexed by 0.2.0 or earlier. Plan data cached by older versions is read again, and the database (schema v4) re-indexes every plan file on the next launch.
44
+
10
45
  ## [0.3.0] - 2026-12-02
11
46
 
12
47
  ### Added
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Plan Atlas
4
4
 
5
- **A local workspace for the implementation plans Claude Code writes, tracked across all your projects.**
5
+ **Everything your coding agent does traces back to a requirement in a spec, and carries evidence.**
6
6
 
7
7
  [![CI](https://github.com/wik1ngst-1103/plan-atlas/actions/workflows/ci.yml/badge.svg)](https://github.com/wik1ngst-1103/plan-atlas/actions/workflows/ci.yml)
8
8
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
@@ -17,7 +17,12 @@
17
17
  <img src="docs/images/plan-document.png" alt="A plan rendered as a document in Plan Atlas" width="900">
18
18
  </p>
19
19
 
20
- Plan Atlas collects the plans Claude Code produces, organizes them by project and presents each one as a structured document with tasks you can track. While Claude works, it shows which task is in progress and what each subagent is doing, in plain language that non-developers can follow. Everything runs on your machine from a single binary.
20
+ Plan Atlas keeps the specs, plans and evidence behind the work Claude Code does in your projects, and holds that work to two principles:
21
+
22
+ - **Work starts from a fixed spec.** A feature, a bug fix, a dependency bump: each starts from a spec you agreed to, and its plan, tasks, fixes and later sessions all trace back to the requirements in it.
23
+ - **Done is shown by evidence, not by the agent's word.** Each requirement gets a state derived from evidence (commits that exist, check commands seen passing, your own confirmation), not from the agent saying it is done.
24
+
25
+ While Claude works, Plan Atlas shows which task is in progress and what each subagent is doing, in plain language that non-developers can follow. When a session stops halfway, the next one asks Plan Atlas where the work stands instead of relying on memory. Everything runs on your machine from a single binary.
21
26
 
22
27
  ## Contents
23
28
 
@@ -37,7 +42,11 @@ Plan Atlas collects the plans Claude Code produces, organizes them by project an
37
42
  ## Features
38
43
 
39
44
  - **Central plan store.** Plans from every project live in one place, grouped by project. Plans already in `~/.claude/plans` are imported automatically, and plans stored anywhere else can be imported from a file or folder. Source files are never modified.
40
- - **Spec-driven workflow.** For work users will see, Claude follows specify, plan, tasks, implement and converge, with optional clarify, checklist and analyze steps. Specs, plans, checklists and the notes written during each task are stored together per feature. See [what Plan Atlas sets up](#what-plan-atlas-sets-up-when-you-install-it).
45
+ - **Every piece of work starts from a spec.** New features follow specify, plan, tasks, implement and converge, with optional clarify, checklist and analyze steps. A bug against an existing requirement becomes a fix plan that points at that requirement; smaller work gets a small spec of a few lines, created in one call together with its one-task plan. A new plan linked to no spec is refused. Specs, plans, checklists and the notes written during each task are stored together. See [the workflow it applies](#the-workflow-it-applies).
46
+ - **Evidence-based coverage.** Claude completes a task with the commits it made and the exact check commands it ran. Plan Atlas looks the commits up in git and matches each check against the command results its hooks saw, then labels every piece of evidence observed or declared. A Coverage tab shows each requirement as uncovered, planned, claimed, implemented or verified, and you can confirm one by hand. A feature converges only when every requirement is verified. See [Evidence and coverage](#evidence-and-coverage).
47
+ - **Bugs reopen the requirement they break.** While a fix plan is open, the requirement it fixes counts as planned, even if it was verified or confirmed by hand, and it becomes verified again only once the fix plan is done: from evidence, the fix's included, or from your confirmation.
48
+ - **Spec change log.** Once a feature has a plan, changing its spec needs a reason. Each change is logged with the requirements it added, removed or changed, and evidence older than a requirement's last change no longer counts for it.
49
+ - **Continue where the last session stopped.** `resume` (an MCP tool, a command, and a strip on the feature page) works out from the files and the evidence which work is open, which task comes next, and what needs checking again: tasks that are only claimed, recorded commits that are gone, spec changes since the last completed task.
41
50
  - **Feature flow map.** A Flow tab for each feature shows the current workflow step, the documents each step produced and the converge rounds. Tick checklist items and confirm the proposed steps on the web.
42
51
  - **Plans as documents.** A consistent structure (Overview, Requirements & Scope, Technical Analysis, Task Breakdown, Risks & Rollback) with a section outline that follows your reading position.
43
52
  - **Task tracking.** Each task carries a status, a complexity score from 1 to 5 and a recommended model and effort level. Update tasks from a board by drag and drop.
@@ -101,6 +110,8 @@ Running the command again while Plan Atlas is already running opens a new browse
101
110
  | `plan-atlas uninstall-claude [--yes]` | Remove everything `setup` added. Other settings are left untouched. |
102
111
  | `plan-atlas import [PATH]... [--project <name>]` | Import plans. Without a path, imports `~/.claude/plans`. |
103
112
  | `plan-atlas task start\|done <plan-id> <task-id>` | Update a task's status from the command line. |
113
+ | `plan-atlas task done <plan-id> <task-id> [--commit <sha>]... [--check "<command>"]... [--note <text>]` | Complete a task with evidence; prints the level it reached (`claimed`, `implemented`, `verified`). |
114
+ | `plan-atlas resume [ID] [--project <name>] [--json]` | Show where the open work stands and what to do next, as text or JSON. Without `ID`, lists the project's open work. For agents without the Plan Atlas skills. |
104
115
  | `plan-atlas mcp` | Run the MCP server over stdio. Started by Claude Code. |
105
116
  | `plan-atlas hook` | Handle a Claude Code hook event. Invoked by Claude Code. |
106
117
 
@@ -124,20 +135,33 @@ Installing the binary and running `plan-atlas setup` (offered on first launch) d
124
135
  | What | Where | What it is for |
125
136
  |---|---|---|
126
137
  | **10 Skills** | `~/.claude/skills/plan-atlas/` and `~/.claude/skills/atlas-*/` | `plan-atlas` is the coordinating skill; nine `atlas-*` skills guide one workflow step each |
127
- | **Hooks** | `~/.claude/settings.json` (timestamped backup first, existing hooks kept) | `PreToolUse`, `SubagentStart`, `SubagentStop`, `SessionEnd`: show live what Claude and each subagent do |
128
- | **MCP server, 18 tools** | `claude mcp add --transport stdio --scope user plan-atlas -- plan-atlas mcp` | The only way Claude writes plans, specs and notes; it never writes into `~/.plan-atlas` directly |
138
+ | **Hooks, 6 events** | `~/.claude/settings.json` (timestamped backup first, existing hooks kept) | `PreToolUse`, `SubagentStart`, `SubagentStop`, `SessionEnd`: show live what Claude and each subagent do; `PostToolUse` and `PostToolUseFailure` (Bash only): record whether each command succeeded, as evidence for the task in progress |
139
+ | **MCP server, 19 tools** | `claude mcp add --transport stdio --scope user plan-atlas -- plan-atlas mcp` | The only way Claude writes plans, specs and notes; it never writes into `~/.plan-atlas` directly |
129
140
 
130
- The 18 MCP tools:
141
+ The 19 MCP tools:
131
142
 
132
143
  - **Plans:** `list_plans`, `search_plans`, `get_plan`, `get_taxonomy`, `create_plan`, `update_plan`
133
144
  - **Tasks:** `start_task`, `complete_task`
134
145
  - **Features:** `create_feature`, `update_spec`, `set_track`, `get_feature`, `list_features`, `write_doc`, `write_checklist`, `record_converge`
135
146
  - **Constitution:** `get_constitution`, `update_constitution`
147
+ - **Continuing work:** `resume`
136
148
 
137
149
  ### The workflow it applies
138
150
 
139
151
  The workflow adapts [github/spec-kit](https://github.com/github/spec-kit) (spec-driven development: spec, plan, tasks, `US`/`FR`/`SC`/`CHK` codes, checklists that test the requirements text) and the way [obra/superpowers](https://github.com/obra/superpowers) asks questions and verifies work. The `atlas-*` skills tell Claude to keep the superpowers question-and-answer style, but to save every spec, plan and document in Plan Atlas instead of in your repository.
140
152
 
153
+ Every piece of work starts from a spec, by one of three paths. Before creating anything, Claude looks for a requirement that matches the work (`list_features`, `search_plans`), tells you which path it proposes ("this matches `FEAT-shop-003/FR-002`" or "no requirement matches, I'll write a small spec"), and waits for your yes:
154
+
155
+ | Work | Path | Created with |
156
+ |---|---|---|
157
+ | New behavior users can see, or work with several steps | **Feature**: the full workflow below | `create_feature`, later `create_plan` with `feature_id` |
158
+ | Fixing behavior that departs from a requirement already in a spec | **Fix plan** | `create_plan` with `fixes: ["FEAT-shop-003/FR-002"]` |
159
+ | Everything else: a bug where no requirement exists yet, config, a dependency bump, cleanup | **Small spec** | `create_feature` with `kind: "small"` |
160
+
161
+ `create_plan` with neither `feature_id` nor `fixes` is refused, plans from Claude Code's plan mode included: after you approve one, Claude picks its path and then registers it. Plans imported from files stay as they are, labelled *No spec*.
162
+
163
+ A feature goes through these steps:
164
+
141
165
  ```
142
166
  specify ──► plan ──► tasks ──► implement ──► converge
143
167
  │ │ │ gaps found → new tasks ─┐
@@ -154,9 +178,47 @@ The five steps in the top row are the **short path**, always used for a feature.
154
178
 
155
179
  A project can also have a **constitution** (core principles and governance, once per project) that the workflow checks against. It is optional and not part of the per-feature flow.
156
180
 
157
- **Converge** compares the finished work with the spec and plan. Each gap becomes a new task (`converge`, `gap`, `covers` fields); implement and converge repeat until a round finds 0 gaps. The checklists gate implement: if any are not fully ticked, Claude stops and asks before going on.
181
+ **Converge** compares the finished work with the spec and plan. Each gap becomes a new task (`converge`, `gap`, `covers` fields); implement and converge repeat until a round finds 0 gaps **and** every requirement is `verified` (see below). The checklists gate implement: if any are not fully ticked, Claude stops and asks before going on.
182
+
183
+ **Small specs.** A small spec is a problem paragraph, one to three requirements and an *Out of scope* list. Claude shows it to you in chat; once you agree, the work takes four calls: `create_feature` with `kind: "small"` (the spec is written active, the optional steps are skipped, and a plan with one task covering every requirement is created), `start_task`, `complete_task` with evidence, and `record_converge`. A small spec with more than 3 requirements or 5 tasks gets a warning suggesting a full feature.
184
+
185
+ **Bugs.** When a bug breaks a requirement that already exists, Claude opens a fix plan naming it (`fixes`). The requirement drops to `planned` (your confirmation of it is revoked, and a converged feature becomes active again) and stays there while the fix plan is open; it cannot be confirmed by hand in that time. Once the fix plan is done, its tasks count for the requirement it fixes next to the tasks that already covered it, so the requirement becomes `verified` again when all of them are (or when you confirm it), and Claude then runs converge for the feature again:
186
+
187
+ ```
188
+ verified ──► fix plan opened ──► planned ──► fix tasks done with evidence ──► verified ──► converge again
189
+ ```
190
+
191
+ **Spec changes.** Before a feature has a plan, its spec changes freely. After that, `update_spec` needs a `reason`. The change is logged in the spec (time, reason, and the requirements added, removed or changed); changed and removed requirements lose your confirmation, and evidence recorded before a requirement's last change no longer counts for it.
192
+
193
+ **Continuing across sessions.** When you say "continue" in a new session, Claude calls `resume` before anything else. It lists the open work (open fix plans, and features and small specs not yet converged, most recently active first) and, for the one you pick, gives the position (`Group 3/5 · TASK-015 · 14/32 tasks`), the tasks in progress, the next tasks whose dependencies are done, the last tasks completed with their evidence level, and a truth check: done tasks that are only `claimed`, commits recorded as verified that the repository no longer has, open requirements and spec changes since the last completed task. Everything in it comes from the files, the evidence and the git repository. A task stopped halfway can leave a handoff note (`docs/handoff-<task>.md`); `resume` returns only its path, marked as the agent's own note rather than checked fact.
194
+
195
+ ### Evidence and coverage
196
+
197
+ When Claude completes a task it can pass evidence: the commits it made and each check command (tests, lint, build) exactly as it ran it. Plan Atlas checks what it can and labels each item **observed** (seen by Plan Atlas: a commit found in the repository, a check command its hook saw succeed since the task was started) or **declared** (stated by the agent, not checked). If the last observed run of a declared check failed, the completion is refused and the task stays in progress. The result is appended to a file next to the plan, so it survives rebuilding the index.
198
+
199
+ A completed task reaches one of three levels: `verified` (a declared check was seen passing), `implemented` (a verified commit or observed file edits) or `claimed` (nothing could be checked). Each requirement (`FR-…`, `SC-…`) gets a state from the tasks that cover it; the first matching row wins:
158
200
 
159
- You do not have to run all nine steps. Small work (a bug fix, a config change, a dependency bump, cleanup) skips the workflow and stays a **plain plan** created with `create_plan`, shown like any other plan. When it is unclear, Claude asks you.
201
+ | State | When | What it means |
202
+ |---|---|---|
203
+ | `planned` | a fix plan for it is open | it is being fixed, whatever its state was before |
204
+ | `verified` | you confirmed it on the Coverage tab | a person confirmed it |
205
+ | `uncovered` | no task covers it | nobody plans to do it yet |
206
+ | `planned` | a covering task is not done | work in progress |
207
+ | `claimed` | every covering task is done, one of them only `claimed` | the agent says it is done; nothing was checked |
208
+ | `implemented` | every covering task is done, the lowest level is `implemented` | real changes, no check seen |
209
+ | `verified` | every covering task is done and `verified` | a check passed while the work was done |
210
+
211
+ A completion recorded before a requirement's text last changed does not count for that requirement: the task is `claimed` for it until it is completed again. The tasks of a fix plan count for the requirements it fixes.
212
+
213
+ `claimed` is what other tools call "done". A feature becomes `converged` only when a converge round finds 0 gaps and every requirement is `verified`.
214
+
215
+ **Limits.** `verified` means "a check command named by the agent ran successfully while a task covering this requirement was being done". It does not prove the software is correct, so check commands are always shown verbatim for you to judge (a command ending in `|| true` always passes). Also:
216
+
217
+ - A piped command (`cargo test | tail`) reports the exit code of its last command, so the skills ask Claude to run checks without pipes.
218
+ - Checks match the exact text: declaring `cargo test` after running `cargo test --lib` gives `unobserved`. Commands run before the task was started are not recorded.
219
+ - A session is linked to one task at a time. When one session works on several tasks in parallel, commands are recorded for the task started last, and the other tasks' checks come out `unobserved`. The error is always towards recording too little, never towards recording something that did not happen.
220
+
221
+ Other agents can use the MCP server or the `plan-atlas task done` flags; without the hooks, evidence stops at declared checks and verified commits.
160
222
 
161
223
  ### Where everything is stored
162
224
 
@@ -165,14 +227,19 @@ Only in `~/.plan-atlas`. Plan Atlas writes nothing into your project repositorie
165
227
  ```
166
228
  ~/.plan-atlas/plans/<project>/
167
229
  constitution.md optional, one per project
168
- 2026-11-20-old-plan.md a plain plan, unchanged
230
+ 2026-11-20-old-plan.md an imported plan with no spec, unchanged
231
+ 2026-12-04-fix-review-limit.md a fix plan: `fixes: [FEAT-…/FR-…]` in its front matter
169
232
  003-product-reviews/ a feature: the folder contains spec.md
170
- spec.md user stories, FR-001…, SC-001…, Clarifications
233
+ spec.md user stories, FR-001…, SC-001…, Clarifications, change log
171
234
  plan.md the feature's one plan, tasks inside
172
235
  research.md data-model.md quickstart.md contracts/*.md
173
236
  checklists/<domain>.md requirements.md, security.md, api.md, ui.md, ...
174
237
  analysis.md report of the analyze step
175
- docs/*.md notes and reports written while doing a task
238
+ docs/*.md notes and reports written while doing a task, handoff notes
239
+ evidence/confirmations.jsonl requirements you confirmed or revoked on the web
240
+ evidence/<plan-id>.jsonl completion evidence of the feature plan's tasks
241
+ 014-bump-axum/ a small spec: spec.md (`kind: small`) and a one-task plan.md
242
+ evidence/<plan-id>.jsonl completion evidence of a fix plan's or imported plan's tasks
176
243
  ```
177
244
 
178
245
  Markdown files stay the source of truth; the SQLite index can be deleted and rebuilt. Plans you already have keep their ids, paths and content.
@@ -183,9 +250,14 @@ Markdown files stay the source of truth; the SQLite index can be deleted and reb
183
250
  <img src="docs/images/feature-flow.png" alt="The Flow tab of a feature: one box per workflow step with the documents it produced" width="900">
184
251
  </p>
185
252
 
186
- A feature page has the tabs **Flow**, **Spec**, **Plan**, **Checklists** and **Documents**. The Flow tab is a map of the workflow: which step the feature is in now, which steps are done, skipped or waiting, the documents each step produced (documents written during a task hang under that task), the converge rounds and their gaps. Click a requirement code such as `FR-003` to highlight the tasks that cover it; requirements no task covers are marked. A few quick actions are available, and nothing else is editable on the web:
253
+ A feature page has the tabs **Flow**, **Coverage**, **Spec**, **Plan**, **Checklists** and **Documents**. The Flow tab is a map of the workflow: which step the feature is in now, which steps are done, skipped or waiting, the documents each step produced (documents written during a task hang under that task), the converge rounds and their gaps. Click a requirement code such as `FR-003` to highlight the tasks that cover it; requirements no task covers are marked. The Coverage tab lists every requirement with its state, the covering tasks and their evidence labelled observed or declared, with check commands shown verbatim. A requirement also lists the fix plans pointing at it (marked *being fixed* while open) and the date its text last changed; the Spec tab lists the changes made after the spec was locked.
254
+
255
+ A feature that is not converged shows a **Continue** strip above its tabs: the position line, what needs checking again, the open fix plan to do first, and a **Copy prompt** button that copies a sentence such as `Continue FEAT-shop-003 in Plan Atlas` to paste into your agent. The project page starts with the open work (**In progress**) and lists plans with no spec separately. A fix plan's page names the requirements it fixes, linking to them on the feature's Coverage tab, and small specs carry a *Small spec* label.
256
+
257
+ A few quick actions are available, and nothing else is editable on the web:
187
258
 
188
259
  - tick checklist items (written straight into the file),
260
+ - confirm or revoke one requirement on the Coverage tab (there is deliberately no "confirm all", and no confirming while a fix plan for it is open),
189
261
  - confirm or adjust the optional steps Claude proposed,
190
262
  - change a task's status.
191
263
 
@@ -202,12 +274,12 @@ The workflow, its step names, the `US`/`FR`/`SC`/`CHK` codes and the checklist i
202
274
  | Change | Location |
203
275
  |---|---|
204
276
  | Installs 10 Skills: `plan-atlas` tells Claude where and how to write plans and specs, and nine `atlas-*` skills guide the workflow steps | `~/.claude/skills/plan-atlas/`, `~/.claude/skills/atlas-*/` |
205
- | Adds hooks for `PreToolUse`, `SubagentStart`, `SubagentStop` and `SessionEnd` | `~/.claude/settings.json` (a timestamped backup is written first; existing hooks are preserved) |
277
+ | Adds hooks for `PreToolUse`, `SubagentStart`, `SubagentStop`, `SessionEnd`, and for `PostToolUse` and `PostToolUseFailure` with the `Bash` matcher | `~/.claude/settings.json` (a timestamped backup is written first; existing hooks are preserved) |
206
278
  | Registers the MCP server | `claude mcp add --transport stdio --scope user plan-atlas -- plan-atlas mcp` |
207
279
 
208
- With the integration in place, Claude creates plans through the MCP server, records task progress, and links related plans. Plans written in Claude Code's plan mode are registered after you approve them. To revert all changes, run `plan-atlas uninstall-claude`.
280
+ With the integration in place, Claude creates plans through the MCP server, records task progress, and links related plans. Plans written in Claude Code's plan mode are registered after you approve them, through one of the three paths. To revert all changes, run `plan-atlas uninstall-claude`.
209
281
 
210
- **Upgrading:** when the Skills are already installed, launching a new version of `plan-atlas` updates them in place. Run `plan-atlas setup` again if skills are missing.
282
+ **Upgrading:** when the Skills are already installed, launching a new version of `plan-atlas` updates them in place, and adds any hook events the new version needs (a backup of `settings.json` is written first). Run `plan-atlas setup` again if skills are missing.
211
283
 
212
284
  ## Configuration
213
285
 
@@ -268,6 +340,28 @@ A feature's `plan.md` uses the same format, plus optional task fields written by
268
340
 
269
341
  `story` links a task to a user story, `covers` lists the requirement and success-criteria codes it satisfies, and `converge` (round number) and `gap` (`missing`, `partial`, `contradicts` or `unrequested`) mark tasks created by a converge round.
270
342
 
343
+ A fix plan is a flat plan with `fixes` in its front matter. The server writes it, and `update_plan` keeps it:
344
+
345
+ ```markdown
346
+ ---
347
+ id: PLAN-shop-021
348
+ project: shop
349
+ title: Fix the review length limit
350
+ fixes: [FEAT-shop-003/FR-002]
351
+ ---
352
+ ```
353
+
354
+ A spec's front matter is managed by the server as well. Next to `id`, `status` and `track` it carries `kind: small` for a small spec (no `kind` means a full feature) and, once the spec is locked, its change log:
355
+
356
+ ```yaml
357
+ changes:
358
+ - at: 2026-12-05T09:12:00+07:00
359
+ reason: Limit cut to 1000 characters
360
+ added: []
361
+ removed: []
362
+ changed: [FR-002]
363
+ ```
364
+
271
365
  </details>
272
366
 
273
367
  ## Architecture
@@ -289,6 +383,7 @@ Claude Code ── hooks ──────── plan-atlas hook ─┼──
289
383
  - No telemetry. The server listens only on `127.0.0.1` and makes no outbound connections.
290
384
  - Requests are rejected unless the `Host` header names the local server, which protects against DNS rebinding. Write requests also require a custom header.
291
385
  - Plan content is sanitized before rendering.
386
+ - For Bash commands the hook stores only whether the command succeeded and a hash of its text, never the command itself or its output, because commands can contain tokens.
292
387
  - The hook handler is designed never to interfere with Claude Code: it always exits with code 0, prints nothing and finishes within 200 ms.
293
388
 
294
389
  To report a vulnerability, see [SECURITY.md](SECURITY.md).
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "plan-atlas",
22
- "version": "0.3.0"
22
+ "version": "0.4.0"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "0.3.0"
51
+ "version": "0.4.0"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/wik1ngst-1103/plan-atlas/releases/download/v0.3.0"
3
+ "https://github.com/wik1ngst-1103/plan-atlas/releases/download/v0.4.0"
4
4
  ],
5
5
  "bin": {
6
6
  "plan-atlas": "run-plan-atlas.js"
@@ -90,7 +90,7 @@
90
90
  "zipExt": ".tar.xz"
91
91
  }
92
92
  },
93
- "version": "0.3.0",
93
+ "version": "0.4.0",
94
94
  "volta": {
95
95
  "node": "18.14.1",
96
96
  "npm": "9.5.0"