mirror of
https://github.com/akitaonrails/ai-memory.git
synced 2026-10-02 03:24:46 +08:00
Follow-up to #1001 (#998's real fix), per review on the superseded #1009: the negative case -- that grok, kimi-code and pool must never call /handoff from session-start at all -- isn't covered by #1001, which only touches the eight bundles that do fetch one. Each of the three documents why in its own session-start.sh: Grok and Kimi Code discard SessionStart stdout (Kimi delivers the brief from user-prompt-submit.sh instead), and Pool's own comment says fetching there would be destructive and silently lose an undelivered handoff. A regression here would burn a single-use handoff with nothing to show for it on the harness side. Runs each real shipped script against a PATH curl shim (same pattern the existing antigravity and grok post-tool-use cases already use) and asserts exactly one request -- the capture POST -- with no /handoff GET anywhere in it. Verified: 108 -> 114 assertions passing under busybox sh (also checked against upstream main pre-#1001 state to confirm the +6 delta is exactly this addition, no loss elsewhere); 137 -> 143 under Git Bash. shellcheck clean (every existing finding in the file predates this change).