Skip to content

Specs

What each part of featherweight is supposed to do, and why. (Documentation home shows how these fit with the guides.) The pages in docs say how to use it; these say what was decided, what was checked, and what is deliberately left out. Each follows the same shape: goal, the rules, decisions, not supported, tests.

Spec Covers
Units of work The words job, execution, run, attempt and step, the ids and names that follow from them, and the rename from the old words
Agents The agent definition, what is checked when it is built, input and output, the system prompt
Agent runner Running, results, attempts and retries, concurrency, launching agents, limits
Models and providers ModelSettings: Gemini, Gemma, Claude and OpenAI, the catalog, temperature, extending it, tokens
Tools and the registry Tools on an agent, the tool registry, the ready-made tools, the run context
MCP tools MCP servers: declaring, connections, failures, what the model gets
Tool discovery Finding MCP tools by keyword: discover, search_tools, call_tool, matching
Skills The skill model, loading, how an agent reads a skill, the Agent Skills specification
Approvals Agents propose, code executes: the proposal, the executor, who talks to the user, asking in a job, and what is not supported
Identity Who a run is for: a typed identity the application passes, how tools read it, how it crosses the queue, and the identity hash for resuming; what stays the application's
Streaming agents StreamingAgent, runner.stream(), AG-UI events, thoughts, stopping a response, messages, the AG-UI and Vercel adapters
Attachments Images, documents, audio and video in a chat message: what a client can send, what the model gets, limits, failures
Run log and persistence What featherweight keeps and never keeps, hashes, Database and ResultStore, migrations, the schema, resumable jobs, Postgres
Jobs Jobs, the run log, statuses, logging
Submitted jobs A job as a declared class, JobQueue, JobClient, JobWorker, cancelling, job events and SSE
Background jobs A job exposed to an agent as a tool, here or on a worker, getting its result back, events, how long a child lives
Configuration The environment variables (FTW_...), which settings can also be passed in code, and the rule for both
Observers and OpenTelemetry The Observer class and what it receives, OTelObserver and the GenAI conventions, spans for jobs, attempts, model calls and tool calls, evaluation

Where things belong

A change goes in the spec of the thing it changes, and not in the spec of the epic that happens to touch it. Each spec owns:

Spec Owns
Units of work Job, execution, run, attempt and step: what each is, its id, where it appears (the API, the database, the spans, the logs, the settings)
Agents The agent definition, what is checked when it is built, input and output, the system prompt
Agent runner Running an agent: results, attempts and retries, concurrency, launching agents, how a step is resumed, when observers are called
Models and providers ModelSettings, the catalog, what is checked per provider, tokens
Tools and the registry, MCP tools, tool discovery, skills What their names say
Approvals A proposal as a typed value, the executor's checks, who talks to the user, asking at a boundary, and what is left out on purpose
Identity The identity of a run: declaring and passing it, RunContext.identity, who inherits it, its field in the queue message, identity_hash, the developer's responsibilities
Streaming agents StreamingAgent, runner.stream(), the events, the adapters
Attachments The parts a user message may carry, how they reach the model, the limits on them
Run log and persistence The metadata-only rule, hashes, the Database class, the schema of every table, migrations, the result store, Postgres, tenants
Jobs A job: run_job, running a job class, its version, statuses, what the run log records, logging
Submitted jobs The Job class and @job, the queue and its message, the client, the worker, cancelling, job events and SSE
Background jobs background_jobs, start_background, where a child runs, the result message, the events, how long a child lives
Configuration Every environment variable, its default, and whether an argument may override it
Observers and OpenTelemetry The Observer class and its records, OTelObserver, the GenAI mapping, your own spans, evaluation

A spec says what it owns, and links to the spec that owns the rest.