@fractalsynapse/dsh-chapters 0.2.37 → 0.2.38
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/architecture.md +14 -0
- package/docs/backlog.md +5 -3
- package/docs/development.md +32 -0
- package/docs/project-state.md +41 -0
- package/docs/verify.md +12 -1
- package/lib/compose.js +27 -6
- package/lib/compose.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
package/docs/architecture.md
CHANGED
|
@@ -97,6 +97,20 @@ Division of labour:
|
|
|
97
97
|
results with `seq`, tool name, and size. The model never guesses at byte counts.
|
|
98
98
|
- **Default is defer** for anything above `toolResultDeferFloorTokens`; trivial results stay inline without
|
|
99
99
|
being itemized, so the narrative reads naturally and the exception list stays short.
|
|
100
|
+
- **A span INTERSECTS a signature; it never has to contain it** (#421, measured on the first live
|
|
101
|
+
composed-discussion record 2026-11-19). `composeChapters` used to require a signature's WHOLE seq
|
|
102
|
+
range to sit inside the shadowed span (`inSpan`), but live relief is incremental: every earlier pass
|
|
103
|
+
clips older signatures, and one clipped seq disqualified a finished topic FOREVER — so real multi-pass
|
|
104
|
+
traffic could never leave two whole signatures in one span, and every pass composed exactly one
|
|
105
|
+
chapter while every deterministic row (two complete signatures in one span) stayed green. Now a
|
|
106
|
+
signature whose seqs intersect the span participates with its CLIPPED range
|
|
107
|
+
(`max(first, spanStart)..min(last, spanEnd)`); its already-archived head stays in the earlier
|
|
108
|
+
chapter it belongs to, its remaining bytes get their own title at their own boundary. Unfinished
|
|
109
|
+
content is still never archived — unchanged by construction, because signatures are only stored at
|
|
110
|
+
`turn/end`, so the in-flight turn has none (measured: sig3 appeared in the row only after turn 3
|
|
111
|
+
closed). The compose leg (#420) checks the per-pass truth by SET (rows whose own `shadowedSeqs`
|
|
112
|
+
union-cover the pass's shadowed set) — range containment across rows of DIFFERENT passes was a
|
|
113
|
+
false positive that passed six legacy passes.
|
|
100
114
|
- **A zero-length tool result defers nothing** (#59). `arrival.ts` has always skipped the empty string;
|
|
101
115
|
the renderer did not, so every hollow chapter wrote references to `sha256("")` and reported
|
|
102
116
|
`artifacts: 102` while holding one 0-byte file. An empty result renders `result (seq N, empty)` with
|
package/docs/backlog.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# Open items — 2026-11-17 (host 0.2.0-rc.2)
|
|
2
2
|
|
|
3
|
-
- **0.2.34 SHIPPED (2026-11-17, main 2eee0b3, tag 0.2.34; tarball + provenance verified — see project-state). Follow-waves for 0.2.35 (2026-11-17 audit):** the composed checkpoint has
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
- **0.2.34 SHIPPED (2026-11-17, main 2eee0b3, tag 0.2.34; tarball + provenance verified — see project-state). Follow-waves for 0.2.35 (2026-11-17 audit), C3 RETIRED 2026-11-19:** the composed checkpoint has now
|
|
4
|
+
been OBSERVED on a live host AND pinned as replay corpus — the compose leg (#420, `--project=compose`)
|
|
5
|
+
crosses pressure across two stored signatures and verifies >=2-chapter composition and topic-seam
|
|
6
|
+
alignment from durable bytes, model-free (#421 fixed `inSpan`; full account on the verify row and the
|
|
7
|
+
tape's PROVENANCE). #143's convergence-bound family remains covered by the heavy live row. The deprecated live reads (`eventAt`/`snapshotEvents`/`ownEvents` — the host says
|
|
6
8
|
"new calls are prohibited") are inventoried by `tests/unit/host-composer-shape.test.ts`; the migration
|
|
7
9
|
to `deriveMessages`/`requestHeader` (live) and `SessionQuery.readSession` (durable) is the first gate to
|
|
8
10
|
re-run before any host bump. #397 (`meta.parentSession` for continuation children) awaits a maintainer
|
package/docs/development.md
CHANGED
|
@@ -460,6 +460,38 @@ kind that produces a wrong conclusion instead of an error:
|
|
|
460
460
|
catch). The bootstrap now seeds `storages/workspace.json` (exact host
|
|
461
461
|
schema: ISO dates, `updatedAt`, registered path = the checkout) when absent.
|
|
462
462
|
|
|
463
|
+
### The `compose` leg — compaction recorded FROM live discussion, replayed with the corpus (#420, C3's vehicle)
|
|
464
|
+
|
|
465
|
+
No committed leg exercised compaction or TOC verification from the conversation itself: C2's sweep
|
|
466
|
+
found zero `compaction/summary` events in any replayed durable log, and `heavy` (the live-class
|
|
467
|
+
single-turn journey) cannot fire the composer by design — signatures store at `turn/end` and heavy
|
|
468
|
+
compacts mid-turn. The `compose` leg closes the shape gap with the geometry the two old legs each
|
|
469
|
+
lacked: **multi-turn AND pressure-crossing.**
|
|
470
|
+
|
|
471
|
+
The intended observable contract:
|
|
472
|
+
|
|
473
|
+
- Small discussion turns on deliberately DIFFERENT topics, each ending a boundary (signature stored)
|
|
474
|
+
and each carrying a verbatim codeword, then one turn whose READ contract forces a crossing by
|
|
475
|
+
arithmetic (the 600-line tool page cap, same pigeonhole as heavy) — the trigger is 0.7 of the
|
|
476
|
+
pinned 32K window, so turns 1–2 (20-line doc reads) CANNOT cross and the first changelog page
|
|
477
|
+
MUST (0.6 was measured firing relief mid-topic-2, the eager pass clipping the signatures the
|
|
478
|
+
composer needs cold — twice-corrected arithmetic in `tests/e2e/rig-pins.ts`).
|
|
479
|
+
- The verdict is read from DURABLE bytes, not the browser: a `compaction/summary` whose shadowed
|
|
480
|
+
region is covered by **≥2 chapters**, at least one chapter boundary ALIGNED to a topic-transition
|
|
481
|
+
`turn/end` seq, chapter bodies carrying exactly their turn's codewords (bodies are rendered
|
|
482
|
+
verbatim from the log by invariant 4, so mis-splitting is visible mechanically), the coverage
|
|
483
|
+
invariant holding, and the session healthy one small turn later.
|
|
484
|
+
- **The tape is the point — and it is now corpus.** Recorded live on the fixed composer (2026-11-19,
|
|
485
|
+
`1 passed`, composed+aligned from durable bytes) and **replayed model-free green: `1 passed`,
|
|
486
|
+
48.3 s, zero MISSes** — #141's branch-walk did not bite; the byte-exact tape reproduces the same
|
|
487
|
+
local relief decisions. The leg is a chain member (`test:e2e` + `chain-replay.sh`), the tape is
|
|
488
|
+
tracked with its PROVENANCE, and a future code change that breaks composition turns this leg red in
|
|
489
|
+
seconds — the maintainer's directive, satisfied: code changes do not affect the tape; a code change
|
|
490
|
+
that breaks the composed path affects the verdict.
|
|
491
|
+
- Regime: own boot, own port (rig-pins single authority), translating-proxy recording exactly like
|
|
492
|
+
the #416 recipe (`MODE=record E2E_PROVIDER=harness`), identity guard proving the remote
|
|
493
|
+
lists-and-answers-as-itself before a byte is recorded.
|
|
494
|
+
|
|
463
495
|
### Safe default guard
|
|
464
496
|
|
|
465
497
|
Prefix every harness command with `DSH_HOME=$PWD/.dshdev` — or do not type it at all:
|
package/docs/project-state.md
CHANGED
|
@@ -1128,3 +1128,44 @@ touches agent-facing prompt bytes (the #417 plugin-side change is sink plumbing
|
|
|
1128
1128
|
#372 (unbuilt) · #397 (contract.md § Lineage decision, parked with its one-line change) · #411's
|
|
1129
1129
|
residual (record-time regeneration pattern) · host option-(d) todo row · five credential-gated
|
|
1130
1130
|
TreeDX live rows.
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
**05935a7..74e59fb SHIPPED — 0.2.37, published and registry-proven.** PR #419 merged to main at
|
|
1134
|
+
`74e59fb` with all four CI jobs green at the head (coverage gate, preset-rows probe, env parity,
|
|
1135
|
+
ten-leg acceptance); annotated tag `0.2.37` at the merge commit; release run `44444746764` success.
|
|
1136
|
+
Registry proof: `latest` = **0.2.37**; unpacked tarball answers manifest `0.2.37` AND bundled
|
|
1137
|
+
`PLUGIN_VERSION = '0.2.37'` (the stale-tree class of 0.2.20 stays gated); provenance attestation
|
|
1138
|
+
present (`slsa.dev/provenance/v1`). Candidate evidence unchanged from the record above: 11-leg replay
|
|
1139
|
+
chain green locally at the release head (the one `plans` boot that died on `EADDRINUSE` was a
|
|
1140
|
+
transient port collision, named and re-run green), `corpus:stamp` with `promptAnchor` unchanged.
|
|
1141
|
+
|
|
1142
|
+
## 2026-11-19 — 0.2.38: compaction composes on real hosts, and the corpus grew eyes (twelve legs)
|
|
1143
|
+
|
|
1144
|
+
**Candidate = staging at `fd7e7e6`.** The range `0.2.37..staging` is exactly the C3 closure, two
|
|
1145
|
+
issues told as one story:
|
|
1146
|
+
|
|
1147
|
+
- **#421** (PR #422): `composeChapters` span participation is INTERSECTION-and-CLIP — the old
|
|
1148
|
+
`inSpan` wholesale-excluded signatures clipped by earlier relief passes, which made multi-chapter
|
|
1149
|
+
composition structurally unreachable under live incremental traffic (measured: six passes, six
|
|
1150
|
+
single chapters, zero reason lines). Semantics written: unfinished means UNSIGNED (signatures
|
|
1151
|
+
exist only at turn/end). Red rows from the first live record's exact payload, committed as fixture;
|
|
1152
|
+
the long-standing completeness row rewritten as a named contract change.
|
|
1153
|
+
- **#420** (PRs #423+#422): the compose leg — doc-grounded discussion, forced crossing after two
|
|
1154
|
+
stored signatures, verdict from durable bytes (per-pass SET truth, topic-seam alignment,
|
|
1155
|
+
coverage, health). Live record five passed it all on the hosted remote; the SAME tape replayed
|
|
1156
|
+
model-free green (48.3s, zero misses — #141 did not bite); it is tracked corpus with PROVENANCE
|
|
1157
|
+
and joins the replay chain. Honest count: `chain-replay.sh` runs TWELVE legs (suite…reload +
|
|
1158
|
+
compose; heavy excluded by class), `test:e2e` names thirteen projects with heavy loud-skipping
|
|
1159
|
+
under replay — the CI job title's \"ten\" predates this and is prose, not a gate. Geometry
|
|
1160
|
+
lessons (0.6→0.7, 40→20 lines, stale-lib build verification) recorded in the leg's own
|
|
1161
|
+
authorities.
|
|
1162
|
+
|
|
1163
|
+
**Ship gate (deterministic class, at the candidate before stamp):** coverage gate + full
|
|
1164
|
+
unit+integration ledger (baseline shape: 5 credential-gated `live:` + 1 todo), the FULL replay chain
|
|
1165
|
+
locally (every leg under its own boot, compose included), then `npm run corpus:stamp` on green —
|
|
1166
|
+
`promptAnchor` must read unchanged (`b40304ee3e35a94f`).
|
|
1167
|
+
|
|
1168
|
+
**Open after this cut:** C3 CLOSED (both classes) — the open list loses its oldest verification
|
|
1169
|
+
debt · #349 remainder (browser rig) · #372 (unbuilt) · #397 (contract.md § Lineage decision) ·
|
|
1170
|
+
#411 residual (record-time regeneration pattern) · host option-(d) todo row · five
|
|
1171
|
+
credential-gated TreeDX live rows.
|
package/docs/verify.md
CHANGED
|
@@ -634,4 +634,15 @@ which 483 `test-litter` and 143 `empty-artifact`. Registry backups sit at
|
|
|
634
634
|
|---|---|---|---|---|
|
|
635
635
|
| C1 | `reconstructShadowedSeqs` maps the summarize region against the ACTUAL host surface shape (plain-seq nodes, bound `deriveEventMessage`) | deterministic + pinned-host replay | `tests/unit/host-composer-shape.test.ts` row 1 hands the composer a session built by the INSTALLED `dsh-session` class (`Session.create`, RUN/SKIP-guarded); row 2 pins the host `.d.ts` source text; `tests/unit/engine-core.test.ts` fakes now wear the host shape (unbound `derive` throws); `engine-lifecycle` drives the real `summarize()` over two stored topics and demands a ≥2-chapter manifest + carried plot | **PASS** — red before the fix (proven at the test commit), green after; full deterministic ledger 1,627/1,633 with only the five credential-gated `live:` TreeDX rows non-passing |
|
|
636
636
|
| C2 | Activating the composed path churns NO committed tape | pinned-host tape replay | Full chain: `E2E_MODEL=replay bash scripts/ci-replay.sh` (11 legs, own boot each); durable-log sweep: all 25 session logs in the run's homes grepped for `compaction/summary` | **PASS** — chain green; **zero** compaction events exist in ANY replayed durable log (the compaction-heavy `heavy` project is the live class, never replayed), so no recorded bytes can depend on the composer; `npm run corpus:check`: corpus matches the build (promptAnchor unchanged); e2e typecheck ratchet 58=58 |
|
|
637
|
-
| C3 | A real-host pressure compaction now COMPOSES (multi-chapter checkpoints converging on the 32K window) | live provider | The `heavy` live leg (its bound is #143's open row, and it was already failing its own bound BEFORE this change) | **OPEN — attempted 2026-11-17 from this box, VOIDED before the provider, measured and recorded in #414.** Two runs (real-window and pinned-32K) died at `turn/end: no credential for provider route "local"` — live+harness mode has no route translator (the translator is the tape proxy, and live runs without one), while the session route stays pinned to `local/qwen3.8-flash-next`. Durable logs: zero tool calls, zero compaction events, zero hosted tokens. Worse, tracked-mode live HERE would silently observe the ALIASING 4B box (#406's own class, live edition) — the live class is not merely unavailable here, it is UNTRUSTED here. C3’s later same-day session then reached the provider for real — with #414’s route alignment and the proxy-side URL fix (PR #416), `LEG=heavy MODE=record E2E_PROVIDER=harness` ran the hosted `qwen3.8-flash` through the translating proxy (identity guard-proven, pinned 32K): **the journey PASSED live — 58 compactions, ALL chapters-engine-served (0 foreign), 58 chapter files, 16.2 min, #143’s bound held under composed-era code.** C3’s own claim was still NOT discharged, for a structural reason the run made precise: signatures are stored at `turn/end`, `heavy` is deliberately a SINGLE-turn journey, and the composer cannot fire there by design — all 126 manifests fell to legacy. That exposure found and closed the ledger’s last silent arm: `mapped-region + zero-collections` printed NOTHING for 58 straight falls; it now logs `reason=no-collections` (sink-verified row, #416). The multi-turn candidate `suite` recorded live too: clean (4 passed, 1.8m) but its live trajectory never crossed the trigger — trajectory, not turn count, decides. **C3’s complete precondition is finally known: a live journey BOTH multi-turn AND pressure-crossing** — the distillation box reproducing the recorded suite/heavy trajectories under the composer, or a purpose-built leg (own issue, own tape). What today DID retire, classed live: engine ownership under real traffic (58/58 ours), relief convergence inside #143’s bound, and every fallback now naming itself.
|
|
637
|
+
| C3 | A real-host pressure compaction now COMPOSES (multi-chapter checkpoints converging on the 32K window) | live provider | The `heavy` live leg (its bound is #143's open row, and it was already failing its own bound BEFORE this change) | **OPEN — attempted 2026-11-17 from this box, VOIDED before the provider, measured and recorded in #414.** Two runs (real-window and pinned-32K) died at `turn/end: no credential for provider route "local"` — live+harness mode has no route translator (the translator is the tape proxy, and live runs without one), while the session route stays pinned to `local/qwen3.8-flash-next`. Durable logs: zero tool calls, zero compaction events, zero hosted tokens. Worse, tracked-mode live HERE would silently observe the ALIASING 4B box (#406's own class, live edition) — the live class is not merely unavailable here, it is UNTRUSTED here. C3’s later same-day session then reached the provider for real — with #414’s route alignment and the proxy-side URL fix (PR #416), `LEG=heavy MODE=record E2E_PROVIDER=harness` ran the hosted `qwen3.8-flash` through the translating proxy (identity guard-proven, pinned 32K): **the journey PASSED live — 58 compactions, ALL chapters-engine-served (0 foreign), 58 chapter files, 16.2 min, #143’s bound held under composed-era code.** C3’s own claim was still NOT discharged, for a structural reason the run made precise: signatures are stored at `turn/end`, `heavy` is deliberately a SINGLE-turn journey, and the composer cannot fire there by design — all 126 manifests fell to legacy. That exposure found and closed the ledger’s last silent arm: `mapped-region + zero-collections` printed NOTHING for 58 straight falls; it now logs `reason=no-collections` (sink-verified row, #416). The multi-turn candidate `suite` recorded live too: clean (4 passed, 1.8m) but its live trajectory never crossed the trigger — trajectory, not turn count, decides. **C3’s complete precondition is finally known: a live journey BOTH multi-turn AND pressure-crossing** — the distillation box reproducing the recorded suite/heavy trajectories under the composer, or a purpose-built leg (own issue, own tape). What today DID retire, classed live: engine ownership under real traffic (58/58 ours), relief convergence inside #143’s bound, and every fallback now naming itself. **2026-11-19: C3's precondition MET — the answer arrived from live bytes.** The compose leg (#420: two doc-discussion topic turns storing signatures, then a forced changelog-page crossing at 0.6 of the pinned 32K) recorded live on the hosted remote: six relief passes, ALL chapters-engine-served, the composer RUNNING (zero reason= lines in sink or server log) — and archiving every pass as ONE chapter. The mechanism is pinned to the line: src/compose.ts inSpan demands WHOLE containment of a signature's seq range in the shadowed span, and live relief is incremental — earlier passes clip older signatures forever (measured: topic-1 sig 0..28 vs span 25..66 excluded wholesale; only topic-2's whole signature survived, so one chapter [25,66] absorbed topic-1's tail bytes). Deterministic rows cannot see this: they store two COMPLETE signatures in one span — the #399 disease one layer deeper. Filed with the full payload as #421 (intersect-and-clip fix, red-from-these-bytes acceptance). **CLOSED 2026-11-19 — PASS, live AND replayed.** #421 landed (intersect-and-clip; the geometry was
|
|
638
|
+
corrected twice more by measurement — the host relieves the moment it can, so 0.6 clipped cold
|
|
639
|
+
stores and 0.7 makes the FIRST crossing a two-whole-signature span — and the stale-`lib` process
|
|
640
|
+
defect surfaced, after which live-class claims verify the BUILT artifact, not just src). The compose
|
|
641
|
+
leg re-recorded live on the hosted remote: `1 passed` (1.8m) with `composedPass=true` (a pass's
|
|
642
|
+
shadowed set covered by two chapter rows, per-pass SET truth) and `aligned=true` (topic-2's chapter
|
|
643
|
+
opens exactly at u2; bodies codeword-clean; the archive titles are the discussion's own sentences) —
|
|
644
|
+
the claim's first live-provider observation, three relief passes, all chapters-engine-served. The
|
|
645
|
+
same tape then replayed MODEL-FREE green: `1 passed` (48.3s), zero MISSes — #141's branch-walk did
|
|
646
|
+
not bite; the byte-exact tape reproduces the local relief decisions. The tape is tracked corpus with
|
|
647
|
+
PROVENANCE (11 entries) and the leg is a chain member: composition is pinned against every future
|
|
648
|
+
code change, verified from the discussion itself — the corpus gap the maintainer named, closed. |
|
package/lib/compose.js
CHANGED
|
@@ -57,8 +57,18 @@ const messagesOf = (events, lo, hi) => events
|
|
|
57
57
|
*/
|
|
58
58
|
export function composeChapters(events, spanStart, spanEnd, collections, config) {
|
|
59
59
|
const notes = [];
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
// #421 (measured on the FIRST LIVE composed-discussion record, 2026-11-19): the old rule demanded
|
|
61
|
+
// the WHOLE signature range sit inside the span. Live relief is incremental — earlier passes clip
|
|
62
|
+
// older signatures — so one clipped seq disqualified a finished topic FOREVER, and six real passes
|
|
63
|
+
// composed six single chapters while every deterministic row (two COMPLETE signatures in one span)
|
|
64
|
+
// stayed green. Intersection is the honest predicate; the signature then participates with its
|
|
65
|
+
// CLIPPED bounds, because its already-archived head lives in an earlier chapter. Unfinished turns
|
|
66
|
+
// stay unarchived by construction — signatures are only stored at `turn/end`, so the in-flight
|
|
67
|
+
// turn has no collection to participate with (measured in the same session's store row).
|
|
68
|
+
const intersects = (c) => c.seqs.length > 0 && c.seqs[c.seqs.length - 1] >= spanStart && c.seqs[0] <= spanEnd;
|
|
69
|
+
const clippedStart = (c) => Math.max(c.seqs[0], spanStart);
|
|
70
|
+
const clippedEnd = (c) => Math.min(c.seqs[c.seqs.length - 1], spanEnd);
|
|
71
|
+
const usable = collections.filter(intersects).sort((a, b) => clippedStart(a) - clippedStart(b));
|
|
62
72
|
if (usable.length === 0) {
|
|
63
73
|
const unarchived = events.filter((e) => e.seq >= spanStart && e.seq <= spanEnd).map((e) => e.seq);
|
|
64
74
|
notes.push('no completed collections in span — legacy segmentation applies');
|
|
@@ -83,7 +93,8 @@ export function composeChapters(events, spanStart, spanEnd, collections, config)
|
|
|
83
93
|
}
|
|
84
94
|
const runningOf = (c) => ({
|
|
85
95
|
first: c, last: c, paths: new Set(c.paths), commands: new Set(c.commands), terms: new Set(c.terms),
|
|
86
|
-
|
|
96
|
+
// #421: the RUNNING RANGE is the intersection; the scoring identity (first/last) stays whole.
|
|
97
|
+
size: c.size, startSeq: clippedStart(c), endSeq: clippedEnd(c),
|
|
87
98
|
});
|
|
88
99
|
const scoreAgainst = (c, r) => Math.max(signatureScore(c, r.first), signatureScore(c, r.last));
|
|
89
100
|
// primary match: the first path of c equals the first path of either member
|
|
@@ -148,7 +159,9 @@ export function composeChapters(events, spanStart, spanEnd, collections, config)
|
|
|
148
159
|
running.terms.add(t);
|
|
149
160
|
running.size += c.size;
|
|
150
161
|
running.last = c;
|
|
151
|
-
|
|
162
|
+
// #421: merge extends the RUNNING RANGE, and the range is span-clipped — a raw tail here could
|
|
163
|
+
// push a chapter past spanEnd, the one boundary §4.3 never crosses.
|
|
164
|
+
running.endSeq = Math.min(c.seqs[c.seqs.length - 1], spanEnd);
|
|
152
165
|
}
|
|
153
166
|
else {
|
|
154
167
|
close();
|
|
@@ -165,8 +178,16 @@ export function composeChapters(events, spanStart, spanEnd, collections, config)
|
|
|
165
178
|
// hands a span that cuts a turn, the clamp keeps the unfinished tail live instead of absorbing
|
|
166
179
|
// it. Both halves of the guard, one line: nothing unfinished in, nothing finished out.
|
|
167
180
|
const lastCompletedEnd = events.reduce((m, e) => (e.type === 'turn/end' && e.seq <= spanEnd && e.seq > m ? e.seq : m), spanStart);
|
|
168
|
-
|
|
169
|
-
|
|
181
|
+
// #421: the final bound is the UNION of the two completion witnesses — the running (clipped)
|
|
182
|
+
// signature's end, which proves its content finished by `turn/end` storage, and the last
|
|
183
|
+
// turn/end at or before spanEnd, which extends an unsigned-but-completed tail absorption. When the
|
|
184
|
+
// last signature already reached spanEnd clipped and no later turn closed, pendingLo sits past
|
|
185
|
+
// both and NOTHING closes: the old unconditional close(lastCompletedEnd) here could emit an
|
|
186
|
+
// inverted range (start 6, end 5, measured by the #421 rows) whenever a clipped signature opened
|
|
187
|
+
// after the last in-span turn/end.
|
|
188
|
+
const finalHi = Math.max(running.endSeq, lastCompletedEnd);
|
|
189
|
+
if (!closedAtPlan && pendingLo <= finalHi)
|
|
190
|
+
close(finalHi);
|
|
170
191
|
function close(hiOverride) {
|
|
171
192
|
const lo = pendingLo;
|
|
172
193
|
const hi = hiOverride ?? running.endSeq;
|
package/lib/compose.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,cAAc,EAAsB,MAAM,kBAAkB,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAmBxC,MAAM,KAAK,GAAG,CAAC,CAAoB,EAAE,CAAoB,EAAe,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;AAChG,MAAM,KAAK,GAAG,CAAC,CAAoB,EAAE,CAAoB,EAAU,EAAE;IACnE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAA;IACtB,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACxD,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,CAAsB,EAAE,CAAs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AAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3D,QAAQ,CAAC,IAAI,CAAC;YACZ,KAAK,EAAE,QAAQ,CAAC,KAAK;YACrB,OAAO,EAAE,GAAG,QAAQ,CAAC,OAAO,GAAG,SAAS,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;YAC1E,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE,EAAE;SACX,CAAC,CAAA;QACF,SAAS,GAAG,EAAE,GAAG,CAAC,CAAA;IACpB,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,CAAA;AAC5C,CAAC"}
|
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.38";
|
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.38';
|
|
10
10
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fractalsynapse/dsh-chapters",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.38",
|
|
4
4
|
"description": "dsh plugin: verbatim chapter archive + zero-token index for small-context models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"e2e:harness:live": "E2E_PROVIDER=harness MODE=live bash scripts/e2e-one.sh",
|
|
54
54
|
"corpus:heal": "E2E_PROVIDER=harness MODE=heal bash scripts/e2e-one.sh",
|
|
55
55
|
"corpus:record": "E2E_PROVIDER=harness MODE=record bash scripts/e2e-one.sh",
|
|
56
|
-
"test:e2e": "PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=suite && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=heavy && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=arrival && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=enrich && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=fanout && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=rules && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=fork && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=plans && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=prompt && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=prompt-off && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=prompt-revival && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=reload",
|
|
56
|
+
"test:e2e": "PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=suite && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=heavy && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=arrival && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=enrich && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=fanout && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=rules && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=fork && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=plans && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=prompt && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=prompt-off && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=prompt-revival && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=reload && PLAYWRIGHT_BROWSERS_PATH=$PWD/var/ms-playwright npx playwright test -c tests/e2e/playwright.config.ts --project=compose",
|
|
57
57
|
"test:all": "npm test && npm run test:e2e",
|
|
58
58
|
"test:integration": "node --test tests/integration/*.test.ts",
|
|
59
59
|
"test:e2e:record": "E2E_MODEL=record npm run test:e2e",
|