feat: dev-only devstack server for the local research lifecycle #111
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 352 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
Real PR Conversation Timeline
1 comments
"Review active on #111"
general
weight: 0.35
abendrothj
What and why
Part of #32: adds
devstack, a dev-only server that runs the research lifecycle on one machine.platform-apigains a non-defaultdevfeature.devstackis declared withrequired-features = ["dev"], so default and release builds never include it.src/dev.rs(featuredev) holds the shared research wiring,DevResearchStack(in-memory vault, dev key provider, snapshot commit, research-enabled query
service with default or explicit attestation), and the startup checks. Both
devstackandtests/research_api.rsuse it, so the two cannot drift apart.devstackrefuses to start withoutDEVSTACK_ALLOW_INSECURE=1in the processenvironment (
.envdoes not count), aJWT_HS256_SECRET, and a loopbackBIND_ADDR. It logs an insecure-mode warning and aservice.startaudit event,seeds a synthetic
synth-datacohort for a steward, publishes its cataloglisting, and prints steward and researcher tokens.
release-binariesjob does a default-feature release build ofplatform-apiand fails ifdevstackis built, or can be built withoutdev.CHANGELOG.md,docs/TESTING.md,CONTRIBUTING.md.Not done yet: the README's browser flow. The dev proxy (#31) isn't merged and the
portal has no research-query form, so the README uses
curlfor the steward andresearcher steps.
<!-- What changed, and why. Link the issue or the step in docs/PROJECT_SCOPE.md. -->
How it was tested
scripts/check.shpasses locally (macOS).src/dev.rs: startup without the opt-in flag, without aJWT secret, and on a non-loopback
BIND_ADDRare each refused; the acceptedcases pass.
devstackunit test: the seeded cohort both releases and suppresses groupsthrough the research query path.
tests/research_api.rstests pass unchanged on the shared wiring, includingrefused_attestation_charges_no_budgetwithDevAttestation::strict().cargo build --release -p platform-api --bin devstackfails with"requires the features:
dev";devstackrefuses to start without the flag andwithout a secret, and starts with both.
<!-- Tests added or changed. Name the failure paths covered. -->
Checklist
scripts/check.shpasses locallySECURITY_AUDIT_EVENTcovered byaudit_coverage.rsdocs/DATA_POLICY.md)CHANGELOG.mdupdated for user-visible changesdocs/adr/if one was made