Published deterministic proof from app/public/proof.json · 14 / 14 checks. Bounded fixtures, not a business-ROI claim.
UNTIL is an open autonomous product framework for owners, CEOs and CPOs who want product work to move without manually coordinating every role. You set the business outcome, metric, budget and risk limits. UNTIL turns real customer or product signals into research, the next priority, a bounded specification, implementation, independent acceptance, a verified local release candidate and the next outcome-driven cycle.
Owner’s goal → research → priority & spec → implementation → independent test → release candidate → observed outcome → next work.
A finished LLM answer is never accepted as proof of finished product work. The builder cannot accept its own work, and the system cannot rewrite the owner’s goal, grant itself rights or invent missing evidence.
Engineering MVP 0.3. The published proof now includes an actual repository change with a failing-before/passing-after Node test, an immutable two-file release candidate, and a test-driven repair loop: the builder is given the project's own failing check as feedback and retries until it passes, with the workspace restored byte for byte if the budget is exhausted. It proves the control plane and a measured improvement on bounded JSON deliverables—not universal team replacement, arbitrary LLM quality, production deployment or business ROI. Start with low-risk, authoritatively verifiable digital-product tasks.
What moves without manual coordination
- Research: observed incidents, interviews and product signals stay linked to the opportunity they support.
- Priority and specification: an open outcome creates the next bounded contract with owner-locked acceptance checks.
- Implementation: a deterministic executor or separately sandboxed coding agent receives the contract; nobody needs to chase a status meeting.
- Test-driven repair: the builder is handed the project's own failing check and retries until it passes — bounded attempts, allowlisted paths, byte-for-byte restore on exhaustion.
- Independent acceptance: another role executes authoritative checks, including a real repository test.
- Delivery: accepted files become a content-hashed local release candidate, not an unexamined production deployment.
- Follow-through: a post-release observation closes the outcome or creates the next cycle.
Why another agent framework?
Role-playing teams, PM copilots, coding agents, research moderators and software factories already exist. UNTIL is the neutral outer loop between them:
- Self-directed work: open outcome deficits generate tasks; agents do not wait for a new prompt after every answer.
- Durable execution: SQLite WAL, leases, retry/backoff, dead-letter, dependencies and crash recovery.
- Fail-closed stop: a persistent epoch rejects late completions before they can release dependent work.
- Evidence gate: synthetic personas can improve research, but cannot unlock delivery.
- Role capabilities: builders never verify themselves; agents cannot grant themselves rights, budgets or evals.
- Independent acceptance: file, hash, JSON, content and registered command checks instead of “trust me”.
- Idempotent delivery: verified artifacts become local release candidates with content-hash receipts and an outbox.
- Bounded evolution: strategy candidates face selection and separate held-out fixtures, safety checks and lineage.
- Model neutrality: hosted or local OpenAI-compatible endpoints per role; zero-cost replay fixtures for CI.
- Honest proof: raw traces, test reports, benchmarks, limitations and reproducible commands are published with the product.
Read the market analysis and architecture.
Quick start
Requirements: Node.js 24+. The core has zero runtime npm dependencies and needs no account, telemetry, model key or network for its deterministic proof.
git clone https://github.com/Balanov/until.git
cd until
npm ci --ignore-scripts
npm test
npm run proof
node bin/until.mjs demo
demo runs an explicitly marked deterministic fixture: six role-separated tasks from a real interview fixture to a verified local release candidate, followed by a metric observation and achieved. It also evaluates a strategy on held-out fixtures. This proves the loop, not model intelligence.
Run a goal yourself
node bin/until.mjs init --goal examples/goal.json
node bin/until.mjs signal add examples/interview.json
node bin/until.mjs run --cycles 8
node bin/until.mjs status
node bin/until.mjs audit
State, artifacts and local release candidates live under .until/ in the selected workspace. The default workspace is the current directory; choose another with --workspace DIR or a different database with --state FILE.
Start from a real repository
node bin/until.mjs init --from-repo /path/to/repo
This inspects the repository, detects how the project proves itself (node --test, npm test, python -m pytest, cargo test, go test ./..., mvn test, gradle test, make test) and writes a ready-to-run goal whose acceptance gate is the project's own test command, plus the matching check profile. Merge the generated checks into until.config.json, then until init --goal until.goal.json.
Bring evidence in
node bin/until.mjs import --file support.csv --goal goal_x --kind support --source helpdesk
node bin/until.mjs import --file support.csv --goal goal_x --kind support --source helpdesk --consent
Records without an explicit consent assertion are stored with consent = 0: they can produce a hypothesis but can never unlock delivery or a release. --consent is the operator's assertion that the file carries participant consent.
Check the installation
node bin/until.mjs doctor
node bin/until.mjs replay task_123
doctor reports the runtime version, workspace writability, database integrity, the event hash chain, dead-lettered tasks, expired leases, pending external actions, goals without baseline/target, blocked goals and real-kind signals without consent. replay returns a dead-lettered task to the queue without reusing its idempotency key.
Add a post-release observation and run again:
node bin/until.mjs signal add examples/metric.json
node bin/until.mjs run --cycles 2
Try the evidence boundary instead:
node bin/until.mjs signal add examples/synthetic.json
node bin/until.mjs run --cycles 8
A synthetic-only goal produces an interview guide and waiting_evidence, not a delivery task.
Keep the outer loop running
node bin/until.mjs start
# in another process
node bin/until.mjs stop
node bin/until.mjs reset
start keeps observing and working without burning tokens while idle. stop advances the persistent epoch and rejects late work. reset clears the stop latch but never reuses an epoch. Task, model-call and cost budgets are available through --tasks, --model-calls and --max-cost.
Connect a model
Copy until.config.example.json to until.config.json and configure models that are actually available. Ollama, LM Studio, llama.cpp and hosted OpenAI-compatible APIs use the same boundary.
{
"models": {
"researcher": {
"type": "openai-compatible",
"baseURL": "http://127.0.0.1:11434/v1",
"allowedOrigins": ["http://127.0.0.1:11434"],
"model": "qwen3:8b",
"timeoutMs": 120000
}
}
}
For a hosted provider add apiKeyEnv and an optional price card. The name of the environment variable is stored in config; the secret is read only from the environment and is never written to SQLite, traces or proof bundles. Unknown cost is null, not a fake zero.
Model output is validated against strict role-specific JSON Schemas and existing evidence IDs. Compatible providers receive response_format: json_schema; set structuredOutputs: false globally or on one model if the endpoint does not support it. External text, tool output and repository content are untrusted data, never authorization. Roles without a configured model use the explicit deterministic fixture implementation.
For a live model delivery, supply authoritative acceptance in the goal. The owner agent may add constraints but cannot discard them; without these checks a live contract stops instead of inventing its own definition of done:
{
"policy": {
"acceptance": [
{ "type": "json_field", "field": "implementation.feature", "equals": "preview-import-errors" }
]
}
}
traceResponses: true opts into storing raw model content for export. Treat it as sensitive: review traces before sharing them. Export a proof bundle with node bin/until.mjs export --output proof.json; it includes tasks, verdicts, receipts, events, available model responses and integrity hashes. No secrets are intentionally exported.
Execution boundary
The built-in executor creates only bounded experiment artifacts inside .until/artifacts/. It does not deploy production code.
An external coding harness can be registered as an argv profile with no shell interpolation. It runs only with sandboxConfirmed: true in a separately configured OS, VM or container sandbox. It cannot verify itself, publish, change the goal or execute arbitrary model-authored command profiles.
High-risk contracts stop with blocked_risk unless a separate risk boundary is deliberately implemented. Production deployment, payments, outreach and IAM changes are outside the default release path.
See SECURITY.md.
Builder protocol
A builder is a registered argv profile that receives one JSON object on stdin and returns one JSON object on stdout. Two protocols are supported.
until-builder/v1 — the harness edits the workspace itself and returns a summary:
{ "type": "repository_change", "summary": "Removed the duplicate activation step", "repositoryChange": true }
until-builder/v2 — the harness returns the edits and the engine applies them, so the same harness can be re-run with the failed check as feedback:
{ "status": "done", "notes": "…", "edits": [{ "path": "src/activation.js", "content": "…" }] }
Test-driven repair loop
When the goal declares goal.policy.build.testProfile, the builder runs in a loop:
- the harness proposes a change;
- the engine applies it inside the workspace, rejecting any path outside
goal.policy.build.allowedPaths and any excluded directory;
- the engine runs the project's own check profile;
- on failure the harness is re-invoked with the failing output as feedback;
- when the attempt budget is exhausted the workspace is restored byte for byte and the change is rejected — it can never become a release.
The v1 protocol is adapted automatically: the engine detects what the harness changed and verifies it the same way.
{
"policy": {
"acceptance": [{ "type": "command_profile", "profile": "repoTest", "expect": { "exitCode": 0 } }],
"releasePaths": ["src/activation.js"],
"build": { "testProfile": "repoTest", "maxAttempts": 3, "allowedPaths": ["src/"] }
}
}
Evidence types
| Signal |
Can create |
Cannot prove alone |
| Real interview / support / incident |
Research and a bounded experiment |
Market size or profitability |
| Product metric / payment |
Baseline and observed outcome |
Causality without an experiment design |
| Reported / public source |
A sourced market hypothesis |
Your own customer demand |