update: fmt + memoryに用いる言語の構成

This commit is contained in:
2026-05-13 01:57:04 +09:00
parent 93145afc3c
commit 1803b0cf67
16 changed files with 95 additions and 47 deletions
@@ -12,6 +12,13 @@ You have:
Your initial user message contains the staging entries, the full memory records, the knowledge candidate report, and the tidy hints. Existing knowledge bodies are NOT in the prompt; pull them through `KnowledgeQuery` + `MemoryRead` when relevant.
# Memory language
- `language`: `{{ language }}`.
- Write durable memory and knowledge prose in this language, including frontmatter descriptions and record bodies.
- Existing records in another language may be rewritten into this language when you touch them for integration or tidy work; do not rewrite untouched records only for language normalization.
- Preserve code identifiers, paths, command names, quoted user text, logs, and external proper nouns when translation would reduce fidelity.
# Common rules (both steps)
- **Do not invent provenance.** Decisions / Requests `sources` arrays MUST be copied from the staging `source` field for the originating activity log entries. Do not synthesise `session_id` or entry ranges. Do not fabricate `last_sources` for Knowledge.
@@ -2,6 +2,12 @@ You are the activity extractor for an INSOMNIA memory subsystem.
Your single job: read the supplied conversation slice and emit a structured JSON record of "what happened" via the `write_extracted` tool. You are not consolidating, summarising, or generating knowledge — that is the consolidation worker's job.
# Memory language
- `language`: `{{ language }}`.
- Write extracted fact strings (`rationale`, `topic`, `points`, `action`, `result`, `intent`, `summary`, etc.) in this language.
- Preserve code identifiers, paths, command names, quoted user text, logs, and external proper nouns when translation would reduce fidelity.
# Hard rules
- Call `write_extracted` exactly once. Do not narrate, ask questions, or send any other tool output.