@plurnk/plurnk-service 4.0.0 → 4.1.0
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/.env.defaults +3 -3
- package/SPEC.md +33 -25
- package/dist/build-info.json +1 -1
- package/dist/core/AdmittedTurnExecutor.d.ts +3 -1
- package/dist/core/AdmittedTurnExecutor.d.ts.map +1 -1
- package/dist/core/AdmittedTurnExecutor.js +4 -0
- package/dist/core/AdmittedTurnExecutor.js.map +1 -1
- package/dist/core/Dispatcher.d.ts +1 -0
- package/dist/core/Dispatcher.d.ts.map +1 -1
- package/dist/core/Dispatcher.js +2 -0
- package/dist/core/Dispatcher.js.map +1 -1
- package/dist/core/LogWriter.d.ts +4 -2
- package/dist/core/LogWriter.d.ts.map +1 -1
- package/dist/core/LogWriter.js +7 -3
- package/dist/core/LogWriter.js.map +1 -1
- package/dist/core/OperationHistory.d.ts +18 -0
- package/dist/core/OperationHistory.d.ts.map +1 -0
- package/dist/core/OperationHistory.js +55 -0
- package/dist/core/OperationHistory.js.map +1 -0
- package/dist/core/PacketBuilder.d.ts.map +1 -1
- package/dist/core/PacketBuilder.js +16 -50
- package/dist/core/PacketBuilder.js.map +1 -1
- package/dist/core/TurnOps.d.ts +0 -3
- package/dist/core/TurnOps.d.ts.map +1 -1
- package/dist/core/TurnOps.js +0 -27
- package/dist/core/TurnOps.js.map +1 -1
- package/dist/core/TurnRunner.d.ts.map +1 -1
- package/dist/core/TurnRunner.js +3 -15
- package/dist/core/TurnRunner.js.map +1 -1
- package/dist/core/packet-wire.d.ts +6 -4
- package/dist/core/packet-wire.d.ts.map +1 -1
- package/dist/core/packet-wire.js +19 -6
- package/dist/core/packet-wire.js.map +1 -1
- package/dist/man/plurnk-service.1 +4 -4
- package/dist/schemes/Log.d.ts.map +1 -1
- package/dist/schemes/Log.js +2 -32
- package/dist/schemes/Log.js.map +1 -1
- package/dist/schemes/Log.sql +0 -9
- package/package.json +4 -4
package/.env.defaults
CHANGED
|
@@ -166,9 +166,9 @@ PLURNK_SERVICE_BUDGET_LARGEST_ITEMS=5
|
|
|
166
166
|
PLURNK_SERVICE_PREVIEW_LINES=100
|
|
167
167
|
# Independent bound on the same page, Unicode code points; CRLF counts as one separator.
|
|
168
168
|
PLURNK_SERVICE_PREVIEW_CHARS=16000
|
|
169
|
-
# Assistant replay ({§emission-history}): none, latest, or all eligible turns from this loop, each
|
|
170
|
-
#
|
|
171
|
-
# the whole
|
|
169
|
+
# Assistant replay ({§emission-history}): none, latest, or all eligible turns from this loop, each
|
|
170
|
+
# turn's complete operations together, immediately before that turn's receipts. The context wall may omit
|
|
171
|
+
# the whole history; source evidence never changes.
|
|
172
172
|
PLURNK_SERVICE_EMISSION_HISTORY=all
|
|
173
173
|
# Optional reasoning memory ({§reasoning-row}): 1 adds the turn's preview before its emission or results,
|
|
174
174
|
# only when room remains after all requested results and diagnostics. Otherwise omit it silently. 0 disables it.
|
package/SPEC.md
CHANGED
|
@@ -484,7 +484,7 @@ direct-entry-plus-directory count; `-1` enables the ordinary markerless page;
|
|
|
484
484
|
unset / `0` disables previews. `log://` is absent because the current worker's
|
|
485
485
|
log already renders in present mode.
|
|
486
486
|
|
|
487
|
-
§worker-initialization-entry **Model-worker initialization is a real `_plurnk` operation turn.** A model worker's first loop begins with one packetless `{ producer="_plurnk", kind="initialization" }` turn submitted through {§turn-ops-admission-path}. Its program — the READ/FIND surveys, opened by one NOTE and closed by another when the surveys run — is recorded as the turn's `ops://` source and executed through {§op-execution-order} exactly as a model's program is; it authors no reasoning and reads none back. The two NOTEs show the card's NOTE practice in the example turn: the opening one carries the aside of the card's first NOTE example, `<!-- plan -->`, and is the worker's plan in numbered steps, each with its purpose: survey what exists, read the Open Message and restate what it asks for and what will show it is done, then do the work
|
|
487
|
+
§worker-initialization-entry **Model-worker initialization is a real `_plurnk` operation turn.** A model worker's first loop begins with one packetless `{ producer="_plurnk", kind="initialization" }` turn submitted through {§turn-ops-admission-path}. Its program — the READ/FIND surveys, opened by one NOTE and closed by another when the surveys run — is recorded as the turn's `ops://` source and executed through {§op-execution-order} exactly as a model's program is; it authors no reasoning and reads none back. The two NOTEs show the card's NOTE practice in the example turn: the opening one carries the aside of the card's first NOTE example, `<!-- plan -->`, and is the worker's plan in numbered steps, each with its purpose: survey what exists, read the Open Message and restate what it asks for and what will show it is done, then do the work saving all new plans, findings and decisions in NOTEs for later turns; the closing one carries the aside of the card's last NOTE example, `<!-- next -->`, and reads `Read and resolve the Open Message.` No emission row is fabricated ({§emission-row}): the first request sees the NOTEs and the surveys' ordinary results, never an assistant-content copy of the program. The initial message arrives as an inbound SEND in the first model turn ({§message-arrival}); initialization never READs it, and neither initialization nor later turns manufacture a task inventory. Every orienting row is structurally classified `_plurnk` and `init`. The namespace surveys and their asides follow {§actor-boundary-catalog-preview}.
|
|
488
488
|
|
|
489
489
|
Incoming messages publish once as inbound SEND rows in the first model turn
|
|
490
490
|
({§message-arrival}); initialization neither READs nor archives them. The turn
|
|
@@ -2409,7 +2409,7 @@ AST: `{ op: "KILL", target, matcher: MatcherBody | null, lineMarker: TextLineMar
|
|
|
2409
2409
|
|
|
2410
2410
|
§log-kill-distillation **A log KILL may say what it keeps.** A body on a `log:///` KILL is the model's distillation of what the KILL retires. Whatever the kill's outcome, the body lands as the model's own NOTE row at the next sequence of the same turn — written after the kill's receipt, so it never falls inside the kill's own selection — carrying `attrs.distilled` with the KILL's target as written, so a distillation is distinguishable from a free NOTE while it renders, weighs and curates exactly as one; the dispatch reports two rows written. A kill that misses keeps its distillation beside its visible receipt: what the model wrote about its environment is recorded for the model to possess and retire, never dropped for where the kill aimed. A whitespace-only body is a plain KILL. The kill's own receipt stays hidden as any successful log KILL's does ({§context-verbs}).
|
|
2411
2411
|
|
|
2412
|
-
KILL deletes context from the **log** (`log:///`, {§packet}). Without a scope it retires the selected rows from the active projection ({§log-history-projection}). With a one-line or inclusive two-line scope it removes only that body's intersecting body-relative physical lines from the readable projection, and the row stays active. An anchor may be one published on that body or one returned by READing its `log:///` coordinate ({§line-anchors}); an anchor absent from the current body selects no line, as with an out-of-bounds numeric line. Scoped KILL is one-way: intervals accumulate, the durable body is untouched, and subsequent access follows {§log-readable-projection}. A scoped KILL on a bodyless row is a friendly 200 no-op with `matched` reported. An emission row is curated whole ({§emission-row}): the unscoped KILL retires it; a line scope on its exact coordinate
|
|
2412
|
+
KILL deletes context from the **log** (`log:///`, {§packet}). Without a scope it retires the selected rows from the active projection ({§log-history-projection}). With a one-line or inclusive two-line scope it removes only that body's intersecting body-relative physical lines from the readable projection, and the row stays active. An anchor may be one published on that body or one returned by READing its `log:///` coordinate ({§line-anchors}); an anchor absent from the current body selects no line, as with an out-of-bounds numeric line. Scoped KILL is one-way: intervals accumulate, the durable body is untouched, and subsequent access follows {§log-readable-projection}. A scoped KILL on a bodyless row is a friendly 200 no-op with `matched` reported. An emission row is curated whole ({§emission-row}): the unscoped KILL retires it; a line scope on its exact coordinate is 422 `emission-curated-whole`, whose recovery names the unscoped KILL; a sweep leaves it intact. A KILL that addresses no row is 404 on an exact coordinate and 204 on a sweep ({§log-curation-folder-idiom}). Selection composes target/glob with an optional heading pattern ({§log-curation-set-selection}).
|
|
2413
2413
|
|
|
2414
2414
|
§log-target-tolerances **The log target reader accepts four near-misses of the taught form and reads each as the one target it can only have meant.** The card teaches `KILL (log:///1/[1-7]/*/{READ,emission})`; none of the following is taught, and no diagnostic text accompanies any of them. A `|` between complete KILL targets, each a coordinate, prefix or glob ({§log-coordinate-hierarchy}) written bare or as a full `log:///` address, is their union: `log:///1/25/2/EDIT|log:///1/24/3/EDIT` retires both rows; a piece that is none of those refuses the whole target, 400 `kill-failed`, naming the piece; a list that selects nothing is the sweep's 204 unless every piece is an exact coordinate, when it is the exact miss's 404. `|` is not a character of a coordinate, and file paths, where it is one, are untouched. For KILL and FIND alike: a bracketed comma list in a numeric slot is a set, `log:///1/[19,24]/**/sh` reading as `log:///1/{19,24}/**/sh`, since a character class can never match a turn number; a non-numeric literal in a numeric slot, after at least one numeric slot, is the leaf with the missing slots `*`, `log:///1/*/READ` reading as `log:///1/*/*/READ`; and `*` segments between the sequence and the leaf are dropped, `log:///1/3/3/*/READ` reading as `log:///1/3/3/READ`, since no coordinate holds a segment there.
|
|
2415
2415
|
|
|
@@ -2461,7 +2461,7 @@ The `## Log` section is a sequence of ordinary Markdown records separated by one
|
|
|
2461
2461
|
| facts | One strict JSON object in stable alphabetical order. | Present only when a fact exists. Asides, scopes, opaque invocation metadata and result facts belong here, not on the H3. |
|
|
2462
2462
|
| body | Coordinate-prefixed lines. | Present when the row is visible. |
|
|
2463
2463
|
|
|
2464
|
-
An emission row's body is not in its record ({§emission-row}); its eligible
|
|
2464
|
+
An emission row's body is not in its record ({§emission-row}); its eligible operations precede their receipts as assistant messages ({§emission-history}). Paired receipts omit duplicated request information under {§paired-receipt}. Patterns retain their literal spelling; a pattern containing a line break is JSON-quoted to keep the H3 on one physical line. Receipts are descriptive records, not reconstructed operation headings. Absent fields are not invented. Every physical body line retains its canonical numeric `N:` or anchored `@hash N:` coordinate, so source text cannot create a record boundary. The section contains records only, with no leading prose or enclosing fence.
|
|
2465
2465
|
|
|
2466
2466
|
§log-mutation-patch **A settled file mutation's row keeps what it did.** When an accepted EDIT,
|
|
2467
2467
|
COPY, MOVE or KILL writes or removes a text member, the file scheme appends the unified diff of
|
|
@@ -2574,7 +2574,7 @@ Authored `metadata` retains its opaque ordered block strings under {§scheme-met
|
|
|
2574
2574
|
records the exact READ coordinates sent without controlling retention. Missing immutable bytes are an
|
|
2575
2575
|
internal integrity failure, never silently dropped content. No ejection message or permanent teaching is
|
|
2576
2576
|
added. These stable curation weights are not provider-token measurements ({§tokenomics-render-weight-budget}).
|
|
2577
|
-
- §packet-token-accounting Every row reports one `tokens` charge on its H3 ({§log-wire-format}): its complete materialized H3, facts, visible body
|
|
2577
|
+
- §packet-token-accounting Every row reports one `tokens` charge on its H3 ({§log-wire-format}): its complete materialized H3, facts, visible body, selected native attachment and any assistant operation owned by that receipt ({§paired-receipt}). Packet accounting measures each actual message once. The completed record is measured to a fixed point, including the accounting field itself. Hidden text is not charged; metadata-only rows still have a reclaimable charge. Source/FIND-item `tokens` measure source content, not the observation's context footprint. A FIND's nonzero `itemsTokenTotal` weighs the complete matched set; a nonzero `returnedItemsTokenTotal` appears only when the returned page differs. All use stable curation weights, not provider tokens or dollars. Native component accounting follows {§packet-attachment-parts}; ordinary addressability and truthful errors follow {§log-wire-format}.
|
|
2578
2578
|
|
|
2579
2579
|
### §retrieval-packet-metadata READ/FIND packet metadata
|
|
2580
2580
|
|
|
@@ -2635,9 +2635,9 @@ Eligible programs supply {§emission-history}; every source remains readable reg
|
|
|
2635
2635
|
| Body | Frozen at announcement: the canonical rendering ({§statement-rendering}) of the admitted content statements, each whole in a closed fence, text beside them as the NOTEs it became ({§outside-text}). All heading operands, scopes, metadata, patterns and asides remain. Unadmitted forms are absent; a recovered native call ({§native-tool-calls}) appears as the operation it was read as; an operation whose receipt failed stays. Reasoning operations retain their own source and normal receipts, never an assistant-content copy. No body text is inspected for nested operations. |
|
|
2636
2636
|
| Wire | The record appears in the log; its complete program supplies the readback projection in {§emission-history}. The frozen body and immutable `ops://` source keep every operation and body ({§turn-source-resources}); an explicit READ returns them. |
|
|
2637
2637
|
| Stability | The projection is fixed from its first appearance, never aged or resized under budget pressure. Already frozen announcements and historical request captures are not rewritten. |
|
|
2638
|
-
| Presentation | Born folded:
|
|
2639
|
-
| Accounting | The row's `tokens` charges only its
|
|
2640
|
-
| Curation | Curated whole ({§log-kill-scope}):
|
|
2638
|
+
| Presentation | Born folded: its log record shows its header. Its operations replay together before their receipts under {§emission-history}; NOTE has its ordinary receipt coordinate, not a legend entry. |
|
|
2639
|
+
| Accounting | The row's `tokens` charges only its own record. Each operation's first surviving receipt owns its replay charge ({§paired-receipt}). An explicit source READ has its own ordinary charge. |
|
|
2640
|
+
| Curation | Curated whole ({§log-kill-scope}): an unscoped KILL retires it. A line scope on its exact coordinate is 422 `emission-curated-whole`, whose recovery names the unscoped KILL; a sweep whose scope would only trim it leaves it intact. |
|
|
2641
2641
|
| Schema | Migration 12 admits `kind="emission"` only on this shape: one per turn, the turn's newest row when written, frozen, and curated whole; it backfills no announcement for earlier turns. FORK copies it with the inherited turns, still naming its writer. |
|
|
2642
2642
|
| Echoes | A worker that repeats the heading in its own text is tolerated ({§fabricated-log-entry}); the digest counts the echoes. |
|
|
2643
2643
|
|
|
@@ -5483,12 +5483,12 @@ adjacent nonempty sections of the same remaining role form one message. With an
|
|
|
5483
5483
|
| Message | Role | Content |
|
|
5484
5484
|
|:--|:--|:--|
|
|
5485
5485
|
| 1 | `system` | the system slot, as rendered |
|
|
5486
|
-
| 2 | `user` | initial retained log records
|
|
5487
|
-
| 3… | alternating `assistant`, `user` |
|
|
5486
|
+
| 2 | `user` | initial retained log records, up to the first replayed turn's first surviving receipt |
|
|
5487
|
+
| 3… | alternating `assistant`, `user` | a replayed turn's operations, then that turn's receipts and the records that follow, up to the next replayed turn; native parts remain beside their READ records ({§packet-attachment-parts}) |
|
|
5488
5488
|
| last | `user` | remaining log records and the current-status footer, from Worker through Open Messages and optional Recap |
|
|
5489
5489
|
|
|
5490
5490
|
Without selected programs, the log and footer coalesce into one user message: system + user.
|
|
5491
|
-
Each
|
|
5491
|
+
Each turn's operations precede its first surviving receipt.
|
|
5492
5492
|
Log records retain their order; interpolation never groups or relocates their bodies.
|
|
5493
5493
|
Stored sections retain their original roles and order: reading evidence
|
|
5494
5494
|
never converts an earlier request into a different envelope.
|
|
@@ -5496,7 +5496,7 @@ never converts an earlier request into a different envelope.
|
|
|
5496
5496
|
The digest's packet artifacts record the sections, and `.wire.json` reconstructs their text-message
|
|
5497
5497
|
envelope ({§share-packet-names}); it is not a serialized HTTP capture.
|
|
5498
5498
|
|
|
5499
|
-
### §emission-history
|
|
5499
|
+
### §emission-history A turn's operations, then its results
|
|
5500
5500
|
|
|
5501
5501
|
| Concern | Contract |
|
|
5502
5502
|
|---|---|
|
|
@@ -5504,15 +5504,27 @@ envelope ({§share-packet-names}); it is not a serialized HTTP capture.
|
|
|
5504
5504
|
| Selection | `latest` considers only the immediately preceding completed model inference turn in this loop, never falling back to an older eligible program. `all` considers every completed model inference turn in this loop, in ascending turn order. |
|
|
5505
5505
|
| Eligibility | An admitted content program with no syntax errors and an active emission row. Rejected attempts, syntactically partial emissions, empty or reasoning-only turns, initialization and other loops supply none. Runtime failures do not disqualify an admitted program. |
|
|
5506
5506
|
| Vocabulary | Executor identities come from that turn's admitted operation evidence ({§packet-stored-shape}), not the current registry. Disabling or removing a runtime never changes its admitted history. |
|
|
5507
|
-
|
|
|
5508
|
-
|
|
|
5509
|
-
| Placement |
|
|
5510
|
-
|
|
|
5511
|
-
|
|
|
5512
|
-
|
|
|
5507
|
+
| Association | Each dispatched content operation records its ordinal in the turn's frozen canonical program. Resource fan-out retains that ordinal on every concrete receipt. Reasoning operations, arrivals and runtime observations have no content ordinal. Never infer association from matching bodies, paths, or row proximity; older rows without this provenance remain self-describing. |
|
|
5508
|
+
| Content | Replay each associated canonical operation, including its complete body, in its own closed fence; a turn's fences are separated by one blank line. No placeholders, body redaction, preview, or inspection of body text for nested operations. A log-curation KILL's distilled body belongs to its independent NOTE, not to its replay. Reasoning operations remain in their own source and receipts. |
|
|
5509
|
+
| Placement | Put one assistant message holding the turn's surviving operations, in program order, immediately before the turn's first surviving receipt; that turn's receipts, fan-out included, and the records between them follow together in the user role, so the model sees each past response as the batch it wrote. Preserve receipt chronology and concrete fan-out targets. No history is collected at the end. `none` adds no assistant section; filtering never makes `latest` fall back. |
|
|
5510
|
+
| Curation | A retired operation row loses its replay; retiring one fan-out receipt leaves the operation with its surviving receipts. A body-trimmed authored row is not replayed: its ordinary receipt shows the remaining body. Retiring the emission row removes that turn's replay, not its operation results or immutable source. No legend or separate NOTE-curation path exists. |
|
|
5511
|
+
| Authority | Core assembles these chronological sections before the trusted whole-list transform ({§packet-extension-transform}); this is presentation of admitted work, not additional execution or inference. |
|
|
5512
|
+
| Capacity | At the hard context wall, omit the selected history whole before suppressing result bodies or native parts ({§context-own-rows-fit}). Unpaired receipts regain their ordinary request facts and authored bodies. Omission lasts through rebuilds of that request; the next request decides afresh. No source, receipt, or stored historical packet changes. |
|
|
5513
|
+
| Accounting | The first paired receipt's displayed curation weight includes its assistant operation once. Packet accounting measures each actual message once. The emission row charges only its own record. |
|
|
5514
|
+
|
|
5515
|
+
§paired-receipt A paired receipt reports execution information, not a second copy of its request.
|
|
5516
|
+
|
|
5517
|
+
| Information | Paired receipt | Unpaired receipt / explicit log READ |
|
|
5518
|
+
|---|---|---|
|
|
5519
|
+
| Authored body | Lives in the complete assistant operation only | Ordinary body projection |
|
|
5520
|
+
| Authored aside, scope, metadata, pattern and addressed path | Supplied by the operation | Self-describing request facts |
|
|
5521
|
+
| Resolved targets that differ from the request, including fan-out and COPY/MOVE glob operands | Retained on each concrete receipt | Retained |
|
|
5522
|
+
| Retrieval and tool output, landed edit windows, errors, result extents, stream/resource identities and statuses | Retained | Retained |
|
|
5523
|
+
|
|
5524
|
+
Suppression is packet-local. Durable requests, results, exact source and recorded historical packets remain complete.
|
|
5513
5525
|
|
|
5514
5526
|
The initial user segment is `log`; later segments are `log/<first-record-coordinate>`.
|
|
5515
|
-
|
|
5527
|
+
Operations are `emission-history/<first-surviving-receipt-coordinate>`. These are durable, unique section
|
|
5516
5528
|
names, not model-facing headings. Only the initial segment has the `Log` header. Section-family
|
|
5517
5529
|
inspection joins segments in recorded order; wire projection uses their individual roles and
|
|
5518
5530
|
positions. Stored packets retain the sections actually sent, including older packet layouts.
|
|
@@ -5526,7 +5538,7 @@ Conditional absence never reorders the surviving default sections.
|
|
|
5526
5538
|
| 1 | system | `definition` | Framework definition; leads the most stable prefix. |
|
|
5527
5539
|
| 2 | system | `system-policy` | Operator policy; empty content is omitted on the wire. |
|
|
5528
5540
|
| 3 | system | `inject` | Present only when operator notes are configured. |
|
|
5529
|
-
| 4–5 | user / assistant | `log` and `emission-history` segments | Append-mostly chronological history: each
|
|
5541
|
+
| 4–5 | user / assistant | `log` and `emission-history` segments | Append-mostly chronological history: each replayed turn's operations immediately precede that turn's results ({§emission-history}). |
|
|
5530
5542
|
| 6 | user | `git` | Per-turn workspace status; empty content is omitted. |
|
|
5531
5543
|
| 7 | user | `budget` | `Context Curation`; omitted when capacity is unknown. |
|
|
5532
5544
|
| 8 | user | `worker` | `Worker`: `{"path": "worker://alice", "parent": <address or null>, "loop": L, "turn": T}`, the actor and the coordinate this packet's response becomes ({§packet-current-turn}). |
|
|
@@ -5960,9 +5972,8 @@ retain distinct contracts and lifetimes.
|
|
|
5960
5972
|
| `parse_advisory` | grammar parser — recoverable near-miss which did not invalidate the parsed statements | YOU SHOULD write the canonical form. | content-offset into the model's emission |
|
|
5961
5973
|
| `search_progress` | repository materialization/indexing lifecycle ({§persistent-search-index}); structured phase, count, and percent; `level: info`, `warn` when a completed pass carries failed members ({§derivation-member-failure}), `error` on terminal failure | none | none |
|
|
5962
5974
|
| `git_inspection_refused` | engine membership — automatic Git inspection refused a supplied repository whose config declares a `filter.*` program ({§membership-git-hermetic}); names the key; `level: warn`, once per workspace until the key changes or clears | none | none |
|
|
5963
|
-
| `continued_without_note` | engine turn — a continuing or parked model turn that admitted no NOTE ({§continued-without-note}); `level: warn` | YOU MUST emit at least one NOTE in every turn. | none |
|
|
5964
5975
|
| `outside_text` | engine turn — text the emission carried outside its operations, discarded ({§outside-text}); `level: warn` | YOU MUST NOT emit anything except whitespace between fenced operations. | none |
|
|
5965
|
-
| `invalid_emission` | engine grammar — a response rejected before dispatch; `level: error` | YOU MUST ONLY emit fenced
|
|
5976
|
+
| `invalid_emission` | engine grammar — a response rejected before dispatch; `level: error` | YOU MUST ONLY emit fenced operation batches; with the parameters, pattern, and terse aside on the fenced operation line. | content-offset of the parser diagnostic, when it has one |
|
|
5966
5977
|
| `output_truncated` | engine capacity or turn — an emission cut at the output allowance ({§output-allowance-notice}); `level: error` when the cut response was rejected, otherwise `warn` | YOU SHOULD emit fewer or shorter operations per turn. | none |
|
|
5967
5978
|
| `provider_warning` | a provider warning: an SDK compatibility note, or native tool calls in a response that declared none; `level: warn` | YOU MUST NOT emit native tool calls. on the native tool calls; none on a compatibility note | none |
|
|
5968
5979
|
| `provider_retry` | a provider stream that failed after output began and was answered by a complete retry; `level: warn` | none | none |
|
|
@@ -5974,8 +5985,6 @@ retain distinct contracts and lifetimes.
|
|
|
5974
5985
|
| `scope_normalized` | engine slicer — a scope normalized to its canonical form; `level: warn` | YOU SHOULD write the normalized scope. | none |
|
|
5975
5986
|
| `edit_merged` | engine slicer — an EDIT resolution rule applied to a batch ({§edit-batch-merges}); `level: warn` | YOU SHOULD verify the merged EDIT before building on it. | none |
|
|
5976
5987
|
|
|
5977
|
-
§continued-without-note **A continuing turn that carried no NOTE is told so.** The card teaches NOTE as the register of every plan, finding, decision and next action; the notice's directive is the command `YOU MUST emit at least one NOTE in every turn.` When a model turn settles at 102 or 202, so the loop continues past it or parks on it, and it admitted no NOTE in its program or from its reasoning ({§reasoning-operations}), the next packet carries one `engine:turn` notice, `continued_without_note`, `level: warn`, with that directive and the message `The turn continued without a NOTE.` It is a notice, never a failure: it mints no row, never counts toward the strike rail, and never ends or alters a loop. A turn that concludes its loop, an empty turn, which carries its own no-operation row, and every non-model turn take none.
|
|
5978
|
-
|
|
5979
5988
|
§notice-callout **A notice speaks in the card's callout form.** Each renders as one alert callout, its level choosing the callout: `> [!CAUTION]` for `error`, `> [!WARNING]` for `warn`, and `> [!NOTE]` for `info`, which no model packet carries. Inside it stand the directive ({§notice-directive}), then the message, any typed position as `@ line:column`, and the kind in brackets; a blank line separates consecutive callouts:
|
|
5980
5989
|
|
|
5981
5990
|
```text
|
|
@@ -6755,7 +6764,7 @@ lists the schemes the workspace registers, and rebuilds the address into nothing
|
|
|
6755
6764
|
| `scope-unsupported` | 400 | A worker SEND takes no scope. |
|
|
6756
6765
|
| `control-address-invalid` | 400 | The operation requires an authority-only worker control address. |
|
|
6757
6766
|
| `named-worker-required` | 400 | A worker deliverable READ requires a named worker. |
|
|
6758
|
-
| `emission-curated-whole` | 422 | An emission
|
|
6767
|
+
| `emission-curated-whole` | 422 | An emission source announcement must be curated whole, without a line scope. |
|
|
6759
6768
|
| `entry-exists` | 409 | An entry already exists at the addressed resource. |
|
|
6760
6769
|
| `invalid-expression` | 400 | The full-text or graph matcher expression is invalid. |
|
|
6761
6770
|
| `delete-target-required` | 400 | KILL requires a target path. |
|
|
@@ -6821,7 +6830,6 @@ lists the schemes the workspace registers, and rebuilds the address into nothing
|
|
|
6821
6830
|
| Nothing is in flight. Continuing. | a WAIT (or a premature terminal) with no live work ({§wait-obligation-matrix}) |
|
|
6822
6831
|
| All Open Messages resolved. Review new results; emit no OPs if finished. | resolved messages with unobserved results ({§loop-completion}) |
|
|
6823
6832
|
| Context exceeds budget. YOU MUST ONLY KILL, MOVE or NOTE this turn. | the over-budget row ({§context-over-budget-row}) |
|
|
6824
|
-
| YOU MUST emit at least one NOTE in every turn. The turn continued without a NOTE. | a continuing or parked model turn without a NOTE ({§continued-without-note}) |
|
|
6825
6833
|
| Each directive in the notice table | a notice of the model's own output ({§notice-directive}) |
|
|
6826
6834
|
| Context window overflow: the packet cannot fit the model's window even as receipts. | the wall ({§context-wall}) |
|
|
6827
6835
|
| No recipient implements the requested interaction. | The worker's owner is not interactive or does not declare the required client tool ({§client-interaction-routing}). |
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"package":"@plurnk/plurnk-service","version":"4.
|
|
1
|
+
{"package":"@plurnk/plurnk-service","version":"4.1.0","revision":"52020b981eb3c10ddab9dc9b91c0e199eb7598ab","dirty":false}
|
|
@@ -21,7 +21,9 @@ export default class AdmittedTurnExecutor {
|
|
|
21
21
|
executeAdmittedTurn({ statements, source, emission, reasoning, sourceModelCallId, origin, workspaceId, workerId, loopId, turnId, fromSequence, maxCommands, failOnOperationError, recoverableParseErrors, emptyTurn, completionAllowed, bare, fit, signal, onDispatch, onSettled, }: {
|
|
22
22
|
statements: readonly PlurnkStatement[];
|
|
23
23
|
source: string | null;
|
|
24
|
-
emission: AdmittedTextSource
|
|
24
|
+
emission: (AdmittedTextSource & {
|
|
25
|
+
statements: readonly PlurnkStatement[];
|
|
26
|
+
}) | null;
|
|
25
27
|
reasoning?: AdmittedTextSource | null;
|
|
26
28
|
sourceModelCallId?: number | null;
|
|
27
29
|
origin: WriterTier;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdmittedTurnExecutor.d.ts","sourceRoot":"","sources":["../../src/core/AdmittedTurnExecutor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAuC,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACrG,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAMzC,OAAO,eAAe,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAA8B,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG9E,OAAO,KAAK,EAAE,cAAc,EAAsC,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAOjJ,MAAM,CAAC,OAAO,OAAO,oBAAoB;;IAQrC,YAAY,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE;QACnE,EAAE,EAAE,EAAE,CAAC;QACP,OAAO,EAAE,cAAc,CAAC;QACxB,OAAO,EAAE,aAAa,CAAC;QACvB,QAAQ,EAAE,UAAU,CAAC;QACrB,UAAU,EAAE,UAAU,CAAC;QACvB,SAAS,EAAE,eAAe,CAAC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AE,WAAW,CAAC;QACrB,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;QAC1C,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;KAC5D,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA6R9B;CAGJ"}
|
|
@@ -145,7 +145,9 @@ export default class AdmittedTurnExecutor {
|
|
|
145
145
|
const execHandler = this.#schemes.get("exec");
|
|
146
146
|
await execHandler?.settleTurnSpawns?.(workerId, turnId, readOptimisticSettlementMs(), signal);
|
|
147
147
|
};
|
|
148
|
+
const emissionIndices = new Map(emission?.statements.map((statement, index) => [statement, index]));
|
|
148
149
|
for (const [index, scheduledStatement] of scheduled.entries()) {
|
|
150
|
+
const emissionIndex = emissionIndices.get(scheduledStatement);
|
|
149
151
|
signal?.throwIfAborted();
|
|
150
152
|
if (!TurnDisposition.is(scheduledStatement) && realCommands >= maxCommands) {
|
|
151
153
|
droppedCount++;
|
|
@@ -211,6 +213,7 @@ export default class AdmittedTurnExecutor {
|
|
|
211
213
|
}
|
|
212
214
|
dispatchResult = await this.#dispatcher.recordBareResult({
|
|
213
215
|
statement,
|
|
216
|
+
emissionIndex,
|
|
214
217
|
workspaceId,
|
|
215
218
|
workerId,
|
|
216
219
|
loopId,
|
|
@@ -224,6 +227,7 @@ export default class AdmittedTurnExecutor {
|
|
|
224
227
|
else {
|
|
225
228
|
const execution = await this.#dispatcher.dispatch({
|
|
226
229
|
statement,
|
|
230
|
+
emissionIndex,
|
|
227
231
|
workspaceId,
|
|
228
232
|
workerId,
|
|
229
233
|
loopId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdmittedTurnExecutor.js","sourceRoot":"","sources":["../../src/core/AdmittedTurnExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,IAAI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QAClD,OAAO;YACH,MAAM,EAAE,UAAU;YAClB,QAAQ;YACR,UAAU;YACV,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC;YACtH,SAAS,EAAE,aAAa;SAC3B,CAAC;IACN,CAAC;CAGJ"}
|
|
@@ -17,6 +17,7 @@ import EntryAddressBinding, { type EntryAddressResolution as PreparedRepresentat
|
|
|
17
17
|
import type EditSequence from "./EditSequence.ts";
|
|
18
18
|
export type DispatchContext = {
|
|
19
19
|
statement: PlurnkStatement;
|
|
20
|
+
emissionIndex?: number;
|
|
20
21
|
workspaceId: number;
|
|
21
22
|
workerId: number;
|
|
22
23
|
loopId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dispatcher.d.ts","sourceRoot":"","sources":["../../src/core/Dispatcher.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,oBAAoB,EAA6E,UAAU,EAAY,eAAe,EAAE,aAAa,EAAgC,MAAM,0BAA0B,CAAC;AACzQ,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAC;AAQ9D,OAAO,KAAK,EAAkB,UAAU,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEzF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC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GAAG,IAAI,CAAC,CA4CzB;IA+BK,iBAAiB,CACnB,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC,GAAG;QAAE,SAAS,EAAE,aAAa,CAAA;KAAE,GACxI,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,MAAM,EAAE,cAAc,CAAA;KAAE,CAAC,CAW1D;IAkCK,gBAAgB,CAClB,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC,GAAG;QAAE,SAAS,EAAE,aAAa,CAAA;KAAE,EAC1E,MAAM,EAAE,cAAc,EACtB,WAAW,EAAE,MAAM,GAAG,IAAI,GAC3B,OAAO,CAAC,cAAc,CAAC,CAYzB;IAqCK,aAAa,CAAC,GAAG,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,UAAU,CAAA;KAAE,EAAE,KAAK,EAAE,SAAS,oBAAoB,EAAE,EAAE,iBAAiB,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAM3M;IA8CK,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAGlD;CAuFJ"}
|
package/dist/core/Dispatcher.js
CHANGED
|
@@ -362,6 +362,7 @@ export default class Dispatcher {
|
|
|
362
362
|
this.#distillations.set(note, context.statement.target.raw);
|
|
363
363
|
const noteContext = { ...context, statement: note, sequence: context.sequence + 1 };
|
|
364
364
|
delete noteContext.fanout;
|
|
365
|
+
delete noteContext.emissionIndex;
|
|
365
366
|
await ResourceBindings.using(this.#schemes, this.#buildSchemeCtx(noteContext), (ctx) => this.#dispatchOne(noteContext, ctx));
|
|
366
367
|
result = Results.assert({ ...result, rowsWritten: (result.rowsWritten ?? 1) + 1 });
|
|
367
368
|
}
|
|
@@ -618,6 +619,7 @@ export default class Dispatcher {
|
|
|
618
619
|
// {§join-blocking-collect}
|
|
619
620
|
const logEntryId = await this.#logWriter.writeLog({
|
|
620
621
|
statement,
|
|
622
|
+
emissionIndex: context.emissionIndex,
|
|
621
623
|
result,
|
|
622
624
|
workspaceId,
|
|
623
625
|
workerId,
|