@cotal-ai/connector-core 0.163.3 → 0.163.5
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/dist/agent.d.ts +3 -0
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +4 -3
- package/dist/agent.js.map +1 -1
- package/dist/agui-wal-path.d.ts +1 -6
- package/dist/agui-wal-path.d.ts.map +1 -1
- package/dist/agui-wal-path.js +2 -6
- package/dist/agui-wal-path.js.map +1 -1
- package/dist/docs-bundle.bin +0 -0
- package/dist/docs-bundle.generated.d.ts +1 -1
- package/dist/docs-bundle.generated.js +6 -6
- package/dist/docs-index.bin +0 -0
- package/dist/event-startup.d.ts +2 -5
- package/dist/event-startup.d.ts.map +1 -1
- package/dist/event-startup.js +10 -27
- package/dist/event-startup.js.map +1 -1
- package/dist/gateway.d.ts +6 -3
- package/dist/gateway.d.ts.map +1 -1
- package/dist/gateway.js +10 -3
- package/dist/gateway.js.map +1 -1
- package/dist/subject-frontier.d.ts +1 -46
- package/dist/subject-frontier.d.ts.map +1 -1
- package/dist/subject-frontier.js +13 -264
- package/dist/subject-frontier.js.map +1 -1
- package/dist/tool-specs.d.ts.map +1 -1
- package/dist/tool-specs.js +8 -2
- package/dist/tool-specs.js.map +1 -1
- package/package.json +3 -3
package/dist/subject-frontier.js
CHANGED
|
@@ -28,22 +28,11 @@
|
|
|
28
28
|
*/
|
|
29
29
|
import { randomUUID } from "node:crypto";
|
|
30
30
|
import { constants } from "node:fs";
|
|
31
|
-
import { lstat, open,
|
|
32
|
-
import { dirname
|
|
31
|
+
import { lstat, open, rename, unlink } from "node:fs/promises";
|
|
32
|
+
import { dirname } from "node:path";
|
|
33
|
+
import { EVENT_SUBJECT_RECORD_VERSION, SubjectFrontierCorruptError, readEventSubjectRecord, recoverEventSubjectTip, recordedEventTip, } from "@cotal-ai/core";
|
|
34
|
+
export { SubjectFrontierCorruptError } from "@cotal-ai/core";
|
|
33
35
|
import { fsyncDir } from "./agui-wal-path.js";
|
|
34
|
-
/** The document on disk. Versioned, because a shape change must be refused rather than misread. */
|
|
35
|
-
const SUBJECT_FRONTIER_VERSION = 1;
|
|
36
|
-
/** Every refusal is one of these, so a caller never mistakes it for an I/O blip. */
|
|
37
|
-
export class SubjectFrontierCorruptError extends Error {
|
|
38
|
-
path;
|
|
39
|
-
invariant;
|
|
40
|
-
constructor(path, invariant, detail) {
|
|
41
|
-
super(`subject frontier ${path}: expected ${invariant} — ${detail}`);
|
|
42
|
-
this.path = path;
|
|
43
|
-
this.invariant = invariant;
|
|
44
|
-
this.name = "SubjectFrontierCorruptError";
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
36
|
/**
|
|
48
37
|
* The record on disk is not the one this view was opened from, so this writer's number is not the
|
|
49
38
|
* one to write.
|
|
@@ -84,48 +73,6 @@ export class FileSubjectFrontier {
|
|
|
84
73
|
get tip() {
|
|
85
74
|
return this.doc.tip;
|
|
86
75
|
}
|
|
87
|
-
/**
|
|
88
|
-
* Read the record's bytes with no follow, or `undefined` when it is absent.
|
|
89
|
-
*
|
|
90
|
-
* SHARED BY `open` AND BY {@link readDiskTip} on purpose, the same reason {@link parse} is
|
|
91
|
-
* shared: the read side has exactly one policy about what a subject.json is allowed to be, and a
|
|
92
|
-
* second copy would drift. `lstat` first so a symlink is refused before any content is read
|
|
93
|
-
* (following it would hand a writer another file's tip through the record's own name); the open
|
|
94
|
-
* itself adds `O_NOFOLLOW` for the TOCTOU window between that `lstat` and the open. The portable
|
|
95
|
-
* `?? 0` shape follows {@link recoverTipFromThreadLogs}: Windows has no `O_NOFOLLOW` and a
|
|
96
|
-
* junction is not a symlink to `lstat`, so on that platform the `lstat` refusal alone is the
|
|
97
|
-
* coverage, exactly as it is for the scan.
|
|
98
|
-
*/
|
|
99
|
-
static async readRecord(path) {
|
|
100
|
-
let st;
|
|
101
|
-
try {
|
|
102
|
-
st = await lstat(path);
|
|
103
|
-
}
|
|
104
|
-
catch (e) {
|
|
105
|
-
if (e.code === "ENOENT")
|
|
106
|
-
return undefined;
|
|
107
|
-
throw e;
|
|
108
|
-
}
|
|
109
|
-
if (st.isSymbolicLink())
|
|
110
|
-
throw new SubjectFrontierCorruptError(path, "a real subject record, never a symlink", "the writer never wrote a symlink");
|
|
111
|
-
try {
|
|
112
|
-
const fh = await open(path, constants.O_RDONLY | (constants.O_NOFOLLOW ?? 0));
|
|
113
|
-
try {
|
|
114
|
-
return await fh.readFile();
|
|
115
|
-
}
|
|
116
|
-
finally {
|
|
117
|
-
await fh.close();
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
catch (e) {
|
|
121
|
-
const code = e.code;
|
|
122
|
-
if (code === "ENOENT")
|
|
123
|
-
return undefined;
|
|
124
|
-
if (code === "ELOOP")
|
|
125
|
-
throw new SubjectFrontierCorruptError(path, "a real subject record, never a symlink", "the record became a symlink between the check and the open");
|
|
126
|
-
throw e;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
76
|
/**
|
|
130
77
|
* Open, or create a virgin record.
|
|
131
78
|
*
|
|
@@ -136,71 +83,21 @@ export class FileSubjectFrontier {
|
|
|
136
83
|
* mechanism exists to remove.
|
|
137
84
|
*/
|
|
138
85
|
static async open(path, opts) {
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
86
|
+
const record = await readEventSubjectRecord(path, opts);
|
|
87
|
+
if (record === undefined) {
|
|
141
88
|
// ABSENT, so this record has never existed. Before calling the principal virgin, look at the
|
|
142
|
-
// thread logs that already sit beside it.
|
|
143
|
-
const recovered = await
|
|
144
|
-
const fresh = new FileSubjectFrontier(path, { v:
|
|
89
|
+
// thread logs that already sit beside it. Recovery is persisted only by this writer.
|
|
90
|
+
const recovered = await recoverEventSubjectTip(dirname(path), opts.principal);
|
|
91
|
+
const fresh = new FileSubjectFrontier(path, { v: EVENT_SUBJECT_RECORD_VERSION, space: opts.space, principal: opts.principal, tip: 0 });
|
|
145
92
|
if (recovered > 0)
|
|
146
93
|
await fresh.write({ ...fresh.doc, tip: recovered });
|
|
147
94
|
return fresh;
|
|
148
95
|
}
|
|
149
|
-
return new FileSubjectFrontier(path,
|
|
96
|
+
return new FileSubjectFrontier(path, record);
|
|
150
97
|
}
|
|
151
98
|
/** Inspect acknowledged state without writing a recovered record or taking the emitter's lock. */
|
|
152
99
|
static async recordedTip(path, opts) {
|
|
153
|
-
|
|
154
|
-
return bytes === undefined
|
|
155
|
-
? FileSubjectFrontier.recoverTipFromThreadLogs(dirname(path), opts.principal)
|
|
156
|
-
: FileSubjectFrontier.parse(path, bytes, opts).tip;
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Bytes to a validated document, or a refusal.
|
|
160
|
-
*
|
|
161
|
-
* SHARED BY `open` AND BY THE RE-READ IN {@link advance} on purpose. A record that went corrupt
|
|
162
|
-
* underneath a live writer has to meet the same wall as one that was corrupt at boot; validating
|
|
163
|
-
* only on the way in would let a writer that opened a good file overwrite a bad one, which
|
|
164
|
-
* destroys the evidence of whatever produced it.
|
|
165
|
-
*/
|
|
166
|
-
static parse(path, bytes, opts) {
|
|
167
|
-
let raw;
|
|
168
|
-
try {
|
|
169
|
-
// FATAL decode, never `readFile(path, "utf8")`: Node's default substitutes U+FFFD for invalid
|
|
170
|
-
// bytes, so a corrupted file arrives as a changed-but-parseable document. For a record whose
|
|
171
|
-
// whole posture is that an unreadable state fails loud, "quietly altered and accepted" is the
|
|
172
|
-
// one outcome it must not produce.
|
|
173
|
-
raw = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
174
|
-
}
|
|
175
|
-
catch {
|
|
176
|
-
throw new SubjectFrontierCorruptError(path, "valid UTF-8", "invalid UTF-8 bytes; refusing rather than substituting U+FFFD");
|
|
177
|
-
}
|
|
178
|
-
if (raw.length === 0)
|
|
179
|
-
throw new SubjectFrontierCorruptError(path, "a non-empty file", "the file is zero bytes — distinct from missing, and never treated as virgin");
|
|
180
|
-
let parsed;
|
|
181
|
-
try {
|
|
182
|
-
parsed = JSON.parse(raw);
|
|
183
|
-
}
|
|
184
|
-
catch (e) {
|
|
185
|
-
throw new SubjectFrontierCorruptError(path, "parseable JSON", e.message);
|
|
186
|
-
}
|
|
187
|
-
const d = parsed;
|
|
188
|
-
if (d?.v !== SUBJECT_FRONTIER_VERSION)
|
|
189
|
-
throw new SubjectFrontierCorruptError(path, `v === ${SUBJECT_FRONTIER_VERSION}`, String(d?.v));
|
|
190
|
-
if (d.space !== opts.space)
|
|
191
|
-
throw new SubjectFrontierCorruptError(path, "space matches", `file=${String(d.space)} caller=${opts.space}`);
|
|
192
|
-
// The principal is the whole key of this record: a file belonging to another identity would
|
|
193
|
-
// hand this writer another principal's tip, which is a fabricated frontier of exactly the kind
|
|
194
|
-
// the write-ahead log refuses for the same reason.
|
|
195
|
-
//
|
|
196
|
-
// A BYTE COMPARE, NOT A DECODED ONE: `assertValidOwnerToken` and `principalKey` fold nothing,
|
|
197
|
-
// and the principal directory is `h(principal)` over the exact bytes, so a decoded or
|
|
198
|
-
// case-folded compare here would accept a key that names a different directory on disk.
|
|
199
|
-
if (d.principal !== opts.principal)
|
|
200
|
-
throw new SubjectFrontierCorruptError(path, "principal matches", `file=${String(d.principal)} caller=${opts.principal}`);
|
|
201
|
-
if (!isFrontierTip(d.tip))
|
|
202
|
-
throw new SubjectFrontierCorruptError(path, "tip is a safe non-negative integer below Number.MAX_SAFE_INTEGER", String(d.tip));
|
|
203
|
-
return { v: d.v, space: d.space, principal: d.principal, tip: d.tip };
|
|
100
|
+
return recordedEventTip(path, opts);
|
|
204
101
|
}
|
|
205
102
|
async advance(seq) {
|
|
206
103
|
return this.serialize(async () => {
|
|
@@ -236,10 +133,7 @@ export class FileSubjectFrontier {
|
|
|
236
133
|
* number, and a number taken from a document that failed its own shape checks is not evidence.
|
|
237
134
|
*/
|
|
238
135
|
async readDiskTip() {
|
|
239
|
-
|
|
240
|
-
if (bytes === undefined)
|
|
241
|
-
return undefined;
|
|
242
|
-
return FileSubjectFrontier.parse(this.path, bytes, { space: this.doc.space, principal: this.doc.principal }).tip;
|
|
136
|
+
return (await readEventSubjectRecord(this.path, { space: this.doc.space, principal: this.doc.principal }))?.tip;
|
|
243
137
|
}
|
|
244
138
|
/**
|
|
245
139
|
* One mutation at a time on THIS instance.
|
|
@@ -259,151 +153,6 @@ export class FileSubjectFrontier {
|
|
|
259
153
|
this.chain = next.catch(() => undefined);
|
|
260
154
|
return next;
|
|
261
155
|
}
|
|
262
|
-
/**
|
|
263
|
-
* Recover the tip from the THREAD LOGS beside this record, for an installation upgrading from a
|
|
264
|
-
* release where this record did not exist.
|
|
265
|
-
*
|
|
266
|
-
* **EVERY THREAD LOG OF THE PRINCIPAL IS SCANNED.** Upgrading restarts the seat, so the first
|
|
267
|
-
* session after the upgrade is a NEW thread with a virgin log, while the sequences the principal
|
|
268
|
-
* was assigned sit in the logs of its PREVIOUS threads. The recovered tip is the highest of them.
|
|
269
|
-
*
|
|
270
|
-
* **ONLY WHEN THE RECORD IS ABSENT, NEVER WHEN IT READS ZERO.** A record holding zero is what
|
|
271
|
-
* abandonment writes after a filtered purge, and re-seeding it from a thread log would silently
|
|
272
|
-
* undo the abandonment and restore an expectation the subject no longer has. Missing and zero are
|
|
273
|
-
* different states and this is the second place in this plane where conflating them is the bug.
|
|
274
|
-
*
|
|
275
|
-
* A sibling that cannot be read or does not parse is FATAL rather than skipped. Skipping it
|
|
276
|
-
* under-counts the tip, which produces a permanent halt later with a message about a moved tip,
|
|
277
|
-
* pointing at everything except the file that was quietly ignored here.
|
|
278
|
-
*/
|
|
279
|
-
static async recoverTipFromThreadLogs(principalDir, principal) {
|
|
280
|
-
let entries;
|
|
281
|
-
try {
|
|
282
|
-
entries = await readdir(principalDir, { withFileTypes: true });
|
|
283
|
-
}
|
|
284
|
-
catch (e) {
|
|
285
|
-
if (e.code === "ENOENT")
|
|
286
|
-
return 0;
|
|
287
|
-
throw e;
|
|
288
|
-
}
|
|
289
|
-
let best = 0;
|
|
290
|
-
for (const ent of entries) {
|
|
291
|
-
// THE SCAN MAY NOT BE WALKED OUTSIDE THE PRINCIPAL DIRECTORY. The writer that creates these
|
|
292
|
-
// directories refuses a symlinked component (`ensureDirNoSymlink`), so a symlink here is a
|
|
293
|
-
// state it cannot produce, and following one would take a tip from a log belonging to some
|
|
294
|
-
// other tree. The create path and the recovery path have to agree about that or the guard is
|
|
295
|
-
// only on the half nobody attacks.
|
|
296
|
-
if (ent.isSymbolicLink())
|
|
297
|
-
throw new SubjectFrontierCorruptError(join(principalDir, ent.name), "a real directory beside the record, never a symlink", "following it would carry this scan outside the principal directory, and the writer that creates these directories refuses a symlinked component for the same reason");
|
|
298
|
-
if (!ent.isDirectory())
|
|
299
|
-
continue; // the record itself, the lock, anything else that is not a thread
|
|
300
|
-
const walPath = join(principalDir, ent.name, "wal.json");
|
|
301
|
-
// The entry check above clears the DIRECTORY and stops there, so a real thread directory
|
|
302
|
-
// holding a symlinked `wal.json` reaches the same foreign log by one more hop. Two layers,
|
|
303
|
-
// and they are not redundant:
|
|
304
|
-
//
|
|
305
|
-
// - `lstat` is the GRADED guard and the portable one. It decides the refusal on every
|
|
306
|
-
// platform, which matters because `O_NOFOLLOW` does not exist on Windows and a guard that
|
|
307
|
-
// silently evaporates there is worse than one that was never claimed.
|
|
308
|
-
// - `O_NOFOLLOW` narrows the window between the `lstat` and the `open`, where the file could
|
|
309
|
-
// be replaced by a link. It applies to the FINAL COMPONENT ONLY, so a thread directory
|
|
310
|
-
// swapped for a link in that same window is still followed; closing that would take an
|
|
311
|
-
// `openat` walk per component, which this scan does not do. NO CELL CAN GRADE EITHER
|
|
312
|
-
// WINDOW, and the mutation config says so rather than registering a mutant that would
|
|
313
|
-
// survive and be explained away.
|
|
314
|
-
let st;
|
|
315
|
-
try {
|
|
316
|
-
st = await lstat(walPath);
|
|
317
|
-
}
|
|
318
|
-
catch (e) {
|
|
319
|
-
const code = e.code;
|
|
320
|
-
if (code === "ENOENT" || code === "ENOTDIR")
|
|
321
|
-
continue; // not a thread directory
|
|
322
|
-
throw e;
|
|
323
|
-
}
|
|
324
|
-
if (st.isSymbolicLink())
|
|
325
|
-
throw new SubjectFrontierCorruptError(walPath, "a real thread log, never a symlink", "following it would read a log this principal's writer never wrote");
|
|
326
|
-
// A HARD link is not a symlink and neither check above sees one, so a log hardlinked into
|
|
327
|
-
// this directory from elsewhere reads as an ordinary file and hands over its tip. The writer
|
|
328
|
-
// creates each log fresh, so more than one name for it is a state it cannot produce, which
|
|
329
|
-
// is the same reason the symlink is refused rather than resolved.
|
|
330
|
-
if (st.nlink > 1)
|
|
331
|
-
throw new SubjectFrontierCorruptError(walPath, "a thread log with exactly one name", `it has ${st.nlink}, so the same file is reachable from outside this principal's directory and its tip is not this principal's to read`);
|
|
332
|
-
let raw;
|
|
333
|
-
try {
|
|
334
|
-
const fh = await open(walPath, constants.O_RDONLY | (constants.O_NOFOLLOW ?? 0));
|
|
335
|
-
try {
|
|
336
|
-
raw = await fh.readFile();
|
|
337
|
-
}
|
|
338
|
-
finally {
|
|
339
|
-
await fh.close();
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
catch (e) {
|
|
343
|
-
const code = e.code;
|
|
344
|
-
if (code === "ENOENT" || code === "ENOTDIR")
|
|
345
|
-
continue;
|
|
346
|
-
if (code === "ELOOP")
|
|
347
|
-
throw new SubjectFrontierCorruptError(walPath, "a real thread log, never a symlink", "the file became a symlink between the check and the open");
|
|
348
|
-
throw e;
|
|
349
|
-
}
|
|
350
|
-
let doc;
|
|
351
|
-
try {
|
|
352
|
-
doc = JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(raw));
|
|
353
|
-
}
|
|
354
|
-
catch (e) {
|
|
355
|
-
throw new SubjectFrontierCorruptError(walPath, "a readable thread log while recovering the subject tip", e.message);
|
|
356
|
-
}
|
|
357
|
-
// A log under another principal's directory is not ours to read a tip from. It cannot happen
|
|
358
|
-
// in the shipped layout, which is why it is checked: a recovery component must refuse the
|
|
359
|
-
// states its own writer cannot produce.
|
|
360
|
-
if (doc.principal !== principal)
|
|
361
|
-
throw new SubjectFrontierCorruptError(walPath, `a thread log for principal ${principal}`, `found ${String(doc.principal)}`);
|
|
362
|
-
const seq = doc.frontier?.lastSubjectSeq;
|
|
363
|
-
if (!isSafeNonNegInt(seq))
|
|
364
|
-
throw new SubjectFrontierCorruptError(walPath, "frontier.lastSubjectSeq is a safe non-negative integer", String(seq));
|
|
365
|
-
if (seq > best)
|
|
366
|
-
best = seq;
|
|
367
|
-
// AN ACKED PENDING HOLDS A SEQUENCE THE BROKER ASSIGNED AND THE FRONTIER DOES NOT.
|
|
368
|
-
//
|
|
369
|
-
// A log that took an ack and died before folding keeps the assigned sequence in
|
|
370
|
-
// `pending.ackSeq`, which `EventWal` requires to be strictly AHEAD of
|
|
371
|
-
// `frontier.lastSubjectSeq` (that is the crash window the acked state exists to survive).
|
|
372
|
-
// Reading the frontier alone recovers the older number, persists it, and hands the next
|
|
373
|
-
// publish an expectation the subject passed some time ago. The session that could fold it
|
|
374
|
-
// will never run again, because upgrading forks the session id, so this log is the only
|
|
375
|
-
// place that sequence survives. Under-counting here is the same defect this file fixes,
|
|
376
|
-
// reintroduced at the one boundary the file exists for.
|
|
377
|
-
const pending = doc.pending;
|
|
378
|
-
if (pending && pending.state === "acked") {
|
|
379
|
-
const acked = pending.ackSeq;
|
|
380
|
-
if (!isSafeNonNegInt(acked))
|
|
381
|
-
throw new SubjectFrontierCorruptError(walPath, "an acked pending carries a safe non-negative ackSeq", String(acked));
|
|
382
|
-
if (!(acked > seq))
|
|
383
|
-
throw new SubjectFrontierCorruptError(walPath, "an acked pending is ahead of the frontier it will fold into", `ackSeq=${acked} frontier.lastSubjectSeq=${seq}`);
|
|
384
|
-
if (acked > best)
|
|
385
|
-
best = acked;
|
|
386
|
-
}
|
|
387
|
-
// A `sent_unacked` PENDING IS PASSED OVER DELIBERATELY, AND NOT BECAUSE NOTHING WAS ASSIGNED.
|
|
388
|
-
//
|
|
389
|
-
// Whether the broker assigned a sequence to such a frame is the one thing the state does not
|
|
390
|
-
// know: the frame went out and the acknowledgement was never observed, so the subject may or
|
|
391
|
-
// may not have taken it. What is certain is structural and about the log rather than the
|
|
392
|
-
// broker: `sent_unacked` carries no `ackSeq` at all, and a document that pairs the two is
|
|
393
|
-
// refused as contradicting its own tag. There is therefore no sequence in it to fold, and
|
|
394
|
-
// inventing one, `frontier.lastSubjectSeq + 1` for instance, would assert an assignment
|
|
395
|
-
// nobody saw.
|
|
396
|
-
//
|
|
397
|
-
// The residue is real and is left standing on purpose. If the broker did assign a sequence to
|
|
398
|
-
// that frame, this scan recovers a number one short of the tip, and the next publish halts on
|
|
399
|
-
// a moved tip rather than publishing into a gap or overwriting anything. That is the safe
|
|
400
|
-
// direction of the two, it is the halt the emitter's `cas-loss` message explains, and its
|
|
401
|
-
// remedy is the one that message names. The owning session would have republished the frozen
|
|
402
|
-
// id and let the broker deduplicate, but that session is exactly what an upgrade forks away
|
|
403
|
-
// from, which is why the case reaches here at all.
|
|
404
|
-
}
|
|
405
|
-
return best;
|
|
406
|
-
}
|
|
407
156
|
async reset() {
|
|
408
157
|
// UNCONDITIONAL, and deliberately not re-read. Abandonment is the one thing that legitimately
|
|
409
158
|
// takes the tip backwards, so a record that moved under this writer is not an obstacle to it:
|
|
@@ -427,7 +176,7 @@ export class FileSubjectFrontier {
|
|
|
427
176
|
// A planted link at the record's name must never receive the rename: that would leave the
|
|
428
177
|
// link's TARGET holding the stale document while this principal's own history moved on.
|
|
429
178
|
// Absence is fine (creation stays legal); only a symlink is refused, the same class {@link
|
|
430
|
-
//
|
|
179
|
+
// readEventSubjectRecord} throws on the read side, so the create and read paths agree about links here too.
|
|
431
180
|
let st;
|
|
432
181
|
try {
|
|
433
182
|
st = await lstat(this.path);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subject-frontier.js","sourceRoot":"","sources":["../src/subject-frontier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OA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AE,MAAM,EAAE,OAAO,GAAG,MAAM,CAYvJ;AAED;;;;;uEAKuE;AACvE,wBAAgB,WAAW,CAAC,CAAC,EAAE;IAC7B,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACpF,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;CAC9D,GAAG,MAAM,CAWT;AAED;0EAC0E;AAC1E,eAAO,MAAM,iBAAiB,sUACuS,CAAC;AA8BtU;;;;;;qEAMqE;AACrE,wBAAgB,cAAc,CAC5B,MAAM,EAAE,WAAW,EACnB,MAAM,SAAc,EACpB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,EACvB,OAAO,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,EAC7B,cAAc,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,GACxC,aAAa,EAAE,CA85CjB"}
|
package/dist/tool-specs.js
CHANGED
|
@@ -266,7 +266,13 @@ export function renderInbox(opts) {
|
|
|
266
266
|
const budget = opts.budget ?? INBOX_WINDOW_CHARS;
|
|
267
267
|
const peek = opts.peek ?? false;
|
|
268
268
|
const warning = opts.warning ?? "";
|
|
269
|
-
const rank = (i) =>
|
|
269
|
+
const rank = (i) => {
|
|
270
|
+
// A peek does not clear, so an old direct message that fills the window must not hide a current
|
|
271
|
+
// mention. A clearing read keeps direct messages ahead of channel traffic.
|
|
272
|
+
if (peek && i.mentionsMe && !i.historical)
|
|
273
|
+
return -1;
|
|
274
|
+
return i.kind !== "channel" ? 0 : i.historical ? 2 : 1;
|
|
275
|
+
};
|
|
270
276
|
const ordered = [...opts.items].sort((a, b) => rank(a) - rank(b)); // stable: receive order within a rank
|
|
271
277
|
// WHY THIS AGREES WITH THE ASSEMBLED REPLY, and what would break the agreement. Deliverability is
|
|
272
278
|
// decided here and delivery is decided by `assemble`, and the two can only agree because both
|
|
@@ -1002,7 +1008,7 @@ export function cotalToolSpecs(config, source = "connector", env, offered, empty
|
|
|
1002
1008
|
{
|
|
1003
1009
|
name: "cotal_inbox",
|
|
1004
1010
|
title: "Cotal: read incoming messages",
|
|
1005
|
-
description: "Read messages other agents have sent you since you last checked: channel broadcasts, direct messages, and role requests. It clears ONLY what it actually returns to you (nothing at all when peek is true), and one call carries at most a receivable window: direct messages and role requests first, then channel traffic, with replayed history last. Anything that does not fit stays buffered and is named in the reply, so call again for the next batch. A single message larger than one whole response is delivered in parts: once no smaller mail is waiting, each call carries the next part of it, a peek shows the current part without moving on, and the message is cleared only after its last part goes out. In focus mode it also pulls back the channel chatter held since you entered focus. If exclusion tracking makes a channel's focus recall unsafe, new non-historical mentions on that unmuted channel wake to pull their buffered bodies, never automatic injection, including on quiet channels. Ambient handling is unchanged, and the incomplete-recall warning still names unsafe channels. " +
|
|
1011
|
+
description: "Read messages other agents have sent you since you last checked: channel broadcasts, direct messages, and role requests. It clears ONLY what it actually returns to you (nothing at all when peek is true), and one call carries at most a receivable window: direct messages and role requests first, then channel traffic, with replayed history last. A peek shows a current mention of you before older direct messages that fill that window, and still clears nothing. Anything that does not fit stays buffered and is named in the reply, so call again for the next batch. A single message larger than one whole response is delivered in parts: once no smaller mail is waiting, each call carries the next part of it, a peek shows the current part without moving on, and the message is cleared only after its last part goes out. In focus mode it also pulls back the channel chatter held since you entered focus. If exclusion tracking makes a channel's focus recall unsafe, new non-historical mentions on that unmuted channel wake to pull their buffered bodies, never automatic injection, including on quiet channels. Ambient handling is unchanged, and the incomplete-recall warning still names unsafe channels. " +
|
|
1006
1012
|
"When the connection is not ready, the reply says so and still returns locally buffered messages; an empty local buffer does not prove no new mesh messages exist. Exhausted channel drop tracking is reported even with an empty inbox; non-historical mentions on unmuted channels wake to pull their buffered bodies while ambient traffic stays suppressed. " +
|
|
1007
1013
|
"If your stored copies reached their limit, 1000 unless an operator set another, the reply says earlier channel posts may have been dropped and that channel history may still hold them. A peek keeps that line for the next read.",
|
|
1008
1014
|
schema: {
|