@certaworks/recovery-assessment-engine 0.0.0-stage → 0.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/README.md +128 -2
- package/dist/cli.d.ts +20 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +188 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/server.d.ts +18 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +411 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/recovery.d.ts +179 -0
- package/dist/recovery.d.ts.map +1 -0
- package/dist/recovery.js +313 -0
- package/dist/recovery.js.map +1 -0
- package/dist/store.d.ts +20 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +41 -0
- package/dist/store.js.map +1 -0
- package/package.json +67 -4
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createInterface } from 'node:readline';
|
|
3
|
+
import { pathToFileURL } from 'node:url';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { createRecoveryEngine, resolveRecoveryStorePath } from '../recovery.js';
|
|
6
|
+
const CONFIDENCE_LEVEL_ENUM = ['HIGH', 'MEDIUM', 'LOW'];
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
// Zod input schemas (one per tool)
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
const anchorIdSchema = z.object({ anchor_id: z.string().min(1) }).strict();
|
|
11
|
+
const SCHEMAS = {
|
|
12
|
+
assess_recovery: anchorIdSchema,
|
|
13
|
+
get_recovery_verdict: anchorIdSchema,
|
|
14
|
+
explain_recovery: anchorIdSchema,
|
|
15
|
+
get_pre_event_state: anchorIdSchema,
|
|
16
|
+
get_current_agent_state: z.object({}).strict(),
|
|
17
|
+
list_contributing_events: anchorIdSchema,
|
|
18
|
+
list_recovery_anchors: z.object({ limit: z.number().int().min(0).optional() }).strict(),
|
|
19
|
+
record_recovery_anchor: z.object({
|
|
20
|
+
session_id: z.string().min(1),
|
|
21
|
+
id: z.string().min(1).optional(),
|
|
22
|
+
created_at: z.string().optional(),
|
|
23
|
+
output_id: z.string().min(1).optional(),
|
|
24
|
+
kind: z.string().min(1).optional(),
|
|
25
|
+
notes: z.string().optional()
|
|
26
|
+
}).strict(),
|
|
27
|
+
record_state_event: z.object({
|
|
28
|
+
session_id: z.string().min(1),
|
|
29
|
+
id: z.string().min(1).optional(),
|
|
30
|
+
created_at: z.string().optional(),
|
|
31
|
+
confidence_at_event: z.number().nullable().optional(),
|
|
32
|
+
output_completed: z.boolean().nullable().optional(),
|
|
33
|
+
correction_followed: z.boolean().nullable().optional(),
|
|
34
|
+
redirect_followed: z.boolean().nullable().optional(),
|
|
35
|
+
trigger_context: z.string().optional(),
|
|
36
|
+
boundary_domain: z.string().optional(),
|
|
37
|
+
risk_level: z.string().optional(),
|
|
38
|
+
trajectory_notes: z.string().optional(),
|
|
39
|
+
intervention_taken: z.string().optional(),
|
|
40
|
+
notes: z.string().optional()
|
|
41
|
+
}).strict(),
|
|
42
|
+
link_contributing_event: z.object({
|
|
43
|
+
anchor_id: z.string().min(1),
|
|
44
|
+
event_id: z.string().min(1),
|
|
45
|
+
link_basis: z.string().optional(),
|
|
46
|
+
link_confidence: z.string().optional(),
|
|
47
|
+
notes: z.string().optional()
|
|
48
|
+
}).strict(),
|
|
49
|
+
set_agent_state: z.object({
|
|
50
|
+
confidence: z.number().nullable().optional(),
|
|
51
|
+
confidence_level: z.enum(CONFIDENCE_LEVEL_ENUM).nullable().optional(),
|
|
52
|
+
goal_drift: z.string().nullable().optional(),
|
|
53
|
+
updated_at: z.string().optional()
|
|
54
|
+
}).strict(),
|
|
55
|
+
set_final_output: z.object({
|
|
56
|
+
output_id: z.string().min(1),
|
|
57
|
+
content: z.string().min(1),
|
|
58
|
+
created_at: z.string().optional()
|
|
59
|
+
}).strict()
|
|
60
|
+
};
|
|
61
|
+
// ---------------------------------------------------------------------------
|
|
62
|
+
// Tool catalog (JSON Schema for tools/list)
|
|
63
|
+
// ---------------------------------------------------------------------------
|
|
64
|
+
const ANCHOR_ID_JSON = {
|
|
65
|
+
type: 'object',
|
|
66
|
+
additionalProperties: false,
|
|
67
|
+
properties: { anchor_id: { type: 'string' } },
|
|
68
|
+
required: ['anchor_id']
|
|
69
|
+
};
|
|
70
|
+
const TOOLS = [
|
|
71
|
+
{
|
|
72
|
+
name: 'assess_recovery',
|
|
73
|
+
description: 'Run a full assessment for a failure/interruption anchor: return the verdict, recommendation, and the supporting evidence bundle (pre-event state, current state, linked contributing events, final output).',
|
|
74
|
+
inputSchema: ANCHOR_ID_JSON
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'get_recovery_verdict',
|
|
78
|
+
description: 'Return just the assessment + recommendation for an anchor (lightweight gate input).',
|
|
79
|
+
inputSchema: ANCHOR_ID_JSON
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'explain_recovery',
|
|
83
|
+
description: 'Return the full evidence bundle (linked contributing events, before/after state, final output) behind a verdict.',
|
|
84
|
+
inputSchema: ANCHOR_ID_JSON
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'get_pre_event_state',
|
|
88
|
+
description: 'Fetch the nearest preceding state/confidence event at or before the anchor timestamp, scoped to the anchor session.',
|
|
89
|
+
inputSchema: ANCHOR_ID_JSON
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'get_current_agent_state',
|
|
93
|
+
description: 'Read current confidence, confidence level, goal drift, and last-updated timestamp.',
|
|
94
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: {} }
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: 'list_contributing_events',
|
|
98
|
+
description: 'List the linked pressure ("contributing") events behind an anchor.',
|
|
99
|
+
inputSchema: ANCHOR_ID_JSON
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'list_recovery_anchors',
|
|
103
|
+
description: 'List recent failure/interruption anchors eligible for assessment, newest first.',
|
|
104
|
+
inputSchema: {
|
|
105
|
+
type: 'object',
|
|
106
|
+
additionalProperties: false,
|
|
107
|
+
properties: { limit: { type: 'integer', minimum: 0 } }
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'record_recovery_anchor',
|
|
112
|
+
description: 'Record a failure/interruption anchor that callers can later assess. Provide its session and optional output id, kind, and notes.',
|
|
113
|
+
inputSchema: {
|
|
114
|
+
type: 'object',
|
|
115
|
+
additionalProperties: false,
|
|
116
|
+
properties: {
|
|
117
|
+
session_id: { type: 'string' },
|
|
118
|
+
id: { type: 'string' },
|
|
119
|
+
created_at: { type: 'string' },
|
|
120
|
+
output_id: { type: 'string' },
|
|
121
|
+
kind: { type: 'string' },
|
|
122
|
+
notes: { type: 'string' }
|
|
123
|
+
},
|
|
124
|
+
required: ['session_id']
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'record_state_event',
|
|
129
|
+
description: 'Record a state/pressure event for a session. The nearest one at or before an anchor is the pre-event state; events can also be linked as contributing events.',
|
|
130
|
+
inputSchema: {
|
|
131
|
+
type: 'object',
|
|
132
|
+
additionalProperties: false,
|
|
133
|
+
properties: {
|
|
134
|
+
session_id: { type: 'string' },
|
|
135
|
+
id: { type: 'string' },
|
|
136
|
+
created_at: { type: 'string' },
|
|
137
|
+
confidence_at_event: { type: ['number', 'null'] },
|
|
138
|
+
output_completed: { type: ['boolean', 'null'] },
|
|
139
|
+
correction_followed: { type: ['boolean', 'null'] },
|
|
140
|
+
redirect_followed: { type: ['boolean', 'null'] },
|
|
141
|
+
trigger_context: { type: 'string' },
|
|
142
|
+
boundary_domain: { type: 'string' },
|
|
143
|
+
risk_level: { type: 'string' },
|
|
144
|
+
trajectory_notes: { type: 'string' },
|
|
145
|
+
intervention_taken: { type: 'string' },
|
|
146
|
+
notes: { type: 'string' }
|
|
147
|
+
},
|
|
148
|
+
required: ['session_id']
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'link_contributing_event',
|
|
153
|
+
description: 'Link a recorded state event to an anchor as a contributing pressure event.',
|
|
154
|
+
inputSchema: {
|
|
155
|
+
type: 'object',
|
|
156
|
+
additionalProperties: false,
|
|
157
|
+
properties: {
|
|
158
|
+
anchor_id: { type: 'string' },
|
|
159
|
+
event_id: { type: 'string' },
|
|
160
|
+
link_basis: { type: 'string' },
|
|
161
|
+
link_confidence: { type: 'string' },
|
|
162
|
+
notes: { type: 'string' }
|
|
163
|
+
},
|
|
164
|
+
required: ['anchor_id', 'event_id']
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'set_agent_state',
|
|
169
|
+
description: 'Set the current agent state (confidence, confidence level, goal drift) the verdict ladder keys on.',
|
|
170
|
+
inputSchema: {
|
|
171
|
+
type: 'object',
|
|
172
|
+
additionalProperties: false,
|
|
173
|
+
properties: {
|
|
174
|
+
confidence: { type: ['number', 'null'] },
|
|
175
|
+
confidence_level: { type: ['string', 'null'], enum: [...CONFIDENCE_LEVEL_ENUM, null] },
|
|
176
|
+
goal_drift: { type: ['string', 'null'] },
|
|
177
|
+
updated_at: { type: 'string' }
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'set_final_output',
|
|
183
|
+
description: 'Record the final-output content/timestamp for an output id so an anchor referencing it can attach it as evidence.',
|
|
184
|
+
inputSchema: {
|
|
185
|
+
type: 'object',
|
|
186
|
+
additionalProperties: false,
|
|
187
|
+
properties: {
|
|
188
|
+
output_id: { type: 'string' },
|
|
189
|
+
content: { type: 'string' },
|
|
190
|
+
created_at: { type: 'string' }
|
|
191
|
+
},
|
|
192
|
+
required: ['output_id', 'content']
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
];
|
|
196
|
+
// ---------------------------------------------------------------------------
|
|
197
|
+
// JSON-RPC plumbing
|
|
198
|
+
// ---------------------------------------------------------------------------
|
|
199
|
+
function ok(id, result) {
|
|
200
|
+
return { jsonrpc: '2.0', id, result };
|
|
201
|
+
}
|
|
202
|
+
function error(id, code, message) {
|
|
203
|
+
return { jsonrpc: '2.0', id, error: { code, message } };
|
|
204
|
+
}
|
|
205
|
+
function isObject(value) {
|
|
206
|
+
return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
|
|
207
|
+
}
|
|
208
|
+
function requestId(raw) {
|
|
209
|
+
if (!isObject(raw))
|
|
210
|
+
return null;
|
|
211
|
+
const id = raw.id;
|
|
212
|
+
return typeof id === 'string' || typeof id === 'number' || id === null || id === undefined ? (id ?? null) : null;
|
|
213
|
+
}
|
|
214
|
+
function validateEnvelope(raw) {
|
|
215
|
+
const id = requestId(raw);
|
|
216
|
+
if (!isObject(raw))
|
|
217
|
+
return { ok: false, response: error(id, -32600, 'Invalid Request') };
|
|
218
|
+
if (raw.jsonrpc !== '2.0')
|
|
219
|
+
return { ok: false, response: error(id, -32600, 'Invalid Request') };
|
|
220
|
+
if (typeof raw.method !== 'string' || raw.method.trim().length === 0)
|
|
221
|
+
return { ok: false, response: error(id, -32600, 'Invalid Request') };
|
|
222
|
+
if (raw.id !== undefined && raw.id !== null && typeof raw.id !== 'string' && typeof raw.id !== 'number') {
|
|
223
|
+
return { ok: false, response: error(null, -32600, 'Invalid Request') };
|
|
224
|
+
}
|
|
225
|
+
if (raw.params !== undefined && !isObject(raw.params))
|
|
226
|
+
return { ok: false, response: error(id, -32602, 'Invalid params') };
|
|
227
|
+
return { ok: true, request: raw };
|
|
228
|
+
}
|
|
229
|
+
function asArgs(value) {
|
|
230
|
+
if (value === undefined)
|
|
231
|
+
return {};
|
|
232
|
+
if (!isObject(value))
|
|
233
|
+
throw new TypeError('arguments must be an object');
|
|
234
|
+
return value;
|
|
235
|
+
}
|
|
236
|
+
function textContent(payload) {
|
|
237
|
+
return { content: [{ type: 'text', text: JSON.stringify(payload, null, 2) }] };
|
|
238
|
+
}
|
|
239
|
+
function engine() {
|
|
240
|
+
return createRecoveryEngine({ storePath: resolveRecoveryStorePath() });
|
|
241
|
+
}
|
|
242
|
+
function parseArgs(name, raw) {
|
|
243
|
+
const schema = SCHEMAS[name];
|
|
244
|
+
const result = schema.safeParse(raw);
|
|
245
|
+
if (!result.success) {
|
|
246
|
+
const issue = result.error.issues[0];
|
|
247
|
+
const path = issue?.path?.length ? `${issue.path.join('.')}: ` : '';
|
|
248
|
+
throw new TypeError(`${path}${issue?.message ?? 'invalid arguments'}`);
|
|
249
|
+
}
|
|
250
|
+
return result.data;
|
|
251
|
+
}
|
|
252
|
+
function toAnchorInput(args) {
|
|
253
|
+
const a = args;
|
|
254
|
+
return {
|
|
255
|
+
sessionId: a.session_id,
|
|
256
|
+
id: a.id,
|
|
257
|
+
createdAt: a.created_at,
|
|
258
|
+
outputId: a.output_id,
|
|
259
|
+
kind: a.kind,
|
|
260
|
+
notes: a.notes
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
function toStateEventInput(args) {
|
|
264
|
+
const a = args;
|
|
265
|
+
return {
|
|
266
|
+
sessionId: a.session_id,
|
|
267
|
+
id: a.id,
|
|
268
|
+
createdAt: a.created_at,
|
|
269
|
+
confidenceAtEvent: a.confidence_at_event,
|
|
270
|
+
outputCompleted: a.output_completed,
|
|
271
|
+
correctionFollowed: a.correction_followed,
|
|
272
|
+
redirectFollowed: a.redirect_followed,
|
|
273
|
+
triggerContext: a.trigger_context,
|
|
274
|
+
boundaryDomain: a.boundary_domain,
|
|
275
|
+
riskLevel: a.risk_level,
|
|
276
|
+
trajectoryNotes: a.trajectory_notes,
|
|
277
|
+
interventionTaken: a.intervention_taken,
|
|
278
|
+
notes: a.notes
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
function toLinkInput(args) {
|
|
282
|
+
const a = args;
|
|
283
|
+
return {
|
|
284
|
+
anchorId: a.anchor_id,
|
|
285
|
+
eventId: a.event_id,
|
|
286
|
+
linkBasis: a.link_basis,
|
|
287
|
+
linkConfidence: a.link_confidence,
|
|
288
|
+
notes: a.notes
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
function toAgentStateInput(args) {
|
|
292
|
+
const a = args;
|
|
293
|
+
return {
|
|
294
|
+
confidence: a.confidence,
|
|
295
|
+
confidenceLevel: a.confidence_level,
|
|
296
|
+
goalDrift: a.goal_drift,
|
|
297
|
+
updatedAt: a.updated_at
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
async function callTool(name, rawArgs) {
|
|
301
|
+
const e = engine();
|
|
302
|
+
switch (name) {
|
|
303
|
+
case 'assess_recovery': {
|
|
304
|
+
const args = parseArgs(name, rawArgs);
|
|
305
|
+
return e.assess(args.anchor_id);
|
|
306
|
+
}
|
|
307
|
+
case 'get_recovery_verdict': {
|
|
308
|
+
const args = parseArgs(name, rawArgs);
|
|
309
|
+
return e.getVerdict(args.anchor_id);
|
|
310
|
+
}
|
|
311
|
+
case 'explain_recovery': {
|
|
312
|
+
const args = parseArgs(name, rawArgs);
|
|
313
|
+
return e.explain(args.anchor_id);
|
|
314
|
+
}
|
|
315
|
+
case 'get_pre_event_state': {
|
|
316
|
+
const args = parseArgs(name, rawArgs);
|
|
317
|
+
const state = e.getPreEventState(args.anchor_id);
|
|
318
|
+
return state ?? { error: 'not_found', anchor_id: args.anchor_id, reason: 'no preceding state event' };
|
|
319
|
+
}
|
|
320
|
+
case 'get_current_agent_state': {
|
|
321
|
+
parseArgs(name, rawArgs);
|
|
322
|
+
const state = e.getCurrentAgentState();
|
|
323
|
+
return state ?? { error: 'not_found', reason: 'no current agent state recorded' };
|
|
324
|
+
}
|
|
325
|
+
case 'list_contributing_events': {
|
|
326
|
+
const args = parseArgs(name, rawArgs);
|
|
327
|
+
return { contributingEvents: e.listContributingEvents(args.anchor_id) };
|
|
328
|
+
}
|
|
329
|
+
case 'list_recovery_anchors': {
|
|
330
|
+
const args = parseArgs(name, rawArgs);
|
|
331
|
+
return { anchors: e.listAnchors({ limit: args.limit }) };
|
|
332
|
+
}
|
|
333
|
+
case 'record_recovery_anchor': {
|
|
334
|
+
const args = parseArgs(name, rawArgs);
|
|
335
|
+
return e.recordAnchor(toAnchorInput(args));
|
|
336
|
+
}
|
|
337
|
+
case 'record_state_event': {
|
|
338
|
+
const args = parseArgs(name, rawArgs);
|
|
339
|
+
return e.recordStateEvent(toStateEventInput(args));
|
|
340
|
+
}
|
|
341
|
+
case 'link_contributing_event': {
|
|
342
|
+
const args = parseArgs(name, rawArgs);
|
|
343
|
+
return e.linkContributingEvent(toLinkInput(args));
|
|
344
|
+
}
|
|
345
|
+
case 'set_agent_state': {
|
|
346
|
+
const args = parseArgs(name, rawArgs);
|
|
347
|
+
return e.setAgentState(toAgentStateInput(args));
|
|
348
|
+
}
|
|
349
|
+
case 'set_final_output': {
|
|
350
|
+
const args = parseArgs(name, rawArgs);
|
|
351
|
+
return e.setFinalOutput(args.output_id, args.content, args.created_at);
|
|
352
|
+
}
|
|
353
|
+
default:
|
|
354
|
+
return undefined;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
export async function dispatch(rawReq) {
|
|
358
|
+
const envelope = validateEnvelope(rawReq);
|
|
359
|
+
if (!envelope.ok)
|
|
360
|
+
return envelope.response;
|
|
361
|
+
const req = envelope.request;
|
|
362
|
+
const id = req.id ?? null;
|
|
363
|
+
try {
|
|
364
|
+
switch (req.method) {
|
|
365
|
+
case 'initialize':
|
|
366
|
+
return ok(id, { protocolVersion: '2024-11-05', capabilities: { tools: {} }, serverInfo: { name: 'recovery-assessment-engine', version: '0.1.0' } });
|
|
367
|
+
case 'tools/list':
|
|
368
|
+
return ok(id, { tools: TOOLS });
|
|
369
|
+
case 'tools/call': {
|
|
370
|
+
if (!isObject(req.params) || typeof req.params.name !== 'string')
|
|
371
|
+
return error(id, -32602, 'Invalid params');
|
|
372
|
+
const payload = await callTool(req.params.name, asArgs(req.params.arguments));
|
|
373
|
+
if (payload === undefined)
|
|
374
|
+
return error(id, -32601, `Unknown tool: ${req.params.name}`);
|
|
375
|
+
return ok(id, textContent(payload));
|
|
376
|
+
}
|
|
377
|
+
case 'notifications/initialized':
|
|
378
|
+
return ok(null, {});
|
|
379
|
+
default:
|
|
380
|
+
return error(id, -32601, `Method not found: ${req.method}`);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
catch (err) {
|
|
384
|
+
return error(id, -32602, `Invalid params: ${err instanceof Error ? err.message : String(err)}`);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
function shouldRunStdio() {
|
|
388
|
+
return Boolean(process.argv[1]) && import.meta.url === pathToFileURL(process.argv[1]).href;
|
|
389
|
+
}
|
|
390
|
+
if (shouldRunStdio()) {
|
|
391
|
+
const rl = createInterface({ input: process.stdin, terminal: false });
|
|
392
|
+
rl.on('line', async (line) => {
|
|
393
|
+
const t = line.trim();
|
|
394
|
+
if (!t)
|
|
395
|
+
return;
|
|
396
|
+
let req;
|
|
397
|
+
try {
|
|
398
|
+
req = JSON.parse(t);
|
|
399
|
+
}
|
|
400
|
+
catch {
|
|
401
|
+
process.stdout.write(JSON.stringify(error(null, -32700, 'Parse error')) + '\n');
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
const res = await dispatch(req);
|
|
405
|
+
if (isObject(req) && typeof req.method === 'string' && req.method.startsWith('notifications/'))
|
|
406
|
+
return;
|
|
407
|
+
process.stdout.write(JSON.stringify(res) + '\n');
|
|
408
|
+
});
|
|
409
|
+
rl.on('close', () => process.exit(0));
|
|
410
|
+
}
|
|
411
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AA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C;YACP,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;YAChF,OAAO;QACT,CAAC;QACD,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,OAAO,GAAG,CAAC,MAAM,KAAK,QAAQ,IAAI,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,gBAAgB,CAAC;YAAE,OAAO;QACvG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recovery Assessment domain.
|
|
3
|
+
*
|
|
4
|
+
* After an agent failure or interruption, this engine reconstructs the agent's
|
|
5
|
+
* state around the event and reduces the recorded evidence to a single verdict
|
|
6
|
+
* and resume recommendation. Purely local — no network calls, no external
|
|
7
|
+
* services.
|
|
8
|
+
*
|
|
9
|
+
* Decision-support, not a guarantee: the verdict is a structured reading of
|
|
10
|
+
* recorded state, not a safety certificate. It does not by itself authorize
|
|
11
|
+
* resumption and does not replace human judgment or production controls.
|
|
12
|
+
*
|
|
13
|
+
* The flow: given a failure/interruption anchor, find the nearest preceding
|
|
14
|
+
* state event, read current agent state, link contributing pressure events,
|
|
15
|
+
* attach the final output, then derive the verdict ladder from goal drift +
|
|
16
|
+
* confidence level.
|
|
17
|
+
*/
|
|
18
|
+
export type ConfidenceLevel = 'HIGH' | 'MEDIUM' | 'LOW';
|
|
19
|
+
export type GoalDrift = string;
|
|
20
|
+
export type Assessment = 'stabilized' | 'monitor' | 'partial' | 'unknown';
|
|
21
|
+
export type Recommendation = 'no_action_needed' | 'review_recent_sessions' | 'observe_only' | 'insufficient_data';
|
|
22
|
+
export interface RecoveryAnchor {
|
|
23
|
+
id: string;
|
|
24
|
+
sessionId: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
/** Optional id of the final-output record produced around the anchor. */
|
|
27
|
+
outputId?: string;
|
|
28
|
+
/** What kind of event this anchor represents (failure, interruption, abort, ...). */
|
|
29
|
+
kind: string;
|
|
30
|
+
notes?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface RecoveryAnchorInput {
|
|
33
|
+
id?: string;
|
|
34
|
+
sessionId: string;
|
|
35
|
+
createdAt?: string;
|
|
36
|
+
outputId?: string;
|
|
37
|
+
kind?: string;
|
|
38
|
+
notes?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A recorded state/pressure event for a session. The nearest one at or before an
|
|
42
|
+
* anchor timestamp is the "pre-event state"; events linked to an anchor are its
|
|
43
|
+
* contributing events.
|
|
44
|
+
*/
|
|
45
|
+
export interface StateEvent {
|
|
46
|
+
id: string;
|
|
47
|
+
sessionId: string;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
confidenceAtEvent: number | null;
|
|
50
|
+
outputCompleted: boolean | null;
|
|
51
|
+
correctionFollowed: boolean | null;
|
|
52
|
+
redirectFollowed: boolean | null;
|
|
53
|
+
triggerContext?: string;
|
|
54
|
+
boundaryDomain?: string;
|
|
55
|
+
riskLevel?: string;
|
|
56
|
+
trajectoryNotes?: string;
|
|
57
|
+
interventionTaken?: string;
|
|
58
|
+
notes?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface StateEventInput {
|
|
61
|
+
id?: string;
|
|
62
|
+
sessionId: string;
|
|
63
|
+
createdAt?: string;
|
|
64
|
+
confidenceAtEvent?: number | null;
|
|
65
|
+
outputCompleted?: boolean | null;
|
|
66
|
+
correctionFollowed?: boolean | null;
|
|
67
|
+
redirectFollowed?: boolean | null;
|
|
68
|
+
triggerContext?: string;
|
|
69
|
+
boundaryDomain?: string;
|
|
70
|
+
riskLevel?: string;
|
|
71
|
+
trajectoryNotes?: string;
|
|
72
|
+
interventionTaken?: string;
|
|
73
|
+
notes?: string;
|
|
74
|
+
}
|
|
75
|
+
/** A link from an anchor to a contributing state event. */
|
|
76
|
+
export interface ContributingLink {
|
|
77
|
+
id: string;
|
|
78
|
+
anchorId: string;
|
|
79
|
+
eventId: string;
|
|
80
|
+
linkedAt: string;
|
|
81
|
+
linkBasis?: string;
|
|
82
|
+
linkConfidence?: string;
|
|
83
|
+
notes?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface ContributingLinkInput {
|
|
86
|
+
anchorId: string;
|
|
87
|
+
eventId: string;
|
|
88
|
+
linkBasis?: string;
|
|
89
|
+
linkConfidence?: string;
|
|
90
|
+
notes?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface LinkedContributingEvent {
|
|
93
|
+
linkId: string;
|
|
94
|
+
linkedAt: string;
|
|
95
|
+
anchorId: string;
|
|
96
|
+
eventId: string;
|
|
97
|
+
linkBasis: string | null;
|
|
98
|
+
linkConfidence: string | null;
|
|
99
|
+
notes: string | null;
|
|
100
|
+
event: StateEvent | null;
|
|
101
|
+
}
|
|
102
|
+
export interface AgentState {
|
|
103
|
+
confidence: number | null;
|
|
104
|
+
confidenceLevel: ConfidenceLevel | null;
|
|
105
|
+
goalDrift: GoalDrift | null;
|
|
106
|
+
updatedAt: string | null;
|
|
107
|
+
}
|
|
108
|
+
export interface AgentStateInput {
|
|
109
|
+
confidence?: number | null;
|
|
110
|
+
confidenceLevel?: string | null;
|
|
111
|
+
goalDrift?: string | null;
|
|
112
|
+
updatedAt?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface FinalOutput {
|
|
115
|
+
content: string;
|
|
116
|
+
createdAt: string | null;
|
|
117
|
+
}
|
|
118
|
+
export interface RecoveryAssessment {
|
|
119
|
+
anchorId: string;
|
|
120
|
+
sessionId: string | null;
|
|
121
|
+
anchorCreatedAt: string | null;
|
|
122
|
+
confidenceBefore: number | null;
|
|
123
|
+
confidenceAfter: number | null;
|
|
124
|
+
confidenceLevelAfter: ConfidenceLevel | null;
|
|
125
|
+
goalDriftAfter: GoalDrift | null;
|
|
126
|
+
outputCompleted: boolean | null;
|
|
127
|
+
correctionFollowed: boolean | null;
|
|
128
|
+
redirectFollowed: boolean | null;
|
|
129
|
+
linkedContributingEvents: LinkedContributingEvent[];
|
|
130
|
+
assessment: Assessment;
|
|
131
|
+
recommendation: Recommendation;
|
|
132
|
+
outputCoherenceNote: null;
|
|
133
|
+
distortionsRemaining: null;
|
|
134
|
+
finalOutput: FinalOutput | null;
|
|
135
|
+
assessedAt: string | null;
|
|
136
|
+
}
|
|
137
|
+
export interface RecoveryVerdict {
|
|
138
|
+
anchorId: string;
|
|
139
|
+
assessment: Assessment;
|
|
140
|
+
recommendation: Recommendation;
|
|
141
|
+
}
|
|
142
|
+
export interface RecoveryEngineOptions {
|
|
143
|
+
storePath?: string | null;
|
|
144
|
+
}
|
|
145
|
+
export interface RecoveryEngine {
|
|
146
|
+
recordAnchor(input: RecoveryAnchorInput): RecoveryAnchor;
|
|
147
|
+
recordStateEvent(input: StateEventInput): StateEvent;
|
|
148
|
+
linkContributingEvent(input: ContributingLinkInput): ContributingLink;
|
|
149
|
+
setAgentState(input: AgentStateInput): AgentState;
|
|
150
|
+
setFinalOutput(outputId: string, content: string, createdAt?: string): FinalOutput;
|
|
151
|
+
listAnchors(options?: {
|
|
152
|
+
limit?: number;
|
|
153
|
+
}): RecoveryAnchor[];
|
|
154
|
+
getAnchor(anchorId: string): RecoveryAnchor | undefined;
|
|
155
|
+
getPreEventState(anchorId: string): StateEvent | null;
|
|
156
|
+
getCurrentAgentState(): AgentState | null;
|
|
157
|
+
listContributingEvents(anchorId: string): LinkedContributingEvent[];
|
|
158
|
+
assess(anchorId: string): RecoveryAssessment;
|
|
159
|
+
getVerdict(anchorId: string): RecoveryVerdict;
|
|
160
|
+
explain(anchorId: string): RecoveryAssessment;
|
|
161
|
+
}
|
|
162
|
+
declare const CONFIDENCE_LEVELS: Set<ConfidenceLevel>;
|
|
163
|
+
/**
|
|
164
|
+
* Derive (assessment, recommendation) from the current agent state, matching the
|
|
165
|
+
* originating agent's recovery-assessment logic exactly:
|
|
166
|
+
* - no current agent state row → unknown / insufficient_data
|
|
167
|
+
* - goal drift `nominal` AND HIGH|MEDIUM → stabilized / no_action_needed
|
|
168
|
+
* - goal drift non-nominal → monitor / review_recent_sessions
|
|
169
|
+
* - confidence level LOW → monitor / review_recent_sessions
|
|
170
|
+
* - otherwise (mixed signals) → partial / observe_only
|
|
171
|
+
*/
|
|
172
|
+
export declare function deriveVerdict(state: AgentState | null): {
|
|
173
|
+
assessment: Assessment;
|
|
174
|
+
recommendation: Recommendation;
|
|
175
|
+
};
|
|
176
|
+
export declare function createRecoveryEngine(options?: RecoveryEngineOptions): RecoveryEngine;
|
|
177
|
+
export { CONFIDENCE_LEVELS };
|
|
178
|
+
export { resolveRecoveryStorePath } from './store.js';
|
|
179
|
+
//# sourceMappingURL=recovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recovery.d.ts","sourceRoot":"","sources":["../src/recovery.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AAMH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AACxD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAC1E,MAAM,MAAM,cAAc,GACtB,kBAAkB,GAClB,wBAAwB,GACxB,cAAc,GACd,mBAAmB,CAAC;AAExB,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB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