feat(agent-menu): make the stack truth export reachable from the menu - #176
Open
MCamner wants to merge 1 commit into
Open
feat(agent-menu): make the stack truth export reachable from the menu#176MCamner wants to merge 1 commit into
MCamner wants to merge 1 commit into
Conversation
`mqlaunch stack truth-export` has always worked, but the export could only be run by typing it. The stack sweep reads brain_export and reports the note as stale without offering any way to refresh it — which is how it went fourteen days without running. Nothing schedules it; the note history is irregular (11 Jun, 18 Jul, 19 Jul, 22 Jul, 23 Jul), consistent with manual runs. Adds it as option 3 of the Review to Brain submenu, whose panel already says WRITES TO mqobsidian and which sits at option 5 of the agent menu, next to the sweep at 6. Not a top-level row: the agent menu already holds exactly ten choices and tools/scripts/test-all.sh step [8/9] enforces "no menu loop offers more than ten choices" across every menu. An eleventh would have failed the suite. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Why
mqlaunch stack truth-exporthas always worked — it is in the command-mode help and forwards tomq-agent stackunchanged. But it could only be run by typing it. The stack sweep readsbrain_export, reports the note as stale, and offers no way to refresh it.That is how it went fourteen days without running. Nothing schedules it: no launchd agent, no cron, and the note history is irregular (11 Jun, 18 Jul, 19 Jul, 22 Jul, 23 Jul) — consistent with manual runs.
Change
Option 3 of the Review to Brain submenu, whose panel already declares
WRITES TO mqobsidian, and which sits at option 5 of the agent menu — next to the stack sweep at 6.Why not a top-level row next to the sweep
That was the original idea, but the agent menu already holds exactly ten choices, and
tools/scripts/test-all.shstep[8/9]enforces "no menu loop offers more than ten choices" across every menu — "the limit is enforced rather than recorded". An eleventh row would have failed the suite. The submenu keeps the export one keystroke from the sweep without breaking that rule.Verification
New assertion
mq-agent-routing-smoke [14/14]was written first and seen red: it requires both the visible row and a numbered case that reaches_run_agent stack truth-export. The panel above is the actual rendered output, not a mock-up.Still open
This makes the export findable, not automatic. It will read
agingafter a day andstaleafter a week again unless someone runs it.🤖 Generated with Claude Code