Move Antigravity IDE and CLI source discovery, lookup, and parse
ownership onto concrete antigravityProvider and antigravityCLIProvider
types, deleting the package-level legacy free functions and their legacy
sync dispatch. Both agents become provider-authoritative.
Sidecar and freshness semantics are preserved through the providers'
SourcesForChangedPath fan-out and composite fingerprints rather than
engine-level classifiers: the IDE provider maps annotations and brain
artifacts back to the conversation DB, and the CLI provider maps history,
brain, trajectory, and db/pb-precedence sidecars to every affected source.
Drop the obsolete engine-level TestClassifyOnePath_AntigravityCLI, which
exercised the removed classifyOnePath antigravity arm. The antigravity
provider unit tests cover the per-path sidecar-to-source mappings and the
engine integration tests cover the engine-to-provider routing, so the
test asserted removed behavior without adding coverage.
fix(parser): preserve antigravity history invalidation
Antigravity CLI history changes are watched and classified through fresh provider instances, so provider-local history snapshots cannot reliably detect rows that were removed or retagged. Treat history.jsonl writes conservatively and fan out to all current CLI sources, which preserves stale-metadata cleanup at the cost of a broader reparse on history-only updates.
The file watcher now consumes provider watch plans for agents that only had plain WatchSubdirs wiring, so provider-owned roots such as Antigravity CLI's history.jsonl parent are observed by the real watcher setup while bespoke legacy watch-root functions keep their existing behavior.
Validation: go test -tags fts5 ./internal/parser -count=1; go test -tags fts5 ./internal/sync -run 'Test.*AntigravityCLI|TestProcessAntigravity|TestSyncPathsAntigravity' -count=1; go test -tags fts5 ./cmd/agentsview -run TestCollectWatchRoots -count=1; go vet ./...; git diff --check
Antigravity IDE and CLI now use concrete parser providers instead of the legacy adapter path. The IDE provider models conversation DBs with annotation and brain sidecars, while the CLI provider models DB/PB precedence, trajectory sidecars, implicit sessions, brain fan-out, history-derived project hints, composite fingerprints, force-replace parses, and retry state propagation. Review should focus on the custom source-set behavior and parity with the existing Antigravity sync classifiers.