@openwop/openwop-conformance 1.136.9 → 1.136.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_comment": "Provenance of this vendored schemas/ copy. See conformance/README.md \u00a7\"Resolving the contract\". Compare against the stamp in your installed @openwop/openwop-conformance to detect a stale hand-copied contract.",
|
|
3
|
-
"suiteVersion": "1.136.
|
|
4
|
-
"corpusCommit": "
|
|
3
|
+
"suiteVersion": "1.136.10",
|
|
4
|
+
"corpusCommit": "0d8fd3fde8cca5785c23d4b7e64281f1876ab342"
|
|
5
5
|
}
|
|
@@ -13,16 +13,21 @@
|
|
|
13
13
|
* events; a tier-2 host suppressed them, which leaves the replayed log SHORT
|
|
14
14
|
* of the source's and breaks RFC 0041 §C byte-equivalence).
|
|
15
15
|
*
|
|
16
|
-
* The
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
16
|
+
* The spec was never actually ambiguous, and an earlier revision of this file
|
|
17
|
+
* said it was — that was wrong. `replay.md` §"Determinism guarantees"
|
|
18
|
+
* caveat 5 (Stable, unchanged since v1.2) names this exact case: recorded-fact
|
|
19
|
+
* events such as `memory.written` "are fixed history. On replay against a
|
|
20
|
+
* checkpoint a host MUST re-emit them from the event log and MUST NOT
|
|
21
|
+
* regenerate their identifiers or timestamps." RFC 0041 §C independently
|
|
22
|
+
* requires caching "emitted events" so a replay reproduces the observable
|
|
23
|
+
* sequence. RFC 0057 §D's implementation note appeared to bless suppression
|
|
24
|
+
* and conceded in its own words that it satisfied only the "MUST NOT
|
|
25
|
+
* regenerate" half; that note is retired (RFC 0057, Correction 2026-08-18).
|
|
26
|
+
*
|
|
27
|
+
* So this asserts BOTH halves — every replayed id is a recorded id, AND the
|
|
28
|
+
* source's recorded ids all reappear. A suppressing host fails, and always
|
|
29
|
+
* should have: nothing normative changed, the instrument just could not see
|
|
30
|
+
* it before.
|
|
26
31
|
*
|
|
27
32
|
* Gated on `capabilities.memory.attribution.emitsWriteEvents`; soft-skips
|
|
28
33
|
* when unadvertised, when the seeded run wrote no memory, or when the host
|
|
@@ -68,19 +73,26 @@ describe('memory-attribution-replay-stable (RFC 0057 §D)', () => {
|
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
const replayed = await memoryWrittenEvents(forkId);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
76
|
+
// Half 1 — MUST re-emit. The source's recorded ids all reappear on the
|
|
77
|
+
// replay. This is the half that went unasserted for months: the loop below
|
|
78
|
+
// is vacuously true on an empty array, so a host that suppressed the
|
|
79
|
+
// re-emission entirely passed.
|
|
80
|
+
const replayedIds = new Set(
|
|
81
|
+
replayed.map((e) => memoryIdOf(e.payload)).filter((x): x is string => x !== null),
|
|
82
|
+
);
|
|
83
|
+
const missing = [...recordedIds].filter((id) => !replayedIds.has(id));
|
|
84
|
+
expect(
|
|
85
|
+
missing,
|
|
86
|
+
driver.describe(
|
|
87
|
+
'replay.md §"Determinism guarantees" caveat 5',
|
|
88
|
+
'recorded-fact events are fixed history: a replay MUST re-emit the source run\'s ' +
|
|
89
|
+
'`memory.written` events from the log. A replay whose log is SHORT of the source\'s is not ' +
|
|
90
|
+
'a reproduction of the observable sequence (RFC 0041 §C). Suppressing the write is not ' +
|
|
91
|
+
'enough — that satisfies only the MUST-NOT-regenerate half',
|
|
92
|
+
),
|
|
93
|
+
).toEqual([]);
|
|
94
|
+
|
|
95
|
+
// Half 2 — MUST NOT regenerate. Every id on the replay is one the source recorded.
|
|
84
96
|
for (const e of replayed) {
|
|
85
97
|
const id = memoryIdOf(e.payload);
|
|
86
98
|
expect(
|