You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#258 introduced the deep ProjectContext query seam, but the committed read path still has three structural limits:
A08 v1 folds each repository to one lexically latest run, so consumers cannot model multiple admitted snapshots without rescanning the authority tree.
artifact index --operation incremental validates the supplied index and then performs a full scan; it has no dependency-keyed view reuse.
Query handlers repeatedly traverse the same verified Artifact Refs, while ProjectContext::Query exposes only one evidence-shaped intent.
Graft-style graph files are not the target. The target is a Pipeline-owned, evidence-native multi-view index whose projections remain subordinate to A07/A08 authority.
Decision
Add one crate-private deep Module behind ProjectContext and CommittedEvidenceController:
A08 code-intel-artifact-index.v1 remains unchanged as the latest-by-repository compatibility/authority projection.
SnapshotCatalog retains every fully validated completed repository.iteration and never admits staging, forged, non-completed, or mismatched publications.
Committed evidence keys and current-working-tree freshness keys remain separate: a dirty checkout may change freshness without changing immutable committed views.
Materialized views/cache are disposable hints. A cache hit never skips A07/A08/Artifact Ref verification and never becomes authority.
Existing CLI and MCP wire schemas remain compatible in this slice; raw artifact query remains an administrative Adapter.
First vertical slice
Introduce typed SnapshotCatalog, QueryIntent, ViewKind, ViewKey, and an in-process QueryIndex cache in Rust; no new dependency or lib.rs.
Materialize at least two deterministic views over reverified committed evidence: an artifact catalog and a lexical content view.
Route the existing project evidence query through QueryIntent and the shared index while preserving its current domain JSON; the long-lived MCP process may reuse a view only when its dependency key is identical.
Preserve full A08 revalidation, repository binding, freshness reporting, newest-run selection, and all existing diagnostics.
Problem
#258 introduced the deep
ProjectContextquery seam, but the committed read path still has three structural limits:artifact index --operation incrementalvalidates the supplied index and then performs a full scan; it has no dependency-keyed view reuse.ProjectContext::Queryexposes only one evidence-shaped intent.Graft-style graph files are not the target. The target is a Pipeline-owned, evidence-native multi-view index whose projections remain subordinate to A07/A08 authority.
Decision
Add one crate-private deep Module behind
ProjectContextandCommittedEvidenceController:code-intel-artifact-index.v1remains unchanged as the latest-by-repository compatibility/authority projection.SnapshotCatalogretains every fully validated completedrepository.iterationand never admits staging, forged, non-completed, or mismatched publications.ViewKey = sha256(view version + snapshot identity + ordered source Artifact Ref schema/type/digest/consumedSnapshotIdentity + config digest).artifact queryremains an administrative Adapter.First vertical slice
SnapshotCatalog,QueryIntent,ViewKind,ViewKey, and an in-processQueryIndexcache in Rust; no new dependency orlib.rs.QueryIntentand the shared index while preserving its current domain JSON; the long-lived MCP process may reuse a view only when its dependency key is identical.Acceptance
Non-goals
Refs #51 #100 #257