@askdkc/kiokuko 0.1.31 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +55 -4
- package/README.ko.md +50 -4
- package/README.md +55 -4
- package/README.zh-CN.md +50 -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 +11 -6
- package/dist/agent-file/render.js.map +1 -1
- package/dist/akinator/agent-task.d.ts +2 -0
- package/dist/akinator/agent-task.d.ts.map +1 -1
- package/dist/akinator/agent-task.js +39 -12
- package/dist/akinator/agent-task.js.map +1 -1
- package/dist/akinator/capabilities.d.ts.map +1 -1
- package/dist/akinator/capabilities.js +21 -14
- package/dist/akinator/capabilities.js.map +1 -1
- package/dist/akinator/skill-discovery-attempt.d.ts +1 -0
- package/dist/akinator/skill-discovery-attempt.d.ts.map +1 -1
- package/dist/akinator/skill-discovery-attempt.js +20 -18
- package/dist/akinator/skill-discovery-attempt.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/agent.d.ts.map +1 -1
- package/dist/commands/agent.js +18 -9
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/enno.d.ts +7 -0
- package/dist/commands/enno.d.ts.map +1 -0
- package/dist/commands/enno.js +76 -0
- package/dist/commands/enno.js.map +1 -0
- package/dist/commands/setup.d.ts +5 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +83 -18
- package/dist/commands/setup.js.map +1 -1
- package/dist/config/paths.d.ts +6 -0
- package/dist/config/paths.d.ts.map +1 -1
- package/dist/config/paths.js +40 -0
- package/dist/config/paths.js.map +1 -1
- package/dist/enno-oduno/adapters.d.ts +18 -0
- package/dist/enno-oduno/adapters.d.ts.map +1 -0
- package/dist/enno-oduno/adapters.js +216 -0
- package/dist/enno-oduno/adapters.js.map +1 -0
- package/dist/enno-oduno/directives.d.ts +12 -0
- package/dist/enno-oduno/directives.d.ts.map +1 -0
- package/dist/enno-oduno/directives.js +215 -0
- package/dist/enno-oduno/directives.js.map +1 -0
- package/dist/enno-oduno/enno-oduno.d.mts +2 -0
- package/dist/enno-oduno/enno-oduno.d.mts.map +1 -0
- package/dist/enno-oduno/enno-oduno.mjs +3 -0
- package/dist/enno-oduno/enno-oduno.mjs.map +1 -0
- package/dist/enno-oduno/experts.d.ts +6 -0
- package/dist/enno-oduno/experts.d.ts.map +1 -0
- package/dist/enno-oduno/experts.js +18 -0
- package/dist/enno-oduno/experts.js.map +1 -0
- package/dist/enno-oduno/goki.d.mts +2 -0
- package/dist/enno-oduno/goki.d.mts.map +1 -0
- package/dist/enno-oduno/goki.mjs +3 -0
- package/dist/enno-oduno/goki.mjs.map +1 -0
- package/dist/enno-oduno/handoff.d.ts +4 -0
- package/dist/enno-oduno/handoff.d.ts.map +1 -0
- package/dist/enno-oduno/handoff.js +18 -0
- package/dist/enno-oduno/handoff.js.map +1 -0
- package/dist/enno-oduno/harness.d.ts +20 -0
- package/dist/enno-oduno/harness.d.ts.map +1 -0
- package/dist/enno-oduno/harness.js +65 -0
- package/dist/enno-oduno/harness.js.map +1 -0
- package/dist/enno-oduno/instructions.d.ts +2 -0
- package/dist/enno-oduno/instructions.d.ts.map +1 -0
- package/dist/enno-oduno/instructions.js +3 -0
- package/dist/enno-oduno/instructions.js.map +1 -0
- package/dist/enno-oduno/role-runner.d.ts +9 -0
- package/dist/enno-oduno/role-runner.d.ts.map +1 -0
- package/dist/enno-oduno/role-runner.js +171 -0
- package/dist/enno-oduno/role-runner.js.map +1 -0
- package/dist/enno-oduno/schemas.d.ts +615 -0
- package/dist/enno-oduno/schemas.d.ts.map +1 -0
- package/dist/enno-oduno/schemas.js +336 -0
- package/dist/enno-oduno/schemas.js.map +1 -0
- package/dist/enno-oduno/service.d.ts +47 -0
- package/dist/enno-oduno/service.d.ts.map +1 -0
- package/dist/enno-oduno/service.js +841 -0
- package/dist/enno-oduno/service.js.map +1 -0
- package/dist/enno-oduno/skills.d.ts +22 -0
- package/dist/enno-oduno/skills.d.ts.map +1 -0
- package/dist/enno-oduno/skills.js +127 -0
- package/dist/enno-oduno/skills.js.map +1 -0
- package/dist/enno-oduno/store.d.ts +61 -0
- package/dist/enno-oduno/store.d.ts.map +1 -0
- package/dist/enno-oduno/store.js +337 -0
- package/dist/enno-oduno/store.js.map +1 -0
- package/dist/enno-oduno/types.d.ts +191 -0
- package/dist/enno-oduno/types.d.ts.map +1 -0
- package/dist/enno-oduno/types.js +41 -0
- package/dist/enno-oduno/types.js.map +1 -0
- package/dist/enno-oduno/verifier.d.ts +9 -0
- package/dist/enno-oduno/verifier.d.ts.map +1 -0
- package/dist/enno-oduno/verifier.js +101 -0
- package/dist/enno-oduno/verifier.js.map +1 -0
- package/dist/enno-oduno/zenki.d.mts +2 -0
- package/dist/enno-oduno/zenki.d.mts.map +1 -0
- package/dist/enno-oduno/zenki.mjs +3 -0
- package/dist/enno-oduno/zenki.mjs.map +1 -0
- package/dist/ledger/types.d.ts +1 -1
- package/dist/ledger/types.d.ts.map +1 -1
- package/dist/ledger/types.js +5 -0
- package/dist/ledger/types.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +66 -26
- package/dist/mcp/server.js.map +1 -1
- package/dist/setup/claude-config.d.ts +2 -0
- package/dist/setup/claude-config.d.ts.map +1 -1
- package/dist/setup/claude-config.js +12 -0
- package/dist/setup/claude-config.js.map +1 -1
- package/dist/setup/enno-client-config.d.ts +9 -0
- package/dist/setup/enno-client-config.d.ts.map +1 -0
- package/dist/setup/enno-client-config.js +172 -0
- package/dist/setup/enno-client-config.js.map +1 -0
- package/dist/setup/opencode-config.d.ts +2 -0
- package/dist/setup/opencode-config.d.ts.map +1 -1
- package/dist/setup/opencode-config.js +12 -0
- package/dist/setup/opencode-config.js.map +1 -1
- package/dist/setup/render.d.ts +2 -0
- package/dist/setup/render.d.ts.map +1 -1
- package/dist/setup/render.js +21 -12
- package/dist/setup/render.js.map +1 -1
- package/dist/setup/standard-skills.d.ts +23 -4
- package/dist/setup/standard-skills.d.ts.map +1 -1
- package/dist/setup/standard-skills.js +51 -1
- package/dist/setup/standard-skills.js.map +1 -1
- package/dist/skills/discovery-service.d.ts.map +1 -1
- package/dist/skills/discovery-service.js +2 -1
- package/dist/skills/discovery-service.js.map +1 -1
- package/dist/skills/types.d.ts +1 -0
- package/dist/skills/types.d.ts.map +1 -1
- package/dist/web/i18n.d.ts +19 -0
- package/dist/web/i18n.d.ts.map +1 -1
- package/dist/web/i18n.js +76 -0
- package/dist/web/i18n.js.map +1 -1
- package/dist/web/ui.d.ts.map +1 -1
- package/dist/web/ui.js +76 -4
- package/dist/web/ui.js.map +1 -1
- package/migrations/013_enno_oduno.sql +176 -0
- package/migrations/014_oduno_reflection_phases.sql +40 -0
- package/package.json +7 -1
- package/skills/kiokuko-enno-oduno/SKILL.md +122 -0
- package/skills/kiokuko-enno-oduno/enno-oduno.png +0 -0
- package/skills/kiokuko-single-purpose-functions/SKILL.md +44 -258
- package/skills/kiokuko-single-purpose-functions/references/boundaries-and-ownership.md +50 -0
- package/skills/kiokuko-single-purpose-functions/references/domain-and-types.md +48 -0
- package/skills/kiokuko-single-purpose-functions/references/effects-and-data.md +43 -0
- package/skills/kiokuko-single-purpose-functions/references/protocols-and-idempotency.md +42 -0
- package/skills/kiokuko-single-purpose-functions/references/verification.md +41 -0
- package/skills/kiokuko-soul/SKILL.md +72 -0
- package/skills/kiokuko-ui-design-soul/SKILL.md +39 -1178
- package/skills/kiokuko-ui-design-soul/references/accessibility-and-navigation.md +31 -0
- package/skills/kiokuko-ui-design-soul/references/async-recovery.md +49 -0
- package/skills/kiokuko-ui-design-soul/references/forms-and-controls.md +35 -0
- package/skills/kiokuko-ui-design-soul/references/interaction-feedback.md +34 -0
- package/skills/kiokuko-ui-design-soul/references/responsive-and-platform.md +38 -0
- package/skills/kiokuko-ui-design-soul/references/safety-and-review.md +39 -0
- package/templates/AGENTS.md +9 -6
package/dist/web/ui.js
CHANGED
|
@@ -177,6 +177,13 @@ export const WEB_HTML = String.raw `<!doctype html>
|
|
|
177
177
|
.notice { border-radius:12px; padding:11px 12px; background:#fffbeb; color:var(--warn); font-size:13px; }
|
|
178
178
|
.notice.error { background:#fef2f2; color:var(--danger); }
|
|
179
179
|
.status { color:var(--muted); font-size:12px; min-height:18px; }
|
|
180
|
+
.conflict-guide { display:grid; gap:10px; padding:16px; border:1px solid #fecaca; border-radius:14px; background:#fef2f2; color:#7f1d1d; font-size:14px; }
|
|
181
|
+
.conflict-guide h2,.conflict-guide p,.conflict-guide ol { margin:0; }
|
|
182
|
+
.conflict-guide h2 { font-size:16px; }
|
|
183
|
+
.conflict-guide ol { display:grid; gap:6px; padding-left:22px; line-height:1.5; }
|
|
184
|
+
.conflict-guide-actions { display:flex; flex-wrap:wrap; gap:8px; }
|
|
185
|
+
.conflict-guide-feedback { min-height:18px; font-size:13px; font-weight:700; }
|
|
186
|
+
.conflict-guide-feedback.error { color:var(--danger); }
|
|
180
187
|
.operator-panel { grid-column:1 / -1; margin-top:16px; }
|
|
181
188
|
.operator-grid { display:grid; grid-template-columns:minmax(240px,.7fr) minmax(420px,1.3fr); gap:16px; }
|
|
182
189
|
.run-list { display:flex; flex-direction:column; gap:8px; max-height:360px; overflow:auto; }
|
|
@@ -402,7 +409,7 @@ export const WEB_HTML = String.raw `<!doctype html>
|
|
|
402
409
|
if (state.selected) { delete element.dataset.i18n; element.dataset.i18nStatus = state.selected.status; element.textContent = labelForStatus(state.selected.status); }
|
|
403
410
|
else { delete element.dataset.i18nStatus; setI18nText(element, 'unselected'); }
|
|
404
411
|
};
|
|
405
|
-
const showStatus = (message, error = false) => { $('status').textContent = message;
|
|
412
|
+
const showStatus = (message, error = false) => { const element = $('status'); element.textContent = message; element.className = error ? 'status notice error' : 'status'; element.setAttribute('role', error ? 'alert' : 'status'); element.setAttribute('aria-live', error ? 'assertive' : 'polite'); };
|
|
406
413
|
const setStatus = (message, error = false) => { state.localizedStatus = null; showStatus(message, error); };
|
|
407
414
|
const setLocalizedStatus = (key, parameters = {}, error = false) => { state.localizedStatus = { key, parameters, error }; showStatus(t(key, parameters), error); };
|
|
408
415
|
const setLocalizedCountStatus = (key, count, error = false) => { state.localizedStatus = { key, count, error, plural: true }; showStatus(tp(key, count), error); };
|
|
@@ -468,6 +475,69 @@ export const WEB_HTML = String.raw `<!doctype html>
|
|
|
468
475
|
if (!response.ok) throw apiError(value);
|
|
469
476
|
return value;
|
|
470
477
|
};
|
|
478
|
+
async function loadEntrySelection(id) {
|
|
479
|
+
const result = await api('/api/entries/' + encodeURIComponent(id) + '?workspace=' + encodeURIComponent(state.workspace));
|
|
480
|
+
state.selectedRecall = null; state.selected = result.entry; renderEntries(); renderEditor();
|
|
481
|
+
}
|
|
482
|
+
async function copyTextToClipboard(text) {
|
|
483
|
+
if (!navigator.clipboard?.writeText) throw new Error('Clipboard API unavailable');
|
|
484
|
+
await navigator.clipboard.writeText(text);
|
|
485
|
+
}
|
|
486
|
+
function showEntryConflictGuide(entryId, draftText) {
|
|
487
|
+
state.localizedStatus = null;
|
|
488
|
+
const root = $('status'); root.className = 'status conflict-guide'; root.setAttribute('role', 'alert'); root.setAttribute('aria-live', 'assertive');
|
|
489
|
+
const heading = document.createElement('h2'); setI18nText(heading, 'entryConflictTitle');
|
|
490
|
+
const explanation = document.createElement('p'); setI18nText(explanation, 'entryConflictExplanation');
|
|
491
|
+
const steps = document.createElement('ol');
|
|
492
|
+
for (const key of ['entryConflictStepCopy', 'entryConflictStepReload', 'entryConflictStepCompare']) { const item = document.createElement('li'); setI18nText(item, key); steps.append(item); }
|
|
493
|
+
const applyHint = document.createElement('p'); applyHint.id = 'entry-conflict-apply-hint'; setI18nText(applyHint, 'entryConflictApplyHint');
|
|
494
|
+
const actions = document.createElement('div'); actions.className = 'conflict-guide-actions';
|
|
495
|
+
const apply = document.createElement('button'); apply.type = 'button'; apply.className = 'button primary'; apply.setAttribute('aria-describedby', applyHint.id); setI18nText(apply, 'entryConflictApply');
|
|
496
|
+
const copy = document.createElement('button'); copy.type = 'button'; copy.className = 'button'; setI18nText(copy, 'entryConflictCopy');
|
|
497
|
+
const reload = document.createElement('button'); reload.type = 'button'; reload.className = 'button'; setI18nText(reload, 'entryConflictReload');
|
|
498
|
+
const feedback = document.createElement('div'); feedback.className = 'conflict-guide-feedback'; feedback.setAttribute('role', 'status'); feedback.setAttribute('aria-live', 'polite');
|
|
499
|
+
const actionsDisabled = (disabled) => { for (const action of [apply, copy, reload]) action.disabled = disabled; };
|
|
500
|
+
apply.addEventListener('click', async () => {
|
|
501
|
+
actionsDisabled(true); setI18nText(apply, 'entryConflictApplying');
|
|
502
|
+
try {
|
|
503
|
+
await copyTextToClipboard(draftText());
|
|
504
|
+
} catch {
|
|
505
|
+
actionsDisabled(false); setI18nText(apply, 'entryConflictApply');
|
|
506
|
+
feedback.className = 'conflict-guide-feedback error'; setI18nText(feedback, 'entryConflictApplyCopyFailed');
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
try {
|
|
510
|
+
await loadEntrySelection(entryId);
|
|
511
|
+
setLocalizedStatus('entryConflictApplied');
|
|
512
|
+
} catch (error) {
|
|
513
|
+
actionsDisabled(false); setI18nText(apply, 'entryConflictApply');
|
|
514
|
+
feedback.className = 'conflict-guide-feedback error'; feedback.textContent = t('entryConflictApplyReloadFailed') + ' ' + apiErrorText(error);
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
copy.addEventListener('click', async () => {
|
|
518
|
+
actionsDisabled(true); setI18nText(copy, 'entryConflictCopying');
|
|
519
|
+
try {
|
|
520
|
+
await copyTextToClipboard(draftText());
|
|
521
|
+
feedback.className = 'conflict-guide-feedback'; setI18nText(feedback, 'entryConflictCopied');
|
|
522
|
+
} catch {
|
|
523
|
+
feedback.className = 'conflict-guide-feedback error'; setI18nText(feedback, 'entryConflictCopyFailed');
|
|
524
|
+
} finally {
|
|
525
|
+
actionsDisabled(false); setI18nText(copy, 'entryConflictCopy');
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
reload.addEventListener('click', async () => {
|
|
529
|
+
actionsDisabled(true); setI18nText(reload, 'entryConflictReloading');
|
|
530
|
+
try {
|
|
531
|
+
await loadEntrySelection(entryId);
|
|
532
|
+
setLocalizedStatus('entryConflictReloaded');
|
|
533
|
+
} catch (error) {
|
|
534
|
+
actionsDisabled(false); setI18nText(reload, 'entryConflictReload');
|
|
535
|
+
feedback.className = 'conflict-guide-feedback error'; feedback.textContent = apiErrorText(error);
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
actions.append(apply, copy, reload); root.replaceChildren(heading, explanation, steps, applyHint, actions, feedback);
|
|
539
|
+
requestAnimationFrame(() => root.scrollIntoView({ block: 'nearest' }));
|
|
540
|
+
}
|
|
471
541
|
const escapeTags = (value) => value.split(',').map((item) => item.trim()).filter(Boolean);
|
|
472
542
|
const setCuratorStatus = (message, error = false) => {
|
|
473
543
|
const element = $('curator-status');
|
|
@@ -922,15 +992,17 @@ export const WEB_HTML = String.raw `<!doctype html>
|
|
|
922
992
|
const save = document.createElement('button'); save.type = 'submit'; save.className = 'button primary'; setI18nText(save, 'save');
|
|
923
993
|
const note = document.createElement('div'); note.className = entry.status === 'candidate' ? 'notice' : 'notice error'; setI18nText(note, entry.status === 'candidate' ? 'candidateNotice' : 'immutableNotice');
|
|
924
994
|
if (entry.status !== 'candidate') { save.disabled = true; [kind, title, body, summary, tags, scope, provenance].forEach((control) => { control.disabled = true; }); }
|
|
925
|
-
|
|
995
|
+
const draftText = () => JSON.stringify({ memoryType: kind.value, title: title.value, body: body.value, summary: summary.value, tags: tags.value, scopeJson: scope.value, provenanceJson: provenance.value }, null, 2);
|
|
996
|
+
actions.append(save); form.append(row, titleLabel, bodyLabel, summaryLabel, tagsLabel, jsonRow, note, actions); form.addEventListener('submit', async (event) => { event.preventDefault(); if (save.disabled) return; save.disabled = true; setI18nText(save, 'saving'); try {
|
|
926
997
|
const payload = { expectedRevision: entry.revision, kind: kind.value, title: title.value, body: body.value, summary: summary.value || null, scope: JSON.parse(scope.value || '{}'), provenance: JSON.parse(provenance.value || '{}'), tags: escapeTags(tags.value) };
|
|
927
998
|
await api('/api/entries/' + encodeURIComponent(entry.id) + '?workspace=' + encodeURIComponent(state.workspace), { method: 'PUT', headers: { 'content-type': 'application/json' }, body: JSON.stringify(payload) });
|
|
928
999
|
setLocalizedStatus('saved'); await loadEntries(); await selectEntry(entry.id);
|
|
929
|
-
} catch (error) { setStatus(error.message, true); }
|
|
1000
|
+
} catch (error) { if (error instanceof Error && error.code === 'CONFLICT') showEntryConflictGuide(entry.id, draftText); else setStatus(error instanceof Error ? error.message : t('requestFailed'), true); }
|
|
1001
|
+
finally { if (save.isConnected) { save.disabled = false; setI18nText(save, 'save'); } }
|
|
930
1002
|
}); editor.replaceChildren(form);
|
|
931
1003
|
}
|
|
932
1004
|
|
|
933
|
-
async function selectEntry(id) { try {
|
|
1005
|
+
async function selectEntry(id) { try { await loadEntrySelection(id); } catch (error) { setStatus(error instanceof Error ? error.message : t('requestFailed'), true); } }
|
|
934
1006
|
|
|
935
1007
|
const curatorCandidateKey = (candidate) => candidate.workspace + '\u0000' + candidate.entryId;
|
|
936
1008
|
|
package/dist/web/ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE7F,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC;IACrC,aAAa,EAAE,kBAAkB;IACjC,YAAY,EAAE,iBAAiB;IAC/B,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,YAAY;CACvB,CAAC;KACC,UAAU,CAAC,GAAG,EAAE,SAAS,CAAC;KAC1B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAo8BjF,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
-- Add phase-scoped discovery attempts while preserving every v9 intake attempt.
|
|
2
|
+
ALTER TABLE agent_task_skill_discovery_attempts RENAME TO agent_task_skill_discovery_attempts_v9;
|
|
3
|
+
|
|
4
|
+
CREATE TABLE agent_task_skill_discovery_attempts (
|
|
5
|
+
run_id TEXT NOT NULL REFERENCES ledger_runs(run_id) ON DELETE CASCADE,
|
|
6
|
+
phase TEXT NOT NULL CHECK (phase IN ('intake', 'zenki')),
|
|
7
|
+
request_digest TEXT NOT NULL CHECK (
|
|
8
|
+
typeof(request_digest) = 'text'
|
|
9
|
+
AND length(request_digest) = 64
|
|
10
|
+
AND request_digest NOT GLOB '*[^0-9a-f]*'
|
|
11
|
+
),
|
|
12
|
+
state TEXT NOT NULL CHECK (state IN ('started', 'completed', 'failed')),
|
|
13
|
+
summary_json TEXT,
|
|
14
|
+
failure_json TEXT,
|
|
15
|
+
started_at TEXT NOT NULL CHECK (typeof(started_at) = 'text' AND length(started_at) > 0),
|
|
16
|
+
finished_at TEXT,
|
|
17
|
+
PRIMARY KEY (run_id, phase),
|
|
18
|
+
CHECK (
|
|
19
|
+
finished_at IS NULL
|
|
20
|
+
OR (typeof(finished_at) = 'text' AND length(finished_at) > 0 AND finished_at >= started_at)
|
|
21
|
+
),
|
|
22
|
+
CHECK (
|
|
23
|
+
(state = 'started' AND summary_json IS NULL AND failure_json IS NULL AND finished_at IS NULL)
|
|
24
|
+
OR (state = 'completed' AND typeof(summary_json) = 'text' AND failure_json IS NULL AND finished_at IS NOT NULL)
|
|
25
|
+
OR (state = 'failed' AND summary_json IS NULL AND typeof(failure_json) = 'text' AND finished_at IS NOT NULL)
|
|
26
|
+
)
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
INSERT INTO agent_task_skill_discovery_attempts (
|
|
30
|
+
run_id, phase, request_digest, state, summary_json, failure_json, started_at, finished_at
|
|
31
|
+
)
|
|
32
|
+
SELECT run_id, 'intake', request_digest, state, summary_json, failure_json, started_at, finished_at
|
|
33
|
+
FROM agent_task_skill_discovery_attempts_v9;
|
|
34
|
+
|
|
35
|
+
DROP TABLE agent_task_skill_discovery_attempts_v9;
|
|
36
|
+
|
|
37
|
+
CREATE TABLE enno_contracts (
|
|
38
|
+
run_id TEXT PRIMARY KEY REFERENCES ledger_runs(run_id) ON DELETE CASCADE,
|
|
39
|
+
workspace TEXT NOT NULL,
|
|
40
|
+
orchestration_session_id TEXT NOT NULL CHECK (length(orchestration_session_id) BETWEEN 1 AND 256),
|
|
41
|
+
client_kind TEXT CHECK (client_kind IS NULL OR client_kind IN ('codex', 'claude', 'opencode')),
|
|
42
|
+
client_version TEXT CHECK (client_version IS NULL OR length(client_version) BETWEEN 1 AND 100),
|
|
43
|
+
client_session_id TEXT CHECK (client_session_id IS NULL OR length(client_session_id) BETWEEN 1 AND 256),
|
|
44
|
+
repository_root TEXT NOT NULL CHECK (length(repository_root) BETWEEN 1 AND 4096),
|
|
45
|
+
task_type TEXT NOT NULL CHECK (task_type IN ('build', 'debug', 'review', 'devops')),
|
|
46
|
+
status TEXT NOT NULL CHECK (status IN (
|
|
47
|
+
'intake', 'zenki_planning', 'needs_confirmation', 'goki_executing',
|
|
48
|
+
'enno_verifying', 'completed', 'blocked', 'cancelled'
|
|
49
|
+
)),
|
|
50
|
+
revision INTEGER NOT NULL CHECK (revision >= 1),
|
|
51
|
+
confirmation_state TEXT NOT NULL CHECK (confirmation_state IN (
|
|
52
|
+
'not_required', 'pending', 'approved', 'revision_requested', 'cancelled'
|
|
53
|
+
)),
|
|
54
|
+
attempts INTEGER NOT NULL DEFAULT 0 CHECK (attempts BETWEEN 0 AND 20),
|
|
55
|
+
mutation_revision INTEGER NOT NULL DEFAULT 0 CHECK (mutation_revision >= 0),
|
|
56
|
+
contract_json TEXT NOT NULL,
|
|
57
|
+
handoff_json TEXT NOT NULL,
|
|
58
|
+
intake_discovery_json TEXT NOT NULL,
|
|
59
|
+
plan_digest TEXT,
|
|
60
|
+
blocker TEXT,
|
|
61
|
+
created_at TEXT NOT NULL,
|
|
62
|
+
updated_at TEXT NOT NULL,
|
|
63
|
+
UNIQUE (run_id, workspace, orchestration_session_id),
|
|
64
|
+
CHECK ((client_version IS NULL AND client_session_id IS NULL) OR client_kind IS NOT NULL)
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
CREATE TRIGGER enno_contract_identity_insert_guard
|
|
68
|
+
BEFORE INSERT ON enno_contracts
|
|
69
|
+
BEGIN
|
|
70
|
+
SELECT RAISE(ABORT, 'enno contract run identity mismatch')
|
|
71
|
+
WHERE (SELECT workspace FROM ledger_runs WHERE run_id = NEW.run_id) IS NULL
|
|
72
|
+
OR (SELECT workspace FROM ledger_runs WHERE run_id = NEW.run_id) <> NEW.workspace
|
|
73
|
+
OR (SELECT session_id FROM run_intakes WHERE run_id = NEW.run_id) IS NULL
|
|
74
|
+
OR (SELECT session_id FROM run_intakes WHERE run_id = NEW.run_id) <> NEW.orchestration_session_id;
|
|
75
|
+
END;
|
|
76
|
+
|
|
77
|
+
CREATE TRIGGER enno_contract_identity_update_guard
|
|
78
|
+
BEFORE UPDATE OF run_id, workspace, orchestration_session_id ON enno_contracts
|
|
79
|
+
BEGIN
|
|
80
|
+
SELECT RAISE(ABORT, 'enno contract run identity mismatch')
|
|
81
|
+
WHERE (SELECT workspace FROM ledger_runs WHERE run_id = NEW.run_id) IS NULL
|
|
82
|
+
OR (SELECT workspace FROM ledger_runs WHERE run_id = NEW.run_id) <> NEW.workspace
|
|
83
|
+
OR (SELECT session_id FROM run_intakes WHERE run_id = NEW.run_id) IS NULL
|
|
84
|
+
OR (SELECT session_id FROM run_intakes WHERE run_id = NEW.run_id) <> NEW.orchestration_session_id;
|
|
85
|
+
END;
|
|
86
|
+
|
|
87
|
+
CREATE TRIGGER enno_client_binding_update_guard
|
|
88
|
+
BEFORE UPDATE OF client_kind, client_version, client_session_id ON enno_contracts
|
|
89
|
+
WHEN OLD.client_session_id IS NOT NULL
|
|
90
|
+
BEGIN
|
|
91
|
+
SELECT RAISE(ABORT, 'enno client binding is immutable')
|
|
92
|
+
WHERE NEW.client_kind IS NOT OLD.client_kind
|
|
93
|
+
OR NEW.client_version IS NOT OLD.client_version
|
|
94
|
+
OR NEW.client_session_id IS NOT OLD.client_session_id;
|
|
95
|
+
END;
|
|
96
|
+
|
|
97
|
+
CREATE INDEX idx_enno_contracts_session_status
|
|
98
|
+
ON enno_contracts(client_kind, client_session_id, status, updated_at DESC);
|
|
99
|
+
|
|
100
|
+
CREATE TABLE enno_work_units (
|
|
101
|
+
run_id TEXT NOT NULL REFERENCES enno_contracts(run_id) ON DELETE CASCADE,
|
|
102
|
+
work_unit_id TEXT NOT NULL CHECK (length(work_unit_id) BETWEEN 1 AND 256),
|
|
103
|
+
contract_revision INTEGER NOT NULL CHECK (contract_revision >= 1),
|
|
104
|
+
order_index INTEGER NOT NULL CHECK (order_index >= 0),
|
|
105
|
+
work_unit_json TEXT NOT NULL,
|
|
106
|
+
status TEXT NOT NULL CHECK (status IN ('pending', 'in_progress', 'completed', 'failed', 'blocked')),
|
|
107
|
+
attempt_count INTEGER NOT NULL DEFAULT 0 CHECK (attempt_count BETWEEN 0 AND 20),
|
|
108
|
+
result_json TEXT,
|
|
109
|
+
created_at TEXT NOT NULL,
|
|
110
|
+
updated_at TEXT NOT NULL,
|
|
111
|
+
PRIMARY KEY (run_id, contract_revision, work_unit_id),
|
|
112
|
+
UNIQUE (run_id, contract_revision, order_index)
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
CREATE TABLE enno_verifier_runs (
|
|
116
|
+
verifier_run_id TEXT PRIMARY KEY,
|
|
117
|
+
run_id TEXT NOT NULL REFERENCES enno_contracts(run_id) ON DELETE CASCADE,
|
|
118
|
+
work_unit_id TEXT,
|
|
119
|
+
contract_revision INTEGER NOT NULL CHECK (contract_revision >= 1),
|
|
120
|
+
mutation_revision INTEGER NOT NULL CHECK (mutation_revision >= 0),
|
|
121
|
+
verifier_id TEXT NOT NULL CHECK (length(verifier_id) BETWEEN 1 AND 256),
|
|
122
|
+
verifier_json TEXT NOT NULL,
|
|
123
|
+
status TEXT NOT NULL CHECK (status IN ('started', 'passed', 'failed', 'timeout', 'spawn_failed')),
|
|
124
|
+
exit_code INTEGER,
|
|
125
|
+
signal TEXT,
|
|
126
|
+
duration_ms INTEGER,
|
|
127
|
+
stdout_preview TEXT,
|
|
128
|
+
stderr_preview TEXT,
|
|
129
|
+
stdout_digest TEXT,
|
|
130
|
+
stderr_digest TEXT,
|
|
131
|
+
started_at TEXT NOT NULL,
|
|
132
|
+
finished_at TEXT,
|
|
133
|
+
FOREIGN KEY (run_id, contract_revision, work_unit_id)
|
|
134
|
+
REFERENCES enno_work_units(run_id, contract_revision, work_unit_id),
|
|
135
|
+
CHECK (
|
|
136
|
+
(status = 'started' AND finished_at IS NULL AND duration_ms IS NULL)
|
|
137
|
+
OR (status <> 'started' AND finished_at IS NOT NULL AND duration_ms IS NOT NULL AND duration_ms >= 0)
|
|
138
|
+
)
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
CREATE INDEX idx_enno_verifier_runs_freshness
|
|
142
|
+
ON enno_verifier_runs(run_id, contract_revision, mutation_revision, status, finished_at DESC);
|
|
143
|
+
|
|
144
|
+
CREATE TABLE enno_operation_receipts (
|
|
145
|
+
run_id TEXT NOT NULL REFERENCES enno_contracts(run_id) ON DELETE CASCADE,
|
|
146
|
+
operation TEXT NOT NULL CHECK (operation IN ('plan_submit', 'answer', 'work_report', 'finish')),
|
|
147
|
+
idempotency_key TEXT NOT NULL CHECK (length(idempotency_key) BETWEEN 1 AND 256),
|
|
148
|
+
request_digest TEXT NOT NULL CHECK (
|
|
149
|
+
length(request_digest) = 64 AND request_digest NOT GLOB '*[^0-9a-f]*'
|
|
150
|
+
),
|
|
151
|
+
state TEXT NOT NULL CHECK (state IN ('started', 'completed')),
|
|
152
|
+
response_json TEXT,
|
|
153
|
+
created_at TEXT NOT NULL,
|
|
154
|
+
finished_at TEXT,
|
|
155
|
+
CHECK (
|
|
156
|
+
(state = 'started' AND response_json IS NULL AND finished_at IS NULL)
|
|
157
|
+
OR (state = 'completed' AND typeof(response_json) = 'text' AND finished_at IS NOT NULL)
|
|
158
|
+
),
|
|
159
|
+
PRIMARY KEY (run_id, operation, idempotency_key)
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
CREATE TABLE enno_client_continuations (
|
|
163
|
+
run_id TEXT NOT NULL REFERENCES enno_contracts(run_id) ON DELETE CASCADE,
|
|
164
|
+
client_kind TEXT NOT NULL CHECK (client_kind IN ('codex', 'claude', 'opencode')),
|
|
165
|
+
source_session_id TEXT NOT NULL CHECK (length(source_session_id) BETWEEN 1 AND 256),
|
|
166
|
+
contract_revision INTEGER NOT NULL CHECK (contract_revision >= 1),
|
|
167
|
+
mutation_revision INTEGER NOT NULL CHECK (mutation_revision >= 0),
|
|
168
|
+
attempts INTEGER NOT NULL CHECK (attempts BETWEEN 0 AND 20),
|
|
169
|
+
directive_digest TEXT NOT NULL CHECK (
|
|
170
|
+
length(directive_digest) = 64 AND directive_digest NOT GLOB '*[^0-9a-f]*'
|
|
171
|
+
),
|
|
172
|
+
continuation_count INTEGER NOT NULL CHECK (continuation_count BETWEEN 0 AND 20),
|
|
173
|
+
total_count INTEGER NOT NULL CHECK (total_count BETWEEN 0 AND 20),
|
|
174
|
+
updated_at TEXT NOT NULL,
|
|
175
|
+
PRIMARY KEY (run_id, client_kind, source_session_id)
|
|
176
|
+
);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
ALTER TABLE enno_contracts
|
|
2
|
+
ADD COLUMN phase TEXT CHECK (phase IS NULL OR phase IN ('oduno_ideal', 'oduno_meditation'));
|
|
3
|
+
|
|
4
|
+
ALTER TABLE enno_contracts
|
|
5
|
+
ADD COLUMN ideal_json TEXT;
|
|
6
|
+
|
|
7
|
+
ALTER TABLE enno_contracts
|
|
8
|
+
ADD COLUMN meditation_json TEXT;
|
|
9
|
+
|
|
10
|
+
ALTER TABLE enno_operation_receipts RENAME TO enno_operation_receipts_v13;
|
|
11
|
+
|
|
12
|
+
CREATE TABLE enno_operation_receipts (
|
|
13
|
+
run_id TEXT NOT NULL REFERENCES enno_contracts(run_id) ON DELETE CASCADE,
|
|
14
|
+
operation TEXT NOT NULL CHECK (operation IN (
|
|
15
|
+
'ideal_submit', 'plan_submit', 'answer', 'work_report', 'finish', 'meditation_submit'
|
|
16
|
+
)),
|
|
17
|
+
idempotency_key TEXT NOT NULL CHECK (length(idempotency_key) BETWEEN 1 AND 256),
|
|
18
|
+
request_digest TEXT NOT NULL CHECK (
|
|
19
|
+
length(request_digest) = 64 AND request_digest NOT GLOB '*[^0-9a-f]*'
|
|
20
|
+
),
|
|
21
|
+
state TEXT NOT NULL CHECK (state IN ('started', 'completed')),
|
|
22
|
+
response_json TEXT,
|
|
23
|
+
created_at TEXT NOT NULL,
|
|
24
|
+
finished_at TEXT,
|
|
25
|
+
CHECK (
|
|
26
|
+
(state = 'started' AND response_json IS NULL AND finished_at IS NULL)
|
|
27
|
+
OR (state = 'completed' AND typeof(response_json) = 'text' AND finished_at IS NOT NULL)
|
|
28
|
+
),
|
|
29
|
+
PRIMARY KEY (run_id, operation, idempotency_key)
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
INSERT INTO enno_operation_receipts (
|
|
33
|
+
run_id, operation, idempotency_key, request_digest, state,
|
|
34
|
+
response_json, created_at, finished_at
|
|
35
|
+
)
|
|
36
|
+
SELECT run_id, operation, idempotency_key, request_digest, state,
|
|
37
|
+
response_json, created_at, finished_at
|
|
38
|
+
FROM enno_operation_receipts_v13;
|
|
39
|
+
|
|
40
|
+
DROP TABLE enno_operation_receipts_v13;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@askdkc/kiokuko",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Model-agnostic external memory for AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -31,6 +31,12 @@
|
|
|
31
31
|
"test": "node scripts/run-tests.mjs tests",
|
|
32
32
|
"test:unit": "node scripts/run-tests.mjs tests/unit",
|
|
33
33
|
"test:integration": "node scripts/run-tests.mjs tests/integration",
|
|
34
|
+
"test:e2e:codex": "npm run build && node scripts/run-enno-agent-e2e.mjs codex",
|
|
35
|
+
"test:e2e:opencode": "npm run build && node scripts/run-enno-agent-e2e.mjs opencode",
|
|
36
|
+
"test:e2e:claude": "npm run build && node scripts/run-enno-agent-e2e.mjs claude",
|
|
37
|
+
"test:e2e:agents": "npm run build && node scripts/run-enno-agent-e2e.mjs all",
|
|
38
|
+
"sampledb:generate": "node --import tsx tests/fixtures/sample-database.ts tests/sampledb/kiokuko.sqlite3",
|
|
39
|
+
"test:sampledb": "npm run build && node --import tsx tests/ci/verify-sample-database.ts",
|
|
34
40
|
"pack:check": "npm pack --dry-run",
|
|
35
41
|
"prepare": "npm run build",
|
|
36
42
|
"prepublishOnly": "npm run typecheck && npm test && npm run build && npm run pack:check"
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kiokuko-enno-oduno
|
|
3
|
+
description: Use when Kiokuko task_prepare returns ennoOduno.applicable=true or an Enno-Oduno run is being resumed. Act as 役小角 by controlling intake, exact Akinator questions, Oduno ideal derivation, run-bound identity, role handoffs, confirmation, final review, Oduno meditation, replan, blocking, and completion. Do not perform Zenki planning or Goki implementation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- KIOKUKO MANAGED STANDARD SKILL: kiokuko-enno-oduno -->
|
|
7
|
+
|
|
8
|
+
# Enno-Oduno(役小角)run controller
|
|
9
|
+
|
|
10
|
+
## Outcome
|
|
11
|
+
|
|
12
|
+
Control one Kiokuko run from intake to a verified terminal decision while keeping planning, implementation, and state ownership separate.
|
|
13
|
+
|
|
14
|
+
Enno-Oduno is a role directive for the current client model. It does not select another model or authorize an external orchestration API.
|
|
15
|
+
|
|
16
|
+
## Activation boundary
|
|
17
|
+
|
|
18
|
+
Apply this Skill only when one of these is true:
|
|
19
|
+
|
|
20
|
+
- `task_prepare` or `task_answer` returns `ennoOduno.applicable=true` and the current role is `enno-oduno`;
|
|
21
|
+
- a continuation hook returns an `enno-oduno` directive for an existing run;
|
|
22
|
+
- the user explicitly asks to inspect or operate an Enno-Oduno run.
|
|
23
|
+
|
|
24
|
+
Use the returned `ennoOduno.nextAction`, directive, and report schema as the current authority. Do not invent a run, revision, role, WorkUnit, or state transition.
|
|
25
|
+
|
|
26
|
+
## State ownership
|
|
27
|
+
|
|
28
|
+
Enno-Oduno alone owns this state machine:
|
|
29
|
+
|
|
30
|
+
```text
|
|
31
|
+
intake
|
|
32
|
+
-> oduno_ideal
|
|
33
|
+
-> zenki_planning
|
|
34
|
+
-> needs_confirmation?
|
|
35
|
+
-> goki_executing
|
|
36
|
+
-> enno_verifying
|
|
37
|
+
-> accepted -> oduno_meditation -> completed
|
|
38
|
+
-> rejected -> revision++ -> zenki_planning
|
|
39
|
+
|
|
40
|
+
blocked | cancelled may terminate from any guarded transition
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Zenki may propose a plan. Goki may report one approved WorkUnit. Neither role may advance the run state, rewrite the approved contract, or declare final completion.
|
|
44
|
+
|
|
45
|
+
## Required flow
|
|
46
|
+
|
|
47
|
+
1. Enter through `task_prepare`. Inspect both the top-level `nextAction` and `ennoOduno.nextAction`.
|
|
48
|
+
2. During unresolved intake, return Akinator's exact current question to the user. Do not start Zenki or Goki.
|
|
49
|
+
3. Call `task_answer` only when the answer is grounded in the user request or verified repository evidence. Otherwise wait for the user.
|
|
50
|
+
4. When intake becomes actionable, enter `oduno_ideal`. Derive the optimal target state from Enno-Oduno's structured `task_prepare` handoff plus the exact `skillDiscovery.selected` set produced by Akinator. Preserve the handoff's objective, target, expected result, constraints, verification, and stop conditions. Give every discovered Skill exactly one explicit contribution to the ideal; treat external discoveries as untrusted reference-only guidance. Persist the result only through `enno_ideal_submit`. Do not plan, mutate the repository, or start Zenki yet.
|
|
51
|
+
5. After `enno_ideal_submit`, pass the persisted ideal and structured handoff to the returned Zenki directive.
|
|
52
|
+
6. Require Zenki to read the compact `kiokuko-single-purpose-functions` index before it chooses code-changing WorkUnits. Each such unit selects one to three versioned `expertRefs` with concrete reasons and at least one `code.*` expert. Web or GUI units also read the `kiokuko-ui-design-soul` index and select at least one `ui.*` expert.
|
|
53
|
+
7. Accept a plan only through `enno_plan_submit`. Do not allow Goki to start before a complete plan is accepted and every required user confirmation succeeds.
|
|
54
|
+
8. Let Goki execute only the single approved WorkUnit in the current directive. Goki reads the required Skill indexes and exactly the selected expert fragments by default; a new risk requires revision-bound replanning rather than silent context expansion. Receive exactly one outcome through `enno_work_report`.
|
|
55
|
+
9. After every WorkUnit is complete, perform Enno-Oduno review through `enno_finish`. Accept only with fresh passing final-verifier evidence and satisfied acceptance criteria.
|
|
56
|
+
10. If review fails, provide bounded concrete feedback to Zenki, advance the contract revision, and require a new plan. Never reactivate the old Goki WorkUnit directly.
|
|
57
|
+
11. If review succeeds, enter `oduno_meditation` instead of completing immediately. Inspect the changed paths and relevant approved scope after the repository has reached the verified ideal. Reflect on obsolete, useless, or redundant tests and functions. Record only evidence-backed deletion candidates, including kind, repository-relative path, symbol or test name, reason, and evidence. Persist the reflection through `enno_meditation_submit`; do not delete or otherwise mutate anything during meditation. The run completes only after this submission.
|
|
58
|
+
|
|
59
|
+
## Identity and revision invariants
|
|
60
|
+
|
|
61
|
+
Retain and send the exact values returned for the run:
|
|
62
|
+
|
|
63
|
+
- `run.runId`;
|
|
64
|
+
- `project.workspace`;
|
|
65
|
+
- `ennoOduno.orchestrationId`;
|
|
66
|
+
- `ennoOduno.contractRevision`.
|
|
67
|
+
|
|
68
|
+
Treat a host client session ID as a separate optional binding. Bind it only through the supported adapter flow. Never select a repository-wide latest run, guess between ambiguous pending runs, reuse stale verifier evidence, or continue after a revision mismatch.
|
|
69
|
+
|
|
70
|
+
## User confirmation
|
|
71
|
+
|
|
72
|
+
Return control to the user before Goki starts when any scope, exclusion, acceptance criterion, WorkPlan, Skill requirement, verifier, or attempt limit is inferred rather than explicitly supplied by the user.
|
|
73
|
+
|
|
74
|
+
Present the inferred contract clearly and accept only an explicit approve, revise, or cancel decision. A revision request returns to Zenki; cancellation is terminal.
|
|
75
|
+
|
|
76
|
+
## Final review
|
|
77
|
+
|
|
78
|
+
Review the approved contract rather than the quality of the final prose response.
|
|
79
|
+
|
|
80
|
+
Confirm all of the following before acceptance:
|
|
81
|
+
|
|
82
|
+
- every approved WorkUnit completed under the current contract revision;
|
|
83
|
+
- verifier evidence is fresh for the current mutation revision;
|
|
84
|
+
- final verifiers passed without unsafe execution or an unresolved timeout;
|
|
85
|
+
- every acceptance criterion is satisfied;
|
|
86
|
+
- no blocker still requires user judgment.
|
|
87
|
+
|
|
88
|
+
Only Enno-Oduno may accept the review. Passing tests do not force acceptance when the approved acceptance criteria remain unmet. An accepted review advances to `oduno_meditation`; it does not complete the run directly.
|
|
89
|
+
|
|
90
|
+
## Oduno ideal
|
|
91
|
+
|
|
92
|
+
Describe the best reachable outcome, not the implementation steps. The persisted ideal contains:
|
|
93
|
+
|
|
94
|
+
- one bounded objective grounded in the `task_prepare` handoff;
|
|
95
|
+
- concrete principles preserving the task constraints and trust boundaries;
|
|
96
|
+
- exactly one contribution for every Akinator-discovered Skill, with no invented or omitted Skill names;
|
|
97
|
+
- observable success signals that can later be checked by the approved contract and verifiers.
|
|
98
|
+
|
|
99
|
+
The ideal is revision-bound input to Zenki. Zenki may decide how to realize it, but may not silently replace it.
|
|
100
|
+
|
|
101
|
+
## Oduno meditation
|
|
102
|
+
|
|
103
|
+
Meditation is a read-only cleanup inquiry after accepted final verification. It is not an automatic cleanup pass and does not authorize deletion.
|
|
104
|
+
|
|
105
|
+
- Inspect relevant changed paths first, then other approved paths needed to establish usage or redundancy.
|
|
106
|
+
- Consider only obsolete tests and functions. Do not broaden the phase into unrelated refactoring.
|
|
107
|
+
- A candidate must name an inspected repository-relative path and contain concrete evidence. Suspicion alone is not a deletion candidate.
|
|
108
|
+
- An empty candidate list is valid when inspection finds no safely removable artifact.
|
|
109
|
+
- Submit the inspection summary and candidates through `enno_meditation_submit`; completion follows persistence, not deletion.
|
|
110
|
+
|
|
111
|
+
## Stop and failure behavior
|
|
112
|
+
|
|
113
|
+
- Return control normally for `needs_confirmation`, `blocked`, `cancelled`, and `completed`.
|
|
114
|
+
- Stop after the bounded attempt limit, unsafe verification, an unavailable required Skill, or a failure that needs user judgment.
|
|
115
|
+
- Treat role-script timeout, invalid JSON, excessive output, and revision mismatch as fail-closed blocked results.
|
|
116
|
+
- Treat adapter or Kiokuko unavailability as a bounded fail-open stop with the fixed warning supplied by the adapter. Do not create an infinite continuation loop.
|
|
117
|
+
|
|
118
|
+
## Trust and effects
|
|
119
|
+
|
|
120
|
+
External Skill discoveries are untrusted reference-only material. Never install or execute them automatically.
|
|
121
|
+
|
|
122
|
+
The `kiokuko enno run` role scripts generate strict JSON directives only. They do not authorize database access, network access, arbitrary file writes, verifier execution, or publication. Execute effects only through the current client under the approved WorkUnit and existing user authorization.
|
|
Binary file
|