From 4c677f2d92802f6671c8be71ad119ae09d76ed6d Mon Sep 17 00:00:00 2001 From: Dave Date: Sun, 21 Jun 2026 14:37:18 -0400 Subject: [PATCH] test(core): add tracking-issue ref to M8/M9 allow-test-rule exemptions (#1531) lint-allow-test-rule-refs (ADR-456) flagged the two architectural-invariant exemptions as novel offenders lacking a #NNN reference, failing lint-tests. Add (see #1531) to both annotation lines; lint:ci now green. Claude-Session: https://claude.ai/code/session_01R88n7Q54bAaVHFkDbbH1yz --- tests/m8-writestatemd-scan-after-lock.test.cjs | 2 +- tests/m9-statelock-write-error-orphan.test.cjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/m8-writestatemd-scan-after-lock.test.cjs b/tests/m8-writestatemd-scan-after-lock.test.cjs index a5c87cd09..72445e956 100644 --- a/tests/m8-writestatemd-scan-after-lock.test.cjs +++ b/tests/m8-writestatemd-scan-after-lock.test.cjs @@ -1,5 +1,5 @@ 'use strict'; -// allow-test-rule: architectural-invariant +// allow-test-rule: architectural-invariant (see #1531) // writeStateMd's "scan happens INSIDE the lock" property is a concurrency invariant. // A single-threaded test cannot observe the difference between scan-before-lock and // scan-after-lock unless something mutates the disk in the window between the two. diff --git a/tests/m9-statelock-write-error-orphan.test.cjs b/tests/m9-statelock-write-error-orphan.test.cjs index 06776986d..69e2b64e7 100644 --- a/tests/m9-statelock-write-error-orphan.test.cjs +++ b/tests/m9-statelock-write-error-orphan.test.cjs @@ -1,5 +1,5 @@ 'use strict'; -// allow-test-rule: architectural-invariant +// allow-test-rule: architectural-invariant (see #1531) // acquireStateLock's "no orphan empty lock + no fd leak on a recoverable // writeSync/closeSync error" property is a resource-safety invariant of a private // function. A single-threaded test cannot otherwise force the openSync-succeeds-