test(lws): add P0-9 durable resource measurement harness #7319
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 288 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.339
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #7319"
general
weight: 0.35
jeswr
Summary
Adds a manual harness for the P0-9 measurement in #7188.
crates/sparq-lws-core/tests/durable_measure.rsis an#[ignore]test parameterized byP09_RESOURCES. It boots the realsparq-lws-corebinary withSOLID_SERVER_DATA_DIR(embedded durable index plusFsBlobStore), creates resources one at a time over HTTP, and reports p50/p99 create latency. After a verified SIGKILL it counts regular files underindex/, times the replacement process from spawn to/readyz, and checks recovered bytes. It prints one JSON line per run. Thesolid-lws-serverskill documents how to run it on a real disk.Where each #7188 threshold stands on the measurement box (raw results and machine details are kept privately, not here):
| Population | p99 create within 50 ms | Open after SIGKILL within 30 s |
| --- | --- | --- |
| 1k | Not reliably met (some repeated runs exceed it) | n/a |
| 10k | Not established | n/a |
| 100k | Not established | Not established |
The larger populations could not complete on the measurement box. A sparq-core follow-up is being drafted separately (related to #3212 and #6945).
Addresses #7188
Base gate (always required)
cargo clippy -p sparq-lws-core --all-targets -- -D warnings(default features and explicit storage features)cargo test -p sparq-lws-core(the measurement stays ignored, and its two helper tests run)cargo fmt --checkon touched filesTargeted re-evaluation (check the rows that apply to your change)
Cargo.lockor workflows change.Ratchets and conventions
Security
The harness works only in a fresh temporary data root with a loopback child server. Its public test ACL exists only in that root, which is removed afterwards.
https://claude.ai/code/session_01RbBWdT5qWj5ZLvkgyPZyGH
---
_Generated by Claude Code_