← Back to Pull requests

Index Antigravity IDE and agy CLI native histories #132

Open
unknown opened this pull request with 312 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 13, 2026 16:20 UTC
Author

Add a focused Antigravity adapter for native IDE and agy CLI JSONL histories, based on the Antigravity portion of #83 and the maintainer's request to split that proposal by tool.

The default registry discovers both ~/.gemini/antigravity/brain and ~/.gemini/antigravity-cli/brain. Explicit in_home / cli_in_home constructors accept the Gemini configuration directory used by agy --gemini-dir, so embedders can select isolated profile homes. Each root has its own reconciliation scope.

Conversation-directory keys stay stable across compact/full transcript availability; the reader selects the log with the greatest native step coverage, preferring full logs for untruncated content when coverage matches. Changes to either log invalidate the cache. User prompts, assistant replies and paired structured tool calls/results are searchable. Successful edit evidence is streamed from the complete log even when conversation reads are windowed. Optional native summary metadata supplies titles, workspace URIs and parent relationships; transcripts determine which conversations exist. Discovery errors prevent archival of cached sessions. Failed summary database reads skip that root's sync pass and preserve indexed metadata until a healthy retry; an absent database permits transcript-only indexing. Archived sessions remain readable from their durable cached transcripts even when their native directory remains.

A committed fixture was sanitized from a live agy 1.5.7 session on Linux on 2026-11-13, with private text, commands and paths replaced. It preserves one user turn, three tool calls/results and the final assistant reply. Additional synthetic cases cover writes, failed/unfinished edits, redaction, malformed JSON/URIs, full/compact deduplication, windowed provenance, independent IDE/CLI roots and real index reconciliation, normal and archived CLI show reads, nullable legacy summaries, dangling symlink errors and bounded refresh after summary-only updates (including older databases without row timestamps, stale row timestamps and removed summary rows). No Qoder or ZCode changes are included. Protobuf-only histories without JSONL transcripts are outside this reader's scope.

Validation: 370 Rust tests, Clippy with warnings denied, and rustfmt pass. Index tests use disposable sources and SESSIONWIKI_DATA. The adapter reuses the optional activity-time hook also introduced in #130/#131 to keep opaque change tokens separate from real dates. Based on upstream main 8925005.

Diff: 312 lines (+234 / -78) across 3 files Reviewer: youdie006 Review duration: 24347m
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.45) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 312 lines diff across 3 files
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.344
Shallow Review Depth shallow_review_depth
0.344
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #132"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 45.3% (MEDIUM) · Higher = larger blast radius
45.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 24.1% · Safe to merge
24.1%