@cotal-ai/runtime 0.57.0 → 0.59.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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/journal-store.d.ts +27 -2
- package/dist/journal-store.d.ts.map +1 -1
- package/dist/journal-store.js +42 -2
- package/dist/journal-store.js.map +1 -1
- package/dist/mesh-handler.d.ts +23 -19
- package/dist/mesh-handler.d.ts.map +1 -1
- package/dist/mesh-handler.js +120 -32
- package/dist/mesh-handler.js.map +1 -1
- package/dist/resolve-checkpoint.d.ts +51 -0
- package/dist/resolve-checkpoint.d.ts.map +1 -1
- package/dist/resolve-checkpoint.js +121 -3
- package/dist/resolve-checkpoint.js.map +1 -1
- package/dist/run-command.d.ts +1 -1
- package/dist/run-command.d.ts.map +1 -1
- package/dist/run-command.js +103 -116
- package/dist/run-command.js.map +1 -1
- package/dist/run-driver.d.ts +17 -0
- package/dist/run-driver.d.ts.map +1 -1
- package/dist/run-driver.js +54 -13
- package/dist/run-driver.js.map +1 -1
- package/dist/run-effect-host.d.ts +1 -0
- package/dist/run-effect-host.d.ts.map +1 -1
- package/dist/run-effect-host.js +1 -0
- package/dist/run-effect-host.js.map +1 -1
- package/dist/run-host.d.ts +11 -2
- package/dist/run-host.d.ts.map +1 -1
- package/dist/run-host.js +97 -12
- package/dist/run-host.js.map +1 -1
- package/dist/run-scope-authority.d.ts +16 -1
- package/dist/run-scope-authority.d.ts.map +1 -1
- package/dist/run-scope-authority.js +51 -10
- package/dist/run-scope-authority.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
export { RunJournalStore, RunJournalUnavailable } from "./journal-store.js";
|
|
12
12
|
export { startRun, driveRun, PauseToken, type RunLease, type DriveRequest, type DriveOutcome, type AdoptingHandler, type SeatAdoptingHandler } from "./run-driver.js";
|
|
13
13
|
export { MeshHandler, EpfSettleWatcher, CheckpointAnswerMissing, waitConsumerName, waitConsumerConfig, rearmOutstandingPauses, outstandingPauseTokens, readSupervise, spawnArgs, canonicalCwd, type MeshHandlerBinding, type SettleWatcher, } from "./mesh-handler.js";
|
|
14
|
-
export { resolveCheckpoint, locateOpenCheckpoint, answerOpenCheckpoint, openCheckpointToken, CheckpointNotOpen, type OpenCheckpoint, type ResolveCheckpointDeps, type ResolveCheckpointRequest, type ResolveCheckpointResult, } from "./resolve-checkpoint.js";
|
|
14
|
+
export { resolveCheckpoint, locateOpenCheckpoint, answerOpenCheckpoint, openCheckpointToken, locateAcceptedAnswer, amendAcceptedAnswer, settledPauseToken, CheckpointNotOpen, CheckpointNotAmendable, type AcceptedAnswer, type OpenCheckpoint, type ResolveCheckpointDeps, type ResolveCheckpointRequest, type ResolveCheckpointResult, } from "./resolve-checkpoint.js";
|
|
15
15
|
export { renderRunContext, UnrenderableNotice, type RunContextRender } from "./run-context.js";
|
|
16
16
|
export { migrateRun, commitMigration, migrationSeats, MigrationNotAdmissible, type MigrateRequest, type MigrateReport, type MigrateOrphan, type MigrateOverrides, type MigrateDivergence, type OrphanVerdict, } from "./migrate.js";
|
|
17
17
|
export { planFork, commitFork, ForkNotAdmissible, CutJournal, CutReached, type ForkRequest, type ForkPlan, type ForkRefusal, type ForkCommitResult, } from "./fork.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,KAAK,mBAAmB,EAAE,MAAM,i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ailable } from "./journal-store.js";
|
|
12
12
|
export { startRun, driveRun, PauseToken } from "./run-driver.js";
|
|
13
13
|
export { MeshHandler, EpfSettleWatcher, CheckpointAnswerMissing, waitConsumerName, waitConsumerConfig, rearmOutstandingPauses, outstandingPauseTokens, readSupervise, spawnArgs, canonicalCwd, } from "./mesh-handler.js";
|
|
14
|
-
export { resolveCheckpoint, locateOpenCheckpoint, answerOpenCheckpoint, openCheckpointToken, CheckpointNotOpen, } from "./resolve-checkpoint.js";
|
|
14
|
+
export { resolveCheckpoint, locateOpenCheckpoint, answerOpenCheckpoint, openCheckpointToken, locateAcceptedAnswer, amendAcceptedAnswer, settledPauseToken, CheckpointNotOpen, CheckpointNotAmendable, } from "./resolve-checkpoint.js";
|
|
15
15
|
export { renderRunContext, UnrenderableNotice } from "./run-context.js";
|
|
16
16
|
export { migrateRun, commitMigration, migrationSeats, MigrationNotAdmissible, } from "./migrate.js";
|
|
17
17
|
export { planFork, commitFork, ForkNotAdmissible, CutJournal, CutReached, } from "./fork.js";
|
|
@@ -31,25 +31,26 @@ const runCommand = {
|
|
|
31
31
|
kind: "command",
|
|
32
32
|
name: "run",
|
|
33
33
|
group: "Manager",
|
|
34
|
-
summary: "operate workflow runs — start, resume, list, inspect, answer (hosted by the manager), revoke",
|
|
35
|
-
usage: "run <start --file <program> [--timeout <dur>] | resume <runId> [--local --file <program>] | ps [--endpoint <ep>] | journal <runId> [--endpoint <ep>] | answer <runId> <stepKey> [--value <json>] [--artifact <ref>] [--endpoint <ep>] [--local --by <who>] | revoke <runId> --local --by <who> --reason <text>> [--local [--admit-read <channels> --admit-publish <channels>]]",
|
|
34
|
+
summary: "operate workflow runs — start, resume, list, inspect, answer, amend (hosted by the manager), revoke",
|
|
35
|
+
usage: "run <start --file <program> [--timeout <dur>] | resume <runId> [--local --file <program>] | ps [--endpoint <ep>] [--json] | journal <runId> [--endpoint <ep>] [--json] | answer <runId> <stepKey> [--value <json>] [--artifact <ref>] [--endpoint <ep>] [--local --by <who>] | amend <runId> <stepKey> [--value <json>] [--artifact <ref>] [--endpoint <ep>] [--local --by <who>] | revoke <runId> --local --by <who> --reason <text>> [--local [--admit-read <channels> --admit-publish <channels>]]",
|
|
36
36
|
flags: [
|
|
37
37
|
...targetFlags,
|
|
38
38
|
{ name: "file", type: "string", short: "f", value: "<program>", description: "cotal-lang program source (start; resume --local when no program is recorded)" },
|
|
39
39
|
{ name: "local", type: "boolean", description: "drive in this process instead of on the manager (bare broker, or a run the manager cannot host)" },
|
|
40
40
|
{ name: "admit-read", type: "string", value: "<channels>", description: "start --local: the channels the run may read, comma-separated patterns or `none` (required; SPEC 14.8)" },
|
|
41
41
|
{ name: "admit-publish", type: "string", value: "<channels>", description: "start --local: the channels the run may post to, comma-separated patterns or `none` (required; SPEC 14.8)" },
|
|
42
|
-
{ name: "endpoint", type: "string", value: "<ep>", description: "endpoint the run record lives under (ps, journal, answer; default: manager)" },
|
|
42
|
+
{ name: "endpoint", type: "string", value: "<ep>", description: "endpoint the run record lives under (ps, journal, answer, amend; default: manager)" },
|
|
43
43
|
{ name: "timeout", type: "string", value: "<dur>", description: "default checkpoint timeout for this drive (default: 1h)" },
|
|
44
|
-
{ name: "by", type: "string", value: "<who>", description: "who is answering or revoking (answer --local, revoke; the manager records the caller for a hosted answer)" },
|
|
44
|
+
{ name: "by", type: "string", value: "<who>", description: "who is answering, amending or revoking (answer --local, amend --local, revoke; the manager records the caller for a hosted answer)" },
|
|
45
45
|
{ name: "reason", type: "string", value: "<text>", description: "revoke: why the run's admission is revoked, recorded on the marker (required)" },
|
|
46
|
-
{ name: "value", type: "string", value: "<json>", description: "checkpoint answer payload as JSON (answer)" },
|
|
47
|
-
{ name: "artifact", type: "string", value: "<ref>", description: "artifact reference attached to the answer (answer)" },
|
|
46
|
+
{ name: "value", type: "string", value: "<json>", description: "checkpoint answer payload as JSON (answer, amend)" },
|
|
47
|
+
{ name: "artifact", type: "string", value: "<ref>", description: "artifact reference attached to the answer (answer, amend)" },
|
|
48
48
|
{ name: "adopt", type: "string", value: "<handle>", description: "REFUSED by `migrate`: it decides what a commit does with an orphan, and that verb only checks" },
|
|
49
49
|
{ name: "release", type: "string", value: "<handle>", description: "REFUSED by `migrate`: it decides what a commit does with an orphan, and that verb only checks" },
|
|
50
50
|
{ name: "discard-approvals", type: "boolean", description: "REFUSED by `migrate`: it decides what a commit does with a recorded decision, and that verb only checks" },
|
|
51
|
+
{ name: "json", type: "boolean", description: "ps, journal: machine-readable, one JSON object per row per line (headers and errors go to stderr)" },
|
|
51
52
|
],
|
|
52
|
-
positionals: "<start|resume|ps|journal|answer|revoke|migrate> …",
|
|
53
|
+
positionals: "<start|resume|ps|journal|answer|amend|revoke|migrate> …",
|
|
53
54
|
run: (args) => runWorkflowCommand(args),
|
|
54
55
|
};
|
|
55
56
|
registry.register(runCommand);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAuG,MAAM,iBAAiB,CAAC;AACtK,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,EACb,SAAS,EACT,YAAY,GAGb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,QAAQ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AAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,+FAA+F,EAAE;QAClK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,+FAA+F,EAAE;QACpK,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,yGAAyG,EAAE;QACtK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,mGAAmG,EAAE;KACpJ;IACD,WAAW,EAAE,yDAAyD;IACtE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC;CACxC,CAAC;AAEF,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC"}
|
package/dist/journal-store.d.ts
CHANGED
|
@@ -21,7 +21,24 @@
|
|
|
21
21
|
* throws: the interpreter would carry on driving a run this process no longer speaks for.
|
|
22
22
|
*/
|
|
23
23
|
import type { JournalEntry, JournalStore } from "@cotal-ai/lang";
|
|
24
|
-
import {
|
|
24
|
+
import type { JetStreamClient, JetStreamManager } from "@nats-io/jetstream";
|
|
25
|
+
import { RunJournalAppender, type RunJournalReplay } from "@cotal-ai/core";
|
|
26
|
+
/**
|
|
27
|
+
* How many replays a drive makes of its own journal before a lost round fails the read. It is the
|
|
28
|
+
* takeover's bound: `activateRun` tries three rounds by default, and the driver hands that loop no
|
|
29
|
+
* `beforeRetry`, so a lost round there is replayed at once with no pause in between.
|
|
30
|
+
*/
|
|
31
|
+
export declare const OWN_REPLAY_ATTEMPTS = 3;
|
|
32
|
+
/**
|
|
33
|
+
* Replay a run's journal under the drive's own takeover id, replaying again after a lost round.
|
|
34
|
+
*
|
|
35
|
+
* `RunJournalReplayRaced` says another reader held the replay durable. Nothing is missing from the
|
|
36
|
+
* journal and the run is not lost, which is why `activateRun` replays again on it. A drive reads
|
|
37
|
+
* the same durable at every effect and at every poll of a parked pause, so its reads get the same
|
|
38
|
+
* bounded retry, and a lost round is not handed to the program as the step's own `L4000`. Any other
|
|
39
|
+
* failure, and the race on the last attempt, is raised unchanged.
|
|
40
|
+
*/
|
|
41
|
+
export declare function replayOwnJournal(js: JetStreamClient, jsm: JetStreamManager, space: string, runId: string, takeoverId: string): Promise<RunJournalReplay>;
|
|
25
42
|
/**
|
|
26
43
|
* A run whose journal writer is finished, offered to the interpreter as a durability failure.
|
|
27
44
|
*
|
|
@@ -45,7 +62,15 @@ export declare class RunJournalUnavailable extends Error {
|
|
|
45
62
|
}
|
|
46
63
|
export declare class RunJournalStore implements JournalStore {
|
|
47
64
|
private readonly appender;
|
|
48
|
-
|
|
65
|
+
private readonly anchor?;
|
|
66
|
+
private anchoring;
|
|
67
|
+
/**
|
|
68
|
+
* `anchor`, when given, is called with the journal's head after every append and awaited before
|
|
69
|
+
* the append resolves, so the entry is covered by an anchor outside the journal before the
|
|
70
|
+
* language acts on it. The calls run one at a time in append order. A failed anchor fails this
|
|
71
|
+
* append and every later one, which the language reads as L5010.
|
|
72
|
+
*/
|
|
73
|
+
constructor(appender: RunJournalAppender, anchor?: ((journalHigh: number) => Promise<void>) | undefined);
|
|
49
74
|
/** True once the underlying appender is finished. A driver polls this to stop early rather than
|
|
50
75
|
* discovering it on the next entry — the interpreter has no such concept and does not need one. */
|
|
51
76
|
get isFinished(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal-store.d.ts","sourceRoot":"","sources":["../src/journal-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"journal-store.d.ts","sourceRoot":"","sources":["../src/journal-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,O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ppender, RunSuperseded, RunJournalStalled, RunJournalReplayRaced, replayRunJournal, } from "@cotal-ai/core";
|
|
2
|
+
/**
|
|
3
|
+
* How many replays a drive makes of its own journal before a lost round fails the read. It is the
|
|
4
|
+
* takeover's bound: `activateRun` tries three rounds by default, and the driver hands that loop no
|
|
5
|
+
* `beforeRetry`, so a lost round there is replayed at once with no pause in between.
|
|
6
|
+
*/
|
|
7
|
+
export const OWN_REPLAY_ATTEMPTS = 3;
|
|
8
|
+
/**
|
|
9
|
+
* Replay a run's journal under the drive's own takeover id, replaying again after a lost round.
|
|
10
|
+
*
|
|
11
|
+
* `RunJournalReplayRaced` says another reader held the replay durable. Nothing is missing from the
|
|
12
|
+
* journal and the run is not lost, which is why `activateRun` replays again on it. A drive reads
|
|
13
|
+
* the same durable at every effect and at every poll of a parked pause, so its reads get the same
|
|
14
|
+
* bounded retry, and a lost round is not handed to the program as the step's own `L4000`. Any other
|
|
15
|
+
* failure, and the race on the last attempt, is raised unchanged.
|
|
16
|
+
*/
|
|
17
|
+
export async function replayOwnJournal(js, jsm, space, runId, takeoverId) {
|
|
18
|
+
for (let attempt = 1;; attempt += 1) {
|
|
19
|
+
try {
|
|
20
|
+
return await replayRunJournal(js, jsm, space, runId, takeoverId);
|
|
21
|
+
}
|
|
22
|
+
catch (e) {
|
|
23
|
+
if (!(e instanceof RunJournalReplayRaced) || attempt >= OWN_REPLAY_ATTEMPTS)
|
|
24
|
+
throw e;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
2
28
|
/**
|
|
3
29
|
* A run whose journal writer is finished, offered to the interpreter as a durability failure.
|
|
4
30
|
*
|
|
@@ -28,8 +54,17 @@ export class RunJournalUnavailable extends Error {
|
|
|
28
54
|
}
|
|
29
55
|
export class RunJournalStore {
|
|
30
56
|
appender;
|
|
31
|
-
|
|
57
|
+
anchor;
|
|
58
|
+
anchoring = Promise.resolve();
|
|
59
|
+
/**
|
|
60
|
+
* `anchor`, when given, is called with the journal's head after every append and awaited before
|
|
61
|
+
* the append resolves, so the entry is covered by an anchor outside the journal before the
|
|
62
|
+
* language acts on it. The calls run one at a time in append order. A failed anchor fails this
|
|
63
|
+
* append and every later one, which the language reads as L5010.
|
|
64
|
+
*/
|
|
65
|
+
constructor(appender, anchor) {
|
|
32
66
|
this.appender = appender;
|
|
67
|
+
this.anchor = anchor;
|
|
33
68
|
}
|
|
34
69
|
/** True once the underlying appender is finished. A driver polls this to stop early rather than
|
|
35
70
|
* discovering it on the next entry — the interpreter has no such concept and does not need one. */
|
|
@@ -55,6 +90,11 @@ export class RunJournalStore {
|
|
|
55
90
|
}
|
|
56
91
|
throw e;
|
|
57
92
|
}
|
|
93
|
+
const anchor = this.anchor;
|
|
94
|
+
if (anchor !== undefined) {
|
|
95
|
+
this.anchoring = this.anchoring.then(() => anchor(this.appender.journalHigh));
|
|
96
|
+
await this.anchoring;
|
|
97
|
+
}
|
|
58
98
|
}
|
|
59
99
|
}
|
|
60
100
|
//# sourceMappingURL=journal-store.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal-store.js","sourceRoot":"","sources":["../src/journal-store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"journal-store.js","sourceRoot":"","sources":["../src/journal-store.ts"],"names":[],"mappings":"AAwBA,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,GAEjB,MAAM,gBAAgB,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAErC;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,EAAmB,EACnB,GAAqB,EACrB,KAAa,EACb,KAAa,EACb,UAAkB;IAElB,KAAK,IAAI,OAAO,GAAG,CAAC,GAAI,OAAO,IAAI,CAAC,EAAE,CAAC;QACrC,IAAI,CAAC;YACH,OAAO,MAAM,gBAAgB,CAAC,EAAE,EAAE,GAAG,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CAAC,QAAQ,CAAC,GAAG,qEAAqE,CAC3J,CAAC;QACJ,CAAC;QACD,IAAI,CAAC;YACH,8FAA8F;YAC9F,6FAA6F;YAC7F,0DAA0D;YAC1D,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;QACtE,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,IAAI,CAAC,YAAY,aAAa,IAAI,CAAC,YAAY,iBAAiB,EAAE,CAAC;gBACjE,MAAM,IAAI,qBAAqB,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YACxD,CAAC;YACD,MAAM,CAAC,CAAC;QACV,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;YAC9E,MAAM,IAAI,CAAC,SAAS,CAAC;QACvB,CAAC;IACH,CAAC;CACF"}
|
package/dist/mesh-handler.d.ts
CHANGED
|
@@ -269,6 +269,11 @@ export declare class MeshHandler {
|
|
|
269
269
|
/** One handoff yield's memo write: most-recent-wins across different names, ambiguous when a
|
|
270
270
|
* pending handoff to the SAME name is already waiting (lang §5.3 — ambiguity records nothing). */
|
|
271
271
|
private recordHandoffMemo;
|
|
272
|
+
/**
|
|
273
|
+
* Despawn the seats of a run that completed (the driver's `releaseSeats` is the caller). On the
|
|
274
|
+
* mediated path the run's own journal decides which seats those are, never the entries handed in.
|
|
275
|
+
*/
|
|
276
|
+
release(entries: readonly JournalEntry[]): Promise<void>;
|
|
272
277
|
/**
|
|
273
278
|
* End the external state of a cancelled scope's LOSERS: the world half of the discharge the
|
|
274
279
|
* scope entry's `cancel.issued` records (§7.6, and the driver's `dischargeCancellations` is the
|
|
@@ -404,11 +409,13 @@ export declare class MeshHandler {
|
|
|
404
409
|
* "down" here and "down or gone" at a conclave join are one definition. No live row carrying
|
|
405
410
|
* the name AND this incarnation is the death, with the reason split by what the name shows now:
|
|
406
411
|
* `"lapsed"` when nothing live holds the name any more, `"superseded"` when a live row holds it
|
|
407
|
-
* under a DIFFERENT incarnation — this incarnation dead with a successor already up.
|
|
412
|
+
* under a DIFFERENT incarnation — this incarnation dead with a successor already up. A lapse is
|
|
413
|
+
* read as the death only once the row has stayed absent for {@link LAPSE_CONFIRM_MS}: a seat whose
|
|
414
|
+
* connector stalled past the row's TTL renews it under the same uid, and that seat is not down.
|
|
408
415
|
*
|
|
409
|
-
* NOTHING BINDS, because a death is re-observable where a matched message is not: a
|
|
410
|
-
*
|
|
411
|
-
*
|
|
416
|
+
* NOTHING BINDS, because a death is re-observable where a matched message is not: a dead
|
|
417
|
+
* incarnation's uid never heartbeats again, so a crash between the observation and the settle
|
|
418
|
+
* re-observes the same death on resume (after a fresh confirmation window) — at worst
|
|
412
419
|
* with the reason upgraded from `"lapsed"` to `"superseded"` by a successor that appeared in
|
|
413
420
|
* between. `at` is the time of OBSERVATION: presence records no time of death, and inventing
|
|
414
421
|
* one would be a value the planes cannot back.
|
|
@@ -502,7 +509,9 @@ export declare class MeshHandler {
|
|
|
502
509
|
* goal-bound hold (its expiry commits `failed` reason `turn-deadline`), and this client arms its
|
|
503
510
|
* OWN pause under the step's request id — the L4003 authority that survives a dead manager.
|
|
504
511
|
* DEATH likewise: the manager's reap hook fails pending turns `agent-down`, and this client
|
|
505
|
-
* watches presence itself (the L4002 authority when the manager died with the seat).
|
|
512
|
+
* watches presence itself (the L4002 authority when the manager died with the seat). The watch
|
|
513
|
+
* reads death the way `wait(down)` does: a superseded incarnation at once, a lapsed row only
|
|
514
|
+
* once it has stayed absent for {@link LAPSE_CONFIRM_MS}.
|
|
506
515
|
*
|
|
507
516
|
* Handoff honoring (lang §5.3) happens HERE: the scope's pending memo is spent at every turn's
|
|
508
517
|
* begin, and when this turn targets its `to`, the link rides the submission (`handoffFrom`, the
|
|
@@ -511,11 +520,6 @@ export declare class MeshHandler {
|
|
|
511
520
|
* worktree is L4004.
|
|
512
521
|
*/
|
|
513
522
|
turn(req: TurnRequest, ctx: EffectContext): Promise<TurnResultValue>;
|
|
514
|
-
/** Map a turn goal's terminal onto the effect's contract: `succeeded` carries the TurnResult
|
|
515
|
-
* (a handoff addressee resolved against the roster — L4005 outside it, L4004 across
|
|
516
|
-
* worktrees), `failed` splits on the manager's recorded reason, `cancelled` unwinds. The
|
|
517
|
-
* consumed notices are marked HERE, by the goal that carried them, tolerating the re-entry
|
|
518
|
-
* conflict (a crash between the terminal and the mark re-marks on resume). */
|
|
519
523
|
/**
|
|
520
524
|
* A yielded handoff's refusal class: L4005 when the addressee is not in this run's roster,
|
|
521
525
|
* L4004 when it sits in a different worktree than the seat handing off, undefined when the
|
|
@@ -523,6 +527,11 @@ export declare class MeshHandler {
|
|
|
523
527
|
* must not count it, so the two observers never diverge on a spoofed or misdirected `to`.
|
|
524
528
|
*/
|
|
525
529
|
private handoffRefusal;
|
|
530
|
+
/** Map a turn goal's terminal onto the effect's contract: `succeeded` carries the TurnResult
|
|
531
|
+
* (a handoff addressee resolved against the roster — L4005 outside it, L4004 across
|
|
532
|
+
* worktrees), `failed` splits on the manager's recorded reason, `cancelled` unwinds. The
|
|
533
|
+
* consumed notices are marked HERE, by the goal that carried them, tolerating the re-entry
|
|
534
|
+
* conflict (a crash between the terminal and the mark re-marks on resume). */
|
|
526
535
|
private turnOutcome;
|
|
527
536
|
/**
|
|
528
537
|
* `ask` is a schema-checked pause the ADDRESSED AGENT is expected to answer.
|
|
@@ -740,12 +749,6 @@ export declare class MeshHandler {
|
|
|
740
749
|
private pumpFires;
|
|
741
750
|
}
|
|
742
751
|
export { waitConsumerName, waitConsumerConfig } from "@cotal-ai/core";
|
|
743
|
-
/**
|
|
744
|
-
* Read a spawn's `permits` as the budgets this host can enforce: `turns`, a positive integer of
|
|
745
|
-
* turns the run may dispatch to the agent, and `wallClock`, a duration from the spawn after which
|
|
746
|
-
* no turn is admitted. Anything else (tokens, spend) is a budget this host has no meter for, and a
|
|
747
|
-
* budget it cannot enforce is refused loudly rather than accepted as a silent no-op.
|
|
748
|
-
*/
|
|
749
752
|
/** The restart budget this host asks the manager to enforce for a spawn. */
|
|
750
753
|
type AgentSupervise = {
|
|
751
754
|
restarts: number;
|
|
@@ -759,9 +762,6 @@ type AgentSupervise = {
|
|
|
759
762
|
* than accepted as a silent no-op.
|
|
760
763
|
*/
|
|
761
764
|
export declare function readSupervise(raw: unknown, persona: string): AgentSupervise;
|
|
762
|
-
/** The manager `spawn` args a {@link SpawnRequest} submits: persona names the persona file
|
|
763
|
-
* (`name`), `join` becomes the seat's channel subscriptions. `permits` stay on the run (they
|
|
764
|
-
* bind at `turn`); `supervise` travels because the manager is who restarts the process. */
|
|
765
765
|
/**
|
|
766
766
|
* #1616 proof item 5 — ALIAS NORMALIZATION POLICY. One clone reached through a symlink and through
|
|
767
767
|
* its realpath is ONE writable directory, and the single-writer rule keys on identity, so the two
|
|
@@ -787,6 +787,10 @@ export interface CwdResolution {
|
|
|
787
787
|
* bound, allocated or launched. There is no raw-path arm: a fall-back to the caller's string is
|
|
788
788
|
* fail-OPEN, and launching somewhere plausible is the outcome being removed. */
|
|
789
789
|
export declare function cwdResolutionRefusal(persona: string, instanceId: string, cwd: string, cause: string): EffectError;
|
|
790
|
+
/** The manager `spawn` args a {@link SpawnRequest} submits: persona names the persona file
|
|
791
|
+
* (`name`), `join` becomes the seat's channel subscriptions. `permits` stay on the run (they
|
|
792
|
+
* bind at `turn`); `supervise` travels because the manager is who restarts the process, and
|
|
793
|
+
* `events` because the manager is who arms the event plane (`false` is `--no-events`). */
|
|
790
794
|
export declare function spawnArgs(req: SpawnRequest): Record<string, unknown>;
|
|
791
795
|
/**
|
|
792
796
|
* RE-ARM the timers of every pause this run is still holding, under THIS driver's coordinates.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mesh-handler.d.ts","sourceRoot":"","sources":["../src/mesh-handler.ts"],"names":[],"mappings":"AAqBA,OAAO,EA6CL,KAAK,aAAa,EAClB,KAAK,oBAAoB,EAGzB,KAAK,QAAQ,EAMb,KAAK,gBAAgB,EAItB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAO,KAAK,EAAE,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAGL,WAAW,EAMX,KAAK,UAAU,EACf,KAAK,gBAAgB,EAErB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,eAAe,EAGrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAoC,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC9F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IACtC;;;;;OAKG;IACH,QAAQ,CAAC,SAAS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