Add atomic set configuration map entry endpoint #515
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.62) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 261 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.333
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #515"
general
weight: 0.35
NicoPiel
The current API does not permit atomic writes to configuration maps. Two unsynchronized writers overwrite each other's settings. Add an atomic write endpoint.
With current endpoint:
| User 1 | User 2 | State after |
|-|-|-|
| Read = { A: 1, B: 1 } | Read = { A: 1, B: 1 } | { A: 1, B: 1 } |
| Write A = 2 | nop | { A: 2, B: 1 } |
| nop | Write B = 2 | { A: 1, B: 2 } |
With new endpoint:
| User 1 | User 2 | State after |
|-|-|-|
| Read = { A: 1, B: 1 } | Read = { A: 1, B: 1 } | { A: 1, B: 1 } |
| Write A = 2 | nop | { A: 2, B: 1 } |
| nop | Write B = 2 | { A: 2, B: 2 } |
Blocking for #449
Release Note
New REST API method to update a single configuration map entry
The new
PUT /api/server/configurationMap/{key}endpoint sets one configuration map entry and leaves the others unchanged. Until now the only way to change the map through the API was to replace all of it withPUT /api/server/configurationMap, so two clients updating different keys at the same time could undo each other's changes. The Java client has the matchingsetConfigurationProperty(key, property, expectedVersion)method.To avoid overwriting a change someone else made to the same key, pass the optional
expectedVersionquery parameter. The entry is only updated if its current version matches, and otherwise nothing changes and the response isfalse, just as a stale channel or code template save reports it. An emptyexpectedVersionmeans the key must not exist yet. An entry's version is the hex SHA-256 of the UTF-8 bytes of its value, a unit separator (U+001F) and its comment, with a null value and a null or blank comment treated as empty strings. Clients compute it from whatGET /api/server/configurationMapreturns, and the comparison ignores case.Keys that contain
/must be encoded as%2Fin the path. Blank keys are rejected with a 400.The Configuration Map settings panel in the Administrator still saves the whole map. Delete is not available per entry yet, and the server-side lock only protects concurrent writers going through the same server.