Files
ai-memory/tests
Maxsuel Einstein ebf942c6d7 test(hooks): grok, kimi-code and pool never fetch a handoff at session-start
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).
2026-10-01 08:44:43 -03:00
..
…