@askdkc/kiokuko 0.2.7 → 0.2.8
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 +9 -22
- package/README.ko.md +8 -22
- package/README.md +14 -23
- package/README.zh-CN.md +7 -20
- 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 +62 -26
- package/dist/akinator/agent-task.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +8 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +6 -3
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/embeddings.d.ts +7 -0
- package/dist/commands/embeddings.d.ts.map +1 -1
- package/dist/commands/embeddings.js +32 -1
- package/dist/commands/embeddings.js.map +1 -1
- package/dist/config/paths.d.ts +5 -0
- package/dist/config/paths.d.ts.map +1 -1
- package/dist/config/paths.js +34 -0
- package/dist/config/paths.js.map +1 -1
- package/dist/embedding/backend.d.ts +1 -1
- package/dist/embedding/backend.d.ts.map +1 -1
- package/dist/embedding/backend.js +20 -4
- package/dist/embedding/backend.js.map +1 -1
- package/dist/embedding/config.d.ts +3 -0
- package/dist/embedding/config.d.ts.map +1 -1
- package/dist/embedding/config.js +17 -0
- package/dist/embedding/config.js.map +1 -1
- package/dist/embedding/diagnostics.d.ts +1 -1
- package/dist/embedding/diagnostics.d.ts.map +1 -1
- package/dist/embedding/diagnostics.js +20 -5
- package/dist/embedding/diagnostics.js.map +1 -1
- package/dist/embedding/document.d.ts +5 -0
- package/dist/embedding/document.d.ts.map +1 -1
- package/dist/embedding/document.js +20 -0
- package/dist/embedding/document.js.map +1 -1
- package/dist/embedding/local-model-loader.d.ts +24 -0
- package/dist/embedding/local-model-loader.d.ts.map +1 -0
- package/dist/embedding/local-model-loader.js +64 -0
- package/dist/embedding/local-model-loader.js.map +1 -0
- package/dist/embedding/local-transformers-provider.d.ts +17 -0
- package/dist/embedding/local-transformers-provider.d.ts.map +1 -0
- package/dist/embedding/local-transformers-provider.js +54 -0
- package/dist/embedding/local-transformers-provider.js.map +1 -0
- package/dist/embedding/model-download.d.ts +32 -0
- package/dist/embedding/model-download.d.ts.map +1 -0
- package/dist/embedding/model-download.js +41 -0
- package/dist/embedding/model-download.js.map +1 -0
- package/dist/embedding/model-installation.d.ts +17 -0
- package/dist/embedding/model-installation.d.ts.map +1 -0
- package/dist/embedding/model-installation.js +71 -0
- package/dist/embedding/model-installation.js.map +1 -0
- package/dist/embedding/model-manifest.d.ts +18 -0
- package/dist/embedding/model-manifest.d.ts.map +1 -0
- package/dist/embedding/model-manifest.js +86 -0
- package/dist/embedding/model-manifest.js.map +1 -0
- package/dist/embedding/presets/local-small.d.ts +8 -0
- package/dist/embedding/presets/local-small.d.ts.map +1 -0
- package/dist/embedding/presets/local-small.js +67 -0
- package/dist/embedding/presets/local-small.js.map +1 -0
- package/dist/embedding/presets/manifest.d.ts +27 -0
- package/dist/embedding/presets/manifest.d.ts.map +1 -0
- package/dist/embedding/presets/manifest.js +5 -0
- package/dist/embedding/presets/manifest.js.map +1 -0
- package/dist/embedding/profile.d.ts +6 -2
- package/dist/embedding/profile.d.ts.map +1 -1
- package/dist/embedding/profile.js +36 -0
- package/dist/embedding/profile.js.map +1 -1
- package/dist/embedding/query-cache.d.ts +6 -0
- package/dist/embedding/query-cache.d.ts.map +1 -1
- package/dist/embedding/query-cache.js +21 -0
- package/dist/embedding/query-cache.js.map +1 -1
- package/dist/embedding/runtime.d.ts +2 -1
- package/dist/embedding/runtime.d.ts.map +1 -1
- package/dist/embedding/runtime.js +39 -5
- package/dist/embedding/runtime.js.map +1 -1
- package/dist/embedding/settings.d.ts +6 -0
- package/dist/embedding/settings.d.ts.map +1 -0
- package/dist/embedding/settings.js +69 -0
- package/dist/embedding/settings.js.map +1 -0
- package/dist/embedding/setup-lock.d.ts +7 -0
- package/dist/embedding/setup-lock.d.ts.map +1 -0
- package/dist/embedding/setup-lock.js +35 -0
- package/dist/embedding/setup-lock.js.map +1 -0
- package/dist/embedding/setup-service.d.ts +53 -0
- package/dist/embedding/setup-service.d.ts.map +1 -0
- package/dist/embedding/setup-service.js +184 -0
- package/dist/embedding/setup-service.js.map +1 -0
- package/dist/embedding/store.d.ts +3 -1
- package/dist/embedding/store.d.ts.map +1 -1
- package/dist/embedding/store.js +124 -11
- package/dist/embedding/store.js.map +1 -1
- package/dist/embedding/types.d.ts +31 -2
- package/dist/embedding/types.d.ts.map +1 -1
- package/dist/mcp/bounded-stdio-transport.d.ts +3 -10
- package/dist/mcp/bounded-stdio-transport.d.ts.map +1 -1
- package/dist/mcp/bounded-stdio-transport.js +2 -89
- package/dist/mcp/bounded-stdio-transport.js.map +1 -1
- package/dist/mcp/request-deadline.d.ts +51 -0
- package/dist/mcp/request-deadline.d.ts.map +1 -0
- package/dist/mcp/request-deadline.js +155 -0
- package/dist/mcp/request-deadline.js.map +1 -0
- package/dist/mcp/runtime-owner.d.ts.map +1 -1
- package/dist/mcp/runtime-owner.js +2 -3
- package/dist/mcp/runtime-owner.js.map +1 -1
- package/dist/mcp/server.d.ts +2 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +48 -20
- package/dist/mcp/server.js.map +1 -1
- package/dist/memory/scoped-memory.d.ts +1 -1
- package/dist/memory/scoped-memory.d.ts.map +1 -1
- package/dist/memory/scoped-memory.js +5 -1
- package/dist/memory/scoped-memory.js.map +1 -1
- package/dist/server/http.d.ts +1 -1
- package/dist/server/http.d.ts.map +1 -1
- package/dist/server/http.js +6 -3
- package/dist/server/http.js.map +1 -1
- package/dist/skills/discovery-service.d.ts.map +1 -1
- package/dist/skills/discovery-service.js +10 -8
- package/dist/skills/discovery-service.js.map +1 -1
- package/dist/skills/find.d.ts +1 -0
- package/dist/skills/find.d.ts.map +1 -1
- package/dist/skills/find.js +1 -0
- package/dist/skills/find.js.map +1 -1
- package/dist/skills/materialization-authority.d.ts +1 -1
- package/dist/skills/materialization-authority.d.ts.map +1 -1
- package/dist/skills/materialization-authority.js +2 -2
- package/dist/skills/materialization-authority.js.map +1 -1
- package/dist/skills/providers/skills-sh-compat.d.ts.map +1 -1
- package/dist/skills/providers/skills-sh-compat.js +4 -2
- package/dist/skills/providers/skills-sh-compat.js.map +1 -1
- package/dist/skills/providers/skills-sh-v1.d.ts +2 -2
- package/dist/skills/providers/skills-sh-v1.d.ts.map +1 -1
- package/dist/skills/providers/skills-sh-v1.js +22 -4
- package/dist/skills/providers/skills-sh-v1.js.map +1 -1
- package/dist/skills/source/github-fetcher.d.ts.map +1 -1
- package/dist/skills/source/github-fetcher.js +8 -4
- package/dist/skills/source/github-fetcher.js.map +1 -1
- package/dist/skills/types.d.ts +3 -2
- package/dist/skills/types.d.ts.map +1 -1
- package/docs/agent-file.md +72 -0
- package/docs/agent-gateway.md +104 -0
- package/docs/architecture.md +12 -0
- package/docs/cli-contract.md +13 -0
- package/docs/client-compatibility.md +298 -0
- package/docs/database.md +11 -0
- package/docs/execution-ledger.md +89 -0
- package/docs/release-notes-0.1.18.md +103 -0
- package/docs/retrieval-evaluation.md +10 -0
- package/docs/security.md +11 -0
- package/docs/sqlite-driver-adr.md +8 -0
- package/migrations/022_embedding_setup_v2.sql +236 -0
- package/migrations/down/022_embedding_setup_v2.sql +133 -0
- package/package.json +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github-fetcher.js","sourceRoot":"","sources":["../../../src/skills/source/github-fetcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,cAAc,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACtO,OAAO,EAAE,aAAa,EAA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AC;YACD,OAAO,qBAAqB,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;QACxE,CAAC;gBAAS,CAAC;YACT,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAM,EAAE,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;CACF"}
|
package/dist/skills/types.d.ts
CHANGED
|
@@ -112,8 +112,8 @@ export interface SkillRegistryProvider {
|
|
|
112
112
|
readonly id: string;
|
|
113
113
|
readonly authenticationFallback?: SkillRegistryProvider;
|
|
114
114
|
search(input: SkillSearchInput): Promise<SkillSearchResult>;
|
|
115
|
-
curated?(): Promise<SkillCandidate[] | null>;
|
|
116
|
-
audit?(candidate: SkillCandidate): Promise<SkillAuditResult | null>;
|
|
115
|
+
curated?(signal?: AbortSignal): Promise<SkillCandidate[] | null>;
|
|
116
|
+
audit?(candidate: SkillCandidate, signal?: AbortSignal): Promise<SkillAuditResult | null>;
|
|
117
117
|
}
|
|
118
118
|
export interface SkillSourceFetcher {
|
|
119
119
|
fetch(candidate: SkillCandidate, request: SkillSourceFetchRequest, signal?: AbortSignal): Promise<SkillSnapshot>;
|
|
@@ -145,6 +145,7 @@ export interface DiscoverSkillsInput {
|
|
|
145
145
|
maxQueries?: 1 | 2 | 3;
|
|
146
146
|
fetchImpl?: typeof fetch;
|
|
147
147
|
now?: string;
|
|
148
|
+
signal?: AbortSignal;
|
|
148
149
|
}
|
|
149
150
|
export interface SkillDiscoverySummary {
|
|
150
151
|
attempted: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/skills/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,UAAU,GAAG,WAAW,CAAC;AAElE,MAAM,WAAW,g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ACH,QAAQ,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,aAAa,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC9F"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Agent file management
|
|
2
|
+
|
|
3
|
+
`kiokuko setup` creates or updates Codex/OpenCode global `AGENTS.md` files and
|
|
4
|
+
Claude Code's global `CLAUDE.md` with a Kiokuko global-memory block. `kiokuko
|
|
5
|
+
use` optionally creates or updates the repository's `AGENTS.md` with a
|
|
6
|
+
project-specific block.
|
|
7
|
+
|
|
8
|
+
If setup creates a missing project binding for a registered project, it also
|
|
9
|
+
adds `.kiokuko.json` to that project's root `.gitignore` when neither the plain
|
|
10
|
+
nor root-anchored entry is already present. This setup-only addition participates
|
|
11
|
+
in the same compare-and-swap and rollback boundary as the binding and project
|
|
12
|
+
agent file.
|
|
13
|
+
|
|
14
|
+
Existing bytes outside the block are preserved, including the human-authored
|
|
15
|
+
header/footer, line-ending style, and file mode. Missing markers are appended;
|
|
16
|
+
imbalanced, duplicated, nested, or reversed markers cause a validation error
|
|
17
|
+
and are not repaired automatically. Symlinks are rejected.
|
|
18
|
+
|
|
19
|
+
Repeated `setup` or `use` with unchanged content does not rewrite its target
|
|
20
|
+
files. `setup --dry-run` validates all target content without creating the
|
|
21
|
+
database, config, or instruction files.
|
|
22
|
+
|
|
23
|
+
When `kiokuko use --agent-file` changes an existing repository binding, the
|
|
24
|
+
new target is installed and only the exact marked block is removed from the
|
|
25
|
+
old target. Human bytes and file mode outside that block are preserved; a file
|
|
26
|
+
is deleted only when the managed block was its entire content. Malformed
|
|
27
|
+
markers, symlinks, concurrent file changes, or a later database-registration
|
|
28
|
+
failure abort the transition and conditionally restore every Kiokuko-owned
|
|
29
|
+
file mutation. Cleanup and restoration failures are reported rather than
|
|
30
|
+
ignored.
|
|
31
|
+
|
|
32
|
+
The generated instructions describe the high-level `task_prepare`,
|
|
33
|
+
`task_answer`, Curator, and `memory_checkpoint` MCP lifecycle. The first two are
|
|
34
|
+
the only model-facing task-memory entry points. Human/operator CLI and Web
|
|
35
|
+
inspection remain management-only and are not a fallback for a client that
|
|
36
|
+
cannot satisfy the task capability gate. When Enno-Oduno is enabled, setup may
|
|
37
|
+
install a bounded Codex or Claude Code Stop hook, or an OpenCode
|
|
38
|
+
`session.idle` plugin. Hermes receives no continuation adapter. These adapters
|
|
39
|
+
only gate the existing run-bound continuation; they do not recall memory,
|
|
40
|
+
launch advisors, bypass planning or confirmation, or select a latest run. A
|
|
41
|
+
client session is routing metadata, not authorization ownership. Continuation
|
|
42
|
+
prefers the exact short-lived opaque resume token bound to the route epoch;
|
|
43
|
+
otherwise the adapter may atomically reroute
|
|
44
|
+
the single unambiguous active run in the canonical repository across Codex,
|
|
45
|
+
Claude Code, and OpenCode. Rerouting increments the epoch and invalidates old
|
|
46
|
+
tokens. An active WorkUnit execution lease blocks rerouting and only its holder
|
|
47
|
+
may report. Multiple candidates remain unchanged. Exhausting one
|
|
48
|
+
session's continuation budget leaves the run and ledger active for another
|
|
49
|
+
local project client.
|
|
50
|
+
|
|
51
|
+
Template version 20 also documents bounded `ENNO_INPUT_INVALID` diagnostics,
|
|
52
|
+
the explicit advisory lifecycle and dynamic report schema, WorkUnit-local
|
|
53
|
+
`code`/`ui`/`test`/`docs`/`operations` routes, repository-relative verifier
|
|
54
|
+
directories, continuation-pausing plan recovery, pre-persistence sanitization,
|
|
55
|
+
crash-recoverable receipts, and repository-state-bound Final Review evidence.
|
|
56
|
+
|
|
57
|
+
The instructions require one new bounded opaque `requestId` per logical user
|
|
58
|
+
request and permit reusing it only for an exact transport retry. Identical task
|
|
59
|
+
text in a later request still gets a new ID. Reusing an ID with changed bound
|
|
60
|
+
input conflicts, and `client.sessionId` is not accepted as a substitute.
|
|
61
|
+
The normalized context budget is also bound at preparation and must be repeated
|
|
62
|
+
unchanged by `task_answer`.
|
|
63
|
+
|
|
64
|
+
Default setup installs the exact local `memory-reasoning` Skill, but installation
|
|
65
|
+
is not proof that a model loaded or followed it. For actionable build/debug
|
|
66
|
+
memory, generated instructions treat catalog
|
|
67
|
+
availability as only the gate, not proof of compliance. The client must read the
|
|
68
|
+
available local `memory-reasoning` Skill before modifying code and convert
|
|
69
|
+
recalled claims that affect the task into verified premises, falsifiable
|
|
70
|
+
invariants, concrete counterexamples, and regression tests. Missing or unknown
|
|
71
|
+
availability is explicit in `memoryPolicy.contextWithheld` and
|
|
72
|
+
`memoryPolicy.withheldReason`; `nextAction` remains `proceed`.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Agent Event Gateway HTTP/JSON v1
|
|
2
|
+
|
|
3
|
+
Kiokuko exposes a client-neutral local control-plane API. Coding agents send run lifecycle and normalized events to Kiokuko; Kiokuko commits sanitized records to SQLite and returns bounded, untrusted memory context plus deterministic recommendations.
|
|
4
|
+
|
|
5
|
+
The v1 gateway is **not** an OpenAI/Anthropic provider reverse proxy. It never requires provider credentials and does not claim to observe events that a client cannot report.
|
|
6
|
+
|
|
7
|
+
## Runtime and discovery
|
|
8
|
+
|
|
9
|
+
Start the foreground service with:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
kiokuko serve [--host 127.0.0.1] [--port 0] [--json]
|
|
13
|
+
kiokuko server status --json
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`kiokuko web` is the compatibility entry point for the same server composition. The service accepts loopback hosts only. On startup it creates a same-user runtime descriptor containing protocol version, PID, base URL, database fingerprint, instance ID, start time, and a random capability token. The descriptor is mode `0600`; the token must not appear in stdout, argv, `AGENTS.md`, events, logs, or error responses.
|
|
17
|
+
|
|
18
|
+
All `/api/v1/*` endpoints require `Authorization: Bearer <capability-token>`. `GET /health/live` exposes only liveness; `GET /health/ready` is authenticated. CORS is not permissive.
|
|
19
|
+
|
|
20
|
+
## Write protocol
|
|
21
|
+
|
|
22
|
+
Every write requires:
|
|
23
|
+
|
|
24
|
+
- `Content-Type: application/json`
|
|
25
|
+
- `apiVersion: "1"`
|
|
26
|
+
- `Idempotency-Key: <opaque non-empty key>`
|
|
27
|
+
- strict unknown-field rejection
|
|
28
|
+
- request body at most 2 MiB
|
|
29
|
+
|
|
30
|
+
A key is scoped to the operation/run. Replaying the same key with the same canonical request returns the stored atomic mutation acknowledgement and does not repeat the mutation. Reusing it with different content returns `409 CONFLICT`. For operations that add capability-gated context, gating and retrieval happen after that mutation boundary and are re-evaluated against the current retrievable revisions and feedback. The full enriched JSON may therefore change on an exact retry even though the acknowledged mutation does not. Freezing the earlier enriched context would bypass current retrieval eligibility. Event batches are all-or-nothing and contain at most 200 events; one sanitized payload is at most 64 KiB.
|
|
31
|
+
|
|
32
|
+
Success envelope:
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{"apiVersion":"1","ok":true,"operation":"agent.checkpoint","data":{},"meta":{}}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Failure envelope:
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
{"apiVersion":"1","ok":false,"operation":"agent.checkpoint","error":{"code":"VALIDATION_ERROR","message":"...","details":{}}}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The server never includes an auth token, matched secret, raw request, hidden reasoning, or internal stack in an error. Queue saturation returns `429` with `Retry-After`; unavailable storage returns `503`; validation returns `400`; authentication returns `401`; not found returns `404`; idempotency/source-ID conflict returns `409`.
|
|
45
|
+
|
|
46
|
+
## Lifecycle endpoints
|
|
47
|
+
|
|
48
|
+
### Open
|
|
49
|
+
|
|
50
|
+
`POST /api/v1/agent/runs`
|
|
51
|
+
|
|
52
|
+
Creates a ledger run, an Akinator intake session, and their one-to-one `run_intakes` link in one application transaction. Workspace is fixed here and is immutable for the rest of the run. Client-supplied coverage is stored exactly; Kiokuko does not upgrade it.
|
|
53
|
+
|
|
54
|
+
If intake needs an answer, the run remains `intake`, the response includes only the current question and no memory context. A client must present that question to the user without inventing an answer. A finalized `ready` or bounded `exhausted` intake moves the run to `active` and permits initial context delivery.
|
|
55
|
+
|
|
56
|
+
### Answer intake
|
|
57
|
+
|
|
58
|
+
`POST /api/v1/agent/runs/:runId/intake/answers`
|
|
59
|
+
|
|
60
|
+
Accepts only the currently outstanding question ID. The answer, intake transition, lifecycle event, and run status transition are atomic. Exact retry replays that mutation acknowledgement without repeating the answer; any post-commit capability gate and context retrieval are evaluated again under the bound catalog and current retrieval eligibility. A finalized profile is immutable; later task-understanding changes are appended as `task_profile.revised` events.
|
|
61
|
+
|
|
62
|
+
### Append events
|
|
63
|
+
|
|
64
|
+
`POST /api/v1/agent/runs/:runId/events`
|
|
65
|
+
|
|
66
|
+
The server preserves source event IDs/sequences and assigns a contiguous local sequence. The canonical event type and optional client `sourceType` are both stored. Non-intake events are rejected while the run is `intake`. Terminal runs reject new events except exact idempotent replay.
|
|
67
|
+
|
|
68
|
+
### Checkpoint
|
|
69
|
+
|
|
70
|
+
`POST /api/v1/agent/runs/:runId/checkpoints`
|
|
71
|
+
|
|
72
|
+
Atomically appends the included events, then projects state through the committed cursor. The response includes the authoritative finalized intake status (`ready` or `exhausted`). The request must include the exact complete `capabilities` catalog bound when the run opened; the server validates that binding before mutation and removes the catalog before strict checkpoint parsing. Retrieval happens after the write transaction and outside the bounded write queue. The broker ranks once, evaluates the capability gate against that fixed snapshot, and persists only that same snapshot after approval; it never previews and then re-queries. Inside the delivery transaction, every selected exact revision is revalidated as current and retrievable, including the active managed-external mapping and source identity. A concurrent revision, disable, stale, or refresh transition returns a conflict with no delivery instead of silently reranking. Every request requires the exact local `kiokuko-soul` Skill in the bound catalog; missing or unknown availability returns `nextAction: required_capability_unavailable`, `context: null`, and no persisted delivery, including while intake still needs an answer. Actionable ordinary build/debug memory from `ready` intake is returned only when the bound catalog also contains the local `memory-reasoning` Skill. Missing or unknown `memory-reasoning` alone sets `memoryPolicy.contextWithheld: true`, reports `memory_reasoning_missing` or `memory_reasoning_unknown` in `memoryPolicy.withheldReason`, and withholds that ordinary memory while leaving `nextAction: proceed`; the ready-only memory policy does not apply to bounded `exhausted` intake. After this gate, the response may contain one persisted v1 advisory nudge selected from the final recommendations; the nudge is never selected or persisted before capability gating.
|
|
73
|
+
|
|
74
|
+
### Close, feedback, promotion
|
|
75
|
+
|
|
76
|
+
- `POST /api/v1/agent/runs/:runId/close`
|
|
77
|
+
- `POST /api/v1/agent/runs/:runId/feedback`
|
|
78
|
+
- `POST /api/v1/agent/runs/:runId/promotions`
|
|
79
|
+
|
|
80
|
+
Close records a terminal status, final events/evidence, unresolved items, outcome, and explicit memory proposals. Feedback records context, recommendation, intake-question/profile, and run outcomes without automatically changing entry trust/status or the active intake policy. Promotion creates only an existing-memory `candidate` entry and records run/event/delivery/intake provenance; it never auto-promotes to `verified`.
|
|
81
|
+
|
|
82
|
+
The former unbound `POST /api/v1/context/query` route was removed. A request without a run cannot prove which capability catalog governs the returned memory, so the server does not provide an ungated compatibility fallback.
|
|
83
|
+
|
|
84
|
+
## Read protocol
|
|
85
|
+
|
|
86
|
+
Cursor-paginated read endpoints are:
|
|
87
|
+
|
|
88
|
+
- `GET /api/v1/agent/runs?workspace=&client=&status=&cursor=&limit=`
|
|
89
|
+
- `GET /api/v1/agent/runs/:runId`
|
|
90
|
+
- `GET /api/v1/agent/runs/:runId/intake`
|
|
91
|
+
- `GET /api/v1/agent/runs/:runId/events?after=&limit=&type=`
|
|
92
|
+
|
|
93
|
+
List pages are capped at 100 records. Event content returned to agents is marked
|
|
94
|
+
`untrusted: true` and must be checked against the current repository/runtime.
|
|
95
|
+
Workspace and memory inspection belongs to the human/operator CLI and Web
|
|
96
|
+
management surfaces; the Agent API does not expose ungated read aliases.
|
|
97
|
+
|
|
98
|
+
The former context-delivery listing route was removed because a GET request has no complete capability-catalog channel. Context deliveries are returned only by the capability-gated open, answer, and checkpoint operations that create them.
|
|
99
|
+
|
|
100
|
+
## Coverage
|
|
101
|
+
|
|
102
|
+
Each category is one of `complete`, `best_effort`, `declared`, or `unavailable`. `complete` is reserved for a versioned bridge with a clean-room contract test. Generic CLI runs normally use `declared` or `unavailable`. UI and recommendations must display incomplete coverage rather than call the ledger a complete transcript.
|
|
103
|
+
|
|
104
|
+
The Enno-Oduno user-confirmation and plan-start recovery display contracts are delivered only through the MCP boundary. A decided contract returns the `userFacingConfirmation` projection. Missing or changed environment information persists only a continuation pause and returns a projection containing a general explanation, the absence of new work from that plan-start attempt, a remedy, and bounded choices. Each choice supplies a label and recommendation followed by the user intent it fits and the exact result of choosing it; clients translate all four parts and hide machine actions, reason codes, internal fields, catalogs, identifiers, revisions, presentation versions, and raw JSON. A legacy attempt already ended by proven environment-information loss returns a restart projection without reopening or cancelling the terminal attempt. The client waits for the user's explicit response and performs no retry, cancellation, or replacement creation before it; it never asks the user to locate the internal capability catalog. A same-run plan retry carries the selected recovery action. `enno_answer` receives explicit confirmation or cancellation, including cancellation from active planning before a user-selected restart. The Agent Event Gateway does not expose, replicate, or continue Enno runs, and no gateway endpoint substitutes for explicit user input.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Embedding architecture
|
|
2
|
+
|
|
3
|
+
Semantic retrieval is an optional lane beside lexical, exact-signal, tag, and
|
|
4
|
+
trust-aware retrieval. The local provider reads a verified model directory and
|
|
5
|
+
never sends memory or query text to Hugging Face. SQLite stores settings,
|
|
6
|
+
profile identity, installation metadata, jobs, and rebuildable vector rows.
|
|
7
|
+
|
|
8
|
+
Setup downloads allowlisted files into private staging, verifies size and
|
|
9
|
+
SHA-256, runs an offline probe, and atomically installs the revision. Database
|
|
10
|
+
activation and model I/O are separate phases. A profile identity includes the
|
|
11
|
+
model revision, artifact manifest, runtime version, dtype, pooling,
|
|
12
|
+
normalization, token limit, dimensions, and E5 input contract.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Embedding CLI contract
|
|
2
|
+
|
|
3
|
+
`kiokuko embeddings setup` installs the pinned `local-small` preset after
|
|
4
|
+
explicit confirmation. Automation uses:
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
kiokuko embeddings setup --preset local-small --yes --json
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
`--dry-run` performs no download, model load, database write, or filesystem
|
|
11
|
+
mutation. `--offline` uses only an existing verified installation. `--replace`
|
|
12
|
+
allows switching profiles. `status --json` reports bounded coverage and model
|
|
13
|
+
state; `repair` restores the same pinned artifact without destructive cleanup.
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
# Client compatibility policy
|
|
2
|
+
|
|
3
|
+
Status: global MCP integration for Codex, OpenCode, Claude Code, and profile-scoped Hermes Agent. Enno-Oduno continuation adapters are bounded and available for Codex, OpenCode, and Claude Code; Hermes has no Enno continuation adapter.
|
|
4
|
+
|
|
5
|
+
| Client | Global MCP registration | Global instructions | Managed standard skills | Hooks/plugins |
|
|
6
|
+
|---|---|---|---|---|
|
|
7
|
+
| Codex | managed table in `~/.codex/config.toml` (or `$CODEX_HOME`) | managed block in global `AGENTS.md` | `~/.agents/skills/{memory-reasoning,kiokuko-soul,kiokuko-enno-oduno,kiokuko-single-purpose-functions,kiokuko-ui-design-soul}` | bounded Stop hook when Enno-Oduno is enabled |
|
|
8
|
+
| OpenCode | managed `mcp.kiokuko` property in global `opencode.json`/`opencode.jsonc` | managed block in global `AGENTS.md` | global config `skills/{memory-reasoning,kiokuko-soul,kiokuko-enno-oduno,kiokuko-single-purpose-functions,kiokuko-ui-design-soul}` | bounded `session.idle` plugin when Enno-Oduno is enabled |
|
|
9
|
+
| Claude Code | managed `mcpServers.kiokuko` property in `~/.claude.json` (or `$CLAUDE_CONFIG_DIR/.claude.json`) | managed block in global `CLAUDE.md` | Claude config `skills/{memory-reasoning,kiokuko-soul,kiokuko-enno-oduno,kiokuko-single-purpose-functions,kiokuko-ui-design-soul}` | bounded Stop hook when Enno-Oduno is enabled |
|
|
10
|
+
| Hermes Agent | managed `mcp_servers.kiokuko` in the effective profile `config.yaml` | none | effective profile `skills/{memory-reasoning,kiokuko-soul,kiokuko-enno-oduno,kiokuko-single-purpose-functions,kiokuko-ui-design-soul}` | none |
|
|
11
|
+
| Other MCP clients | manual `kiokuko mcp` stdio registration | client-specific | not installed | none |
|
|
12
|
+
|
|
13
|
+
OpenCode global configuration follows XDG paths on every platform:
|
|
14
|
+
`$XDG_CONFIG_HOME/opencode`, or `~/.config/opencode` when unset. On Windows,
|
|
15
|
+
`~` resolves from `%USERPROFILE%`, falling back to `%HOME%`; `%APPDATA%` and
|
|
16
|
+
`%LOCALAPPDATA%` are not OpenCode global configuration roots.
|
|
17
|
+
|
|
18
|
+
Codex's current official documentation supports stdio MCP servers and global
|
|
19
|
+
configuration. OpenCode's current official documentation supports local MCP
|
|
20
|
+
commands and global rules. Claude Code supports user-scoped stdio MCP servers,
|
|
21
|
+
global `CLAUDE.md`, and auto-discovered skills. `kiokuko setup` uses the MCP and
|
|
22
|
+
instruction surfaces and installs the bundled `memory-reasoning`, `kiokuko-soul`, `kiokuko-enno-oduno`,
|
|
23
|
+
`kiokuko-single-purpose-functions`, and `kiokuko-ui-design-soul` skills in the selected supported clients by
|
|
24
|
+
default. The skills are copied from a fixed package manifest and never downloaded
|
|
25
|
+
during setup. `--no-standard-skills`
|
|
26
|
+
skips placement without deleting an existing copy.
|
|
27
|
+
|
|
28
|
+
Hermes Agent v0.20.4 uses a profile-scoped native stdio MCP client. Kiokuko writes
|
|
29
|
+
only the effective profile's `config.yaml` entry:
|
|
30
|
+
|
|
31
|
+
```yaml
|
|
32
|
+
mcp_servers:
|
|
33
|
+
# Managed by `kiokuko setup`.
|
|
34
|
+
kiokuko:
|
|
35
|
+
command: kiokuko
|
|
36
|
+
args: [mcp]
|
|
37
|
+
env:
|
|
38
|
+
KIOKUKO_SKILL_DISCOVERY: official
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
It does not create a global instruction file, Hermes plugin, or Hermes hook.
|
|
42
|
+
Hermes's built-in memory and Kiokuko's bundled skills remain separate capabilities.
|
|
43
|
+
Use `kiokuko setup --clients hermes`, then restart Hermes Agent or start a new
|
|
44
|
+
session; `/reload-mcp` only reloads MCP registration. Smoke-test with
|
|
45
|
+
`hermes mcp test kiokuko`.
|
|
46
|
+
|
|
47
|
+
- [Codex MCP configuration](https://learn.chatgpt.com/docs/extend/mcp)
|
|
48
|
+
- [Codex skills](https://developers.openai.com/codex/skills)
|
|
49
|
+
- [OpenCode MCP servers](https://opencode.ai/docs/mcp-servers/)
|
|
50
|
+
- [OpenCode rules](https://opencode.ai/docs/rules/)
|
|
51
|
+
- [OpenCode skills](https://opencode.ai/docs/skills)
|
|
52
|
+
- [Claude Code MCP servers](https://code.claude.com/docs/en/mcp)
|
|
53
|
+
- [Claude Code memory and CLAUDE.md](https://code.claude.com/docs/en/memory)
|
|
54
|
+
- [Claude Code skills](https://code.claude.com/docs/en/skills)
|
|
55
|
+
- [Hermes skills](https://github.com/NousResearch/hermes-agent/blob/main/website/docs/guides/work-with-skills.md)
|
|
56
|
+
|
|
57
|
+
## Guarantees and non-guarantees
|
|
58
|
+
|
|
59
|
+
Setup guarantees safe, repeatable configuration merging and makes the Kiokuko MCP
|
|
60
|
+
tools available in each configured client scope after that client reloads its
|
|
61
|
+
configuration and makes the bundled standard skills discoverable after a client
|
|
62
|
+
restart or new session. Global instructions request `task_prepare` before non-trivial work, grounded
|
|
63
|
+
`task_answer` calls when intake fields are missing, and checkpointing after
|
|
64
|
+
substantial verified work.
|
|
65
|
+
|
|
66
|
+
No supported client guarantees that a model will call an available tool for every
|
|
67
|
+
prompt. Therefore “automatic” means no per-repository install and no manual CLI
|
|
68
|
+
lifecycle after one-time setup; it does not mean Kiokuko intercepts every prompt
|
|
69
|
+
or response. For Hermes specifically, automatic/model use is best effort from
|
|
70
|
+
MCP tool descriptions.
|
|
71
|
+
|
|
72
|
+
The `kiokuko-soul` standard skill is the canonical first-read router. Managed
|
|
73
|
+
instruction surfaces require it before another bundled Kiokuko skill. Every
|
|
74
|
+
`task_prepare` call requires `soulRead: true` as an explicit claim that the
|
|
75
|
+
complete local Skill was read for that logical request, and the capability gate
|
|
76
|
+
requires an exact local `kiokuko-soul` descriptor for every task. Omission or
|
|
77
|
+
false attestation is invalid; missing or unknown capability availability returns
|
|
78
|
+
`required_capability_unavailable` even while intake needs an answer. A
|
|
79
|
+
namespaced, fetched, or reference-only skill does not satisfy the required
|
|
80
|
+
master SOUL. The boolean attestation is enforceable protocol evidence, not
|
|
81
|
+
remote proof that a model understood or followed the Skill.
|
|
82
|
+
|
|
83
|
+
The `memory-reasoning` standard skill is installed by default, but filesystem
|
|
84
|
+
placement is not proof that the current model loaded or followed it. For ready
|
|
85
|
+
build/debug tasks, clients advertise the exact local capability only when it is
|
|
86
|
+
actually available. If it is missing or availability is unknown, Kiokuko sets
|
|
87
|
+
`memoryPolicy.contextWithheld=true`, reports `memory_reasoning_missing` or
|
|
88
|
+
`memory_reasoning_unknown` in `memoryPolicy.withheldReason`, returns no actionable
|
|
89
|
+
ordinary memory, and leaves `nextAction=proceed`. An unmanaged same-name file
|
|
90
|
+
causes setup to fail closed; move or remove that file manually before rerunning
|
|
91
|
+
setup if Kiokuko should own the destination.
|
|
92
|
+
|
|
93
|
+
The UI standard skill is intended for explicit UI, UX, frontend, screen, SwiftUI,
|
|
94
|
+
accessibility, and equivalent Japanese-language tasks. `task_prepare` treats it
|
|
95
|
+
as a first-party recommendation only for such concrete terms; generic `design`,
|
|
96
|
+
backend-only work, and image-only generation do not trigger it.
|
|
97
|
+
|
|
98
|
+
The UI and function standard Skills use progressive disclosure. Their short
|
|
99
|
+
`SKILL.md` files are mandatory indexes, while versioned expert fragments are
|
|
100
|
+
selected for the concrete component, function, design decision, or WorkUnit.
|
|
101
|
+
Normal execution reads one to three fragments rather than every reference.
|
|
102
|
+
|
|
103
|
+
The single-purpose-functions standard skill applies to writing, modifying,
|
|
104
|
+
reviewing, debugging, and refactoring code across languages and repositories.
|
|
105
|
+
Its examples use typed TypeScript for concreteness, but the contracts explicitly
|
|
106
|
+
adapt to the target project's language, error model, persistence layer, and test
|
|
107
|
+
framework. `task_prepare` treats it as a first-party recommendation for concrete
|
|
108
|
+
coding terms in English or Japanese. Explicit no-code, documentation-only, and
|
|
109
|
+
image-only work do not trigger it. Kiokuko does not claim that availability alone
|
|
110
|
+
forces model use.
|
|
111
|
+
|
|
112
|
+
The Enno-Oduno standard skill is the role-level controller contract. Every
|
|
113
|
+
Enno-Oduno directive and WorkUnit retains `kiokuko-soul` first. Enno-Oduno
|
|
114
|
+
directives then require `kiokuko-enno-oduno` during intake, Oduno ideal
|
|
115
|
+
derivation, confirmation, final review, and Oduno meditation. A ready intake
|
|
116
|
+
enters `oduno_ideal`: `enno_ideal_submit` derives the optimal target from the
|
|
117
|
+
structured `task_prepare` handoff plus exactly one contribution per
|
|
118
|
+
Akinator-discovered Skill before Zenki can plan. After accepted final
|
|
119
|
+
verification, `oduno_meditation` inspects changed and approved paths for
|
|
120
|
+
evidence-backed obsolete test or function candidates without deleting them;
|
|
121
|
+
`enno_meditation_submit` persists that reflection and completes the run. The
|
|
122
|
+
controller skill itself is not inserted into Zenki's WorkUnit
|
|
123
|
+
Skill snapshot; Zenki continues to require the single-purpose-functions skill
|
|
124
|
+
for every code-changing plan. Every code-changing WorkUnit persists one to
|
|
125
|
+
three registered `expertRefs`; UI WorkUnits include at least one `code.*` and
|
|
126
|
+
one `ui.*` expert. Unknown, duplicate, missing, or oversized expert mixtures
|
|
127
|
+
are rejected before Skill discovery or repository mutation.
|
|
128
|
+
|
|
129
|
+
A `needs_confirmation` response carries
|
|
130
|
+
`ennoOduno.directive.userFacingConfirmation`, a deterministic display
|
|
131
|
+
projection of the decided contract. It presents scope paths, exclusions,
|
|
132
|
+
completion criteria, work items with display-number dependencies, skills with
|
|
133
|
+
their reference-only status, expertise with selection reasons, focused and
|
|
134
|
+
final checks (executable, arguments, directory, and timeout kept separate, never
|
|
135
|
+
joined into a shell command), and the attempt limit, each labeled with its
|
|
136
|
+
provenance basis (`user`, `repository`, or `proposal` for inferred fields). The
|
|
137
|
+
directive also carries a fixed confirmation report schema and objective, so the
|
|
138
|
+
client model presents every item in the user's language, translating headings
|
|
139
|
+
only, without raw directive JSON, internal field names, WorkUnit IDs, expert
|
|
140
|
+
IDs, or verifier IDs, and then waits for an explicit approve, revise, or cancel
|
|
141
|
+
through `enno_answer` at the confirmed contract revision. Projection content
|
|
142
|
+
that resembles a secret or exceeds the 64 KiB display bound rejects the plan
|
|
143
|
+
submit instead of being redacted or truncated. `needs_confirmation` stays
|
|
144
|
+
outside the Codex Stop hook, Claude Code Stop hook, and OpenCode
|
|
145
|
+
`session.idle` continuation candidates, so no client auto-continues through a
|
|
146
|
+
user confirmation.
|
|
147
|
+
|
|
148
|
+
Final Review is two-phase. `enno_verify_prepare` runs the approved final
|
|
149
|
+
verifiers outside database transactions with shell disabled and a
|
|
150
|
+
repository-relative cwd, stores evidence bound to contract/mutation revision,
|
|
151
|
+
verifier specification, and complete repository state, and only then permits
|
|
152
|
+
the final-review advisory fanout. `enno_finish` rechecks that state, decides
|
|
153
|
+
accept/replan/block from the complete stored context, never spawns a subprocess,
|
|
154
|
+
and rejects unready evidence as a conflict. Passing tests alone do not accept a
|
|
155
|
+
run; Enno-Oduno must accept the current contract.
|
|
156
|
+
|
|
157
|
+
All supported clients consume the same bounded `ENNO_INPUT_INVALID` validation
|
|
158
|
+
envelope and the same WorkUnit-local route contract. New verifier cwd values are
|
|
159
|
+
repository-relative. Continuation adapters transport opaque resume tokens and
|
|
160
|
+
route epochs; Goki transports the returned execution lease. Old tokens become
|
|
161
|
+
invalid after rerouting, and an active lease prevents another client from
|
|
162
|
+
rerouting or reporting the same WorkUnit.
|
|
163
|
+
|
|
164
|
+
If the environment information needed to start a plan is absent or no longer
|
|
165
|
+
matches the task-preparation binding, the MCP result instead contains a
|
|
166
|
+
non-mutating `userFacingRecovery` projection. Clients translate and present
|
|
167
|
+
only its what-happened, work-state, resolution, and choices. Every choice is
|
|
168
|
+
shown as its translated label and recommendation, followed by its translated
|
|
169
|
+
`whenToChoose` intent and exact `whatHappens` result. The machine `action`,
|
|
170
|
+
internal tool and field names, catalog, hashes, run identity, revisions,
|
|
171
|
+
presentation version, reason codes, and raw JSON remain hidden. The client must
|
|
172
|
+
not retry, cancel, or create a replacement automatically.
|
|
173
|
+
|
|
174
|
+
For missing information, continuing attaches the complete catalog retained by
|
|
175
|
+
the host and reuses the same attempt; reviewing asks the user for changes and
|
|
176
|
+
starts no implementation before the answer; cancelling ends the current attempt
|
|
177
|
+
without a replacement. For changed environment information, restarting first
|
|
178
|
+
cancels the active planning attempt and then opens a new task with the current
|
|
179
|
+
environment and agreed plan. Review-before-restart asks for changes first, then
|
|
180
|
+
cancels and replaces the active attempt only after the answer. If a legacy
|
|
181
|
+
attempt already ended because the catalog was provably lost during plan
|
|
182
|
+
submission, both restart choices leave that terminal attempt unchanged and open
|
|
183
|
+
a replacement only after the user chooses and, for review, answers. Cancelling
|
|
184
|
+
an already-ended attempt creates nothing.
|
|
185
|
+
|
|
186
|
+
For new Codex, OpenCode, and Claude Code setup, Enno-Oduno continuation is
|
|
187
|
+
enabled by default; existing managed installations remain unchanged until
|
|
188
|
+
`--enno-oduno on` is selected. Setup installs only the bounded native adapter
|
|
189
|
+
for each of those clients: a Codex or Claude Code Stop hook, or an OpenCode
|
|
190
|
+
`session.idle` plugin. Hermes receives no Enno continuation adapter. During an
|
|
191
|
+
adapter continuation, `client_session_id` is routing metadata rather than
|
|
192
|
+
authorization ownership. A valid short-lived resume token wins; otherwise the current
|
|
193
|
+
local Codex, Claude Code, or OpenCode session may atomically reroute the single
|
|
194
|
+
unambiguous active run in the canonical repository, including across client
|
|
195
|
+
kinds. Rerouting increments the route epoch and invalidates old tokens; an
|
|
196
|
+
active WorkUnit execution lease blocks it. Multiple active candidates remain
|
|
197
|
+
unchanged. A per-session continuation limit stops only that session and leaves
|
|
198
|
+
the run and ledger active for another local project client. Hermes has no
|
|
199
|
+
automatic hook but may continue the same run through MCP with its exact run
|
|
200
|
+
identity. The public `clientBinding` field reports this current route; its
|
|
201
|
+
`bound` state does not grant ownership.
|
|
202
|
+
upgrade, `--enno-oduno off` removes only the exact Enno-owned adapter, while
|
|
203
|
+
setup also removes only the byte-exact retired OpenCode guard and the one exact
|
|
204
|
+
retired Claude prompt handler. A modified, duplicate, relocated, or partial
|
|
205
|
+
legacy identity is `CONFLICT` and requires manual review; unrelated client
|
|
206
|
+
settings are preserved.
|
|
207
|
+
|
|
208
|
+
`task_prepare` can accept an ephemeral catalog of skill and MCP-tool names from
|
|
209
|
+
the calling client. Kiokuko matches Akinator policy recommendations and task
|
|
210
|
+
terms against that catalog, but cannot enumerate another MCP server or a
|
|
211
|
+
client's private skill registry by itself. A result therefore distinguishes
|
|
212
|
+
`available`, `missing`, and `unknown`; it never treats a fetched `SKILL.md` as
|
|
213
|
+
installed or executable. External skill discovery is controlled independently
|
|
214
|
+
by `KIOKUKO_SKILL_DISCOVERY=off|official|community` and defaults to `official`.
|
|
215
|
+
When enabled, Kiokuko compares the project fingerprint with relevant client
|
|
216
|
+
skills rather than checking whether the catalog is globally empty. An omitted
|
|
217
|
+
catalog is treated as unknown availability; official reference-only discovery
|
|
218
|
+
may still proceed, but fetched skills are never treated as installed or
|
|
219
|
+
executable. Akinator discovery and `kiokuko skills find` share the same
|
|
220
|
+
provider-backed `findSkills` operation. There is no legacy fixed-source sync or
|
|
221
|
+
guessed-source fallback; bounded exact verification of a reviewed,
|
|
222
|
+
catalog-pinned source remains.
|
|
223
|
+
|
|
224
|
+
`task_prepare` also requires a bounded opaque `requestId`. Clients create a new
|
|
225
|
+
ID for every logical user request, including a later request with identical task
|
|
226
|
+
text, and reuse an ID only for an exact transport retry. Reusing an ID with
|
|
227
|
+
changed bound intake input is `CONFLICT`; `client.sessionId` is not a turn or
|
|
228
|
+
request identity. The raw request ID is not stored.
|
|
229
|
+
The normalized context budget is part of the bound request and every
|
|
230
|
+
`task_answer` must repeat it; a changed budget conflicts before intake mutation.
|
|
231
|
+
|
|
232
|
+
The legacy ungated `guide context` path was removed. Task-aware context must use
|
|
233
|
+
`task_prepare` / `task_answer` or the generic Agent bridge so the same
|
|
234
|
+
`kiokuko-soul` hard gate applies. External Skill discovery belongs to
|
|
235
|
+
`task_prepare` or the explicit `skills find` / `skills import` commands.
|
|
236
|
+
|
|
237
|
+
Every `task_answer` request must include the exact `run.runId`, capability
|
|
238
|
+
catalog, and context budget supplied to `task_prepare`; clients must not fall
|
|
239
|
+
back to session-only run lookup or replace those bindings between answers. Inspect
|
|
240
|
+
`nextAction` and `memoryPolicy` after every `task_prepare` and `task_answer` response. Every task
|
|
241
|
+
requires the exact local `kiokuko-soul`; missing or unknown availability returns
|
|
242
|
+
`required_capability_unavailable`, even while intake needs an answer. For a ready
|
|
243
|
+
build/debug task with actionable ordinary memory, missing or unknown
|
|
244
|
+
`memory-reasoning` alone sets `memoryPolicy.contextWithheld=true`, reports
|
|
245
|
+
`memory_reasoning_missing` or `memory_reasoning_unknown` in
|
|
246
|
+
`memoryPolicy.withheldReason`, withholds that memory, and leaves `nextAction=proceed` so
|
|
247
|
+
the client can continue from repository evidence. When it is available, the
|
|
248
|
+
client must read the local `memory-reasoning` Skill before modifying code and
|
|
249
|
+
convert recalled claims that affect the task into verified premises, falsifiable
|
|
250
|
+
invariants, concrete counterexamples, and regression tests. Catalog availability
|
|
251
|
+
alone does not satisfy this execution contract.
|
|
252
|
+
`context: null` with `memoryPolicy.contextWithheld=true` is the explicit
|
|
253
|
+
withholding state and persists no delivery. A non-null empty context with a null
|
|
254
|
+
delivery ID means there was no actionable candidate; clients must not collapse
|
|
255
|
+
these states.
|
|
256
|
+
If the client cannot obtain the Kiokuko policy for a non-trivial build/debug
|
|
257
|
+
request, it must also stop and report that boundary. Repository-only
|
|
258
|
+
continuation for such a request is allowed only after the policy establishes
|
|
259
|
+
that no Kiokuko memory was delivered or used.
|
|
260
|
+
|
|
261
|
+
The latest returned `intake.question` is authoritative for every answer. If
|
|
262
|
+
`question.options` is non-null, submit exactly one returned option as `value`.
|
|
263
|
+
If `options` is null, submit grounded non-empty free text. Repeat the loop until
|
|
264
|
+
`intake.status` is `ready` or `exhausted`; `target` and `expected` require
|
|
265
|
+
grounded text and are not one-word enums.
|
|
266
|
+
|
|
267
|
+
Run-bound `memory_checkpoint` has the same intake precondition across MCP,
|
|
268
|
+
scoped memory, and the Agent Gateway: only `active` runs may be closed by a
|
|
269
|
+
successful checkpoint. If `task_prepare` or `task_answer` returns
|
|
270
|
+
`needs_answer` with `nextAction=answer_from_evidence_or_ask_user`, the client
|
|
271
|
+
must finish every required `task_answer` question before retrying. The MCP
|
|
272
|
+
tool returns `isError=true` with fixed text and structured fields
|
|
273
|
+
`code=CHECKPOINT_RUN_NOT_ACTIVE`, `reason`, `runStatus`, `nextAction`, and
|
|
274
|
+
`retryableAfterStateChange`; arbitrary internal messages and details are never
|
|
275
|
+
forwarded. A terminal run returns `reason=run_terminal` and `nextAction=stop`.
|
|
276
|
+
|
|
277
|
+
The MCP checkpoint payload is closed and has two forms. A standalone
|
|
278
|
+
checkpoint contains at least one memory and omits `runId`, `outcome`,
|
|
279
|
+
`deliveryId`, `feedback`, and `evidence`. A run-bound checkpoint requires an
|
|
280
|
+
active exact `runId`, an explicit terminal `outcome`, and at least one
|
|
281
|
+
non-empty `memories`, `feedback`, or `evidence` lane. Outcome-only, empty
|
|
282
|
+
evidence, empty feedback, and invented evidence fields such as `checks` are
|
|
283
|
+
invalid. Evidence fields are limited to `changedPaths`, `errorSignatures`,
|
|
284
|
+
`commands`, `tests`, and `verification`; feedback items are limited to
|
|
285
|
+
`entryId`, `entryRevision`, `verdict`, and `comment`.
|
|
286
|
+
|
|
287
|
+
## Scope boundary
|
|
288
|
+
|
|
289
|
+
The stdio MCP server calls Kiokuko's memory services only through
|
|
290
|
+
`task_prepare`, `task_answer`, and lifecycle tools. It never exposes the SQLite
|
|
291
|
+
file or a direct recall tool. Human/operator CLI and Web inspection remains
|
|
292
|
+
management-only. Task context is limited to the resolved current repository
|
|
293
|
+
and/or the reserved global workspace; it never searches unrelated project
|
|
294
|
+
workspaces. Writes are candidate-only, untrusted, bounded, content-hash
|
|
295
|
+
idempotent, audited, and passed through secret detection.
|
|
296
|
+
|
|
297
|
+
The generic Agent Gateway remains available for explicit execution-ledger
|
|
298
|
+
workflows and applies the same task capability gate.
|
package/docs/database.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Embedding database changes
|
|
2
|
+
|
|
3
|
+
Migration 022 rebuilds the released semantic projection tables to allow both
|
|
4
|
+
v1 OpenAI-compatible history and v2 local profiles. It adds singleton settings,
|
|
5
|
+
model installation metadata, and durable setup runs. Migration SQL performs no
|
|
6
|
+
network access, model loading, or vector generation.
|
|
7
|
+
|
|
8
|
+
Old v1 profiles, vectors, jobs, and query cache rows remain available. An old
|
|
9
|
+
active profile is represented as requiring setup while runtime mode remains
|
|
10
|
+
off. The manual down migration requires a backup and refuses to silently
|
|
11
|
+
convert a local v2 profile.
|