Skip to content

Commit 99ab42b

Browse files
committed
OKFS: live-play 4 - system-prompt stability law
1 parent 39eae82 commit 99ab42b

3 files changed

Lines changed: 44 additions & 0 deletions

File tree

memory-okf/LUT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,4 @@ Lookup before you build. `python tools/okf_mem.py lookup --root <root> <kw>`
201201
| 3e76c3d6ca77f84f | agent | hindsight latency,console slow,auto_recall passthrough,SP_GATEWAY_AUTHORITY spine,session transcript,session_id,persist strict extension,prewarm at boot,4.9s greet,8.1s tool turn,numeric fidelity confirmed | 3 compounding causes: daemon-L5 authority cleared the persist cache every recalled turn (fix SP_GATEWAY_AUTHORITY=spine); stateless gateway diverged from the committed cache (fix session_id canonical transcript, mutate_messages); cold preamble on first msg (fix prewarm=true at boot). Measured console path: greet 4.9s, follow-up 5.8s, tool 8.1s (get_time copied exactly). PERSIST-KV reuse 1511/1530 suffix 1. | GREEN | sum/3e76c3d6ca77f84f.md |
202202
| c88997050745eb52 | agent | live-play round2,memory pollution,tool_output captured,admission hygiene,fence mutations,unclosed fence,prose-then-fence,autoroute run_python,fuzzy tool resolve,spine recall qonly,tool discipline residual,hallucinated weather | B4 captured tool_output/greetings as memories (fix: admission hygiene engine 6e02043 + registry cleaned 31->7 + spine recall QONLY). Fence-mutation census all parsed (kairos d95faad): case/unclosed/mashup/name-split/prose-then-fence + python-block autoroute via sandboxed run_python + fuzzy name resolve. Replays: greet 1.3-2.9s, get_time correct 16.9s, name 4.9s. RESIDUAL G-TOOL-DISCIPLINE: reason-SFT model freestyles format + sometimes answers without calling (hallucinated weather) - needs tool-use SFT or temp clamp. | GREEN | sum/c88997050745eb52.md |
203203
| c2b4f1e275bd420a | agent | live-play round3,Tool-Code hyphen,stream malformed recovery,persona internal dials,neutral recite fix,registry round3 clean,butterfly memories kept | Tool-Code hyphen parsed; stream re-prompts on malformed fences (never flushes raw); personality rendered as internal dials (no more literal 'Neutral.'); junk pruned, genuine conversational memories kept. Gates hold. | GREEN | sum/c2b4f1e275bd420a.md |
204+
| c8b97c157c1d9c9e | agent | live-play 4,toolset swap aborted,system prompt stability law,spine_toolset off,coding tools index,token 0 divergence,one stable system prompt | SP_SPINE_TOOLSET per-turn swap rewrote the system prompt -> persist cache diverged at token 0 -> whole-conversation re-prefill on any 'build/code' mention. Profile: spine_toolset=false; coding tools now in the all_tools load-on-demand index (deduped). Adaptive things go in the message stream or tool index, never the system prefix. | GREEN | sum/c8b97c157c1d9c9e.md |
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
type: memory
3+
title: LAW: one stable system prompt per session - the toolset swap diverged the cache at token 0
4+
description: SP_SPINE_TOOLSET per-turn swap rewrote the system prompt -> persist cache diverged at token 0 -> whole-conversation re-prefill on any 'build/code' mention. Profile: spine_toolset=false; coding tools now in the all_tools load-on-demand index (deduped). Adaptive things go in the message stream or tool index, never the system prefix.
5+
timestamp: 2026-07-10T06:30:53Z
6+
resource: kairos af83f13; harness 9e4dbfa
7+
sp_status: GREEN
8+
sp_gate: toolrobust 10/10; 28 tools no dups; live serve restarted
9+
sp_commit: kairos af83f13; harness 9e4dbfa
10+
sp_repro: serve.bat agent; say 'help me build something' - no stall
11+
mem_kind: agent
12+
mem_addr: c8b97c157c1d9c9e
13+
mem_verified: unverified
14+
mem_lifecycle: active
15+
tags: [live-play 4, toolset swap aborted, system prompt stability law, spine_toolset off, coding tools index, token 0 divergence, one stable system prompt, agent, tier-2]
16+
mem_tier: full
17+
---
18+
19+
Live-play 4: the '[aborted]' turns returned whenever a message mentioned building/code - the SP_SPINE_TOOLSET per-turn swap REWRITES THE SYSTEM PROMPT (coding tier -> different build_tool_system content) which diverges the persist-KV committed cache at TOKEN 0 -> full conversation re-prefill. LAW (kairos charter addendum): ONE STABLE SYSTEM PROMPT PER SESSION - anything adaptive belongs in the message stream (append-only) or the load-on-demand tool index, NEVER in the system prefix. FIX: spine_toolset=false in the agent profile; CODING_TOOLS joined all_tools' index tier (deduped, name-first-wins) so edit_file/run_tests/git_status/search/run_command stay reachable via load_tools. 28 tools, no dups, toolrobust 10/10. Also noted: abort doesn't cancel daemon generation (turns queue behind it) - gateway chat_id passthrough + abort proxy = P2 backlog item.

memory-okf/sum/c8b97c157c1d9c9e.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
type: memory
3+
title: LAW: one stable system prompt per session - the toolset swap diverged the cache at token 0
4+
description: SP_SPINE_TOOLSET per-turn swap rewrote the system prompt -> persist cache diverged at token 0 -> whole-conversation re-prefill on any 'build/code' mention. Profile: spine_toolset=false; coding tools now in the all_tools load-on-demand index (deduped). Adaptive things go in the message stream or tool index, never the system prefix.
5+
timestamp: 2026-07-10T06:30:53Z
6+
resource: kairos af83f13; harness 9e4dbfa
7+
sp_status: GREEN
8+
sp_gate: toolrobust 10/10; 28 tools no dups; live serve restarted
9+
sp_commit: kairos af83f13; harness 9e4dbfa
10+
sp_repro: serve.bat agent; say 'help me build something' - no stall
11+
mem_kind: agent
12+
mem_addr: c8b97c157c1d9c9e
13+
mem_verified: unverified
14+
mem_lifecycle: active
15+
tags: [live-play 4, toolset swap aborted, system prompt stability law, spine_toolset off, coding tools index, token 0 divergence, one stable system prompt, agent, tier-1]
16+
mem_tier: summary
17+
mem_full: c8b97c157c1d9c9e
18+
---
19+
20+
# LAW: one stable system prompt per session - the toolset swap diverged the cache at token 0
21+
22+
SP_SPINE_TOOLSET per-turn swap rewrote the system prompt -> persist cache diverged at token 0 -> whole-conversation re-prefill on any 'build/code' mention. Profile: spine_toolset=false; coding tools now in the all_tools load-on-demand index (deduped). Adaptive things go in the message stream or tool index, never the system prefix.
23+
24+
Full context: [full/c8b97c157c1d9c9e.md](../full/c8b97c157c1d9c9e.md)

0 commit comments

Comments
 (0)