Skip to content

docs: document and guard the operational --json shapes#85

Merged
andyrewlee merged 1 commit into
mainfrom
audit/38-operational-json-shapes
Jun 15, 2026
Merged

docs: document and guard the operational --json shapes#85
andyrewlee merged 1 commit into
mainfrom
audit/38-operational-json-shapes

Conversation

@andyrewlee

Copy link
Copy Markdown
Owner

AGENT.md described abort/undo/repair only as "small { ... } objects, see
st help " — but st help renders commandInfo (name/summary/
usage/aliases/flags), which carries none of the result keys, so the
redirect pointed agents at the wrong shape. The emitted keys (aborted,
undone, label, restored, repaired, fixes) appeared in no drift-guard.

Document the three fixed shapes explicitly and extend TestAgentDoc-
DocumentsEmittedKeys to drive abort (over a real paused rebase), undo,
and repair so every key they emit is pinned to AGENT.md, matching the
guard already covering status/checkout/validate/log/navigation.


Part of a 38-PR stacked diff (audit/01audit/38), reviewed and merged bottom-up. This PR is based on audit/37-help-json-drift-guard.

@andyrewlee andyrewlee force-pushed the audit/37-help-json-drift-guard branch from 369f927 to eb6bbac Compare June 15, 2026 06:52
AGENT.md described abort/undo/repair only as "small { ... } objects, see
st help <cmd>" — but st help <cmd> renders commandInfo (name/summary/
usage/aliases/flags), which carries none of the result keys, so the
redirect pointed agents at the wrong shape. The emitted keys (aborted,
undone, label, restored, repaired, fixes) appeared in no drift-guard.

Document the three fixed shapes explicitly and extend TestAgentDoc-
DocumentsEmittedKeys to drive abort (over a real paused rebase), undo,
and repair so every key they emit is pinned to AGENT.md, matching the
guard already covering status/checkout/validate/log/navigation.
@andyrewlee andyrewlee changed the base branch from audit/37-help-json-drift-guard to main June 15, 2026 06:53
@andyrewlee andyrewlee force-pushed the audit/38-operational-json-shapes branch from d1855c6 to 05d1c2f Compare June 15, 2026 06:53
@andyrewlee andyrewlee merged commit 8dbc3c0 into main Jun 15, 2026
4 checks passed
@andyrewlee andyrewlee deleted the audit/38-operational-json-shapes branch June 15, 2026 06:54
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.

1 participant