Drop per-tool host/container sandbox; schedule semantic vector memory

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.
This commit is contained in:
adm committed 2026-11-25 18:08:04 +01:00
1 parent 765c197b95
commit fb9b822f58
4 files changed
+43 -29

No files matched your search

+27 -16
View File
@@ -167,17 +167,14 @@ answer, token by token), `tool_call` / `tool_result` (every command and its outp
inline) and `final` — so the wait is always visible progress, **observability without
a confirmation gate**.
Two operating modes are planned, separated by the *environment* rather than per-call
approval:
- **Base / host mode** (implemented): `shell_exec` runs directly on the host via
`bash -lc`, starting in the session's **personal folder** by default (override with
`cwd`), with a timeout and an output cap. This is a trusted machine; the agent has
the same freedom you would give a local operator.
- **Isolated mode** (planned): the same tool routes to a sandboxed runner — the
team's Docker-container MCP server. The user supplies the container; provisioning
is on them. Execution sits behind a `ShellRunner` trait, so the isolated runner
plugs in without touching the agent loop.
Safety is an **environment boundary, not a per-tool sandbox**: `shell_exec` always
runs via `bash -lc` on whatever machine the framework runs on, starting in the
session's **personal folder** by default (override with `cwd`), with a timeout and
an output cap. There is deliberately **no host-vs-container tool split** — if you
want stronger protection, run *strata-ctl itself* inside a container, a VM or an
isolated machine; the agent then only ever sees that environment. Execution sits
behind a `ShellRunner` trait (useful for tests and alternate runners), with no
per-call confirmation gate and no separate "isolated" tool backend.
## Architecture
@@ -256,11 +253,25 @@ returns a clear 400), multi-slot batching, logprobs / structured output, automat
engine restart after a crash, a full SSRF guard against DNS rebinding, and the
OpenAI Responses native endpoint. The Anthropic adapter covers the core cases but
not yet the `defer_loading` / `tool_addition` / `tool_reference` tool machinery, the
thinking `budget_tokens` mapping, or prompt-cache token accounting. The GUI agent's
**isolated mode** (Docker-container runner) is still to come; base/host agent mode,
per-session settings (copy-on-create), session notes, immutable names, personal
workspace folders and file/image upload (shared store, token-based routing,
images via Vision) work.
thinking `budget_tokens` mapping, or prompt-cache token accounting. Base/host agent
mode, per-session settings (copy-on-create), session notes, immutable names,
personal workspace folders and file/image upload (shared store, token-based
routing, images via Vision) work. Per-tool host/container sandboxing was
**deliberately dropped**: protection comes from where you run the framework
(container / VM / isolated host), not from a second tool backend.
## Roadmap
**Next headline feature — semantic vector memory (scheduled, not built).** A
Qoder-style vector database giving the agent long-term, cross-session semantic
recall, useful well beyond coding: embed and index conversation chunks, session
notes, uploaded documents and learned facts, then retrieve by similarity to inject
the relevant context into a turn, plus explicit *remember* / *semantic search*
tools. Recommended shape, preserving the single-binary property: an embedded
vector index inside the existing SQLite store (**sqlite-vec**) behind the `Store`
trait, fed by a small local multilingual embedding model run in-process. The
planned ArangoDB backend already offers vector indexes, so the same seam carries
over when the store is swapped.
## License and credits