Record cleanup resource ownership #287
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 217 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.322
Real PR Conversation Timeline
1 comments
"Review active on #287"
general
weight: 0.35
aramase
Placement now records which Substrate resources each Create, Restore and Fork created, so a later cleanup change can release them by UID instead of by name. Nothing releases them yet, and teardown is unchanged from main.
A backend with dedicated resources implements
api.ResourceCleanupRuntime. Before runtime I/O, placement records the operation's full plan: provider-opaque references, and which resource borrows which (a memory-tier fork child borrows its tag's snapshot). The runtime returns the UIDs it proved it created inIncarnation.Cleanup, also when the call then fails, and placement confirms them. A lost response stays unconfirmed. A confirmation can't add a reference, change a UID or change a borrower, and nothing adopts an object found by name. A fork child's plan is recorded without publishing the child.The Substrate backend produces this when the daemon gives it a cleanup key. A backend built without one, such as an embedded library user, records no plan and behaves as on main.
Schema v10 adds
allocation_resourcesandallocation_borrowersand is one-way. Stop every writer and back up the database and WAL before the first open; the steps are in spec §18. Thecanonical_resource_idcolumn ships empty so the cleanup change won't need v11.Worth a close look:
sqlitelog/cleanup.goconfirmResources, and the error paths in SubstrateCreateandForkthat now return the partial claim with the error.Root and
integrations/substratebuild, vet and race-shuffle suites pass, along with chain verification, doc links, doccheck, buf lint and the changelog check. The v9 migration test uses a journal written by v0.4.0. Refs #88.🤖 Generated with Claude Code