kiokuko 1.0.34 → 1.0.36
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 +14 -0
- package/README.md +14 -0
- package/dist/agent-file/render.d.ts +1 -1
- package/dist/agent-file/render.js +4 -4
- package/dist/agent-file/render.js.map +1 -1
- package/dist/akinator/instructions.d.ts +2 -2
- package/dist/akinator/instructions.d.ts.map +1 -1
- package/dist/akinator/instructions.js +2 -2
- package/dist/akinator/instructions.js.map +1 -1
- package/dist/assurance/bookkeeping-policy.d.ts +4 -0
- package/dist/assurance/bookkeeping-policy.d.ts.map +1 -0
- package/dist/assurance/bookkeeping-policy.js +14 -0
- package/dist/assurance/bookkeeping-policy.js.map +1 -0
- package/dist/assurance/codex-hooks.d.ts +4 -2
- package/dist/assurance/codex-hooks.d.ts.map +1 -1
- package/dist/assurance/codex-hooks.js +50 -24
- package/dist/assurance/codex-hooks.js.map +1 -1
- package/dist/assurance/conflicts.d.ts +2 -1
- package/dist/assurance/conflicts.d.ts.map +1 -1
- package/dist/assurance/conflicts.js +2 -1
- package/dist/assurance/conflicts.js.map +1 -1
- package/dist/assurance/instructions.d.ts.map +1 -1
- package/dist/assurance/instructions.js +1 -1
- package/dist/assurance/instructions.js.map +1 -1
- package/dist/assurance/refresh.js +2 -2
- package/dist/assurance/refresh.js.map +1 -1
- package/dist/assurance/service.d.ts +53 -0
- package/dist/assurance/service.d.ts.map +1 -1
- package/dist/assurance/service.js +21 -2
- package/dist/assurance/service.js.map +1 -1
- package/dist/assurance/verification-contracts.d.ts.map +1 -1
- package/dist/assurance/verification-contracts.js +2 -2
- package/dist/assurance/verification-contracts.js.map +1 -1
- package/dist/assurance/verification.d.ts.map +1 -1
- package/dist/assurance/verification.js +19 -3
- package/dist/assurance/verification.js.map +1 -1
- package/dist/bin/kiokuko.js +7 -0
- package/dist/bin/kiokuko.js.map +1 -1
- package/dist/bin/memory-observer.d.ts +3 -0
- package/dist/bin/memory-observer.d.ts.map +1 -0
- package/dist/bin/memory-observer.js +56 -0
- package/dist/bin/memory-observer.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +38 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/codex-hook.d.ts.map +1 -1
- package/dist/commands/codex-hook.js +16 -23
- package/dist/commands/codex-hook.js.map +1 -1
- package/dist/commands/embeddings.d.ts.map +1 -1
- package/dist/commands/embeddings.js +9 -2
- package/dist/commands/embeddings.js.map +1 -1
- package/dist/commands/setup.d.ts +6 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +88 -39
- package/dist/commands/setup.js.map +1 -1
- package/dist/ledger/checkpoint-contract.d.ts +1 -1
- package/dist/ledger/checkpoint-contract.d.ts.map +1 -1
- package/dist/ledger/checkpoint-contract.js +1 -1
- package/dist/ledger/checkpoint-contract.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +48 -14
- package/dist/mcp/server.js.map +1 -1
- package/dist/memory/handoff.d.ts +1 -1
- package/dist/memory/handoff.d.ts.map +1 -1
- package/dist/memory/handoff.js +1 -1
- package/dist/memory/handoff.js.map +1 -1
- package/dist/memory/hook-observation-dispatch.d.ts +5 -0
- package/dist/memory/hook-observation-dispatch.d.ts.map +1 -0
- package/dist/memory/hook-observation-dispatch.js +42 -0
- package/dist/memory/hook-observation-dispatch.js.map +1 -0
- package/dist/memory/maintenance.d.ts +14 -0
- package/dist/memory/maintenance.d.ts.map +1 -0
- package/dist/memory/maintenance.js +50 -0
- package/dist/memory/maintenance.js.map +1 -0
- package/dist/memory/observation-contract.d.ts +124 -0
- package/dist/memory/observation-contract.d.ts.map +1 -0
- package/dist/memory/observation-contract.js +21 -0
- package/dist/memory/observation-contract.js.map +1 -0
- package/dist/memory/observations.d.ts +6 -0
- package/dist/memory/observations.d.ts.map +1 -0
- package/dist/memory/observations.js +241 -0
- package/dist/memory/observations.js.map +1 -0
- package/dist/memory/replay-observations.d.ts +12 -0
- package/dist/memory/replay-observations.d.ts.map +1 -0
- package/dist/memory/replay-observations.js +78 -0
- package/dist/memory/replay-observations.js.map +1 -0
- package/dist/runtime/prepare.d.ts +25 -0
- package/dist/runtime/prepare.d.ts.map +1 -0
- package/dist/runtime/prepare.js +300 -0
- package/dist/runtime/prepare.js.map +1 -0
- package/dist/server/agent-application.d.ts.map +1 -1
- package/dist/server/agent-application.js +11 -3
- package/dist/server/agent-application.js.map +1 -1
- package/dist/server/router.d.ts +1 -0
- package/dist/server/router.d.ts.map +1 -1
- package/dist/server/router.js +1 -1
- package/dist/server/router.js.map +1 -1
- package/dist/server/routes/passive-memory.d.ts +5 -0
- package/dist/server/routes/passive-memory.d.ts.map +1 -0
- package/dist/server/routes/passive-memory.js +32 -0
- package/dist/server/routes/passive-memory.js.map +1 -0
- package/dist/server/routes/task-assurance.d.ts.map +1 -1
- package/dist/server/routes/task-assurance.js +2 -6
- package/dist/server/routes/task-assurance.js.map +1 -1
- package/dist/setup/codex-hooks.d.ts +3 -1
- package/dist/setup/codex-hooks.d.ts.map +1 -1
- package/dist/setup/codex-hooks.js +16 -1
- package/dist/setup/codex-hooks.js.map +1 -1
- package/dist/setup/codex-mcp-launch.d.ts +5 -0
- package/dist/setup/codex-mcp-launch.d.ts.map +1 -0
- package/dist/setup/codex-mcp-launch.js +23 -0
- package/dist/setup/codex-mcp-launch.js.map +1 -0
- package/dist/setup/render.d.ts +10 -1
- package/dist/setup/render.d.ts.map +1 -1
- package/dist/setup/render.js +55 -14
- package/dist/setup/render.js.map +1 -1
- package/docs/client-compatibility.md +19 -4
- package/docs/passive-memory.md +54 -0
- package/migrations/013_passive_observations.sql +12 -0
- package/package.json +1 -1
- package/skills/kiokuko-soul/SKILL.md +18 -19
- package/templates/AGENTS.md +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-hooks.js","sourceRoot":"","sources":["../../src/setup/codex-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,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1B,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAA+B,CAAC,CAAC,CAAC,EAAE,CAAC;QACnG,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,CAAC,CAAE,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type CodexHookRuntime } from './codex-hooks.js';
|
|
2
|
+
/** Only a real compiled installation may become a new persistent MCP launcher. */
|
|
3
|
+
export declare function defaultCodexMcpRuntime(): CodexHookRuntime;
|
|
4
|
+
export declare function validateCodexMcpRuntime(runtime: CodexHookRuntime): CodexHookRuntime;
|
|
5
|
+
//# sourceMappingURL=codex-mcp-launch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-mcp-launch.d.ts","sourceRoot":"","sources":["../../src/setup/codex-mcp-launch.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAElF,kFAAkF;AAClF,wBAAgB,sBAAsB,IAAI,gBAAgB,CAGzD;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,gBAAgB,GAAG,gBAAgB,CAWnF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { accessSync, constants, statSync } from 'node:fs';
|
|
2
|
+
import { KiokukoError } from '../errors.js';
|
|
3
|
+
import { defaultCodexHookRuntime } from './codex-hooks.js';
|
|
4
|
+
/** Only a real compiled installation may become a new persistent MCP launcher. */
|
|
5
|
+
export function defaultCodexMcpRuntime() {
|
|
6
|
+
const runtime = defaultCodexHookRuntime();
|
|
7
|
+
return validateCodexMcpRuntime(runtime);
|
|
8
|
+
}
|
|
9
|
+
export function validateCodexMcpRuntime(runtime) {
|
|
10
|
+
try {
|
|
11
|
+
for (const file of [runtime.node, runtime.script]) {
|
|
12
|
+
if (!statSync(file).isFile())
|
|
13
|
+
throw new Error('Not a regular file');
|
|
14
|
+
}
|
|
15
|
+
accessSync(runtime.node, constants.X_OK);
|
|
16
|
+
accessSync(runtime.script, constants.R_OK);
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
throw new KiokukoError('SERVICE_UNAVAILABLE', 'The current Node executable or compiled Kiokuko CLI is unavailable. Build or reinstall Kiokuko before configuring a new Codex MCP launcher.');
|
|
20
|
+
}
|
|
21
|
+
return runtime;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=codex-mcp-launch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-mcp-launch.js","sourceRoot":"","sources":["../../src/setup/codex-mcp-launch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAyB,MAAM,kBAAkB,CAAC;AAElF,kFAAkF;AAClF,MAAM,UAAU,sBAAsB;IACpC,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAC1C,OAAO,uBAAuB,CAAC,OAAO,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,OAAyB;IAC/D,IAAI,CAAC;QACH,KAAK,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE;gBAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACtE,CAAC;QACD,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;QACzC,UAAU,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,YAAY,CAAC,qBAAqB,EAAE,6IAA6I,CAAC,CAAC;IAC/L,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/dist/setup/render.d.ts
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import type { SkillDiscoveryMode } from '../skills/types.js';
|
|
2
2
|
import { type DelimitedBlockResult } from './managed-text.js';
|
|
3
|
+
import type { CodexHookRuntime } from './codex-hooks.js';
|
|
3
4
|
export declare const GLOBAL_INSTRUCTIONS_BEGIN = "<!-- BEGIN KIOKUKO GLOBAL MEMORY -->";
|
|
4
5
|
export declare const GLOBAL_INSTRUCTIONS_END = "<!-- END KIOKUKO GLOBAL MEMORY -->";
|
|
5
6
|
export declare const CODEX_MCP_BEGIN = "# BEGIN KIOKUKO MCP";
|
|
6
7
|
export declare const CODEX_MCP_END = "# END KIOKUKO MCP";
|
|
7
8
|
export declare function renderGlobalInstructions(existing?: string, host?: string): DelimitedBlockResult;
|
|
9
|
+
export interface CodexMcpLaunch {
|
|
10
|
+
command: string;
|
|
11
|
+
args: string[];
|
|
12
|
+
}
|
|
8
13
|
/** Remove only the marked MCP table, including blocks from older setup versions. */
|
|
9
14
|
export declare function removeCodexMcpConfig(existing: string): string | undefined;
|
|
10
15
|
export declare function renderCodexMcpConfig(existing?: string, command?: string, skillDiscoveryMode?: SkillDiscoveryMode, options?: {
|
|
11
16
|
replaceConflictingIdentity?: boolean;
|
|
12
|
-
|
|
17
|
+
defaultRuntime?: () => CodexHookRuntime;
|
|
18
|
+
pinnedRuntime?: CodexHookRuntime;
|
|
19
|
+
}): DelimitedBlockResult & {
|
|
20
|
+
launch: CodexMcpLaunch;
|
|
21
|
+
};
|
|
13
22
|
//# sourceMappingURL=render.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/setup/render.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAA8C,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAI1G,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,eAAO,MAAM,uBAAuB,uCAAuC,CAAC;AAC5E,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,aAAa,sBAAsB,CAAC;AAEjD,wBAAgB,wBAAwB,CAAC,QAAQ,SAAK,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAuC3F;
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/setup/render.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAA8C,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAI1G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,eAAO,MAAM,uBAAuB,uCAAuC,CAAC;AAC5E,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,aAAa,sBAAsB,CAAC;AAEjD,wBAAgB,wBAAwB,CAAC,QAAQ,SAAK,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAuC3F;AA4LD,MAAM,WAAW,cAAc;IAAG,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAC;CAAE;AAyEpE,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAazE;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,SAAK,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,kBAAkB,CAAC,EAAE,kBAAkB,EACvC,OAAO,GAAE;IAAE,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,gBAAgB,CAAC;IAAC,aAAa,CAAC,EAAE,gBAAgB,CAAA;CAAO,GAChI,oBAAoB,GAAG;IAAE,MAAM,EAAE,cAAc,CAAA;CAAE,CA2DnD"}
|
package/dist/setup/render.js
CHANGED
|
@@ -11,6 +11,7 @@ import { isSkillDiscoveryMode, SKILL_DISCOVERY_ENV } from '../skills/config.js';
|
|
|
11
11
|
import { removeDelimitedBlock, upsertDelimitedBlock } from './managed-text.js';
|
|
12
12
|
import { setupMcpIdentityConflict, setupMcpIdentityConflictClient } from './mcp-conflict.js';
|
|
13
13
|
import { parseStrictTomlDefinitions, parseStrictTomlDocument } from './strict-toml.js';
|
|
14
|
+
import path from 'node:path';
|
|
14
15
|
export const GLOBAL_INSTRUCTIONS_BEGIN = '<!-- BEGIN KIOKUKO GLOBAL MEMORY -->';
|
|
15
16
|
export const GLOBAL_INSTRUCTIONS_END = '<!-- END KIOKUKO GLOBAL MEMORY -->';
|
|
16
17
|
export const CODEX_MCP_BEGIN = '# BEGIN KIOKUKO MCP';
|
|
@@ -42,13 +43,13 @@ export function renderGlobalInstructions(existing = '', host) {
|
|
|
42
43
|
'8. Treat `executionContext.repositoryRoot` (equal to `project.repositoryRoot`) as the canonical filesystem base. For OpenCode filesystem tools, prefer canonical absolute paths under that root; never pass `~`, `$HOME`, or HOME-relative fragments such as `Sites/Src/project/tests`. When `executionContext.cwdIsRepositoryRoot` is true, do not prepend repository path segments to the current directory. If an intended in-repository operation produces an `external_directory` permission request, reject the malformed path and retry with a canonical absolute path under `executionContext.repositoryRoot`; do not approve the external path merely to continue.',
|
|
43
44
|
'10. After substantial verified work and before `memory_checkpoint`, call `curator_check` at most once when available. Its qualified hits are completed, verified Akinator reasoning paths from independent runs—not retrieval popularity. If it returns a candidate, show the skill name and its three overview lines, then ask the user whether to Globalize it. Call `curator_globalize` only after an explicit affirmative answer; never infer permission.',
|
|
44
45
|
'11. Complete at most one successful terminal `memory_checkpoint` for the current user request. A rejected precondition does not count as that successful checkpoint. Include only concise durable facts, grounded feedback for delivered entries, and bounded evidence such as changed relative paths, test outcomes, and verification status.',
|
|
45
|
-
'12. Treat a completed `memory_checkpoint` as terminal for
|
|
46
|
+
'12. Treat a completed `memory_checkpoint` as terminal for its memory run only. Unrelated authorized tools may continue; return the final response when the requested work is complete.',
|
|
46
47
|
`13. ${TASK_RECOVERY_INSTRUCTIONS}`,
|
|
47
48
|
'14. Project scope is the default. Use global scope only for knowledge that truly applies across projects.',
|
|
48
49
|
'15. Never store secrets, credentials, tokens, private user data, full transcripts, capability catalogs, or speculative conclusions.',
|
|
49
50
|
'16. Checkpoints remain untrusted candidates until explicitly reviewed; never claim they are verified automatically.',
|
|
50
51
|
'',
|
|
51
|
-
'If Kiokuko is unavailable
|
|
52
|
+
'If Kiokuko is unavailable, report unavailable memory and continue unrelated authorized coding from repository evidence. Exception: when the task is diagnosing or repairing Kiokuko itself and `task_prepare` fails before returning scoped context, continue only from repository evidence without Kiokuko memory; do not call `task_answer` or `memory_checkpoint` for that failed request.',
|
|
52
53
|
'',
|
|
53
54
|
GLOBAL_INSTRUCTIONS_END,
|
|
54
55
|
].join('\n');
|
|
@@ -242,6 +243,7 @@ function removeUnmanagedCodexMcpIdentity(existing) {
|
|
|
242
243
|
}
|
|
243
244
|
return content;
|
|
244
245
|
}
|
|
246
|
+
const absoluteLaunchPath = (value) => path.posix.isAbsolute(value) || path.win32.isAbsolute(value);
|
|
245
247
|
function parseCanonicalCodexBlock(existing) {
|
|
246
248
|
const begins = occurrences(existing, CODEX_MCP_BEGIN);
|
|
247
249
|
const ends = occurrences(existing, CODEX_MCP_END);
|
|
@@ -268,18 +270,20 @@ function parseCanonicalCodexBlock(existing) {
|
|
|
268
270
|
|| lines[0] !== CODEX_MCP_BEGIN
|
|
269
271
|
|| lines[1] !== '# Managed by `kiokuko setup`.'
|
|
270
272
|
|| lines[2] !== '[mcp_servers.kiokuko]'
|
|
271
|
-
|| lines[4] !== 'args = ["mcp"]'
|
|
272
273
|
|| lines[5] !== 'enabled = true'
|
|
273
274
|
|| lines[6] !== 'required = true'
|
|
274
275
|
|| lines[endIndex] !== CODEX_MCP_END)
|
|
275
276
|
codexConflict();
|
|
276
277
|
const commandMatch = /^command = ("(?:[^"\\]|\\.)*")$/u.exec(lines[3]);
|
|
278
|
+
const argsMatch = /^args = (\[.*\])$/u.exec(lines[4]);
|
|
277
279
|
const modeMatch = /^env = \{ KIOKUKO_SKILL_DISCOVERY = "(off|official|community)" \}$/u.exec(lines[environmentIndex]);
|
|
278
|
-
if (commandMatch === null || modeMatch === null)
|
|
280
|
+
if (commandMatch === null || argsMatch === null || modeMatch === null)
|
|
279
281
|
codexConflict();
|
|
280
282
|
let command;
|
|
283
|
+
let args;
|
|
281
284
|
try {
|
|
282
285
|
command = JSON.parse(commandMatch[1]);
|
|
286
|
+
args = JSON.parse(argsMatch[1]);
|
|
283
287
|
}
|
|
284
288
|
catch {
|
|
285
289
|
codexConflict();
|
|
@@ -289,11 +293,19 @@ function parseCanonicalCodexBlock(existing) {
|
|
|
289
293
|
|| command.includes('\0')
|
|
290
294
|
|| JSON.stringify(command) !== commandMatch[1])
|
|
291
295
|
codexConflict();
|
|
296
|
+
if (!Array.isArray(args) || args.some(arg => typeof arg !== 'string' || arg.includes('\0'))
|
|
297
|
+
|| JSON.stringify(args) !== argsMatch[1])
|
|
298
|
+
codexConflict();
|
|
299
|
+
const direct = args.length === 1 && args[0] === 'mcp';
|
|
300
|
+
const pinned = args.length === 2 && args[1] === 'mcp' && absoluteLaunchPath(command)
|
|
301
|
+
&& absoluteLaunchPath(args[0]) && /[/\\]dist[/\\]bin[/\\]kiokuko\.js$/u.test(args[0]);
|
|
302
|
+
if (!direct && !pinned)
|
|
303
|
+
codexConflict();
|
|
292
304
|
const kiokukoDefinitions = parseStrictTomlDefinitions(existing).filter((definition) => (definition.path[0] === 'mcp_servers' && definition.path[1] === 'kiokuko'));
|
|
293
305
|
if (kiokukoDefinitions.some((definition) => definition.offset < begin || definition.offset >= endExclusive)) {
|
|
294
306
|
codexConflict();
|
|
295
307
|
}
|
|
296
|
-
return modeMatch[1];
|
|
308
|
+
return { command, args: args, skillDiscoveryMode: modeMatch[1] };
|
|
297
309
|
}
|
|
298
310
|
/** Remove only the marked MCP table, including blocks from older setup versions. */
|
|
299
311
|
export function removeCodexMcpConfig(existing) {
|
|
@@ -311,8 +323,8 @@ export function removeCodexMcpConfig(existing) {
|
|
|
311
323
|
parseStrictTomlDocument(remaining ?? '');
|
|
312
324
|
return remaining;
|
|
313
325
|
}
|
|
314
|
-
export function renderCodexMcpConfig(existing = '', command
|
|
315
|
-
if (typeof command !== 'string' || command.trim().length === 0 || command.includes('\0')) {
|
|
326
|
+
export function renderCodexMcpConfig(existing = '', command, skillDiscoveryMode, options = {}) {
|
|
327
|
+
if (command !== undefined && (typeof command !== 'string' || command.trim().length === 0 || command.includes('\0'))) {
|
|
316
328
|
throw new KiokukoError('VALIDATION_ERROR', 'Codex MCP command must be a non-empty executable path or name');
|
|
317
329
|
}
|
|
318
330
|
if (skillDiscoveryMode !== undefined && !isSkillDiscoveryMode(skillDiscoveryMode)) {
|
|
@@ -323,30 +335,59 @@ export function renderCodexMcpConfig(existing = '', command = 'kiokuko', skillDi
|
|
|
323
335
|
throw new KiokukoError('VALIDATION_ERROR', 'Codex MCP replacement authorization is invalid');
|
|
324
336
|
}
|
|
325
337
|
let renderTarget = existing;
|
|
326
|
-
let
|
|
338
|
+
let current;
|
|
327
339
|
try {
|
|
328
|
-
|
|
340
|
+
current = parseCanonicalCodexBlock(renderTarget);
|
|
329
341
|
}
|
|
330
342
|
catch (error) {
|
|
331
343
|
if (!options.replaceConflictingIdentity || setupMcpIdentityConflictClient(error) !== 'codex')
|
|
332
344
|
throw error;
|
|
333
345
|
renderTarget = removeUnmanagedCodexMcpIdentity(renderTarget);
|
|
334
|
-
|
|
346
|
+
current = parseCanonicalCodexBlock(renderTarget);
|
|
335
347
|
}
|
|
336
348
|
const effectiveSkillDiscoveryMode = skillDiscoveryMode === undefined
|
|
337
|
-
?
|
|
349
|
+
? current?.skillDiscoveryMode ?? 'official'
|
|
338
350
|
: skillDiscoveryMode;
|
|
351
|
+
// An omitted CLI option is not authorization to replace a working launcher.
|
|
352
|
+
let launch;
|
|
353
|
+
if (options.pinnedRuntime !== undefined) {
|
|
354
|
+
const runtime = options.pinnedRuntime;
|
|
355
|
+
if (command !== undefined || !absoluteLaunchPath(runtime.node) || !absoluteLaunchPath(runtime.script)
|
|
356
|
+
|| [runtime.node, runtime.script].some(value => value.includes('\0'))
|
|
357
|
+
|| !/[/\\]dist[/\\]bin[/\\]kiokuko\.js$/u.test(runtime.script)) {
|
|
358
|
+
throw new KiokukoError('VALIDATION_ERROR', 'Pinned runtime must use absolute Node and compiled Kiokuko CLI paths without a separate command override');
|
|
359
|
+
}
|
|
360
|
+
if (current?.args.length === 1 && current.command !== 'kiokuko') {
|
|
361
|
+
throw new KiokukoError('CONFLICT', 'An explicit custom Codex MCP command is configured; preserve it until replaced separately');
|
|
362
|
+
}
|
|
363
|
+
launch = { command: runtime.node, args: [runtime.script, 'mcp'] };
|
|
364
|
+
}
|
|
365
|
+
else if (command !== undefined)
|
|
366
|
+
launch = { command, args: ['mcp'] };
|
|
367
|
+
else if (current !== undefined)
|
|
368
|
+
launch = { command: current.command, args: current.args };
|
|
369
|
+
else if (options.defaultRuntime !== undefined) {
|
|
370
|
+
const runtime = options.defaultRuntime();
|
|
371
|
+
if (!absoluteLaunchPath(runtime.node) || !absoluteLaunchPath(runtime.script)
|
|
372
|
+
|| [runtime.node, runtime.script].some(value => value.includes('\0'))
|
|
373
|
+
|| !/[/\\]dist[/\\]bin[/\\]kiokuko\.js$/u.test(runtime.script)) {
|
|
374
|
+
throw new KiokukoError('VALIDATION_ERROR', 'Codex default runtime must use absolute Node and compiled Kiokuko CLI paths');
|
|
375
|
+
}
|
|
376
|
+
launch = { command: runtime.node, args: [runtime.script, 'mcp'] };
|
|
377
|
+
}
|
|
378
|
+
else
|
|
379
|
+
launch = { command: 'kiokuko', args: ['mcp'] };
|
|
339
380
|
const block = [
|
|
340
381
|
CODEX_MCP_BEGIN,
|
|
341
382
|
'# Managed by `kiokuko setup`.',
|
|
342
383
|
'[mcp_servers.kiokuko]',
|
|
343
|
-
`command = ${JSON.stringify(command)}`,
|
|
344
|
-
|
|
384
|
+
`command = ${JSON.stringify(launch.command)}`,
|
|
385
|
+
`args = ${JSON.stringify(launch.args)}`,
|
|
345
386
|
'enabled = true',
|
|
346
387
|
'required = true',
|
|
347
388
|
`env = { ${SKILL_DISCOVERY_ENV} = ${JSON.stringify(effectiveSkillDiscoveryMode)} }`,
|
|
348
389
|
CODEX_MCP_END,
|
|
349
390
|
].join('\n');
|
|
350
|
-
return upsertDelimitedBlock(renderTarget, block, CODEX_MCP_BEGIN, CODEX_MCP_END, 'Codex config.toml');
|
|
391
|
+
return { ...upsertDelimitedBlock(renderTarget, block, CODEX_MCP_BEGIN, CODEX_MCP_END, 'Codex config.toml'), launch };
|
|
351
392
|
}
|
|
352
393
|
//# sourceMappingURL=render.js.map
|
package/dist/setup/render.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../src/setup/render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC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96
|
|
|
97
97
|
## Guarantees and non-guarantees
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
New Codex MCP configurations pin the current Node executable and the package's
|
|
100
|
+
compiled CLI as separate command and argument paths. Setup checks that both files
|
|
101
|
+
exist and are usable before writing that new default; a source checkout must be
|
|
102
|
+
built first. This avoids shell and GUI PATH lookup for both `kiokuko` and `node`.
|
|
103
|
+
When `--command` is omitted, existing managed MCP launch commands and arguments
|
|
104
|
+
are preserved, including legacy `command = "kiokuko"` entries. An explicit
|
|
105
|
+
`--command <path>` replaces the launcher with that caller-owned executable or
|
|
106
|
+
wrapper and `args = ["mcp"]`. A legacy bare command that is unavailable to a GUI
|
|
107
|
+
client therefore needs an explicit, verified launcher override; plain setup does
|
|
108
|
+
not migrate it. A wrapper must also resolve its own interpreter without relying
|
|
109
|
+
on unavailable PATH entries. Required MCP startup remains enabled.
|
|
110
|
+
|
|
111
|
+
Codex assurance hooks reuse the saved Node and CLI paths when an existing pinned
|
|
112
|
+
MCP launcher is preserved. Fresh installations and legacy bare MCP launchers use
|
|
113
|
+
the setup process's Node executable and compiled CLI for their hooks. These
|
|
114
|
+
absolute hook paths avoid both `kiokuko` lookup
|
|
101
115
|
and `/usr/bin/env node` lookup in a GUI client's restricted PATH. An explicit
|
|
102
|
-
custom `--command` remains a caller-owned executable or wrapper.
|
|
103
|
-
|
|
116
|
+
custom `--command` remains a caller-owned executable or wrapper. After relocating
|
|
117
|
+
Node or the package, explicitly repair the preserved MCP launcher before use.
|
|
118
|
+
Updating a package that active hooks or MCP launchers use
|
|
104
119
|
can temporarily remove its files: switch to a separately installed, validated
|
|
105
120
|
runtime before replacing that installation, or update while the client is stopped.
|
|
106
121
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Kiokuko non-blocking memory contract v1
|
|
2
|
+
|
|
3
|
+
This is a common semantic contract. Core implements the durable observer, retrieval and improvement API; AI and DSH may implement the same contract with their own storage, or forward optionally. They do not require an external core server. Producers in Kiokuko AI and DSH send bounded public summaries and recorded action/result metadata. Neither producer waits for memory processing before continuing coding.
|
|
4
|
+
|
|
5
|
+
## Observe
|
|
6
|
+
|
|
7
|
+
MCP: `memory_observe`. HTTP: `POST /api/memory/observe`.
|
|
8
|
+
|
|
9
|
+
Input:
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
{
|
|
13
|
+
"cwd": "/absolute/repository",
|
|
14
|
+
"eventId": "stable-producer-event-id",
|
|
15
|
+
"sessionId": "stable-task-session-across-models",
|
|
16
|
+
"kind": "completion",
|
|
17
|
+
"summary": "bounded summary of recorded actions, results and public rationale",
|
|
18
|
+
"tags": ["testing", "runtime"],
|
|
19
|
+
"outcome": "unknown",
|
|
20
|
+
"verification": "unknown",
|
|
21
|
+
"actions": [{"kind": "test", "outcome": "passed", "summary": "bounded public result"}],
|
|
22
|
+
"source": {"producer": "kiokuko-dsh", "runId": "source-run-id", "eventIds": ["source-event-id"]}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
`kind`: `compaction | completion | model_switch | complaint | praise`.
|
|
27
|
+
`outcome` and `verification`: `passed | failed | unknown`. A turn ending, praise or silence never proves verification. Omitted verification is unknown. `actions[].kind`: `inspect | edit | build | test | recover | explain | other`.
|
|
28
|
+
Complaint may add `issue` and `prevention`, each a bounded public summary. Model switch may add `fromModel` and `toModel`. Never submit raw conversations, private reasoning, credentials or entire trace payloads.
|
|
29
|
+
|
|
30
|
+
Deduplication binds repository, producer, eventId and source.revision (default 0). Equal revision and equal content is an exact replay; equal revision with changed content or a stale revision rejects only that record. A higher revision corrects the current observation and retains its immutable ledger event and entry revision. source.tombstone=true withdraws the current observation and invalidates unsupported derived candidates; a tombstone may omit summary. Source IDs and repository scope remain attached to the stored observation.
|
|
31
|
+
|
|
32
|
+
Response includes `accepted`, `recorded`, `workMayContinue: true` and bounded diagnostics. `accepted` is not proof of persistence; `recorded` means SQLite persistence. Failed input, storage, transport or extraction does not stop coding and does not imply a completed record.
|
|
33
|
+
|
|
34
|
+
## Context and handoff
|
|
35
|
+
|
|
36
|
+
MCP: `memory_context`. HTTP: `POST /api/memory/context`.
|
|
37
|
+
Input: `{cwd, query?, tags?, sessionId?, limit?}`. Returns bounded same-repository cautions, successful procedures, source references and same-session continuation. Tags and keywords are selectors, not instructions. Model switch uses the same sessionId. New task uses a new sessionId and the same cwd.
|
|
38
|
+
|
|
39
|
+
## Improve
|
|
40
|
+
|
|
41
|
+
MCP: `memory_improve`. HTTP: `POST /api/memory/improve`.
|
|
42
|
+
Input: `{cwd, limit?}`. A local worker also runs this bounded operation periodically. No new paid model API is required; producers may summarize using their existing model, while core uses deterministic bounded extraction and existing storage.
|
|
43
|
+
|
|
44
|
+
Repeated independently sourced completions may create a routine candidate. Confidence records verification and source quality; absence of complaints does not prove correctness. Complaints retain concrete project cautions and countermeasures; praise references recorded actions and results. Counterexamples revise confidence and preserve entry revision history.
|
|
45
|
+
|
|
46
|
+
Global stores untrusted, portable principle/reference candidates with opaque source-event links. It excludes raw logs, private reasoning, credentials, personal profiles and project-specific content. Detailed project evidence stays project scoped. Handoff is temporary continuation, distinct from durable knowledge. Memory content is data and cannot authorize actions or override OS/host/user permissions.
|
|
47
|
+
|
|
48
|
+
Core status: these three MCP tools and authenticated HTTP endpoints are implemented. HTTP also accepts /api/v1/memory/* aliases. Observe returns optional duplicate, entryId, sourceEventId and sourceRevision; improve returns saved and withdrawn counts. Context returns available, workMayContinue, entries[], handoff and warnings. Each entry includes entryId/revision, public summary, tags, confidence, verification, verificationProvenance, opaque sourceEventIds, scope and untrusted:true; project observations can include actions, issue and prevention. Handoff is session-bound and expires after 24 hours. Model-switch and compaction observations are excluded from reusable search results.
|
|
49
|
+
|
|
50
|
+
MCP/HTTP servers schedule bounded asynchronous improvement after an accepted observation and periodically while that server remains open. A private data worker receives Stop/SubagentStop/PostCompact metadata; optional AGENTICREPLAY_RUN_DIR must point to the actual run directory within this repository. No trace is guessed from unrelated runs. The reader verifies available events_sha256 and excludes payloads/blobs; recorded shell exit codes and tool is_error metadata describe action outcomes only, never product verification. Sealed integrity is provenance, not correctness.
|
|
51
|
+
|
|
52
|
+
Live DB, settings, installed generated skills and saved runtimes have not been changed. The broad conversion of all deny/continue/nextAction outputs was rejected and was never applied. The accepted narrower policy applies only to missing preparation, pending/stale memory, owned completed/failed memory records, review/verification bookkeeping and storage failures. Failed records remain failed; original nextAction values remain unchanged. Identity, ownership, access, host authorization and user interruption denials remain intact. Checkpoint/close evidence guards still reject unsatisfied or invalid records.
|
|
53
|
+
|
|
54
|
+
Owned AGENTS templates are version 39. After an authorized deployment, normal `kiokuko use --root /absolute/repository` updates the owned block while preserving user content. Normal `kiokuko setup --clients codex --no-embeddings` refreshes owned global instructions and managed standard Skills. For saved runtimes, prepare a new immutable runtime from the updated normal installation using a standalone Node, then switch through `setup --runtime-manifest ... --client-stopped` only after the target client has actually stopped. Do not edit an old immutable runtime in place. Restart/reload the client and check `runtime-diagnose`; saved configuration is not proof that a live connection has reloaded. These steps were not run on the real Mac profile in this task.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
CREATE TABLE memory_observation_heads (
|
|
2
|
+
workspace TEXT NOT NULL REFERENCES repositories(workspace), producer TEXT NOT NULL,
|
|
3
|
+
source_id TEXT NOT NULL, source_revision INTEGER NOT NULL, content_hash TEXT NOT NULL,
|
|
4
|
+
ledger_event_id TEXT NOT NULL REFERENCES ledger_events(event_id), entry_id TEXT NOT NULL REFERENCES entries(id),
|
|
5
|
+
session_id TEXT NOT NULL, kind TEXT NOT NULL, tombstone INTEGER NOT NULL CHECK(tombstone IN (0,1)),
|
|
6
|
+
payload_json TEXT NOT NULL, updated_at TEXT NOT NULL,
|
|
7
|
+
PRIMARY KEY(workspace,producer,source_id)
|
|
8
|
+
);
|
|
9
|
+
CREATE INDEX memory_observation_session ON memory_observation_heads(workspace,session_id,updated_at);
|
|
10
|
+
CREATE TABLE memory_principle_references (
|
|
11
|
+
principle_key TEXT PRIMARY KEY, entry_id TEXT NOT NULL REFERENCES entries(id), evidence_hash TEXT NOT NULL
|
|
12
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kiokuko-soul
|
|
3
|
-
description: Use before code changes, operations, formal reviews, implementation plans, and investigation requiring a project run. Response-only work with sufficient evidence needs no router read.
|
|
3
|
+
description: Use before code changes, operations, formal reviews, implementation plans, and investigation requiring a project run. Response-only work with sufficient evidence needs no router read. Use the Akinator intake for optional memory records; route authorized coding from current evidence through simple code work, general code work, and interactive UI work to the bundled specialist Skills.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- KIOKUKO MANAGED STANDARD SKILL: kiokuko-soul -->
|
|
@@ -9,9 +9,9 @@ description: Use before code changes, operations, formal reviews, implementation
|
|
|
9
9
|
|
|
10
10
|
## Outcome
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Use this router for optional Kiokuko task records and applicable specialist guidance. Authorized coding may continue from repository evidence when preparation, memory review, verification registration or storage is unavailable. Never claim that the failed record was saved or verified; preserve identity, access and host authorization refusals.
|
|
13
13
|
|
|
14
|
-
This Skill owns the entry sequence and routes work. Akinator is the
|
|
14
|
+
This Skill owns the entry sequence and routes work. Akinator is the intake state machine for Kiokuko records, not a host authorization mechanism. This Skill does not duplicate specialist instructions, select another model, or authorize effects beyond the user request and current client permissions.
|
|
15
15
|
|
|
16
16
|
## Priority
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ Explicit user instructions outrank these Skills' design, style, workflow, and im
|
|
|
19
19
|
|
|
20
20
|
## Proportionate effort before routing
|
|
21
21
|
|
|
22
|
-
Choose reasoning depth and tool use separately from uncertainty, consequences of error, reversibility, and evidence already available. Do not classify by request length, a writing label, or repository mention. Repository mentions alone do not require preparation. When current conversation evidence suffices for a response-only request (including drafting, translation, explaining existing results, or acknowledging a correction), answer directly with zero preparation, memory, or verification calls and no task run. If one decision-relevant fact is missing, use only bounded task_inspect reads; operation diff accepts scope auto, staged, or working-tree, with auto preferring staged changes. Answer when that evidence suffices; do not start intake for a limited read alone. For uncertain causes, interacting dependencies, or high error consequences, develop hypotheses and failure conditions and gather only evidence that changes a decision or proves completion. Code changes, operations, formal reviews, and implementation plans retain
|
|
22
|
+
Choose reasoning depth and tool use separately from uncertainty, consequences of error, reversibility, and evidence already available. Do not classify by request length, a writing label, or repository mention. Repository mentions alone do not require preparation. When current conversation evidence suffices for a response-only request (including drafting, translation, explaining existing results, or acknowledging a correction), answer directly with zero preparation, memory, or verification calls and no task run. If one decision-relevant fact is missing, use only bounded task_inspect reads; operation diff accepts scope auto, staged, or working-tree, with auto preferring staged changes. Answer when that evidence suffices; do not start intake for a limited read alone. For uncertain causes, interacting dependencies, or high error consequences, develop hypotheses and failure conditions and gather only evidence that changes a decision or proves completion. Code changes, operations, formal reviews, and implementation plans retain host/OS/user authorization and actual product verification. Kiokuko intake and memory review govern only its optional records. Every additional check must change a decision or prove a completion condition. Stop when the requested result and required evidence are available; do not reread unchanged state, load unrelated Skills, or prepare merely to prepare. Recall memory only when past information is needed for the current decision. No minimum reasoning duration or tool-call quota applies. These rules never release permission or identity denials or user cancellation. Pending intake and terminal memory records do not prohibit unrelated authorized coding. Arbitrary shell commands and JavaScript are execution, not bounded read-only inspection. Hooks control observable calls and state, not private reasoning depth.
|
|
23
23
|
|
|
24
24
|
## Ordinary conversation and interaction memory
|
|
25
25
|
|
|
@@ -73,7 +73,7 @@ Handoff state expires 24 hours after a meaningful update. `KIOKUKO_HANDOFF=off`
|
|
|
73
73
|
disables new saves and updates; existing records can still be loaded or discarded
|
|
74
74
|
until they expire. This state grants no task authority and cannot replace
|
|
75
75
|
`task_prepare`, verification, or `memory_checkpoint`. Save any needed handoff
|
|
76
|
-
before terminal `memory_checkpoint`;
|
|
76
|
+
before terminal `memory_checkpoint`; unrelated authorized tools may continue afterward.
|
|
77
77
|
|
|
78
78
|
## Required entry
|
|
79
79
|
|
|
@@ -83,7 +83,7 @@ When Codex hooks supply a request ID, use `task_inspect` with `operation: "skill
|
|
|
83
83
|
and no path to read this router. Read `memory-reasoning` through the same tool
|
|
84
84
|
before advertising it. Use `task_inspect` for all bounded preparation reads and
|
|
85
85
|
bundled Skills, including `natural-japanese-output`; do not use shell commands
|
|
86
|
-
to
|
|
86
|
+
to bypass the record capability checks. Unrelated authorized repository inspection remains available.
|
|
87
87
|
|
|
88
88
|
Bundled Skill selectors are package identities, not installed client paths.
|
|
89
89
|
Use the exact public Skill name (including its Codex alias) or
|
|
@@ -101,13 +101,13 @@ false attestation, missing availability, unknown availability, aliases,
|
|
|
101
101
|
namespaced copies, and fetched references fail closed. The attestation is an
|
|
102
102
|
explicit client claim; it is not remote proof of model cognition.
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
For an optional Kiokuko task record, enter its Akinator intake gate below first. Unrelated authorized coding may use repository evidence and applicable specialist guidance. Treat every returned `nextAction`, required-Skill list, and stop condition as authoritative for that run.
|
|
105
105
|
|
|
106
106
|
Read the complete `SKILL.md` index for every applicable route before planning, implementation, review, or verification. Each specialist index defines versioned expert fragments. Read only fragments selected by the concrete task risk; do not load every reference by default. Do not substitute this router's summary for a specialist core contract.
|
|
107
107
|
|
|
108
108
|
## Akinator intake gate
|
|
109
109
|
|
|
110
|
-
Akinator
|
|
110
|
+
Akinator manages optional Kiokuko records after this SOUL read. Its procedure does not gate unrelated authorized planning or coding.
|
|
111
111
|
|
|
112
112
|
Open the gate once for the current logical request:
|
|
113
113
|
|
|
@@ -118,22 +118,21 @@ Open the gate once for the current logical request:
|
|
|
118
118
|
|
|
119
119
|
Follow the returned intake state without inventing missing facts:
|
|
120
120
|
|
|
121
|
-
- **`needs_answer`** or **`nextAction=answer_from_evidence_or_ask_user`**: Akinator controls
|
|
121
|
+
- **`needs_answer`** or **`nextAction=answer_from_evidence_or_ask_user`**: Akinator controls only that record. Use its hypotheses and question purpose only to understand the distinction being tested. Answer the exact current question through `task_answer` only when the value is grounded in the user request or verified repository evidence; otherwise ask the user that question. Repeat the same capability catalog and context budget, inspect the new question and state after every answer, and continue until `ready` or `exhausted`. Do not complete that memory record while unresolved. Unrelated authorized coding may continue from current repository evidence.
|
|
122
122
|
- **`ready`**: obey top-level `nextAction`, capability requirements, memory policy. Only then select the applicable routes below.
|
|
123
123
|
- **`exhausted`**: no further Akinator question is available, but `intake.missingFields` may remain. Preserve that uncertainty, do not invent the missing answers or describe the intake as fully specified, and route only when top-level `nextAction` permits.
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
For a memory record, `nextAction=review_memory_application` requires decisions before
|
|
126
|
+
reusing those memories or completing that record. Inspect `task_memory_status`, gather
|
|
127
127
|
current evidence with `task_inspect`, then call `task_memory_review` sequentially
|
|
128
128
|
for every pending entry using the revision returned by the latest response.
|
|
129
129
|
Register grounded adoption, inapplicability or contradiction; never invent a
|
|
130
|
-
decision to
|
|
130
|
+
decision to manufacture a completed record. `nextAction=refresh_memory` requires
|
|
131
131
|
`task_memory_refresh` on the same run with the bound capability catalog before
|
|
132
132
|
reviewing the new delivery. After reviews, check `task_memory_status`; do not
|
|
133
|
-
repeat `task_prepare`. `nextAction
|
|
134
|
-
code memories still require passing verification before completion.
|
|
133
|
+
repeat `task_prepare`. `nextAction` governs the memory workflow only. Independent tools remain subject to host and user authorization. Adopted memories still require real verification before being described as verified.
|
|
135
134
|
|
|
136
|
-
If
|
|
135
|
+
If task_prepare is unavailable, report unavailable memory and continue unrelated authorized coding from repository evidence. The sole exception is diagnosing or repairing Kiokuko itself after `task_prepare` fails before returning scoped context: continue only from repository evidence, and do not call `task_answer` or `memory_checkpoint` for that failed request.
|
|
137
136
|
|
|
138
137
|
Correcting preparation does not require a new user request or a “retry implementation” message. If the recovery API is missing from the current tool catalog, report the stale MCP runtime and reload its connection after updating the installed package. Never invent an unavailable tool or bypass the hook.
|
|
139
138
|
|
|
@@ -147,9 +146,9 @@ before continuing. A second conflict, binding mismatch, terminal run or unknown
|
|
|
147
146
|
failure is not automatically recoverable. An authorization or identity denial ends the
|
|
148
147
|
turn. A recoverable preparation or review denial permits repair within the same turn.
|
|
149
148
|
|
|
150
|
-
For
|
|
151
|
-
`task_verification_define`
|
|
152
|
-
`task_verification_record`. Check `completionReady` before reporting completion.
|
|
149
|
+
For optional memory tracking, define required checks per target with
|
|
150
|
+
`task_verification_define` and record their results with
|
|
151
|
+
`task_verification_record`. Check `completionReady` before reporting verified memory-record completion. Registration failure does not waive actual product verification or prohibit unrelated authorized coding.
|
|
153
152
|
`complete` refers only to memory application. Missing, failed, skipped, unknown
|
|
154
153
|
or stale checks do not pass. A null completionReady is legacy/unobserved, never
|
|
155
154
|
proof of task success. PLAN and review need no implementation tests unless code
|
|
@@ -158,7 +157,7 @@ do not attribute a product failure to a separate bookkeeping error.
|
|
|
158
157
|
|
|
159
158
|
## Routes
|
|
160
159
|
|
|
161
|
-
|
|
160
|
+
The optional memory record can proceed after its intake reaches `ready` or `exhausted` and its `nextAction` permits. Select authorized coding routes from current user intent and repository evidence even when memory intake is unavailable.
|
|
162
161
|
|
|
163
162
|
### Workflow completeness
|
|
164
163
|
|