Quickstart
Install, run the tests, start the API in fixture mode and seal your first receipt.
Hands-onYour first mission
Register a team, submit a mission, run it and read the proof.
ConceptsCore concepts
Team Graph, missions, executors, runtime-owned ToolCallRecord, Attribution Gate and ProofReceipt.
Integration · gatedNeurOSA memory
Storage backup confirmed; authenticated live recall and restart acceptance are still BLOCKED. Evidence first.
ReferenceHTTP API
91 method/path pairs in this source revision, including Delivery Lab, NVIDIA, Web3 and runtime. Generated from the permissions manifest; not evidence that every integration is live.
Start
Quickstart
You need Node.js 20 or newer. The deterministic fixture mode needs no API key.
- Clone and installDependencies are locked in
package-lock.json.git clone https://github.com/HazEOskA/osa-proof.git cd osa-proof npm ci
- Run the testsChecks that HTTP documentation matches the source manifest, builds TypeScript and runs the current node test suite. The pass/skip totals come from each actual test run, not this page.
npm test
- Start the API in fixture mode
OSA_EXECUTION_MODEis required. There is no default: a missing or unknown value refuses to start. Login is on by default (auth modes).npm run build OSA_EXECUTION_MODE=fixture PORT=3000 node dist/apps/api/src/server.js
- Switch to a real modelProvider mode calls Anthropic or OpenAI behind the
ModelProviderinterface. Missing provider, model or key refuses to start.OSA_EXECUTION_MODE=provider \ OSA_PROVIDER=anthropic \ OSA_MODEL=<model id> \ ANTHROPIC_API_KEY=<secret> \ node dist/apps/api/src/server.js
Your first mission
Register a two-agent Team Graph, submit a mission with one acceptance requirement, run it, and read the receipt. The server decides which implementation serves dev.planner.v1 and dev.builder.v1.
0. Log in (DEV)
TOKEN=$(curl -s localhost:3000/auth/dev-login -H 'content-type: application/json' \
-d '{"display_name":"Dev","email":"dev@example.com"}' | node -pe 'JSON.parse(require("fs").readFileSync(0)).session.token')Local-dev scope: POST /auth/dev-login assigns organization_id=org_dev_local to the session. The POST /teams and POST /missions examples must use that organization. A different organization returns 403 TENANT_SCOPE_DENIED. This is a local DEV identity, not a production operator authorization.
1. Register the team
curl -s localhost:3000/teams -H "authorization: Bearer $TOKEN" -H 'content-type: application/json' -d '{
"organization_id": "org_dev_local", "project_id": "project_dev", "team_id": "team_dev", "version": "1",
"agents": [
{ "agent_id": "planner", "role": "planner", "executor_ref": "dev.planner.v1" },
{ "agent_id": "builder", "role": "builder", "executor_ref": "dev.builder.v1" }
],
"edges": [{ "edge_id": "planner_to_builder", "from_agent_id": "planner", "to_agent_id": "builder", "kind": "handoff" }]
}'2. Submit the mission
curl -s localhost:3000/missions -H "authorization: Bearer $TOKEN" -H 'content-type: application/json' -d '{
"organization_id": "org_dev_local", "project_id": "project_dev", "mission_id": "mission_hello",
"team_id": "team_dev", "team_version": "1", "entry_agent_id": "planner",
"objective": "Write landing page copy", "input": { "request": "Write landing page copy" },
"requirements": [{ "requirement_id": "artifact_status", "type": "evidence_field_equals",
"evidence_kind": "artifact", "agent_id": "builder", "field": "status", "expected": "built" }]
}'3. Run it and read the proof
RUN=$(curl -s -X POST localhost:3000/missions/mission_hello/run -H "authorization: Bearer $TOKEN" | node -pe 'JSON.parse(require("fs").readFileSync(0)).run_id')
curl -s localhost:3000/runs/$RUN/proof -H "authorization: Bearer $TOKEN"Core concepts
All input surfaces use the same Team Graph. The runtime records events and its own tool calls; Attribution Gate v1 links recognized claims to responses, and the verifier computes the result. The absence of a recognized claim does not establish the validity of all facts.
Team Graph
Agents, their executor refs and the edges between them. Validated before every run. Today: linear handoff.
Mission
An objective, an input and explicit acceptance requirements. A mission without requirements is rejected.
Runtime and executors
Walks the graph and calls each executor through the ExecutorRegistry. Providers sit behind ModelProvider.
Evidence records
Bound to one execution. Core computes evidence_sha256 and content digests; executor hashes are claims. Calls through context.callTool() create a separate runtime record that an agent cannot replace with its own evidence.
Deterministic verifier
Checks binding, digests and mission requirements. Attribution Gate is enabled by default; recognized unsupported or contradicted claims can cause FAILED in enforcement mode.
Proof receipt
Sealed after the verdict: proof_id binds the result, evidence and output. Tool records use tool_call_refs/tool_call_root; egress is NOT_ENFORCED and the V2 signature is UNAVAILABLE. Signed ActionReceipts are separate.
How a run is proven
Six stages: Team Graph, mission, runtime, evidence, verifier and receipt. Runtime failures prevent VERIFIED. In enforcement mode, Attribution Gate may fail recognized unsupported claims; chat uses REPORT_ONLY, preserving observations without automatically rejecting the execution verdict. This integrity pipeline is not a network sandbox or an independent signature of origin.
Proof receipt
Historical sample from runtime commit a321fd2, dated 2026-09-28, trimmed for length. It is not a freshly replayed proof against current HEAD. This historical example lacks newer Attribution Gate v1 fields (claim_attribution, tool_call_root); VERIFIED concerns only the scope of recorded evidence. verifyProofReceipt recomputes committed hashes (integrity within the trusted inputs), not an independent attestation of origin. For an unanchored, unsigned receipt without trusted timestamps or an external append-only log, an actor able to rewrite the store could replace data and recompute matching hashes.
{
"proof_id": "proof_75811c7c721e14f4a0dddfee97259da39064852055b151b7dc0f88aead0ed04f",
"schema": "osa.proof_receipt.v2",
"verdict": "VERIFIED",
"run_id": "run_6101dd364aefa2249058d90f",
"execution_id": "exec_f73d431f-5087-412a-a355-c016bc06353a",
"mission_id": "mission_landing_copy",
"team_id": "team_dev",
"team_version": "1",
"requirement_verdicts": [
{
"requirement_id": "artifact_status",
"verdict": "VERIFIED",
"evidence_ids": [
"run_6101dd364aefa2249058d90f:exec_f73d431f-5087-412a-a355-c016bc06353a:evidence:2"
],
"reason": "evidence satisfied the explicit acceptance requirement"
}
],
"evidence_root": "6d9b4d9c90731c9101763365f143c6ea99d38ce4cd5ca0319e1d202751be8ddd",
"final_output_sha256": "ff9481445a64bdb1453610d917d4b3cb3ea0abb20eeb8b856dffa945ee13e663",
"created_at": "2026-09-28T09:21:00.000Z",
"verifier": {
"name": "osa-proof-deterministic",
"version": "2"
},
"evidence_refs": [
{
"evidence_id": "run_6101dd364aefa2249058d90f:exec_f73d431f-5087-412a-a355-c016bc06353a:evidence:1",
"evidence_sha256": "b5312892765aa0503e23762e89b48607b637f455501ae16632d9d1154281db66"
},
{
"\u2026": "1 more"
}
]
}| Verdict | When |
|---|---|
| Verified | Every requirement is met by evidence that passed binding and digest checks, and the runtime did not fail. |
| Failed | Evidence contradicts a requirement, fails an integrity check, or the runtime failed. |
| Incomplete | The evidence a requirement needs was never produced. |
Layers
One core, six entry points. School enters directly, Dev needs a DEV login, regulated layers fail closed until organization verification exists.
Auth modes
OSA_AUTH_MODE decides whether the API asks for a login. Unset means session. Any value other than session or open refuses to start.
| Mode | Where | Behaviour |
|---|---|---|
session | Default | Routes marked session in the generated API table need Authorization: Bearer <token> from POST /auth/dev-login (development) when session mode is active. Missing or revoked token: 401. This includes POST /runs/:id/labels. Routes marked public have no blanket login in session mode; extra scope or private-memory checks may still apply. |
open | Explicitly configured deployments (including some Preview and Production environments) | No login. Requests share the explicit OPEN MODE identity, and GET /build/status reports auth_mode: "open". This is not multi-user isolation. Regulated layers stay gated; additional access restrictions are endpoint-specific. |
Intelligence layer
Nine modules. Each one reports a status computed from its own proofs, not declared. The dashboard shows each report live under Intelligence in the sidebar. GET /intelligence returns every report with a report_sha256.
- No implementation: SOON.
- Implemented, but a required proof is missing, failing or throwing: PREVIEW.
- Every required proof passes and every dependency is LIVE: LIVE.
Registration below describes the built-in registry in this code revision, not the live status of a deployment. Query GET /intelligence in the target environment for its computed report.
| Module | Default registration | What it does |
|---|---|---|
models | REGISTERED | Configured models, read from the environment, validated fail-closed. Details |
llm-gateway | REGISTERED | Routes to Anthropic or OpenAI. Retries follow the official SDKs: 408, 409, 429, 5xx and timeouts, honouring retry-after. Details |
model-mesh | REGISTERED | Ordered fallback across models after retries run out (OSA_MODEL_FALLBACKS). Every hop is evidence. Details |
datasets | REGISTERED | Versioned mission examples with sha256 digests. Details |
evaluators | REGISTERED | Deterministic scores and human labels bound to the receipt. Details |
experiments | REGISTERED | Run a dataset against team versions and compare receipts. Details |
knowledge | REGISTERED | Retrieval where every hit cites a content-addressed source. Details |
context-hub | NOT REGISTERED | Shared context for agents. Depends on memory (neurosa) and knowledge. |
memory | NOT REGISTERED | Intelligence module: SOON (not registered). The separate NeurOSA adapter is CODE · GATED; authenticated production recall and restart durability remain NOT VERIFIED. GET /memory/status reports the specific deployment configuration, not the Intelligence module status. |
Models
Which model the API may call is read only from the environment and validated before any call. Proofs: config.fails_closed, models.lists_configured, provider.rejects_unknown.
OSA_PROVIDERisanthropicoropenai. Any other value refuses to start.OSA_MODELand the provider key are required in provider mode. A missing one refuses to start and the error names the variable, never its value.
LLM Gateway
One call surface over Anthropic and OpenAI. Retry rules follow the official SDKs. Proofs: config.fails_closed, errors.redact_secrets, routing.multi_provider, calls.bounded_retries.
| Case | Behaviour |
|---|---|
| Retried | Connection errors, timeouts, HTTP 408, 409, 429 and 5xx. x-should-retry: true|false overrides the status rule. |
| Never retried | Other 4xx, incomplete or refused output, invalid response bodies. |
| Attempts | OSA_PROVIDER_MAX_RETRIES + 1. Default 2 retries, allowed 0 to 10. |
| Delay | retry-after-ms or retry-after when present and at most 60 s. Otherwise OSA_PROVIDER_RETRY_BASE_MS × 2^n (default 500 ms), capped at 8 s, minus up to 25% jitter. |
| Evidence | Every provider_call record carries attempts. A run that exhausts its retries fails with each attempt's error listed, secrets redacted. |
OSA_EXECUTION_MODE=provider OSA_PROVIDER=openai OSA_MODEL=<model id> \ OPENAI_API_KEY=<secret> OSA_PROVIDER_MAX_RETRIES=3 \ node dist/apps/api/src/server.js
Model Mesh
Ordered fallback across models, following the LiteLLM pattern: the next target is tried only after the previous one spent its gateway retries. Proofs: mesh.fallback_on_failure, mesh.evidence_per_hop.
- Targets: the primary (
OSA_PROVIDER,OSA_MODEL), thenOSA_MODEL_FALLBACKS, at most 4. Each fallback needs its provider key. Duplicates and malformed entries refuse to start. - Only provider errors hand over to the next target. Programming errors are never swallowed.
provider_callevidence carrieshops: every target tried, in order, withok,attemptsand the redacted error.- When every target fails, the run is FAILED and the receipt's
runtime_failurelists each hop.
OSA_EXECUTION_MODE=provider OSA_PROVIDER=openai OSA_MODEL=<primary model> \ OPENAI_API_KEY=<secret> ANTHROPIC_API_KEY=<secret> \ OSA_MODEL_FALLBACKS="anthropic:<fallback model>" \ node dist/apps/api/src/server.js
Datasets
A dataset is a versioned set of mission examples, following the LangSmith and Braintrust model with OSA proof semantics.
- An example is a mission template:
example_id,objective,input, at least one requirement, and an optionalexpected.verdict,splitandmetadata. - Every add, update or delete creates a new immutable version. Old versions stay readable. A commit that changes nothing is refused with 409.
- Tags such as
prodpoint at a version and can move. Read withas_of= version number, tag orlatest. - Each example has
example_sha256, each version hasexamples_rootandversion_sha256.GET /datasets/:id/verifyrecomputes them. - A pinned example runs as a mission with id
<dataset>@v<version>:<example>.
curl -s localhost:3000/datasets -H 'content-type: application/json' -d '{
"dataset_id": "release-notes", "name": "Release notes",
"examples": [{ "example_id": "a", "objective": "Draft release notes", "input": { "request": "notes" },
"requirements": [{ "requirement_id": "artifact_status", "type": "evidence_field_equals",
"evidence_kind": "artifact", "agent_id": "builder", "field": "status", "expected": "built" }],
"expected": { "verdict": "VERIFIED" } }]
}'
curl -s -X PUT localhost:3000/datasets/release-notes/tags/prod -H 'content-type: application/json' -d '{"version":1}'
curl -s "localhost:3000/datasets/release-notes?as_of=prod"Evaluators
Evaluators score runs, following OpenAI graders and LangSmith evaluators. Only deterministic checks and human labels are allowed. A model judge is a claim, not a proof, and is refused.
| Type | Kind | Scores 1 when |
|---|---|---|
verdict_match | Deterministic | The run verdict equals the example's expected.verdict. |
receipt_valid | Deterministic | The sealed receipt verifies against evidence, observations and final output. |
string_check | Deterministic | A string in final_output passes eq, neq, like or ilike. |
evidence_equals | Deterministic | An evidence record of the given kind has the expected field value. |
human_label | Labeled | A person picks a score from the fixed choices scale. |
- Definitions are content-addressed (
evaluator_sha256) and immutable: the same id with different content is refused with 409. - Every result is an observation bound to the run's
proof_idandreceipt_sha256, sealed withobservation_sha256. The receipt itself never changes. - Fail closed: when the receipt does not verify, every deterministic evaluator scores 0 and labels are refused.
curl -s localhost:3000/evaluators -H 'content-type: application/json' \
-d '{"evaluator_id":"verdict","spec":{"type":"verdict_match"}}'
curl -s localhost:3000/runs/$RUN/evaluations -H "authorization: Bearer $TOKEN" -H 'content-type: application/json' \
-d '{"evaluator_ids":["verdict"],"example":{"dataset_id":"release-notes","as_of":"prod","example_id":"a"}}'Knowledge
Retrieval over your sources where every hit cites a content-addressed chunk. Proofs: knowledge.sources_cited, knowledge.content_digests.
- Documents are split into chunks on blank lines (long paragraphs wrap at 800 characters). Each chunk has
chunk_sha256over its exact text; each document hasdocument_sha256. - Search is lexical BM25: deterministic and model-free. The same query over the same collection returns the same hits, sealed with
retrieval_sha256. - Every hit carries
doc_id, chunk index,chunk_sha256anddocument_sha256. The dashboard re-hashes each quoted chunk in the browser. - A
doc_idis immutable: the same id with different text is refused with 409. - Integration limit: retrieved hits are not yet attached to run evidence. The Intelligence module's LIVE status covers its own cited/digested retrieval checks, not end-to-end agent proof.
curl -s localhost:3000/knowledge/docs/documents -H "authorization: Bearer $TOKEN" -H 'content-type: application/json' \
-d '{"doc_id":"receipts","title":"Proof receipt","text":"A proof receipt is sealed after the final verdict."}'
curl -s localhost:3000/knowledge/docs/search -H 'content-type: application/json' -d '{"query":"sealed receipt","k":3}' # public in session modeControl plane
Deployments, policies, experiments and the job queue. State is held in the API process (PROCESS_MEMORY); every record that matters carries a sha256.
| Area | Behaviour |
|---|---|
| Deployments | Pin one Team Graph version (graph_sha256) to preview or production. One ACTIVE per team and environment; deploying again supersedes it; rollback restores the previous one; promote copies a preview graph to production. POST /deployments/:id/run always runs the pinned graph. |
| Policies | Rules max_agents, allowed_executor_refs, min_requirements, forbidden_roles. Checked before a deployment runs; any failing enabled policy blocks the run with 403 POLICY_DENIED. Unknown rule types are refused. |
| Experiments | Run every example of a pinned dataset version against one team version, score with evaluators, seal outcome_sha256 and experiment_sha256. GET /experiments/compare?a=&b= lists per-example verdict and score changes; different dataset versions are refused. |
| Queue and scheduler | Queue a mission now or at run_at, optionally through a deployment. There is no background worker in a serverless function: due jobs run on POST /queue/drain, which a cron can call. |
| Organizations · Secrets · Permissions | Registered plus observed organizations; secret names with set/unset only, never values; the route-by-route enforcement table, checked by a test. |
Configuration
Configuration is read from the environment. Provider errors are redacted by the adapter; this does not establish that every log, event, evidence record or receipt is free of secrets.
| Variable | Required | Default | Meaning |
|---|---|---|---|
OSA_EXECUTION_MODE | Always | none | fixture or provider. Anything else refuses to start. |
OSA_PROVIDER | Provider mode | none | anthropic or openai |
OSA_MODEL | Provider mode | none | Model id sent to the provider. |
ANTHROPIC_API_KEY · OPENAI_API_KEY | Provider mode | none | Secret of the selected provider. |
OSA_PROVIDER_BASE_URL | No | Provider-dependent: https://api.anthropic.com or https://api.openai.com | Overrides the selected provider's default. See packages/adapters/src/config.ts. |
OSA_PROVIDER_TIMEOUT_MS | No | 120000 | Per-call timeout; a timeout fails the run. |
OSA_PROVIDER_MAX_TOKENS | No | 16000 | Output token cap per call. |
OSA_PROVIDER_MAX_RETRIES | No | 2 | Retries for connection errors, timeouts, 408, 409, 429 and 5xx (0 to 10). |
OSA_MODEL_FALLBACKS | No | none | Ordered provider:model fallbacks (max 4) tried after the primary fails; every hop is evidence. |
OSA_PROVIDER_RETRY_BASE_MS | No | 500 | First backoff step; doubles per retry up to 8 s. A valid retry-after of at most 60 seconds takes precedence. |
OSA_AUTH_MODE | No | session | session requires a DEV token on routes marked session below. open skips login with a shared identity (including where explicitly configured in Production). Other values refuse to start. |
PORT · HOST | No | 3000 · 0.0.0.0 | Where the API listens. |
OSA_LIVE_PROVIDER_TEST | No | off | Set to 1 to run the live provider test. |
HTTP API
This generated table lists 91 HTTP method/path combinations from the PERMISSIONS manifest in this code revision; it is not a complete router inventory. Routes appear without the prefix in the local Node server (http://localhost:3000/teams); Vercel rewrites /api/teams to the same handler (apps/api/src/vercel.ts). Do not add /api to local examples. Error status depends on the route: 400, 401, 403 (POLICY_DENIED), 404, 409, plus validation/provider failures such as 413, 422, 429 and 502. Auth column: session needs a Bearer DEV session only when OSA_AUTH_MODE=session; public has no blanket session check. open creates a shared identity and is not a multi-tenant authorization boundary. The dataset create/version/tag and evaluator register mutations are currently public in session mode; do not expose this runtime to untrusted writers without additional access controls. Private NeurOSA may impose stricter identity requirements. Storage: on this branch most route indexes are process-local; different serverless instances do not share them, and a restart can discard state. Some separate deployments use persistent storage: verify their status separately; do not infer persistence from this reference.
Additional Trust routes: when the private Preview operator is not active, the router also handles GET /.well-known/ai-profile.json (503 when the profile is not configured), GET /trust/status and POST /trust/verify/action. They are not included in the 91 manifest entries below. Action signature verification uses the identity supplied in the request; independently authenticate its public key before relying on the result.
| Method | Path | Auth | Returns |
|---|---|---|---|
| GET | /durable/status | session | Live worker readiness and persistence; production requires verified owner/operator and exact scope. |
| POST | /durable/jobs | session | Submit a durable job (202) or read an idempotent replay (200); scoped session and same-origin write. |
| GET | /durable/jobs/:id | session | Read a scoped job and its persisted result/evidence. |
| POST | /durable/jobs/:id/cancel | session | Cancel a queued job; a running job cannot be cancelled by this route. |
| GET | /chat/delivery/status | session | Server-bound artifact generation availability and model; no provider call. |
| POST | /chat/delivery | session | Stream agent lifecycle events, generate model artifact and deliver sealed bundle; session, free-tier and quota gates. |
| GET | /auth/providers | public | Login provider availability depends on server configuration; local-dev is disabled on Vercel. |
| POST | /auth/dev-login | public | DEV identity and session token (201). |
| GET | /session | session | The current session (401 without one). |
| POST | /session/logout | session | Revoke the session token. |
| GET | /build/status | public | Execution mode, auth mode, persistence and protocol support. |
| GET | /build/workspace | session | The saved Build workspace (404 until one is saved). |
| POST | /build/workspace | session | Validate and save the Build workspace; registers its Team Graph (201). |
| GET | /layers | public | The six layer profiles. |
| GET | /layers/:id | public | One layer profile. |
| POST | /layers/:id/enter | public | ALLOWED or GATED, decided by the backend. |
| GET | /intelligence | public | Status reports for the nine Intelligence modules. |
| GET | /intelligence/:id | public | One module report with its proofs. |
| POST | /teams | session | The validated Team Graph (201). |
| GET | /teams/:id?version= | session | One Team Graph version. |
| POST | /missions | session | The stored mission (201). |
| GET | /missions/:id | session | Read a stored mission (session and matching tenant required). |
| GET | /missions/:id/timeline | session | Mission event timeline. |
| GET | /missions/:id/run | session | Accepted run for the mission, or 404. |
| GET | /missions/:id/receipt | session | Mission proof receipt, if available. |
| GET | /missions/:id/plan | session | Accepted plan, or 404. |
| POST | /missions/:id/plan | session | Create a plan using the configured Brain/runtime. |
| POST | /missions/:id/cancel | session | Cancel a mission in the scoped runtime. |
| POST | /missions/:id/run | session | The full run result with receipt (201). |
| GET | /runs/:id | session | Latest execution of that run. |
| GET | /runs/:id/events | session | Runtime events. |
| GET | /runs/:id/evidence | session | Evidence records. |
| GET | /runs/:id/proof | session | The sealed proof receipt. |
| GET | /runs/:id/evaluations | session | Every evaluation result for the run. |
| POST | /runs/:id/evaluations | session | Score a run, optionally against a pinned dataset example (201). |
| POST | /runs/:id/labels | session | Record a human label on the evaluator's scale (201). |
| GET | /evaluators | public | All evaluator definitions. |
| POST | /evaluators | public | Register a deterministic or labeled evaluator (201). |
| GET | /evaluators/:id | public | One evaluator definition. |
| GET | /datasets | public | Latest version summary per dataset. |
| POST | /datasets | public | Create a dataset; version 1 (201). |
| GET | /datasets/:id?as_of= | public | One version by number, tag or latest. |
| GET | /datasets/:id/versions | public | Version history with tags. |
| POST | /datasets/:id/versions | public | Commit upserts and removals as a new version (201). |
| GET | /datasets/:id/verify?as_of= | public | Recompute example and version digests. |
| PUT | /datasets/:id/tags/:tag | public | Pin a tag to a version. |
| GET | /deployments | public | Deployments, newest first. |
| POST | /deployments | session | Deploy a registered team version to preview or production (201). |
| GET | /deployments/:id | session | Inspect a deployment after session verification. |
| POST | /deployments/:id/promote | session | Promote a preview deployment to production (201). |
| POST | /deployments/rollback | session | Reactivate the previous deployment of a team in an environment. |
| POST | /deployments/:id/run | session | Run a mission on the pinned graph after policies allow it (201, 403 when denied). |
| GET | /policies | public | Policies. |
| POST | /policies | session | Add a policy (201). |
| POST | /policies/evaluate | session | Evaluate a team version and mission against enabled policies. |
| DELETE | /policies/:id | session | Remove a policy after session verification. |
| GET | /experiments | public | Experiments, newest first. |
| POST | /experiments | session | Run a dataset version against a team version with evaluators (201). |
| GET | /experiments/:id | public | Inspect one recorded experiment. |
| GET | /experiments/compare?a=&b= | public | Per-example changes between two experiments. |
| GET | /queue | public | Queued, running and finished jobs. |
| POST | /queue | session | Queue a mission now or at run_at (201). |
| POST | /queue/drain | session | Run due jobs. |
| DELETE | /queue/:id | session | Cancel a queued job (conflict if already running). |
| GET | /knowledge | public | Collections with document and chunk counts. |
| GET | /knowledge/:collection | public | Documents in a collection. |
| POST | /knowledge/:collection/search | public | BM25 search; hits cite chunk and document digests. |
| POST | /knowledge/:collection/documents | session | Add a document; chunks and digests are computed by the API (201). |
| GET | /knowledge/:collection/documents/:id | public | One document with its chunks. |
| GET | /organizations | public | Registered and observed organizations. |
| POST | /organizations | session | Register an organization after session verification. |
| GET | /secrets | session | Secret names and whether they are set. |
| GET | /permissions | public | Route-by-route enforcement table. |
| GET | /templates/delivery-lab | session | Read the currently supported Delivery Lab template. |
| POST | /templates/delivery-lab/runs | session | Execute Delivery Lab starter or connected mission; requires a session. |
| GET | /templates/delivery-lab/missions/:id | session | Read a Delivery Lab report in its existing execution scope. |
| GET | /web3/status | session | Inspect read-only Web3 capabilities and current scope. |
| POST | /web3/observe | session | Run a scoped Web3 observation when enabled; requires a developer session. |
| GET | /web3/missions/:id | session | Read a scoped Web3 mission record. |
| POST | /web3/intents/preview | session | Inspect an intent policy decision without executing the intent. |
| GET | /memory/status | public | Memory adapter status; private NeurOSA may additionally require identity. |
| POST | /memory/diagnostic | session | Restricted Preview-only memory write/recall diagnostic. |
| GET | /memory/receipts/:id | session | Read an authorized memory receipt. |
| POST | /unified/execute | session | Execute a scoped Unified mission; tool mode requires service authorization. |
| POST | /unified/verify | session | Verify an existing Unified evidence bundle. |
| POST | /trace-probe | session | Bounded runtime trace diagnostic requiring a session. |
| GET | /nvidia/status | session | Provider configuration and availability (not proof of successful generation). |
| POST | /nvidia/chat | session | Server-side NVIDIA chat with request validation and cost guard. |
| POST | /nvidia/fleet-chat | session | Agent fleet chat with memory and rate checks. |
| GET | /platform/status | session | Inspect platform status in the current organization scope. |
| POST | /platform/deployments/review | session | Review a scoped deployment plan without running it. |
Guides
Unavailable functionality is labelled Planned. A present control-plane route does not by itself prove a hosted execution service or durable runtime.
Conditional edges and loops
Branch on state, fan out and join, bounded loops.
Checkpoints and resume
Resume after a crash into the same receipt; pause for a human.
Tools over MCP
Tool calls with digested results and permissions.
Guardrails and budgets
Tripwires that fail the run as a verifier observation.
Evals
Datasets and deterministic evaluators are implemented; GET /experiments/compare?a=&b= already compares experiment outcomes.
Deployments and hosted runtime
Deployment records, promotion, rollback and policy-gated runs already have API routes. These routes alone do not establish durable execution or signing. See the separately integrated Durable worker and Devnet Registry.
Durable chat runtime
2026-11-27 — 2/2 signed chat executions verified on Solana Devnet. The persistent Jeverson worker ran Ollama qwen2.5:3b. A separate read-only invocation checked each stored result, its signature, pinned key, attestation, batch, both Merkle inclusions and execution binding, then queried finalized Registry state. Both passed. Formal production close/reopen acceptance remains open.
The Vercel frontend sends authorized jobs through the dedicated HTTPS bridge to the existing persistent Windows host. Accepted jobs receive an exec_... ID; the independent worker executes them and the client retrieves persisted results. Model and artifact jobs are supported; sandbox readiness requires separate checks. NeurOSA is a separate integration.
The gateway checks the exact route without query parameters, the verified owner/operator role and organization, identity and project scope. Rewrite parameters are not forwarded. Missing readiness must not be reported as successful acceptance.
Browser recovery acceptance: sign in, check GET /api/durable/status (HTTP 200, enabled=true, worker=HEALTHY, browser_independent=true, production_supported=true), submit a job, close the tab after acknowledgement, reopen the chat, and verify the same result and ProofReceipt. Readiness alone is not proof of execution.
Server configuration and authorization boundary.
Signed receipts and finalized commitments
For signed runs the Registry state replaces the legacy offline label. The dashboard displays worker RPC readback, not an independent cryptographic verification performed in the browser. VERIFIED does not establish semantic truth or hardware provenance.
The configured worker calls Ollama through loopback (127.0.0.1:11434) and can record a signed software runtime attestation, delegation and Ed25519 ActionReceipt after Supervisor release. The Merkle batch includes both ProofReceipt V2 and ActionReceipt digests. Audit artifacts can be checked against the independently authenticated public key.
Evidence boundary: the separate ActionReceipt is signed; the original ProofReceipt V2 signature remains UNAVAILABLE. Attestation is software-declared, not TEE-backed. The local test bundle and the two later production-connected runs are distinct. No Mainnet deployment, independent security audit or enterprise GA is claimed.
NOT_ANCHORED means there is no confirmed Registry write. The historical Genesis Anchor is a separate Solana Memo transaction. The dedicated Registry stores batch and Merkle digests, not conversation text. VERIFIED requires successful finalized transaction and account readback. Merely creating a batch does not establish anchoring.
The worker persists the signature and signed transaction before broadcast. It may retry only identical bytes before expiry. Expired or legacy incomplete records remain UNKNOWN; a replacement is not automatically signed. The chat displays the program, slot and Explorer link after readback. Job access remains scope-bound.
Observed finalized Devnet transactions
Program: 6QTgaWY6SyZsjCiuY9BGMn5H7PzoFghCocwkbKxxmG8p. Public commitments are independently inspectable; the private production audit exports are not published.
| Execution | Transaction | Finalized slot |
|---|---|---|
exec_467870c6-ee5d-4344-842d-003b063d65a1 | Devnet proof 1 | 526953298 |
exec_1b59d635-77a2-4c24-9c04-74ac21920ebb | Devnet proof 2 | 526956144 |
Dated execution evidence and verification boundaries · Registry protocol and public test verifier.
Delivery Lab · one demonstration team
Verified scope: structural output and recorded checks, not semantic correctness of arbitrary objectives. Open Delivery Lab in the framework navigation. One versioned TeamGraph routes an objective through ten sequential roles: intake, planner, producer, inspector, policy gate, sandbox builder, test verifier, delivery gate, coverage reviewer and evidence reporter. It uses the existing MissionKernel, configured NeurOSA planner, runtime, event timeline and proof receipts.
Starter produces actual Markdown scaffold bytes or a working, self-contained task-list HTML starter. It does not interpret arbitrary objectives. Connected delegates to the existing provider planner/builder and is BLOCKED when execution mode is fixture. Supported outputs are Markdown documents and standalone HTML; other tasks expose the gap.
Artifact delivery validates hashes, document structure and inline JavaScript syntax. Remote sandbox delivery additionally requires the existing server-side worker connection and executes fixed packaging and byte-integrity checks through WorkspaceProvider and buildAndTest. Generated code is never run in the API process. These checks are not functional browser tests, a vulnerability audit or a semantic quality assessment.
Azure delivery is BLOCKED: image publishing, scoped cloud grant and live verification are not wired into this template. Missing required gates produce a failed mission without a MissionReceipt. A completed artifact mission means ready for human review under its declared checks, not an arbitrary task proven correct.
The result includes per-stage evidence references, measured stage latency, gaps, timeline, artifact download and a JSON proof bundle. Model HTML preview disables scripts; trusted starter preview allows scripts in an opaque sandbox. Team/run indexes remain process-local; capture the bundle before restart. The result can also be opened in the existing OSA Proof verifier, runtime trace and world projection. No distributed fleet, persistent learning, benchmark workload or adaptive routing is implied.
API: GET /api/templates/delivery-lab, POST /api/templates/delivery-lab/runs with objective, kind (document/webapp/other), mode (starter/connected) and target (artifact/sandbox/azure). GET /api/templates/delivery-lab/missions/:id retrieves a report in the current process. Existing session authorization applies; open mode is a shared demo environment.
Browser regression: build the dashboard and run npm run test:delivery-lab:browser with Playwright available. Optional OSA_PLAYWRIGHT_MODULE and OSA_CHROMIUM_PATH select an existing installation. This tests the starter app interaction, iframe isolation, downloads, blocked gates and the existing browser proof verifier.
Historical acceptance baseline: 2026-10-27. Later controlled CI covers local repo:read, two Fleet leases in hermes-fleet-p1.test.ts and local NeurOSA integration. It does not establish external live Hermes search or production recall after restart. See Hermes P1 CI and NeurOSA local CI.
NeurOSA × OSA Proof LIVE BLOCKED
NeurOSA is the server-side memory plane, not browser history or a second control plane. The protected ChatDelivery path uses an authenticated operator, optional message storage, recall, NVIDIA, Runtime, Evidence and ProofReceipt, followed by a confirmed execution-memory write when available.
Merged into main
PR #21 and #24 merged. Historical PR #24 CI: 265 PASS, 0 FAIL, 3 SKIP; TypeScript and dashboard builds passed. Contract tests are not production live tests.
Persistent-volume backup
Railway: 512 MB volume at /persist. SQLite snapshot copied and SHA-256 checked; active database use by Brain API and persistence after restart were not established.
Private GitHub operator
Production memory requires configured authentication, an allowlist and server-side organization/project scope. No memory access without a session.
Golden Flow
No evidence yet for the complete login → remember → recall → model → proof → restart → recall. A READY deployment and unauthenticated 401 do not prove memory.
Production memory acceptance requirements
- Check the current SQLite backup and Node process write permissions, then perform a separately approved controlled cutover to
/persist. - Verify actual write/read, controlled Brain API restart, repeated readback and ledger integrity.
- Verify OAuth login, organization/project scope and anonymous-access denial.
- Only after PASS: enable the approved production flag, run the memory Golden Flow and test a Hermes mission.
Security boundary: memory_status=VERIFIED means a confirmed execution-memory write; UNAVAILABLE means no confirmed write. NeurOSA data is not an instruction to an agent. Do not run external model tests unless zero-cost access is confirmed.
Historical migration and acceptance runbook · ChatDelivery contract
Workspace themes
The framework includes seven dark palettes (Proof, OSA · black and gold, Vercel · black, Graphite, Midnight, Forest, Plum) and five light palettes (Porcelain, Sand, Sky, Mint, Rose). Use the theme selector in the header, mobile navigation or Settings. Themes also update the runtime world colors.
Open Themes to preview palettes, export the selected palette or import a community JSON file. The format is osa.theme.v1: id, name, mode, optional author and a complete tokens object. Export a built-in palette as your starting template. Only six-digit hex colors are accepted; text contrast must reach 4.5:1. Files are limited to 24 KB and 20 community themes per browser. Importing the same ID updates that community theme.
Selection and community palettes are stored in this browser. Removing an active community palette restores Proof. There is no hosted theme marketplace or cross-device sync.
Debug forum Planned
A community space for reproducible issues, investigation and evidence review is planned. Forum posting, accounts and moderation are not implemented.
Proposed report fields: component and version, expected and actual behavior, reproduction steps, mission/run IDs, environment, test coverage and sanitized evidence references. Never include private keys, seed phrases, credentials or sensitive payloads.
Reports should distinguish reproduced findings, hypotheses, untested paths and verified fixes. “No issues found in these checks” does not establish that a system has no bugs. A claim of a fix needs reproduction evidence and a regression check.