@askdkc/kiokuko 0.2.1 → 0.2.3

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.
Files changed (70) hide show
  1. package/README.ja.md +90 -44
  2. package/README.ko.md +86 -39
  3. package/README.md +86 -44
  4. package/README.zh-CN.md +85 -39
  5. package/dist/agent-file/render.d.ts +1 -1
  6. package/dist/agent-file/render.d.ts.map +1 -1
  7. package/dist/agent-file/render.js +5 -3
  8. package/dist/agent-file/render.js.map +1 -1
  9. package/dist/enno-oduno/adapters.d.ts.map +1 -1
  10. package/dist/enno-oduno/adapters.js +42 -54
  11. package/dist/enno-oduno/adapters.js.map +1 -1
  12. package/dist/enno-oduno/advisory-store.d.ts +6 -0
  13. package/dist/enno-oduno/advisory-store.d.ts.map +1 -1
  14. package/dist/enno-oduno/advisory-store.js +13 -1
  15. package/dist/enno-oduno/advisory-store.js.map +1 -1
  16. package/dist/enno-oduno/advisory.d.ts +2 -0
  17. package/dist/enno-oduno/advisory.d.ts.map +1 -1
  18. package/dist/enno-oduno/advisory.js +89 -14
  19. package/dist/enno-oduno/advisory.js.map +1 -1
  20. package/dist/enno-oduno/directives.d.ts.map +1 -1
  21. package/dist/enno-oduno/directives.js +4 -2
  22. package/dist/enno-oduno/directives.js.map +1 -1
  23. package/dist/enno-oduno/instructions.d.ts +5 -3
  24. package/dist/enno-oduno/instructions.d.ts.map +1 -1
  25. package/dist/enno-oduno/instructions.js +7 -7
  26. package/dist/enno-oduno/instructions.js.map +1 -1
  27. package/dist/enno-oduno/plan-recovery.d.ts +29 -0
  28. package/dist/enno-oduno/plan-recovery.d.ts.map +1 -0
  29. package/dist/enno-oduno/plan-recovery.js +134 -0
  30. package/dist/enno-oduno/plan-recovery.js.map +1 -0
  31. package/dist/enno-oduno/role-runner.d.ts.map +1 -1
  32. package/dist/enno-oduno/role-runner.js +16 -1
  33. package/dist/enno-oduno/role-runner.js.map +1 -1
  34. package/dist/enno-oduno/schemas.d.ts +141 -5
  35. package/dist/enno-oduno/schemas.d.ts.map +1 -1
  36. package/dist/enno-oduno/schemas.js +103 -12
  37. package/dist/enno-oduno/schemas.js.map +1 -1
  38. package/dist/enno-oduno/service.d.ts +1 -0
  39. package/dist/enno-oduno/service.d.ts.map +1 -1
  40. package/dist/enno-oduno/service.js +189 -39
  41. package/dist/enno-oduno/service.js.map +1 -1
  42. package/dist/enno-oduno/store.d.ts +7 -1
  43. package/dist/enno-oduno/store.d.ts.map +1 -1
  44. package/dist/enno-oduno/store.js +26 -1
  45. package/dist/enno-oduno/store.js.map +1 -1
  46. package/dist/enno-oduno/types.d.ts +51 -4
  47. package/dist/enno-oduno/types.d.ts.map +1 -1
  48. package/dist/enno-oduno/types.js +1 -0
  49. package/dist/enno-oduno/types.js.map +1 -1
  50. package/dist/enno-oduno/verifier.d.ts.map +1 -1
  51. package/dist/enno-oduno/verifier.js +29 -4
  52. package/dist/enno-oduno/verifier.js.map +1 -1
  53. package/dist/ledger/types.d.ts +1 -1
  54. package/dist/ledger/types.d.ts.map +1 -1
  55. package/dist/ledger/types.js +1 -1
  56. package/dist/ledger/types.js.map +1 -1
  57. package/dist/mcp/server.d.ts.map +1 -1
  58. package/dist/mcp/server.js +43 -7
  59. package/dist/mcp/server.js.map +1 -1
  60. package/dist/memory/secrets.d.ts.map +1 -1
  61. package/dist/memory/secrets.js +1 -0
  62. package/dist/memory/secrets.js.map +1 -1
  63. package/dist/setup/render.d.ts.map +1 -1
  64. package/dist/setup/render.js +4 -2
  65. package/dist/setup/render.js.map +1 -1
  66. package/migrations/017_enno_advisory_protocol_v2.sql +101 -0
  67. package/migrations/018_enno_repository_routing.sql +5 -0
  68. package/package.json +1 -1
  69. package/skills/kiokuko-enno-oduno/SKILL.md +13 -2
  70. package/templates/AGENTS.md +5 -3
