Safety is an environment boundary of the whole process, not a per-tool
sandbox: run strata-ctl itself in a container/VM/isolated machine for
stronger protection. The planned "isolated mode" (Docker-MCP ShellRunner)
is cancelled; ShellRunner stays only as a test/alternate-runner seam.
README + agent/shell/sessions comments updated accordingly.
Add a Roadmap section with the next headline feature: a Qoder-style
semantic vector memory (embed + index conversation chunks, notes,
uploads, learned facts; similarity retrieval injected per turn plus
remember/search tools). Recommended shape: embedded sqlite-vec in the
existing SQLite store behind the Store trait + a small local multilingual
embedder; carries over to the planned ArangoDB vector indexes. Scheduled,
not implemented.
- GUI: agent mode (tools) enabled by default; the 🤖 toggle still turns it off.
- shell_exec defaults to the session's personal folder (~/.strata-ctl/sessions/<name>)
when the model omits cwd, so the agent's home base matches its identity reminder;
full host access retained (cd / absolute paths). run_loop gains a LoopContext
(runner/store/default_cwd/max_iters/progress) to stay within the arg-count lint.
- Agent final answer now streams live: the model step uses service.stream, emits
AgentEvent::Delta (reasoning + content) while generating, and returns the
accumulated response for tool detection + persistence. The GUI renders a live
assistant bubble (thinking auto-opens, folds when the answer starts) instead of
receiving the whole final answer at once.
- Verified live: 76 delta events over 10.75s, pwd -> sessions/<name>, correct answer.
- 122 tests + 2 ignored; clippy/fmt clean.
- SessionSettings instance per session (system_prompt, notes, sampling), snapshotted from global defaults at creation (copy-on-create); editing a session affects only it, editing globals affects only future sessions. Global defaults template stored in DB, seeded from config; GET/PUT /api/settings/defaults.
- Framework-assigned evocative names (word list, src/name.rs) replace the auto-title (removed). Name editable only before the first interaction, then locked (name_locked); PATCH rejects post-lock rename. Session notes carry the user-defined purpose.
- Idempotent migration adds settings_json/name_locked and backfills old sessions; build_request uses the session's own settings snapshot. 112 tests green, clippy/fmt clean; verified live (migration, name lock, settings isolation).
- agent:🐚 native shell_exec (bash -lc, cwd, timeout, 64 KiB output cap)
behind a ShellRunner seam — base/host mode now; an isolated Docker-MCP runner
plugs in later without touching the loop. OpenAI function declaration included.
- agent::run_loop: bounded model<->tool orchestration, generic over the model
step so it is unit-testable without the engine. Persists the full trajectory
(assistant tool-call turns + role:tool results + final answer) and emits
tool_call / tool_result / final / error progress events.
- api::sessions: POST .../chat with agent:true drives the loop and streams the
events as SSE; the GUI shows commands + output inline (observability, no gate).
- store: messages gains tool_call_id; an idempotent migration adds the column to
pre-existing databases (CREATE TABLE IF NOT EXISTS does not alter them).
- web: robot agent toggle, tool-call/output blocks, history rendering of tool
turns; inline favicon to silence the favicon 404.
Validated LIVE on engine 0.1.67: the model called shell_exec('uname -a'), the
host executed it, and the model reported the output; trajectory persisted; GUI
verified by browser (toggle, tool block, output, final answer). 106 tests +
2 ignored green, clippy/fmt clean. Isolated mode (user-provided Docker container)
is the next step.