fix: reject config writes without a revision

Issue: #340
User-Visible: yes
This commit is contained in:
Matysh
2026-08-28 11:26:19 +00:00
committed by claude[bot]
parent 9239f9d3f5
commit 3e437ca3ec
11 changed files with 192 additions and 8 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ export function checkCoordinateWriteBarriers(root = defaultRoot) {
if (configWrites.length !== 1) errors.push(`frontend config writer inventory: ${configWrites.length}`);
for (const index of configWrites) requireWindow(
errors, frontend, index,
/const canonicalCandidate = canonicalizeConfigGeometry\(candidate\);[\s\S]*config: canonicalCandidate/,
/const canonicalCandidate = canonicalizeConfigGeometry\(candidate\);[\s\S]*config: canonicalCandidate,[\s\S]*expected_rev: this\._cfgRev/,
'frontend config/set', 600,
);
if (occurrences(frontend, '._sendConfigCandidate(candidate)').length !== 2) {