feat(session): accept store interfaces instead of *sqlitelog.Store #224
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 255 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.332
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #224"
general
weight: 0.35
aramase
session.ServiceandHarnessRegistrywere tied tosqlitelog.Store, so another backend meant forking. They now take small interfaces; SQLite stays the default and the only implementation here.session.SessionStore(forNewService) andsession.HarnessStore(forNewHarnessRegistryandReserveStaticHarnessNames), with doc comments for the contract a second backend must follow.HarnessStoreincludesCreateHarnessandHarnessNameReserved, which the registry calls since #223.SessionLogandForkSessionLogtosqlitelog.Storeso it satisfies the interface. They return the same journal as before, typed as the neweventlog.SessionJournal: aneventlog.StorewhoseCheckWritabledeletion preflight is required, so a journal wrapper can't drop it.eventlog.Storeis unchanged. Compile-time assertions cover both interfaces.STORE-1toSTORE-7).sqlitelog.Store.Replayuses a journal'sReadProtowhen it has one, assqlitelog.Logdoes, so field presence is kept as on main. Other journals fall back to convertingReadrecords (STORE-7).sqlitelog.Store. Changelog fragment underchangelog/unreleased/; architecture and concepts docs updated.Tested with
go build,go vet,go test -race ./..., the changelog check andhack/check-doc-links.py.TestReplayFieldPresenceThroughStoreInterfacecovers bothReplaypaths.TestServiceAndRegistryThroughStoreInterfacedrives the service and registry,CreateHarnessincluded, through a forwarding store that does not embedsqlitelog.Store, including a run where the journals expose onlyeventlog.SessionJournal.TestDeletionAfterLookupThroughStoreInterfacecommits a deletion between the lookup and the guarded work for Exec, Suspend, Resume, Fork and an exact Approve retry, and checks each is refused before any runtime call.Fixes #169