martha start <engine member> --acp: serve ACP upward to the client above (martha#361) #363
Loading…
Reference in a new issue
No description provided.
Delete branch "neptunus/361-start-acp"
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?
Refs #361
martha start <engine member> --acpserves the engine member upward, over ACP on stdio, to the client above it (lazymartha package 1). The engine below is driven as before (gate, owner's rules, dashboard rows). Only the owner's side changes:session/request_permission, with once-options only.martha answerand the client's reply settle the same held ask by key, and the first one wins. An ask settled the other way is dropped up with_martha/ask_settled, and a late reply answers nothing.start --acpis refused inside a member, asmartha answeris. stdout carries only protocol frames: no started line, no bell, no chat.New slice:
src/serve_acp_to_the_client_above/. It is drawn in the ACP box of architecture/c4_diagrams.ts and its README row.Proof on
a2963287(tested on 5ebf3a19; the only difference is one comment line in the new slice):npm test: 5976 tests, 1 fail. The failure is the martha#70 setsid-loop case under load (60.4 s against the 60 s timeout). It is unrelated, passes alone, and is filed as #362.Not tested: a gate
denynever going up. A deny never opens an ask, which is the same path the rules test proves. The bell guard on a tty stdin is not tested either.