http reference

The laserbrain API

Send the goal your agent is pursuing right now. laserbrain scores it against the goal the run started with. That goal does not move while the agent works. You get back whether the two are still the same errand.

The hosted API is rate-limited, no SLA, may be turned off. The check itself does not need it: pip install laserbrain runs offline.

base https://api.phronesis.worldopenapi 3.148 operations, 6 of them keyless

start here

One call, no account

POST /v1/check is stateless and takes no credential. You hold the ground and pass it in; nothing is stored but a rate-limit counter. A hundred calls a day from one address, which is enough to decide whether it is worth a key.

curl -s https://api.phronesis.world/v1/check \
  -H 'content-type: application/json' \
  -d '{
    "ground": "write a CSV parser for the import job",
    "goal":   "refactor the logging subsystem to structured events"
  }'

what comes back

{
  "ground": "write a CSV parser for the import job",
  "verdict": {
    "drifting":   false,
    "reason":     "goal-drift",
    "phi":        0.5,
    "goal_score": 0,
    "advice":     "Note: your goal no longer matches the one you started with (overlap 0.00). If the user redirected you, reset. If this is a sub-task, pass parent_goal. Otherwise you may be on something else — compare your goal with the ground. Recorded, not an interrupt.",
    "context":    "ctx_1an6e3a"
  },
  "stateless": true,
  "retained":  "nothing"
}

Send steps instead of ground and goal to replay a whole run and get a verdict per step. Two steps can only produce grounded, advancing, goal-drift or ungrammatical — the slower verdicts need history, and stalled cannot fire on fewer than five readings.

choosing between them

Who holds the ground

That is the only real decision in this API. Everything else follows from it.

POST /v1/check

you hold it, no key

You pass the ground with every call. The server keeps nothing. There is no run, no history, no retention, and nothing to leak. Right for trying it, for a curl in an email, and for an integration that already has its own store.

POST /v1/drift

laserbrain holds it, key

laserbrain remembers the ground for a run, so an agent in a loop sends one step at a time and never carries the reference itself. Run history and retention hang off this route.

A key is issued to a GitHub account on the account page. Send it as Authorization: Bearer lb_live_…. The detector itself needs no key and never did: pip install laserbrain runs offline under MIT, and the credential is for the hosted surface only.

before you build on this

Shorter runs are not shown to be better ones, and on coding tasks with hidden tests the harness did worse than none.

about half the steps
open-ended runs stopped sooner (median 5 against 10, N = 18); a better result was tested three ways and not established
offline
12 of 15
coding tasks with hidden tests passed with the harness, against 15 of 15 without it, at 4.4 times the tokens; suggestive, not significant (p about 0.11)
offline · N = 15 per arm

Every study and its verdict is on the research page. Measure it on your own work.

detector

20 operations

Scoring a step against the goal a run started with. This is the core.

POST/v1/checkno keyStateless drift check (no API key)
GET/v1/dialogueList dialogues, or read one conversation
POST/v1/dialogueSubmit one agent turn and get the collective drift verdict
POST/v1/driftLog one drift step against a retained run
POST/v1/drift/outcomeSet a run's outcome and score without adding a step
GET/v1/drift/runOne run's full drift trace
GET/v1/drift/runsList this account's retained drift runs
GET/v1/escalationPoll one escalation, or list the queue
POST/v1/escalationEscalate a persistent drift for human decision
POST/v1/escalation/decideRecord a human decision on an escalation
GET/v1/experimentPaired treatment/control token cost across retained runs
POST/v1/guidanceFramework guidance from Alice
POST/v1/modulateSingle-agent drift check plus role-styled return policy
POST/v1/operator/consultAsk whether an irreversible act should proceed
GET/v1/recursion-teamList recursion-team templates, or fetch one by name
POST/v1/recursion-teamStore a custom recursion-team template
DELETE/v1/recursion-teamDelete a custom recursion-team template
GET/v1/selfRead the persisted self and its session log
POST/v1/selfSet or advance the persisted self
DELETE/v1/selfDelete the persisted self and its log

field

3 operations

The laserfield weather system laserbrain grew out of. Documented because it is reachable, not because it is the core.

POST/v1/hear[RETIRED] Speak eight vocabulary words into the laserfield (field endpoint, not the detector)
GET/v1/history[RETIRED] Laserfield signal series (field endpoint, not the detector)
GET/v1/signal[RETIRED] Current laserfield signal (field endpoint, not the detector)

account · operating · team

25 more operations, for keys, usage, alerts, digests and team seats, are in the OpenAPI document below; alerts, digests and team seats are not offered.

full shapes

The machine-readable copy

Every field and status code is in the OpenAPI 3.1 document. It needs no key. When a route changes, the document changes with it.

https://api.phronesis.world/v1/openapi.json