[!NOTE] Historical. This is the first plan for Saci, written before the implementation. The user documentation describes the current behavior.
Build a simple AI-based test engineer that executes human-authored Markdown test plans against configured environments. The system follows the plan and records evidence. It can change test resources when instructed by the plan, but does not invent repair steps or patch application code.
The design is guided by three principles:
rmcp. The coding agent chooses compatible versions and a minimal layout; simplicity and code quality take priority over specific dependency choices.clippy.toml and Cargo Rust/Clippy lint enablement, inherited by every workspace crate. Keep Clippy warnings enabled as errors in CI. Use edition 2024 and a supported pinned toolchain with consistent MSRV declarations./api/v1/<problem-domain>, using standard resource naming, HTTP semantics, JSON, documented errors, and an OpenAPI contract.Web / desktop / TUI clients
|
v
Backend API and coordinator
|
v
Short-lived per-run worker
|
v
Configured target environment
Clients submit runs and display progress, results, and evidence. The first client can be simple; the backend API should allow web, desktop, and TUI clients to be added over time.
The backend validates run requests, stores run history, applies outcome policies, starts workers in its own infrastructure, and collects worker events and results.
The backend starts one short-lived worker per run. A worker receives the run specification and only the tools and secrets required for that run. It executes the plan, records its actions and observations, reports results to the backend, and is removed after completion.
The target environment must be reachable from the backend’s infrastructure. This is part of environment setup.
The backend uses a worker-launcher boundary so the same worker image can run in both deployment modes:
PATH. Required test utilities and stdio MCP binaries must be available in the worker’s PATH. Configure runtime selection and reachable network addresses explicitly.The initial Kubernetes deployment is single-replica and stores run data in SQLite on a PersistentVolumeClaim. This avoids requiring a separately provisioned database while retaining run history across pod restarts. Scaling the backend beyond one replica or adding a shared database is a later design decision.
Each run is defined by three inputs:
Plans use GitHub Flavored Markdown with conventions modeled on Wanaku: phases, numbered tests or steps, prose and fenced commands, and explicit expected results. The authoring guide defines the conventions and reusable procedure bundles. For example:
# Test Plan: Example workflow
## Phase 1: Service availability
### Test 1.1: Check service health
Send an HTTP GET request to the service health endpoint.
**Expected result:**
- The response status is 200.
The CLI will provide saci new test-plan <file.md> to generate an editable plan from a bundled starter template. This command works without a backend or LLM and refuses to overwrite existing files. The guide, template, CLI help, and parser must stay aligned.
Plans cannot add tools or MCP servers to a run. Structure is parsed deterministically; the agent interprets actions and evaluates expected results within the parsed execution units. Run context must preserve variables, helper functions, working directories, and files needed by subsequent steps. These conventions follow Wanaku’s style; existing plans may need explicit expected results or execution headings added.
An environment may contain:
Stable values belong in the environment; test-specific values can be supplied with the plan or run request.
Workers use an OpenAI-compatible Chat Completions API with function tool calling through the selected Rust agent library. Configure a base URL, explicit tool-capable model, and optional API credential reference. This supports a common connection contract for providers such as OpenRouter and a reachable local Ollama service. The initial implementation uses one backend-default connection inherited by workers. Library defaults must preserve the selected API, execution limits, and sequential tool behavior.
Spending budgets and quotas are managed by the API provider or local service operator. Saci does not require monetary budgets, token allowances, or cost accounting. Timeouts and model/tool call limits remain runtime controls to stop stalled execution. See the execution contract for settings and error behavior.
Run policy specifies what happens after success or failure. It may configure actions such as stopping, retrying, requesting human approval, or taking a follow-up action (for example, creating or updating a ticket). The default run is one pass through the plan. Any retries or external actions must be explicitly configured.
Keep policy separate from the environment: the environment describes how to connect and execute; policy describes how to respond to outcomes.
The worker has these built-in capabilities:
Additional capabilities are provided through configured MCP servers, such as browser automation or specialized integrations for databases and other systems. Use rmcp and its supported client transports and protocol-version negotiation. Available external outcome actions are configured MCP tool invocations, subject to run policy and approval settings. The run record should identify which tools were called and retain their relevant results. MCP servers are configured for an environment or run; a plan cannot introduce an arbitrary server.
The system does not require a pre-run approval. Human approval can be configured as a policy action when appropriate.
For each run, retain at least:
MCP is the tool extension point for the initial design. Hooks or plugins may later customize behavior around execution or outcomes, but they are not required for the default workflow and should not complicate the first implementation.
The worker execution contract defines sequential execution, preserved shell context, expected-result evaluation, evidence, statuses, runtime limits, failure policy, cleanup, and LLM settings. The implementation ticket drafts break this design into ordered tasks and acceptance criteria for the maintainer to create as issues.
/api/v1/<problem-domain>, configurable execution defaults, and detailed parser diagnostics.PATH, document networking, and define worker isolation and namespace-scoped RBAC.rmcp for supported MCP transports and version negotiation; document enabled features, credential injection, and configured outcome-action approvals.saci new test-plan <file.md>, run request, environment, policy, step events, and report types. Deliver the authoring guide, bundled template, and examples together.