@principles/core 1.147.0 → 1.148.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/runtime-v2/__tests__/architecture-regression.test.js +5 -0
- package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/dist/runtime-v2/adapter/__tests__/l2-agent-loop-adapter.test.d.ts +2 -0
- package/dist/runtime-v2/adapter/__tests__/l2-agent-loop-adapter.test.d.ts.map +1 -0
- package/dist/runtime-v2/adapter/__tests__/l2-agent-loop-adapter.test.js +329 -0
- package/dist/runtime-v2/adapter/__tests__/l2-agent-loop-adapter.test.js.map +1 -0
- package/dist/runtime-v2/adapter/l2-agent-loop-adapter.d.ts +52 -0
- package/dist/runtime-v2/adapter/l2-agent-loop-adapter.d.ts.map +1 -0
- package/dist/runtime-v2/adapter/l2-agent-loop-adapter.js +398 -0
- package/dist/runtime-v2/adapter/l2-agent-loop-adapter.js.map +1 -0
- package/dist/runtime-v2/agent-spec.d.ts +1 -1
- package/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/dist/runtime-v2/feature-flags/feature-flag-contract.js +5 -0
- package/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
- package/dist/runtime-v2/index.d.ts +5 -0
- package/dist/runtime-v2/index.d.ts.map +1 -1
- package/dist/runtime-v2/index.js +5 -0
- package/dist/runtime-v2/index.js.map +1 -1
- package/dist/runtime-v2/runtime-protocol.d.ts +3 -3
- package/dist/runtime-v2/runtime-protocol.d.ts.map +1 -1
- package/dist/runtime-v2/runtime-protocol.js +1 -0
- package/dist/runtime-v2/runtime-protocol.js.map +1 -1
- package/dist/runtime-v2/runtime-selector.d.ts +3 -3
- package/dist/runtime-v2/tools/__tests__/agent-tool-contract.test.d.ts +2 -0
- package/dist/runtime-v2/tools/__tests__/agent-tool-contract.test.d.ts.map +1 -0
- package/dist/runtime-v2/tools/__tests__/agent-tool-contract.test.js +171 -0
- package/dist/runtime-v2/tools/__tests__/agent-tool-contract.test.js.map +1 -0
- package/dist/runtime-v2/tools/__tests__/dreamer-output-typebox.test.d.ts +2 -0
- package/dist/runtime-v2/tools/__tests__/dreamer-output-typebox.test.d.ts.map +1 -0
- package/dist/runtime-v2/tools/__tests__/dreamer-output-typebox.test.js +109 -0
- package/dist/runtime-v2/tools/__tests__/dreamer-output-typebox.test.js.map +1 -0
- package/dist/runtime-v2/tools/agent-tool-contract.d.ts +76 -0
- package/dist/runtime-v2/tools/agent-tool-contract.d.ts.map +1 -0
- package/dist/runtime-v2/tools/agent-tool-contract.js +136 -0
- package/dist/runtime-v2/tools/agent-tool-contract.js.map +1 -0
- package/dist/runtime-v2/tools/dreamer-output-typebox.d.ts +63 -0
- package/dist/runtime-v2/tools/dreamer-output-typebox.d.ts.map +1 -0
- package/dist/runtime-v2/tools/dreamer-output-typebox.js +55 -0
- package/dist/runtime-v2/tools/dreamer-output-typebox.js.map +1 -0
- package/dist/telemetry-event.d.ts +3 -3
- package/dist/telemetry-event.d.ts.map +1 -1
- package/dist/telemetry-event.js +6 -1
- package/dist/telemetry-event.js.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { Type } from 'typebox';
|
|
2
|
+
import { CORE_PRINCIPLES } from '../core-principles/core-principle-registry.js';
|
|
3
|
+
import { DreamerOutputV1Typebox } from './dreamer-output-typebox.js';
|
|
4
|
+
// ── Tool parameter schemas (typebox) ─────────────────────────────────────────
|
|
5
|
+
const readPrinciplesSchema = Type.Object({
|
|
6
|
+
// No parameters needed — returns the full core + active set. Declared as an object
|
|
7
|
+
// so the model sees an explicit (empty) contract rather than a parameterless stub.
|
|
8
|
+
});
|
|
9
|
+
const readArtifactSchema = Type.Object({
|
|
10
|
+
artifactId: Type.Optional(Type.String({ description: 'Specific artifact id to read.' })),
|
|
11
|
+
sourceTaskId: Type.Optional(Type.String({ description: 'Read artifacts produced by this task (e.g. the predecessor diagnostician task).' })),
|
|
12
|
+
});
|
|
13
|
+
// submit_output parameter schema = DreamerOutputV1Typebox (re-exported for clarity).
|
|
14
|
+
export { DreamerOutputV1Typebox as SubmitOutputSchema };
|
|
15
|
+
function formatArtifact(a) {
|
|
16
|
+
return [
|
|
17
|
+
`artifactId: ${a.artifactId}`,
|
|
18
|
+
`kind: ${a.artifactKind}`,
|
|
19
|
+
`sourceTaskId: ${a.sourceTaskId}`,
|
|
20
|
+
`createdAt: ${a.createdAt}`,
|
|
21
|
+
`content: ${a.contentJson}`,
|
|
22
|
+
].join('\n');
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Resolve the text response for read_artifact. Extracted so the execute() body stays flat:
|
|
26
|
+
* one success-path telemetry call + one catch-path telemetry call, no repetition.
|
|
27
|
+
*/
|
|
28
|
+
async function readArtifactText(ctx, params) {
|
|
29
|
+
if (typeof params.artifactId === 'string' && params.artifactId.length > 0) {
|
|
30
|
+
const artifact = await ctx.artifactReader.getArtifactById(params.artifactId);
|
|
31
|
+
return artifact
|
|
32
|
+
? formatArtifact(artifact)
|
|
33
|
+
: `No artifact found with id '${params.artifactId}'.`;
|
|
34
|
+
}
|
|
35
|
+
if (typeof params.sourceTaskId === 'string' && params.sourceTaskId.length > 0) {
|
|
36
|
+
const artifacts = await ctx.artifactReader.listBySourceTaskId(params.sourceTaskId);
|
|
37
|
+
if (artifacts.length === 0) {
|
|
38
|
+
return `No artifacts found for sourceTaskId '${params.sourceTaskId}'.`;
|
|
39
|
+
}
|
|
40
|
+
return artifacts.map(formatArtifact).join('\n\n');
|
|
41
|
+
}
|
|
42
|
+
// Missing both params — structured guidance, not a silent empty result (R9).
|
|
43
|
+
return 'Provide either artifactId (a specific artifact) or sourceTaskId (the predecessor task). Both were empty.';
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Build the dreamer L2 tool set bound to an injected context.
|
|
47
|
+
*
|
|
48
|
+
* Returns AgentTool[] suitable for assignment to AgentContext.tools. Tools are
|
|
49
|
+
* read-only by construction: they only call getter/list methods on the injected readers and
|
|
50
|
+
* write the final answer into the outputCapture (which the adapter owns).
|
|
51
|
+
*/
|
|
52
|
+
export function buildDreamerL2Tools(ctx) {
|
|
53
|
+
const readPrinciplesTool = {
|
|
54
|
+
label: 'Read principles',
|
|
55
|
+
name: 'read_principles',
|
|
56
|
+
description: 'Read the core axioms (T-01..T-10) plus already-internalized active principles. Call this BEFORE proposing candidates so your output is grounded in the existing principle hierarchy and does not duplicate or contradict it. Returns a list of {id, statement}.',
|
|
57
|
+
parameters: readPrinciplesSchema,
|
|
58
|
+
execute: async () => {
|
|
59
|
+
try {
|
|
60
|
+
const active = await ctx.principleReader.listActivePrinciples();
|
|
61
|
+
const core = CORE_PRINCIPLES.map(p => ({ id: p.id, statement: p.statement }));
|
|
62
|
+
const text = [
|
|
63
|
+
'Core axioms (T-01..T-10):',
|
|
64
|
+
...core.map(p => ` ${p.id}: ${p.statement}`),
|
|
65
|
+
'',
|
|
66
|
+
active.length > 0
|
|
67
|
+
? `Already-internalized active principles (${active.length}):`
|
|
68
|
+
: 'No internalized active principles yet.',
|
|
69
|
+
...active.map(p => ` ${p.id}: ${p.statement}`),
|
|
70
|
+
].join('\n');
|
|
71
|
+
ctx.onToolExecution?.({ toolName: 'read_principles', ok: true });
|
|
72
|
+
return {
|
|
73
|
+
content: [{ type: 'text', text }],
|
|
74
|
+
details: undefined,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
catch (err) {
|
|
78
|
+
const error = err instanceof Error ? err.message : String(err);
|
|
79
|
+
ctx.onToolExecution?.({ toolName: 'read_principles', ok: false, error });
|
|
80
|
+
return {
|
|
81
|
+
// Graceful degradation WITH a reason (Runtime Contract R9): surface the error
|
|
82
|
+
// to the model rather than silently returning empty data.
|
|
83
|
+
content: [{ type: 'text', text: `read_principles failed: ${error}. Proceed using only the core axioms you already know.` }],
|
|
84
|
+
details: undefined,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
const readArtifactTool = {
|
|
90
|
+
label: 'Read artifact',
|
|
91
|
+
name: 'read_artifact',
|
|
92
|
+
description: 'Read a pipeline artifact (e.g. the predecessor diagnostician output) by artifactId, or list artifacts produced by a sourceTaskId. Call this to verify the evidence chain before generating candidates. Returns artifact contentJson (a JSON string).',
|
|
93
|
+
parameters: readArtifactSchema,
|
|
94
|
+
execute: async (_id, params) => {
|
|
95
|
+
try {
|
|
96
|
+
const text = await readArtifactText(ctx, params);
|
|
97
|
+
ctx.onToolExecution?.({ toolName: 'read_artifact', ok: true });
|
|
98
|
+
return { content: [{ type: 'text', text }], details: undefined };
|
|
99
|
+
}
|
|
100
|
+
catch (err) {
|
|
101
|
+
const error = err instanceof Error ? err.message : String(err);
|
|
102
|
+
ctx.onToolExecution?.({ toolName: 'read_artifact', ok: false, error });
|
|
103
|
+
return {
|
|
104
|
+
content: [{ type: 'text', text: `read_artifact failed: ${error}.` }],
|
|
105
|
+
details: undefined,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
const submitOutputTool = {
|
|
111
|
+
label: 'Submit output',
|
|
112
|
+
name: 'submit_output',
|
|
113
|
+
description: 'Submit your final dreamer output. You MUST call this exactly once with a complete DreamerOutputV1 object (valid=true, taskId, 1-5 candidates, contextRefs, generatedAt). The loop stops after you call this. Do not emit the answer as free text — call this tool.',
|
|
114
|
+
parameters: DreamerOutputV1Typebox,
|
|
115
|
+
execute: async (_id, params) => {
|
|
116
|
+
// Store the captured output. The adapter's shouldStopAfterTurn detects this and
|
|
117
|
+
// terminates the loop; terminate:true is a secondary hint only (unreliable across
|
|
118
|
+
// a multi-tool batch — see ADR-0014 amendment §B.3 / review P0-2).
|
|
119
|
+
ctx.outputCapture.output = params;
|
|
120
|
+
ctx.onToolExecution?.({ toolName: 'submit_output', ok: true });
|
|
121
|
+
return {
|
|
122
|
+
content: [{ type: 'text', text: 'Output submitted.' }],
|
|
123
|
+
details: undefined,
|
|
124
|
+
terminate: true,
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
return [readPrinciplesTool, readArtifactTool, submitOutputTool];
|
|
129
|
+
}
|
|
130
|
+
/** Allow-list of tool names the dreamer L2 loop may execute (defense-in-depth for beforeToolCall). */
|
|
131
|
+
export const DREAMER_L2_TOOL_WHITELIST = new Set([
|
|
132
|
+
'read_principles',
|
|
133
|
+
'read_artifact',
|
|
134
|
+
'submit_output',
|
|
135
|
+
]);
|
|
136
|
+
//# sourceMappingURL=agent-tool-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-tool-contract.js","sourceRoot":"","sources":["../../../src/runtime-v2/tools/agent-tool-contract.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AA4BrE,gFAAgF;AAEhF,MAAM,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAAC;AACvC,mFAAmF;AACnF,mFAAmF;CACpF,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,IAAI,CAAC,MAAM,CAAC;IACrC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC,CAAC;IACxF,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,iFAAiF,EAAE,CAAC,CAAC;CAC7I,CAAC,CAAC;AAEH,qFAAqF;AACrF,OAAO,EAAE,sBAAsB,IAAI,kBAAkB,EAAE,CAAC;AAuBxD,SAAS,cAAc,CAAC,CAAkB;IACxC,OAAO;QACL,eAAe,CAAC,CAAC,UAAU,EAAE;QAC7B,SAAS,CAAC,CAAC,YAAY,EAA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J,CAAC;QACH,CAAC;KACF,CAAC;IAEF,MAAM,gBAAgB,GAAwD;QAC5E,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,eAAe;QACrB,WAAW,EACT,oQAAoQ;QACtQ,UAAU,EAAE,sBAAsB;QAClC,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAuC,EAAE;YAClE,gFAAgF;YAChF,kFAAkF;YAClF,mEAAmE;YACnE,GAAG,CAAC,aAAa,CAAC,MAAM,GAAG,MAAM,CAAC;YAClC,GAAG,CAAC,eAAe,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;YAC/D,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;gBACtD,OAAO,EAAE,SAAS;gBAClB,SAAS,EAAE,IAAI;aAChB,CAAC;QACJ,CAAC;KACF,CAAC;IAEF,OAAO,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;AAClE,CAAC;AAED,sGAAsG;AACtG,MAAM,CAAC,MAAM,yBAAyB,GAAwB,IAAI,GAAG,CAAC;IACpE,iBAAiB;IACjB,eAAe;IACf,eAAe;CAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PRI-419 — typebox redeclaration of DreamerOutputV1 for the L2 agent loop.
|
|
3
|
+
*
|
|
4
|
+
* Why this file exists (PLAN §M6 / review P0-4):
|
|
5
|
+
* pi-agent-core's `AgentTool<TParameters extends TSchema>` requires a schema built
|
|
6
|
+
* with the `typebox` package (the earendil fork), NOT PD's usual `@sinclair/typebox`.
|
|
7
|
+
* The two packages are nominally incompatible TS types and PD's Runtime Contract
|
|
8
|
+
* forbids `as` to bridge them. The `submit_output` tool's parameter schema must
|
|
9
|
+
* therefore be declared with `typebox` directly.
|
|
10
|
+
*
|
|
11
|
+
* This file redeclares the DreamerOutputV1 shape with `typebox`, structured so the
|
|
12
|
+
* `submit_output` tool can require the model to return a complete candidate set. The
|
|
13
|
+
* authoritative runtime validator remains `DefaultDreamerValidator` (which validates
|
|
14
|
+
* `unknown` field-by-field) — the schema here is the LLM-facing tool contract only.
|
|
15
|
+
*
|
|
16
|
+
* Consistency guarantee:
|
|
17
|
+
* `dreamer-output-typebox.test.ts` proves that for a shared sample set (valid +
|
|
18
|
+
* invalid candidates), this typebox schema's structural requirements match the
|
|
19
|
+
* @sinclair/typebox `DreamerOutputV1Schema` requirements. No `as`, no cast — the
|
|
20
|
+
* proof is behavioural (both reject the same invalid shapes).
|
|
21
|
+
*
|
|
22
|
+
* Boundary: pure data, zero I/O. Lives in core. No `node:*` imports.
|
|
23
|
+
*/
|
|
24
|
+
import { Type } from 'typebox';
|
|
25
|
+
/**
|
|
26
|
+
* Minimal typebox schema for a single dreamer candidate, matching
|
|
27
|
+
* DreamerCandidateSchema (dreamer-output.ts) field-for-field.
|
|
28
|
+
*/
|
|
29
|
+
export declare const DreamerCandidateTypebox: Type.TObject<{
|
|
30
|
+
candidateIndex: Type.TNumber;
|
|
31
|
+
badDecision: Type.TString;
|
|
32
|
+
betterDecision: Type.TString;
|
|
33
|
+
rationale: Type.TString;
|
|
34
|
+
confidence: Type.TNumber;
|
|
35
|
+
riskLevel: Type.TUnion<[Type.TLiteral<"low">, Type.TLiteral<"medium">, Type.TLiteral<"high">]>;
|
|
36
|
+
strategicPerspective: Type.TString;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* typebox redeclaration of DreamerOutputV1Schema.
|
|
40
|
+
*
|
|
41
|
+
* Used as the parameter schema of the `submit_output` tool in the L2 dreamer loop.
|
|
42
|
+
* Field-for-field equivalent to the @sinclair/typebox DreamerOutputV1Schema — see
|
|
43
|
+
* dreamer-output-typebox.test.ts for the consistency proof.
|
|
44
|
+
*/
|
|
45
|
+
export declare const DreamerOutputV1Typebox: Type.TObject<{
|
|
46
|
+
valid: Type.TBoolean;
|
|
47
|
+
taskId: Type.TString;
|
|
48
|
+
candidates: Type.TArray<Type.TObject<{
|
|
49
|
+
candidateIndex: Type.TNumber;
|
|
50
|
+
badDecision: Type.TString;
|
|
51
|
+
betterDecision: Type.TString;
|
|
52
|
+
rationale: Type.TString;
|
|
53
|
+
confidence: Type.TNumber;
|
|
54
|
+
riskLevel: Type.TUnion<[Type.TLiteral<"low">, Type.TLiteral<"medium">, Type.TLiteral<"high">]>;
|
|
55
|
+
strategicPerspective: Type.TString;
|
|
56
|
+
}>>;
|
|
57
|
+
sourcePrincipleId: Type.TOptional<Type.TString>;
|
|
58
|
+
sourcePainId: Type.TOptional<Type.TString>;
|
|
59
|
+
contextRefs: Type.TArray<Type.TString>;
|
|
60
|
+
generatedAt: Type.TString;
|
|
61
|
+
reason: Type.TOptional<Type.TString>;
|
|
62
|
+
}>;
|
|
63
|
+
//# sourceMappingURL=dreamer-output-typebox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dreamer-output-typebox.d.ts","sourceRoot":"","sources":["../../../src/runtime-v2/tools/dreamer-output-typebox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;EAQlC,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;EASjC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PRI-419 — typebox redeclaration of DreamerOutputV1 for the L2 agent loop.
|
|
3
|
+
*
|
|
4
|
+
* Why this file exists (PLAN §M6 / review P0-4):
|
|
5
|
+
* pi-agent-core's `AgentTool<TParameters extends TSchema>` requires a schema built
|
|
6
|
+
* with the `typebox` package (the earendil fork), NOT PD's usual `@sinclair/typebox`.
|
|
7
|
+
* The two packages are nominally incompatible TS types and PD's Runtime Contract
|
|
8
|
+
* forbids `as` to bridge them. The `submit_output` tool's parameter schema must
|
|
9
|
+
* therefore be declared with `typebox` directly.
|
|
10
|
+
*
|
|
11
|
+
* This file redeclares the DreamerOutputV1 shape with `typebox`, structured so the
|
|
12
|
+
* `submit_output` tool can require the model to return a complete candidate set. The
|
|
13
|
+
* authoritative runtime validator remains `DefaultDreamerValidator` (which validates
|
|
14
|
+
* `unknown` field-by-field) — the schema here is the LLM-facing tool contract only.
|
|
15
|
+
*
|
|
16
|
+
* Consistency guarantee:
|
|
17
|
+
* `dreamer-output-typebox.test.ts` proves that for a shared sample set (valid +
|
|
18
|
+
* invalid candidates), this typebox schema's structural requirements match the
|
|
19
|
+
* @sinclair/typebox `DreamerOutputV1Schema` requirements. No `as`, no cast — the
|
|
20
|
+
* proof is behavioural (both reject the same invalid shapes).
|
|
21
|
+
*
|
|
22
|
+
* Boundary: pure data, zero I/O. Lives in core. No `node:*` imports.
|
|
23
|
+
*/
|
|
24
|
+
import { Type } from 'typebox';
|
|
25
|
+
/**
|
|
26
|
+
* Minimal typebox schema for a single dreamer candidate, matching
|
|
27
|
+
* DreamerCandidateSchema (dreamer-output.ts) field-for-field.
|
|
28
|
+
*/
|
|
29
|
+
export const DreamerCandidateTypebox = Type.Object({
|
|
30
|
+
candidateIndex: Type.Number(),
|
|
31
|
+
badDecision: Type.String({ minLength: 1 }),
|
|
32
|
+
betterDecision: Type.String({ minLength: 1 }),
|
|
33
|
+
rationale: Type.String({ minLength: 1 }),
|
|
34
|
+
confidence: Type.Number({ minimum: 0, maximum: 1 }),
|
|
35
|
+
riskLevel: Type.Union([Type.Literal('low'), Type.Literal('medium'), Type.Literal('high')]),
|
|
36
|
+
strategicPerspective: Type.String({ minLength: 1 }),
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* typebox redeclaration of DreamerOutputV1Schema.
|
|
40
|
+
*
|
|
41
|
+
* Used as the parameter schema of the `submit_output` tool in the L2 dreamer loop.
|
|
42
|
+
* Field-for-field equivalent to the @sinclair/typebox DreamerOutputV1Schema — see
|
|
43
|
+
* dreamer-output-typebox.test.ts for the consistency proof.
|
|
44
|
+
*/
|
|
45
|
+
export const DreamerOutputV1Typebox = Type.Object({
|
|
46
|
+
valid: Type.Boolean(),
|
|
47
|
+
taskId: Type.String({ minLength: 1 }),
|
|
48
|
+
candidates: Type.Array(DreamerCandidateTypebox, { minItems: 1, maxItems: 5 }),
|
|
49
|
+
sourcePrincipleId: Type.Optional(Type.String()),
|
|
50
|
+
sourcePainId: Type.Optional(Type.String()),
|
|
51
|
+
contextRefs: Type.Array(Type.String()),
|
|
52
|
+
generatedAt: Type.String({ minLength: 1 }),
|
|
53
|
+
reason: Type.Optional(Type.String()),
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=dreamer-output-typebox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dreamer-output-typebox.js","sourceRoot":"","sources":["../../../src/runtime-v2/tools/dreamer-output-typebox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC,MAAM,CAAC;IACjD,cAAc,EAAE,IAAI,CAAC,MAAM,EAAE;IAC7B,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC1C,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC7C,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACxC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACnD,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1F,oBAAoB,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;CACpD,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE;IACrB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACrC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,uBAAuB,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IAC7E,iBAAiB,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IAC/C,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IAC1C,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACtC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC1C,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import { type Static } from '@sinclair/typebox';
|
|
16
16
|
/**
|
|
17
|
-
* The 30+ telemetry event types: 3 core evolution + 8 M2 state transition + 1 M3 degradation + 8 M4 diagnostician + 3 M5 commit + 7 M6 runtime adapter.
|
|
17
|
+
* The 30+ telemetry event types: 3 core evolution + 8 M2 state transition + 1 M3 degradation + 8 M4 diagnostician + 3 M5 commit + 7 M6 runtime adapter + 2 PRI-419 L2 agent loop (dreamer_l2_turn, dreamer_l2_complete).
|
|
18
18
|
*
|
|
19
19
|
* Core evolution events (aligned with EvolutionHook methods):
|
|
20
20
|
* - pain_detected -> EvolutionStage 'pain_detected'
|
|
@@ -56,7 +56,7 @@ import { type Static } from '@sinclair/typebox';
|
|
|
56
56
|
* - output_schema_invalid — PRI-200 schema validation failed (before repair)
|
|
57
57
|
* - output_repair_exhausted — PRI-200 repair loop exhausted, output still invalid
|
|
58
58
|
*/
|
|
59
|
-
export declare const TelemetryEventType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"pain_detected">, import("@sinclair/typebox").TLiteral<"principle_candidate_created">, import("@sinclair/typebox").TLiteral<"principle_promoted">, import("@sinclair/typebox").TLiteral<"lease_acquired">, import("@sinclair/typebox").TLiteral<"lease_released">, import("@sinclair/typebox").TLiteral<"lease_renewed">, import("@sinclair/typebox").TLiteral<"lease_expired">, import("@sinclair/typebox").TLiteral<"task_retried">, import("@sinclair/typebox").TLiteral<"task_failed">, import("@sinclair/typebox").TLiteral<"task_succeeded">, import("@sinclair/typebox").TLiteral<"run_started">, import("@sinclair/typebox").TLiteral<"run_completed">, import("@sinclair/typebox").TLiteral<"degradation_triggered">, import("@sinclair/typebox").TLiteral<"diagnostician_task_leased">, import("@sinclair/typebox").TLiteral<"diagnostician_context_built">, import("@sinclair/typebox").TLiteral<"diagnostician_run_started">, import("@sinclair/typebox").TLiteral<"diagnostician_run_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_output_invalid">, import("@sinclair/typebox").TLiteral<"diagnostician_task_succeeded">, import("@sinclair/typebox").TLiteral<"diagnostician_task_retried">, import("@sinclair/typebox").TLiteral<"diagnostician_task_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"diag_router_invariant_override">, import("@sinclair/typebox").TLiteral<"diagnostician_core_grounding_result">, import("@sinclair/typebox").TLiteral<"diagnostician_artifact_committed">, import("@sinclair/typebox").TLiteral<"diagnostician_artifact_commit_failed">, import("@sinclair/typebox").TLiteral<"principle_candidate_registered">, import("@sinclair/typebox").TLiteral<"runtime_adapter_selected">, import("@sinclair/typebox").TLiteral<"runtime_invocation_started">, import("@sinclair/typebox").TLiteral<"runtime_invocation_succeeded">, import("@sinclair/typebox").TLiteral<"runtime_invocation_failed">, import("@sinclair/typebox").TLiteral<"output_validation_succeeded">, import("@sinclair/typebox").TLiteral<"output_validation_failed">, import("@sinclair/typebox").TLiteral<"output_repair_attempted">, import("@sinclair/typebox").TLiteral<"output_extraction_failed">, import("@sinclair/typebox").TLiteral<"output_schema_invalid">, import("@sinclair/typebox").TLiteral<"output_repair_exhausted">, import("@sinclair/typebox").TLiteral<"output_path_chosen">, import("@sinclair/typebox").TLiteral<"output_path_fallback">, import("@sinclair/typebox").TLiteral<"dreamer_task_leased">, import("@sinclair/typebox").TLiteral<"dreamer_context_built">, import("@sinclair/typebox").TLiteral<"dreamer_run_started">, import("@sinclair/typebox").TLiteral<"dreamer_run_failed">, import("@sinclair/typebox").TLiteral<"dreamer_output_invalid">, import("@sinclair/typebox").TLiteral<"dreamer_output_validated">, import("@sinclair/typebox").TLiteral<"dreamer_task_succeeded">, import("@sinclair/typebox").TLiteral<"dreamer_task_retried">, import("@sinclair/typebox").TLiteral<"dreamer_task_failed">, import("@sinclair/typebox").TLiteral<"dreamer_candidate_generated">, import("@sinclair/typebox").TLiteral<"dreamer_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"dreamer_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"dreamer_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"dreamer_update_output_failed">, import("@sinclair/typebox").TLiteral<"dreamer_context_partial">, import("@sinclair/typebox").TLiteral<"dreamer_mark_failed_error">, import("@sinclair/typebox").TLiteral<"dreamer_mark_retry_error">, import("@sinclair/typebox").TLiteral<"philosopher_task_leased">, import("@sinclair/typebox").TLiteral<"philosopher_context_built">, import("@sinclair/typebox").TLiteral<"philosopher_run_started">, import("@sinclair/typebox").TLiteral<"philosopher_run_failed">, import("@sinclair/typebox").TLiteral<"philosopher_output_invalid">, import("@sinclair/typebox").TLiteral<"philosopher_output_validated">, import("@sinclair/typebox").TLiteral<"philosopher_task_succeeded">, import("@sinclair/typebox").TLiteral<"philosopher_task_retried">, import("@sinclair/typebox").TLiteral<"philosopher_task_failed">, import("@sinclair/typebox").TLiteral<"philosopher_principle_candidate_generated">, import("@sinclair/typebox").TLiteral<"philosopher_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"philosopher_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"philosopher_update_output_failed">, import("@sinclair/typebox").TLiteral<"philosopher_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"philosopher_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"philosopher_lineage_partial">, import("@sinclair/typebox").TLiteral<"philosopher_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"philosopher_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"philosopher_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"philosopher_mark_failed_error">, import("@sinclair/typebox").TLiteral<"philosopher_mark_retry_error">, import("@sinclair/typebox").TLiteral<"artificer_task_leased">, import("@sinclair/typebox").TLiteral<"artificer_context_built">, import("@sinclair/typebox").TLiteral<"artificer_run_started">, import("@sinclair/typebox").TLiteral<"artificer_run_failed">, import("@sinclair/typebox").TLiteral<"artificer_output_invalid">, import("@sinclair/typebox").TLiteral<"artificer_output_validated">, import("@sinclair/typebox").TLiteral<"artificer_task_succeeded">, import("@sinclair/typebox").TLiteral<"artificer_task_retried">, import("@sinclair/typebox").TLiteral<"artificer_task_failed">, import("@sinclair/typebox").TLiteral<"artificer_implementation_plan_generated">, import("@sinclair/typebox").TLiteral<"artificer_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"artificer_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"artificer_update_output_failed">, import("@sinclair/typebox").TLiteral<"artificer_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"artificer_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"artificer_lineage_partial">, import("@sinclair/typebox").TLiteral<"artificer_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"artificer_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"artificer_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"artificer_mark_failed_error">, import("@sinclair/typebox").TLiteral<"artificer_mark_retry_error">, import("@sinclair/typebox").TLiteral<"evaluator_task_leased">, import("@sinclair/typebox").TLiteral<"evaluator_context_built">, import("@sinclair/typebox").TLiteral<"evaluator_run_started">, import("@sinclair/typebox").TLiteral<"evaluator_run_failed">, import("@sinclair/typebox").TLiteral<"evaluator_output_invalid">, import("@sinclair/typebox").TLiteral<"evaluator_output_validated">, import("@sinclair/typebox").TLiteral<"evaluator_task_succeeded">, import("@sinclair/typebox").TLiteral<"evaluator_task_retried">, import("@sinclair/typebox").TLiteral<"evaluator_task_failed">, import("@sinclair/typebox").TLiteral<"evaluator_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"evaluator_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"evaluator_update_output_failed">, import("@sinclair/typebox").TLiteral<"evaluator_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"evaluator_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"evaluator_lineage_partial">, import("@sinclair/typebox").TLiteral<"evaluator_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"evaluator_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"evaluator_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"evaluator_mark_failed_error">, import("@sinclair/typebox").TLiteral<"evaluator_mark_retry_error">, import("@sinclair/typebox").TLiteral<"evaluator_decision_recorded">, import("@sinclair/typebox").TLiteral<"scribe_task_leased">, import("@sinclair/typebox").TLiteral<"scribe_context_built">, import("@sinclair/typebox").TLiteral<"scribe_run_started">, import("@sinclair/typebox").TLiteral<"scribe_run_failed">, import("@sinclair/typebox").TLiteral<"scribe_output_invalid">, import("@sinclair/typebox").TLiteral<"scribe_output_validated">, import("@sinclair/typebox").TLiteral<"scribe_task_succeeded">, import("@sinclair/typebox").TLiteral<"scribe_task_retried">, import("@sinclair/typebox").TLiteral<"scribe_task_failed">, import("@sinclair/typebox").TLiteral<"scribe_principle_draft_generated">, import("@sinclair/typebox").TLiteral<"scribe_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"scribe_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"scribe_update_output_failed">, import("@sinclair/typebox").TLiteral<"scribe_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"scribe_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"scribe_lineage_partial">, import("@sinclair/typebox").TLiteral<"scribe_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"scribe_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"scribe_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"scribe_mark_failed_error">, import("@sinclair/typebox").TLiteral<"scribe_mark_retry_error">]>;
|
|
59
|
+
export declare const TelemetryEventType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"pain_detected">, import("@sinclair/typebox").TLiteral<"principle_candidate_created">, import("@sinclair/typebox").TLiteral<"principle_promoted">, import("@sinclair/typebox").TLiteral<"lease_acquired">, import("@sinclair/typebox").TLiteral<"lease_released">, import("@sinclair/typebox").TLiteral<"lease_renewed">, import("@sinclair/typebox").TLiteral<"lease_expired">, import("@sinclair/typebox").TLiteral<"task_retried">, import("@sinclair/typebox").TLiteral<"task_failed">, import("@sinclair/typebox").TLiteral<"task_succeeded">, import("@sinclair/typebox").TLiteral<"run_started">, import("@sinclair/typebox").TLiteral<"run_completed">, import("@sinclair/typebox").TLiteral<"degradation_triggered">, import("@sinclair/typebox").TLiteral<"diagnostician_task_leased">, import("@sinclair/typebox").TLiteral<"diagnostician_context_built">, import("@sinclair/typebox").TLiteral<"diagnostician_run_started">, import("@sinclair/typebox").TLiteral<"diagnostician_run_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_output_invalid">, import("@sinclair/typebox").TLiteral<"diagnostician_task_succeeded">, import("@sinclair/typebox").TLiteral<"diagnostician_task_retried">, import("@sinclair/typebox").TLiteral<"diagnostician_task_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"diag_router_invariant_override">, import("@sinclair/typebox").TLiteral<"diagnostician_core_grounding_result">, import("@sinclair/typebox").TLiteral<"diagnostician_artifact_committed">, import("@sinclair/typebox").TLiteral<"diagnostician_artifact_commit_failed">, import("@sinclair/typebox").TLiteral<"principle_candidate_registered">, import("@sinclair/typebox").TLiteral<"runtime_adapter_selected">, import("@sinclair/typebox").TLiteral<"runtime_invocation_started">, import("@sinclair/typebox").TLiteral<"runtime_invocation_succeeded">, import("@sinclair/typebox").TLiteral<"runtime_invocation_failed">, import("@sinclair/typebox").TLiteral<"output_validation_succeeded">, import("@sinclair/typebox").TLiteral<"output_validation_failed">, import("@sinclair/typebox").TLiteral<"output_repair_attempted">, import("@sinclair/typebox").TLiteral<"output_extraction_failed">, import("@sinclair/typebox").TLiteral<"output_schema_invalid">, import("@sinclair/typebox").TLiteral<"output_repair_exhausted">, import("@sinclair/typebox").TLiteral<"output_path_chosen">, import("@sinclair/typebox").TLiteral<"output_path_fallback">, import("@sinclair/typebox").TLiteral<"dreamer_task_leased">, import("@sinclair/typebox").TLiteral<"dreamer_context_built">, import("@sinclair/typebox").TLiteral<"dreamer_run_started">, import("@sinclair/typebox").TLiteral<"dreamer_run_failed">, import("@sinclair/typebox").TLiteral<"dreamer_output_invalid">, import("@sinclair/typebox").TLiteral<"dreamer_output_validated">, import("@sinclair/typebox").TLiteral<"dreamer_task_succeeded">, import("@sinclair/typebox").TLiteral<"dreamer_task_retried">, import("@sinclair/typebox").TLiteral<"dreamer_task_failed">, import("@sinclair/typebox").TLiteral<"dreamer_candidate_generated">, import("@sinclair/typebox").TLiteral<"dreamer_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"dreamer_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"dreamer_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"dreamer_update_output_failed">, import("@sinclair/typebox").TLiteral<"dreamer_context_partial">, import("@sinclair/typebox").TLiteral<"dreamer_mark_failed_error">, import("@sinclair/typebox").TLiteral<"dreamer_mark_retry_error">, import("@sinclair/typebox").TLiteral<"philosopher_task_leased">, import("@sinclair/typebox").TLiteral<"philosopher_context_built">, import("@sinclair/typebox").TLiteral<"philosopher_run_started">, import("@sinclair/typebox").TLiteral<"philosopher_run_failed">, import("@sinclair/typebox").TLiteral<"philosopher_output_invalid">, import("@sinclair/typebox").TLiteral<"philosopher_output_validated">, import("@sinclair/typebox").TLiteral<"philosopher_task_succeeded">, import("@sinclair/typebox").TLiteral<"philosopher_task_retried">, import("@sinclair/typebox").TLiteral<"philosopher_task_failed">, import("@sinclair/typebox").TLiteral<"philosopher_principle_candidate_generated">, import("@sinclair/typebox").TLiteral<"philosopher_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"philosopher_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"philosopher_update_output_failed">, import("@sinclair/typebox").TLiteral<"philosopher_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"philosopher_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"philosopher_lineage_partial">, import("@sinclair/typebox").TLiteral<"philosopher_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"philosopher_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"philosopher_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"philosopher_mark_failed_error">, import("@sinclair/typebox").TLiteral<"philosopher_mark_retry_error">, import("@sinclair/typebox").TLiteral<"artificer_task_leased">, import("@sinclair/typebox").TLiteral<"artificer_context_built">, import("@sinclair/typebox").TLiteral<"artificer_run_started">, import("@sinclair/typebox").TLiteral<"artificer_run_failed">, import("@sinclair/typebox").TLiteral<"artificer_output_invalid">, import("@sinclair/typebox").TLiteral<"artificer_output_validated">, import("@sinclair/typebox").TLiteral<"artificer_task_succeeded">, import("@sinclair/typebox").TLiteral<"artificer_task_retried">, import("@sinclair/typebox").TLiteral<"artificer_task_failed">, import("@sinclair/typebox").TLiteral<"artificer_implementation_plan_generated">, import("@sinclair/typebox").TLiteral<"artificer_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"artificer_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"artificer_update_output_failed">, import("@sinclair/typebox").TLiteral<"artificer_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"artificer_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"artificer_lineage_partial">, import("@sinclair/typebox").TLiteral<"artificer_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"artificer_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"artificer_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"artificer_mark_failed_error">, import("@sinclair/typebox").TLiteral<"artificer_mark_retry_error">, import("@sinclair/typebox").TLiteral<"evaluator_task_leased">, import("@sinclair/typebox").TLiteral<"evaluator_context_built">, import("@sinclair/typebox").TLiteral<"evaluator_run_started">, import("@sinclair/typebox").TLiteral<"evaluator_run_failed">, import("@sinclair/typebox").TLiteral<"evaluator_output_invalid">, import("@sinclair/typebox").TLiteral<"evaluator_output_validated">, import("@sinclair/typebox").TLiteral<"evaluator_task_succeeded">, import("@sinclair/typebox").TLiteral<"evaluator_task_retried">, import("@sinclair/typebox").TLiteral<"evaluator_task_failed">, import("@sinclair/typebox").TLiteral<"evaluator_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"evaluator_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"evaluator_update_output_failed">, import("@sinclair/typebox").TLiteral<"evaluator_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"evaluator_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"evaluator_lineage_partial">, import("@sinclair/typebox").TLiteral<"evaluator_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"evaluator_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"evaluator_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"evaluator_mark_failed_error">, import("@sinclair/typebox").TLiteral<"evaluator_mark_retry_error">, import("@sinclair/typebox").TLiteral<"evaluator_decision_recorded">, import("@sinclair/typebox").TLiteral<"scribe_task_leased">, import("@sinclair/typebox").TLiteral<"scribe_context_built">, import("@sinclair/typebox").TLiteral<"scribe_run_started">, import("@sinclair/typebox").TLiteral<"scribe_run_failed">, import("@sinclair/typebox").TLiteral<"scribe_output_invalid">, import("@sinclair/typebox").TLiteral<"scribe_output_validated">, import("@sinclair/typebox").TLiteral<"scribe_task_succeeded">, import("@sinclair/typebox").TLiteral<"scribe_task_retried">, import("@sinclair/typebox").TLiteral<"scribe_task_failed">, import("@sinclair/typebox").TLiteral<"scribe_principle_draft_generated">, import("@sinclair/typebox").TLiteral<"scribe_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"scribe_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"scribe_update_output_failed">, import("@sinclair/typebox").TLiteral<"scribe_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"scribe_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"scribe_lineage_partial">, import("@sinclair/typebox").TLiteral<"scribe_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"scribe_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"scribe_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"scribe_mark_failed_error">, import("@sinclair/typebox").TLiteral<"scribe_mark_retry_error">, import("@sinclair/typebox").TLiteral<"dreamer_l2_turn">, import("@sinclair/typebox").TLiteral<"dreamer_l2_complete">]>;
|
|
60
60
|
export type TelemetryEventType = Static<typeof TelemetryEventType>;
|
|
61
61
|
/**
|
|
62
62
|
* Schema for an in-process telemetry event.
|
|
@@ -72,7 +72,7 @@ export type TelemetryEventType = Static<typeof TelemetryEventType>;
|
|
|
72
72
|
*/
|
|
73
73
|
export declare const TelemetryEventSchema: import("@sinclair/typebox").TObject<{
|
|
74
74
|
/** Event type (one of the 3 core types) */
|
|
75
|
-
eventType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"pain_detected">, import("@sinclair/typebox").TLiteral<"principle_candidate_created">, import("@sinclair/typebox").TLiteral<"principle_promoted">, import("@sinclair/typebox").TLiteral<"lease_acquired">, import("@sinclair/typebox").TLiteral<"lease_released">, import("@sinclair/typebox").TLiteral<"lease_renewed">, import("@sinclair/typebox").TLiteral<"lease_expired">, import("@sinclair/typebox").TLiteral<"task_retried">, import("@sinclair/typebox").TLiteral<"task_failed">, import("@sinclair/typebox").TLiteral<"task_succeeded">, import("@sinclair/typebox").TLiteral<"run_started">, import("@sinclair/typebox").TLiteral<"run_completed">, import("@sinclair/typebox").TLiteral<"degradation_triggered">, import("@sinclair/typebox").TLiteral<"diagnostician_task_leased">, import("@sinclair/typebox").TLiteral<"diagnostician_context_built">, import("@sinclair/typebox").TLiteral<"diagnostician_run_started">, import("@sinclair/typebox").TLiteral<"diagnostician_run_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_output_invalid">, import("@sinclair/typebox").TLiteral<"diagnostician_task_succeeded">, import("@sinclair/typebox").TLiteral<"diagnostician_task_retried">, import("@sinclair/typebox").TLiteral<"diagnostician_task_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"diag_router_invariant_override">, import("@sinclair/typebox").TLiteral<"diagnostician_core_grounding_result">, import("@sinclair/typebox").TLiteral<"diagnostician_artifact_committed">, import("@sinclair/typebox").TLiteral<"diagnostician_artifact_commit_failed">, import("@sinclair/typebox").TLiteral<"principle_candidate_registered">, import("@sinclair/typebox").TLiteral<"runtime_adapter_selected">, import("@sinclair/typebox").TLiteral<"runtime_invocation_started">, import("@sinclair/typebox").TLiteral<"runtime_invocation_succeeded">, import("@sinclair/typebox").TLiteral<"runtime_invocation_failed">, import("@sinclair/typebox").TLiteral<"output_validation_succeeded">, import("@sinclair/typebox").TLiteral<"output_validation_failed">, import("@sinclair/typebox").TLiteral<"output_repair_attempted">, import("@sinclair/typebox").TLiteral<"output_extraction_failed">, import("@sinclair/typebox").TLiteral<"output_schema_invalid">, import("@sinclair/typebox").TLiteral<"output_repair_exhausted">, import("@sinclair/typebox").TLiteral<"output_path_chosen">, import("@sinclair/typebox").TLiteral<"output_path_fallback">, import("@sinclair/typebox").TLiteral<"dreamer_task_leased">, import("@sinclair/typebox").TLiteral<"dreamer_context_built">, import("@sinclair/typebox").TLiteral<"dreamer_run_started">, import("@sinclair/typebox").TLiteral<"dreamer_run_failed">, import("@sinclair/typebox").TLiteral<"dreamer_output_invalid">, import("@sinclair/typebox").TLiteral<"dreamer_output_validated">, import("@sinclair/typebox").TLiteral<"dreamer_task_succeeded">, import("@sinclair/typebox").TLiteral<"dreamer_task_retried">, import("@sinclair/typebox").TLiteral<"dreamer_task_failed">, import("@sinclair/typebox").TLiteral<"dreamer_candidate_generated">, import("@sinclair/typebox").TLiteral<"dreamer_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"dreamer_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"dreamer_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"dreamer_update_output_failed">, import("@sinclair/typebox").TLiteral<"dreamer_context_partial">, import("@sinclair/typebox").TLiteral<"dreamer_mark_failed_error">, import("@sinclair/typebox").TLiteral<"dreamer_mark_retry_error">, import("@sinclair/typebox").TLiteral<"philosopher_task_leased">, import("@sinclair/typebox").TLiteral<"philosopher_context_built">, import("@sinclair/typebox").TLiteral<"philosopher_run_started">, import("@sinclair/typebox").TLiteral<"philosopher_run_failed">, import("@sinclair/typebox").TLiteral<"philosopher_output_invalid">, import("@sinclair/typebox").TLiteral<"philosopher_output_validated">, import("@sinclair/typebox").TLiteral<"philosopher_task_succeeded">, import("@sinclair/typebox").TLiteral<"philosopher_task_retried">, import("@sinclair/typebox").TLiteral<"philosopher_task_failed">, import("@sinclair/typebox").TLiteral<"philosopher_principle_candidate_generated">, import("@sinclair/typebox").TLiteral<"philosopher_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"philosopher_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"philosopher_update_output_failed">, import("@sinclair/typebox").TLiteral<"philosopher_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"philosopher_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"philosopher_lineage_partial">, import("@sinclair/typebox").TLiteral<"philosopher_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"philosopher_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"philosopher_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"philosopher_mark_failed_error">, import("@sinclair/typebox").TLiteral<"philosopher_mark_retry_error">, import("@sinclair/typebox").TLiteral<"artificer_task_leased">, import("@sinclair/typebox").TLiteral<"artificer_context_built">, import("@sinclair/typebox").TLiteral<"artificer_run_started">, import("@sinclair/typebox").TLiteral<"artificer_run_failed">, import("@sinclair/typebox").TLiteral<"artificer_output_invalid">, import("@sinclair/typebox").TLiteral<"artificer_output_validated">, import("@sinclair/typebox").TLiteral<"artificer_task_succeeded">, import("@sinclair/typebox").TLiteral<"artificer_task_retried">, import("@sinclair/typebox").TLiteral<"artificer_task_failed">, import("@sinclair/typebox").TLiteral<"artificer_implementation_plan_generated">, import("@sinclair/typebox").TLiteral<"artificer_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"artificer_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"artificer_update_output_failed">, import("@sinclair/typebox").TLiteral<"artificer_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"artificer_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"artificer_lineage_partial">, import("@sinclair/typebox").TLiteral<"artificer_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"artificer_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"artificer_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"artificer_mark_failed_error">, import("@sinclair/typebox").TLiteral<"artificer_mark_retry_error">, import("@sinclair/typebox").TLiteral<"evaluator_task_leased">, import("@sinclair/typebox").TLiteral<"evaluator_context_built">, import("@sinclair/typebox").TLiteral<"evaluator_run_started">, import("@sinclair/typebox").TLiteral<"evaluator_run_failed">, import("@sinclair/typebox").TLiteral<"evaluator_output_invalid">, import("@sinclair/typebox").TLiteral<"evaluator_output_validated">, import("@sinclair/typebox").TLiteral<"evaluator_task_succeeded">, import("@sinclair/typebox").TLiteral<"evaluator_task_retried">, import("@sinclair/typebox").TLiteral<"evaluator_task_failed">, import("@sinclair/typebox").TLiteral<"evaluator_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"evaluator_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"evaluator_update_output_failed">, import("@sinclair/typebox").TLiteral<"evaluator_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"evaluator_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"evaluator_lineage_partial">, import("@sinclair/typebox").TLiteral<"evaluator_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"evaluator_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"evaluator_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"evaluator_mark_failed_error">, import("@sinclair/typebox").TLiteral<"evaluator_mark_retry_error">, import("@sinclair/typebox").TLiteral<"evaluator_decision_recorded">, import("@sinclair/typebox").TLiteral<"scribe_task_leased">, import("@sinclair/typebox").TLiteral<"scribe_context_built">, import("@sinclair/typebox").TLiteral<"scribe_run_started">, import("@sinclair/typebox").TLiteral<"scribe_run_failed">, import("@sinclair/typebox").TLiteral<"scribe_output_invalid">, import("@sinclair/typebox").TLiteral<"scribe_output_validated">, import("@sinclair/typebox").TLiteral<"scribe_task_succeeded">, import("@sinclair/typebox").TLiteral<"scribe_task_retried">, import("@sinclair/typebox").TLiteral<"scribe_task_failed">, import("@sinclair/typebox").TLiteral<"scribe_principle_draft_generated">, import("@sinclair/typebox").TLiteral<"scribe_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"scribe_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"scribe_update_output_failed">, import("@sinclair/typebox").TLiteral<"scribe_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"scribe_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"scribe_lineage_partial">, import("@sinclair/typebox").TLiteral<"scribe_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"scribe_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"scribe_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"scribe_mark_failed_error">, import("@sinclair/typebox").TLiteral<"scribe_mark_retry_error">]>;
|
|
75
|
+
eventType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"pain_detected">, import("@sinclair/typebox").TLiteral<"principle_candidate_created">, import("@sinclair/typebox").TLiteral<"principle_promoted">, import("@sinclair/typebox").TLiteral<"lease_acquired">, import("@sinclair/typebox").TLiteral<"lease_released">, import("@sinclair/typebox").TLiteral<"lease_renewed">, import("@sinclair/typebox").TLiteral<"lease_expired">, import("@sinclair/typebox").TLiteral<"task_retried">, import("@sinclair/typebox").TLiteral<"task_failed">, import("@sinclair/typebox").TLiteral<"task_succeeded">, import("@sinclair/typebox").TLiteral<"run_started">, import("@sinclair/typebox").TLiteral<"run_completed">, import("@sinclair/typebox").TLiteral<"degradation_triggered">, import("@sinclair/typebox").TLiteral<"diagnostician_task_leased">, import("@sinclair/typebox").TLiteral<"diagnostician_context_built">, import("@sinclair/typebox").TLiteral<"diagnostician_run_started">, import("@sinclair/typebox").TLiteral<"diagnostician_run_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_output_invalid">, import("@sinclair/typebox").TLiteral<"diagnostician_task_succeeded">, import("@sinclair/typebox").TLiteral<"diagnostician_task_retried">, import("@sinclair/typebox").TLiteral<"diagnostician_task_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"diagnostician_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"diag_router_invariant_override">, import("@sinclair/typebox").TLiteral<"diagnostician_core_grounding_result">, import("@sinclair/typebox").TLiteral<"diagnostician_artifact_committed">, import("@sinclair/typebox").TLiteral<"diagnostician_artifact_commit_failed">, import("@sinclair/typebox").TLiteral<"principle_candidate_registered">, import("@sinclair/typebox").TLiteral<"runtime_adapter_selected">, import("@sinclair/typebox").TLiteral<"runtime_invocation_started">, import("@sinclair/typebox").TLiteral<"runtime_invocation_succeeded">, import("@sinclair/typebox").TLiteral<"runtime_invocation_failed">, import("@sinclair/typebox").TLiteral<"output_validation_succeeded">, import("@sinclair/typebox").TLiteral<"output_validation_failed">, import("@sinclair/typebox").TLiteral<"output_repair_attempted">, import("@sinclair/typebox").TLiteral<"output_extraction_failed">, import("@sinclair/typebox").TLiteral<"output_schema_invalid">, import("@sinclair/typebox").TLiteral<"output_repair_exhausted">, import("@sinclair/typebox").TLiteral<"output_path_chosen">, import("@sinclair/typebox").TLiteral<"output_path_fallback">, import("@sinclair/typebox").TLiteral<"dreamer_task_leased">, import("@sinclair/typebox").TLiteral<"dreamer_context_built">, import("@sinclair/typebox").TLiteral<"dreamer_run_started">, import("@sinclair/typebox").TLiteral<"dreamer_run_failed">, import("@sinclair/typebox").TLiteral<"dreamer_output_invalid">, import("@sinclair/typebox").TLiteral<"dreamer_output_validated">, import("@sinclair/typebox").TLiteral<"dreamer_task_succeeded">, import("@sinclair/typebox").TLiteral<"dreamer_task_retried">, import("@sinclair/typebox").TLiteral<"dreamer_task_failed">, import("@sinclair/typebox").TLiteral<"dreamer_candidate_generated">, import("@sinclair/typebox").TLiteral<"dreamer_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"dreamer_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"dreamer_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"dreamer_update_output_failed">, import("@sinclair/typebox").TLiteral<"dreamer_context_partial">, import("@sinclair/typebox").TLiteral<"dreamer_mark_failed_error">, import("@sinclair/typebox").TLiteral<"dreamer_mark_retry_error">, import("@sinclair/typebox").TLiteral<"philosopher_task_leased">, import("@sinclair/typebox").TLiteral<"philosopher_context_built">, import("@sinclair/typebox").TLiteral<"philosopher_run_started">, import("@sinclair/typebox").TLiteral<"philosopher_run_failed">, import("@sinclair/typebox").TLiteral<"philosopher_output_invalid">, import("@sinclair/typebox").TLiteral<"philosopher_output_validated">, import("@sinclair/typebox").TLiteral<"philosopher_task_succeeded">, import("@sinclair/typebox").TLiteral<"philosopher_task_retried">, import("@sinclair/typebox").TLiteral<"philosopher_task_failed">, import("@sinclair/typebox").TLiteral<"philosopher_principle_candidate_generated">, import("@sinclair/typebox").TLiteral<"philosopher_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"philosopher_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"philosopher_update_output_failed">, import("@sinclair/typebox").TLiteral<"philosopher_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"philosopher_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"philosopher_lineage_partial">, import("@sinclair/typebox").TLiteral<"philosopher_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"philosopher_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"philosopher_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"philosopher_mark_failed_error">, import("@sinclair/typebox").TLiteral<"philosopher_mark_retry_error">, import("@sinclair/typebox").TLiteral<"artificer_task_leased">, import("@sinclair/typebox").TLiteral<"artificer_context_built">, import("@sinclair/typebox").TLiteral<"artificer_run_started">, import("@sinclair/typebox").TLiteral<"artificer_run_failed">, import("@sinclair/typebox").TLiteral<"artificer_output_invalid">, import("@sinclair/typebox").TLiteral<"artificer_output_validated">, import("@sinclair/typebox").TLiteral<"artificer_task_succeeded">, import("@sinclair/typebox").TLiteral<"artificer_task_retried">, import("@sinclair/typebox").TLiteral<"artificer_task_failed">, import("@sinclair/typebox").TLiteral<"artificer_implementation_plan_generated">, import("@sinclair/typebox").TLiteral<"artificer_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"artificer_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"artificer_update_output_failed">, import("@sinclair/typebox").TLiteral<"artificer_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"artificer_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"artificer_lineage_partial">, import("@sinclair/typebox").TLiteral<"artificer_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"artificer_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"artificer_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"artificer_mark_failed_error">, import("@sinclair/typebox").TLiteral<"artificer_mark_retry_error">, import("@sinclair/typebox").TLiteral<"evaluator_task_leased">, import("@sinclair/typebox").TLiteral<"evaluator_context_built">, import("@sinclair/typebox").TLiteral<"evaluator_run_started">, import("@sinclair/typebox").TLiteral<"evaluator_run_failed">, import("@sinclair/typebox").TLiteral<"evaluator_output_invalid">, import("@sinclair/typebox").TLiteral<"evaluator_output_validated">, import("@sinclair/typebox").TLiteral<"evaluator_task_succeeded">, import("@sinclair/typebox").TLiteral<"evaluator_task_retried">, import("@sinclair/typebox").TLiteral<"evaluator_task_failed">, import("@sinclair/typebox").TLiteral<"evaluator_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"evaluator_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"evaluator_update_output_failed">, import("@sinclair/typebox").TLiteral<"evaluator_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"evaluator_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"evaluator_lineage_partial">, import("@sinclair/typebox").TLiteral<"evaluator_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"evaluator_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"evaluator_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"evaluator_mark_failed_error">, import("@sinclair/typebox").TLiteral<"evaluator_mark_retry_error">, import("@sinclair/typebox").TLiteral<"evaluator_decision_recorded">, import("@sinclair/typebox").TLiteral<"scribe_task_leased">, import("@sinclair/typebox").TLiteral<"scribe_context_built">, import("@sinclair/typebox").TLiteral<"scribe_run_started">, import("@sinclair/typebox").TLiteral<"scribe_run_failed">, import("@sinclair/typebox").TLiteral<"scribe_output_invalid">, import("@sinclair/typebox").TLiteral<"scribe_output_validated">, import("@sinclair/typebox").TLiteral<"scribe_task_succeeded">, import("@sinclair/typebox").TLiteral<"scribe_task_retried">, import("@sinclair/typebox").TLiteral<"scribe_task_failed">, import("@sinclair/typebox").TLiteral<"scribe_principle_draft_generated">, import("@sinclair/typebox").TLiteral<"scribe_cancel_run_failed">, import("@sinclair/typebox").TLiteral<"scribe_mark_succeeded_failed">, import("@sinclair/typebox").TLiteral<"scribe_update_output_failed">, import("@sinclair/typebox").TLiteral<"scribe_dependency_not_succeeded">, import("@sinclair/typebox").TLiteral<"scribe_lineage_resolve_failed">, import("@sinclair/typebox").TLiteral<"scribe_lineage_partial">, import("@sinclair/typebox").TLiteral<"scribe_artifact_write_failed">, import("@sinclair/typebox").TLiteral<"scribe_wrong_task_kind">, import("@sinclair/typebox").TLiteral<"scribe_output_extraction_failed">, import("@sinclair/typebox").TLiteral<"scribe_mark_failed_error">, import("@sinclair/typebox").TLiteral<"scribe_mark_retry_error">, import("@sinclair/typebox").TLiteral<"dreamer_l2_turn">, import("@sinclair/typebox").TLiteral<"dreamer_l2_complete">]>;
|
|
76
76
|
/** Correlation trace ID for linking events across the pipeline */
|
|
77
77
|
traceId: import("@sinclair/typebox").TString;
|
|
78
78
|
/** ISO 8601 timestamp */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry-event.d.ts","sourceRoot":"","sources":["../src/telemetry-event.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAOtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"telemetry-event.d.ts","sourceRoot":"","sources":["../src/telemetry-event.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAOtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,kBAAkB,o4SA+J7B,CAAC;AAGH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAMnE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB;IAC/B,2CAA2C;;IAE3C,kEAAkE;;IAElE,yBAAyB;;IAEzB,yBAAyB;;IAEzB,wDAAwD;;IAExD,6BAA6B;;EAE7B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAMjE,MAAM,WAAW,8BAA8B;IAC7C,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,8BAA8B,CA8BrF"}
|
package/dist/telemetry-event.js
CHANGED
|
@@ -18,7 +18,7 @@ import { Value } from '@sinclair/typebox/value';
|
|
|
18
18
|
// Event Type Union
|
|
19
19
|
// ---------------------------------------------------------------------------
|
|
20
20
|
/**
|
|
21
|
-
* The 30+ telemetry event types: 3 core evolution + 8 M2 state transition + 1 M3 degradation + 8 M4 diagnostician + 3 M5 commit + 7 M6 runtime adapter.
|
|
21
|
+
* The 30+ telemetry event types: 3 core evolution + 8 M2 state transition + 1 M3 degradation + 8 M4 diagnostician + 3 M5 commit + 7 M6 runtime adapter + 2 PRI-419 L2 agent loop (dreamer_l2_turn, dreamer_l2_complete).
|
|
22
22
|
*
|
|
23
23
|
* Core evolution events (aligned with EvolutionHook methods):
|
|
24
24
|
* - pain_detected -> EvolutionStage 'pain_detected'
|
|
@@ -214,6 +214,11 @@ export const TelemetryEventType = Type.Union([
|
|
|
214
214
|
Type.Literal('scribe_output_extraction_failed'),
|
|
215
215
|
Type.Literal('scribe_mark_failed_error'),
|
|
216
216
|
Type.Literal('scribe_mark_retry_error'),
|
|
217
|
+
// PRI-419: Dreamer L2 multi-turn agent loop telemetry.
|
|
218
|
+
// - dreamer_l2_turn: emitted per tool-execution turn inside the L2 loop
|
|
219
|
+
// - dreamer_l2_complete: emitted when the loop finishes (turnCount, toolsInvoked, usedFallback)
|
|
220
|
+
Type.Literal('dreamer_l2_turn'),
|
|
221
|
+
Type.Literal('dreamer_l2_complete'),
|
|
217
222
|
]);
|
|
218
223
|
// ---------------------------------------------------------------------------
|
|
219
224
|
// TelemetryEvent Schema
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry-event.js","sourceRoot":"","sources":["../src/telemetry-event.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC;IAC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AC,oBAAoB,EAAE,KAAK,CAAC,CAAC,CAAC;IAC9D,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,OAAO;YACL,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,MAAM,CAAC,GAAG,CAChB,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CACpD;SACF,CAAC;IACJ,CAAC;IAED,OAAO;QACL,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC;KAC/C,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.148.0",
|
|
4
4
|
"description": "Universal Evolution SDK - framework-agnostic pain signal capture and principle injection",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -85,6 +85,8 @@
|
|
|
85
85
|
"lint": "eslint src/"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
+
"@earendil-works/pi-agent-core": "^0.79.4",
|
|
89
|
+
"@earendil-works/pi-ai": "^0.79.4",
|
|
88
90
|
"@mariozechner/pi-ai": "^0.73.1",
|
|
89
91
|
"@sinclair/typebox": "^0.34.48",
|
|
90
92
|
"better-sqlite3": "^12.9.0",
|