@fractalsynapse/dsh-chapters 0.2.28 → 0.2.29
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/docs/contract.md +33 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/docs/contract.md
CHANGED
|
@@ -942,3 +942,36 @@ The rule now: **arming prompt autorun displaces the goal's continuation, and the
|
|
|
942
942
|
turn — so a missing seam degrades to the safe behaviour rather than double-firing.
|
|
943
943
|
- Re-arming the goal (`/goal resume`, or the bar's next human Run of a `GOAL:` step) is a human act, matching
|
|
944
944
|
the host's own rule that a model may not resume a paused goal (`GOAL_TOOL_RESUME_PAUSED`).
|
|
945
|
+
|
|
946
|
+
## Seeded-continuation load deadlock — the fold rule vs the header recorder (measured 2026-11-05, #314)
|
|
947
|
+
|
|
948
|
+
The native-V4 relationships validator (`@deepseek-ai/dsh-session-format-v3-to-v4`, entered as
|
|
949
|
+
`assertReleasedV4Relationships(artifact, knownEventTypes)`, which runs
|
|
950
|
+
`assertV4LifecycleRelationships` → `foldSurface`) admits a `system/message` ONLY as the
|
|
951
|
+
**protected first surface head**: a mid-surface occurrence throws
|
|
952
|
+
`system/message requires a protected first surface head` **before any `surfaceOp` is consulted**
|
|
953
|
+
(installed bundle `lib/index.js:599`), and the sole exemption is a *replacement* shadowing exactly
|
|
954
|
+
one existing `protectedHead`. The validator tracks the head BY SEQ and healthy sessions' heads
|
|
955
|
+
legitimately migrate to mid-surface positions (measured on loadable logs: seq 79, 112, 488, 2697)
|
|
956
|
+
— the prohibition bites only at ADOPTION.
|
|
957
|
+
|
|
958
|
+
Our continuation seed is `user/message@0, surfaceOp:'append'` — a surface node before any head.
|
|
959
|
+
The kernel's own first-request header recorder then writes `system/message`
|
|
960
|
+
(`{turn, step, message{role:'system', source:{kind:'system-prompt'}, id}}`, `surfaceOp:'append'`)
|
|
961
|
+
inside the open step — and from that moment the session log fails its own load validation forever:
|
|
962
|
+
the GUI refuses to reopen the child after a restart ("stored session is corrupt … gateway/internal").
|
|
963
|
+
Row admission (`assertV4RowAdmission`) accepts the shape and the kernel records it without complaint:
|
|
964
|
+
the deadlock is writer-versus-validator, host-internal. Measured on the maintainer's box: 4/4 seeded
|
|
965
|
+
children carry the mid-surface event at their first real request; all four logs are byte-perfect and
|
|
966
|
+
ALL FOUR re-validate cleanly once the first `system/message` is allowed to adopt the head regardless
|
|
967
|
+
of position (resolution option (d)) — the corruption is fully reversible with a two-line host change.
|
|
968
|
+
|
|
969
|
+
Two gotchas for anyone probing this API: `assertV4MessageSources` throws the DIFFERENT rule's
|
|
970
|
+
message (`format v4 message requires a producer-owned source kind`) for a missing
|
|
971
|
+
`system/message.message.id` — the string is overloaded; and `system/message` may only fold while
|
|
972
|
+
its turn/step are OPEN, or `does not match an open turn and step` fires first.
|
|
973
|
+
|
|
974
|
+
Drift guard: `tests/unit/host-seed-load-deadlock.test.ts` pins the deadlock against the installed
|
|
975
|
+
host — evidence row (the throw), a healthy-shape control, and a **wish row marked `failing: true`**
|
|
976
|
+
asserting the load succeeds. When a host release lands option (d) the wish row passes unexpectedly
|
|
977
|
+
and turns the suite RED: that is the signal to flip the marker and re-verify the pins here.
|
package/lib/version.d.ts
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* reader cannot recover later, so it belongs in the bytes. A row in tests asserts this literal equals
|
|
7
7
|
* `package.json`'s version — the one place a hand-mirrored constant must never be allowed to drift.
|
|
8
8
|
*/
|
|
9
|
-
export declare const PLUGIN_VERSION = "0.2.
|
|
9
|
+
export declare const PLUGIN_VERSION = "0.2.29";
|
package/lib/version.js
CHANGED
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* reader cannot recover later, so it belongs in the bytes. A row in tests asserts this literal equals
|
|
7
7
|
* `package.json`'s version — the one place a hand-mirrored constant must never be allowed to drift.
|
|
8
8
|
*/
|
|
9
|
-
export const PLUGIN_VERSION = '0.2.
|
|
9
|
+
export const PLUGIN_VERSION = '0.2.29';
|
|
10
10
|
//# sourceMappingURL=version.js.map
|