docs(reference): operation correlation matches exact request text, and refuses an invalid ID #1828
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 264 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.334
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1828"
general
weight: 0.35
mvschwarz
What a user gets
A client using
X-OpenRig-Operation-Idlearns two facts that change how it retries:The change
docs/reference/operation-correlation.md, two sentences, read from the source at2fc23521:reserveOperationhashes the raw body: each route passesc.req.text(), and import's two behaviour headers are hashed with it. So a whitespace or key-order change is a different request, not an equivalent one.Invalid X-OpenRig-Operation-Id.validOperationIdaccepts an RFC UUID, and each of the three routes checks it first. Host read-through middleware can still answer before the route. The existing 409 sentence now says it applies once a request passes the route's own validation.Cost: +1/−1 (one paragraph line, numstat).
How you verified it
Read at source on all three routes:
routes/rigs.ts(create and member add) androutes/rigspec.ts(import). Text only, so no tests.CHANGELOG.mdeditRefs #1790
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Clarified that operation IDs must be UUIDs and are case-normalized; malformed IDs return HTTP 400 before route handling.
Documented that an ID conflict returns HTTP 409 only after the request passes route validation.
Specified that request matching uses exact request text, so changes to whitespace or key order count as different requests. Exact replays return HTTP 200 with the current database state.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->