atlas_publish
Append and verify a Work Order status entry in project docs after tests pass; refuses writes when code-wiring checks fail.
Instructions
Append a new Work Order status entry to the documentation — gated by a code-wiring check and verified by read-back.
Use this tool as the FINAL step after tests pass to record a new Work Order in the bound Google Doc
or local managed Markdown file (`docs/ARCHITECTURE.md`). If the Work Order heading already exists and
you only need to flip `⬜ OPEN` to `✅ DONE`, use `atlas_set_status` instead.
Behavior & Output:
- Pre-write wiring gate: when `status='done'`, verifies that every symbol in `verify_symbols` (and
`.atlas/wo-symbols.yml`) is both defined and referenced/called (`calls + references > 0`). If any
symbol is dead code, returns `{written: false, refused: true, refusal: "..."}` without touching disk/network.
- Atomic verified write: appends the formatted status line, reads the document back to confirm presence,
logs to `.atlas/mutations.log`, and returns `{written: true, verified: true, wo, line}`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wo | Yes | Work Order number (positive integer, e.g. 7 for 'Work Order 7'). | |
| title | Yes | Short title of the Work Order (e.g. 'Critical Hit Calculation'). | |
| status | No | Target Work Order status: 'done' (writes `✅ DONE`, default) or 'open' (writes `⬜ OPEN`). | done |
| description | No | Optional summary of what was implemented and which files were touched. | |
| verify_symbols | No | List of function or class names built in this Work Order (e.g. ['apply_crit_bonus']). When `status='done'`, each symbol is checked before writing: if any symbol is undefined or has 0 callers/references across the codebase, the write is refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |