martha#296: one owner answer keeps a tool or a shell prefix for the launch #343
Loading…
Reference in a new issue
No description provided.
Delete branch "neptunus/296-session-answer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (gap): one owner answer covers a tool, or a shell prefix, for the rest of an engine member's launch, so a member that runs the same tool twenty times does not ask twenty times. Refs #296, #239, #241.
Scope is the Supervisor's ruling of 2026-12-01, option (b): per tool plus command pattern. Threat model and Done-when: #296 comment 6934.
What it does
martha answer <member> <key> allow-for-session [<prefix>]allows the ask and keeps a rule for the rest of that member's launch:Bash(<prefix>:*)is kept, read by the settings reader (theRuleOf), and the line's other parts are kept exactly./allow-always's exact keep is now held too (it was not).martha answerrecord behind it answers the one ask, keeps nothing, and says so in the notes.Found on the way (it blocked this package)
The engine launch read the owner-act record with
typeof read === 'string', butreadStateFilereturns{ text }. So since85f3bd73(#541 package A), every answer an engine member heard was kept withowner_act: falseand noted as having no owner act behind it. It now readsread.text, and the launch test below pins it.Tests and mutants
the_rules_kept_for_a_launch.node-test.ts: whole tool; exact line; prefix; the three refusals; deny and ask holding kept rules;theLaunchsMayRunholding kept rules and an/allow-alwayscall.hear_an_acp_agents_asks.node-test.ts: a keep with an owner act; without one; refused by the keeper; on a reject; with no keeper.the_owners_answer_route.node-test.ts: the keep crossing the route; a malformed keep refused; the record pinning the prefix; the command words; the receipt.start_an_engine_member.node-test.ts: a real launch. Oneallow-for-session lsruns the nextls -launasked, and a deny ofls -Rstill asks.No new check or job.
martha answer ... allow-for-session [<prefix>]records and sends a keep, the record pins the prefix (red, martha#296) 6b444a7b54martha answer <member> <key> allow-for-session [<prefix>], recorded with its keep and sent over the route 66f9019ac5The launch read the owner-act record as a string, but readStateFile returns { text }, so every answer an engine member heard was kept with owner_act false since85f3bd73(#541 package A). It now reads the text, which a keep needs.martha answer … allow-for-session [<prefix>]457308cd8c