feat: v2.4 Phase 31 — Gemini CLI Tests#19
Merged
RichardHightower merged 9 commits intomainfrom Feb 26, 2026
Merged
Conversation
…n layer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 7 Gemini-format fixtures (SessionStart, SessionEnd, BeforeAgent, AfterAgent, BeforeTool, AfterTool, malformed) - All valid fixtures are compact single-line JSON for memory-ingest compatibility - Uses Gemini event names and field conventions (.prompt, .prompt_response) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- smoke.bats: 8 tests covering binary detection, daemon health, hook script, ingest, gemini CLI - hooks.bats: 8 tests covering all 6 Gemini event types via memory-capture.sh two-layer proof - Fix: memory-capture.sh jq -n -> jq -nc for compact single-line JSON output (memory-ingest reads stdin line-by-line; multi-line JSON from jq silently failed) [Rule 1 - Bug] Fixed jq multi-line output in memory-capture.sh payload construction Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- SUMMARY.md with 2-task execution, 1 deviation (jq -nc fix) - STATE.md updated to Phase 31, plan 1 of 2 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 5 tests covering full session lifecycle, TOC browse, cwd metadata, agent field preservation, concurrent sessions - All events use agent=gemini with direct CchEvent format - Hard assertions with diagnostic echo on failure Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 4 memory-ingest tests: daemon down, malformed JSON, empty stdin, unknown event type
- 3 memory-capture.sh tests: daemon down, malformed input, empty stdin
- All assert exit 0 with appropriate fail-open output ({} or {"continue":true})
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- SUMMARY.md with 2 task commits, 28 total Gemini tests passing - STATE.md updated: phase 31 complete, progress 69% Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <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.
Summary
jq -n→jq -ncbug inmemory-capture.shthat caused silent ingest failures (same root cause as Phase 30 hooks.bats fix)memory-ingest({"continue":true}) andmemory-capture.sh({})Test plan
bats tests/cli/gemini/smoke.bats— 8 tests (binary detection, daemon health, basic ingest)bats tests/cli/gemini/hooks.bats— 8 tests (all 6 Gemini event types via memory-capture.sh two-layer proof)bats tests/cli/gemini/pipeline.bats— 5 tests (full ingest-to-query cycle with agent=gemini)bats tests/cli/gemini/negative.bats— 7 tests (daemon-down, malformed, empty stdin fail-open)🤖 Generated with Claude Code