Main CI texts take main's set-based autocraftTexts; main-fix approvals read through the pass-scoped settings reads (settings() for many keys). blockersLoader reads through blockerReads, the batch read blocksIndex uses. limits.ts imports the pipeline switch keys from autopilot.ts.
A remote call's prompt marks the phrases that name Claude's tools; the bundle and the run's prompt fill them for
the claiming harness, with exactly the server's text for claude. Calls with the reference server get the
reference input flag and a sentence that names reference_search and reference_around instead of /reference.
The helper keeps a session when the bundle's keepSession says so, submits
usage per model id (explorer included) and the CLI's total cost, and gives a
lease back through the release route when the fault is its own: too old,
wrong platform, missing harness or token, file setup failure, or stopped by
the user. The work loop stops when it can take no call and pauses after a
release. Submit carries costUsd; the server stores it with the call's usage
and records it as the run's cost.
The inference setting (server | user-local) is set with `autocraft inference` or the operator-only
GET|PUT /api/settings/inference, which also holds the accepted model families per tier. In user-local mode
askClaude queues each Claude turn in remote_calls with a task bundle (prompt parts, claude arguments, checkout
and workspace mounts, repo docs inline, per-lease MCP servers) and polls for the result; follow-up turns go to
the helper that holds the session. Helpers claim with an agent token that may run tasks, in the model queue's
order filtered by tier, repo, write permission and author exclusion, and use a per-call lease secret for the
bundle, heartbeat, release and submit routes. Lost leases return to the queue up to the prompt's attempts.
Queue time does not count toward a job's deadline or no-progress stop, and accounts are not consulted.
- The CI-fix guard applies the patch with git and judges git's own diff and the files before and after it, so a hunk header that names other lines cannot hide a change to test code. Attributes that switch off a lint or a test, and cfg! calls, are read from the patched file's Rust tokens, however they are split over lines or commented.
- Conflict resolutions: a Rust answer is read as tokens; a line on neither side may add no item word, attribute, unsafe code or item macro, and the answer may hold no more of them than its two sides in their own files, so uncommenting a side's code counts as new. Manifest answers keep each line in the table and under the keys it had in its side, and each side's lines in order. A file whose head or base has marker-shaped lines is refused.
- One trust-path rule (build scripts of either parent, CI and tool configuration, agent-instruction files) is shared by every model-patch lane, conflict resolution included.
- Every lane reply parser reads through the strict single-value reader; a fenced reply with a second answer (a value with the same keys) outside the fence is void.
- When the first reply is used after its fix turn is skipped, fails or cannot be merged, it gets every lint check, the model checks the first lint put off included. A fenced first reply can take the fix turn's fields.
- Installation tokens for a write are minted for the write's repository (a transfer's also for its target); reads across repos and pushes to a contributor's fork keep the installation-wide token. Reading the app's keys checks the secrets file's mode like every other reader.
- The app's git credential helper is set for https://github.com only, after every configured helper is dropped.
- jev children get only the search path, home, locale, temp, cache, TLS and proxy variables and Jev's own.
- Git on the cached clones names the repository with GIT_DIR, runs with safe.bareRepository=explicit and reads attributes from the empty tree.
- The sandbox denies /proc and the credential directory in the absolute (//path) form as well.
- The scrub hides hex keys that are not digests, URL user:password, three-part dotted tokens and credentials inside hex or base64.
- The dashboard unit sees the settings file, releases, the bare repo and .local read-only.
- post-receive resolves the pushed commit once and the hook deploys that commit; the image build runs pnpm installs without install scripts.
- One reader helper (src/dash/api/reader.ts) cuts queue rows, plan reasons, waits and status lines per reader: viewers get no review reason, verification text, plan note or refusal text and the reasons without their quoted part; a quiet pull request gives viewers none of it; nobody reads an item of a repo hidden from them ("another item, which blocks its review").
- The merge queue endpoints and their member lookups filter with the requester's allow-list, so batches and queued PRs of untracked repos are left out for everyone but operators.
- Decision facts name no PR of a hidden repo; the item API leaves out owner statements of hidden repos and gives viewers no excerpt or reason.
- The Needs feed blanks feedback about a quiet pull request for viewers; stopped fix reasons are staff only.
- Agent runs recorded without items are shown to operators only; duplicate comparisons are bound to the items they compare.
- The expensive-GET budget is spent by the matched route, so every spelling of a path counts.
- Limiter maps are capped: expired keys go at most once per window, then the oldest.
- /healthz/checks gives anonymous callers check names and states; signed-in operators and maintainers also get times and counts.