← Back to Pull requests

Add atomic set configuration map entry endpoint #515

Closed
unknown closed this pull request without merging on Nov 10, 2026 12:51 UTC
View on GitHub
unknown unknown commented on Oct 26, 2026 20:34 UTC
Author

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 with PUT /api/server/configurationMap, so two clients updating different keys at the same time could undo each other's changes. The Java client has the matching setConfigurationProperty(key, property, expectedVersion) method.

To avoid overwriting a change someone else made to the same key, pass the optional expectedVersion query parameter. The entry is only updated if its current version matches, and otherwise nothing changes and the response is false, just as a stale channel or code template save reports it. An empty expectedVersion means 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 what GET /api/server/configurationMap returns, and the comparison ignores case.

Keys that contain / must be encoded as %2F in 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.

Diff: 261 lines (+195 / -66) across 3 files Reviewer: NicoPiel Review duration: 21136m
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
0.62
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 62.4% (MEDIUM) · Higher = larger blast radius
62.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 24.6% · Safe to merge
24.6%