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:
1 parent
765c197b95
commit
fb9b822f58
4 files changed
+43
-29
No files matched your search
+6
-5
@@ -1,12 +1,13 @@
|
||||
//! The GUI agent: a bounded model↔tool loop that lets the UI-managed model act.
|
||||
//!
|
||||
//! The agent's universal tool is `shell_exec` (see [`shell`]). The execution mode
|
||||
//! is chosen by the [`shell::ShellRunner`] implementation: base mode runs on the
|
||||
//! host ([`shell::HostShell`]); the isolated mode will route to a sandboxed runner
|
||||
//! (e.g. the team's Docker-container MCP server) behind the same seam.
|
||||
//! The agent's universal tool is `shell_exec` (see [`shell`]). Execution runs on
|
||||
//! the host ([`shell::HostShell`]) behind the [`shell::ShellRunner`] seam, which
|
||||
//! is kept for tests and alternate runners. There is no per-tool host/container
|
||||
//! split: stronger protection comes from running the whole framework inside a
|
||||
//! container, VM or isolated machine, so the agent only sees that environment.
|
||||
//!
|
||||
//! [`run_loop`] is pure orchestration — generic over the "model step" — so it is
|
||||
//! testable without the engine and independent of the execution mode.
|
||||
//! testable without the engine and independent of the concrete runner.
|
||||
|
||||
pub mod shell;
|
||||
|
||||
|
||||
+8
-6
@@ -2,9 +2,11 @@
|
||||
//! output. A shell is a universal tool — with it the agent can do file ops, run
|
||||
//! programs, inspect the system, fetch the web via curl, git, etc.
|
||||
//!
|
||||
//! Execution sits behind the [`ShellRunner`] seam. Base mode ([`HostShell`]) runs
|
||||
//! directly on the host (a trusted machine); an isolated/sandboxed runner can
|
||||
//! implement the same trait later without touching the agent loop.
|
||||
//! Execution sits behind the [`ShellRunner`] seam and runs on the host
|
||||
//! ([`HostShell`]). Protection is an environment boundary: run the framework
|
||||
//! itself in a container, VM or isolated machine for stronger isolation — there
|
||||
//! is no separate per-tool sandbox backend. The trait stays for tests and
|
||||
//! alternate runners.
|
||||
|
||||
use std::future::Future;
|
||||
use std::pin::Pin;
|
||||
@@ -56,8 +58,8 @@ impl ShellOutput {
|
||||
|
||||
type ShellFuture<'a> = Pin<Box<dyn Future<Output = Result<ShellOutput>> + Send + 'a>>;
|
||||
|
||||
/// The execution seam: base mode runs on the host; a sandboxed runner replaces it
|
||||
/// for the isolated mode. Dyn-compatible so the agent loop can hold `Arc<dyn _>`.
|
||||
/// The execution seam: runs on the host by default; alternate runners (e.g. in
|
||||
/// tests) implement the same trait. Dyn-compatible so the loop can hold `Arc<dyn _>`.
|
||||
pub trait ShellRunner: Send + Sync {
|
||||
fn run<'a>(
|
||||
&'a self,
|
||||
@@ -67,7 +69,7 @@ pub trait ShellRunner: Send + Sync {
|
||||
) -> ShellFuture<'a>;
|
||||
}
|
||||
|
||||
/// Base mode: execute directly on the host via `bash -lc`.
|
||||
/// Execute directly on the host via `bash -lc`.
|
||||
pub struct HostShell;
|
||||
|
||||
impl ShellRunner for HostShell {
|
||||
|
||||
Reference in new issue
Block a user