Goals and verified missions
Use a goal for work that can continue between messages without a set budget. Start a mission if you want to set acceptance criteria, checks, or a budget before work begins.
Set a goal
- Run
(goal "OBJECTIVE")to set the objective. - Run
(goal)to check progress. - Run
(goal :pause)to pause,(goal :resume)to continue, or(goal :clear)to clear the goal.
Start and verify a mission
Install the objective, limits, and acceptance criteria with
(mission :start specification). This example requires both a passing build and your review:(mission :start '(:objective "Deliver the accepted build" :turn-limit 40 :token-limit 100000 :wall-seconds 3600 :criteria ((:id "build" :description "The build passes" :gates ("build")) (:id "review" :description "The user accepts the result")) :gates ((:id "build" :kind :command :command "make check" :inputs ("Makefile" "src/main.lisp") :deterministic-p t :attempt-limit 3 :timeout-seconds 300))))Run
(mission :run)and inspect the saved state with(mission :status).Give explicit evidence for each criterion without a gate. If the mission is blocked on your review, accept the result and resume:
(mission :accept "review" "I inspected the artifact and accept the result") (mission :resume)Run
(mission :verify)to check the result. All checks must pass and all criteria must be met before the mission is marked as verified.
Give each criterion a unique :id and a :description. Use :gates to list the checks for that criterion. For criteria that require your review, accept the result yourself.
Set a budget
Mission budgets cover work by the primary agent and by child agents.
- Turns. Set
:turn-limitto cap provider calls. - Tokens. Set
:token-limitto cap model usage. This is not a billing limit. - Time. Set
:wall-secondsto set a deadline. It includes time spent paused.
Autolith pauses new inference if it cannot account for missing usage. Set :unknown-usage-policy :record at the start of the mission if you want work to continue with those gaps recorded.
- Pause with
(mission :pause)and resume with(mission :resume). These commands do not reset the budget. - Cancel with
(mission :cancel).
Choose checks for acceptance
Gates run in order and stop at the first failure:
- Command gates use the normal shell authorization and sandbox boundary.
- Artifact gates require
:path. Set:sha256to check an expected hash. - Lisp gates require a
:predicatestring. The assertion runs in the existing isolated Lisp worker.
Use :timeout-seconds and :attempt-limit to set the time and attempts for each check.
For checks that depend on files, use :deterministic-p t and list all relevant files in :inputs. For checks that depend on remote state, run the check again after the remote state changes:
(mission :invalidate "build" "The remote build configuration changed")Invalidating a check allows it to run again if there are attempts left in the budget.
Ask for an independent review
You can require a separate review before final verification. Tell Autolith which files to review and what the reviewer should check. Read the findings and resolve them before you accept the result.
Schedule a follow-up
Tell Autolith what to do next and when to do it. For example, ask it to check a pending build in five minutes and continue the mission if the build passes. Scheduled work uses the same mission budget. If you pause a mission, any follow-ups due during the pause are skipped.