Expand description
Storage contracts and SQLite-backed graph state.
Storage owns persisted graph facts, mutation log entries, derived index metadata, and health snapshots. Domain and interface modules must not depend on SQL or concrete database types.
Re-exports§
pub use crate::domain::IndexCursor;pub use crate::domain::IndexLag;pub use crate::domain::IndexRefreshDiagnostics;pub use crate::domain::IndexStalenessReason;
Structs§
- Audit
Query Request - Audit query filter.
- Code
Chunk Search Request - Bounded code chunk search against an explicit graph snapshot.
- Code
Impact Changes - Diff-derived inputs used to seed code impact expansion.
- Code
Index Publication Target - Durable task target whose already-complete publication may be adopted by a later fenced attempt without rebuilding code or software facts.
- Code
Index Task Claim Request - Lease acquisition request for one background code index task.
- Code
Index Task Completion - Completion report guarded by task lease and attempt token.
- Code
Index Task Failure - Failure report for retry and dead-letter handling.
- Code
Index Task Lease Record - Active code-index task lease used by service startup recovery.
- Code
Index Task Lease Recovery - Recovery request carrying the exact running leases observed as orphaned.
- Code
Index Task Lease Renewal - Strict renewal request for one still-live fenced code-index attempt.
- Code
Index Task Seed - New background code index task to persist or deduplicate.
- Code
Reference Search Request - Bounded code reference search against an explicit graph snapshot.
- Code
Repository SetEdge Selector - Bounded repository-set overlay keys needed to decorate retrieval candidates.
- Code
Repository SetMember Seed - New or replaced repository-set member pointer.
- Code
Repository SetRefresh Publication - Attempt-scoped authority required to publish a repository-set overlay.
- Code
Repository SetRefresh Task Claim Request - Lease acquisition request for one repository-set overlay task.
- Code
Repository SetRefresh Task Completion - Completion report guarded by task lease and attempt token.
- Code
Repository SetRefresh Task Failure - Failure report for retry and dead-letter handling.
- Code
Repository SetRefresh Task Seed - Repository-set overlay refresh task to persist or deduplicate.
- Code
Repository SetSeed - New repository set metadata to persist.
- Code
Scope Retention Request - Scope retention request after a repository index completes.
- Code
Symbol Search Request - Bounded code symbol search against an explicit graph snapshot.
- File
Content Chunk - Text chunk extracted from an authorized local file.
- File
Content Entry - Content read-model record produced by a bounded scan.
- File
Content Read Model Cursor - Scoped derived cursor state for one file-content read-model input.
- File
Content Search Hit - One file-content search hit with provenance and prompt-role isolation.
- File
Content Search Request - Bounded file-content query.
- File
Index Diagnostics - Aggregated file-index diagnostics.
- File
Index Entry - Indexed file-location record produced by a bounded scan.
- File
Index Root - Authorized root scanned by the local file indexer.
- File
Index Root Status - Root-level status surfaced to health and service diagnostics.
- File
Index Root Update - Full-root replacement produced by one scan pass.
- File
Index Scan Summary - Summary returned after one or more roots are indexed.
- File
Knowledge Fact Candidate - Deterministic candidate fact extracted from file content.
- File
Search Hit - One file-location search hit.
- File
Search Request - Bounded file-location query.
- Graph
Canvas Storage Edge - Storage edge projected into the Web graph canvas contract.
- Graph
Canvas Storage Node - Storage node projected into the Web graph canvas contract.
- Graph
Canvas Storage Request - Bounded graph canvas request against an explicit graph snapshot.
- Graph
Canvas Storage Snapshot - Bounded storage snapshot for one graph canvas view.
- Graph
Inspection - Aggregated graph status for diagnostics.
- Graph
Search Outcome - Search hits plus the bounded traversal trace that produced them.
- Graph
Search Request - Bounded graph search request against an explicit graph snapshot.
- Health
Storage Snapshot - Read-only storage view used by service health without mutating indexes.
- Index
Refresh Claim Request - Lease acquisition request for bounded foreground workers.
- Index
Refresh Completion - Completion report guarded by the active task lease and attempt token.
- Index
Refresh Failure - Failure report for retry backoff and dead-letter isolation.
- Index
Refresh Queue Request - Queue request created by refresh APIs or the reconciler.
- Index
Refresh Task - Persistent task used by foreground refresh and startup recovery.
- Mutation
LogEntry - Mutation log entry returned for replay and index refresh planning.
- NewAudit
Event - New durable audit event.
- NewProposal
- New proposal to persist before manual approval.
- NewProposal
Conflict - New proposal conflict to persist with a proposal.
- Partitioned
Sqlite Knowledge Store - SQLite topology that keeps global control state in one DB and code facts in one DB per registered repository.
- Proposal
Decision - Proposal decision request.
- Proposal
List Request - Proposal list filter.
- Service
Operator Update - Service operator state update.
- Sqlite
Graph Store - SQLite implementation of graph facts, mutation log, and index metadata.
- Sqlite
Storage Diagnostics - SQLite-specific health data included in shared graph diagnostics.
- Storage
Health - Storage health surfaced to diagnostics.
- Storage
Shard Catalog Entry - One repository shard entry from the partitioned SQLite catalog.
- Storage
Topology Snapshot - Runtime storage topology snapshot surfaced through service diagnostics.
- Worker
Task Claim Request - Worker lease acquisition request.
- Worker
Task Completion - Worker completion guarded by the active lease.
- Worker
Task Failure - Worker failure report for retry and dead-letter handling.
- Worker
Task Seed - Worker task input inserted after graph changes or service reconciliation.
Enums§
- Code
Index Finalization Step - Result of advancing one durable code-index finalization writer quantum.
- Graph
Canvas Selection - Storage-level graph canvas selection without depending on Web API types.
- Index
Refresh Task State - Persistent index refresh task lifecycle state.
- Storage
Error - Storage boundary failure.
- Storage
Topology - Storage topology selected at runtime.
Constants§
- CODE_
INDEX_ FINALIZATION_ COARSE_ PHASE_ COUNT - Stable coarse states in the durable code-index finalization plan.
- CODE_
INDEX_ FINALIZATION_ MAX_ STEPS - Hard bound for missing index units, coarse phases, and terminal observation.
- CODE_
INDEX_ TASK_ LEASE_ RECOVERY_ UNAVAILABLE - Default error text for stores that do not support code task lease recovery.
- CODE_
INDEX_ TASK_ LEASE_ RENEWAL_ UNAVAILABLE - Default error text for stores that do not support code task lease renewal.
- DEFAULT_
INDEX_ SOURCE_ SCOPE - Synthetic scope used for graph-wide index work that is not tied to evidence.
- MAX_
GRAPH_ SEARCH_ FTS_ CODEPOINTS - Conservative tokenizer-work bound when Unicode category rules split a phrase.
- MAX_
GRAPH_ SEARCH_ FTS_ TOKENS - Maximum lexical terms admitted to the FTS5 query builder.
- MAX_
GRAPH_ SEARCH_ LIMIT - Maximum candidate limit accepted by the SQLite graph-search implementation.
- MAX_
GRAPH_ SEARCH_ QUERY_ CHARS - Maximum Unicode scalar values accepted by every graph-search adapter.
- MAX_
GRAPH_ SEARCH_ TOKEN_ BYTES - Maximum UTF-8 bytes in one lexical term admitted to FTS5.
Traits§
- Business
Knowledge Store - Repository-scoped business projection writes and immutable indexed reads.
- Code
Graph Store - Code graph fact persistence and query contract for tree-sitter output.
- Code
Index Publication Store - Checkpointed snapshot, batch, workspace, and final publication capability.
- Code
Index Source Store - Bounded indexed-source reads used by incremental planning and fallbacks.
- Code
Index Task Store - Durable task queue, attempt lease, retry, and completion capability.
- Code
Query Read Store - Snapshot-scoped code retrieval, impact, report, and view read capability.
- Code
Repository SetStore - Repository-set membership, overlay, and refresh-task capability.
- Code
Repository Store - Compatibility facade that combines all persisted code repository capabilities. New workflows depend on the narrow capability they consume.
- Code
Scope Retention Store - Scope and whole-repository retention planning and execution capability.
- Framework
Graph Store - Read-only framework graph capabilities shared by repository stores.
- Graph
Store - Graph fact persistence and query contract.
- Index
Store - Derived index metadata and operational persistence contract.
- Knowledge
Store - Combined storage facade used by the application service.
- Knowledge
Store Factory - Configured outer-layer factory used for lazy storage initialization.
- Mutation
LogStore - Mutation log contract consumed by reconcilers and indexers.
- Repository
Catalog Store - Repository registration, lookup, and lifecycle capability.
- Software
Projection Store - Software graph projection refresh and snapshot read capability.
Functions§
- code_
index_ finalization_ max_ steps - Derives the hard finalization quantum bound including worst-case byte-limited reference resolution plus reference-search cleanup, group discovery, and build pages.
Type Aliases§
- Knowledge
Store Factory Future - Async result returned by a configured storage factory.
- Storage
Future