Repository navigation
feat: use standing away words for plain /afk - #52
Merged
Merged
Conversation
A readable config/afk-words file becomes the away mandate when enter is given no words. The record marks that source, the entry announcement says those words were used, and the return brief names the file. Quiet mode and a wordless refresh stay unchanged, and new words still replace and archive the mandate.
peterOC26
force-pushed
the
fm/fm-afk-standing-words-q1
branch
from
November 9, 2026 20:40
943ef69 to
162969e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Standing away words for a plain /afk (approved Q1956 Y, 2026-11-09). The away history review found 28 of 39 away windows had no instructions, and the largest avoidable stalls (about 30 h) all happened in those windows. The captain writes his away words once in a local file; whenever /afk is sent with no words, those words are recorded verbatim as the away mandate, and sending /afk with new words replaces them for that away session.
That review's standing-words experiment is a captain-authored local file, config/afk-words. When an away entry is given no words and that file exists and is readable, the file is stored verbatim as the away mandate, with no parsing. The record marks that the mandate came from config/afk-words. The entry announcement says the standing away words were used and that /afk with new words replaces them. The return brief's mandate section names that source. An absent file records no mandate, exactly as a wordless away entry does today, so a home without the file is unchanged. Quiet mode does not read the file. A refresh that brings no new words leaves the current mandate as it already stands. Sending /afk with new words replaces the mandate for that away session and archives the previous one. Nothing in the file is parsed. Destructive, irreversible, and security-sensitive actions stay under their existing limits, and a plain /afk still does not pre-authorize them.
What Changed
config/afk-wordsverbatim as the mandate for a new wordless/afkentry.Risk Assessment
✅ Low: The change is small and opt-in. The standing-words fallback only runs on a wordless away write that is not a refresh, and a home without config/afk-words behaves as before. The new source field is validated, the warning path for an unusable file follows the user's earlier decision, and tests cover the new behaviour by running the real commands.
Testing
Both focused regression scripts and six live CLI scenarios passed. CLI output, return reports, and the primary trust screen were captured, with terminal evidence rendered as HTML rather than a GUI screenshot. Workspace-trust restrictions prevented validating the complete /afk chat flow.
Evidence: Rendered captured product output
Source: Rendered captured product output
Evidence: Live CLI scenarios
Source: Live CLI scenarios
Evidence: Return report showing replacement and standing-file provenance
Source: Return report showing replacement and standing-file provenance
Evidence: Real primary workspace-trust blocker
Source: Real primary workspace-trust blocker
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
🔧 **Rebase** - 1 issue found → auto-fixed ✅
tests/fm-afk-return.test.sh- merge conflict rebasing onto origin/main🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Review** - passed
✅ No issues found.
bash tests/fm-afk-contract.test.sh— passedbash tests/fm-afk-return.test.sh— passedpython3 ~/.no-mistakes/evidence/01M70ZWTQ5G7TSJS9ADMRENWFG/live-standing-words.py— drove real entry, record, refresh, replacement, quiet, and return commands in disposable homesclaude auth status— confirmed an existing login without changing credentialspython3 ~/.no-mistakes/evidence/01M70ZWTQ5G7TSJS9ADMRENWFG/live-primary.py— launched a private 120×42 tmux primary, captured workspace-trust refusal, and cleaned upRendered captured terminal output to product-output.html; confirmed disposable homes were removed and the worktree remained clean✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.