Skip to content

Commit 07104c5

Browse files
committed
OKFS: AUDIT 2026-07-10 pt2 entry (6baa9fa3 agent-stack/fence-drift/FastMCP/ADR-012)
1 parent ef6cb18 commit 07104c5

3 files changed

Lines changed: 51 additions & 0 deletions

File tree

memory-okf/LUT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,4 @@ Lookup before you build. `python tools/okf_mem.py lookup --root <root> <kw>`
195195
| 260f49fb56fce095 | agent | b5,dplr,delta-rule,associative-memory,editable-memory,content-bearing,bge,honest-negative,redundant-vs-a1,G-DPLR-MEM | B5 DPLR editable memory REDUNDANT: on content-bearing vectors delta-rule == plain cosine (75% vs 77%), both lose to L5 ~85%; erase not lossless (perturbs neighbors) vs A1's clean supersede. PARKED. | HONEST-NEGATIVE | sum/260f49fb56fce095.md |
196196
| 1264a8623b7c6c0e | agent | audit-2026-07-10,memory persistence,cross-session,SP_NIGHTSHIFT_PERSIST,batch set no-op,registry rot,dead rows,orphan episodes,memory_doctor,SP_SPINE leak,run_console_reason,launcher fix,silent reload | Memory-not-persisting = broken launcher flags (set VAR with no =1 is a batch NO-OP; no registry; L5 off) + 13/17 registry rows pointing at deleted dirs (silently skipped, no log) + 43 orphaned episode dirs (no disk rescan). Fixed launchers + new tools/memory_doctor.py; live-verified grow->restart->recall 4/5. NEW: SP_SPINE=1 leaks persona record on foreign questions (A/B proven) - keep SPINE off in serve until gated. | GREEN | sum/1264a8623b7c6c0e.md |
197197
| dd122e50e2a82fea | agent | audit-2026-07-10,personality,PF-B4 wired,SP_PERSONALITY,gateway-only personality,daemon personality-blind,interceptor dead code,persona.md,okf conformance,sp_status normalize,slug addr defect | Personality gates 5/5 PASS. Daemon :3000 personality-blind by design (gateway :8800 only). FIXED: PF-B4 @personality pack now in all_tools() when SP_PERSONALITY=1 (was orphaned). Open: interceptor registered-but-never-invoked (spine run_post_turn does the real write-back, gated on typed not SP_PERSONALITY); PF-B5 curation rarely armed. OKFS: 50 conformance errors -> 18 (enum case normalized, address-safe); 18 legacy no-frontmatter notes + 6 slug-addr entries need owner decision. | GREEN | sum/dd122e50e2a82fea.md |
198+
| 6baa9fa3efef7b2a | agent | audit-2026-07-10-pt2,agent stack,gateway 8800,tool calling dead,fence drift,tool_code space,python fence,run_gateway_system,run_console_agent,fastmcp,mcp server,mcp bridge,SP_MCP_TOOLS,gateway autodetect,persona editor,ADR-012 committed,numeric transcription residual | Agentic abilities dead = gateway :8800 not in the path (console posts :3000; run_gateway.bat armed nothing) PLUS reason-model fence drift ('` tool_code' space / '`python' wrappers) the parser rejected. Fixed both; console now autodetects the gateway + has a persona editor; FastMCP server+bridge shipped (G-MCP-SERVER 3/3); live-verified {tool}/{recall} events + real execution. ADR-012 committed ordered (36c2da3->4d307fd). Residual: model garbles numeric tool results when paraphrasing. | GREEN | sum/6baa9fa3efef7b2a.md |
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
type: memory
3+
title: AUDIT 2026-07-10 pt2: agentic stack was gateway-wiring dead + reason-model fence drift; FastMCP layer shipped; ADR-012 committed
4+
description: Agentic abilities dead = gateway :8800 not in the path (console posts :3000; run_gateway.bat armed nothing) PLUS reason-model fence drift ('` tool_code' space / '`python' wrappers) the parser rejected. Fixed both; console now autodetects the gateway + has a persona editor; FastMCP server+bridge shipped (G-MCP-SERVER 3/3); live-verified {tool}/{recall} events + real execution. ADR-012 committed ordered (36c2da3->4d307fd). Residual: model garbles numeric tool results when paraphrasing.
5+
timestamp: 2026-07-10T03:09:53Z
6+
resource: harness 97489b4; engine 4d307fd; math-core 36c2da3; lattice ef6cb18
7+
sp_status: GREEN
8+
sp_gate: G-MCP-SERVER 3/3 + live gateway probe (tool event + execution) + toolrobust/spine/smoke suites held
9+
sp_commit: harness 97489b4; engine 4d307fd; math-core 36c2da3; lattice ef6cb18
10+
sp_repro: run_console_agent.bat; python tests/h_mcp_server.py; gateway_probe.py
11+
mem_kind: agent
12+
mem_addr: 6baa9fa3efef7b2a
13+
mem_verified: unverified
14+
mem_lifecycle: active
15+
tags: [audit-2026-07-10-pt2, agent stack, gateway 8800, tool calling dead, fence drift, tool_code space, python fence, run_gateway_system, run_console_agent, fastmcp, mcp server, mcp bridge, SP_MCP_TOOLS, gateway autodetect, persona editor, ADR-012 committed, numeric transcription residual, agent, tier-2]
16+
mem_tier: full
17+
---
18+
19+
AUDIT 2026-07-10 part 2 (agent stack / UI / MCP / ADR-012): user-reported "ephemeral tool calling, spine, python calls, coding, agentic abilities do not work at all; tool cards + persona editing gone".
20+
ROOT CAUSE 1 (wiring, not code): the ENTIRE agentic stack lives in the harness gateway :8800; the console posts to :3000 unless localStorage sp_chat_endpoint is set, and no launcher started an ARMED gateway (run_gateway.bat arms nothing + points memory at stale _seed_corpus). Daemon /v1/chat streams raw model text -> tool_code fences visible ("fabricated tool calls"), no {tool}/{persona} events, operator.html persona editor dead against a missing :8800.
21+
ROOT CAUSE 2 (real parser gap, found live): the reason-SFT model drifts fences - '``` tool_code' (space) and '```python' around tool calls; old detector ("```tool" in s) + strict regex missed both -> fence streamed raw EVEN through the gateway. FIX (harness 97489b4): space-tolerant _TOOLCODE_RE; _ANYFENCE_RE accepts python/py/tool fences ONLY when parsed call names are known tools (code-example answers pass through); agent_chat_stream treats any fence-leading generation as a tool candidate resolved by the parser; malformed-recovery matches the space variant. Parser gate 5/5, G-PK2-TOOLROBUST 10/10 held.
22+
SHIPPED: run_gateway_system.bat (armed: SP_SPINE_TOOLSET+SP_SPINE_RECALL+SP_PERSONALITY+SP_MCP_TOOLS, production registry); run_console_agent.bat (one-shot daemon+gateway); console gateway-AUTODETECT (probes :8800/health, agent/direct pill, manual override wins) + persona panel with live chips + persona.md editor modal (GET/POST /v1/persona) + {recall}/{toolset}/{authority} note cards.
23+
FASTMCP LAYER (harness/mcp_server, MCP-README.md, gate h_mcp_server.py G-MCP-SERVER 3/3): FastMCP server exposes system tools (fs/shell/powershell/run_python/web_search/web_fetch/get_time/memory + custom_tools.py auto-registered) to any MCP client; bridge.py mounts mcp_servers.json servers' tools into run_with_tools via SP_MCP_TOOLS=1 (native names win; extras land in the load-on-demand tier so the <=6-tool rule holds). New native tools get_time/web_fetch. fastmcp 3.4.4 installed host-side.
24+
LIVE VERIFIED through the armed gateway on the reason model: Q1 get_time -> {tool} typed event (the UI card) + tool-derived answer; Q2 '```python run_python(...)' fence-drift case -> parsed, EXECUTED, {recall}+{tool} events; persona GET/POST green.
25+
HONEST RESIDUALS: (1) the reason model GARBLES numeric tool results when paraphrasing (said 3334 for a tool-printed 3304; reformatted+wrong time) at temp 0.6/rep 1.3 - plumbing green, transcription fidelity is a model-quality issue (candidate fixes: verbatim-echo rule tightening, temp drop on post-tool round); (2) agent turns are slow (~2-5 min: ~1.5k-token tool preamble re-prefilled every round; O(1)-convo-KV is the real fix); (3) SP_AGENCY_TASKS scheduler not started by any launcher; (4) sp-daemon.exe predates commit 837fb5f while containing then-uncommitted ADR-012 code - rebuild at next restart (delete exe first, .cu-only changes do not relink).
26+
ADR-012 DISPOSITION = COMMITTED (not removed): code complete, default-off SP_G4_CPU_TAIL_FULL with provable byte-identical null floor, honest-negative on speed, real VRAM lever; ordered commit math-core 36c2da3 -> engine 4d307fd (submodule-first, clears -dirty pointer).

