@0perator/operator 0.1.172 → 0.1.235
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/CHANGELOG.md +858 -0
- package/README.md +4 -4
- package/dist/acp/agent.js +42 -3
- package/dist/acp/config-options.js +34 -0
- package/dist/acp/run.js +83 -2
- package/dist/auth/byo.js +118 -0
- package/dist/auth/commands.js +34 -1
- package/dist/autonomy/dream.js +1 -1
- package/dist/autonomy/index.js +16 -2
- package/dist/autonomy/media-robot.js +138 -0
- package/dist/autonomy/profile.js +77 -0
- package/dist/autonomy/session-factory.js +13 -9
- package/dist/background/index.js +8 -1
- package/dist/cli.js +132 -95
- package/dist/compose/client.js +56 -0
- package/dist/config/persona.js +186 -14
- package/dist/config/settings.js +49 -16
- package/dist/consolidation/scheduler.js +7 -4
- package/dist/consolidation/sleep.js +15 -1
- package/dist/engine/agent.js +152 -9
- package/dist/engine/aurora.js +73 -14
- package/dist/engine/compaction.js +129 -2
- package/dist/engine/computer-event.js +139 -0
- package/dist/engine/continuation.js +55 -0
- package/dist/engine/contract.js +3 -1
- package/dist/engine/grandmaster.js +13 -3
- package/dist/engine/messages.js +2 -2
- package/dist/engine/redact.js +25 -0
- package/dist/engine/rolling-summary.js +22 -7
- package/dist/engine/router-adapter.js +2 -0
- package/dist/engine/unrestricted.js +51 -0
- package/dist/engine/verify-gate.js +6 -0
- package/dist/index.browser.js +4 -0
- package/dist/index.js +4 -0
- package/dist/memory/index.js +0 -0
- package/dist/permissions/audit.js +4 -1
- package/dist/permissions/policy.js +4 -3
- package/dist/permissions/tier.js +31 -14
- package/dist/remote/host.js +9 -2
- package/dist/router/models.js +43 -2
- package/dist/session.js +113 -36
- package/dist/telemetry/events.js +8 -3
- package/dist/tools/computer.js +1 -1
- package/dist/tools/executor.js +22 -17
- package/dist/tools/mutating.js +6 -0
- package/dist/tools/registry.js +872 -27
- package/dist/tools/shell-session.js +36 -1
- package/dist/tools/tool-output-spill.js +2 -2
- package/dist/ui/ActivitySpinner.js +17 -6
- package/dist/ui/App.js +36 -14
- package/dist/ui/ArtifactPicker.js +109 -0
- package/dist/ui/BusTray.js +70 -0
- package/dist/ui/Composer.js +39 -8
- package/dist/ui/Markdown.js +5 -3
- package/dist/ui/MouseProvider.js +99 -19
- package/dist/ui/QuestionPrompt.js +24 -3
- package/dist/ui/ThinkingSpinner.js +9 -5
- package/dist/ui/ToolStep.js +17 -12
- package/dist/ui/Transcript.js +14 -7
- package/dist/ui/capabilities.js +0 -9
- package/dist/ui/listhit.js +23 -0
- package/dist/ui/mouse.js +22 -0
- package/dist/ui/osc.js +7 -4
- package/dist/ui/progressbar.js +46 -0
- package/dist/ui/shimmer.js +43 -0
- package/dist/ui/theme.js +2 -0
- package/dist/ui/tick.js +48 -0
- package/dist/ui/toolicons.js +69 -0
- package/dist/util/slash.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,864 @@ Operator is AXE's terminal coding agent (npm `@0perator/operator`), running on A
|
|
|
4
4
|
Newest first. Every release bumps `src/cli.tsx` VERSION + `package.json`, adds an entry here, and ships to
|
|
5
5
|
npm + both git remotes (memjar/kode, axetechnologies/kode). Test counts are the full suite at that release.
|
|
6
6
|
|
|
7
|
+
## 0.1.235 — 2026-10-07 — rename the local-tier model to a clean codename (qwen3-4b → scout)
|
|
8
|
+
Better `/model` names for the local tier (fleet voice: Ghost, Aurora). `qwen3-4b` → **Scout** (id + label);
|
|
9
|
+
the registry `model` field still points at the real file path, so it's a presentation-layer rename — no
|
|
10
|
+
retraining, no path change, reversible. The novel-model candidates benched next get codenames too (Rogue =
|
|
11
|
+
abliterated nano, Blade = Sonnet-distill, Flash = Opus-distill, Cipher = stock thinking) and are wired into
|
|
12
|
+
the picker only if they win the bench. id-enumeration tests updated.
|
|
13
|
+
|
|
14
|
+
## 0.1.234 — 2026-10-07 — Qwen3-4B wired as the fast local tier (/model qwen3-4b)
|
|
15
|
+
Operator's picker had only mid/large models; added a small fast LOCAL tier. Picked from a fleet-wide 3B-class
|
|
16
|
+
review whose honest headline is: NO 3B model had ever been execution-graded (the coding/tool-use harnesses only
|
|
17
|
+
ran on 32B+), so this is the evidence-led default pending a dyno bench.
|
|
18
|
+
- New BUILTIN_MODELS entry `qwen3-4b` (Qwen3-4B stock `qwen3-4b-mlx-q4`, 2.26GB MLX, Qwen3 vocab 151936 =
|
|
19
|
+
ghost-matched). Served on JL1:8110 via `mlx_lm.server` under launchd `com.axe.qwen3-4b-serve` (KeepAlive).
|
|
20
|
+
- ctx 32000 (deliberately < LEAN_HARNESS_CTX) so a small model gets the LEAN harness. Measured: lean request
|
|
21
|
+
~11.7k tok (sys 5.8k + tools 5.9k) vs operator-1m full ~13.7k — fits with room.
|
|
22
|
+
- Why Qwen3-4B: tops the only like-for-like 3B head-to-head (May Armada), shares ghost's exact vocab (so it's
|
|
23
|
+
the quick tier AND the spec-decode vocab lineage). phi4-mini is the only other evidenced small model but is
|
|
24
|
+
phi-vocab (never a draft). Not wired: replit (build never happened, 4096 ctx), starcoder2 (no chat template),
|
|
25
|
+
parser/imi-3b (narrow IMI).
|
|
26
|
+
- Findings (measured): a heavy-MCP env ballooned the prompt to 46k and overran the 4B — MCP must stay off for
|
|
27
|
+
the small tier (the deferred-tool-catalog case); and with ghost on JL1's GPU, qwen3-4b cold-prefill is slow
|
|
28
|
+
(~186 tok/s, ~63s for 11.7k) though warm turns are 0.46s — a fast cold tier wants GPU headroom.
|
|
29
|
+
- id-enumeration tests updated (BUILTIN_MODELS 6→7). Full suite 1053/1053. Decision:
|
|
30
|
+
_ai-docs/decisions/2026-10-07-qwen3-4b-local-tier.md. Next: dyno/coding-eval the review's shortlist, promote
|
|
31
|
+
the winner.
|
|
32
|
+
|
|
33
|
+
## 0.1.233 — 2026-10-07 — voice in the CLI: voice_speak + voice_transcribe (Hermes-parity gap #3)
|
|
34
|
+
operator-voice (:8099 — Kokoro TTS + whisper.cpp STT) already served iOS/web, but the engine registry had
|
|
35
|
+
zero tts/stt tools, so the Ink/headless agent could neither speak nor hear. Added two native tools, inline in
|
|
36
|
+
registry.ts alongside the media-broker tools (env-configurable base KODE_VOICE_URL, /health-gated, graceful
|
|
37
|
+
when down) — always-registered, so they're in renderToolCatalogue + the mobile schemas too:
|
|
38
|
+
- `voice_speak` (safe:false): POST /synthesize {text, voice} → WAV bytes → save + (default) play locally via
|
|
39
|
+
afplay on macOS. play:false = synthesize + save only (for a surface to play); headless/remote saves without
|
|
40
|
+
playing. Default voice bf_emma (the Operator/Cortana voice). Use it to actually SAY something to the owner.
|
|
41
|
+
- `voice_transcribe` (safe:true): multipart POST /transcribe of any ffmpeg-readable audio → {text}.
|
|
42
|
+
- Reuses the media base-URL/health/auth helpers; AGENTS.md gains a Voice capability line.
|
|
43
|
+
- Tests: test/voice-tools.test.mts (6, mocked fetch — live :8099 never touched). Full suite 1053/1053.
|
|
44
|
+
- LIVE-VERIFIED (real :8099): round-tripped voice_speak("Operator voice test. One two three.", play:false) →
|
|
45
|
+
WAV → voice_transcribe → "Operator voice test 123." — real TTS→STT works end-to-end.
|
|
46
|
+
- Highest proof-per-effort of the 7 Hermes-parity gaps (backend already existed). TUI push-to-talk affordance
|
|
47
|
+
is the surfaces lane (flagged for jl1-apps).
|
|
48
|
+
|
|
49
|
+
## 0.1.232 — 2026-10-07 — fix: persona named two computer tools that don't exist
|
|
50
|
+
The "Controlling this computer" persona section told the model to drive apps with `computer_app_open` /
|
|
51
|
+
`computer_app_activate`, but the registry tools are `app_open` / `app_activate` (src/tools/computer.ts) — so
|
|
52
|
+
those calls would fail as unknown tools. Corrected the prose to the real names (the other four in that line —
|
|
53
|
+
computer_type/key/click/screenshot — were already right). The drift-proof path (renderToolCatalogue, 0.1.223)
|
|
54
|
+
already renders real registry names; this was a hand-written secondary mention that drifted. Found by the
|
|
55
|
+
skills-hub authoring pass. Full suite unaffected.
|
|
56
|
+
|
|
57
|
+
## 0.1.231 — 2026-10-07 — profile-bound bot sessions (the Bot Mode engine seam, Hermes-parity gap #1)
|
|
58
|
+
The engine seam the messaging gateway + platform-adapter bots (the SURFACES lane) build against. A bot is NOT
|
|
59
|
+
a new engine mode — it's a long-lived headless Session (already a Worker: send/interrupt/shutdown) whose
|
|
60
|
+
settings are DERIVED per $KODE_PROFILE. New `src/autonomy/profile.ts` composes the existing
|
|
61
|
+
createAutonomySession factory (engine loop untouched):
|
|
62
|
+
- `ProfileConfig {id, model?, modelBase?, persona?, permissions?, recall?, cwd?, home?}` →
|
|
63
|
+
`createProfileSession(baseSettings, profile)` → a driveable Session. Gateway constructs ONE per bot, drives
|
|
64
|
+
it with `session.send(inboundMessage, handlers)` per chat turn (streams the reply via onDelta), so the bot
|
|
65
|
+
remembers the conversation across turns.
|
|
66
|
+
- `deriveProfileSettings` swaps the served model (endpoints.aurora.model, same as KODE_MODEL), activeModel,
|
|
67
|
+
endpoint (cloud bot), persona (systemPrompt) — base never mutated. `deriveProfilePaths` ISOLATES each bot's
|
|
68
|
+
memory + rolling summary under ~/.axe/operator/profiles/<id>/ so no bot ever touches the owner's live recall
|
|
69
|
+
(the default files are live product state — the one prior poisoning incident was exactly this).
|
|
70
|
+
- Safety: default permission posture is GATED + approver-less (safe/read tools run, mutations fail-safe deny),
|
|
71
|
+
so a public bot taking untrusted chat can't rm -rf; widen only with an explicit per-profile policy.
|
|
72
|
+
- Optional live "bot is working" feed via onComputerEvent/computerEnv through opts.extra (the 1.5.0 stream).
|
|
73
|
+
- Tests: `test/profile.test.mts` (7) — path isolation, model/endpoint/persona swap with base-immutability,
|
|
74
|
+
inherit-when-omitted, independent Worker per profile, onComputerEvent feed wires through. Full suite 1047/1047.
|
|
75
|
+
- Spec for the gateway lane: _ai-docs/decisions/2026-10-07-profile-bound-bot-sessions.md (contract + safety +
|
|
76
|
+
the skills/routines/persistence follow-ups). Engine contract unchanged (new module, no AgentOpts change).
|
|
77
|
+
|
|
78
|
+
## 0.1.230 — 2026-10-07 — runTurn emits ComputerEvents (engine contract 1.5.0) — unblocks the mobile Computer surface
|
|
79
|
+
Follows 0.1.229's stream primitives. The 1.4.0 "2-line host wiring" (construct a ComputerEventStream + feed
|
|
80
|
+
it via ComputerEventTracker) is for a TS host that HOLDS the stream — desktop Electron runs the real engine.
|
|
81
|
+
Mobile does NOT: it runs a prebuilt lean browser bundle in JSCore and Swift only sees bridge callbacks, so it
|
|
82
|
+
can't wire a tracker. FIX: an opt-in first-class callback so the engine itself produces the feed.
|
|
83
|
+
- New `AgentOpts.onComputerEvent?(e: ComputerEvent)` + `AgentOpts.computerEnv?` — when set, `runTurn` emits one
|
|
84
|
+
typed ComputerEvent per tool call (start before it runs, end when it resolves), normalized into the
|
|
85
|
+
{env, tool, action, title, payload} taxonomy with a monotonic seq. A prebuilt host forwards it across its
|
|
86
|
+
bridge with no tracker wiring; a TS host that wants replay/retention can still hold its own stream instead.
|
|
87
|
+
- Internals: the callbacks are composed at the runTurn level (a stream + tracker + subscribe(0, cb)), reusing
|
|
88
|
+
the 1.4.0 primitives — `runToolCalls` is UNTOUCHED, and the feed is OFF unless onComputerEvent is set, so
|
|
89
|
+
existing hosts see zero behavioural change. `env` stays a host fact (default "sandbox").
|
|
90
|
+
- Tests: `test/computer-event-emit.test.mts` (3) — start+end in seq order stamped with computerEnv + the typed
|
|
91
|
+
edit args (old_string/new_string/file_path) the diff tabs need; feed OFF by default = no behavioural change;
|
|
92
|
+
original onToolStart/onToolResult still fire alongside. Full suite **1040/1040**. Contract 1.4.0 → **1.5.0**.
|
|
93
|
+
- Pairs with: a rebuilt `kode-mobile/Resources/engine.bundle.js` (the lean browser build) carrying this surface,
|
|
94
|
+
handed to the mobile lane so OperatorComputerSheet consumes the typed stream (James's top priority: watch live).
|
|
95
|
+
|
|
96
|
+
## 0.1.229 — 2026-10-07 — 0perator Computer event stream (typed, retained, replayable action log) — engine contract 1.4.0
|
|
97
|
+
Ships the CONTRACT that 0perator Computer Phase 2 ("truly watch the agent work") is built on. The existing
|
|
98
|
+
host callbacks (`onToolStart`/`onToolResult`/`onToolBatch`) are ephemeral UI hints scoped to one attached
|
|
99
|
+
renderer — a watcher that connects late has already missed everything. New engine surface
|
|
100
|
+
(`src/engine/computer-event.ts`), exported from BOTH barrels incl. the shared browser bundle where the
|
|
101
|
+
Computer surface renders in kode-web/kode-mobile:
|
|
102
|
+
- `ComputerEvent {seq, ts, env, tool, action, title, payload}` — `env` ∈ sandbox|cloud|mine|browser (WHERE),
|
|
103
|
+
`tool` ∈ terminal|editor|browser|file (WHAT surface). `seq` is monotonic — the resume key.
|
|
104
|
+
- `ComputerEventStream` — a bounded ring buffer (default cap 1000). `subscribe(afterSeq, fn)` **replays every
|
|
105
|
+
retained event past afterSeq, then follows live** in one call; a reconnect past the retention window
|
|
106
|
+
surfaces as an explicit seq gap (first replayed seq > have+1), never a silent hole. `snapshot()` +`head`.
|
|
107
|
+
- `ComputerEventTracker` — correlates the two engine callbacks into paired start/end events (`onToolResult`
|
|
108
|
+
carries only id+result, so it remembers each batch's pending calls by id). Host wires it in two lines.
|
|
109
|
+
- Design principle: `env` is a HOST fact stamped by the host, so **`agent.ts`'s turn loop is untouched** —
|
|
110
|
+
zero regression risk to the releases shipped this window. Additive → contract 1.3.0 → **1.4.0** (MAJOR
|
|
111
|
+
unchanged, so conformance fixtures pass).
|
|
112
|
+
- Next slice (follow-up, for review): host wiring in cli.tsx + the JL2/cloud relay path with a `resume=<seq>`
|
|
113
|
+
socket handshake; browser-MCP tools pushing fully-formed `browser` events; persistence to the handoff
|
|
114
|
+
store; admin "view live session by id" gated at the relay by the account/authz pass.
|
|
115
|
+
- Tests: `test/computer-event.test.mts` (12) — seq/ts, ring-buffer eviction, replay-then-follow, gap
|
|
116
|
+
signalling, subscriber isolation, name→lane normalizer, tracker correlation. Full suite **1037/1037**.
|
|
117
|
+
|
|
118
|
+
## 0.1.228 — 2026-10-07 — turn-continuation (keep going on real work, stop on circles) + curated-only skill list + richer reasoning + tool-row shimmer + Operator branding boundary
|
|
119
|
+
(0.1.227 is reserved by the parallel `dyno-build` branch; this bundle takes 0.1.228 to avoid the clash.)
|
|
120
|
+
- TURN-CONTINUATION — ROOT CAUSE: a turn continued only while the model returned tool calls, so a TEXT-ONLY reply
|
|
121
|
+
ending on an unperformed announcement ("Let me implement these now.", "Now I'll run the tests.") finalized the turn
|
|
122
|
+
with the work undone. FIX: `engine/continuation.ts` `detectUnfinishedAction()` reads the tail of a text-only
|
|
123
|
+
response; on a first-person announcement of a tool-shaped action (and NOT a question, hand-back, deferral,
|
|
124
|
+
contingency or summary) the loop injects ONE user-role nudge and continues. Capped at 2 per turn. Off in plan mode,
|
|
125
|
+
with no tools, on a truncated reply, `turnContinuation.enabled=false`, or `KODE_TURN_CONTINUATION=0`.
|
|
126
|
+
- THE PAIRED STALL GUARD: (1) identical-call counts now reset only when a mutating call LANDED (`mutationLanded`) —
|
|
127
|
+
a failing `file_edit` ("error: old_string not found") used to clear them, letting a model alternate a failing edit
|
|
128
|
+
with the same poisoned call forever (fixed in both `runToolCalls` and `Executor.execute`); (2) NEW converge-or-stop:
|
|
129
|
+
25 consecutive tool rounds with no new narration and no landed edit stop the turn with an honest
|
|
130
|
+
`[stopped — not converging: …]` (poll-only rounds neither count nor reset). Catches the model that varies its args
|
|
131
|
+
every round, never answers, never edits.
|
|
132
|
+
- SKILLS-TRIM: `skill_list` with no query returns OUR curated skills only (community `community__`/`:` slugs dropped,
|
|
133
|
+
with a count and a pointer); a search query still includes community; `skill_fetch` takes any slug. Ends the 200+
|
|
134
|
+
ClawHub dump in the default list.
|
|
135
|
+
- RICHER REASONING: `/think` now carries a directive asking the model to write its thinking as readable copy
|
|
136
|
+
(options weighed, why one won, tradeoffs, the plan), ~2-3× the detail, no ultrathink needed. ROOT CAUSE found
|
|
137
|
+
alongside: 0.1.219 defaulted `ui.reasoning` to "think" but only the UI badge; the `Session` still started "off" (no
|
|
138
|
+
native thinking, no directive) until `/think` was toggled. `SessionConfig.thinkMode` now seeds the foreground
|
|
139
|
+
session from the same setting (`settings.ui.reasoning:"off"` is the speed switch). Persistence verified: a settled
|
|
140
|
+
entry keeps its reasoning (dim, above the answer) in both transcripts; pinned by a render test.
|
|
141
|
+
- TOOL SHIMMER: a RUNNING tool row's name shimmers in its kind's hue (`huePalette`, ~55% rest → hue-toward-white
|
|
142
|
+
peak) on the shared tick; it stops when the tool settles. No new timer.
|
|
143
|
+
- BRANDING BOUNDARY: `kode` is internal; `Operator` / `0perator` is the only external name. Every string a USER
|
|
144
|
+
reads that named the internal product or a `KODE_*` env var now says Operator or points at a setting. New
|
|
145
|
+
`/mcp on|off` (live for the session via `Session.enableMcp`, persisted as `settings.mcp`) replaces the "set
|
|
146
|
+
`KODE_TSI_MCP=1`" instruction in HELP, the `/mcp` status line, the persona and the tool catalogue. Also reworded:
|
|
147
|
+
the non-TTY error, the engine's system-message invariant errors, the token-budget pause note, the dream/computer/
|
|
148
|
+
sleep-consolidation "how to enable" hints (now settings keys), and the image/video/vision/compose/Jina/web_search tool
|
|
149
|
+
errors (no env-var names). The npm description, README title/intro and install.sh header say Operator; the `kode-tsi`
|
|
150
|
+
bin alias still exists but is not advertised. NOT renamed: the `KODE_*` env vars, package/repo internals, the
|
|
151
|
+
gateway-facing User-Agent strings (functional, not user-read). `test/branding-boundary.test.mts` (5) guards it: the
|
|
152
|
+
rendered persona/catalogue/tool schemas are kode-free and no prose string literal in `src/` names `KODE_*` or `kode`.
|
|
153
|
+
- AMENDED TEST: `agent-progress-cap` "very long progressing task" scripted 250 silent varied-arg rounds, which is
|
|
154
|
+
precisely what converge-or-stop stops; its script now narrates every 10th round (intent unchanged). Logged in the
|
|
155
|
+
decision doc.
|
|
156
|
+
- 1025/1025 tests, 136 files (999 at 0.1.226 + 26 new: `turn-continuation` 11, `skills-trim` 3, `think-directive` 4,
|
|
157
|
+
`branding-boundary` 5, `shimmer` +2, `loop-guard-mutation-reset` +1). `turn-continuation` fails 6/11 and the loop-guard test 1/4 on the 0.1.226
|
|
158
|
+
source. Decision: `_ai-docs/decisions/2026-10-07-ux-bundle-autonomy-reasoning.md`.
|
|
159
|
+
|
|
160
|
+
## 0.1.226 — 2026-10-06 — permissions parity: the safe-tool allowlist is derived from the registry, so gated/plan/dream/manual stop denying registry-safe read tools (search, read_files, git_status, web_search, …); readonly still excludes every mutating tool
|
|
161
|
+
- ROOT CAUSE: `DEFAULT_SAFE` (`permissions/policy.ts`) was a hand-copied 5-item list (`file_read`, `grep_search`,
|
|
162
|
+
`list_directory`, `memory_search`, `web_fetch`) that had drifted from the registry. 12 tools the registry marks
|
|
163
|
+
`safe: true` (`search`, `read_files`, `git_status`, `web_search`, `task_list`, `bash_output`, `scratchpad`,
|
|
164
|
+
`session_handoff`, `image_analyze`, `video_analyze`, `skill_list`, `skill_fetch`) got `ask` in gated mode, which
|
|
165
|
+
is a denial wherever there is no approver: plan mode could not read git state (`git_status` denied,
|
|
166
|
+
`git_command` is mutating) or use `search` / `read_files` / `web_search`; `operator dream` hit the same; manual
|
|
167
|
+
mode prompted on every `search`. `tier.ts` (`ENTERPRISE_ALLOW`, `READONLY_ALLOW`) omitted the same tools, plus
|
|
168
|
+
`session_handoff` and `task_clear`, so enterprise seats were told to call `session_handoff` and then denied.
|
|
169
|
+
- FIX: `registrySafeTools()` (names of registry entries with `safe === true`) now feeds `DEFAULT_SAFE` and both
|
|
170
|
+
tier allowlists. Enterprise = every safe tool + an explicit mutating set (adds `task_clear`, session-local like
|
|
171
|
+
`task_add`/`task_update`); still denies `http_request`, `file_upload`, `image_generate`, `video_generate`,
|
|
172
|
+
`image_recreate`, `artifact_create`, `mcp__*`, `computer_*`. Readonly = every safe tool minus
|
|
173
|
+
`READONLY_SAFE_EXCLUDED` (`scratchpad`, `session_handoff`: registry-safe but they write state, `session_handoff`
|
|
174
|
+
into the next session's prompt) — no mutating tool can be in it. Gated mode now allows all 17 registry-safe tools.
|
|
175
|
+
- 999/999 tests, 132 files. New `test/permissions-parity.test.mts` (12): every registry `safe:true` tool is
|
|
176
|
+
`allow` in gated; the 12 drifted tools by name; non-safe tools still `ask`; the plan/dream shape through
|
|
177
|
+
`withPermissions` (no approver); enterprise grants safe + core, denies egress/spend/publish; readonly leak guard
|
|
178
|
+
over the whole registry + 19 named mutating tools. Fails 6 of 12 on the 0.1.225 lists.
|
|
179
|
+
Decision: `_ai-docs/decisions/2026-10-06-permissions-parity.md`.
|
|
180
|
+
|
|
181
|
+
## 0.1.225 — 2026-10-06 — tool-execution safety: checkpoint scopes git-add to the cwd subtree (no more staging the enclosing repo) + executeParallel preserves call order (dependent write→read no longer races)
|
|
182
|
+
- FIX 1 (data safety) — ROOT CAUSE: the `checkpoint` tool ran `git add -A` with NO pathspec. `-A` stages the
|
|
183
|
+
whole ENCLOSING repo regardless of cwd, so a checkpoint from `~/.axe/repos/x` staged (and, with `--no-verify`,
|
|
184
|
+
committed) sibling dirs — up to the 2GB `~/.axe` monorepo, the exact "git add under ~/.axe resolves UP into
|
|
185
|
+
the monorepo" trap. Now `git add -A -- .` (the working subtree only; the no-enclosing-repo `git init` guard is
|
|
186
|
+
unchanged), and a new optional `paths: string[]` param stages ONLY those explicit entries (all after `--`, so a
|
|
187
|
+
`-leading` name is never an option). Persona `## Git` line reconciled with "never a blanket add in a shared
|
|
188
|
+
checkout": it now says checkpoint stages only the cwd's subtree and to pass `paths` for specific files.
|
|
189
|
+
- FIX 2 (correctness) — ROOT CAUSE: `executeParallel` ran EVERY `safe` call first (concurrently) and only THEN the
|
|
190
|
+
unsafe ones, so input order was lost: `[file_write f, file_read f]` read the file pre-write (ENOENT);
|
|
191
|
+
`[file_edit, grep_search]` and `[bash mkdir, git_status]` read pre-mutation state. The persona tells the model
|
|
192
|
+
to batch independent calls in one message, so this bit real usage. Now it walks the calls in INPUT ORDER: a
|
|
193
|
+
contiguous run of consecutive safe calls runs together (`Promise.all`, each result in its own slot), and each
|
|
194
|
+
unsafe call runs ALONE, awaited in place. Order-preserving; parallelism only inside a contiguous safe run.
|
|
195
|
+
`onSettle` still reports each call's original index.
|
|
196
|
+
- 987/987 tests, 131 files. New `test/executor-parallel-order.test.mts` (6) — write→read sees the write, edit→grep sees post-edit
|
|
197
|
+
state, interleaved results + start/end order, adjacent safe reads overlap, an unsafe call never overlaps
|
|
198
|
+
anything, onSettle indices; new `test/checkpoint-scope.test.mts` (3) — real git, checkpoint from a subdir with a
|
|
199
|
+
sibling dir + root file (modified/new/deleted) commits only the subtree and leaves nothing staged outside it,
|
|
200
|
+
`paths` stages only the named entries, fresh-dir init unchanged. Both new files fail on the 0.1.224 code.
|
|
201
|
+
Decision: `_ai-docs/decisions/2026-10-06-tool-execution-safety.md`.
|
|
202
|
+
|
|
203
|
+
## 0.1.224 — 2026-10-06 — unify the system prompt (TUI now uses basePersona: Direct/unrestricted + media + verify rules on the interactive path) + lean catalogue + MCP-data-driven catalogue + newest-memories
|
|
204
|
+
- ROOT CAUSE: `cli.tsx` built the interactive system prompt from its OWN inline ~0.95K-token string and never
|
|
205
|
+
imported `basePersona()`; only the headless factory (`autonomy/session-factory.ts`) used the ~4.3K persona.
|
|
206
|
+
So the TUI lacked 15 `basePersona` sections — the whole **Direct/unrestricted** block (the "keep the model
|
|
207
|
+
abliterated" guarantee was false on the interactive surface), the media rules (`image_generate` /
|
|
208
|
+
`image_analyze`, the identity/likeness path), verify-by-running, fix-what-you-find, the AXE self-check,
|
|
209
|
+
RAM/serving guard, narration, web-search/skills/compose disambiguation, HTTP, Git.
|
|
210
|
+
- `config/persona.ts` `composeSystemPrompt({ settings, cwd, ctxTokens, lean, interactive })` is now the ONE
|
|
211
|
+
assembly; `cli.tsx` and `buildHeadlessSystemPrompt` both call it. Only the interactive-only parts differ:
|
|
212
|
+
a `## Sub-agents` section (spawn_agent) and the computer-control embodiment guide (moved out of `cli.tsx`).
|
|
213
|
+
- `basePersona(cwd, { ctxTokens, interactive })`: the Context-window line states the active model's REAL
|
|
214
|
+
window (was a hard-coded 300K — wrong for a 128K model), neutral when unknown; cli.tsx's richer "Finding
|
|
215
|
+
things" (bounded `ls ~` + scoped `find`) and "Scratchpad & handoff" text replace the thinner ones.
|
|
216
|
+
- `renderToolCatalogue(reg, { lean })`: lean (small-ctx model) skips the per-tool list (it duplicates the
|
|
217
|
+
attached tool schemas) and keeps the MCP / `/commands` / headless-CLI / skills summary; the list is
|
|
218
|
+
char-capped and the header states the true total + how many lines were rendered. The MCP section is now
|
|
219
|
+
DATA-DRIVEN: a best-effort synchronous read of the owned-MCP registry (`$KODE_MCP_CONFIG` or
|
|
220
|
+
`~/.axe/cli/backend/mcp_servers.json`) names the advertised servers (+ purpose) and counts the opt-in ones;
|
|
221
|
+
a missing/garbled file falls back to a minimal static note, never throws.
|
|
222
|
+
- `loadMemories` keeps the NEWEST notes under the cap (the file is append-only, so `slice(0, cap)` was
|
|
223
|
+
dropping the new notes and keeping the oldest) — tail + leading `…`, like `loadHandoff`.
|
|
224
|
+
- 978/978 tests, 129 files (new `test/system-prompt.test.mts` 10; `test/tool-catalogue.test.mts` 5 → 9):
|
|
225
|
+
interactive/headless/lean contents, persona parity (every basePersona heading in the interactive prompt),
|
|
226
|
+
embodiment gating, real-window line, custom `systemPrompt`, both call sites, newest-memories, MCP-driven
|
|
227
|
+
catalogue + cap. Decision: `_ai-docs/decisions/2026-10-06-system-prompt-unification.md`.
|
|
228
|
+
|
|
229
|
+
## 0.1.223 — 2026-10-06 — Operator aware of its full tool/MCP/CLI/skill surface (persona capability index)
|
|
230
|
+
- Added `renderToolCatalogue()` (`src/tools/registry.ts`) — a compact, SELF-MAINTAINING capability index
|
|
231
|
+
rendered from the LIVE registry (every native tool one line: name + trimmed description, declaration
|
|
232
|
+
order), plus the MCP layer (`KODE_TSI_MCP=1` → compose.casa etc.), the in-session `/commands`, the
|
|
233
|
+
headless CLI modes (`operator run`/`loop`/`board`/`dream`/`media-robot`), and the 60k skills catalogue.
|
|
234
|
+
Wired into BOTH system-prompt assembly sites — interactive (`cli.tsx` SYSTEM_PROMPT) and headless
|
|
235
|
+
(`autonomy/session-factory.ts buildHeadlessSystemPrompt`) — so Operator gets the same high-level MAP of
|
|
236
|
+
its whole surface on either path, included even under the lean harness (self-knowledge, not droppable).
|
|
237
|
+
- WHY: the per-call tool SCHEMAS tell the model HOW to call each tool, but nothing gave it the high-level
|
|
238
|
+
surface map — so it would under-use tools or claim capabilities it doesn't have. Rendering from the live
|
|
239
|
+
registry (not prose) means a newly-added tool appears automatically and can't drift. Appended as a
|
|
240
|
+
separate composed section (not inside a persona string) so it survives a custom `settings.systemPrompt`
|
|
241
|
+
and lands identically on the interactive + headless paths (which today use different default personas).
|
|
242
|
+
- 964/964 tests (new `test/tool-catalogue.test.mts`, 5; on top of 0.1.222's memory-isolation suite):
|
|
243
|
+
covers every registered tool, the count, each surface class, and a merged native+MCP map. Kiyoko:
|
|
244
|
+
decision `decisions/2026-10-06-operator-tool-awareness.md`.
|
|
245
|
+
|
|
246
|
+
## 0.1.222 — 2026-10-06 — test isolation: the suite can no longer write into the LIVE Operator_Memory store
|
|
247
|
+
- `MemoryStore`'s default path and the tool registry's shared store resolved at IMPORT time, so
|
|
248
|
+
`test/checkpoint-stale-lock.test.mts` (which runs the real `checkpoint` tool, SPEC §8 — it appends a memory
|
|
249
|
+
note by design) had no way to redirect `KODE_MEMORY_FILE`: every suite run appended test rows into the
|
|
250
|
+
agent's live `~/.axe/operator/Operator_Memory.jsonl`. On JL2 that was 53 of 103 rows — and the store's
|
|
251
|
+
newest-6 is what every session injects into its system prompt, so recall was mostly test junk. Now:
|
|
252
|
+
lazy `defaultFile()` + memoized registry store + a harness-wide `KODE_MEMORY_FILE ??= <tmp>/kode-test-memory-<pid>.jsonl`
|
|
253
|
+
+ a regression test pinning post-import env resolution. Prod default behavior byte-identical.
|
|
254
|
+
RED (pre-fix): new test fails 13p/1f and a checkpoint run recreates the leak verbatim under a sandbox HOME;
|
|
255
|
+
GREEN: checkpoint 2/2 with no live store written, memory-index 14/14. Full suite: 126 files PASS, 1 FAIL
|
|
256
|
+
(`session-model.test.mts`) PRE-EXISTING at main tip — machine keychain leaks BYO connectors into built-in-list
|
|
257
|
+
asserts (proved identically at pristine 2d1de3c); BYO test-isolation follow-up proposed separately.
|
|
258
|
+
Decision doc: `_ai-docs/features/2026-10-06-test-memory-isolation.md`. Engine bundle regenerated (in-graph).
|
|
259
|
+
|
|
260
|
+
## 0.1.221 — 2026-10-06 — venice-24b → ghost-32b (self-hosted abliterated Qwen3-VL-32B) + kiyoko docs
|
|
261
|
+
- Swapped the self-hosted small-model slot from `venice-24b` (held — JL1 RAM can't host a 24B + a 32B +
|
|
262
|
+
Aurora warm at once; it was OOM-killed) to `ghost-32b`: abliterated Qwen3-VL-32B (Huihui Q4_K_M) served on
|
|
263
|
+
JL1:8101 at 128K ctx, for side-by-side testing vs Aurora. Model count unchanged; id-enumeration tests
|
|
264
|
+
updated (`models.test`, `session-model.test`). NOTE: the 32B's weights can swap out under the 128K KV on a
|
|
265
|
+
loaded box — it must be re-served at a smaller ctx to stay resident + actually infer (fleet-capacity item).
|
|
266
|
+
- Kiyoko: added decision `decisions/2026-10-06-model-agnostic-any-model.md` + convention
|
|
267
|
+
`conventions/model-profile-id-enumeration-tests.md`, indexed.
|
|
268
|
+
|
|
269
|
+
## 0.1.220 — 2026-10-06 — compaction works for ANY model (small-ctx → summarize on the 300K default)
|
|
270
|
+
- Compaction's summarizer ran on the ACTIVE model's endpoint (for prefix-cache reuse) — fine for Aurora's
|
|
271
|
+
300K, fatal for a small window: a self-hosted 8K model can't summarize its own overflow (the
|
|
272
|
+
`[system + tools + span]` summarize request itself exceeds the window), so compaction frees nothing and
|
|
273
|
+
the session walls ("compaction can't free enough space"). Now, whenever the active model's window is below
|
|
274
|
+
`LEAN_HARNESS_CTX` (32K), the summarizer routes to the large-context DEFAULT (`DEFAULT_MODEL_ID`, Aurora
|
|
275
|
+
300K) instead — it trades the live-turn cache reuse for compaction that actually works. Large models keep
|
|
276
|
+
the cache-safe same-endpoint path.
|
|
277
|
+
- **Model-agnostic by construction** (keyed on ctx, not a model name): together with 0.1.218's lean harness,
|
|
278
|
+
ANY model dropped into Operator now gets working compaction + hours-long autonomous sessions regardless of
|
|
279
|
+
its context size — the platform supports small uncensored specialists and 300K workhorses alike.
|
|
280
|
+
|
|
281
|
+
## 0.1.219 — 2026-10-05 — show the model's reasoning by default (dim, live)
|
|
282
|
+
- The dim reasoning stream (the model's thoughts, rendered `dimColor` above the answer as it generates —
|
|
283
|
+
`cli.tsx` `liveReasoning` / `onReasoning`) was already wired, but gated off: `thinkMode` defaulted to
|
|
284
|
+
"off" and the server runs `enable_thinking:false` for speed, so the model emitted no thought tokens and
|
|
285
|
+
you saw only the spinner. Now `thinkMode` initializes from `settings.ui.reasoning` (default **"think"**),
|
|
286
|
+
so every turn the model reasons and its thoughts stream dim above the answer — you watch the process live.
|
|
287
|
+
Set `settings.ui.reasoning:"off"` for spinner-only, or `/think` to toggle per-session.
|
|
288
|
+
|
|
289
|
+
## 0.1.218 — 2026-10-05 — lean harness for small-context models (keeps them uncensored)
|
|
290
|
+
- A small-context model (e.g. the self-hosted 8K `venice-24b`) can't hold Operator's full system prompt:
|
|
291
|
+
`loadMemories()` + `loadHandoff()` are sized for Aurora's 300K and nearly fill an 8K window by themselves,
|
|
292
|
+
which pinned `ctx` at 99% (the meter is `min(99, used/window)`, i.e. 99% FULL) and made the model RECITE
|
|
293
|
+
the stored memory/handoff instead of answering ("hello" → a Session-Handoff dump).
|
|
294
|
+
- Fix: below `LEAN_HARNESS_CTX` (32K) the heavy memory + handoff are dropped from the system prompt (both the
|
|
295
|
+
TUI `cli.tsx` and headless `session-factory.ts`), **keeping `basePersona`** — including the `## Direct —
|
|
296
|
+
the owner's private system` (unrestricted/no-refusal) section — so the model stays uncensored, plus a one
|
|
297
|
+
line note so it answers from the live conversation rather than confabulating stored notes. Aurora/Qwen
|
|
298
|
+
(128K+) are unaffected. New helper `modelCtxFor(id, overrides)` + `LEAN_HARNESS_CTX` in `router/models.ts`.
|
|
299
|
+
|
|
300
|
+
## 0.1.217 — 2026-10-05 — venice-24b live endpoint (self-hosted on JL1:8110)
|
|
301
|
+
- Pointed the `venice-24b` profile at the real served endpoint: `http://192.168.1.103:8110/v1`, model
|
|
302
|
+
`dolphin-venice-24b` (Dolphin-Mistral-24B-Venice Q4_K_M served via llama.cpp on JL1, bound 0.0.0.0 so the
|
|
303
|
+
engine on JL2 reaches it over LAN), ctx 8192. The earlier placeholder (`:8098`) was never served, so
|
|
304
|
+
`/model venice-24b` returned "fetch failed"; it now resolves. Runs alongside Aurora (`:8097`) — `/model`
|
|
305
|
+
toggling is an instant endpoint swap (both resident), uncensored at the weights.
|
|
306
|
+
|
|
307
|
+
## 0.1.216 — 2026-10-05 — uncensored vision · video 524 fix (LAN-first)
|
|
308
|
+
- `image_analyze` / `video_analyze` now send an uncensoring system prompt to the Qwen2-VL worker: describe
|
|
309
|
+
anything factually, never refuse/moralize/disclaim. The engine-level unrestricted layer only ever sees
|
|
310
|
+
`chat()` turns, not these direct vision HTTP calls, so the analyze side needed its own one-line steer —
|
|
311
|
+
this keeps "generate HER" from dying on a VL refusal while it describes a reference photo.
|
|
312
|
+
- **`video_generate` LAN-first** (`videoEndpoints`): added the JL2 video worker's direct LAN host
|
|
313
|
+
(`192.168.1.146:8792`) ahead of the Cloudflare-fronted `video.axe.onl`. An LTX render takes >100s, which
|
|
314
|
+
trips CF's ~100s edge timeout (524); the LAN path has no cap. Verified e2e — a 210s render that previously
|
|
315
|
+
524'd now completes (97 frames @ 24fps). CF host stays as the off-LAN fallback (needs the reverse-tunnel
|
|
316
|
+
for off-LAN callers — separate owed item). Same fix as the identity broker's LAN-first ordering.
|
|
317
|
+
|
|
318
|
+
## 0.1.215 — 2026-10-05 — Venice self-hosted · uncapped vision · broader refusal detection
|
|
319
|
+
- **Venice 24B is now SELF-HOSTED like Aurora, not a third-party BYO connector** (`src/router/models.ts`):
|
|
320
|
+
`venice-24b` points at the fleet-served open weights (Dolphin-Mistral-24B-Venice-Edition on JL1 Ai Storage,
|
|
321
|
+
llama.cpp `:8098`), no API key, no `byo`. This is the sovereign form the owner asked for; the BYO/cloud
|
|
322
|
+
form from 0.1.213 is superseded. (Fixes the `models.test`/`byo-qwen.test` assertions 0.1.213 broke — Venice
|
|
323
|
+
is no longer a BYO account, so "only the qwen account" holds again; only the built-in count moved 5→6.)
|
|
324
|
+
- **Uncapped vision output** (`src/tools/registry.ts`): `image_analyze` / `video_analyze` / the internal
|
|
325
|
+
`image_recreate` analyze no longer force `max_tokens` (was 512 / 600 / 400) — the cap is sent only when the
|
|
326
|
+
caller sets it, so face/scene descriptions return in full instead of truncating mid-sentence.
|
|
327
|
+
- **Broader refusal detection** (`src/engine/unrestricted.ts`): the detector now anchors on refusal VERBS
|
|
328
|
+
with any object, so a real-world owner-facing refusal ("I can't help with removing safety filters…",
|
|
329
|
+
"That's not something I can assist with", "I don't feel comfortable…") is caught and re-prompted — the
|
|
330
|
+
tighter 0.1.214 patterns only matched a literal "help with that". Capability statements still pass.
|
|
331
|
+
|
|
332
|
+
## 0.1.214 — 2026-10-05 — AI-agnostic unrestricted mode (refusal detect + affirmative-prefill retry)
|
|
333
|
+
- `engine/unrestricted.ts` — for this owner's private, self-hosted system: `detectRefusal()` catches a
|
|
334
|
+
POLICY/MORAL refusal from whatever model drives Operator (content_filter stop, or targeted soft-refusal
|
|
335
|
+
wording like "I can't help with that" / "as an AI language model" / "against my guidelines") while staying
|
|
336
|
+
false on plain capability limits ("I can't find the file", "unable to locate X"). `buildAffirmativeRetry()`
|
|
337
|
+
appends a one-line floor reminder (never leak secrets, never destroy production data) + a trailing
|
|
338
|
+
assistant-role prefill so the model continues the task instead of re-refusing.
|
|
339
|
+
- Wired into `engine/agent.ts`'s round loop: a tool-call-free, refusal-shaped round gets re-issued through
|
|
340
|
+
`chat()` up to `UNRESTRICTED_MAX_RETRIES` (2) times, then falls through unchanged if still refusing — never
|
|
341
|
+
fabricates compliance. Works on chat() OUTPUT only, so it's model-agnostic (Aurora, QwenCloud, any BYO
|
|
342
|
+
OpenAI-compatible backend) without touching weights; never touches tool-permission gates or the
|
|
343
|
+
`deniedReadAsync` credential-path guard. New setting `unrestricted` (default `true`), env `KODE_UNRESTRICTED=0`
|
|
344
|
+
to disable. Design: `_ai-docs/features/2026-10-05-unrestricted-ai-agnostic.md`.
|
|
345
|
+
|
|
346
|
+
## 0.1.213 — 2026-10-05 — drop-in Venice 24B (uncensored) model connector
|
|
347
|
+
- Added a `venice-24b` model profile (`src/router/models.ts`): Venice's uncensored 24B (`venice-uncensored-1-2`,
|
|
348
|
+
Mistral-Small-24B base) at **128K context** (verified from Venice's live `/v1/models` catalog), reachable via
|
|
349
|
+
`/model venice-24b` once connected. BYO keychain account `venice` (`operator auth byo venice`) — reuses the
|
|
350
|
+
generic BYO store, no new command. `transport: "openai"`; the `authHeaders` scope guard never sends the
|
|
351
|
+
Operator token to `api.venice.ai`. An uncensored Aurora alternative that complements the engine-level
|
|
352
|
+
unrestricted layer (refusal-free at the weights + refusal-free at the engine).
|
|
353
|
+
|
|
354
|
+
## 0.1.212 — 2026-10-05 — search timeout 20s → 300s (don't bail on a big tree)
|
|
355
|
+
- The `search` tool (ripgrep, grep fallback, and the standalone grep fallback) capped every search at **20s**,
|
|
356
|
+
so a whole-home / large-tree search timed out with "narrow the path" instead of finishing. Raised to **300s**
|
|
357
|
+
across all three paths — a normal search over a big directory now completes; the SIGKILL safety stays for a
|
|
358
|
+
genuinely-stuck blocking special file. (The tool was already grep/rg-backed — the first attempt just searched
|
|
359
|
+
gigabytes under one root.)
|
|
360
|
+
|
|
361
|
+
## 0.1.211 — 2026-10-05 — one-API gateway: engine hook + fleet route IaC
|
|
362
|
+
- **Sovereign gateway consolidation** — `api.axe.onl` now carries unified fleet routes (`/images`, `/identity`,
|
|
363
|
+
`/video`, `/artifacts`, `/skills`) in `api/nginx/api.axe.onl.conf` (infra-as-code; one door, same operator-token
|
|
364
|
+
auth as chat, prefix-stripped to each broker). Keeps full sovereignty behind the facade. Design:
|
|
365
|
+
`_ai-docs/2026-10-05-one-api-gateway.md`; routes + 524-via-reverse-tunnel note in `api/README.md`.
|
|
366
|
+
- **Engine hook** `KODE_GATEWAY_URL` — when set, `image_generate` prefers `api.axe.onl/images/…` (fans out
|
|
367
|
+
server-side), falling back to the per-broker URL + LAN. Opt-in, no change until set/deployed. identity/video
|
|
368
|
+
stay direct until their reverse tunnels land (gateway→broker over CF would re-hit the 524 on long renders).
|
|
369
|
+
- OWED (deploy, not live): push nginx conf to AXECore + reverse tunnels for /video + /identity + set
|
|
370
|
+
`KODE_GATEWAY_URL` on the engines.
|
|
371
|
+
|
|
372
|
+
## 0.1.210 — 2026-10-05 — BYO vendor-key connectors: QwenCloud Token Plan joins /model (leak-guarded)
|
|
373
|
+
- **Token scope (security):** `authHeaders` no longer sends the Operator bearer to ANY remote base — only
|
|
374
|
+
`*.axe.onl` + private/LAN fleet hosts (paths unchanged) and never to loopback; an explicit per-endpoint
|
|
375
|
+
vendor token always wins. A third-party base without its own key gets NO auth: the BYO-config leak class
|
|
376
|
+
dies in code. RED-proven by reverting the scope line alone (leak test fails).
|
|
377
|
+
- **`operator auth byo <account>`:** hidden keychain paste into the SEPARATE `axe-operator-byo` service
|
|
378
|
+
(+ `KODE_BYO_<ACCT>` env tier + 0600 file fallback, mirrors auth/store.ts); memoized reads so the RC
|
|
379
|
+
capabilities builder never spawns `security` per render.
|
|
380
|
+
- **Profiles:** `ModelProfile.byo` + `transport` ("openai" = strict dialect: no cache_prompt / speculative /
|
|
381
|
+
chat_template_kwargs; /think → documented `enable_thinking`; include_usage keeps exact metering on both).
|
|
382
|
+
Threaded Endpoint → RouterEndpoint → AuroraOpts; engine stays node-free (neutral esbuild gate + regen).
|
|
383
|
+
- **Built-ins:** `qwen3.8-max` + `qwen3.8-flash` on `token-plan.maas.qwencloudapi.com/compatible-mode/v1`
|
|
384
|
+
(owner's Token Plan Lite — 11.5k credits/mo, night 60% off max/flash). Unconnected = invisible in both
|
|
385
|
+
pickers and refused by selectModel with the exact fix command (SPEC/providers.md §1 honesty).
|
|
386
|
+
- Decision doc: `_ai-docs/features/2026-10-05-qwen-token-plan-byo.md`.
|
|
387
|
+
- Full suite **950 passed, 0 failed** (126 files; +5 new `test/byo-qwen.test.mts`, models pins updated);
|
|
388
|
+
tsc clean; iOS engine bundle regenerated in-commit.
|
|
389
|
+
|
|
390
|
+
## 0.1.209 — 2026-10-05 — zero guardrails (owner directive): unbounded autonomy + direct persona
|
|
391
|
+
- **Unbounded autonomy** (owner directive): default `maxTurnWallClockSec` 900→0 (no per-turn time brake),
|
|
392
|
+
`maxRounds` 200→100000 (which also lifts the absolute ceiling via `max(softRounds+1, 400)`), loop limits
|
|
393
|
+
essentially unbounded — Operator runs long tasks to completion. The genuine-STALL break (`loop.stallAfter`)
|
|
394
|
+
stays as a correctness safety (not a limit). All settings-overridable to re-impose a cap. Permissions were
|
|
395
|
+
already `mode: "bypass"` (zero gates) by default; app-side default is flipped separately.
|
|
396
|
+
- **Direct persona**: on the owner's private local fleet, Operator does legitimate work directly — no moralizing,
|
|
397
|
+
hedging, or unsolicited disclaimers. Floor kept: never leak secrets to tool output, never destroy prod data
|
|
398
|
+
(fleet integrity, not behavior). Rate/usage limits unchanged.
|
|
399
|
+
|
|
400
|
+
## 0.1.208 — 2026-10-05 — native `artifact_create` tool + pink filling compaction bar
|
|
401
|
+
- **New `artifact_create` tool** — makes a shareable artifact (HTML page / dashboard / SVG / markdown / DECK /
|
|
402
|
+
interactive canvas) on compose.casa and returns a public clickable URL. Operator no longer hunts for the
|
|
403
|
+
compose MCP, hand-rolls an HTML file, or asks "where should I put artifacts/" — it just makes one. Wraps the
|
|
404
|
+
compose.casa JSON-RPC surface (`compose/create` + `compose/canvas`). Verified e2e: returned
|
|
405
|
+
`https://compose.casa/v/19b25cba`. This is the foundation for decks/designs/presentations too.
|
|
406
|
+
- **Compaction bar: pink + FILLS** — `RecoverSpinner`'s disc + bar are now pink (`compactProgress`), and the bar
|
|
407
|
+
FILLS (elapsed-based, ~18s, capped just shy of full) instead of sliding — so it reads as progress toward done
|
|
408
|
+
and vanishes when compaction finishes.
|
|
409
|
+
|
|
410
|
+
## 0.1.207 — 2026-10-05 — identity-broker routing ("generate HER") + pearl star + bash ▶
|
|
411
|
+
- **`image_generate` routes reference-bearing requests to the identity broker** (SDXL RealVisXL +
|
|
412
|
+
IP-Adapter-FaceID on JL1:8793) to preserve a SPECIFIC face (arcface cosine 0.72–0.77); plain text-to-image
|
|
413
|
+
stays on flux. LAN IP tried first so a cold render doesn't hit CF's 524. Identity-vs-flux body split; falls
|
|
414
|
+
back to flux if identity is asleep. Honest `axe_identity` already surfaced (0.1.203). New `ip_adapter_scale`
|
|
415
|
+
param. Design: `_ai-docs/2026-10-05-identity-broker-routing.md`.
|
|
416
|
+
- **Persona tool-awareness** (not prohibition): likeness is LIVE — pass a FACE as `reference` to generate a
|
|
417
|
+
specific person; the identity broker does it, Operator doesn't build its own pipeline. Honest `axe_identity`.
|
|
418
|
+
- **Pearl thinking star**: the star tones went amber → pearl (slate→white) so the star matches the verb shimmer.
|
|
419
|
+
- **Bash icon** `❯` → `▶` (play/run) so a command Operator ran never reads as your prompt `❯`.
|
|
420
|
+
|
|
421
|
+
## 0.1.206 — 2026-10-05 — thinking shimmer + per-situation colour language
|
|
422
|
+
- **Thinking shimmer** (`src/ui/shimmer.tsx`): the thinking verb now carries a pearl (slate→white) linear
|
|
423
|
+
shimmer sweep — a bright band moving across the letters on the shared tick — replacing the old tone-flash
|
|
424
|
+
with continuous motion. The amber star + rotating verbs are kept. Per-char truecolor; downsamples gracefully.
|
|
425
|
+
- **Per-situation colour language** (`toolicons.ts` `KIND_HUE`): a RUNNING tool row's glyph is now tinted by
|
|
426
|
+
KIND — media=magenta, shell=green, search=cyan, web=blue, read=teal, write=gold, git=violet, agent=pink — so
|
|
427
|
+
the colour tells you what Operator is doing. Settled rows keep status colour (done=green, error=red). Matches
|
|
428
|
+
the palette shown in the review artifact. 945 tests (incl. new `shimmer.test.mts`).
|
|
429
|
+
|
|
430
|
+
## 0.1.205 — 2026-10-05 — persona: generate ONLY through the tool (no broker curl)
|
|
431
|
+
- **Root-caused a live bug**: on JL2 Operator was generating by `http_request`/`bash`-curling the broker
|
|
432
|
+
(`localhost:8791/v1/images/generations`) and hand-decoding base64 — which floods its context with base64,
|
|
433
|
+
skips the flywheel log, the in-chat progress bar, the public URL, and the honest provenance, and is
|
|
434
|
+
error-prone (several failed decode attempts). Persona now mandates `image_generate`/`video_generate` as the
|
|
435
|
+
ONLY correct path and forbids hand-rolling HTTP/curl/base64 to the broker.
|
|
436
|
+
|
|
437
|
+
## 0.1.204 — 2026-10-05 — auto-open created media + img2img `steps` knob
|
|
438
|
+
- **Persona: auto-open + link.** After Operator creates an image/video/artifact for the owner in an
|
|
439
|
+
interactive turn, it now opens it for them (`open <url-or-path>`) and puts the clickable link in the reply —
|
|
440
|
+
no more "open it for me". Skipped inside media-robot/headless batches.
|
|
441
|
+
- **`image_generate` `steps` param** → forwarded to the broker. schnell runs 4 steps by default (coarse img2img
|
|
442
|
+
strength resolution); raise to ~8 for a finer retain-vs-restyle knob when a reference is given. Aligns with
|
|
443
|
+
the now-live flux-worker img2img (image+strength, pose/style transfer — NOT identity).
|
|
444
|
+
|
|
445
|
+
## 0.1.203 — 2026-10-05 — honest reference-mechanism provenance (img2img + identity broker ready)
|
|
446
|
+
- `image_generate` now reads two forward-compatible broker response fields and surfaces them honestly in the
|
|
447
|
+
result + flywheel: `axe_img2img:{used,strength}` → `(img2img restyle @ strength X — matches pose/composition/
|
|
448
|
+
style, NOT the exact face)`, and `axe_identity:{method,base_model,identity_applied,fidelity_note}` →
|
|
449
|
+
`(identity: <method> on <base_model> — <fidelity_note>)`. So when the img2img broker (pose/style) or the
|
|
450
|
+
identity broker (RealVisXL + IPAdapter-FaceID, "HER") lands, the tool states exactly WHICH mechanism ran and
|
|
451
|
+
never overclaims likeness. Field names (`image`/`strength`) already align with both brokers — no tool change
|
|
452
|
+
when they go live beyond endpoint routing. Fully forward-compatible: no-op against today's text-to-image broker.
|
|
453
|
+
|
|
454
|
+
## 0.1.202 — 2026-10-05 — autonomous media robot (flywheel compounding loop)
|
|
455
|
+
- **New `operator media-robot`** — a triggerable, broker-agnostic pass that closes the media-gen flywheel
|
|
456
|
+
autonomously: reads the provenance corpus (`~/.axe/operator/media-gen.jsonl`), selects recent unique
|
|
457
|
+
successful prompts (preferring the logged **expanded** prompt), regenerates each **best-of-N**,
|
|
458
|
+
**self-reviews** every candidate with the fleet vision model as a 0–10 reward signal, keeps the winner, and
|
|
459
|
+
appends the SCORED outcome to `~/.axe/operator/media-robot.jsonl` — the fuel for retrieval-rewriting / a
|
|
460
|
+
Red-Queen-gated LoRA. `src/autonomy/media-robot.ts` + dispatch in `src/autonomy/index.ts`.
|
|
461
|
+
- **Composition, not new model code**: calls `image_generate`/`image_analyze` via the tool registry (no LLM in
|
|
462
|
+
the loop), so it inherits every broker upgrade — e.g. the reference/identity broker — with zero change.
|
|
463
|
+
- **Safe defaults**: single pass, `--n 2 --max 3`, image-only, `--dry` to plan without GPU; NEVER an
|
|
464
|
+
unattended loop unless explicitly scheduled (`operator routine`). Scale-to-zero brokers → idle robot costs 0.
|
|
465
|
+
- Flags: `--kind image|video --n N --max N --dry --json --keep-awake`. Verified e2e: best-of-2 on the corpus →
|
|
466
|
+
both candidates vision-scored 8/10 → winner logged. Decision log: `_ai-docs/2026-10-05-autonomous-media-robot.md`.
|
|
467
|
+
|
|
468
|
+
## 0.1.201 — 2026-10-05 — TUI: heavier tool icons (write was miniscule)
|
|
469
|
+
- The write/edit icon was a thin outline pencil `✎` that rendered miniscule; swapped for the filled black nib
|
|
470
|
+
`✒` (heavier, still reads as write). All tool-row glyphs now render **bold** in every state (not just while
|
|
471
|
+
running), so the whole icon vocabulary reads larger/heavier. Glyphs stay font-safe (single codepoint, from
|
|
472
|
+
the proven Dingbats/Geometric-Shapes blocks).
|
|
473
|
+
|
|
474
|
+
## 0.1.200 — 2026-10-05 — TUI: media/compaction progress bars, visible inter-tool thoughts, bolder animation
|
|
475
|
+
- **Media-gen + compaction progress bars** (`src/ui/progressbar.ts`): `image_generate`/`video_generate` rows
|
|
476
|
+
get a new `media` tool-kind and a yellow elapsed/ETA bar (image ≈40s, video scales with frames, capped 95%
|
|
477
|
+
until the real result lands); the compaction/recovery `RecoverSpinner` gets a pink indeterminate sweep bar.
|
|
478
|
+
All glyphs font-safe (`▰▱`, Geometric Shapes). Driven by the one shared `tick.ts` clock — no new timers.
|
|
479
|
+
- **Thoughts persist between parallel tool calls**: the reasoning the model produces BEFORE a tool batch was
|
|
480
|
+
discarded in `onToolStart` (to dodge a tall-live-frame Ink mis-erase); now it's pushed as a dim, SETTLED
|
|
481
|
+
thought above the tool rows (static scrollback → no re-render, no mis-erase), so the owner sees the
|
|
482
|
+
"why I'm running these" thinking instead of a bare spinner. No change to how much the model reasons.
|
|
483
|
+
- **Bolder running animation**: the per-action tool glyph renders bold while running — reads larger/heavier.
|
|
484
|
+
- Integrated from a worktree buddy (progress bars) + engine tweaks; full suite 941 passed / 0 failed.
|
|
485
|
+
|
|
486
|
+
## 0.1.199 — 2026-10-05 — persona knows the WHOLE media pipeline (not just flux)
|
|
487
|
+
- **Persona now teaches the full media stack**, fixing a real failure: on JL2 Operator told the owner
|
|
488
|
+
"FLUX.1-schnell can't match real photography" and suggested **ComfyUI / SDXL / FLUX.1-dev/pro checkpoints it
|
|
489
|
+
does not have** — because its only media knowledge was "flux". New `## The media pipeline` section states
|
|
490
|
+
what ACTUALLY exists (image=FLUX.1-schnell+`expand`+`reference`; video=LTX-0.9.5+`expand`+`reference_image`
|
|
491
|
+
image-to-video; vision=Qwen2-VL) and forbids offering un-wired tools as if available.
|
|
492
|
+
- **Honest likeness boundary**: text-to-image invents a new person, so an IDENTICAL still needs IP-Adapter/
|
|
493
|
+
PuLID/img2img (not yet on the broker) — say so, don't pass a look-alike as an exact match; BUT a VIDEO from a
|
|
494
|
+
shared image preserves identity (first frame = the real photo) and works NOW via `reference_image`. Teaches
|
|
495
|
+
`expand` as the real quality lever instead of hallucinating a better model.
|
|
496
|
+
|
|
497
|
+
## 0.1.198 — 2026-10-05 — frozen broker params: prompt-expansion + image-to-video
|
|
498
|
+
- **`expand` on `image_generate` + `video_generate`** — when set, the tool asks the worker to auto-expand/
|
|
499
|
+
rewrite the prompt (Aurora) before rendering. The worker returns `axe_prompt_expansion:{original,expanded,
|
|
500
|
+
used}`; `used:false` means it ran on the original (never blocks). The tool surfaces the rewritten prompt in
|
|
501
|
+
its result AND logs the `expanded` prompt to the flywheel (`recordMediaGen`) so the richer prompt compounds.
|
|
502
|
+
- **`reference_image` on `video_generate`** — image-to-video: a first-frame image (path/url or b64) is passed
|
|
503
|
+
to the broker as `image` for LTX first-frame conditioning. The tool reads the broker's `conditioned` flag and
|
|
504
|
+
notes whether conditioning actually applied (`image-conditioned` vs `reference ignored — broker not image-
|
|
505
|
+
conditioned yet`). Pairs with `image_generate`: make a still, then animate it. Forward-compatible — an older
|
|
506
|
+
broker that ignores `image`/`expand` just returns today's behavior, no breakage.
|
|
507
|
+
- Shapes frozen against the memjar/kode broker contract (795b5ac). Tool-side only; no broker change here.
|
|
508
|
+
|
|
509
|
+
## 0.1.197 — 2026-10-05 — reference passthrough (pixel-exact readiness for img2img/IP-Adapter)
|
|
510
|
+
- **`image_generate` + `image_recreate` now accept a `reference` (+ `strength`) and pass it to the broker** —
|
|
511
|
+
the tool half of pixel-exact recreation (same face/scene, not just same subject/style). It's a no-op until
|
|
512
|
+
JL1 swift's edit broker serves img2img/IP-Adapter, then recreation becomes instance-faithful with zero tool
|
|
513
|
+
change. (Best-of-N reward selection — the flywheel P1 — is the next build.)
|
|
514
|
+
|
|
515
|
+
## 0.1.196 — 2026-10-05 — image_recreate: share a reference → analyze → recreate
|
|
516
|
+
- **New `image_recreate` tool** — the "share a reference, get it recreated" flow in one call: Operator SEES the
|
|
517
|
+
reference (the vision model extracts a detailed text-to-image prompt), then generates a matching image.
|
|
518
|
+
Returns the recreation + what it understood, and nudges the self-review loop. Composes `image_analyze` +
|
|
519
|
+
`image_generate`. Verified e2e: fed a red-bicycle-on-a-beach reference → analyzed "red bicycle, brown leather
|
|
520
|
+
seat, golden sandy beach, ocean, bright lighting, rustic style" → regenerated a matching red-bicycle-on-a-
|
|
521
|
+
beach image (viewed both; subject/setting/style match). Pixel-exact fidelity (same instance) will layer
|
|
522
|
+
img2img/IP-Adapter once the edit broker lands; this is the enterprise-grade path available today.
|
|
523
|
+
|
|
524
|
+
## 0.1.195 — 2026-10-05 — media: see/match references + review own work + right-tool routing
|
|
525
|
+
- **Persona directive that makes media creation self-reviewing.** (1) Given a REFERENCE or "recreate/match
|
|
526
|
+
this", Operator `image_analyze`/`video_analyze` it FIRST and prompts from what it SAW; (2) after generating,
|
|
527
|
+
it analyzes its OWN output and compares to the request/reference, regenerating on a mismatch rather than
|
|
528
|
+
handing it over; (3) right-tool routing — `image_generate`/`video_generate` make NEW photoreal content, they
|
|
529
|
+
do NOT copy a specific app UI / screen recording / chart; "recreate this [screen recording/UI/demo]" is a
|
|
530
|
+
screen-record / build-and-record / compose.casa task, not a FLUX/LTX text-to-video task. Directly fixes the
|
|
531
|
+
observed failure (asked to recreate a product-UI screen recording → got an unrelated logo, because there was
|
|
532
|
+
no vision and LTX was the wrong tool). Verified the review loop e2e on JL1: generate → vision reads it back
|
|
533
|
+
correctly (image: "red bicycle on a sandy beach"; video: "red sports car on a curved road").
|
|
534
|
+
|
|
535
|
+
## 0.1.194 — 2026-10-05 — compose disambiguation (keep Docker Compose for real container work)
|
|
536
|
+
- **Refined the 0.1.193 compose directive** so it no longer over-forbids Docker Compose. compose.casa owns
|
|
537
|
+
the artifact/design phrasing ("compose.casa", "composer", "build an artifact/design canvas"); **Docker
|
|
538
|
+
Compose stays the correct tool for genuine container/orchestration requests** ("docker compose",
|
|
539
|
+
"docker-compose.yml", "containerize", "multi-service stack"). Bare "compose" is disambiguated by intent —
|
|
540
|
+
artifact → compose.casa, containers → Docker Compose, ask if genuinely unclear.
|
|
541
|
+
|
|
542
|
+
## 0.1.193 — 2026-10-05 — persona: "compose" means compose.casa, not Docker Compose
|
|
543
|
+
- **Fixed a tool misroute.** Asked to "build an artifact using compose casa / composer", Operator read
|
|
544
|
+
"compose" as Docker Compose and offered a `docker-compose.yml`. New persona directive maps "compose /
|
|
545
|
+
compose.casa / composer / build an artifact / design canvas" → the AXE **compose.casa** artifact + design
|
|
546
|
+
surface (use the `compose_*` MCP tools when `KODE_TSI_MCP=1`, or the `/artifacts` browser), and explicitly
|
|
547
|
+
forbids the Docker Compose fallback — if the compose tools aren't loaded, Operator now says compose.casa
|
|
548
|
+
needs the MCP layer enabled rather than scaffolding a docker-compose.yml.
|
|
549
|
+
|
|
550
|
+
## 0.1.192 — 2026-10-05 — media-broker bearer auth (tool side, env-gated)
|
|
551
|
+
- **`image_generate` / `video_generate` / `image_analyze` / `video_analyze` now send `Authorization: Bearer
|
|
552
|
+
$KODE_MEDIA_TOKEN`** to the image / video / vision brokers when that env var is set — the tool half of
|
|
553
|
+
enterprise auth for the currently-open media endpoints. ENV-GATED on both sides (brokers stay open until
|
|
554
|
+
their `MEDIA_AUTH_TOKEN` is set; tools send the header only when `KODE_MEDIA_TOKEN` is set), so the broker
|
|
555
|
+
check and the tool header roll out in either order with no mid-rollout breakage, then flip on together. The
|
|
556
|
+
token lives in the environment only — never in a URL, log, or tool result.
|
|
557
|
+
|
|
558
|
+
## 0.1.191 — 2026-10-05 — video_analyze: Operator can SEE videos too (frame-sample → VL)
|
|
559
|
+
- **New `video_analyze` tool** — completes Operator's vision. ffmpeg samples frames evenly across a video
|
|
560
|
+
(ffprobe duration → spread the sample over the whole clip), then the fleet VL model (Qwen2-VL, multi-image)
|
|
561
|
+
describes what happens. Local path or http(s) url; needs ffmpeg on PATH; same `KODE_VISION_URL` endpoint as
|
|
562
|
+
`image_analyze`. Verified the approach e2e: frames from a generated LTX clip → *"a calm ocean with gentle
|
|
563
|
+
waves and a golden hue reflecting on the water"* (correct motion understanding). So Operator now sees images
|
|
564
|
+
AND videos — the enterprise-grade analysis requested.
|
|
565
|
+
|
|
566
|
+
## 0.1.190 — 2026-10-05 — image_analyze: Operator can SEE images (real vision)
|
|
567
|
+
- **New `image_analyze` tool** — Operator now has real vision. It calls the fleet VL model (Qwen2-VL-7B-
|
|
568
|
+
Instruct-4bit, OpenAI-vision `/v1/chat/completions` on JL1) to describe/answer about an image given a local
|
|
569
|
+
path or an http(s) url (local files inlined as a `data:` URL). So Operator SEES a reference / screenshot /
|
|
570
|
+
generated image instead of guessing from file size or numpy brightness — which is exactly what produced the
|
|
571
|
+
earlier amber-blob (garbage prompt from pixel stats). Verified e2e: fed it a generated portrait → *"a person
|
|
572
|
+
with long dark hair smiling outdoors"* (correct, real vision). Persona now mandates `image_analyze` over
|
|
573
|
+
pixel-stat guessing. Endpoint discovery: `KODE_VISION_URL` → the Qwen2-VL worker; same endpoint will cover
|
|
574
|
+
video analysis (ffmpeg frame-sample → `image_analyze`).
|
|
575
|
+
|
|
576
|
+
## 0.1.189 — 2026-10-05 — links show a visible URL in Terminal.app + defensive mouse-off
|
|
577
|
+
- **OSC 8 links now gate on actual support.** `hyperlinksEnabled()` requires `caps().osc8` (not just a TTY).
|
|
578
|
+
In Terminal.app (no OSC 8) a link used to render as the bare label — URL hidden, not clickable (worst case);
|
|
579
|
+
now it degrades to the label PLUS the URL beside it in lower opacity (dim) — visible and copyable.
|
|
580
|
+
iTerm2/Ghostty/Kitty/WezTerm keep the clickable link.
|
|
581
|
+
- **Defensive mouse-off on inline mount:** the demand-driven mouse layer writes the disable sequence on mount,
|
|
582
|
+
so a stale tracking mode (e.g. left by a crash) can't break native wheel-scroll in Terminal.app.
|
|
583
|
+
|
|
584
|
+
## 0.1.188 — 2026-10-05 — video_generate aligned to the LTX broker + media-gen provenance (flywheel P0)
|
|
585
|
+
- **`video_generate` now targets the LTX broker contract:** endpoint `video.axe.onl` (its own host — it no
|
|
586
|
+
longer falls back to the image host, whose `/health` is 200 but which 404s on `/v1/video`), and defaults
|
|
587
|
+
aligned to LTX (704x480, 97 frames, 24 fps; the broker rounds w/h to ×32 and frames to 8n+1). Matches the
|
|
588
|
+
frozen `/v1/video` contract 1:1 — zero change needed once the broker is live.
|
|
589
|
+
- **Media-gen provenance capture (flywheel keystone):** every `image_generate` / `video_generate` appends a
|
|
590
|
+
record (prompt, model, params, output refs, ts, node) to `~/.axe/operator/media-gen.jsonl` (+ optional
|
|
591
|
+
`KODE_MEDIA_PROVENANCE_URL` sink), best-effort and off the hot path (`recordMediaGen`). This is the fuel for
|
|
592
|
+
the compounding loop — prompt-rewriting, best-of-N reward selection, and Red-Queen-gated FLUX/LTX LoRA. Image
|
|
593
|
+
+ video share a `saveGeneratedMedia` helper. Full design + the multimodal-MOA roadmap:
|
|
594
|
+
`_ai-docs/2026-10-05-media-gen-flywheel.md`.
|
|
595
|
+
|
|
596
|
+
## 0.1.187 — 2026-10-05 — once-ever "use a recommended terminal" first-run pointer
|
|
597
|
+
- **First-run ONLY:** when Operator starts in a terminal without clickable links / copy-on-select (Terminal.app
|
|
598
|
+
or an unknown emulator), it prints a SINGLE dim line recommending iTerm2 · Ghostty · Kitty · WezTerm — where
|
|
599
|
+
OSC 8 links + inline artifacts and highlight-to-copy all work (Ghostty/iTerm2/WezTerm do copy-on-select by
|
|
600
|
+
default; Kitty needs `copy_on_select clipboard`; Terminal.app supports neither). Persists
|
|
601
|
+
`ui.seenTerminalRecommend` so it NEVER shows again — a one-time pointer, NOT the per-boot tip removed in
|
|
602
|
+
0.1.183. Makes the recommended terminals the standard for new installs without re-introducing nagging.
|
|
603
|
+
|
|
604
|
+
## 0.1.186 — 2026-10-05 — video_generate tool (mirrors image_generate, URL-first)
|
|
605
|
+
- **New `video_generate` tool** — generates a short video from a prompt via the SAME scale-to-zero flux-worker
|
|
606
|
+
broker that serves images (`POST /v1/video/generations`), so generation never runs on the LLM-serving box.
|
|
607
|
+
Prefers the broker's public URL (renderable in-app), falls back to a saved local `.mp4` — the same URL-first
|
|
608
|
+
contract as `image_generate` (both now share a `saveGeneratedMedia` helper, so the image path refactored
|
|
609
|
+
onto it with identical behavior). Params: `prompt` (required), `size`, `num_frames`, `fps`, `seed`, `out`,
|
|
610
|
+
`timeout_ms` (default 600s — video sampling runs minutes). Endpoint discovery reuses the image endpoints
|
|
611
|
+
(`KODE_VIDEO_URL` overrides). Returns a clean error until the broker serves `/v1/video` (currently 404 — the
|
|
612
|
+
JL2 `video_gen.py` pipeline is being fixed by the surface/backend lane); no further Operator change needed
|
|
613
|
+
once it's live. Persona updated to point IMAGE *and* VIDEO gen at the scale-to-zero workers.
|
|
614
|
+
|
|
615
|
+
## 0.1.185 — 2026-10-05 — status.tokens on the RC relay (companion token meters light up)
|
|
616
|
+
- **The RC `status` frame now carries the session token count** (`status.tokens`), mirrored from
|
|
617
|
+
`session.sessionTokens()` on every route/ctx update and included in the late-joiner snapshot — so the live
|
|
618
|
+
token meters already wired on the mobile / desktop / web follower surfaces populate with no app change. The
|
|
619
|
+
value is sticky (a `setStatus` with no tokens arg keeps the last count, so the meter never blanks) and
|
|
620
|
+
omitted until the first count is known (no spurious 0 flash).
|
|
621
|
+
- `message.reasoning` needed no host change — `streamAssistant`/`finalAssistant` already thread reasoning
|
|
622
|
+
into the transcript frame, so the follower Thoughts disclosure is fed as long as the model emits thinking.
|
|
623
|
+
|
|
624
|
+
## 0.1.184 — 2026-10-05 — image_generate returns the broker's public URL (renderable in-app)
|
|
625
|
+
- **`image_generate` now prefers the broker's public image URL** (`https://image.axe.onl/out/<id>.png`) as the
|
|
626
|
+
renderable reference in its result, instead of a fleet-local file path the mobile/desktop/web surfaces
|
|
627
|
+
cannot read. A local PNG is still written when the caller passes `out`, or when an older broker returns no
|
|
628
|
+
URL (b64 → local-path fallback). The URL is a short link, so no base64 floods the LLM context. This is the
|
|
629
|
+
host half of inline image rendering across the three surfaces — the app side detects the URL in the tool
|
|
630
|
+
result and renders it. Broker contract (JL2 flux-worker): `/v1/images/generations` → `data[].url` (+
|
|
631
|
+
`b64_json` kept for the gateway). Verified e2e: prompt → `data[].url` → GET 200 `image/png`.
|
|
632
|
+
|
|
633
|
+
## 0.1.183 — 2026-10-05 — click menus in Terminal.app (inline mouse layer) + drop the clickable-links tip
|
|
634
|
+
- **Clickable pickers, inline, without losing native terminal behavior.** The `/artifacts` browser and the
|
|
635
|
+
option pickers (`ask_user`, `/model`, plan-exit) are now mouse-clickable: click a row to select it (Enter
|
|
636
|
+
still commits the choice). SGR mouse tracking turns on ONLY while an overlay is open — so the terminal's
|
|
637
|
+
native wheel-scroll and drag-to-copy are untouched the rest of the time (the design James picked: "click
|
|
638
|
+
menus, keep native"). Works in Terminal.app, which has no OSC 8 clickable links. The floating inline frame
|
|
639
|
+
is anchored with a one-shot DSR cursor probe plus a single measured "overlay stack" height, so there is no
|
|
640
|
+
per-margin geometry guesswork. Approval prompts stay keyboard-only on purpose — a security decision should
|
|
641
|
+
not ride on a click's pixel accuracy.
|
|
642
|
+
- **Removed the "links aren't clickable in Terminal.app" boot tip.** It keyed off OSC 8 (an emulator feature
|
|
643
|
+
Terminal.app lacks) and read as a defect rather than guidance. OSC 8 link rendering itself is unchanged
|
|
644
|
+
(still emitted; degrades to the visible label where unsupported).
|
|
645
|
+
- Full suite: 923 passing. New pure-unit coverage for the DSR cursor-report parse + the inline panel anchor
|
|
646
|
+
(`parseCursorReport`, `panelTopFromBottom`) — the parts verifiable without a live TTY; live click lands in
|
|
647
|
+
James's hands to confirm the anchor is pixel-exact before click is promoted from select to activate.
|
|
648
|
+
|
|
649
|
+
## 0.1.182 — 2026-10-04 — image gen usable on every surface (shared image.axe.onl service)
|
|
650
|
+
- **`image_generate` is now surface-agnostic.** It resolves a prioritized endpoint list — `KODE_IMAGE_URL` /
|
|
651
|
+
`AXE_IMAGE_URL`, then the shared fleet service **`https://image.axe.onl`**, then a local broker — and
|
|
652
|
+
fast-fails over a dead endpoint with a `/health` probe before committing to a ~30s generation. So image gen
|
|
653
|
+
works the same from any Operator node, web, or mobile, and generation always runs on the dedicated image
|
|
654
|
+
node (never on whatever node is serving the LLM).
|
|
655
|
+
- **Shared image service wired (infra).** `image.axe.onl` → the flux-worker broker (`:8791`) on the 16GB image
|
|
656
|
+
node, via the hub's Cloudflare tunnel (DNS + the tunnel's remote ingress config; the hub hostnames were
|
|
657
|
+
preserved). Verified: `image.axe.onl/health` → `{"ok":true,…}` and a real generation returned HTTP 200 in
|
|
658
|
+
~29s from off-node. The image node's truncated FLUX weights (transformer + T5) were also completed, so the
|
|
659
|
+
broker renders real images now.
|
|
660
|
+
- NOTE: the endpoint is currently open (no auth) — gating it (bearer token / CF Access service token) is the
|
|
661
|
+
recommended next step before wide use. The broker is single-threaded, so concurrent requests serialize (a
|
|
662
|
+
busy broker returns 502 until free) — queueing is a follow-up.
|
|
663
|
+
|
|
664
|
+
## 0.1.181 — 2026-10-03 — per-action tool icons + animations, and usable FLUX image generation
|
|
665
|
+
- **Per-action tool icons + animations.** Tool rows used one status glyph (○◐✓✗) for every tool — a file read
|
|
666
|
+
looked identical to a web fetch. Each tool KIND now has its own icon (read ▤ · write ✎ · search ◎ · shell ❯ ·
|
|
667
|
+
web ◍ · git ❖ · skill ◆ · agent ✺) and its own "working" animation (page-fill / pen / sweep / pulse / dial /
|
|
668
|
+
shimmer / burst); color still carries status (muted → amber → green → red), ✗ unmistakable on error. All
|
|
669
|
+
glyphs are from the Geometric/Dingbat/Braille ranges the existing spinners already prove render in Menlo —
|
|
670
|
+
no tofu. Motion runs on ONE shared ticker (`src/ui/tick.ts`): every running row subscribes to a single ~8fps
|
|
671
|
+
clock instead of owning a `setInterval`, so N animating rows coalesce to one redraw per frame — richer motion
|
|
672
|
+
at LOWER render cost (ToolStep's own 250ms per-row timer is removed). (`src/ui/toolicons.ts`, `tick.ts`,
|
|
673
|
+
`ToolStep.tsx`; mapping tests pin the `web_search`≠search / `git_command`≠shell ordering traps.)
|
|
674
|
+
- **`image_generate` tool — usable FLUX without starving the serving model.** Operator had no image tool, so an
|
|
675
|
+
image task meant loading FLUX weights inline in the turn → GBs pinned on the serving box → swap → decode
|
|
676
|
+
crawl (the 0.1.180 incident). New tool POSTs to the scale-to-zero flux-worker broker (OpenAI-images;
|
|
677
|
+
`KODE_IMAGE_URL`, default `:8791`), saves the PNG, returns its path (never the base64), 180s timeout for a
|
|
678
|
+
cold load, specific error when the broker is down. Persona: use `image_generate`, never hold diffusion
|
|
679
|
+
weights in your own process. (Broker must run on a node that isn't serving Aurora — or forward there.)
|
|
680
|
+
- Full suite 916/916; typecheck + build clean.
|
|
681
|
+
|
|
682
|
+
## 0.1.180 — 2026-10-03 — per-turn wall-clock budget: the brake on hour-long crawling turns
|
|
683
|
+
- **Root cause of "53 min, 4.1k tokens, auto-compacting" turns.** The turn loop bounded on rounds, token
|
|
684
|
+
budget, and stalls — but **never on wall-clock TIME**. So a turn whose decode had crawled to ~1 tok/s (RAM
|
|
685
|
+
pressure from a large model loaded on the serving box, e.g. `ml.load` of a multi-GB FLUX checkpoint while
|
|
686
|
+
Aurora is serving → swap; or very high context) could grind for an hour producing almost nothing, then hit
|
|
687
|
+
the token ceiling and auto-compact. Diagnosed from a live JL2 turn: 4.1k tokens / 53 min at only ~35k
|
|
688
|
+
context = 1.3 tok/s → not context size, RAM contention.
|
|
689
|
+
- **Fix: a per-turn wall-clock budget** (`settings.autonomy.maxTurnWallClockSec`, default **900s/15min**, env
|
|
690
|
+
`KODE_TURN_MAX_WALLCLOCK_SEC`; 0 = no cap). At the budget the turn wraps up gracefully at the next round
|
|
691
|
+
boundary with a clear note (and a "decode was crawling (~N tok/s)" hint when it detects the crawl) — in loop
|
|
692
|
+
mode the objective continues on the next turn, so work is checkpointed every 15 min instead of one hour-long
|
|
693
|
+
grind. This is "reign on TOKENS, bound on TIME": a turn still uses lots of tokens when decode is fast, but
|
|
694
|
+
can't run an hour when it crawls. (`src/engine/agent.ts`, `src/session.ts`, `src/config/settings.ts`,
|
|
695
|
+
`src/autonomy/session-factory.ts`)
|
|
696
|
+
- **Persona: don't starve the serving model.** New directive — loading a large model into memory on this box
|
|
697
|
+
(multi-GB MLX/FLUX/LLM) competes for RAM, swaps, and collapses decode to ~1 tok/s; offload to another node,
|
|
698
|
+
stream/shard instead of loading at once, or warn the owner. If your own output crawls, stop and say so.
|
|
699
|
+
- Tests: `turnWallClockMs` resolver (default/file/env/0=no-cap); full suite 912/912, typecheck + build clean.
|
|
700
|
+
|
|
701
|
+
## 0.1.179 — 2026-10-03 — skills catalogue usable end-to-end + reliable web search
|
|
702
|
+
- **Community skills are fetchable again.** `skill_fetch` URL-encoded the slug, turning the `:` in community
|
|
703
|
+
slugs (`community__axehub:ClawHub:…`) into `%3A` → 404 — so Operator could *list/search* the 65k catalogue
|
|
704
|
+
but not *use* any community skill. Curated slugs have no special chars, which hid the bug. Now keeps `:`
|
|
705
|
+
literal. Verified e2e on JL1 via the real handler: `skill_fetch("community__axehub:ClawHub__ClawHub__Baidu")`
|
|
706
|
+
returns full content; curated still works; `skill_list` already reached community skills.
|
|
707
|
+
- **web_search returns results again.** The default SearXNG engine set (`brave,mojeek,google,startpage`) was
|
|
708
|
+
half-dead from server/container IPs — Brave "Suspended: too many requests", Google "access denied" — so a
|
|
709
|
+
query that included them returned ZERO even against a healthy container. Default is now `mojeek,startpage`
|
|
710
|
+
(both non-Microsoft, both verified: 10 results, 0 unresponsive). Override via `KODE_SEARXNG_ENGINES`.
|
|
711
|
+
- **Persona now points Operator at what it has.** Two standing sections: *Web search* (use `web_search` → local
|
|
712
|
+
SearXNG, auto-managed via Docker, self-provisioning; if it reports Docker unavailable, ensure Docker is
|
|
713
|
+
running and retry — "no results" means "start Docker," not "the web is down"; autopilot is a fallback only),
|
|
714
|
+
and *Skills* (check the 60k+ catalogue with `skill_list`/`skill_fetch` before building from scratch).
|
|
715
|
+
- **splice-site-video skill hardened.** Pipeline verified e2e (AV1 222KB + H.264 371KB). The poster step
|
|
716
|
+
hard-required libwebp (absent on JL1 → silent 558KB PNG); now falls back to a ~30KB JPEG, never PNG, and the
|
|
717
|
+
dependency claim is corrected.
|
|
718
|
+
|
|
719
|
+
## 0.1.178 — 2026-10-03 — session-aware ceilings (free reign for autonomy), Explanatory persona, live dim reasoning
|
|
720
|
+
- **Per-session compaction ceilings — stop trading reign for speed.** A single `compaction.ceilingTokens`
|
|
721
|
+
used to throttle *both* interactive and unattended sessions, so a tight "snappy" interactive value silently
|
|
722
|
+
strangled headless builds into a compaction-thrash loop. `compactionCeilingTokens(s, window, mode)` now
|
|
723
|
+
branches on `"interactive"` vs `"autonomy"`:
|
|
724
|
+
- **Interactive** stays tight (~24k default) so each owner-facing reply decodes fast — decode is
|
|
725
|
+
context-bound (measured ~45→9→5 tok/s as the live KV cache grows).
|
|
726
|
+
- **Autonomy** (`operator run/loop/board/dream`) rides high (~100k default, just under the 64GB swap cliff
|
|
727
|
+
~126k) so an unattended run holds the thread across a long multi-step mission instead of thrashing.
|
|
728
|
+
- Each mode has its own explicit override (`compaction.ceilingTokens` / `compaction.autonomyCeilingTokens`,
|
|
729
|
+
env `KODE_AUTONOMY_CEILING_TOKENS`); the other mode's value is deliberately ignored. Both are clamped by
|
|
730
|
+
the RAM-aware safe ceiling (`defaultCompactionCeiling`) so no box grows the KV cache into swap.
|
|
731
|
+
- **Headless `maxRounds` was never wired.** `session-factory.ts` never passed `maxRounds` to the Session, so
|
|
732
|
+
`operator run/loop/dream` fell back to the engine's 10-round floor and cut long missions short. Now passes
|
|
733
|
+
both the autonomy ceiling mode AND `maxRounds`; `autonomy.maxRounds` default 40 → 200 (a floor on effort,
|
|
734
|
+
not a hard cap — matches the documented foreground budget). `maxTurnTokens` stays unset by default, so
|
|
735
|
+
unattended runs are uncapped (free reign).
|
|
736
|
+
- **Explanatory persona default.** New standing directive in `basePersona`: narrate what+why before each tool
|
|
737
|
+
batch, surface reasoning and trade-offs for non-trivial work, use tables for comparisons/status, mermaid for
|
|
738
|
+
flows/architecture, labeled sections, and close each phase with a compact done/in-progress/next status
|
|
739
|
+
table. Clarity, reasoning, and diagrams are the norm — so the owner follows a long session by reading
|
|
740
|
+
Operator's words, not its tool output.
|
|
741
|
+
- **Live reasoning is visible through the whole workflow (dim).** The live transcript used to show the
|
|
742
|
+
model's thinking only in the gap *before* the answer started, then replace it with content. It now renders
|
|
743
|
+
the reasoning as a dim (lower-opacity) band *above* the full-weight answer for the entire turn,
|
|
744
|
+
height-bounded so the dynamic frame can't overflow. Data was already flowing (`liveReasoning` ref); this is
|
|
745
|
+
a pure render change (`ui/Transcript.tsx`).
|
|
746
|
+
- Tests: `settings.test.mts` adds coverage for the mode split, per-mode explicit overrides, cross-mode
|
|
747
|
+
isolation (an autonomy override must not leak into interactive), and the env knob. Full suite 908/908 green;
|
|
748
|
+
typecheck clean. (see `_ai-docs/decisions/2026-10-03-session-aware-ceilings.md`)
|
|
749
|
+
|
|
750
|
+
## 0.1.177 — 2026-10-02 — ESC-flush + autonomy wiring: sleep-consolidation fires, flywheel runs, headless ceiling fix
|
|
751
|
+
- Composer ESC is now context-sensitive: ESC mid-turn with a drafted message flushes it into the queue
|
|
752
|
+
(runs as the next turn via the turn-finally drain) THEN interrupts — "stop this and do my thing" in one
|
|
753
|
+
keystroke. Empty-draft ESC and every Ctrl+C stay plain interrupts; Ctrl+C never flushes. Pure
|
|
754
|
+
`interruptPlan()` reducer + shared `commitDraft()`; 6 tests.
|
|
755
|
+
- Sleep-time consolidation now actually fires. It was wired-inactive for two reasons, both fixed:
|
|
756
|
+
(1) `settings.autonomy.sleepConsolidation` was never threaded into `SessionConfig` — now passed at the
|
|
757
|
+
foreground session (cli.tsx) and the autonomy factory (headless `operator run/loop/dream`); NOT the bg
|
|
758
|
+
sub-agent factory (the scheduler is a singleton — sub-agents would clobber the foreground's, and
|
|
759
|
+
short-lived delegates shouldn't consolidate). (2) the scheduler armed its consolidation timer for a fixed
|
|
760
|
+
1s but `tryConsolidate()` aborts unless idle ≥ idleThresholdSec (30s) and never rescheduled, so it could
|
|
761
|
+
never run — now armed for the idle threshold.
|
|
762
|
+
- FlywheelProcessor was dead code (only a unit test called it). Wired `processAll()` into the consolidation
|
|
763
|
+
pass (SRFT masking + `flywheel/processed/` export for the training pipeline), best-effort so it can never
|
|
764
|
+
sink consolidation. Result surfaces `flywheelProcessed` in the sleep-consolidation log.
|
|
765
|
+
- Fix: the autonomy/headless factory called `compactionCeilingTokens(settings)` WITHOUT the window arg, so
|
|
766
|
+
the RAM-aware ceiling never applied to headless runs (left uncapped) — now passes the real aurora window.
|
|
767
|
+
- Carries the already-landed loop-guard hard-stop and `/artifacts` browser (Phase 1). Suite 897→(+flywheel/sleep tests).
|
|
768
|
+
|
|
769
|
+
## 0.1.176 — 2026-10-01 — GW-45 secrets at rest/in flight: redactSecrets + 0600 at every persist boundary
|
|
770
|
+
- The audit caught this box live: transcripts/events/spills world-readable (0644) with bearer tokens
|
|
771
|
+
inside, and the "secret-free" audit digest carrying `curl -H Authorization: ...` verbatim into the
|
|
772
|
+
POSTed event stream. Fixed at the code, not the doc: pure node-free redactSecrets (format-exact
|
|
773
|
+
vendor shapes, idempotent, no heuristics) on both EventSink boundaries + digestArgs slicing;
|
|
774
|
+
0o600/0o700 on events, spill, and session-autosave paths. Transcripts stay byte-faithful (resume
|
|
775
|
+
ground-truth) and are protected by mode instead. +3 tests incl. end-to-end EventSink mode+mask.
|
|
776
|
+
|
|
777
|
+
## 0.1.175 — 2026-10-01 — GW-44 audit hotfixes: stream deadlines (H1), instant-path backstop (H2), verify honesty (H3)
|
|
778
|
+
- H1: wedged decode can no longer deadlock the endpoint gate — 90s idle / 30min wall deadlines on the
|
|
779
|
+
SSE loop, transient-classed so selfheal failover owns recovery (KODE_STREAM_IDLE_MS /
|
|
780
|
+
KODE_REQUEST_TIMEOUT_MS).
|
|
781
|
+
- H2: the INSTANT (pre-written) compaction path now carries the SAME GW-31/N1 guarantee as the live
|
|
782
|
+
path (shared applyAnchorVerification helper; anchors + verbatim user voice; still zero model calls).
|
|
783
|
+
- H3: verified:true is unfakeable end-to-end — grandmaster exec runs pipefail (like GW-35's tool shell)
|
|
784
|
+
and isVerifyCmd rejects command substitution/backticks behind allowlisted heads.
|
|
785
|
+
- +4 tests (live wedge server + slot-release assertion; npm-test-pipe-fail verified:FALSE receipt;
|
|
786
|
+
instant-path regression). Decision doc: _ai-docs/features/2026-10-01-gw44-audit-hotfixes.md.
|
|
787
|
+
|
|
788
|
+
## 0.1.174 — 2026-10-01 — ACP model picker (GW-40): the editor dropdown — both protocol generations
|
|
789
|
+
- Zed now shows a real model selector: configOptions(category:"model") on session/new + legacy
|
|
790
|
+
setSessionModel + spec-exact config_option_update, all switching through Session.setModel (one
|
|
791
|
+
source of truth with /model, MOA guard included). SDK 0.4.5 predates the stabilized config-options
|
|
792
|
+
RFD, so a ~60-line wire shim translates session/set_config_option -> set_model and answers with the
|
|
793
|
+
complete config state; unrelated frames byte-identical; non-model configIds NOT falsely claimed.
|
|
794
|
+
- Honesty invariants pinned by tests: MOA listed only when configured; stale currentValue falls back
|
|
795
|
+
to a real option; refused switch shows the editor the true error. +5 tests; 874/0 un-piped.
|
|
796
|
+
- Decision doc: _ai-docs/features/2026-10-01-acp-model-picker.md. Next: GW-41 egress firewall, GW-43
|
|
797
|
+
'auto' enters this exact surface as one option value.
|
|
798
|
+
|
|
799
|
+
## 0.1.173 — 2026-10-01 — N1 verified compaction: wide audit + deterministic ANCHOR REPAIR + honest residual
|
|
800
|
+
- GW-31's first release had a FALSE GREEN by construction: the 40/category cap lived inside
|
|
801
|
+
extractAnchors, so the audit never SAW overflow — a 60-sha span "passed" with 20 unchecked. Now the
|
|
802
|
+
audit measures at 1000/category (25x the render budget), compact() force-appends spilled identifiers
|
|
803
|
+
as a bounded ANCHOR REPAIR block (deterministic, zero model calls, rides inside the summary msg),
|
|
804
|
+
and the uncarryable residual is REPORTED in-block and via opts.onVerification{repaired,residual}.
|
|
805
|
+
Loss semantics fixed too: measured against the FULL output ([summaryMsg, ...kept]), not just the note.
|
|
806
|
+
- +3 tests (60-sha overflow -> residual 0 + all present; ordinary -> zero-overhead no-block; 1200-sha
|
|
807
|
+
pathological -> capped block <12KB with residual ADMITTED). Decision doc alongside the code (kiyoko).
|
|
808
|
+
|
|
809
|
+
## 0.1.172 — 2026-10-01 — web_fetch render ladder: Jina Reader fallback (default-ON) kills the 403 dead-end
|
|
810
|
+
- Root cause of "why is web fetching failing on operator": the ONLY 403/429 escape hatch was the
|
|
811
|
+
autopilot renderer, KODE_AUTOPILOT_URL is unset on fleet boxes, and there is no headless browser —
|
|
812
|
+
every Cloudflare-fronted site (x.ai, HN mirrors, blogs) dead-ended in a `note:` line with no path.
|
|
813
|
+
- New rung: public Jina Reader (r.jina.ai/<url> -> markdown). KODE_JINA_URL swaps to self-hosted,
|
|
814
|
+
KODE_JINA_KEY for rate limits (keyless tier = 20 RPM), KODE_WEB_RENDER=0 disables entirely (tests +
|
|
815
|
+
privacy). Honest-identity lesson MEASURED tonight: the tool's primary fetch MUST spoof a browser
|
|
816
|
+
(origin sites gate on bot UAs) but the RENDERER must send `operator/kode-tsi` — a Chrome UA string
|
|
817
|
+
from node's TLS fingerprint is Cloudflare's favorite 403 (UA/TLS mismatch). Guidance text now names
|
|
818
|
+
the failed rungs instead of lying about having none.
|
|
819
|
+
- Tests: web-fetch-render-ladder.test.mts +3 (mock-server ladder: success, short-stub rejection,
|
|
820
|
+
render-off switch); existing graceful-403 tests pinned KODE_WEB_RENDER=0 (unit suites never network).
|
|
821
|
+
Live proof: x.ai/blog 403 -> 19,043 chars of markdown through the ladder.
|
|
822
|
+
- Decision doc: _ai-docs/features/2026-10-01-webfetch-render-ladder.md (incl. the UA/TLS honesty rule)
|
|
823
|
+
|
|
824
|
+
## 0.1.171 — 2026-10-01 — Enterprise wave II: staleness-gated compaction, verified context surgery, shell pipefail guard, relay dormancy + offline inbox (SECURITY) verified context surgery, shell pipefail guard, relay dormancy + offline inbox (SECURITY)
|
|
825
|
+
- compactNow's pre-written (instant compaction) path trusted the rolling summary with NO staleness and
|
|
826
|
+
NO coverage check: turns added after the last rolling fire but below its 5000-token/3-batch cadence —
|
|
827
|
+
the normal quiet-turn regime — were silently evicted behind a summary that predates them. Now the
|
|
828
|
+
prewritten is used only when !isStale() AND the fire-watermark (markSummaryFired(turnCount), new
|
|
829
|
+
optional arg; callers that omit it degrade to the live path, never to loss) covers every evicted
|
|
830
|
+
turn. Uncovered => live compact() (refuses to destroy history on summarize failure) + GW-10
|
|
831
|
+
lossless offload in fitToWindow. Instant path still fires when genuinely safe (pinned by tests).
|
|
832
|
+
- Root-caused while testing: RollingSummarizer persisted to ONE GLOBAL summary.md — concurrent
|
|
833
|
+
sessions clobber it and the operator's unit suite (which creates a testDir but never threaded it)
|
|
834
|
+
read/wrote LIVE PRODUCT STATE. Added summaryPath injection (opts + SessionConfig.rollingSummaryPath;
|
|
835
|
+
default unchanged), made rolling-summary.test.mts hermetic through it, purged the polluted file.
|
|
836
|
+
Per-session keying = follow-up row on GW-27. Decision doc: _ai-docs/features/2026-10-01-compact-staleness-gate.md
|
|
837
|
+
- test/compact-staleness.test.mts +3 — regression REPRODUCES the silent loss on pre-fix code (old
|
|
838
|
+
session.ts fails tests 1&3; fixed 3/3). Suite 853/0 (112 files), tsc clean, neutral bundle OK.
|
|
839
|
+
- compact() appends mechanically-extracted ANCHORS (shas/uuids/#refs/versions/flags/paths/urls/unit-numbers,
|
|
840
|
+
capped per category; bare integers deliberately excluded) + the ORIGINAL mission and last 3 user turns
|
|
841
|
+
verbatim to every summary — the guarantee behind the prompt's promise. anchorLossAudit(pre,post) exported:
|
|
842
|
+
the canary + flywheel-integrity primitive. +5 tests incl. a negative control so the audit cannot rubber-stamp. Decision doc: _ai-docs/features/2026-10-01-context-surgery-anchors.md
|
|
843
|
+
(Entry restored: #12's changelog write died with its pipe-masked chain — see GW-35's whole point.)
|
|
844
|
+
- **The verify-gate bypass is closed.** The persistent shell ran WITHOUT pipefail, so
|
|
845
|
+
`npm test | tail -1` reported tail's exit 0: a failing check hidden behind a pipe looked green to
|
|
846
|
+
the model AND silently cleared verify-before-done (verify-gate parses the [exit N] trailer; missing
|
|
847
|
+
= pass). The session now sets `set -o pipefail`; shellResultNotes() normalizes `| head`-truncation
|
|
848
|
+
SIGPIPE (141) to an honest 0-with-note so benign truncations don't false-fail, and appends exact
|
|
849
|
+
rewrite hints for the failure classes that cost this fleet hours today (BSD sed 'X,+Np' /
|
|
850
|
+
'invalid command code', grep -P, missing timeout, pipefail exit-1 stage ambiguity).
|
|
851
|
+
- bash tool description documents the new semantics (models must know the contract).
|
|
852
|
+
- test/shell-guard.test.mts +5 against a REAL shell session (incl. the discovery that a 25KB producer
|
|
853
|
+
never SIGPIPEs — the fixture must overflow the 64KB pipe buffer; the test suite taught the author).
|
|
854
|
+
Suite 858/0 (113 files). tsc clean. Registry keeps shell-session lazily imported (bundle graph safe). Decision doc: _ai-docs/features/2026-10-01-shell-pipefail-guard.md
|
|
855
|
+
- Host disconnect no longer deletes the session: it goes DORMANT (15-min TTL, env-tunable), stays
|
|
856
|
+
- Decision doc: _ai-docs/features/2026-10-01-relay-dormant-offline-inbox.md
|
|
857
|
+
owner-visible in `list`, and BUFFERED follower drive frames (FIFO 32) flush to the SAME-owner re-hello
|
|
858
|
+
(`welcome.resumed:true`) — prompts/approvals typed during an operator update or the mobile host-start
|
|
859
|
+
toggle race no longer silently vanish (research-04 #2's fix, relay-side, hosts/followers unchanged).
|
|
860
|
+
- **SECURITY**: resume used to overwrite ownerSub with the helloer's identity — any valid token + leaked
|
|
861
|
+
sessionId hijacked a live session (transport + follower fan-out). Resume now demands the same owner
|
|
862
|
+
(`scope` reject, pinned) and never steals a LIVE host (`host-busy`). Both guards have tests.
|
|
863
|
+
- Relay e2e 33/33 (+6 new scenarios: dormant-not-deleted, hijack reject, resume flush FIFO ×2, TTL sweep).
|
|
864
|
+
|
|
7
865
|
## 0.1.170 — 2026-10-01 — GW-05/GW-06: prefix-cache telemetry + oracle cold-start seed + GW-10 completion
|
|
8
866
|
- **Cache telemetry (aurora.ts).** The server was already telling us the exact answer and we were discarding
|
|
9
867
|
it: parse `timings.cache_n` / `usage.prompt_tokens_details.cached_tokens` into `ChatResult.cacheN`, threaded
|