feat(server): the upgrade channel on core's own entrypoint #512
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 331 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.347
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #512"
general
weight: 0.35
gurnben
What
traust-server db upgrade— the store's db-contract channel on core's own entrypoint: plans (names, sha256 prefixes, declared destructive reasons; exit 1 when pending),--applyruns the plan,--allow-destructiveacknowledges declared destructive work. Exit 0: current, applied, or no local store yet; an empty configured database exits 1 (its deployment provisions it).stamp_channel): presumed current, every shipped script stamped as applied in one transaction, nothing run, nothing re-run. A local store is brought on by its first open; a configured database refuses until its deployment runsdb upgrade --apply.store_status()reports it asPRE_CHANNEL.AGENTS.mdcarries the operator path for agents meeting a refused store.122e9a4: ahead-tolerance — a database stamped beyond the shipped channel's head opens on the older pair (rollback = redeploy, the database stays forward, going forward again needs nothing). Reversal (run_downgrades) was removed upstream: it had no user.The user journeys
db upgrade --apply(add--allow-destructivewhen a reason is declared) → serves.Decisions
Tests
make testgreen at each step; Qodo passes addressed (plan-time refusals print their remedy, empty-configured exits 1, the pre-channel plan shows the stamp manifest). Smoke-tested against a genuine pre-channel store: plan → exit 1,--apply→ on the channel, follow-up → up to date.Tracker
Plan: 2026-11-db-upgrades-cli (traust-core). Depends on traust-contracts#180 merging first.