@askdkc/kiokuko 0.2.3 → 0.2.4
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.ja.md +25 -5
- package/README.ko.md +24 -5
- package/README.md +29 -5
- package/README.zh-CN.md +21 -4
- package/dist/agent-file/render.d.ts +1 -1
- package/dist/agent-file/render.d.ts.map +1 -1
- package/dist/agent-file/render.js +5 -3
- package/dist/agent-file/render.js.map +1 -1
- package/dist/akinator/agent-task.js +2 -2
- package/dist/akinator/agent-task.js.map +1 -1
- package/dist/akinator/capabilities.d.ts +5 -1
- package/dist/akinator/capabilities.d.ts.map +1 -1
- package/dist/akinator/capabilities.js +20 -3
- package/dist/akinator/capabilities.js.map +1 -1
- package/dist/commands/agent.d.ts.map +1 -1
- package/dist/commands/agent.js +36 -9
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/doctor.d.ts +1 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +33 -0
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +2 -1
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/use.d.ts +1 -0
- package/dist/commands/use.d.ts.map +1 -1
- package/dist/commands/use.js +76 -16
- package/dist/commands/use.js.map +1 -1
- package/dist/enno-oduno/adapters.d.ts +4 -1
- package/dist/enno-oduno/adapters.d.ts.map +1 -1
- package/dist/enno-oduno/adapters.js +63 -14
- package/dist/enno-oduno/adapters.js.map +1 -1
- package/dist/enno-oduno/advisory.d.ts.map +1 -1
- package/dist/enno-oduno/advisory.js +133 -26
- package/dist/enno-oduno/advisory.js.map +1 -1
- package/dist/enno-oduno/confirmation.d.ts.map +1 -1
- package/dist/enno-oduno/confirmation.js +3 -0
- package/dist/enno-oduno/confirmation.js.map +1 -1
- package/dist/enno-oduno/directives.d.ts.map +1 -1
- package/dist/enno-oduno/directives.js +63 -34
- package/dist/enno-oduno/directives.js.map +1 -1
- package/dist/enno-oduno/experts.d.ts +1 -1
- package/dist/enno-oduno/experts.d.ts.map +1 -1
- package/dist/enno-oduno/experts.js +21 -7
- package/dist/enno-oduno/experts.js.map +1 -1
- package/dist/enno-oduno/instructions.d.ts +5 -4
- package/dist/enno-oduno/instructions.d.ts.map +1 -1
- package/dist/enno-oduno/instructions.js +4 -3
- package/dist/enno-oduno/instructions.js.map +1 -1
- package/dist/enno-oduno/plan-recovery.d.ts +15 -0
- package/dist/enno-oduno/plan-recovery.d.ts.map +1 -1
- package/dist/enno-oduno/plan-recovery.js +26 -0
- package/dist/enno-oduno/plan-recovery.js.map +1 -1
- package/dist/enno-oduno/repository-state.d.ts +8 -0
- package/dist/enno-oduno/repository-state.d.ts.map +1 -0
- package/dist/enno-oduno/repository-state.js +139 -0
- package/dist/enno-oduno/repository-state.js.map +1 -0
- package/dist/enno-oduno/role-runner.d.ts.map +1 -1
- package/dist/enno-oduno/role-runner.js +34 -1
- package/dist/enno-oduno/role-runner.js.map +1 -1
- package/dist/enno-oduno/sanitize.d.ts +17 -0
- package/dist/enno-oduno/sanitize.d.ts.map +1 -0
- package/dist/enno-oduno/sanitize.js +88 -0
- package/dist/enno-oduno/sanitize.js.map +1 -0
- package/dist/enno-oduno/schemas.d.ts +185 -36
- package/dist/enno-oduno/schemas.d.ts.map +1 -1
- package/dist/enno-oduno/schemas.js +172 -46
- package/dist/enno-oduno/schemas.js.map +1 -1
- package/dist/enno-oduno/service.d.ts +2 -1
- package/dist/enno-oduno/service.d.ts.map +1 -1
- package/dist/enno-oduno/service.js +310 -137
- package/dist/enno-oduno/service.js.map +1 -1
- package/dist/enno-oduno/store.d.ts +37 -4
- package/dist/enno-oduno/store.d.ts.map +1 -1
- package/dist/enno-oduno/store.js +343 -36
- package/dist/enno-oduno/store.js.map +1 -1
- package/dist/enno-oduno/types.d.ts +55 -2
- package/dist/enno-oduno/types.d.ts.map +1 -1
- package/dist/enno-oduno/types.js +1 -0
- package/dist/enno-oduno/types.js.map +1 -1
- package/dist/enno-oduno/validation-errors.d.ts +92 -0
- package/dist/enno-oduno/validation-errors.d.ts.map +1 -0
- package/dist/enno-oduno/validation-errors.js +151 -0
- package/dist/enno-oduno/validation-errors.js.map +1 -0
- package/dist/enno-oduno/verifier.d.ts +1 -0
- package/dist/enno-oduno/verifier.d.ts.map +1 -1
- package/dist/enno-oduno/verifier.js +70 -12
- package/dist/enno-oduno/verifier.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +70 -16
- package/dist/mcp/server.js.map +1 -1
- package/dist/server/routes/agent-capability-gate.js +2 -2
- package/dist/server/routes/agent-capability-gate.js.map +1 -1
- package/dist/setup/render.js +1 -1
- package/dist/setup/render.js.map +1 -1
- package/dist/setup/standard-skills.d.ts +12 -5
- package/dist/setup/standard-skills.d.ts.map +1 -1
- package/dist/setup/standard-skills.js +12 -2
- package/dist/setup/standard-skills.js.map +1 -1
- package/migrations/019_enno_execution_integrity.sql +149 -0
- package/package.json +1 -1
- package/skills/kiokuko-enno-oduno/SKILL.md +19 -8
- package/skills/kiokuko-single-purpose-functions/SKILL.md +18 -10
- package/skills/kiokuko-single-purpose-functions/references/problem-shaping-and-language.md +84 -0
- package/skills/kiokuko-ui-design-soul/SKILL.md +5 -1
- package/skills/memory-reasoning/SKILL.md +52 -0
- package/templates/AGENTS.md +6 -4
|
@@ -3,37 +3,31 @@ import { buildUserFacingConfirmation } from './confirmation.js';
|
|
|
3
3
|
import { STANDARD_ENNO_SKILL_NAME, STANDARD_FUNCTION_SKILL_NAME, STANDARD_SOUL_SKILL_NAME, } from '../setup/standard-skills.js';
|
|
4
4
|
import { orderedUniqueSkillNames } from './skills.js';
|
|
5
5
|
import { advisoryDirectiveForSnapshot } from './advisory.js';
|
|
6
|
+
import * as z from 'zod/v4';
|
|
7
|
+
import { finishSchema, idealSubmissionSchema, meditationSubmissionSchema, planSubmissionSchema, verificationPrepareSchema, workReportSchema, } from './schemas.js';
|
|
8
|
+
function jsonSchemaValue(value) {
|
|
9
|
+
if (value === null || typeof value === 'string' || typeof value === 'boolean')
|
|
10
|
+
return value;
|
|
11
|
+
if (typeof value === 'number' && Number.isFinite(value))
|
|
12
|
+
return value;
|
|
13
|
+
if (Array.isArray(value))
|
|
14
|
+
return value.map(jsonSchemaValue);
|
|
15
|
+
if (typeof value !== 'object') {
|
|
16
|
+
throw new KiokukoError('INTEGRITY_ERROR', 'Generated Enno report schema is not JSON-compatible');
|
|
17
|
+
}
|
|
18
|
+
return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, jsonSchemaValue(child)]));
|
|
19
|
+
}
|
|
20
|
+
const schemaProjection = (schema) => jsonSchemaValue(z.toJSONSchema(schema, { unrepresentable: 'any' }));
|
|
6
21
|
const REPORT_SCHEMAS = {
|
|
7
22
|
intake: {
|
|
8
23
|
type: 'object',
|
|
9
24
|
required: ['runId', 'sessionId', 'questionId', 'value'],
|
|
10
25
|
},
|
|
11
|
-
plan:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
type: 'object',
|
|
17
|
-
required: ['runId', 'expectedRevision', 'ideal'],
|
|
18
|
-
},
|
|
19
|
-
work: {
|
|
20
|
-
type: 'object',
|
|
21
|
-
required: ['workUnitId', 'result'],
|
|
22
|
-
},
|
|
23
|
-
verification: {
|
|
24
|
-
type: 'object',
|
|
25
|
-
required: ['runId', 'expectedRevision', 'review'],
|
|
26
|
-
properties: {
|
|
27
|
-
review: {
|
|
28
|
-
type: 'object',
|
|
29
|
-
required: ['decision', 'summary'],
|
|
30
|
-
properties: {
|
|
31
|
-
decision: { enum: ['accept', 'replan'] },
|
|
32
|
-
summary: { type: 'string' },
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
26
|
+
plan: schemaProjection(planSubmissionSchema),
|
|
27
|
+
ideal: schemaProjection(idealSubmissionSchema),
|
|
28
|
+
work: schemaProjection(workReportSchema),
|
|
29
|
+
verificationPrepare: schemaProjection(verificationPrepareSchema),
|
|
30
|
+
finalReview: schemaProjection(finishSchema),
|
|
37
31
|
confirmation: {
|
|
38
32
|
type: 'object',
|
|
39
33
|
required: ['runId', 'expectedRevision', 'idempotencyKey', 'action'],
|
|
@@ -42,11 +36,39 @@ const REPORT_SCHEMAS = {
|
|
|
42
36
|
requestedChanges: { type: 'string' },
|
|
43
37
|
},
|
|
44
38
|
},
|
|
45
|
-
meditation:
|
|
46
|
-
type: 'object',
|
|
47
|
-
required: ['runId', 'expectedRevision', 'meditation'],
|
|
48
|
-
},
|
|
39
|
+
meditation: schemaProjection(meditationSubmissionSchema),
|
|
49
40
|
};
|
|
41
|
+
function advisoryAwareReportSchema(base, snapshot) {
|
|
42
|
+
const clone = structuredClone(base);
|
|
43
|
+
if (snapshot.advisoryPhaseState?.state !== 'aggregated') {
|
|
44
|
+
if (typeof clone.properties === 'object' && clone.properties !== null && !Array.isArray(clone.properties)) {
|
|
45
|
+
delete clone.properties.advisoryRoundDigest;
|
|
46
|
+
delete clone.properties.advisoryDisposition;
|
|
47
|
+
}
|
|
48
|
+
if (Array.isArray(clone.required)) {
|
|
49
|
+
clone.required = clone.required.filter((item) => item !== 'advisoryRoundDigest' && item !== 'advisoryDisposition');
|
|
50
|
+
}
|
|
51
|
+
return clone;
|
|
52
|
+
}
|
|
53
|
+
const required = Array.isArray(clone.required) ? clone.required.filter((item) => typeof item === 'string') : [];
|
|
54
|
+
clone.required = [...new Set([...required, 'advisoryRoundDigest', 'advisoryDisposition'])];
|
|
55
|
+
clone.advisoryConsumption = {
|
|
56
|
+
advisoryRoundDigest: snapshot.advisoryPhaseState.inputDigest,
|
|
57
|
+
advisoryDisposition: snapshot.advisoryPhaseState.requiredDispositionSlots.map((slot) => ({
|
|
58
|
+
slotId: slot.slotId,
|
|
59
|
+
allowedDispositions: [...slot.allowedDispositions],
|
|
60
|
+
})),
|
|
61
|
+
};
|
|
62
|
+
return clone;
|
|
63
|
+
}
|
|
64
|
+
function executionReportSchema(snapshot) {
|
|
65
|
+
const clone = structuredClone(REPORT_SCHEMAS.work);
|
|
66
|
+
if (snapshot.clientKind === null || snapshot.clientSessionId === null)
|
|
67
|
+
return clone;
|
|
68
|
+
const required = Array.isArray(clone.required) ? clone.required.filter((item) => typeof item === 'string') : [];
|
|
69
|
+
clone.required = [...new Set([...required, 'leaseToken', 'routeEpoch'])];
|
|
70
|
+
return clone;
|
|
71
|
+
}
|
|
50
72
|
const CONFIRMATION_OBJECTIVE = `Return every item in userFacingConfirmation to the user in the user's language. Translate headings only; preserve paths, executable names, arguments, limits, and every listed item. Do not expose raw directive JSON, internal field names, WorkUnit IDs, expert IDs, or verifier IDs. Wait for explicit approve, revise, or cancel before calling enno_answer.`;
|
|
51
73
|
const ZENKI_SINGLE_PURPOSE_PLANNING_CONTRACT = `After ${STANDARD_SOUL_SKILL_NAME} routes the work, read the compact ${STANDARD_FUNCTION_SKILL_NAME} index before decomposing the WorkPlan. Shape every code-changing WorkUnit around one cohesive externally observable function or use-case contract with one responsibility and one reason to change. State its success, expected failures, effect profile, and focused runnable test target. Select one to three versioned expertRefs for its actual risks; a UI unit needs at least one code expert and one UI expert. Compose those units without meaningless micro-functions, unrelated responsibilities, or loading every expert fragment by default.`;
|
|
52
74
|
function boundedObjective(value) {
|
|
@@ -128,6 +150,7 @@ export function directiveForRun(snapshot) {
|
|
|
128
150
|
protocolVersion: 1,
|
|
129
151
|
runId: snapshot.runId,
|
|
130
152
|
contractRevision: snapshot.revision,
|
|
153
|
+
routeEpoch: snapshot.routeEpoch ?? 0,
|
|
131
154
|
role,
|
|
132
155
|
harness: harnessDirective(snapshot.clientKind, snapshot.clientVersion, role),
|
|
133
156
|
handoff: snapshot.handoff,
|
|
@@ -145,7 +168,7 @@ export function directiveForRun(snapshot) {
|
|
|
145
168
|
'Stop if a required capability is unavailable',
|
|
146
169
|
'Do not mutate the repository',
|
|
147
170
|
],
|
|
148
|
-
reportSchema: REPORT_SCHEMAS.plan,
|
|
171
|
+
reportSchema: advisoryAwareReportSchema(REPORT_SCHEMAS.plan, snapshot),
|
|
149
172
|
...(advisoryRound !== undefined && (snapshot.status !== 'enno_verifying' || snapshot.finalEvidenceReady) ? { advisoryRound } : {}),
|
|
150
173
|
};
|
|
151
174
|
}
|
|
@@ -155,6 +178,7 @@ export function directiveForRun(snapshot) {
|
|
|
155
178
|
protocolVersion: 1,
|
|
156
179
|
runId: snapshot.runId,
|
|
157
180
|
contractRevision: snapshot.revision,
|
|
181
|
+
routeEpoch: snapshot.routeEpoch ?? 0,
|
|
158
182
|
role,
|
|
159
183
|
harness: harnessDirective(snapshot.clientKind, snapshot.clientVersion, role),
|
|
160
184
|
handoff: snapshot.handoff,
|
|
@@ -166,16 +190,18 @@ export function directiveForRun(snapshot) {
|
|
|
166
190
|
stopConditions: [
|
|
167
191
|
'Do not change the approved scope, acceptance criteria, Skill snapshot, or verifiers',
|
|
168
192
|
'Read only the approved expertRefs unless the WorkUnit is returned to Zenki for replanning',
|
|
193
|
+
'Use only the current execution lease and route epoch; stop on a stale or conflicting lease',
|
|
169
194
|
'Report exactly one WorkUnit outcome',
|
|
170
195
|
'Stop and report when user judgment or unsafe execution is required',
|
|
171
196
|
],
|
|
172
|
-
reportSchema:
|
|
197
|
+
reportSchema: executionReportSchema(snapshot),
|
|
173
198
|
};
|
|
174
199
|
}
|
|
175
200
|
return {
|
|
176
201
|
protocolVersion: 1,
|
|
177
202
|
runId: snapshot.runId,
|
|
178
203
|
contractRevision: snapshot.revision,
|
|
204
|
+
routeEpoch: snapshot.routeEpoch ?? 0,
|
|
179
205
|
role,
|
|
180
206
|
harness: harnessDirective(snapshot.clientKind, snapshot.clientVersion, role),
|
|
181
207
|
handoff: snapshot.handoff,
|
|
@@ -201,12 +227,14 @@ export function directiveForRun(snapshot) {
|
|
|
201
227
|
]
|
|
202
228
|
: ['Only Enno-Oduno may advance state', 'Fail closed on revision or identity mismatch'],
|
|
203
229
|
reportSchema: snapshot.status === 'oduno_ideal'
|
|
204
|
-
? REPORT_SCHEMAS.ideal
|
|
230
|
+
? advisoryAwareReportSchema(REPORT_SCHEMAS.ideal, snapshot)
|
|
205
231
|
: snapshot.status === 'needs_confirmation'
|
|
206
232
|
? REPORT_SCHEMAS.confirmation
|
|
207
233
|
: snapshot.status === 'oduno_meditation'
|
|
208
234
|
? REPORT_SCHEMAS.meditation
|
|
209
|
-
:
|
|
235
|
+
: snapshot.finalEvidenceReady
|
|
236
|
+
? advisoryAwareReportSchema(REPORT_SCHEMAS.finalReview, snapshot)
|
|
237
|
+
: REPORT_SCHEMAS.verificationPrepare,
|
|
210
238
|
...(advisoryRound === undefined ? {} : { advisoryRound }),
|
|
211
239
|
...(snapshot.status === 'needs_confirmation'
|
|
212
240
|
? { userFacingConfirmation: confirmationFor(snapshot) }
|
|
@@ -218,6 +246,7 @@ export function directiveForIntake(input) {
|
|
|
218
246
|
protocolVersion: 1,
|
|
219
247
|
runId: input.runId,
|
|
220
248
|
contractRevision: null,
|
|
249
|
+
routeEpoch: null,
|
|
221
250
|
role: 'enno-oduno',
|
|
222
251
|
harness: harnessDirective(input.clientKind, input.clientVersion, 'enno-oduno'),
|
|
223
252
|
handoff: null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directives.js","sourceRoot":"","sources":["../../src/enno-oduno/directives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAYtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAE7D,MAAM,cAAc,GAAG;IACrB,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,OAAO,EAAE,W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C,CAAC,CAAC,EAAE,sBAAsB,EAAE,eAAe,CAAC,QAAQ,CAAC,EAAE;YACvD,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAMlC;IACC,OAAO;QACL,eAAe,EAAE,CAAC;QAClB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,gBAAgB,EAAE,IAAI;QACtB,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,aAAa,EAAE,YAAY,CAAC;QAC9E,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,gBAAgB,CAAC,KAAK,CAAC,QAAQ,KAAK,IAAI;YACjD,CAAC,CAAC,2FAA2F;YAC7F,CAAC,CAAC,yEAAyE,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACrG,cAAc,EAAE,CAAC,wBAAwB,EAAE,wBAAwB,CAAC;QACpE,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACd,0CAA0C;YAC1C,kFAAkF;YAClF,mEAAmE;YACnE,8CAA8C;SAC/C;QACD,YAAY,EAAE,cAAc,CAAC,MAAM;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,QAAyB,EAAE,QAAgB;IACjF,IAAI,QAAQ,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACnC,MAAM,IAAI,YAAY,CAAC,UAAU,EAAE,gCAAgC,CAAC,CAAC;IACvE,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WorkPlan } from './types.js';
|
|
2
|
-
export declare function assertWorkPlanExpertCoverage(workPlan: WorkPlan,
|
|
2
|
+
export declare function assertWorkPlanExpertCoverage(workPlan: WorkPlan, legacyRequirements?: {
|
|
3
3
|
includesCodeChanges: boolean;
|
|
4
4
|
includesUiWork: boolean;
|
|
5
5
|
}): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experts.d.ts","sourceRoot":"","sources":["../../src/enno-oduno/experts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"experts.d.ts","sourceRoot":"","sources":["../../src/enno-oduno/experts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAU3C,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,CAAC,EAAE;IAAE,mBAAmB,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,OAAO,CAAA;CAAE,GAC7E,IAAI,CAuBN"}
|
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
import { KiokukoError } from '../errors.js';
|
|
2
1
|
import { STANDARD_FUNCTION_EXPERT_IDS, STANDARD_UI_EXPERT_IDS, } from '../setup/standard-skills.js';
|
|
2
|
+
import { ennoValidationError } from './validation-errors.js';
|
|
3
3
|
const functionExpertIds = new Set(STANDARD_FUNCTION_EXPERT_IDS);
|
|
4
4
|
const uiExpertIds = new Set(STANDARD_UI_EXPERT_IDS);
|
|
5
5
|
function hasExpert(unit, expertIds) {
|
|
6
6
|
return unit.expertRefs.some((reference) => expertIds.has(reference.id));
|
|
7
7
|
}
|
|
8
|
-
export function assertWorkPlanExpertCoverage(workPlan,
|
|
9
|
-
for (const unit of workPlan.units) {
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export function assertWorkPlanExpertCoverage(workPlan, legacyRequirements) {
|
|
9
|
+
for (const [index, unit] of workPlan.units.entries()) {
|
|
10
|
+
const requiresCode = unit.routes === undefined
|
|
11
|
+
? legacyRequirements?.includesCodeChanges === true
|
|
12
|
+
: unit.routes.includes('code') || unit.routes.includes('ui');
|
|
13
|
+
const requiresUi = unit.routes === undefined
|
|
14
|
+
? legacyRequirements?.includesUiWork === true
|
|
15
|
+
: unit.routes.includes('ui');
|
|
16
|
+
if (requiresCode && !hasExpert(unit, functionExpertIds)) {
|
|
17
|
+
throw ennoValidationError('plan_submit', [{
|
|
18
|
+
path: ['workPlan', 'units', index, 'expertRefs'],
|
|
19
|
+
reasonCode: 'missing_code_expert',
|
|
20
|
+
expected: { requiredExpertKinds: ['code'] },
|
|
21
|
+
}]);
|
|
12
22
|
}
|
|
13
|
-
if (
|
|
14
|
-
throw
|
|
23
|
+
if (requiresUi && !hasExpert(unit, uiExpertIds)) {
|
|
24
|
+
throw ennoValidationError('plan_submit', [{
|
|
25
|
+
path: ['workPlan', 'units', index, 'expertRefs'],
|
|
26
|
+
reasonCode: 'missing_ui_expert',
|
|
27
|
+
expected: { requiredExpertKinds: ['ui'] },
|
|
28
|
+
}]);
|
|
15
29
|
}
|
|
16
30
|
}
|
|
17
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experts.js","sourceRoot":"","sources":["../../src/enno-oduno/experts.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"experts.js","sourceRoot":"","sources":["../../src/enno-oduno/experts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAS,4BAA4B,CAAC,CAAC;AACxE,MAAM,WAAW,GAAG,IAAI,GAAG,CAAS,sBAAsB,CAAC,CAAC;AAE5D,SAAS,SAAS,CAAC,IAA+B,EAAE,SAA8B;IAChF,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,QAAkB,EAClB,kBAA8E;IAE9E,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAA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= "When `ennoOduno.nextAction === 'ask_user_confirmation'`, present every item of `ennoOduno.directive.userFacingConfirmation` to the user in the user's language, translating headings only and preserving paths, executable names, arguments, directories, timeouts, and every listed item, and never output raw directive JSON, internal field names, WorkUnit IDs, expert IDs, or verifier IDs; wait for an explicit approve, revise, or cancel before calling `enno_answer`.";
|
|
2
2
|
export declare const PLAN_START_RECOVERY_DISPLAY_CONTRACT = "If plan submission returns `userFacingRecovery`, show only its what-happened, work-state, resolution, and choices in the user's language. For every choice, present its label and recommendation first, then translate and present `whenToChoose` as the intent the choice fits and `whatHappens` as its exact result. Do not expose the machine `action`, internal tool or field names, capability catalog, digest, run identity, revision, presentation version, raw JSON, or reason code. Do not retry, cancel, or create a new task automatically: wait for the user's explicit choice. Continue the same plan only by attaching the complete catalog retained from task preparation; never ask the user to locate or construct that catalog. A plan-review choice asks the user what to change and performs no implementation. For an active planning attempt, a restart choice explicitly cancels it before starting a new `task_prepare` with current capabilities. If the projection says the attempt already ended, do not try to cancel it again; start a new task only after the user chooses restart. A cancel choice creates no replacement and leaves an already-ended attempt unchanged.";
|
|
3
|
-
export declare const ENNO_CLIENT_ROUTING_CONTRACT = "A host client session ID is optional routing metadata, not authorization ownership. Local processes running as the same OS user with access to the canonical repository are trusted to continue its run without process-ancestry proof. Continuation prefers
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
3
|
+
export declare const ENNO_CLIENT_ROUTING_CONTRACT = "A host client session ID is optional routing metadata, not authorization ownership. Local processes running as the same OS user with access to the canonical repository are trusted to continue its run without process-ancestry proof. Continuation prefers the current opaque, short-lived resume token. The token binds the run, canonical repository, client kind, client session, and route epoch; do not reconstruct, persist externally, or reuse it after rerouting. Otherwise the current local Codex, Claude Code, or OpenCode session may atomically reroute the single unambiguous active run under the canonical repository, including across client kinds. A route change increments the route epoch and invalidates prior tokens. An active WorkUnit execution lease blocks rerouting until it is released or expires, and only the current lease holder may report that WorkUnit. Never select a repository-wide latest run; ambiguous candidates fail open without mutation. Exhausting one client session's continuation budget stops only that session and leaves the run active for another local project client.";
|
|
4
|
+
export declare const ENNO_EXECUTION_INTEGRITY_CONTRACT = "Structured Enno submissions fail closed with the bounded, value-free public error `ENNO_INPUT_INVALID`; correct the reported field paths and retry, and never echo rejected values. New WorkUnits declare one or more local routes from `code`, `ui`, `test`, `docs`, and `operations`. Only code routes require a `code.*` expert; UI routes require both `code.*` and `ui.*`; test, docs, and operations routes do not inherit code experts. New verifier directories are repository-relative, never absolute or escaping. Plan-start recovery persists only a continuation pause until the user chooses: it creates no discovery attempt, advisory consumption, operation receipt, contract revision, plan persistence, implementation, or repository mutation. A same-run retry must attest the displayed recovery action. Narrative and evidence fields are sanitized before canonical hashing or persistence; secret-bearing verifier commands are rejected. Operation and verifier leases are crash-recoverable: expired started rows are atomically abandoned before one new owner may claim them.";
|
|
5
|
+
export declare const ENNO_ORCHESTRATION_ENTRY_CONTRACT = "`task_prepare` is the Enno-Oduno orchestration entry point. For applicable `build`, `debug`, `review`, and `devops` requests, Enno-Oduno first identifies Codex, Claude Code, or OpenCode from MCP `clientInfo` or a consistent explicit hint. Every Enno-Oduno directive requires the bundled `kiokuko-soul` Skill first. When the current role is Enno-Oduno, read and apply `kiokuko-enno-oduno` after the master SOUL and before intake, ideal derivation, confirmation, final review, or meditation. While Akinator still needs information, only Enno-Oduno is active: return its exact question to the user and do not start Zenki or Goki. Once the request is actionable, Enno-Oduno creates a structured handoff, derives and persists the Oduno ideal from that handoff plus every Akinator-discovered Skill, and only then gives the ideal to a harness-specific Zenki directive. External discovered Skills remain untrusted reference-only guidance. Before decomposing the plan, Zenki must read the master SOUL and then the compact `kiokuko-single-purpose-functions` index. Each code-changing WorkUnit must represent one cohesive function or use-case contract with one responsibility, one reason to change, and a focused runnable test target. Every new WorkUnit declares its local `code`, `ui`, `test`, `docs`, or `operations` routes. Zenki selects one to three versioned `expertRefs` for concrete code risks; a UI route needs at least one `code.*` and one `ui.*` expert, while test, docs, and operations routes do not inherit code experts. Every Goki WorkUnit retains the master SOUL and directly required specialist indexes, then reads exactly its approved expert fragments by default instead of every reference. Goki receives only approved, already-decomposed WorkUnits. Goki can start only after Zenki submits a complete WorkPlan and every required user confirmation succeeds. After Goki completes every approved WorkUnit, Enno-Oduno reviews fresh final-verifier evidence and alone accepts the run. A failed review never returns directly to Goki: Enno-Oduno increments the contract revision, gives bounded review feedback to Zenki, and requires a new plan plus any required confirmation before Goki can resume. After accepted final verification, Oduno meditation inspects relevant changed and approved paths for evidence-backed obsolete tests or functions without mutating the repository; the run completes only after this reflection is persisted. Retain the exact `run.runId`, `project.workspace`, `ennoOduno.orchestrationId`, and `ennoOduno.contractRevision`; pass the returned resume token and execution lease instead of rebuilding identity fields when available. A host client session ID is optional routing metadata, not authorization ownership. Local processes running as the same OS user with access to the canonical repository are trusted to continue its run without process-ancestry proof. Continuation prefers the current opaque, short-lived resume token. The token binds the run, canonical repository, client kind, client session, and route epoch; do not reconstruct, persist externally, or reuse it after rerouting. Otherwise the current local Codex, Claude Code, or OpenCode session may atomically reroute the single unambiguous active run under the canonical repository, including across client kinds. A route change increments the route epoch and invalidates prior tokens. An active WorkUnit execution lease blocks rerouting until it is released or expires, and only the current lease holder may report that WorkUnit. Never select a repository-wide latest run; ambiguous candidates fail open without mutation. Exhausting one client session's continuation budget stops only that session and leaves the run active for another local project client. When `ennoOduno.nextAction === 'ask_user_confirmation'`, present every item of `ennoOduno.directive.userFacingConfirmation` to the user in the user's language, translating headings only and preserving paths, executable names, arguments, directories, timeouts, and every listed item, and never output raw directive JSON, internal field names, WorkUnit IDs, expert IDs, or verifier IDs; wait for an explicit approve, revise, or cancel before calling `enno_answer`.";
|
|
6
|
+
export declare const ENNO_ADVISORY_ROUND_CONTRACT = "At the ideal, planning, and final-review phases, the parent host may fan out exactly three fixed advisor slots. Kiokuko does not launch advisors. The parent host must verify isolated read-only execution; prompt wording is not proof, and a slot that cannot be verified is reported as `unavailable`. Advisor input excludes Enno run identity, workspace, orchestration identity, revisions, and idempotency keys. Only the parent aggregator calls `enno_advice_submit`; results are `host_reported`, without provider/model identity or raw subagent output. Contributions use fixed slots, fixed failure codes, canonical JSON, control-character rejection, repository-relative evidence paths, and 16 KiB per-slot / 48 KiB per-round UTF-8 limits. Secret-shaped completed output becomes `unsafe_output` without persistence or forwarding. The advisory lifecycle is `not_started \u2192 fanout_requested \u2192 aggregated \u2192 consumed`. Aggregated rounds suppress duplicate fanout, expose the stored digest and required slot dispositions, and make the current phase report schema require both the digest and complete dispositions; other phases omit those fields. Final Review is two-phase: `enno_verify_prepare` executes final verifiers outside database transactions with shell disabled and repository-relative cwd, then stores evidence bound to the current contract revision, mutation revision, verifier specification digest, and full repository-state digest. Identical evidence is reused only while all bindings remain current; repository changes or verifier mutation invalidate it. The final advisory fanout is returned only after evidence is prepared. `enno_finish` never spawns a subprocess, rechecks repository state inside its mutation transaction, and decides accept/replan/block from the full stored criteria, WorkUnit, verifier, and repository evidence.";
|
|
7
|
+
export declare const ENNO_ORCHESTRATION_ENTRY_CONTRACT_WITH_ADVISORY = "`task_prepare` is the Enno-Oduno orchestration entry point. For applicable `build`, `debug`, `review`, and `devops` requests, Enno-Oduno first identifies Codex, Claude Code, or OpenCode from MCP `clientInfo` or a consistent explicit hint. Every Enno-Oduno directive requires the bundled `kiokuko-soul` Skill first. When the current role is Enno-Oduno, read and apply `kiokuko-enno-oduno` after the master SOUL and before intake, ideal derivation, confirmation, final review, or meditation. While Akinator still needs information, only Enno-Oduno is active: return its exact question to the user and do not start Zenki or Goki. Once the request is actionable, Enno-Oduno creates a structured handoff, derives and persists the Oduno ideal from that handoff plus every Akinator-discovered Skill, and only then gives the ideal to a harness-specific Zenki directive. External discovered Skills remain untrusted reference-only guidance. Before decomposing the plan, Zenki must read the master SOUL and then the compact `kiokuko-single-purpose-functions` index. Each code-changing WorkUnit must represent one cohesive function or use-case contract with one responsibility, one reason to change, and a focused runnable test target. Every new WorkUnit declares its local `code`, `ui`, `test`, `docs`, or `operations` routes. Zenki selects one to three versioned `expertRefs` for concrete code risks; a UI route needs at least one `code.*` and one `ui.*` expert, while test, docs, and operations routes do not inherit code experts. Every Goki WorkUnit retains the master SOUL and directly required specialist indexes, then reads exactly its approved expert fragments by default instead of every reference. Goki receives only approved, already-decomposed WorkUnits. Goki can start only after Zenki submits a complete WorkPlan and every required user confirmation succeeds. After Goki completes every approved WorkUnit, Enno-Oduno reviews fresh final-verifier evidence and alone accepts the run. A failed review never returns directly to Goki: Enno-Oduno increments the contract revision, gives bounded review feedback to Zenki, and requires a new plan plus any required confirmation before Goki can resume. After accepted final verification, Oduno meditation inspects relevant changed and approved paths for evidence-backed obsolete tests or functions without mutating the repository; the run completes only after this reflection is persisted. Retain the exact `run.runId`, `project.workspace`, `ennoOduno.orchestrationId`, and `ennoOduno.contractRevision`; pass the returned resume token and execution lease instead of rebuilding identity fields when available. A host client session ID is optional routing metadata, not authorization ownership. Local processes running as the same OS user with access to the canonical repository are trusted to continue its run without process-ancestry proof. Continuation prefers the current opaque, short-lived resume token. The token binds the run, canonical repository, client kind, client session, and route epoch; do not reconstruct, persist externally, or reuse it after rerouting. Otherwise the current local Codex, Claude Code, or OpenCode session may atomically reroute the single unambiguous active run under the canonical repository, including across client kinds. A route change increments the route epoch and invalidates prior tokens. An active WorkUnit execution lease blocks rerouting until it is released or expires, and only the current lease holder may report that WorkUnit. Never select a repository-wide latest run; ambiguous candidates fail open without mutation. Exhausting one client session's continuation budget stops only that session and leaves the run active for another local project client. When `ennoOduno.nextAction === 'ask_user_confirmation'`, present every item of `ennoOduno.directive.userFacingConfirmation` to the user in the user's language, translating headings only and preserving paths, executable names, arguments, directories, timeouts, and every listed item, and never output raw directive JSON, internal field names, WorkUnit IDs, expert IDs, or verifier IDs; wait for an explicit approve, revise, or cancel before calling `enno_answer`. If plan submission returns `userFacingRecovery`, show only its what-happened, work-state, resolution, and choices in the user's language. For every choice, present its label and recommendation first, then translate and present `whenToChoose` as the intent the choice fits and `whatHappens` as its exact result. Do not expose the machine `action`, internal tool or field names, capability catalog, digest, run identity, revision, presentation version, raw JSON, or reason code. Do not retry, cancel, or create a new task automatically: wait for the user's explicit choice. Continue the same plan only by attaching the complete catalog retained from task preparation; never ask the user to locate or construct that catalog. A plan-review choice asks the user what to change and performs no implementation. For an active planning attempt, a restart choice explicitly cancels it before starting a new `task_prepare` with current capabilities. If the projection says the attempt already ended, do not try to cancel it again; start a new task only after the user chooses restart. A cancel choice creates no replacement and leaves an already-ended attempt unchanged.";
|
|
7
8
|
//# sourceMappingURL=instructions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/enno-oduno/instructions.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kCAAkC,mdAAyd,CAAC;AAEzgB,eAAO,MAAM,oCAAoC,4oCAAspC,CAAC;AAExsC,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/enno-oduno/instructions.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kCAAkC,mdAAyd,CAAC;AAEzgB,eAAO,MAAM,oCAAoC,4oCAAspC,CAAC;AAExsC,eAAO,MAAM,4BAA4B,0kCAA0kC,CAAC;AAEpnC,eAAO,MAAM,iCAAiC,+iCAAikC,CAAC;AAEhnC,eAAO,MAAM,iCAAiC,qnIAAuuF,CAAC;AAEtxF,eAAO,MAAM,4BAA4B,8zDAA6zD,CAAC;AAIv2D,eAAO,MAAM,+CAA+C,6vKAAiF,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { STANDARD_ENNO_SKILL_NAME, STANDARD_FUNCTION_SKILL_NAME, STANDARD_SOUL_SKILL_NAME, } from '../setup/standard-skills.js';
|
|
2
2
|
export const ENNO_CONFIRMATION_DISPLAY_CONTRACT = `When \`ennoOduno.nextAction === 'ask_user_confirmation'\`, present every item of \`ennoOduno.directive.userFacingConfirmation\` to the user in the user's language, translating headings only and preserving paths, executable names, arguments, directories, timeouts, and every listed item, and never output raw directive JSON, internal field names, WorkUnit IDs, expert IDs, or verifier IDs; wait for an explicit approve, revise, or cancel before calling \`enno_answer\`.`;
|
|
3
3
|
export const PLAN_START_RECOVERY_DISPLAY_CONTRACT = `If plan submission returns \`userFacingRecovery\`, show only its what-happened, work-state, resolution, and choices in the user's language. For every choice, present its label and recommendation first, then translate and present \`whenToChoose\` as the intent the choice fits and \`whatHappens\` as its exact result. Do not expose the machine \`action\`, internal tool or field names, capability catalog, digest, run identity, revision, presentation version, raw JSON, or reason code. Do not retry, cancel, or create a new task automatically: wait for the user's explicit choice. Continue the same plan only by attaching the complete catalog retained from task preparation; never ask the user to locate or construct that catalog. A plan-review choice asks the user what to change and performs no implementation. For an active planning attempt, a restart choice explicitly cancels it before starting a new \`task_prepare\` with current capabilities. If the projection says the attempt already ended, do not try to cancel it again; start a new task only after the user chooses restart. A cancel choice creates no replacement and leaves an already-ended attempt unchanged.`;
|
|
4
|
-
export const ENNO_CLIENT_ROUTING_CONTRACT = `A host client session ID is optional routing metadata, not authorization ownership. Local processes running as the same OS user with access to the canonical repository are trusted to continue its run without process-ancestry proof. Continuation prefers
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
4
|
+
export const ENNO_CLIENT_ROUTING_CONTRACT = `A host client session ID is optional routing metadata, not authorization ownership. Local processes running as the same OS user with access to the canonical repository are trusted to continue its run without process-ancestry proof. Continuation prefers the current opaque, short-lived resume token. The token binds the run, canonical repository, client kind, client session, and route epoch; do not reconstruct, persist externally, or reuse it after rerouting. Otherwise the current local Codex, Claude Code, or OpenCode session may atomically reroute the single unambiguous active run under the canonical repository, including across client kinds. A route change increments the route epoch and invalidates prior tokens. An active WorkUnit execution lease blocks rerouting until it is released or expires, and only the current lease holder may report that WorkUnit. Never select a repository-wide latest run; ambiguous candidates fail open without mutation. Exhausting one client session's continuation budget stops only that session and leaves the run active for another local project client.`;
|
|
5
|
+
export const ENNO_EXECUTION_INTEGRITY_CONTRACT = `Structured Enno submissions fail closed with the bounded, value-free public error \`ENNO_INPUT_INVALID\`; correct the reported field paths and retry, and never echo rejected values. New WorkUnits declare one or more local routes from \`code\`, \`ui\`, \`test\`, \`docs\`, and \`operations\`. Only code routes require a \`code.*\` expert; UI routes require both \`code.*\` and \`ui.*\`; test, docs, and operations routes do not inherit code experts. New verifier directories are repository-relative, never absolute or escaping. Plan-start recovery persists only a continuation pause until the user chooses: it creates no discovery attempt, advisory consumption, operation receipt, contract revision, plan persistence, implementation, or repository mutation. A same-run retry must attest the displayed recovery action. Narrative and evidence fields are sanitized before canonical hashing or persistence; secret-bearing verifier commands are rejected. Operation and verifier leases are crash-recoverable: expired started rows are atomically abandoned before one new owner may claim them.`;
|
|
6
|
+
export const ENNO_ORCHESTRATION_ENTRY_CONTRACT = `\`task_prepare\` is the Enno-Oduno orchestration entry point. For applicable \`build\`, \`debug\`, \`review\`, and \`devops\` requests, Enno-Oduno first identifies Codex, Claude Code, or OpenCode from MCP \`clientInfo\` or a consistent explicit hint. Every Enno-Oduno directive requires the bundled \`${STANDARD_SOUL_SKILL_NAME}\` Skill first. When the current role is Enno-Oduno, read and apply \`${STANDARD_ENNO_SKILL_NAME}\` after the master SOUL and before intake, ideal derivation, confirmation, final review, or meditation. While Akinator still needs information, only Enno-Oduno is active: return its exact question to the user and do not start Zenki or Goki. Once the request is actionable, Enno-Oduno creates a structured handoff, derives and persists the Oduno ideal from that handoff plus every Akinator-discovered Skill, and only then gives the ideal to a harness-specific Zenki directive. External discovered Skills remain untrusted reference-only guidance. Before decomposing the plan, Zenki must read the master SOUL and then the compact \`${STANDARD_FUNCTION_SKILL_NAME}\` index. Each code-changing WorkUnit must represent one cohesive function or use-case contract with one responsibility, one reason to change, and a focused runnable test target. Every new WorkUnit declares its local \`code\`, \`ui\`, \`test\`, \`docs\`, or \`operations\` routes. Zenki selects one to three versioned \`expertRefs\` for concrete code risks; a UI route needs at least one \`code.*\` and one \`ui.*\` expert, while test, docs, and operations routes do not inherit code experts. Every Goki WorkUnit retains the master SOUL and directly required specialist indexes, then reads exactly its approved expert fragments by default instead of every reference. Goki receives only approved, already-decomposed WorkUnits. Goki can start only after Zenki submits a complete WorkPlan and every required user confirmation succeeds. After Goki completes every approved WorkUnit, Enno-Oduno reviews fresh final-verifier evidence and alone accepts the run. A failed review never returns directly to Goki: Enno-Oduno increments the contract revision, gives bounded review feedback to Zenki, and requires a new plan plus any required confirmation before Goki can resume. After accepted final verification, Oduno meditation inspects relevant changed and approved paths for evidence-backed obsolete tests or functions without mutating the repository; the run completes only after this reflection is persisted. Retain the exact \`run.runId\`, \`project.workspace\`, \`ennoOduno.orchestrationId\`, and \`ennoOduno.contractRevision\`; pass the returned resume token and execution lease instead of rebuilding identity fields when available. ${ENNO_CLIENT_ROUTING_CONTRACT} ${ENNO_CONFIRMATION_DISPLAY_CONTRACT}`;
|
|
7
|
+
export const ENNO_ADVISORY_ROUND_CONTRACT = `At the ideal, planning, and final-review phases, the parent host may fan out exactly three fixed advisor slots. Kiokuko does not launch advisors. The parent host must verify isolated read-only execution; prompt wording is not proof, and a slot that cannot be verified is reported as \`unavailable\`. Advisor input excludes Enno run identity, workspace, orchestration identity, revisions, and idempotency keys. Only the parent aggregator calls \`enno_advice_submit\`; results are \`host_reported\`, without provider/model identity or raw subagent output. Contributions use fixed slots, fixed failure codes, canonical JSON, control-character rejection, repository-relative evidence paths, and 16 KiB per-slot / 48 KiB per-round UTF-8 limits. Secret-shaped completed output becomes \`unsafe_output\` without persistence or forwarding. The advisory lifecycle is \`not_started → fanout_requested → aggregated → consumed\`. Aggregated rounds suppress duplicate fanout, expose the stored digest and required slot dispositions, and make the current phase report schema require both the digest and complete dispositions; other phases omit those fields. Final Review is two-phase: \`enno_verify_prepare\` executes final verifiers outside database transactions with shell disabled and repository-relative cwd, then stores evidence bound to the current contract revision, mutation revision, verifier specification digest, and full repository-state digest. Identical evidence is reused only while all bindings remain current; repository changes or verifier mutation invalidate it. The final advisory fanout is returned only after evidence is prepared. \`enno_finish\` never spawns a subprocess, rechecks repository state inside its mutation transaction, and decides accept/replan/block from the full stored criteria, WorkUnit, verifier, and repository evidence.`;
|
|
7
8
|
// Managed agent/setup templates carry the advisory architecture separately.
|
|
8
9
|
// This composed contract adds the user-owned plan-start recovery interaction.
|
|
9
10
|
export const ENNO_ORCHESTRATION_ENTRY_CONTRACT_WITH_ADVISORY = `${ENNO_ORCHESTRATION_ENTRY_CONTRACT} ${PLAN_START_RECOVERY_DISPLAY_CONTRACT}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/enno-oduno/instructions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AAErC,MAAM,CAAC,MAAM,kCAAkC,GAAG,sdAAsd,CAAC;AAEzgB,MAAM,CAAC,MAAM,oCAAoC,GAAG,mpCAAmpC,CAAC;AAExsC,MAAM,CAAC,MAAM,4BAA4B,GAAG,
|
|
1
|
+
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/enno-oduno/instructions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AAErC,MAAM,CAAC,MAAM,kCAAkC,GAAG,sdAAsd,CAAC;AAEzgB,MAAM,CAAC,MAAM,oCAAoC,GAAG,mpCAAmpC,CAAC;AAExsC,MAAM,CAAC,MAAM,4BAA4B,GAAG,ukCAAukC,CAAC;AAEpnC,MAAM,CAAC,MAAM,iCAAiC,GAAG,8jCAA8jC,CAAC;AAEhnC,MAAM,CAAC,MAAM,iCAAiC,GAAG,gTAAgT,wBAAwB,yEAAyE,wBAAwB,ynBAAynB,4BAA4B,kmDAAkmD,4BAA4B,IAAI,kCAAkC,EAAE,CAAC;AAEtxF,MAAM,CAAC,MAAM,4BAA4B,GAAG,0zDAA0zD,CAAC;AAEv2D,4EAA4E;AAC5E,8EAA8E;AAC9E,MAAM,CAAC,MAAM,+CAA+C,GAAG,GAAG,iCAAiC,IAAI,oCAAoC,EAAE,CAAC"}
|
|
@@ -3,6 +3,9 @@ export declare const PLAN_START_RECOVERY_CODE: "PLAN_START_RECOVERY_REQUIRED";
|
|
|
3
3
|
export declare const PLAN_START_RECOVERY_DETAIL_KEY: "planStartRecoveryReason";
|
|
4
4
|
export declare const PLAN_START_RECOVERY_REASONS: readonly ["environment_information_missing", "environment_changed", "previous_attempt_ended"];
|
|
5
5
|
export type PlanStartRecoveryReason = (typeof PLAN_START_RECOVERY_REASONS)[number];
|
|
6
|
+
export declare const PLAN_START_RECOVERY_BLOCKER_PREFIX = "plan_start_recovery:";
|
|
7
|
+
export declare function planStartRecoveryBlocker(reason: PlanStartRecoveryReason): string;
|
|
8
|
+
export declare function planStartRecoveryReasonFromBlocker(value: string | null): PlanStartRecoveryReason | null;
|
|
6
9
|
export type PlanStartRecoveryAction = 'continue_same_plan' | 'revise_plan' | 'restart_same_plan' | 'revise_then_restart' | 'cancel';
|
|
7
10
|
export interface UserFacingPlanRecoveryOption {
|
|
8
11
|
action: PlanStartRecoveryAction;
|
|
@@ -22,6 +25,18 @@ export interface PlanStartRecovery {
|
|
|
22
25
|
code: typeof PLAN_START_RECOVERY_CODE;
|
|
23
26
|
reason: PlanStartRecoveryReason;
|
|
24
27
|
userFacingRecovery: UserFacingPlanRecovery;
|
|
28
|
+
effect: {
|
|
29
|
+
mutationApplied: false;
|
|
30
|
+
continuationPaused: true;
|
|
31
|
+
planPersisted: false;
|
|
32
|
+
advisoryConsumed: false;
|
|
33
|
+
operationReceiptCreated: false;
|
|
34
|
+
implementationStarted: false;
|
|
35
|
+
};
|
|
36
|
+
retry: {
|
|
37
|
+
sameRunAllowed: boolean;
|
|
38
|
+
requiresUserChoice: true;
|
|
39
|
+
};
|
|
25
40
|
}
|
|
26
41
|
export declare function buildPlanStartRecovery(reason: PlanStartRecoveryReason): PlanStartRecovery;
|
|
27
42
|
export declare function planStartRecoveryError(reason: PlanStartRecoveryReason): KiokukoError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-recovery.d.ts","sourceRoot":"","sources":["../../src/enno-oduno/plan-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,eAAO,MAAM,wBAAwB,EAAG,8BAAuC,CAAC;AAChF,eAAO,MAAM,8BAA8B,EAAG,yBAAkC,CAAC;AACjF,eAAO,MAAM,2BAA2B,+FAI9B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"plan-recovery.d.ts","sourceRoot":"","sources":["../../src/enno-oduno/plan-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,eAAO,MAAM,wBAAwB,EAAG,8BAAuC,CAAC;AAChF,eAAO,MAAM,8BAA8B,EAAG,yBAAkC,CAAC;AACjF,eAAO,MAAM,2BAA2B,+FAI9B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AACnF,eAAO,MAAM,kCAAkC,yBAAyB,CAAC;AAEzE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,uBAAuB,GAAG,MAAM,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,uBAAuB,GAAG,IAAI,CAMvG;AAED,MAAM,MAAM,uBAAuB,GAC/B,oBAAoB,GACpB,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,QAAQ,CAAC;AAEb,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,uBAAuB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,mBAAmB,EAAE,CAAC,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,4BAA4B,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,wBAAwB,CAAC;IACtC,MAAM,EAAE,uBAAuB,CAAC;IAChC,kBAAkB,EAAE,sBAAsB,CAAC;IAC3C,MAAM,EAAE;QACN,eAAe,EAAE,KAAK,CAAC;QACvB,kBAAkB,EAAE,IAAI,CAAC;QACzB,aAAa,EAAE,KAAK,CAAC;QACrB,gBAAgB,EAAE,KAAK,CAAC;QACxB,uBAAuB,EAAE,KAAK,CAAC;QAC/B,qBAAqB,EAAE,KAAK,CAAC;KAC9B,CAAC;IACF,KAAK,EAAE;QAAE,cAAc,EAAE,OAAO,CAAC;QAAC,kBAAkB,EAAE,IAAI,CAAA;KAAE,CAAC;CAC9D;AAaD,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,uBAAuB,GAAG,iBAAiB,CA8GzF;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,uBAAuB,GAAG,YAAY,CAIpF;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,MAAM,CAa3E"}
|
|
@@ -6,12 +6,34 @@ export const PLAN_START_RECOVERY_REASONS = [
|
|
|
6
6
|
'environment_changed',
|
|
7
7
|
'previous_attempt_ended',
|
|
8
8
|
];
|
|
9
|
+
export const PLAN_START_RECOVERY_BLOCKER_PREFIX = 'plan_start_recovery:';
|
|
10
|
+
export function planStartRecoveryBlocker(reason) {
|
|
11
|
+
return `${PLAN_START_RECOVERY_BLOCKER_PREFIX}${reason}`;
|
|
12
|
+
}
|
|
13
|
+
export function planStartRecoveryReasonFromBlocker(value) {
|
|
14
|
+
if (value?.startsWith(PLAN_START_RECOVERY_BLOCKER_PREFIX) !== true)
|
|
15
|
+
return null;
|
|
16
|
+
const reason = value.slice(PLAN_START_RECOVERY_BLOCKER_PREFIX.length);
|
|
17
|
+
return PLAN_START_RECOVERY_REASONS.includes(reason)
|
|
18
|
+
? reason
|
|
19
|
+
: null;
|
|
20
|
+
}
|
|
21
|
+
const RECOVERY_EFFECT = {
|
|
22
|
+
mutationApplied: false,
|
|
23
|
+
continuationPaused: true,
|
|
24
|
+
planPersisted: false,
|
|
25
|
+
advisoryConsumed: false,
|
|
26
|
+
operationReceiptCreated: false,
|
|
27
|
+
implementationStarted: false,
|
|
28
|
+
};
|
|
9
29
|
const NO_NEW_WORK = 'Starting this plan did not begin new work or make additional code changes.';
|
|
10
30
|
export function buildPlanStartRecovery(reason) {
|
|
11
31
|
if (reason === 'environment_information_missing') {
|
|
12
32
|
return {
|
|
13
33
|
code: PLAN_START_RECOVERY_CODE,
|
|
14
34
|
reason,
|
|
35
|
+
effect: RECOVERY_EFFECT,
|
|
36
|
+
retry: { sameRunAllowed: true, requiresUserChoice: true },
|
|
15
37
|
userFacingRecovery: {
|
|
16
38
|
presentationVersion: 1,
|
|
17
39
|
whatHappened: 'Information about the features available in this environment was not carried into the plan.',
|
|
@@ -47,6 +69,8 @@ export function buildPlanStartRecovery(reason) {
|
|
|
47
69
|
return {
|
|
48
70
|
code: PLAN_START_RECOVERY_CODE,
|
|
49
71
|
reason,
|
|
72
|
+
effect: RECOVERY_EFFECT,
|
|
73
|
+
retry: { sameRunAllowed: false, requiresUserChoice: true },
|
|
50
74
|
userFacingRecovery: {
|
|
51
75
|
presentationVersion: 1,
|
|
52
76
|
whatHappened: 'Required environment information was not included when this plan was submitted, so this attempt has ended.',
|
|
@@ -81,6 +105,8 @@ export function buildPlanStartRecovery(reason) {
|
|
|
81
105
|
return {
|
|
82
106
|
code: PLAN_START_RECOVERY_CODE,
|
|
83
107
|
reason,
|
|
108
|
+
effect: RECOVERY_EFFECT,
|
|
109
|
+
retry: { sameRunAllowed: false, requiresUserChoice: true },
|
|
84
110
|
userFacingRecovery: {
|
|
85
111
|
presentationVersion: 1,
|
|
86
112
|
whatHappened: 'The features available in this environment have changed since this plan was created.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-recovery.js","sourceRoot":"","sources":["../../src/enno-oduno/plan-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,CAAC,MAAM,wBAAwB,GAAG,8BAAuC,CAAC;AAChF,MAAM,CAAC,MAAM,8BAA8B,GAAG,yBAAkC,CAAC;AACjF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,iCAAiC;IACjC,qBAAqB;IACrB,wBAAwB;CAChB,CAAC;
|
|
1
|
+
{"version":3,"file":"plan-recovery.js","sourceRoot":"","sources":["../../src/enno-oduno/plan-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,CAAC,MAAM,wBAAwB,GAAG,8BAAuC,CAAC;AAChF,MAAM,CAAC,MAAM,8BAA8B,GAAG,yBAAkC,CAAC;AACjF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,iCAAiC;IACjC,qBAAqB;IACrB,wBAAwB;CAChB,CAAC;AAGX,MAAM,CAAC,MAAM,kCAAkC,GAAG,sBAAsB,CAAC;AAEzE,MAAM,UAAU,wBAAwB,CAAC,MAA+B;IACtE,OAAO,GAAG,kCAAkC,GAAG,MAAM,EAAE,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,KAAoB;IACrE,IAAI,KAAK,EAAE,UAAU,CAAC,kCAAkC,CAAC,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAChF,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,kCAAkC,CA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F,WAAW,EAAE,mHAAmH;iBACjI;gBACD;oBACE,MAAM,EAAE,qBAAqB;oBAC7B,KAAK,EAAE,mCAAmC;oBAC1C,WAAW,EAAE,KAAK;oBAClB,YAAY,EAAE,2EAA2E;oBACzF,WAAW,EAAE,0JAA0J;iBACxK;gBACD;oBACE,MAAM,EAAE,QAAQ;oBAChB,KAAK,EAAE,QAAQ;oBACf,WAAW,EAAE,KAAK;oBAClB,YAAY,EAAE,2CAA2C;oBACzD,WAAW,EAAE,0EAA0E;iBACxF;aACF;SACF;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,MAA+B;IACpE,OAAO,IAAI,YAAY,CAAC,UAAU,EAAE,iDAAiD,EAAE;QACrF,CAAC,8BAA8B,CAAC,EAAE,MAAM;KACzC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,QAA2B;IACjE,MAAM,UAAU,GAAG,QAAQ,CAAC,kBAAkB,CAAC;IAC/C,OAAO;QACL,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,UAAU;QACrB,EAAE;QACF,GAAG,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;YAC/C,GAAG,KAAK,GAAG,CAAC,KAAK,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,EAAE;YAC5E,wBAAwB,MAAM,CAAC,YAAY,EAAE;YAC7C,oBAAoB,MAAM,CAAC,WAAW,EAAE;SACzC,CAAC;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const REPOSITORY_STATE_POLICY_VERSION = 1;
|
|
2
|
+
export interface RepositoryStateSnapshot {
|
|
3
|
+
policyVersion: typeof REPOSITORY_STATE_POLICY_VERSION;
|
|
4
|
+
digest: string;
|
|
5
|
+
fileCount: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function captureRepositoryState(repositoryRoot: string): RepositoryStateSnapshot;
|
|
8
|
+
//# sourceMappingURL=repository-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-state.d.ts","sourceRoot":"","sources":["../../src/enno-oduno/repository-state.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAMjD,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,OAAO,+BAA+B,CAAC;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAwHD,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,MAAM,GAAG,uBAAuB,CAGtF"}
|