@fractalsynapse/dsh-chapters 0.2.34 → 0.2.35
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/backlog.md +5 -3
- package/docs/contract.md +32 -3
- package/docs/development.md +13 -0
- package/docs/project-state.md +52 -0
- package/lib/prompt.d.ts +13 -1
- package/lib/prompt.js +92 -36
- package/lib/prompt.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/docs/backlog.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
# Open items — 2026-11-17 (host 0.2.0-rc.2)
|
|
2
2
|
|
|
3
|
-
- **0.2.34
|
|
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 never been OBSERVED on a live
|
|
4
4
|
host — the heavy leg's first sight, tracked as `docs/verify.md` C3, in the same family as #143's
|
|
5
5
|
convergence bound. The deprecated live reads (`eventAt`/`snapshotEvents`/`ownEvents` — the host says
|
|
6
6
|
"new calls are prohibited") are inventoried by `tests/unit/host-composer-shape.test.ts`; the migration
|
|
7
7
|
to `deriveMessages`/`requestHeader` (live) and `SessionQuery.readSession` (durable) is the first gate to
|
|
8
8
|
re-run before any host bump. #397 (`meta.parentSession` for continuation children) awaits a maintainer
|
|
9
|
-
decision on amending `docs/contract.md` § Lineage. #383 (#379)
|
|
10
|
-
|
|
9
|
+
decision on amending `docs/contract.md` § Lineage. #383 (#379) LANDED post-0.2.34 (PR #383, replay-green at current trunk — the held
|
|
10
|
+
re-record turned out to belong to the old base). #368 (#340) moved to **0.2.36** by maintainer decision of
|
|
11
|
+
2026-11-17 with the `prompt`-leg re-record, which is gated on a rig that truly serves the pinned model
|
|
12
|
+
(see #406 — this box was measured silently aliasing it).
|
|
11
13
|
- **#355 — the 2026-11-14 correctness audit: 24 issues filed for this audit (25 counting #386), 22 fixed across 24 PRs, released in 0.2.33.**
|
|
12
14
|
Every finding was reproduced against real bytes before it was changed, and the shape they share is the
|
|
13
15
|
release's subject: **a check that cannot fail**. Concretely: the preset-row health witness compared a
|
package/docs/contract.md
CHANGED
|
@@ -1048,9 +1048,38 @@ gone.
|
|
|
1048
1048
|
that removes the megabytes, not the milliseconds-squared, and it is a policy change to the director's
|
|
1049
1049
|
input, so it is tracked separately rather than folded into a performance PR.
|
|
1050
1050
|
|
|
1051
|
-
**Acceptance note,
|
|
1052
|
-
|
|
1053
|
-
|
|
1051
|
+
**Acceptance note, updated after #379 landed the cap:** #350 asked for "< 50 ms at 800 chapters / 36 MB".
|
|
1052
|
+
#350 alone delivered 136 ms; the same fixture measured **0.29 ms** once the chapter block was bounded
|
|
1053
|
+
(#379), because the remaining cost was constructing a document the cap now prevents. Both numbers are kept
|
|
1054
|
+
here rather than overwritten — the second only means anything against the first.
|
|
1055
|
+
|
|
1056
|
+
### The chapter block is bounded, and the bound is not a recency ratio (#379)
|
|
1057
|
+
|
|
1058
|
+
The director's budget was `contextChars = floor(window × promptContextRatio × 4)`, so a 1M-token route
|
|
1059
|
+
allowed ~2,000,000 characters of auxiliary input to produce one sentence, with the newest human turn at
|
|
1060
|
+
roughly one character in two million — #7's third mechanism, the other two being #340 and #343.
|
|
1061
|
+
|
|
1062
|
+
`buildSuggestInput` now caps the chapter block at **both** a share of the budget
|
|
1063
|
+
(`DEFAULT_CHAPTERS_SHARE`, 25%) and an absolute ceiling (`DEFAULT_CHAPTERS_CAP_CHARS`, 200,000 chars
|
|
1064
|
+
≈ 50K tokens). The joint constraint stays monotone in `drop`, so the #350 search still applies unchanged.
|
|
1065
|
+
|
|
1066
|
+
**Why an absolute ceiling and not a share of the document.** My first attempt bounded history *relative to
|
|
1067
|
+
the protected content*, which is the only frame in which "not crowded out" looks structural — and it
|
|
1068
|
+
measured the result: **the director's entire input collapsed to 2 KB.** The protected set is mostly fixed
|
|
1069
|
+
reply rules, so "25% of everything else" allowed about one chapter line: a perfect recency ratio obtained
|
|
1070
|
+
by deleting the context the director exists to weigh. The regression is now pinned by a row asserting the
|
|
1071
|
+
input still shows a real trajectory, so a future tightening that trades content for a ratio fails loudly.
|
|
1072
|
+
|
|
1073
|
+
Recency is instead protected by what genuinely protects it: the last turn enters **whole and is never
|
|
1074
|
+
sliced** (#188), every drop is **announced in the input**, and the block cannot exceed either bound.
|
|
1075
|
+
|
|
1076
|
+
**What is NOT done:** the share and ceiling are documented constants threaded as a parameter, not yet
|
|
1077
|
+
profile config keys. Surfacing them needs the #354 discipline (declare on the row, validate, print in
|
|
1078
|
+
`/chapters-status` which values are in force) — a knob nobody can see is how #354 drifted for months.
|
|
1079
|
+
Tracked on #379; the cap itself is enforced today.
|
|
1080
|
+
|
|
1081
|
+
Tape status: this changes the director's **request bytes** by design — one of the two items (with #340)
|
|
1082
|
+
that genuinely need the `prompt`-leg re-anchor before merging.
|
|
1054
1083
|
|
|
1055
1084
|
## Seeded-continuation load deadlock — the fold rule vs the header recorder (measured 2026-11-05, #314)
|
|
1056
1085
|
|
package/docs/development.md
CHANGED
|
@@ -127,6 +127,19 @@ answers the question in exactly one place; two consumers use it:
|
|
|
127
127
|
- `tests/e2e/boot.ts` **refuses replay by name** when `host` ≠ the pinned version, quoting the
|
|
128
128
|
recorded `reason` and the tracking issue. `E2E_MODEL=record` is deliberately exempt — re-distilling
|
|
129
129
|
is the way out, and a gate that blocked it would strand itself.
|
|
130
|
+
- **Model identity is proven before any mode that WRITES tape** (#406). `MODE=record` and `MODE=heal`
|
|
131
|
+
now assert, before boot: the upstream's `/v1/models` lists the pinned rig model id, **and** a chat
|
|
132
|
+
probe requested by that name comes back with the same id in the RESPONSE's `model` field. (Live mode
|
|
133
|
+
is deliberately outside the proof: boot never resolves an upstream for it — the host routes it — so a
|
|
134
|
+
guard would probe an endpoint live does not use. Live-class runs on an aliasing endpoint still observe
|
|
135
|
+
the wrong model; the defense there is this rig's own honesty, not a fetch.) The measured
|
|
136
|
+
incident: this box's vLLM silently answers `qwen3.8-flash-next` with `qwen3-4b-instruct` — sessions
|
|
137
|
+
ran, specs ran, and the run wrote fifteen tape entries shaped by the wrong model (raw `think` traces
|
|
138
|
+
as content) before two prompt-bar assertions caught it. An aliasing endpoint makes every recorded run
|
|
139
|
+
NOT evidence for the pinned rig model, so the refusal names what IS served instead of recording over
|
|
140
|
+
the corpus. `MODE=replay` never probes — CI runners have no 8080, and replay writes nothing.
|
|
141
|
+
The predicate lives once in `tests/support/model-parity.ts`; `E2E_UPSTREAM_MODEL` remains the
|
|
142
|
+
deliberate remap, honored only when that id is itself listed and proven.
|
|
130
143
|
- `.github/workflows/ci.yml`'s `host-capability` job sets `corpus-anchored`, the `e2e-replay` job
|
|
131
144
|
requires it, and the run log gets a step summary plus a `::warning::` naming the issue. Skipped,
|
|
132
145
|
visibly — the same discipline as the preset-row refusal it sits beside: never silently green,
|
package/docs/project-state.md
CHANGED
|
@@ -945,3 +945,55 @@ roll into **0.2.35** along with the `prompt`-leg re-record that gates them.
|
|
|
945
945
|
The audit self-correction stays recorded above rather than edited away: the claim that "the e2e harness
|
|
946
946
|
cannot compile so no real-host coverage exists" was wrong — the ratchet baselines 58 errors by design and
|
|
947
947
|
the replay chain runs real boots regardless. Withdrawn where the findings are written.
|
|
948
|
+
|
|
949
|
+
## 2026-11-17 — 0.2.34 SHIPPED
|
|
950
|
+
|
|
951
|
+
Released from `main` `2eee0b3` (merge of PR #405, verified head `e01282c`, tree-identical), tag **`0.2.34`**
|
|
952
|
+
(annotated, immutable, matching the manifest at all four version sites).
|
|
953
|
+
|
|
954
|
+
The release job's own gates (run `44051111647`, success): build → coverage-gated deterministic suite →
|
|
955
|
+
publish with `NPM_TOKEN` (Production) and OIDC provenance — the log carries `publish Provenance statement
|
|
956
|
+
published to transparency log` (sigstore logIndex 3944683270), the no-attestation fallback did not fire.
|
|
957
|
+
CI on the `main` push (run `44051010483`) — including the ten-leg tape-replay acceptance chain — success,
|
|
958
|
+
so the published content itself was replayed green.
|
|
959
|
+
|
|
960
|
+
Registry tarball check (the 0.2.20 dead-version class): `npm view @fractalsynapse/dsh-chapters@0.2.34`
|
|
961
|
+
resolves, `latest` points at it; unpacking the shipped tarball, `package.json` says **0.2.34** and
|
|
962
|
+
`lib/version.js` carries `PLUGIN_VERSION = '0.2.34'` — manifest and bundled bytes agree. The registry
|
|
963
|
+
attestation endpoint returns the publish bundle.
|
|
964
|
+
|
|
965
|
+
Closed at this cut: **#395, #396, #398, #399** (the 2026-11-15/16 context-handling audit fixes).
|
|
966
|
+
|
|
967
|
+
**Post-cut items heading for 0.2.35:**
|
|
968
|
+
- **#383 (#379 director-budget cap)** and **#368 (#340 suggestion freshness)** — the two held PRs, together
|
|
969
|
+
with the **`prompt`-leg re-record** that gates them (maintainer direction of 2026-11-17).
|
|
970
|
+
- **C3** (`docs/verify.md`) — the first live-host OBSERVATION of a composed checkpoint (heavy leg; same
|
|
971
|
+
family as #143's convergence bound). Deterministic + replayed evidence says the composer maps on the
|
|
972
|
+
real kernel class; the live sight is still owed.
|
|
973
|
+
- **#349** remains open past its shipped half (#391).
|
|
974
|
+
- **#397** awaits a maintainer decision on amending `docs/contract.md` § Lineage.
|
|
975
|
+
- The deprecated live reads (`eventAt`/`snapshotEvents`/`ownEvents`) — inventory pinned by
|
|
976
|
+
`tests/unit/host-composer-shape.test.ts` — are the first gate to re-run against any host bump;
|
|
977
|
+
`contract.md` is the measuring document.
|
|
978
|
+
|
|
979
|
+
## 2026-11-17 — 0.2.35 cut prepared from staging `669d59d`; scope decided
|
|
980
|
+
|
|
981
|
+
Maintainer direction of 2026-11-17: cut 0.2.35 **early** with the two landed items — #379 (director
|
|
982
|
+
chapter-block cap, PR #383) and #406 (tape-writing model-identity guard, PR #407) — and move #340
|
|
983
|
+
(PR #368) to **0.2.36**. Recorded as a decision: #368 passes everything except its one gated item, the
|
|
984
|
+
`prompt`-leg re-record, which is blocked on an endpoint that truly serves the pinned rig model — the
|
|
985
|
+
defect #406 now refuses loudly instead of recording over it.
|
|
986
|
+
|
|
987
|
+
What the re-record attempt turned up is the release's real content: this box's endpoint was proven by
|
|
988
|
+
direct probe to SILENTLY ALIAS the pinned model name (requests for `qwen3.8-flash-next` answered by
|
|
989
|
+
`qwen3-4b-instruct`, raw `think` traces as content; fifteen tape entries contaminated and discarded,
|
|
990
|
+
corpus untouched). The guard, the single-source `RIG_MODEL_ID`, the field demo (refuse before boot, zero
|
|
991
|
+
bytes written), and the replay-inert proof (CI chain green with the guard present) all landed before
|
|
992
|
+
the cut.
|
|
993
|
+
|
|
994
|
+
Versions: all four sites at **0.2.35**; release-gate 6/6. Evidence at the pre-release base `669d59d`
|
|
995
|
+
was carried by #407's own four green CI jobs (including the ten-leg replay); this candidate re-runs
|
|
996
|
+
the full chain locally before its stamp commit. Named open, unchanged from 0.2.34: verify C3 (first
|
|
997
|
+
live observation of a composed checkpoint), #349 remainder, #397 contract decision, five credential-
|
|
998
|
+
gated TreeDX live rows, and #340 (its home is now 0.2.36, with this box's endpoint defect the thing to
|
|
999
|
+
fix or route around).
|
package/lib/prompt.d.ts
CHANGED
|
@@ -225,7 +225,19 @@ export declare function firstFitDrop(lengthOf: (drop: number) => number, chapter
|
|
|
225
225
|
* last turn — never slices; if it alone cannot fit, the suggestion REFUSES with the numbers.
|
|
226
226
|
* A refused suggestion costs one turn; a truncated one poisons the next.
|
|
227
227
|
*/
|
|
228
|
-
|
|
228
|
+
/** Fraction of the director's budget the chapter block may occupy when the caller does not say (#379). */
|
|
229
|
+
export declare const DEFAULT_CHAPTERS_SHARE = 0.25;
|
|
230
|
+
/**
|
|
231
|
+
* #379: absolute ceiling on the director's chapter block, in characters, whatever the budget allows
|
|
232
|
+
* (~50K est tokens). A share of a window-derived budget is unbounded in absolute terms: on a 1M-token
|
|
233
|
+
* route 25% is half a megabyte of old summaries. Sized so a session with hundreds of chapters still
|
|
234
|
+
* shows a real trajectory — measured: 40 chapters of 2 KB summaries still fits, 800 do not.
|
|
235
|
+
*/
|
|
236
|
+
export declare const DEFAULT_CHAPTERS_CAP_CHARS = 200000;
|
|
237
|
+
export declare function buildSuggestInput(facts: SuggestFacts, budgetChars: number, maxChars: number,
|
|
238
|
+
/** #379: cap on the chapter block as a fraction of `budgetChars`, independent of whether the total
|
|
239
|
+
* would fit. Letting the window set the budget alone is what made the block dominate it. */
|
|
240
|
+
chaptersShare?: number): {
|
|
229
241
|
input: string;
|
|
230
242
|
} | {
|
|
231
243
|
refusal: string;
|
package/lib/prompt.js
CHANGED
|
@@ -212,14 +212,35 @@ function linearFirstFit(lengthOf, chapterCount, budget) {
|
|
|
212
212
|
* last turn — never slices; if it alone cannot fit, the suggestion REFUSES with the numbers.
|
|
213
213
|
* A refused suggestion costs one turn; a truncated one poisons the next.
|
|
214
214
|
*/
|
|
215
|
-
|
|
215
|
+
/** Fraction of the director's budget the chapter block may occupy when the caller does not say (#379). */
|
|
216
|
+
export const DEFAULT_CHAPTERS_SHARE = 0.25;
|
|
217
|
+
/**
|
|
218
|
+
* #379: absolute ceiling on the director's chapter block, in characters, whatever the budget allows
|
|
219
|
+
* (~50K est tokens). A share of a window-derived budget is unbounded in absolute terms: on a 1M-token
|
|
220
|
+
* route 25% is half a megabyte of old summaries. Sized so a session with hundreds of chapters still
|
|
221
|
+
* shows a real trajectory — measured: 40 chapters of 2 KB summaries still fits, 800 do not.
|
|
222
|
+
*/
|
|
223
|
+
export const DEFAULT_CHAPTERS_CAP_CHARS = 200_000;
|
|
224
|
+
export function buildSuggestInput(facts, budgetChars, maxChars,
|
|
225
|
+
/** #379: cap on the chapter block as a fraction of `budgetChars`, independent of whether the total
|
|
226
|
+
* would fit. Letting the window set the budget alone is what made the block dominate it. */
|
|
227
|
+
chaptersShare = DEFAULT_CHAPTERS_SHARE) {
|
|
216
228
|
const head = 'You are the second reader of a DSH session — a model that DEFINES the next step and never executes it.';
|
|
217
229
|
const replyRules = `Write the ONE next prompt the human should paste into the composer. It MUST be a message the WORKER MODEL in this session receives and can act on with its own tools, files, and commands. The test: if this exact text arrived as a user message in the worker's context, could the worker act on it directly? Sentences only the human could perform — typing a slash command the host intercepts, opening a UI, clicking this bar, choosing between options — are wrong; the live failure this forbids was "run /chapters-prompt suggest and report the output". Telling the model to run tests, execute commands, fix a file, or investigate is exactly right ('run the tests', 'fix the flake in X first'); advice to the user ('you should consider', 'I recommend') and echoing the conversation's last instruction are not. It must also be FORWARD: name a next step that has NOT YET BEGUN — never a restatement of the work this session is already doing. A live sample failed exactly this, proposing "Create the #273 echo-adjacency issue and run the pre-change sampler" while the issue was filed and the sampler running; describing the in-flight task is a mirror, not a director. If the session is mid-task, recommend what comes AFTER that task lands — its verification, its follow-up — or a different line of work the latest state plainly calls for. A single imperative request; plain text; at most ${maxChars} characters; no preamble, no quotes, no markdown; it must follow from the latest state and advance the session's actual work — propose nothing already done. Reply with ONLY that prompt. The GOAL: prefix is legal ONLY when the goal block above names an ACTIVE goal and this step re-cuts that objective (only the human can send those; autorun will not). With no active goal named, NEVER use the prefix — not for wording about closing out, completing, or ending a purpose; proposing to "close out this release cycle" stamped GOAL: in a session with no goal is the live mis-stamp this forbids. An ordinary next step takes no prefix even when a goal is active.`;
|
|
230
|
+
// #379: the chapter block gets its OWN cap, as a share of the budget, independent of whether the
|
|
231
|
+
// whole assembly would fit. Until now the block could grow to consume everything the window allowed,
|
|
232
|
+
// and on a 1M-token route `contextChars` is ~2,000,000 chars — so the director was handed megabytes of
|
|
233
|
+
// old summaries to write one sentence, with the newest human turn at roughly one character in two
|
|
234
|
+
// million (#7's third mechanism). Recency should be structural, not a hope that the block is small.
|
|
235
|
+
const share = chaptersShare > 0 && chaptersShare <= 1 ? chaptersShare : DEFAULT_CHAPTERS_SHARE;
|
|
236
|
+
const chaptersCap = Math.max(0, Math.floor(budgetChars * share));
|
|
237
|
+
const CHAPTERS_HEADER = '## Where it has been (chapters, oldest first — title, summary, and the plots that carry the trajectory)';
|
|
238
|
+
const NO_CHAPTERS_LINE = '## Where it has been (no chapters yet)';
|
|
218
239
|
const chapterBlock = (dropOldest) => {
|
|
219
240
|
const cs = facts.chapters.slice(dropOldest);
|
|
220
241
|
if (cs.length === 0)
|
|
221
|
-
return [
|
|
222
|
-
const out = [
|
|
242
|
+
return [NO_CHAPTERS_LINE];
|
|
243
|
+
const out = [CHAPTERS_HEADER];
|
|
223
244
|
for (const c of cs) {
|
|
224
245
|
out.push(`${c.number}. ${c.title} — ${c.summary}`);
|
|
225
246
|
if (c.plots.length > 0) {
|
|
@@ -230,44 +251,79 @@ export function buildSuggestInput(facts, budgetChars, maxChars) {
|
|
|
230
251
|
}
|
|
231
252
|
return out;
|
|
232
253
|
};
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
//
|
|
260
|
-
//
|
|
254
|
+
// Everything outside the chapter block, held as the SAME arrays the final string is built from, so the
|
|
255
|
+
// measurement below cannot describe a different document than assemble() emits. Their size is bounded
|
|
256
|
+
// by the reply rules and the human's turn — never by archive volume — so materialising them is cheap.
|
|
257
|
+
const preItems = [
|
|
258
|
+
head,
|
|
259
|
+
'',
|
|
260
|
+
`## Session${facts.title !== undefined && facts.title !== '' ? `: ${facts.title}` : ''}`,
|
|
261
|
+
...(facts.goalDirective !== undefined && facts.goalDirective !== '' ? ['', String(facts.goalDirective)] : []),
|
|
262
|
+
...(facts.plan !== undefined && facts.plan !== '' ? ['', '## Active plan', String(facts.plan)] : []),
|
|
263
|
+
...(facts.rules !== undefined && facts.rules !== '' ? ['', '## Standing orders', String(facts.rules)] : []),
|
|
264
|
+
'',
|
|
265
|
+
];
|
|
266
|
+
const lastTurnItems = facts.lastTurn.length > 0
|
|
267
|
+
? ['## Last turn (request through final response)',
|
|
268
|
+
...facts.lastTurn.map((m) => m.role === 'user' ? 'Human: ' + m.text : 'Assistant: ' + m.text)]
|
|
269
|
+
: ['## Last turn (empty)'];
|
|
270
|
+
const dropNote = (dropOldest) => `(older chapters dropped to fit the ${budgetChars}-char budget: ${dropOldest} chapter(s) — the recent trajectory leads)`;
|
|
271
|
+
const tailItems = (dropOldest) => [
|
|
272
|
+
...lastTurnItems,
|
|
273
|
+
...(dropOldest > 0 ? [dropNote(dropOldest)] : []),
|
|
274
|
+
'',
|
|
275
|
+
replyRules,
|
|
276
|
+
];
|
|
277
|
+
const joinedLen = (items) => items.length === 0 ? 0 : items.reduce((m, x) => m + x.length, 0) + items.length - 1;
|
|
278
|
+
const preLen = joinedLen(preItems);
|
|
279
|
+
const tailLen = (d) => joinedLen(tailItems(d));
|
|
280
|
+
// The chapter block is the only part large enough to be worth measuring WITHOUT building it (#350's
|
|
281
|
+
// residual 136 ms was constructing tens of megabytes once per probe). Chapter k renders as one line,
|
|
282
|
+
// plus a ' Plots:' line and one line per plot when it has plots; the separators between those items
|
|
283
|
+
// belong to the chapter's own length. This arithmetic is checked against assemble() for EVERY drop
|
|
284
|
+
// value in tests/unit/prompt-assembly-cost.test.ts — a shortcut that disagrees with the bytes is worse
|
|
285
|
+
// than the slow version it replaces.
|
|
286
|
+
const chapterLens = facts.chapters.map((c) => {
|
|
287
|
+
const headChars = String(c.number).length + 2 + c.title.length + 3 + c.summary.length;
|
|
288
|
+
const plotChars = c.plots.length === 0 ? 0 : 9 + c.plots.reduce((m, pl) => m + 5 + pl.length, 0);
|
|
289
|
+
const items = 1 + (c.plots.length > 0 ? 1 + c.plots.length : 0);
|
|
290
|
+
return { joined: headChars + plotChars + Math.max(0, items - 1), items };
|
|
291
|
+
});
|
|
292
|
+
const nChapters = facts.chapters.length;
|
|
293
|
+
const suffixJoined = new Array(nChapters + 1).fill(0);
|
|
294
|
+
const suffixItems = new Array(nChapters + 1).fill(0);
|
|
295
|
+
for (let k = nChapters - 1; k >= 0; k--) {
|
|
296
|
+
suffixJoined[k] = suffixJoined[k + 1] + chapterLens[k].joined;
|
|
297
|
+
suffixItems[k] = suffixItems[k + 1] + chapterLens[k].items;
|
|
298
|
+
}
|
|
299
|
+
const blockLen = (d) => d >= nChapters
|
|
300
|
+
? NO_CHAPTERS_LINE.length
|
|
301
|
+
: CHAPTERS_HEADER.length + 1 + suffixJoined[d] + (suffixItems[d] - 1);
|
|
302
|
+
const measure = (d) => preLen + 1 + blockLen(d) + 1 + tailLen(d);
|
|
303
|
+
const assemble = (dropOldest) => [...preItems, ...chapterBlock(dropOldest), ...tailItems(dropOldest)].join('\n');
|
|
304
|
+
// #350/#379: the joint constraint — total within budget AND the chapter block within its own cap.
|
|
305
|
+
// Both terms are non-increasing in `drop`, so their maximum is, and firstFitDrop remains valid. The
|
|
306
|
+
// block term is `block <= cap` restated on the total's scale: `block + (budget - cap) <= budget`.
|
|
307
|
+
// #379, and a correction made from measurement rather than taste. Bounding history at a share of the
|
|
308
|
+
// BUDGET is not enough on its own (a 1M-token route's 2,000,000-char budget makes 25% still half a
|
|
309
|
+
// megabyte beside a few thousand characters of newest turn). My first attempt bounded it RELATIVE TO
|
|
310
|
+
// THE PROTECTED CONTENT instead — and measured the result: the director's whole input collapsed to
|
|
311
|
+
// 2 KB, because the protected set is mostly fixed reply rules, so "25% of everything else" allowed
|
|
312
|
+
// about one chapter line. That satisfies a recency ratio by destroying the context the director
|
|
313
|
+
// exists to weigh, which is the wrong fix arrived at by the right arithmetic.
|
|
261
314
|
//
|
|
262
|
-
//
|
|
263
|
-
//
|
|
264
|
-
//
|
|
265
|
-
|
|
315
|
+
// So: share of the budget, AND an absolute ceiling. The ceiling is what actually bounds the
|
|
316
|
+
// large-window case (a ~50K-token history block), it does not shrink when a session's last turn is
|
|
317
|
+
// short, and recency is protected by what genuinely protects it — the last turn enters WHOLE and is
|
|
318
|
+
// never sliced (#188), plus the block being unable to exceed either bound.
|
|
319
|
+
const effectiveCap = Math.min(chaptersCap, DEFAULT_CHAPTERS_CAP_CHARS);
|
|
320
|
+
const required = (d) => Math.max(measure(d), blockLen(d) + (budgetChars - effectiveCap));
|
|
321
|
+
const drop = firstFitDrop(required, nChapters, budgetChars);
|
|
266
322
|
if (drop !== null)
|
|
267
323
|
return { input: assemble(drop) };
|
|
268
324
|
const floor = assemble(facts.chapters.length).length;
|
|
269
325
|
return {
|
|
270
|
-
refusal: `the suggestion input cannot fit — the protected context (goal, plan, rules, last turn) assembles to ${floor} chars, exceeding the ${budgetChars}-char budget with all ${
|
|
326
|
+
refusal: `the suggestion input cannot fit — the protected context (goal, plan, rules, last turn) assembles to ${floor} chars, exceeding the ${budgetChars}-char budget with all ${nChapters} chapter(s) already dropped; the chapter block was capped at ${effectiveCap} chars (${Math.round(share * 100)}% of the budget, ceiling ${DEFAULT_CHAPTERS_CAP_CHARS} chars). Refusing rather than truncating (#188): raise the budget or set a larger model with /chapters-prompt model.`,
|
|
271
327
|
};
|
|
272
328
|
}
|
|
273
329
|
/**
|
package/lib/prompt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACxE,OAAO,EAAE,eAAe,EAAqB,MAAM,eAAe,CAAA;AAGlE,8EAA8E;AAC9E,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAc,CAAA;AAiFhD;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAA2B,EAAE,WAAmB;IAClF,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,EAAE,IAAI,EAAE,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SAAQ;YAC9B,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;YAChB,0EAA0E;YAC1E,IAAI,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;YACnC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAA;gBACxC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;gBAC7C,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;YAChC,CAAC;YACD,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,CAAA;QAC3E,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAA;AACZ,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.35";
|
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.35';
|
|
10
10
|
//# sourceMappingURL=version.js.map
|