@@ -1,3 +1,4 @@
1
+ import path from 'node:path';
1
2
  import { canonicalContentHash, canonicalJson } from '../serialization/validate.js';
2
3
  import { findSecret, findSecretInValue } from '../memory/secrets.js';
3
4
  import { KiokukoError } from '../errors.js';
@@ -32,27 +33,101 @@ export function advisoryPhaseForStatus(status) {
32
33
  return 'final_review';
33
34
  return null;
34
35
  }
35
- function advisoryContextForSnapshot(snapshot, phase) {
36
- const objective = phase === 'ideal'
37
- ? snapshot.handoff.objective
38
- : phase === 'planning'
39
- ? snapshot.ideal?.objective ?? snapshot.handoff.objective
40
- : snapshot.contract.workPlan.objective;
41
- const reference = phase === 'final_review'
42
- ? `Review the completed WorkPlan against its final verifiers: ${snapshot.contract.finalVerifiers.map((verifier) => verifier.id).join(', ')}`
43
- : snapshot.handoff.objective;
36
+ function skillTrustFromEntries(entries) {
37
+ return entries.slice(0, 64).map((entry) => {
38
+ const trustStatus = entry.availability === 'external_reference'
39
+ ? 'reference_only'
40
+ : entry.availability === 'unavailable'
41
+ ? 'unavailable'
42
+ : 'available';
43
+ return {
44
+ name: entry.name,
45
+ source: entry.availability,
46
+ required: entry.required,
47
+ trustStatus,
48
+ };
49
+ });
50
+ }
51
+ export function projectRepositoryRelativePath(repositoryRoot, value) {
52
+ if (value.includes('\0'))
53
+ return '#redacted';
54
+ if (value.split(/[\\/]/).includes('..'))
55
+ return '#redacted';
56
+ if (path.win32.isAbsolute(value) && !path.posix.isAbsolute(value))
57
+ return '#redacted';
58
+ if (path.posix.isAbsolute(value)) {
59
+ const relative = path.relative(repositoryRoot, value).split(path.sep).join('/');
60
+ if (relative === '' || relative === '..' || relative.startsWith('../'))
61
+ return '#redacted';
62
+ return relative;
63
+ }
64
+ return value;
65
+ }
66
+ function projectChangedPaths(repositoryRoot, paths) {
67
+ return paths.map((value) => projectRepositoryRelativePath(repositoryRoot, value));
68
+ }
69
+ function finalReviewEvidence(evidence) {
70
+ return evidence.map((result) => ({
71
+ id: result.verifier.id,
72
+ status: result.status,
73
+ exitCode: result.exitCode,
74
+ signal: result.signal,
75
+ stdoutDigest: result.stdoutDigest,
76
+ stderrDigest: result.stderrDigest,
77
+ }));
78
+ }
79
+ function finalReviewOutcomes(snapshot) {
80
+ return snapshot.workUnits
81
+ .filter((unit) => unit.status === 'completed' && unit.result !== null)
82
+ .map((unit) => ({
83
+ id: unit.workUnit.id,
84
+ status: unit.result.outcome,
85
+ mutated: unit.result.mutated,
86
+ changedPaths: projectChangedPaths(snapshot.repositoryRoot, unit.result.changedPaths),
87
+ }));
88
+ }
89
+ export function advisoryContextForSnapshot(snapshot, phase) {
90
+ if (phase === 'ideal') {
91
+ return {
92
+ phase: 'ideal',
93
+ objective: snapshot.handoff.objective,
94
+ constraints: [...snapshot.handoff.constraints],
95
+ expectedOutcome: snapshot.handoff.expected ?? '',
96
+ successSignals: [...snapshot.handoff.verification],
97
+ skillTrust: skillTrustFromEntries(snapshot.contract.skillSet.entries),
98
+ };
99
+ }
100
+ if (phase === 'planning') {
101
+ return {
102
+ phase: 'planning',
103
+ idealObjective: snapshot.ideal?.objective ?? snapshot.handoff.objective,
104
+ acceptanceCriteria: snapshot.contract.acceptanceCriteria.map((criterion) => criterion.description),
105
+ planningConstraints: [...snapshot.handoff.constraints],
106
+ skillAvailability: skillTrustFromEntries(snapshot.contract.skillSet.entries),
107
+ };
108
+ }
109
+ const changedPaths = projectChangedPaths(snapshot.repositoryRoot, [...new Set(snapshot.workUnits.flatMap((unit) => unit.result?.changedPaths ?? []))]);
110
+ const verifierEvidence = finalReviewEvidence(snapshot.finalEvidence);
44
111
  return {
45
- objective,
46
- scope: [...snapshot.contract.scope],
47
- constraints: [...snapshot.handoff.constraints],
48
- acceptanceCriteria: snapshot.contract.acceptanceCriteria.map((criterion) => criterion.description),
49
- reference,
112
+ phase: 'final_review',
113
+ workPlanSummary: snapshot.contract.workPlan.objective,
114
+ workUnitOutcomes: finalReviewOutcomes(snapshot),
115
+ changedPaths,
116
+ verifierEvidence,
117
+ evidenceSetDigest: canonicalContentHash(verifierEvidence),
118
+ freshnessMarker: canonicalContentHash({
119
+ revision: snapshot.revision,
120
+ mutationRevision: snapshot.mutationRevision,
121
+ evidenceProjection: verifierEvidence,
122
+ }),
50
123
  };
51
124
  }
52
125
  export function advisoryDirectiveForSnapshot(snapshot) {
53
126
  const phase = advisoryPhaseForStatus(snapshot.status);
54
127
  if (phase === null)
55
128
  return undefined;
129
+ if (phase === 'final_review' && !snapshot.finalEvidenceReady)
130
+ return undefined;
56
131
  return {
57
132
  protocolVersion: 1,
58
133
  phase,
@@ -1 +1 @@
1
- {"version":3,"file":"advisory.js","sourceRoot":"","sources":["../../src/enno-oduno/advisory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,EAEjB,uBAAuB,EACvB,yBAAyB,GAO1B,MAAM,YAAY,CAAC;AAEpB,MAAM,UAAU,GAAG,CAAC,KAAoB,EAAE,EAAE,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AAC9G,MAAM,cAAc,GAAG,sHAAsH,CAAC;AAE9I,MAAM,UAAU,uBAAuB,CAAC,KAAoB;IAC1D,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACtC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,YAAY,EAAE,mBAAmB,IAAI,CAAC,IAAI,qHAAqH,IAAI,CAAC,MAAM,qFAAqF;KAChQ,CAAC,CAAC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAKnC;IACC,OAAO,oBAAoB,CAAC;QAC1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,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC;SACzH,CAAC,CAAC;QACH,QAAQ,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,KAAK,WAAW,CAAC;KACtF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"directives.d.ts","sourceRoot":"","sources":["../../src/enno-oduno/directives.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAQ7D,OAAO,KAAK,EACV,cAAc,EAEd,eAAe,EAEf,aAAa,EAKd,MAAM,YAAY,CAAC;AAgIpB,wBAAgB,eAAe,CAAC,QAAQ,EAAE,eAAe,GAAG,aAAa,GAAG,IAAI,CAqG/E;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACnC,GAAG,aAAa,CAqBhB;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAIzF"}
1
+ {"version":3,"file":"directives.d.ts","sourceRoot":"","sources":["../../src/enno-oduno/directives.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAQ7D,OAAO,KAAK,EACV,cAAc,EAEd,eAAe,EAEf,aAAa,EAKd,MAAM,YAAY,CAAC;AAgIpB,wBAAgB,eAAe,CAAC,QAAQ,EAAE,eAAe,GAAG,aAAa,GAAG,IAAI,CAuG/E;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACnC,GAAG,aAAa,CAqBhB;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAIzF"}
@@ -146,7 +146,7 @@ export function directiveForRun(snapshot) {
146
146
  'Do not mutate the repository',
147
147
  ],
148
148
  reportSchema: REPORT_SCHEMAS.plan,
149
- ...(advisoryRound === undefined ? {} : { advisoryRound }),
149
+ ...(advisoryRound !== undefined && (snapshot.status !== 'enno_verifying' || snapshot.finalEvidenceReady) ? { advisoryRound } : {}),
150
150
  };
151
151
  }
152
152
  if (role === 'goki') {
@@ -184,7 +184,9 @@ export function directiveForRun(snapshot) {
184
184
  : snapshot.status === 'needs_confirmation'
185
185
  ? CONFIRMATION_OBJECTIVE
186
186
  : snapshot.status === 'enno_verifying'
187
- ? 'Review the completed Goki work with the approved final verifiers. Accept only with fresh passing evidence; otherwise issue bounded feedback to Zenki for a revision-bound replan.'
187
+ ? snapshot.finalEvidenceReady
188
+ ? 'Review the evidence-ready completed Goki work against the approved final verifiers. Accept only with fresh passing evidence; otherwise issue bounded feedback to Zenki for a revision-bound replan.'
189
+ : 'Run the approved final verifiers by calling enno_verify_prepare so fresh evidence is stored before the Final Review advisory fanout.'
188
190
  : snapshot.status === 'oduno_meditation'
189
191
  ? `Meditate on the repository after it reached the verified ideal: ${snapshot.ideal?.objective ?? snapshot.handoff.objective}. Inspect relevant changed and approved paths (${changedPaths(snapshot).join(', ') || snapshot.contract.scope.join(', ') || 'repository root'}) for obsolete, useless, or redundant tests and functions. Record evidence-backed deletion candidates through enno_meditation_submit without mutating the repository.`
190
192
  : 'Control intake and advance only after the task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AQ,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,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,7 @@
1
1
  export declare 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`.";
2
- 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. Zenki selects one to three versioned `expertRefs` for the unit's concrete risks; a UI unit needs at least one `code.*` and one `ui.*` expert. 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 them to every Enno tool. A host client session ID is optional and may be bound later only by the single matching pending active run under the canonical repository; never select a repository-wide latest run. Ambiguous candidates fail open without binding, and a completed client binding is immutable. 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
- 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 round is phase-local and does not advance main Enno status; pass its digest to the existing phase submit. Final verifier preparation is idempotent for revision plus mutation revision and reuses fresh stored evidence.";
4
- 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. Zenki selects one to three versioned `expertRefs` for the unit's concrete risks; a UI unit needs at least one `code.*` and one `ui.*` expert. 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 them to every Enno tool. A host client session ID is optional and may be bound later only by the single matching pending active run under the canonical repository; never select a repository-wide latest run. Ambiguous candidates fail open without binding, and a completed client binding is immutable. 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
+ 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 an exact session route; 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. 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_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. Zenki selects one to three versioned `expertRefs` for the unit's concrete risks; a UI unit needs at least one `code.*` and one `ui.*` expert. 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 them to every Enno tool. 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 an exact session route; 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. 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`.";
5
+ 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 round is phase-local and does not advance main Enno status; pass its digest to the existing phase submit. Final Review is two-phase: `enno_verify_prepare` executes the final verifiers outside database transactions with shell disabled and repository-bounded cwd, then stores fresh evidence bound to the current contract revision plus mutation revision, reusing identical fresh evidence for the same revision plus mutation revision; the final advisory fanout is returned only after that evidence is prepared. `enno_finish` never spawns a subprocess and decides accept/replan/block from the stored fresh evidence, rejecting unready evidence as a conflict.";
6
+ 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. Zenki selects one to three versioned `expertRefs` for the unit's concrete risks; a UI unit needs at least one `code.*` and one `ui.*` expert. 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 them to every Enno tool. 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 an exact session route; 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. 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.";
5
7
  //# 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,iCAAiC,2lGAAyuF,CAAC;AAExxF,eAAO,MAAM,4BAA4B,kiCAA0iC,CAAC;AAMplC,eAAO,MAAM,+CAA+C,2lGAAoC,CAAC"}
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,yrBAAyrB,CAAC;AAEnuB,eAAO,MAAM,iCAAiC,6/GAAs/E,CAAC;AAEriF,eAAO,MAAM,4BAA4B,s9CAAk+C,CAAC;AAI5gD,eAAO,MAAM,+CAA+C,qoJAAiF,CAAC"}
@@ -1,10 +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
- 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. Zenki selects one to three versioned \`expertRefs\` for the unit's concrete risks; a UI unit needs at least one \`code.*\` and one \`ui.*\` expert. 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 them to every Enno tool. A host client session ID is optional and may be bound later only by the single matching pending active run under the canonical repository; never select a repository-wide latest run. Ambiguous candidates fail open without binding, and a completed client binding is immutable. ${ENNO_CONFIRMATION_DISPLAY_CONTRACT}`;
4
- 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 round is phase-local and does not advance main Enno status; pass its digest to the existing phase submit. Final verifier preparation is idempotent for revision plus mutation revision and reuses fresh stored evidence.`;
5
- // The managed agent/setup templates carry the advisory contract through their
6
- // dedicated architecture/security and role-specific documentation. Keep this
7
- // compatibility alias equal to the established numbered contract so existing
8
- // managed-block templates remain byte-identical.
9
- export const ENNO_ORCHESTRATION_ENTRY_CONTRACT_WITH_ADVISORY = ENNO_ORCHESTRATION_ENTRY_CONTRACT;
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 an exact session route; 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. 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_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. Zenki selects one to three versioned \`expertRefs\` for the unit's concrete risks; a UI unit needs at least one \`code.*\` and one \`ui.*\` expert. 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 them to every Enno tool. ${ENNO_CLIENT_ROUTING_CONTRACT} ${ENNO_CONFIRMATION_DISPLAY_CONTRACT}`;
6
+ 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 round is phase-local and does not advance main Enno status; pass its digest to the existing phase submit. Final Review is two-phase: \`enno_verify_prepare\` executes the final verifiers outside database transactions with shell disabled and repository-bounded cwd, then stores fresh evidence bound to the current contract revision plus mutation revision, reusing identical fresh evidence for the same revision plus mutation revision; the final advisory fanout is returned only after that evidence is prepared. \`enno_finish\` never spawns a subprocess and decides accept/replan/block from the stored fresh evidence, rejecting unready evidence as a conflict.`;
7
+ // Managed agent/setup templates carry the advisory architecture separately.
8
+ // This composed contract adds the user-owned plan-start recovery interaction.
9
+ export const ENNO_ORCHESTRATION_ENTRY_CONTRACT_WITH_ADVISORY = `${ENNO_ORCHESTRATION_ENTRY_CONTRACT} ${PLAN_START_RECOVERY_DISPLAY_CONTRACT}`;
10
10
  //# sourceMappingURL=instructions.js.map
@@ -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,iCAAiC,GAAG,gTAAgT,wBAAwB,yEAAyE,wBAAwB,ynBAAynB,4BAA4B,ooDAAooD,kCAAkC,EAAE,CAAC;AAExxF,MAAM,CAAC,MAAM,4BAA4B,GAAG,uiCAAuiC,CAAC;AAEplC,8EAA8E;AAC9E,6EAA6E;AAC7E,6EAA6E;AAC7E,iDAAiD;AACjD,MAAM,CAAC,MAAM,+CAA+C,GAAG,iCAAiC,CAAC"}
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,srBAAsrB,CAAC;AAEnuB,MAAM,CAAC,MAAM,iCAAiC,GAAG,gTAAgT,wBAAwB,yEAAyE,wBAAwB,ynBAAynB,4BAA4B,i3CAAi3C,4BAA4B,IAAI,kCAAkC,EAAE,CAAC;AAEriF,MAAM,CAAC,MAAM,4BAA4B,GAAG,+9CAA+9C,CAAC;AAE5gD,4EAA4E;AAC5E,8EAA8E;AAC9E,MAAM,CAAC,MAAM,+CAA+C,GAAG,GAAG,iCAAiC,IAAI,oCAAoC,EAAE,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { KiokukoError } from '../errors.js';
2
+ export declare const PLAN_START_RECOVERY_CODE: "PLAN_START_RECOVERY_REQUIRED";
3
+ export declare const PLAN_START_RECOVERY_DETAIL_KEY: "planStartRecoveryReason";
4
+ export declare const PLAN_START_RECOVERY_REASONS: readonly ["environment_information_missing", "environment_changed", "previous_attempt_ended"];
5
+ export type PlanStartRecoveryReason = (typeof PLAN_START_RECOVERY_REASONS)[number];
6
+ export type PlanStartRecoveryAction = 'continue_same_plan' | 'revise_plan' | 'restart_same_plan' | 'revise_then_restart' | 'cancel';
7
+ export interface UserFacingPlanRecoveryOption {
8
+ action: PlanStartRecoveryAction;
9
+ label: string;
10
+ recommended: boolean;
11
+ whenToChoose: string;
12
+ whatHappens: string;
13
+ }
14
+ export interface UserFacingPlanRecovery {
15
+ presentationVersion: 1;
16
+ whatHappened: string;
17
+ workState: string;
18
+ resolution: string;
19
+ options: UserFacingPlanRecoveryOption[];
20
+ }
21
+ export interface PlanStartRecovery {
22
+ code: typeof PLAN_START_RECOVERY_CODE;
23
+ reason: PlanStartRecoveryReason;
24
+ userFacingRecovery: UserFacingPlanRecovery;
25
+ }
26
+ export declare function buildPlanStartRecovery(reason: PlanStartRecoveryReason): PlanStartRecovery;
27
+ export declare function planStartRecoveryError(reason: PlanStartRecoveryReason): KiokukoError;
28
+ export declare function renderPlanStartRecovery(recovery: PlanStartRecovery): string;
29
+ //# sourceMappingURL=plan-recovery.d.ts.map
@@ -0,0 +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;AAEnF,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;CAC5C;AAID,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,uBAAuB,GAAG,iBAAiB,CAwGzF;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,uBAAuB,GAAG,YAAY,CAIpF;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,MAAM,CAa3E"}
@@ -0,0 +1,134 @@
1
+ import { KiokukoError } from '../errors.js';
2
+ export const PLAN_START_RECOVERY_CODE = 'PLAN_START_RECOVERY_REQUIRED';
3
+ export const PLAN_START_RECOVERY_DETAIL_KEY = 'planStartRecoveryReason';
4
+ export const PLAN_START_RECOVERY_REASONS = [
5
+ 'environment_information_missing',
6
+ 'environment_changed',
7
+ 'previous_attempt_ended',
8
+ ];
9
+ const NO_NEW_WORK = 'Starting this plan did not begin new work or make additional code changes.';
10
+ export function buildPlanStartRecovery(reason) {
11
+ if (reason === 'environment_information_missing') {
12
+ return {
13
+ code: PLAN_START_RECOVERY_CODE,
14
+ reason,
15
+ userFacingRecovery: {
16
+ presentationVersion: 1,
17
+ whatHappened: 'Information about the features available in this environment was not carried into the plan.',
18
+ workState: NO_NEW_WORK,
19
+ resolution: 'Attach the current environment information to continue with the same plan.',
20
+ options: [
21
+ {
22
+ action: 'continue_same_plan',
23
+ label: 'Continue with the same plan',
24
+ recommended: true,
25
+ whenToChoose: 'The plan is still correct and only the current environment information needs to be attached.',
26
+ whatHappens: 'The current environment information is attached automatically, and the same attempt continues.',
27
+ },
28
+ {
29
+ action: 'revise_plan',
30
+ label: 'Review the plan',
31
+ recommended: false,
32
+ whenToChoose: 'You want to change the scope, work items, or verification before continuing.',
33
+ whatHappens: 'You are asked what to change, and implementation does not start until you answer.',
34
+ },
35
+ {
36
+ action: 'cancel',
37
+ label: 'Cancel',
38
+ recommended: false,
39
+ whenToChoose: 'You no longer want this work to continue.',
40
+ whatHappens: 'The current attempt is cancelled, and no replacement attempt is created.',
41
+ },
42
+ ],
43
+ },
44
+ };
45
+ }
46
+ if (reason === 'previous_attempt_ended') {
47
+ return {
48
+ code: PLAN_START_RECOVERY_CODE,
49
+ reason,
50
+ userFacingRecovery: {
51
+ presentationVersion: 1,
52
+ whatHappened: 'Required environment information was not included when this plan was submitted, so this attempt has ended.',
53
+ workState: NO_NEW_WORK,
54
+ resolution: 'The plan itself can be used to start a new attempt with the current environment.',
55
+ options: [
56
+ {
57
+ action: 'restart_same_plan',
58
+ label: 'Restart with the same plan',
59
+ recommended: true,
60
+ whenToChoose: 'The ended attempt\'s plan is still correct and should be reused.',
61
+ whatHappens: 'The ended attempt stays unchanged, and a new attempt starts with the current environment and the same agreed plan.',
62
+ },
63
+ {
64
+ action: 'revise_then_restart',
65
+ label: 'Review the plan before restarting',
66
+ recommended: false,
67
+ whenToChoose: 'You want to change the scope, work items, or verification before creating a replacement.',
68
+ whatHappens: 'You are asked what to change; the ended attempt stays unchanged, and a new attempt starts with the current environment and revised plan only after you answer.',
69
+ },
70
+ {
71
+ action: 'cancel',
72
+ label: 'Cancel',
73
+ recommended: false,
74
+ whenToChoose: 'You do not want to restart the work.',
75
+ whatHappens: 'The ended attempt remains ended, and no new attempt is created.',
76
+ },
77
+ ],
78
+ },
79
+ };
80
+ }
81
+ return {
82
+ code: PLAN_START_RECOVERY_CODE,
83
+ reason,
84
+ userFacingRecovery: {
85
+ presentationVersion: 1,
86
+ whatHappened: 'The features available in this environment have changed since this plan was created.',
87
+ workState: NO_NEW_WORK,
88
+ resolution: 'Start a new attempt using the current environment.',
89
+ options: [
90
+ {
91
+ action: 'restart_same_plan',
92
+ label: 'Restart the same plan in the current environment',
93
+ recommended: true,
94
+ whenToChoose: 'The plan is still correct and only the available features have changed.',
95
+ whatHappens: 'The current attempt is cancelled, and a new attempt starts with the current environment and the same agreed plan.',
96
+ },
97
+ {
98
+ action: 'revise_then_restart',
99
+ label: 'Review the plan before restarting',
100
+ recommended: false,
101
+ whenToChoose: 'The changed features should alter the scope, work items, or verification.',
102
+ whatHappens: 'You are asked what to change; after you answer, the current attempt is cancelled and a new attempt starts with the current environment and revised plan.',
103
+ },
104
+ {
105
+ action: 'cancel',
106
+ label: 'Cancel',
107
+ recommended: false,
108
+ whenToChoose: 'You no longer want this work to continue.',
109
+ whatHappens: 'The current attempt is cancelled, and no replacement attempt is created.',
110
+ },
111
+ ],
112
+ },
113
+ };
114
+ }
115
+ export function planStartRecoveryError(reason) {
116
+ return new KiokukoError('CONFLICT', 'Plan start requires an explicit recovery choice', {
117
+ [PLAN_START_RECOVERY_DETAIL_KEY]: reason,
118
+ });
119
+ }
120
+ export function renderPlanStartRecovery(recovery) {
121
+ const projection = recovery.userFacingRecovery;
122
+ return [
123
+ projection.whatHappened,
124
+ projection.workState,
125
+ projection.resolution,
126
+ '',
127
+ ...projection.options.flatMap((option, index) => [
128
+ `${index + 1}. ${option.label}${option.recommended ? ' (Recommended)' : ''}`,
129
+ ` Choose this when: ${option.whenToChoose}`,
130
+ ` What happens: ${option.whatHappens}`,
131
+ ]),
132
+ ].join('\n');
133
+ }
134
+ //# sourceMappingURL=plan-recovery.js.map
@@ -0,0 +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;AAiCX,MAAM,WAAW,GAAG,4EAA4E,CAAC;AAEjG,MAAM,UAAU,sBAAsB,CAAC,MAA+B;IACpE,IAAI,MAAM,KAAK,iCAAiC,EAAE,CAAC;QACjD,OAAO;YACL,IAAI,EAAE,wBAAwB;YAC9B,MAAM;YACN,kBAAkB,EAAE;gBAClB,mBAAmB,EAAE,CAAC;gBACtB,YAAY,EAAE,6FAA6F;gBAC3G,SAAS,EAAE,WAAW;gBACtB,UAAU,EAAE,4EAA4E;gBACxF,OAAO,EAAE;oBACP;wBACE,MAAM,EAAE,oBAAoB;wBAC5B,KAAK,EAAE,6BAA6B;wBACpC,WAAW,EAAE,IAAI;wBACjB,YAAY,EAAE,8FAA8F;wBAC5G,WAAW,EAAE,gGAAgG;qBAC9G;oBACD;wBACE,MAAM,EAAE,aAAa;wBACrB,KAAK,EAAE,iBAAiB;wBACxB,WAAW,EAAE,KAAK;wBAClB,YAAY,EAAE,8EAA8E;wBAC5F,WAAW,EAAE,mFAAmF;qBACjG;oBACD;wBACE,MAAM,EAAE,QAAQ;wBACh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ACpD,eAAO,MAAM,qBAAqB,QAAa,CAAC;AA8EhD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,aAAa,CAgCnF;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAapD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAM1D;AAcD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CASxE;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CASjE"}
1
+ {"version":3,"file":"role-runner.d.ts","sourceRoot":"","sources":["../../src/enno-oduno/role-runner.ts"],"names":[],"mappings":"AAkBA,OAAO,EAA6B,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAE1F,eAAO,MAAM,oBAAoB,QAAkB,CAAC;AACpD,eAAO,MAAM,qBAAqB,QAAa,CAAC;AA4FhD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,aAAa,CAkCnF;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAapD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAM1D;AAcD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CASxE;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CASjE"}
@@ -4,10 +4,21 @@ import { KiokukoError } from '../errors.js';
4
4
  import { parseStrictJson } from '../setup/strict-json.js';
5
5
  import { STANDARD_FUNCTION_SKILL_NAME, STANDARD_SOUL_SKILL_NAME, STANDARD_UI_SKILL_NAME, } from '../setup/standard-skills.js';
6
6
  import { directiveForRun } from './directives.js';
7
- import { ennoContractSchema, ennoRequestHandoffSchema, odunoIdealSchema, odunoMeditationSchema, workUnitSchema, } from './schemas.js';
7
+ import { ennoContractSchema, ennoRequestHandoffSchema, odunoIdealSchema, odunoMeditationSchema, verifierSpecSchema, workUnitSchema, } from './schemas.js';
8
8
  import { ENNO_ROLES, ENNO_STATUSES } from './types.js';
9
9
  export const MAX_ROLE_INPUT_BYTES = 2 * 1024 * 1024;
10
10
  export const MAX_ROLE_OUTPUT_BYTES = 256 * 1024;
11
+ const verifierRunResultSchema = z.object({
12
+ verifier: verifierSpecSchema,
13
+ status: z.enum(['passed', 'failed', 'timeout', 'spawn_failed']),
14
+ exitCode: z.number().int().nullable(),
15
+ signal: z.string().max(200).nullable(),
16
+ durationMs: z.number().int().min(0),
17
+ stdoutPreview: z.string().max(8 * 1024),
18
+ stderrPreview: z.string().max(8 * 1024),
19
+ stdoutDigest: z.string().regex(/^[0-9a-f]{64}$/u),
20
+ stderrDigest: z.string().regex(/^[0-9a-f]{64}$/u),
21
+ }).strict();
11
22
  const roleInputSchema = z.object({
12
23
  runId: z.string().min(1).max(256),
13
24
  workspace: z.string().min(1).max(256).default('script'),
@@ -38,6 +49,8 @@ const roleInputSchema = z.object({
38
49
  }).strict().nullable(),
39
50
  }).strict()).max(128).default([]),
40
51
  blocker: z.string().max(16_384).nullable().default(null),
52
+ finalEvidenceReady: z.boolean().default(false),
53
+ finalEvidence: z.array(verifierRunResultSchema).default([]),
41
54
  akinatorProfile: z.object({
42
55
  taskType: z.enum(['build', 'debug', 'review', 'devops']).nullable(),
43
56
  target: z.string().max(4_096).nullable(),
@@ -109,6 +122,8 @@ export function generateRoleDirective(role, input) {
109
122
  contract: parsed.data.contract,
110
123
  handoff: parsed.data.handoff,
111
124
  workUnits: parsed.data.workUnits,
125
+ finalEvidenceReady: parsed.data.finalEvidenceReady,
126
+ finalEvidence: parsed.data.finalEvidence,
112
127
  blocker: parsed.data.blocker,
113
128
  });
114
129
  if (directive === null || directive.role !== role) {