memory-okf/sum/6baa9fa3efef7b2a.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: AUDIT 2026-07-10 pt2: agentic stack was gateway-wiring dead + reason-model fence drift; FastMCP layer shipped; ADR-012 committed
4+
description: Agentic abilities dead = gateway :8800 not in the path (console posts :3000; run_gateway.bat armed nothing) PLUS reason-model fence drift ('` tool_code' space / '`python' wrappers) the parser rejected. Fixed both; console now autodetects the gateway + has a persona editor; FastMCP server+bridge shipped (G-MCP-SERVER 3/3); live-verified {tool}/{recall} events + real execution. ADR-012 committed ordered (36c2da3->4d307fd). Residual: model garbles numeric tool results when paraphrasing.
5+
timestamp: 2026-07-10T03:09:53Z
6+
resource: harness 97489b4; engine 4d307fd; math-core 36c2da3; lattice ef6cb18
7+
sp_status: GREEN
8+
sp_gate: G-MCP-SERVER 3/3 + live gateway probe (tool event + execution) + toolrobust/spine/smoke suites held
9+
sp_commit: harness 97489b4; engine 4d307fd; math-core 36c2da3; lattice ef6cb18
10+
sp_repro: run_console_agent.bat; python tests/h_mcp_server.py; gateway_probe.py
11+
mem_kind: agent
12+
mem_addr: 6baa9fa3efef7b2a
13+
mem_verified: unverified
14+
mem_lifecycle: active
15+
tags: [audit-2026-07-10-pt2, agent stack, gateway 8800, tool calling dead, fence drift, tool_code space, python fence, run_gateway_system, run_console_agent, fastmcp, mcp server, mcp bridge, SP_MCP_TOOLS, gateway autodetect, persona editor, ADR-012 committed, numeric transcription residual, agent, tier-1]
16+
mem_tier: summary
17+
mem_full: 6baa9fa3efef7b2a
18+
---
19+
20+
# AUDIT 2026-07-10 pt2: agentic stack was gateway-wiring dead + reason-model fence drift; FastMCP layer shipped; ADR-012 committed
21+
22+
Agentic abilities dead = gateway :8800 not in the path (console posts :3000; run_gateway.bat armed nothing) PLUS reason-model fence drift ('` tool_code' space / '`python' wrappers) the parser rejected. Fixed both; console now autodetects the gateway + has a persona editor; FastMCP server+bridge shipped (G-MCP-SERVER 3/3); live-verified {tool}/{recall} events + real execution. ADR-012 committed ordered (36c2da3->4d307fd). Residual: model garbles numeric tool results when paraphrasing.
23+
24+
Full context: [full/6baa9fa3efef7b2a.md](../full/6baa9fa3efef7b2a.md)

0 commit comments

Comments
 (0)