Skip to content

feat(vault): allow editing intent body via intent update - #89

Merged
vinceblock99 merged 3 commits into
devfrom
chore/intent-update-body
Jun 23, 2026
Merged

vinceblock99 merged 3 commits into
devfrom
chore/intent-update-body

Conversation

@vinceblock99

@vinceblock99 vinceblock99 commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds --body and --body-stdin to atomic vault intent update.

Why

Intent bodies previously required editing the materialized Markdown file and running vault sync.

Safety

Body edits are allowed directly while an intent is backlog and unlinked. Once it has started or is linked to a goal, rewriting the body requires --force. Metadata updates remain unaffected.

Test

  • cargo test -p atomic-repository intent_update --lib
  • cargo check -p atomic-cli
  • cargo clippy -p atomic-repository -p atomic-cli -- -D warnings

@vinceblock99
vinceblock99 requested a review from a team June 19, 2026 01:06
`atomic vault intent update` previously only updated frontmatter
(status, assignee, priority, title); the Markdown body was always
preserved unchanged. Filling in an intent's Problem / Acceptance
Criteria / Scope / TODOs required editing the materialized file on
disk and running `vault sync`.

Add a `content` field to `IntentUpdateOptions` and two CLI flags so
the body can be set directly:

- `--body <STRING>` to replace the body inline
- `--body-stdin` to pipe the body from a file (e.g. `cat plan.md | ...`)

The flags are mutually exclusive. When neither is given, the body is
left unchanged (existing behavior). Updating with no fields at all now
returns a clear "nothing to update" error instead of a no-op.

Mirrors the stdin pattern of `vault memory write`. No immutability
gate is added — vault intents are editable work documents, consistent
with the existing edit-on-disk + `vault sync` path.
@vinceblock99
vinceblock99 force-pushed the chore/intent-update-body branch from 87473b1 to efa4015 Compare June 23, 2026 13:49
@vinceblock99
vinceblock99 merged commit 0ce518d into dev Jun 23, 2026
8 checks passed
@vinceblock99
vinceblock99 deleted the chore/intent-update-body branch August 12, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants