Drop the empty sessions an older version archived #120
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 246 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.330
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #120"
general
weight: 0.35
youdie006
Before 0.34.2, every Claude Code
subagents/workflows/wf_/journal.jsonlwas indexed as an empty subagent session, with thewf_folder as its project, and archived once deleted. #58 stopped both, but only going forward.archive_or_pruneruns when a file disappears, so rows that were already archived were never looked at again. On this machine 81 such rows remained, each listed as its ownwf_project, each with a[]copy in thearchivetable that a rebuild would restore.A fix-up on open,
drop_empty_archives, now does whatarchive_or_prunehas done since #58:files,archive,touchedandedits.FIXUP_MARKSandapply_without_waiting.Three reparse tests (
codex_mcp_reparse,large_provenance_reparse,reader_fix_reparse) seeded an archived row with no messages to check that archived rows are not re-parsed. Those rows now carry one message, as a real archived session does.Verification:
an_empty_session_an_older_version_archived_is_dropped_on_open. It fails before the change (the journal row stays) and passes after.archived_at IS NULLguard is removed, so the oracle is no weaker.-
wf_projects: 81 → 0;- empty archive copies: 81 → 0;
-
filesandarchiveeach went down by exactly 81.cargo test --no-fail-fast: 347 passed.cargo fmt --checkandclippy -D warningsare clean.workflow_journal.rsnow serializes its two tests, which both setSESSIONWIKI_DATA.AI disclosure: written with Claude Code; I reviewed and ran the checks above.