Read OpenCode v2 with separate schema readers and shared inventories #131
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 350 lines diff across 4 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.351
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #131"
general
weight: 0.35
youdie006
OpenCode v2 histories in
session_v2/session_messageare currently absent from SessionWiki's SQLite inventory. Add a dedicated v2 reader while retaining oneopencodeadapter to coordinate discovery and stable keys across v1, v2 and mixed databases.This is an alternative to #85, based on AlexZander85's v2 parser and synthetic v2.1.1 fixture. It addresses the maintainer's outstanding review requests without changing the original branch:
had_error, so incomplete discovery cannot authorize archival. Fall back to v1 only when the session is absent from v2 and remains eligible under native migration state; failed v2 reads remain errors even if a valid legacy copy exists.Adapter::modified_athook introduced in #130. This invalidates cached content on migrations with unchanged timestamps without changing session identity. Activity metadata is retained on the reader from its latest inventory, avoiding per-session database opens during scan reports. Bounded sync and scan use real activity dates; a separate regression verifies old tagged sessions remain outside the cutoff.Validation: all 378 Rust tests pass (
cargo test --all-targets), Clippy with warnings denied and rustfmt pass. The newopencode_v2_sqlite_sessionfixture test fails on unchanged upstream main withno such table: sessionand passes on this branch. Tests use temporary databases and indexes; no live user data is touched. Based on current upstream main8925005.