@jungjaehoon/mama-os 0.22.1 → 0.23.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/CHANGELOG.md +22 -0
- package/README.md +3 -1
- package/dist/agent/agent-loop.d.ts +0 -3
- package/dist/agent/agent-loop.d.ts.map +1 -1
- package/dist/agent/agent-loop.js +49 -34
- package/dist/agent/agent-loop.js.map +1 -1
- package/dist/agent/gateway-tool-executor.d.ts +18 -0
- package/dist/agent/gateway-tool-executor.d.ts.map +1 -1
- package/dist/agent/gateway-tool-executor.js +185 -6
- package/dist/agent/gateway-tool-executor.js.map +1 -1
- package/dist/agent/gateway-tools.md +10 -5
- package/dist/agent/role-manager.d.ts +22 -1
- package/dist/agent/role-manager.d.ts.map +1 -1
- package/dist/agent/role-manager.js +39 -2
- package/dist/agent/role-manager.js.map +1 -1
- package/dist/agent/tool-registry.d.ts.map +1 -1
- package/dist/agent/tool-registry.js +35 -5
- package/dist/agent/tool-registry.js.map +1 -1
- package/dist/agent/types.d.ts +9 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/api/graph-api.d.ts.map +1 -1
- package/dist/api/graph-api.js +43 -33
- package/dist/api/graph-api.js.map +1 -1
- package/dist/api/operator-tasks-handler.d.ts.map +1 -1
- package/dist/api/operator-tasks-handler.js +6 -2
- package/dist/api/operator-tasks-handler.js.map +1 -1
- package/dist/cli/commands/start.d.ts.map +1 -1
- package/dist/cli/commands/start.js +185 -2
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/config/config-manager.d.ts +0 -5
- package/dist/cli/config/config-manager.d.ts.map +1 -1
- package/dist/cli/config/config-manager.js +57 -2
- package/dist/cli/config/config-manager.js.map +1 -1
- package/dist/cli/config/types.d.ts.map +1 -1
- package/dist/cli/config/types.js +35 -0
- package/dist/cli/config/types.js.map +1 -1
- package/dist/cli/runtime/agent-loop-init.d.ts.map +1 -1
- package/dist/cli/runtime/agent-loop-init.js +96 -51
- package/dist/cli/runtime/agent-loop-init.js.map +1 -1
- package/dist/cli/runtime/api-routes-init.d.ts +3 -0
- package/dist/cli/runtime/api-routes-init.d.ts.map +1 -1
- package/dist/cli/runtime/api-routes-init.js +226 -51
- package/dist/cli/runtime/api-routes-init.js.map +1 -1
- package/dist/cli/runtime/gateway-init.d.ts.map +1 -1
- package/dist/cli/runtime/gateway-init.js +5 -0
- package/dist/cli/runtime/gateway-init.js.map +1 -1
- package/dist/envelope/reactive-config.d.ts.map +1 -1
- package/dist/envelope/reactive-config.js +26 -1
- package/dist/envelope/reactive-config.js.map +1 -1
- package/dist/gateways/message-router.d.ts +18 -1
- package/dist/gateways/message-router.d.ts.map +1 -1
- package/dist/gateways/message-router.js +155 -22
- package/dist/gateways/message-router.js.map +1 -1
- package/dist/gateways/telegram.d.ts.map +1 -1
- package/dist/gateways/telegram.js +13 -0
- package/dist/gateways/telegram.js.map +1 -1
- package/dist/gateways/types.d.ts +3 -0
- package/dist/gateways/types.d.ts.map +1 -1
- package/dist/memory/history-extractor.d.ts +0 -24
- package/dist/memory/history-extractor.d.ts.map +1 -1
- package/dist/memory/history-extractor.js +0 -132
- package/dist/memory/history-extractor.js.map +1 -1
- package/dist/memory/save-candidate-extractor.d.ts +3 -0
- package/dist/memory/save-candidate-extractor.d.ts.map +1 -1
- package/dist/memory/save-candidate-extractor.js +12 -1
- package/dist/memory/save-candidate-extractor.js.map +1 -1
- package/dist/memory/secret-filter.d.ts +22 -0
- package/dist/memory/secret-filter.d.ts.map +1 -0
- package/dist/memory/secret-filter.js +77 -0
- package/dist/memory/secret-filter.js.map +1 -0
- package/dist/observability/code-audit.d.ts +4 -0
- package/dist/observability/code-audit.d.ts.map +1 -1
- package/dist/observability/code-audit.js +69 -0
- package/dist/observability/code-audit.js.map +1 -1
- package/dist/operator/briefs.d.ts +26 -0
- package/dist/operator/briefs.d.ts.map +1 -0
- package/dist/operator/briefs.js +128 -0
- package/dist/operator/briefs.js.map +1 -0
- package/dist/operator/operator-trigger-loop.d.ts +24 -0
- package/dist/operator/operator-trigger-loop.d.ts.map +1 -1
- package/dist/operator/operator-trigger-loop.js +71 -12
- package/dist/operator/operator-trigger-loop.js.map +1 -1
- package/dist/operator/report-carry.d.ts +29 -0
- package/dist/operator/report-carry.d.ts.map +1 -0
- package/dist/operator/report-carry.js +81 -0
- package/dist/operator/report-carry.js.map +1 -0
- package/dist/operator/shadow-capture.d.ts +20 -0
- package/dist/operator/shadow-capture.d.ts.map +1 -0
- package/dist/operator/shadow-capture.js +34 -0
- package/dist/operator/shadow-capture.js.map +1 -0
- package/dist/operator/situation-report.d.ts +6 -0
- package/dist/operator/situation-report.d.ts.map +1 -1
- package/dist/operator/situation-report.js +13 -0
- package/dist/operator/situation-report.js.map +1 -1
- package/dist/operator/task-ledger.d.ts +90 -2
- package/dist/operator/task-ledger.d.ts.map +1 -1
- package/dist/operator/task-ledger.js +359 -23
- package/dist/operator/task-ledger.js.map +1 -1
- package/dist/operator/worker-run.d.ts +59 -0
- package/dist/operator/worker-run.d.ts.map +1 -0
- package/dist/operator/worker-run.js +64 -0
- package/dist/operator/worker-run.js.map +1 -0
- package/dist/operator/workorder-consumer.d.ts +118 -0
- package/dist/operator/workorder-consumer.d.ts.map +1 -0
- package/dist/operator/workorder-consumer.js +248 -0
- package/dist/operator/workorder-consumer.js.map +1 -0
- package/dist/operator/workorder-hooks.d.ts +30 -0
- package/dist/operator/workorder-hooks.d.ts.map +1 -0
- package/dist/operator/workorder-hooks.js +70 -0
- package/dist/operator/workorder-hooks.js.map +1 -0
- package/dist/operator/workorder-publishers.d.ts +68 -0
- package/dist/operator/workorder-publishers.d.ts.map +1 -0
- package/dist/operator/workorder-publishers.js +150 -0
- package/dist/operator/workorder-publishers.js.map +1 -0
- package/dist/security/security-monitor.d.ts +7 -0
- package/dist/security/security-monitor.d.ts.map +1 -1
- package/dist/security/security-monitor.js +17 -0
- package/dist/security/security-monitor.js.map +1 -1
- package/dist/utils/untrusted-content.d.ts +13 -0
- package/dist/utils/untrusted-content.d.ts.map +1 -1
- package/dist/utils/untrusted-content.js +43 -0
- package/dist/utils/untrusted-content.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shadow capture store (Stage-2 S2-T4) - TEMPORARY migration harness.
|
|
3
|
+
*
|
|
4
|
+
* At MAMA_STAGE2_WORKORDERS=shadow, board workorder runs get a capture
|
|
5
|
+
* publisher injected via reportPublisherOverride: their report_publish calls
|
|
6
|
+
* land HERE (JSONL under ~/.mama/operator/) instead of the live report store.
|
|
7
|
+
* The T6 equivalence gate compares these captures (brief-driven output)
|
|
8
|
+
* against the legacy live publishes (persona-driven output) by kagemusha-id
|
|
9
|
+
* overlap.
|
|
10
|
+
*
|
|
11
|
+
* KILL-LIST: this whole file is deleted at cutover (plan T6) - keep it
|
|
12
|
+
* self-contained.
|
|
13
|
+
*/
|
|
14
|
+
export declare function shadowCapturePath(homeDir?: string): string;
|
|
15
|
+
export interface ShadowCapture {
|
|
16
|
+
/** Drop-in report_publish target - appends, never touches the live store. */
|
|
17
|
+
publisher: (slots: Record<string, string>) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare function createShadowCapture(homeDir?: string): ShadowCapture;
|
|
20
|
+
//# sourceMappingURL=shadow-capture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadow-capture.d.ts","sourceRoot":"","sources":["../../src/operator/shadow-capture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,MAAkB,GAAG,MAAM,CAErE;AAED,MAAM,WAAW,aAAa;IAC5B,6EAA6E;IAC7E,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;CACpD;AAED,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,MAAkB,GAAG,aAAa,CAW9E"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Shadow capture store (Stage-2 S2-T4) - TEMPORARY migration harness.
|
|
4
|
+
*
|
|
5
|
+
* At MAMA_STAGE2_WORKORDERS=shadow, board workorder runs get a capture
|
|
6
|
+
* publisher injected via reportPublisherOverride: their report_publish calls
|
|
7
|
+
* land HERE (JSONL under ~/.mama/operator/) instead of the live report store.
|
|
8
|
+
* The T6 equivalence gate compares these captures (brief-driven output)
|
|
9
|
+
* against the legacy live publishes (persona-driven output) by kagemusha-id
|
|
10
|
+
* overlap.
|
|
11
|
+
*
|
|
12
|
+
* KILL-LIST: this whole file is deleted at cutover (plan T6) - keep it
|
|
13
|
+
* self-contained.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.shadowCapturePath = shadowCapturePath;
|
|
17
|
+
exports.createShadowCapture = createShadowCapture;
|
|
18
|
+
const node_fs_1 = require("node:fs");
|
|
19
|
+
const node_os_1 = require("node:os");
|
|
20
|
+
const node_path_1 = require("node:path");
|
|
21
|
+
function shadowCapturePath(homeDir = (0, node_os_1.homedir)()) {
|
|
22
|
+
return (0, node_path_1.join)(homeDir, '.mama', 'operator', 'shadow-capture.jsonl');
|
|
23
|
+
}
|
|
24
|
+
function createShadowCapture(homeDir = (0, node_os_1.homedir)()) {
|
|
25
|
+
const path = shadowCapturePath(homeDir);
|
|
26
|
+
(0, node_fs_1.mkdirSync)((0, node_path_1.dirname)(path), { recursive: true });
|
|
27
|
+
return {
|
|
28
|
+
publisher: (slots) => {
|
|
29
|
+
(0, node_fs_1.appendFileSync)(path, `${JSON.stringify({ ts: Date.now(), slots })}\n`, 'utf-8');
|
|
30
|
+
console.log(`[stage2] shadow capture: ${Object.keys(slots).length} slot(s) -> ${path} (live store untouched)`);
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=shadow-capture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadow-capture.js","sourceRoot":"","sources":["../../src/operator/shadow-capture.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAMH,8CAEC;AAOD,kDAWC;AAxBD,qCAAoD;AACpD,qCAAkC;AAClC,yCAA0C;AAE1C,SAAgB,iBAAiB,CAAC,UAAkB,IAAA,iBAAO,GAAE;IAC3D,OAAO,IAAA,gBAAI,EAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,sBAAsB,CAAC,CAAC;AACpE,CAAC;AAOD,SAAgB,mBAAmB,CAAC,UAAkB,IAAA,iBAAO,GAAE;IAC7D,MAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACxC,IAAA,mBAAS,EAAC,IAAA,mBAAO,EAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9C,OAAO;QACL,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACnB,IAAA,wBAAc,EAAC,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAChF,OAAO,CAAC,GAAG,CACT,4BAA4B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,eAAe,IAAI,yBAAyB,CAClG,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -62,6 +62,12 @@ export interface SituationReporterOptions {
|
|
|
62
62
|
* of being elimination-only. Uncited fires stay NEUTRAL - not failures.
|
|
63
63
|
*/
|
|
64
64
|
recordTriggerUse?: (triggerIds: string[]) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Context carry (plan v6 S1-T4): called with (deliveredAtIso, reportText)
|
|
67
|
+
* after a FULL report is successfully delivered. Runtime wiring persists it
|
|
68
|
+
* so the owner console can reference the latest report per chat turn.
|
|
69
|
+
*/
|
|
70
|
+
persistLastFullReport?: (deliveredAtIso: string, text: string) => void;
|
|
65
71
|
}
|
|
66
72
|
export declare class SituationReporter {
|
|
67
73
|
private windowByChannel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"situation-report.d.ts","sourceRoot":"","sources":["../../src/operator/situation-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGpD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,2BAA2B,CAAC;AAEjE,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAChD;AAED,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAqB3C,MAAM,WAAW,wBAAwB;IACvC;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,MAAM,EAAE,CAAC,CAAC;IAC9C;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"situation-report.d.ts","sourceRoot":"","sources":["../../src/operator/situation-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;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;IACvF,WAAW,IAAI,OAAO;IAItB;;;OAGG;IACG,MAAM,CACV,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,EAChC,IAAI,EAAE,UAAU,GACf,OAAO,CAAC,OAAO,CAAC;IA2DnB,OAAO,CAAC,KAAK;IAQb,kGAAkG;IAClG,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;CAuHtC"}
|
|
@@ -106,6 +106,19 @@ class SituationReporter {
|
|
|
106
106
|
if (cited.length > 0) {
|
|
107
107
|
this.opts.recordTriggerUse?.(cited);
|
|
108
108
|
}
|
|
109
|
+
// Context carry (plan v6 S1-T4): persist the DELIVERED full report so the
|
|
110
|
+
// chat console can reference "the report you just got" instead of
|
|
111
|
+
// fabricating one. Same success condition as the delta anchor.
|
|
112
|
+
if (mode === 'full') {
|
|
113
|
+
try {
|
|
114
|
+
this.opts.persistLastFullReport?.(new Date().toISOString(), text);
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
// Carry is derived state - persistence failure must not fail the
|
|
118
|
+
// delivered report, but it must be loud.
|
|
119
|
+
console.warn(`[situation-report] failed to persist last full report for context carry: ${error instanceof Error ? error.message : String(error)}`);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
109
122
|
this.reset();
|
|
110
123
|
return true;
|
|
111
124
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"situation-report.js","sourceRoot":"","sources":["../../src/operator/situation-report.ts"],"names":[],"mappings":";;;AAmBA,wEAAqE;AAErE;;;;GAIG;AACU,QAAA,wBAAwB,GAAG,wBAAwB,CAAC;AAWjE,kGAAkG;AAClG,MAAM,wBAAwB,GAAG,CAAC,CAAC;AACnC,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAC9B,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,YAAY,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"situation-report.js","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B,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,mCAAmC,CAAC,CAAC;YAC7E,EAAE;YACF,4CAA4C;YAC5C,GAAG,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;SACzD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACf,CAAC;CACF;AA7PD,8CA6PC"}
|
|
@@ -20,14 +20,42 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import type { SQLiteDatabase } from '../sqlite.js';
|
|
22
22
|
import type { OperatorTask, TaskSource } from './operator-interfaces.js';
|
|
23
|
-
export declare const TASK_STATUSES: readonly ["pending", "in_progress", "review", "blocked", "done", "cancelled"];
|
|
23
|
+
export declare const TASK_STATUSES: readonly ["pending", "in_progress", "review", "blocked", "done", "cancelled", "failed"];
|
|
24
24
|
export type TaskStatus = (typeof TASK_STATUSES)[number];
|
|
25
25
|
export declare const TASK_PRIORITIES: readonly ["high", "normal", "low"];
|
|
26
26
|
export type TaskPriority = (typeof TASK_PRIORITIES)[number];
|
|
27
|
+
export declare const TASK_KINDS: readonly ["owner", "system"];
|
|
28
|
+
export type TaskKind = (typeof TASK_KINDS)[number];
|
|
29
|
+
export declare const WORKORDER_KINDS: readonly ["board", "wiki", "memory-curation"];
|
|
30
|
+
export type WorkOrderKind = (typeof WORKORDER_KINDS)[number];
|
|
31
|
+
/** source_channel namespace for workorder rows: 'workorder:<workKind>'. */
|
|
32
|
+
export declare const WORKORDER_CHANNEL_PREFIX = "workorder:";
|
|
33
|
+
export interface EnqueueWorkOrderInput {
|
|
34
|
+
workKind: WorkOrderKind;
|
|
35
|
+
/** Per-occurrence idempotency key (schedule slot / event batch / manual ts). */
|
|
36
|
+
idempotencyKey: string;
|
|
37
|
+
/** Kind-specific payload; `attempts` is managed by the ledger (starts at 1). */
|
|
38
|
+
input: Record<string, unknown>;
|
|
39
|
+
priority?: TaskPriority;
|
|
40
|
+
}
|
|
41
|
+
export interface WorkOrderRecord {
|
|
42
|
+
id: number;
|
|
43
|
+
workKind: WorkOrderKind;
|
|
44
|
+
status: TaskStatus;
|
|
45
|
+
priority: TaskPriority;
|
|
46
|
+
idempotencyKey: string;
|
|
47
|
+
/** Parsed payload; always carries `attempts` (>= 1). */
|
|
48
|
+
payload: Record<string, unknown> & {
|
|
49
|
+
attempts: number;
|
|
50
|
+
};
|
|
51
|
+
createdAt: number;
|
|
52
|
+
updatedAt: number;
|
|
53
|
+
}
|
|
27
54
|
/** Extended record: satisfies OperatorTask (numeric deadline) and carries the ISO original. */
|
|
28
55
|
export interface TaskRecord extends OperatorTask {
|
|
29
56
|
status: TaskStatus;
|
|
30
57
|
priority: TaskPriority;
|
|
58
|
+
kind: TaskKind;
|
|
31
59
|
/** ISO YYYY-MM-DD as stored; `deadline` (OperatorTask) is its UTC-midnight epoch ms. */
|
|
32
60
|
deadlineIso: string | null;
|
|
33
61
|
assignee: string | null;
|
|
@@ -72,11 +100,24 @@ export declare class TaskLedger implements TaskSource {
|
|
|
72
100
|
private db;
|
|
73
101
|
constructor(db: SQLiteDatabase);
|
|
74
102
|
private runMigration;
|
|
103
|
+
/** Full current column set - single source for CREATE and the rebuild copy. */
|
|
104
|
+
private static readonly TABLE_COLUMNS_SQL;
|
|
105
|
+
private static readonly INDEXES_SQL;
|
|
106
|
+
/**
|
|
107
|
+
* Stage-2 in-place upgrade for pre-existing tables. Guards are re-checked
|
|
108
|
+
* INSIDE `BEGIN IMMEDIATE`: two connections construct TaskLedger (boot +
|
|
109
|
+
* lazy API handler) and both run this - the loser must see the winner's
|
|
110
|
+
* finished work, not rebuild an already-migrated table.
|
|
111
|
+
*/
|
|
112
|
+
private upgradeSchema;
|
|
75
113
|
/** TaskSource conformance: open items in canonical board order. */
|
|
76
114
|
getTasks(): OperatorTask[];
|
|
77
115
|
countOpenUnconfirmed(): number;
|
|
78
116
|
list(filter?: ListTasksFilter): TaskRecord[];
|
|
117
|
+
/** Owner rows only - system workorder rows are invisible to external reads. */
|
|
79
118
|
getById(id: number): TaskRecord | null;
|
|
119
|
+
/** Internal fetch without the kind filter (guards and workorder paths). */
|
|
120
|
+
private getRowById;
|
|
80
121
|
/**
|
|
81
122
|
* Create a task. Idempotent under at-least-once delivery: a duplicate
|
|
82
123
|
* (source_channel, source_event_id) UPSERTS - the existing row gets the new
|
|
@@ -84,8 +125,55 @@ export declare class TaskLedger implements TaskSource {
|
|
|
84
125
|
*/
|
|
85
126
|
create(input: CreateTaskInput): TaskRecord;
|
|
86
127
|
update(id: number, patch: UpdateTaskInput): TaskRecord;
|
|
87
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* Stable hash over ordered OWNER rows - the Phase-2 verifier's ledger
|
|
130
|
+
* snapshot. kind filter keeps concurrent system enqueues from shaking the
|
|
131
|
+
* hash mid-bracket (evidence-only signal, but noise is noise).
|
|
132
|
+
*/
|
|
88
133
|
payloadHash(): string;
|
|
134
|
+
/**
|
|
135
|
+
* Enqueue a workorder. Idempotent per occurrence key: an open (pending or
|
|
136
|
+
* in_progress) keyed row dedups; a terminal keyed row frees the slot (the
|
|
137
|
+
* unique index excludes terminal statuses) and a fresh row is inserted.
|
|
138
|
+
*/
|
|
139
|
+
enqueueWorkOrder(order: EnqueueWorkOrderInput): WorkOrderRecord;
|
|
140
|
+
/**
|
|
141
|
+
* Claim the next pending workorder: priority high>normal>low, then id ASC
|
|
142
|
+
* (plan D2/E2 - CASE mapping, never lexicographic on the TEXT enum).
|
|
143
|
+
* pending -> in_progress. Single serial consumer; transaction for atomicity.
|
|
144
|
+
*/
|
|
145
|
+
claimNextWorkOrder(): WorkOrderRecord | null;
|
|
146
|
+
/**
|
|
147
|
+
* Atomic fail-and-requeue (PR bot round): the failure mark and the
|
|
148
|
+
* replacement row commit together - a crash between the two would lose
|
|
149
|
+
* the retry (the old row terminal, the new one never inserted). The
|
|
150
|
+
* replacement can only be inserted AFTER the old row leaves the partial
|
|
151
|
+
* unique index, hence one transaction, not two calls.
|
|
152
|
+
*/
|
|
153
|
+
requeueWorkOrder(wo: WorkOrderRecord, reason: string): WorkOrderRecord;
|
|
154
|
+
completeWorkOrder(id: number): void;
|
|
155
|
+
failWorkOrder(id: number, reason: string): void;
|
|
156
|
+
countPendingWorkOrders(): number;
|
|
157
|
+
/** In-progress system rows at boot = crash artifacts (single serial consumer). */
|
|
158
|
+
listStaleClaims(): WorkOrderRecord[];
|
|
159
|
+
/**
|
|
160
|
+
* Boot cleanup (plan D3 + review N4): open system rows -> cancelled. A
|
|
161
|
+
* rollback is not a failure - excluded from failed counters/alarms; caller
|
|
162
|
+
* logs ONE summary line with the returned count. `onlyKinds` scopes the
|
|
163
|
+
* cancellation (shadow rollback cancels non-board orders only).
|
|
164
|
+
*/
|
|
165
|
+
cancelOpenWorkOrders(reason: string, onlyKinds?: WorkOrderKind[]): number;
|
|
166
|
+
/** Per-kind stats for the workorder_status surface. */
|
|
167
|
+
workOrderStats(): Array<{
|
|
168
|
+
workKind: WorkOrderKind;
|
|
169
|
+
lastRunAt: number | null;
|
|
170
|
+
lastStatus: TaskStatus | null;
|
|
171
|
+
failedCount: number;
|
|
172
|
+
lastFailureReason: string | null;
|
|
173
|
+
}>;
|
|
174
|
+
private getWorkOrderById;
|
|
175
|
+
private transitionWorkOrder;
|
|
176
|
+
private rowToWorkOrder;
|
|
89
177
|
/** contract_no_update: silence as a verifiable judgment, scoped to one reconcile run. */
|
|
90
178
|
recordNoUpdate(scope: string, reason: string): {
|
|
91
179
|
id: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-ledger.d.ts","sourceRoot":"","sources":["../../src/operator/task-ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,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