onefollowup
The follow-up loop for any orchestrator repository: record what a run noticed but could not fix as a draft, verify the drafts, file one ticket per root cause on the destination its team watches, and answer people's comments on those tickets. Every store access goes through onetaskgraph, so a destination is any source onetaskgraph serves (a local Markdown folder, GitHub Projects, Linear) and onefollowup holds no client of its own.
It ships as a CLI and a Rust library with the same surface. v1 lands the contract: every
verb, the configuration file and the record formats. The verify loop, the comment pass,
config show and kinds are implemented; statuses parses its arguments and refuses with
exit 2 and not implemented in this release until the release that implements it.
Install
uv tool install onefollowup-cli # or: pip install onefollowup-cli
npm install -g onefollowup-cli
cargo install onefollowup --locked
The PyPI and npm packages carry the prebuilt onefollowup executable alone (Linux x86_64
and arm64, macOS arm64, Windows x86_64); there is no Python or JavaScript API. The Rust
library is the onefollowup crate.
Commands
| Command | What it does |
|---|---|
draft --batch <ID> --title <T> --repository <ORIGIN> [--path <P>]... [--author <LABEL>] [--stamp <KEY=VALUE>]... |
Record one draft; its body is read from stdin. Filed under the batch's drafts project, <drafts_source>:<batch>; see Private drafts, below. |
prepare --batch <ID> [--alias <ID>]... [--unanswered] |
Snapshot the batch's inputs (its drafts and the batch_preparing hook's inputs), make its destination reads in one batched search and one comments read — under relations, also one task relations read of the tickets found and one read of the tickets at their edges' other ends — and write the verifying agent's task. Prints {"schema_version": 1, "batch", "drafts", "inputs", "answers", "task_template"}, with absent_targets and missing_links when there are any (Relations, below). |
ticket validate --batch <ID> <TICKET> |
Hold one ticket to the rules; absent_targets names each edge its fields derive whose target does not exist. |
ticket board-status --batch <ID> <ITEM> |
Read one destination item's state and comments from the batch's prepared reads. |
ticket search --batch <ID> --ticket <TICKET> <QUERY> |
Search the destination for a ticket's duplicates. |
ticket copy --batch <ID> <TICKET> |
Stage a ticket's copy to its destination. |
ticket comment --batch <ID> (--item <ITEM> | --field <NAME=VALUE>...) [--root-cause <RC>] [--sources-file <F>] [--bears-on-file <F>] [--question-file <F>] |
Stage the batch's evidence comment (read from stdin) on an item; given the declared fields observed, on the most specific existing ticket they name. The root cause defaults to the item's own. --sources-file is one JSON object of exactly host, basis, drafts and witnesses, validated as a ticket record's are (each draft one of the batch's inputs, each witness at the commit basis records); each draft's source and transcript are read from the draft. --bears-on-file and --question-file hold the paragraph saying what the evidence bears on and the question it asks. The comment is comment_templates.evidence rendered, then its marker (Templates, below). |
ticket re-estimate --batch <ID> <ITEM> |
Stage an item's re-estimate. |
ticket relate --batch <ID> --relation <NAME> --from <TICKET> --to <TICKET> |
Stage an edge of a relation the agent decides; a ticket is its root cause, its file, or an item the batch read. |
check --batch <ID> |
Hold the batch's dispositions, tickets, edges and staged writes to the rules before anything is written; exit 0 when sound. |
publish --batch <ID> |
Send the staged writes in batched store calls — under relations, the batch's edges in one task parent set-many and one task link add-many — and receipt every outcome. |
settle --batch <ID> |
Read back only the writes no answer confirmed, run the batch_settled hook, retire the batch's working files. |
comments gather [--batch <ID> | --item <ID>] [--dry-run] |
List each destination's comments since its watermark in one comments-since listing — or every comment of the one item, or every item the batch filed — select each one to answer for the batch owning its item, and write the snapshot every later step reads (The comment pass, below). A dry run's result carries the launch_command that launches exactly that snapshot. |
comments launches --snapshot <S> |
Claim the snapshot once and write one feedback file per batch it selected comments for, reading no destination; refused for a snapshot already launched, a dry run's older than snapshot.launchable_for, or one gathered before another sharing a comment was launched. |
comments check --feedback <F> |
Hold a feedback dispatch's response account to its snapshot, and its batch's tickets to changing only quoted issues' tickets; sound says whether it breaks no rule. |
comments settle --snapshot <S> [--launched <BATCH>=<FEEDBACK>]... |
Verify every reply in one batched read, send every ticket change in one update-many, record what did not certainly land in pending.json, and move the watermark when it may. Without --launched, every batch the snapshot launched. |
statuses |
Read the destination's statuses against the configured status roles. |
kinds |
Print the effective kinds, relations, dispositions and routes, as the verifying agent reads them. |
config show [--sources] |
Print the effective configuration as JSON; --sources names the layer each key came from. |
The ticket copy|comment|re-estimate|relate tools write nothing to the destination: they
stage into the batch's outbox, refusing what the rules refuse, and publish sends it.
Every verb prints a JSON document on success. Exit codes: 0 success; 1 failed while running; 2 refused — a usage error, a refused configuration, or a verb not implemented in this release.
Private drafts
onetaskgraph decides who may read each draft: a draft about a repository the store's
write_policy.visibility_command does not answer public for — one it cannot classify
included — is private, and onetaskgraph writes a private item only to a source declared
visibility: private whose backend agrees. So the batch's drafts project is created private
when the drafts source is declared private, and holds drafts of either classification, each
keeping its own: a public draft under it stays public, the verify loop reads both, and a
ticket copied onto a destination keeps its own classification (a public draft's ticket lands
public). A drafts source declared public, or declaring nothing, keeps a public drafts
project, and draft refuses a private draft there (exit 2) naming the visibility the source
declares, with nothing written. onefollowup never declares or overrides a source's
visibility; that is the store's configuration.
Results
Each verb's result is one typed document of the library (onefollowup::api), stated here
once by example; tests/contract.rs holds every example to the library's type, so the two
cannot drift. A field shown null-able in the type (status, version, url, author,
item, hook) is null when there is none. Every document carries
schema_version 1. The nodes that implement a verb may add optional fields; changing a
field declared here is a contract change agreed with the manager first. kinds and
config show print the documents the configuration section describes.
check
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"sound": false,
"problems": [
{
"subject": "drafts:nightly-2026-11-01/drafts/20261101T102500Z-flaky-resize-test",
"message": "the input has no disposition; give it exactly one"
}
]
}
comments check
{
"schema_version": 1,
"feedback": "feedback/nightly-2026-11-01/20261101T120000Z.md",
"sound": true,
"problems": []
}
comments gather
{
"schema_version": 1,
"snapshot": "feedback/.snapshots/20261101T120000Z",
"dry_run": false,
"items": 3,
"selected": {
"nightly-2026-11-01": 2
},
"left": 1
}
comments launches
{
"schema_version": 1,
"snapshot": "feedback/.snapshots/20261101T120000Z",
"launches": [
{
"batch": "nightly-2026-11-01",
"feedback": "feedback/nightly-2026-11-01/20261101T120000Z.md"
}
]
}
comments settle
{
"schema_version": 1,
"snapshot": "feedback/.snapshots/20261101T120000Z",
"settled": [
{
"batch": "nightly-2026-11-01",
"feedback": "feedback/nightly-2026-11-01/20261101T120000Z.md",
"writes": 2,
"pending": 0,
"verified": 2
}
],
"watermark": "2026-11-01T12:00:00Z"
}
draft
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"draft": "drafts:nightly-2026-11-01/drafts/20261101T101500Z-layout-save-loses-resize",
"path": ".follow-ups/tasks/nightly-2026-11-01/drafts/20261101T101500Z-layout-save-loses-resize.md"
}
prepare
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"drafts": 3,
"inputs": 1,
"answers": "dispositions/nightly-2026-11-01.json",
"task_template": "tasks/nightly-2026-11-01/task.md"
}
publish
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"receipts": "receipts/nightly-2026-11-01.jsonl",
"outcomes": [
{
"index": 0,
"op": "copy",
"item": "followups:item-42",
"outcome": "created"
}
]
}
settle
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"read_back": 1,
"confirmed": 1,
"hook": {
"argv": [
"notify",
"--batch-settled"
],
"exit": 0
},
"retired": [
"outbox/nightly-2026-11-01.json"
]
}
statuses
{
"schema_version": 1,
"destination": "followups",
"roles": [
{
"role": "proposal",
"category": "backlog",
"destination_names": [
"Proposal"
]
}
]
}
ticket board-status
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"item": "followups:item-42",
"title": "widgets: a layout save reads one window size",
"status": {
"category": "backlog",
"name": "Proposal"
},
"priority": "high",
"version": "2026-11-01T11:59:58Z",
"url": "https://github.com/example/widgets/issues/42",
"comments": [
{
"id": "IC_kwDOA1001",
"author": "alice",
"url": "https://github.com/example/widgets/issues/42#issuecomment-1001",
"last_changed": "2026-11-01T11:00:00Z",
"body": "Seen again after a resize."
}
]
}
ticket comment
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"index": 1,
"write": {
"op": "comment",
"item": "followups:item-13",
"root_cause": "export-dialog-drops-unicode",
"body": "Additional evidence from follow-up run `nightly-2026-11-01`.\n\nSeen again.\n\n<!-- orchestrator:follow-up-comment run=\"nightly-2026-11-01\" root_cause=\"export-dialog-drops-unicode\" -->\n"
}
}
ticket copy
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"index": 0,
"write": {
"op": "copy",
"ticket": "drafts:nightly-2026-11-01/tickets/layout-save-reads-size-twice",
"destination": "followups"
}
}
ticket re-estimate
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"index": 2,
"write": {
"op": "re-estimate",
"item": "followups:item-13",
"priority_estimate": "high"
}
}
ticket relate
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"index": 3,
"write": {
"op": "relate",
"relation": "of-error",
"from": "drafts:nightly-2026-11-01/tickets/client-acme-e1042",
"to": "followups:item-7"
}
}
ticket search
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"ticket": "layout-save-reads-size-twice",
"query": "layout save window size",
"hits": [
{
"item": "followups:item-42",
"title": "widgets: a layout save reads one window size",
"status": {
"category": "backlog",
"name": "Proposal"
},
"url": "https://github.com/example/widgets/issues/42"
}
]
}
ticket validate
{
"schema_version": 1,
"batch": "nightly-2026-11-01",
"ticket": "layout-save-reads-size-twice",
"sound": false,
"problems": [
"the ticket records the field `client`, which `fields` does not declare"
]
}
.
As a library
Each command is one function in onefollowup::api, taking the resolved settings and the
command's own arguments and returning the typed result the command prints:
use onefollowup::api::{self, ConfigShowArgs};
use onefollowup::config::{self, Inputs};
let settings = config::resolve(&Inputs::from_process()?)?;
let shown = api::config_show(&settings, ConfigShowArgs { sources: true })?;
println!("{}", shown.config.destination);
# Ok::<(), onefollowup::Error>(())
Settings can also be given directly: Settings::new(config) holds a Config to the same
rules a file is held to.
Configuration
Every setting is resolved from, first to last, the first layer that states it winning:
- A flag.
--set <KEY=VALUE>sets any key (a dotted path for a nested one:--set estimate.raise_at=5); the most used keys have flags of their own —--destination,--drafts-source,--store— which beat--setfor their key. - An environment variable,
ONEFOLLOWUP_<KEY>, a nested key's segments joined by__:ONEFOLLOWUP_ESTIMATE__RAISE_AT=5. - The file
onefollowup.yaml, found by--config <PATH>, elseONEFOLLOWUP_CONFIG, else the working directory. - The default, shipped in the binary
(
crates/onefollowup/defaults/onefollowup.yaml).
A flag's or variable's value is YAML, so 5 is a number, [a, b] a list and
{same: [x]} a mapping. Mappings merge key by key across layers; a list or a scalar is
replaced whole. An unknown key, a wrongly typed value or a broken rule is refused, naming
the key and the layer that stated it. config show --sources names, for each top-level
key, the layer its value came from.
| Key | Default | Meaning |
|---|---|---|
store |
the store's own discovery | The onetaskgraph configuration: an onetaskgraph.yaml, or the directory holding one. |
drafts_source |
drafts |
The source drafts are recorded in; declare it visibility: private in the store to record drafts about private repositories (Private drafts, below). |
destination |
followups |
The source every ticket is copied to unless its kind names another; the store's own routes on that source still apply. |
namespace |
orchestrator |
Prefix of the comment markers (orchestrator:follow-up-comment) and the record's metadata key (orchestrator.follow-up). |
host_label |
the machine's hostname | The host a ticket records as having verified it. |
batch_id_pattern |
word characters, ., @, +, -, not dots alone |
A batch id, matched in full. |
statuses |
proposal → backlog, accepted → todo, deferred → draft, queued → queued, in-progress → in-progress, done → done, cancelled → cancelled |
Each status role mapped to a store status category, with description, protected (no batch withdraws an item at this role), selected (an agent picking up accepted work selects it) and answered (people's comments on an item at this role are answered by its batch; proposal and deferred by default). |
rubric |
four severity levels, critical → low | Severity levels (each with the priority it estimates at and its meaning for users, development and resources), areas, guidance, impact_lines, no_workaround, impact_parts, workaround_costs. |
estimate |
raise_at: 3, raise_cap: high |
An estimate is raised one level, capped at raise_cap, when a root cause fires consistently or has raise_at or more occurrences. |
task_template |
builtin:task-template.md.j2 |
The verifying agent's task template; a path, or builtin: for a shipped file. |
persona |
builtin:persona.yaml |
The verifying agent's persona. |
comment_templates |
evidence: builtin:comment-evidence.md.j2, reply: builtin:comment-reply.md.j2 |
The visible part of an evidence comment and of a reply, each a path or builtin:; onefollowup appends the marker line after it (Templates, below). The defaults write 0.5.0's comments byte for byte. |
fields |
{} |
Declared fields (below). |
kinds |
one kind, root-cause |
Ticket kinds (below). |
default_kind |
root-cause |
The kind a record without one is read as. |
relations |
[] |
Relations between kinds (below). |
dispositions |
filed, not-reproducible, already-fixed, too-low-impact |
The disposition catalogue (below). |
default_dispositions |
none | The dispositions every kind allows unless it lists its own; none allows the whole catalogue. |
routes |
[] |
Ordered routes (below). |
hooks |
none | Commands run at named moments, and the owner a context file names (below). |
snapshot |
launchable_for: 24h |
How long a dry run's comment snapshot stays launchable. |
No key says when the loop runs; that is the host's schedule.
Triage as configuration
Triage is declared, not programmed: kinds, the relations between them, dispositions, ordered routes and command hooks, with today's strategy as the default. There is no rules engine and no lifecycle policy.
fields — {<name>: {description: <text>}}, every field a ticket may record beyond
the record's own keys (error_signature, client, …). The verifying agent is shown each
description; any kind may record any declared field; a ticket recording an undeclared
field is refused by ticket validate and check. Values live in the ticket record (the
store's metadata slot) and in the ticket's visible section; a kind's projections can render
any of them into the record's projected, which a destination's metadata_fields can show on
a board field. A field declares no format.
kinds — a list, and default_kind names one. The verifying agent picks one kind per
ticket.
- name: client-error
description: One client's error. # shown to the verifying agent
ticket_template: templates/client.md.j2 # optional; default the shipped template
render_template: templates/client-body.md.j2 # optional; default the authored body
projections: # optional; default none
client: "{{ fields.client }}"
evidence_section: Evidence # the default
duplicates: {same: [error_code, client]} # or `agent` (the default)
priority: {model: estimate} # or {fixed: high}
initial_status: proposal # the status role a new ticket is copied in
destination: errors # optional; default the top-level destination
dispositions: [filed, wont-fix] # optional; default `default_dispositions`
ticket_template is the shape the verifying agent writes and ticket validate holds a ticket
to. render_template (a path, or builtin:) is what the destination body is rendered from at
ticket copy and publish, given every datum (Templates, below); omitted, the body is the
authored one with its estimate line, as 0.5.0 wrote it. projections maps a name to a template
string, each rendered with the same data and written as record.projected.<name>, so any datum
— a section's text, or one part of it — reaches a board field through the destination's own
metadata_fields at path [projected, <name>], with no field written by the agent; omitted, no
projected is written, and an authored record supplying it is refused. evidence_section
(default Evidence) is the section a same duplicate's merge stages as its evidence comment's
evidence, with the ticket's record as its sources. A render_template or comment template that
names no file and no shipped template, a projection that is not a string or whose name is not
one word, and an empty evidence_section are refused by key when the configuration loads.
duplicates says how a ticket of the kind is found to be one already filed. agent is the
agent searching the destination and judging whether an open ticket states the same thing;
its evidence then goes to that ticket by its id. {same: [...]} is exact matching on
declared fields, for kinds whose values are already exact: two tickets are one when every
listed field is equal after trimming whitespace and case-folding, and a ticket with any
listed field empty never merges. priority: {model: estimate} is the severity × frequency
estimate over rubric and estimate; {fixed: <priority>} gives every ticket that
priority.
relations — named, typed edges between kinds, pointing from the more specific ticket
to the more general:
- name: of-error
from: client-error
to: error
cardinality: many-to-one # or many-to-many
decided_by: {match: [error_code]} # or `agent`
store: parent # the store's parent relation, or `link` (a typed link)
rollup: occurrences # or `max`, or `none` (the default)
decided_by: {match} is deterministic and allowed only between two kinds that both find
duplicates by same, its fields exactly the to kind's same fields and all among the
from kind's: the related ticket is the to ticket — staged in the batch, or an open item of
its destination — whose values of those fields equal the from ticket's, compared as same
compares (trimmed, case-folded, an empty value matching nothing). Such an edge is derived,
never asserted: ticket relate and check refuse one staged by hand. No stub is generated:
prepare and ticket validate report each derived edge whose target does not exist as
absent_targets ({"ticket", "relation", "kind", "fields"}), the agent writes and stages that
ticket under its kind's template, and check refuses a staged from ticket whose target
neither exists nor is staged, naming the kind and fields. agent is the verifying agent
asserting edges as judgment, each with ticket relate.
Every proposed ticket and edge is held to this schema, at ticket relate and again at check:
a known kind and relation; ends of the relation's from and to kinds; at most one edge of a
many-to-one relation from one from ticket, counting the edges the store already holds; and
a store: parent edge joining two tickets of one source (a link may cross sources). An
edge's identity is its relation and its two ends, so a retry writes nothing for an edge that
exists and receipts it exists. publish copies a ticket after each new ticket its edges
point to, so its record's edges ([{"relation", "to"}]) names that ticket's item, then
writes the batch's edges in one task parent set-many and one task link add-many — a link's
type being the relation's name — receipting each. prepare reads the edges the tickets it
found already hold in one task relations; an item a staged edge names is read too, and
check asks for another prepare when an edge's item end was found after it. A link
task relations reports with other_end: missing — one end lost it, as a whole-body rewrite
of a local-md item does — is reported as missing_links ({"item", "relation", "other"}) and
restored when the batch states that edge again. A configuration with no relations makes none
of these calls.
rollup feeds the to ticket's priority estimate over its direct edges, staged ones counted:
occurrences adds each related ticket's occurrence count to the count the estimate raises on;
max keeps the estimate no lower than the highest of its related tickets' own estimates. A
related ticket's own estimate takes nothing of its own related tickets, so a rollup is one
hop. The result is written as any re-estimate is, guarded by the priority onefollowup last
wrote, so a person's priority stands; an existing item the batch's edges reach is re-estimated
in the batch's update-many. Closing a ticket closes no related ticket. Refused: store: parent with many-to-many; match with many-to-many; a rollup into a kind of fixed
priority.
New evidence goes on the most specific ticket observed: ticket comment given the declared
fields observed (--field) resolves, of the same kinds whose listed fields they fill, the
existing ticket of the most specific — a kind being more specific than the to of a
match-decided relation from it — and refuses a comment naming a less specific ticket while
the more specific one exists.
dispositions — the catalogue every input is given exactly one of, carrying what its
requires names:
- name: filed
description: Filed as a new ticket or as evidence on an existing one.
requires: [ticket] # any of: ticket, change, reason
requires: [ticket] is the only statement that an input is filed; reason and change
file nothing. default_dispositions (a nonempty catalogue subset) is what every kind
allows unless it lists its own dispositions; with neither, a kind allows the whole
catalogue. The verifying agent assigns every input a kind, including one it does not file,
and an input's kind need not equal the kind of a ticket it names.
routes — an ordered list matched deterministically against each ticket; the first
match wins:
- name: on-call
match: # every key optional
kind: [client-error]
severity: [critical] # the rubric severity the ticket records
repository: ["github.com/example/*"]
path: ["src/**"]
relations: {of-error: {min: 2}} # edges at either end, staged ones counted
set: # every key optional; applied over the kind's defaults
status_role: accepted
priority: urgent
labels: [incident]
assignee: alice # one person, as the destination names people
command: [rotation, today] # optional escape hatch
command runs before the ticket's write with
{"schema_version": 1, "ticket": <record>, "kind", "severity", "repository", "paths", "route"}
on stdin; its stdout is empty or a JSON object of status_role, priority, labels and
assignee overriding set, and a non-zero exit withholds that ticket's write, receipted
as route-command-failed. relations counts a relation's edges at either end of the ticket,
staged ones included. An existing item the batch re-estimates is matched too: its route's
command runs before that item's write with the same document, its stdout's priority and
assignee overriding the route's set, and a non-zero exit withholds that item's writes alone
(its re-estimate, assignee and evidence comment), receipted route-command-failed. A route's
labels, like its status_role, are written only when its ticket is copied: an existing item
keeps its labels unchanged, since onetaskgraph's batched update has no additive label update on
an existing item (its TaskUpdate deliberately carries no labels). So an existing root cause a
later batch's third edge makes widespread-root-cause takes the route's high priority, and
not its widespread label.
A ticket has one assignee, as a Linear issue does, written only to a source whose store
configuration sets config.assignees: true — the destination, and the drafts source the copy
carries it from; check refuses a route assigning on a kind where either does not, naming the
route, the source and the setting. A new ticket's assignee lands with the copy that creates it;
an existing ticket's is written in the batch's update-many, held with when_assignees to
exactly the person its record's board_assignee names (none: unassigned), so it lands only
while the item holds exactly what onefollowup last wrote. A write that lands records the person
in board_assignee; one the guard holds keeps the person's assignment — a second assignee a
person added included — and is receipted assignee-held. The assignee travels in calls the
batch already sends; a configuration that assigns nobody writes no assignee and records no
board_assignee.
hooks — a map from the moment a hook fires to its argv, and the owner a context
file names. Two moments exist; any other key is refused:
batch_preparing:prepareruns it before it snapshots, with{"schema_version": 1, "batch": "<id>"}on stdin. Its stdout is the additional inputs needing a disposition,{"schema_version": 1, "inputs": [{"id", "source", "summary", "detail"}]},sourcesaying where the input came from (such asbudget-overrun). A non-zero exit or any other stdout failsprepare, naming the hook, with nothing snapshotted.batch_settled:settleruns it with the settled batch's summary on stdin,{"schema_version": 1, "batch", "writes", "read_back", "confirmed", "pending", "needs_attention", "receipts"}.
A hook runs in the verb's working directory and environment, its argv exactly as configured —
unless an argument holds the placeholder {context_file}. Then onefollowup writes a
JSON context file for that one call, replaces the placeholder with the file's path
wherever it appears, and removes the file once the hook exits; stdin is unchanged. The file is
an instance of an engine's human-item phase context — onepipeline 0.110.2's PhaseContext
(its schemas/human-items.schema.json), read by onepipeline human-items raise --phase <P> --context <FILE>, which refuses any member it does not know — and
crates/onefollowup/schemas/hook-context.schema.json
declares it:
owner:{"session", "run", "plan"}, that release'sHumanItemOwner, fromhooks.owner(runandplannullwhen not given);dedup_key:<namespace>.follow-up/<batch>/<hook>, the same every time the batch runs the hook, so settling a batch again names the same item;tickets: one{"id", "url", "priority"}— that release'sTicket, in the store's priority vocabulary — per ticket the batch's receipts say it created or updated, in the order the journal first names each, read in one store read:urlis the URL the destination states, else afile://URL of the file a source keeps it in, else its id;vars: the hook's stdin document but for itsschema_version, each member as text (a string as itself, any other scalar as its JSON spelling, a list or mapping as compact JSON), which an engine's title and body templates expand as{{ batch }}.
hooks.owner — {session, run, plan}, session required and the others optional; each
value is a literal, or one whole ${NAME} read from the verb's environment when it runs. A hook
naming {context_file} without hooks.owner is refused when the configuration loads; a
variable that is unset or empty refuses the verb before it changes anything, naming the
variable (exit 2). A hook naming no placeholder is handed exactly what it was before, and no
file is written.
A worked example: the configuration below has an engine raise its follow-up-review phase —
a ticket_review hook of its human_items configuration — after every settle:
host_label: build-host-1
hooks:
batch_settled: [onepipeline, human-items, raise, --phase, follow-up-review, --context, '{context_file}']
owner:
session: follow-ups@build-host-1
run: ${FOLLOW_UP_RUN}
A worked example: the context file a settle of a batch that updated one ticket and created
another hands it, its store at /srv/follow-ups:
{
"owner": {
"session": "follow-ups@build-host-1",
"run": "run-2026-11-08",
"plan": null
},
"dedup_key": "orchestrator.follow-up/nightly-2026-11-08/batch_settled",
"tickets": [
{
"id": "followups:widgets-the-theme-resets-after-an-update",
"url": "https://tracker.example/widgets/issues/7",
"priority": "medium"
},
{
"id": "followups:widgets-a-resize-flickers-the-toolbar",
"url": "file:///srv/follow-ups/followups-root/tasks/widgets-a-resize-flickers-the-toolbar.md",
"priority": "medium"
}
],
"vars": {
"batch": "nightly-2026-11-08",
"writes": "2",
"read_back": "0",
"confirmed": "0",
"pending": "0",
"needs_attention": "false",
"receipts": "/srv/follow-ups/.onefollowup/receipts/nightly-2026-11-08.jsonl"
}
}
crates/onefollowup-e2e/tests/e2e/hook_context.rs runs this configuration and holds the file its
settle writes to this example.
Templates
Every ticket-facing template — a kind's ticket_template and render_template, both
comment_templates, each of a kind's projections, and the task template's ticket example —
is a Jinja template (minijinja) given the same data:
| Variable | What it is |
|---|---|
rubric |
The configured rubric (levels, areas, guidance, impact_lines, no_workaround, impact_parts, workaround_costs). |
estimate |
The configured estimate (raise_at, raise_cap). |
fields |
For a ticket, each declared field it records mapped to its value; otherwise each declared field mapped to {description}. |
declared_fields |
Every declared field mapped to {description}, with or without a ticket. |
kind |
The ticket's kind as configured (name, description, …); for a comment, the kind of the ticket it is on. |
batch |
The batch rendering. |
destination |
The source the ticket is copied to, or the comment's item is on. |
namespace |
The configured namespace. |
ticket |
For a ticket: title, slug, body (authored, verbatim), sections, and section(name) (the section named, or none). Each section is {name, content, lead, parts, lines, subsections}: content its text trimmed, lead its text before the first **Label.** part, - Label: value line or ### subsection, parts every **Label.** part of the section, those inside its subsections included, as {label, text} (the text, every paragraph of it, running to the next part, the next ### subsection or the end of the section), lines every - Label: value line as {label, value, text} (text the whole line), and subsections every ### subsection as {heading, content}. Fenced code is never read as any of these. |
record |
For a ticket: every key of its record as it will be stored — projected included once the projections are rendered, for the render template. |
estimate_line |
For a ticket: {level, line, mitigated, frequency, occurrences, raise} — the estimate's level, the - Priority estimate: line (null for a fixed-priority kind), the severity with the workaround, consistent/intermittent or null, the occurrences counted, and how the estimate was raised or why not. The authored body carries no estimate line; a render template places estimate_line.line itself. |
comment |
For a comment: batch, root_cause, evidence, bears_on, question (each null when not given) and sources (host, basis, drafts, witnesses, draft_sources, transcripts, or null); for a reply, answers, verdict, url, author and response instead of the evidence's parts. The reply shape a feedback file quotes is rendered once per verdict, its response the placeholder <your reply, in your words>. |
Every template may call collapsed(summary, content), which writes one expandable block in
the authored form onetaskgraph's README states ("Expandable blocks"): <details> alone,
<summary>…</summary>, a blank line, the content, a blank line, </details>. The store writes
that form as each destination's own (Linear's +++). So a host's render_template, comment
templates and projections put any datum in the body, in a collapsed block, on a board field,
or nowhere, while the record keeps every value.
Only the renderer writes a block and only onefollowup writes a marker: under every
configuration, a ticket's authored title or body, and every part handed to ticket comment
(the evidence, the bears-on paragraph and the question), carrying a <details> or </details>
line outside fenced code, or a comment-marker line, is refused before anything is staged. A
comment's text is its template rendered, a blank line, then the marker as its last line; a
template never writes the marker. A comment's owner and kind are read from that marker alone,
so 0.5.0's comments (an opening line, the text, the marker), those opening with a collapsed
block, and those any configured template rendered are each counted as the occurrence of, and
owned by, the batch and root cause their marker names.
examples/replaced-shape replaces all four templates, and
crates/onefollowup-e2e/tests/e2e/template_data.rs prints every variable above through them.
Examples
examples/ holds five worked configurations, each directory an
onefollowup.yaml, the onetaskgraph.yaml it relies on, and the templates and scripts it
names. crates/onefollowup-e2e/tests/e2e/examples.rs runs one batch of each through the built
binary, its sources replaced by local-md sources of the same names, to the outcome stated here.
replaced-shape — the default root-cause kind with its ticket
shape, destination body and both comments the host's own, in YAML and templates alone. Its
render_template shows the record's host, basis and witnesses in a ## Provenance section and
collapses the workaround's cost and the contributing locations, which the default leaves open;
its evidence template puts the evidence first and lists its sources (host, basis, each draft with
its source and transcript, each witness) in the open; its reply puts the response first; its
projections render the root cause's text and the Who is affected part of ## Impact into
projected, which its onetaskgraph.yaml's metadata_fields show on board fields. Batch: one
draft filed as a ticket carrying a witness; a later batch's evidence comment on it, with its
sources, bears-on paragraph and question; the first batch's next pass counting that comment as
an occurrence and re-copying the changed ticket, its projections updated. Where: followups.
single-root-cause — one root-cause kind and no relations:
the configuration an orchestrator repository uses to keep today's behaviour, every input given
the root-cause kind. Batch: two drafts name the root cause stale-cache-lease, a third names
one already on the board, and the batch_preparing hook
(scripts/follow-up-budget-inputs.sh)
adds one over-budget change the agent cannot reproduce. Filed: one new root-cause ticket
naming both drafts, at Proposal, its priority estimated; one evidence comment on the existing
ticket; the input disposed not-reproducible. Linked: nothing. Where: every ticket on
followups, or wherever that source's own routes send it. The batch_settled hook raises the
batch's follow-up review through onepipeline, handing it the context file (hooks, above)
owned by the session ${FOLLOW_UP_SESSION} names.
symptoms-and-root-causes — a team on Linear:
symptom tickets, one sub-issue per client decided by match, and root causes linked to symptoms
many-to-many by the agent, with rollups. Batch: drafts report TIMEOUT-42 for clients acme
and globex, and PAY-7 for acme; the agent judges that the same stale cache lease causes
both. prepare tells the agent the two symptom targets are absent, and it writes and stages
them. Filed: the root cause stale-cache-lease, symptoms TIMEOUT-42 and PAY-7, and
client-symptoms TIMEOUT-42/acme, TIMEOUT-42/globex and PAY-7/acme. Linked: each
client-symptom a sub-issue of its symptom (derived from the same field error_signature,
never asserted, while the root cause, whose duplicates the agent judges, is only ever linked by
the agent); each symptom caused-by the root cause, as two edges the agent asserted, each also
shown as a Linear related relation through the source's link_types. Rollups: each symptom
counts its client-symptoms' occurrences; the root cause's estimate is no lower than its highest
symptom's. A later draft for TIMEOUT-42 and acme adds evidence to that client-symptom, the
most specific ticket observed (ticket comment --field error_signature=TIMEOUT-42 --field client=acme). When a third symptom is linked, the root cause matches widespread-root-cause;
linked in a later batch, the existing root cause takes its high priority and keeps its labels
(a route's labels are written when its ticket is copied).
Where: everything on the Linear team ENG. A GitHub variant needs sub_issues: parent on a
board of its own, since a parent there is a sub-issue.
typed-destinations — bugs, improvements and security
findings on different destinations, critical bugs escalated by a notify command. Batch: a
critical bug, a high-severity bug, an improvement and a security finding; check would refuse
the security input disposed too-low-impact, which its kind does not allow. Filed: the critical
bug on bug-tracker at urgent, labelled escalated, after
scripts/notify-oncall.sh received it
on stdin, paged through the team's oncall CLI and printed {"assignee": "<this week's on-call display name>"}, so it is assigned to that person; the high bug on bug-tracker, labelled
bug, at its estimate, assigned to the person jane.doe (a Linear display name); a later batch
that finds a person reassigned either ticket leaves that person's choice; the improvement on
product-triage at low; the security finding on security-tracker, merged with any open ticket
of the same error_signature (the bug and improvement duplicates being the agent's judgment).
If the notify command exits non-zero only that ticket's write is withheld, receipted
route-command-failed, and settle records it pending so a retry stays visible. Linked:
nothing. The assignee travels from the drafts source to bug-tracker, so both set
config.assignees: true — the drafts source too, or check refuses the routes that assign.
inline-fixes — small certain fixes land as fixed-inline,
allowed only for the kind this repository's own change can fix; everything else is proposed
under a fixed low priority. Batch: one root-cause draft fixed in the run's own change, one
other root-cause draft and one external-defect draft. external-defect lists no
dispositions, so it inherits default_dispositions, which omit fixed-inline. Filed: nothing
for the first, disposed fixed-inline naming its change (and check refuses that disposition
with no change named, and on an external-defect input); one ticket for each of the others on
backlog, at Proposal, priority low. Linked: nothing.
The comment pass
People answer follow-up tickets on the destination — a question, a correction, a reason a ticket is wrong — and each comment is answered once, by the batch that owns the ticket, with any change it calls for made without overwriting what a person edited meanwhile. The pass is four verbs, its destination work three store calls:
comments gathermakes one comments-since listing of each destination, narrowed to this host's items (<namespace>.follow-up/hostishost_label) at a status whose role isanswered, from the destination's watermark (none: every comment). Who owns each item, and what onefollowup last wrote to it, come from this host's own records — each batch's receipts and its tickets in the drafts source — never another destination read. Each comment is selected for its owning batch or left out for one reason, tried in order: no batch here filed the item; its batch is no batch id; the comment is marked as any batch's own; a bot wrote it; a reply of any batch answers it as it now stands (a reply answers the version its gathering quoted, so a comment edited after it is answered again). Under a relation with arollup, gathering also reads the selected items' relations in onetask relationsand their related tickets in one read; a configuration with no rollup makes neither call. The snapshot,feedback/.snapshots/<stamp>/, holdssnapshot.json(what was selected and left out, and why),gathering.json(the listing, what onefollowup last wrote to each selected item, the rollup reads) andlast-written/, one readable file per selected item, labelled as what onefollowup last wrote and not the destination's current text.comments launchesclaims the snapshot once (launched.json) and writes each selected batch's feedback file,feedback/<batch>/<stamp>.md: the task template rendered withmodefeedback(the shipped one'stask-template/feedback.md.j2), quoting each comment under its anchor with the reply opening and markers its reply carries. The answering agent changes the quoted issues' tickets in the batch's tickets directory —status: cancelledwithdraws one — posts one reply per comment through the store, and writes its account,feedback/<batch>/<stamp>.responses.json. Each batch's tickets are kept as they stood at the launch, under the snapshot'stickets/, so what the agent changed is known.comments checkholds the account to the snapshot: one response per quoted comment, in order, each on the issue it was quoted on and owned by the batch, with its reply's id; and the batch's tickets to changing only quoted issues' tickets, each still sound.comments settlemakes one batched read of every item a sound account quotes and every itempending.jsonnames, with their comments, verifying each reply there. It then sends, in oneupdate-many, every change: a changed ticket's title, content, record and repositories, the re-estimate its comments and confirming replies give (a rollup's related tickets included), guarded by the priority onefollowup last wrote, and a withdrawal's status while the item is at a status that is notprotected— each item's write held to the version the read returned. A write is withheld intopending.jsonwhere the read shows the item differs from what onefollowup last wrote to it (its title, its content less the estimate line, or its record less what onefollowup's own writes move), so a person's edit — before the gathering or after it — stands. An entrypending.jsonalready held is cleared once the read shows it landed, retried in the sameupdate-manyonce the item again holds what onefollowup last wrote, and otherwise kept. A reply the read does not show is recorded there too. A settle with anything pending, or an unsound account, saysneeds_attention. Landed writes are kept in step in the drafts source.
The watermark moves only in settle, to the listing's own watermark — the source's time set
back by its consistency window — and only for an unscoped snapshot whose every selected batch
settled a sound account and whose every reply was verified. So a comment no verified reply
answers is listed again by the next pass, and one a verified reply answers is left as answered.
A pass scoped by --item or --batch reads every comment of its items and moves nothing.
Record formats
Every record is declared once as a Rust type in onefollowup::formats with its parse and
render, and each reads and writes only its current schema, refusing any other with an
error naming the format, the schema found and the schema it reads. There is no migration.
The formats are those on boards and disks today, so nothing already written is rewritten;
the batch id stands where they say run.
| Format | Schema | Where |
|---|---|---|
| Ticket record | 14 | The ticket's <namespace>.follow-up metadata. Optional keys onefollowup adds within 14, each omitted when empty: draft_sources (qualified draft id → author <kind>, then ; node <node> and ; member <member> where the draft names them; written by onefollowup from each draft, after drafts), transcripts (qualified draft id → the command that reads its turns; written by onefollowup, after draft_sources), witnesses (["<origin> <path>:<line> at <commit>"], the origin a key of basis and the commit the one basis holds for it; written by the verifying agent, after basis), kind, fields, edges ([{"relation", "to"}]), board_assignee, impact (rubric impact-line label → value; written by the verifying agent and kept whole) and projected (projection name → rendered value; written by onefollowup alone at ticket copy and publish, and refused in an authored record). The names, shapes and order of draft_sources, transcripts and witnesses are those of the schema-15 records an orchestrator's followups board held, relabelled 14, whose metadata_fields read them: never rename one. |
| Draft record | 1 | A draft's <namespace>.follow-up-draft metadata. |
| Comment markers | — | <!-- <namespace>:follow-up-comment run="…" root_cause="…" -->, the last line of an evidence comment or (with kind="reply" answers="…" verdict="…") a reply, which alone names the comment's owner and kind; the quoted-comment and feedback anchors. |
| Receipt journal | 3 | receipts/<batch>.jsonl, one line per write outcome. Two line kinds onefollowup adds within 3, written only under relations or an assignee: relate (an edge's relation, store, from, to, to_card, derived, action of written, exists or failed, and its error) and assign (the assignee, the when it was held to, action of written, held or failed, and its error, assignee-held when a person's assignment stood). |
| Dispositions | 1 | dispositions/<batch>.json; each entry may carry kind, which check requires. |
| Carried dispositions | 1 | dispositions/<batch>.carried.json. |
| Responses | 3 | feedback/<batch>/<stamp>.responses.json. |
| Snapshot | 2 | feedback/.snapshots/<stamp>/snapshot.json, with its launched.json (1). An item's snapshot_id names its file under the snapshot's last-written/, and its version the version its batch's receipts last recorded. |
| Gathering | 1 | feedback/.snapshots/<stamp>/gathering.json, new in onefollowup: each destination's comments-since listing, what onefollowup last wrote to each selected item, and — under a rollup — the relations and related tickets read. |
| Watermark | 1 | feedback/.watermark-<board>.json. |
| Pending writes | 1 | feedback/pending.json. |
| Existing tickets | 1 | existing-tickets.json. |
| Outbox | 1 | outbox/<batch>.json: the staged writes publish sends. |
| Batch state | 1 | state/<batch>.json: onefollowup's own working file — the input set, prepare's reads and each publish. An optional member onefollowup adds within 1: relations (prepare's task relations read of the tickets it found), omitted when empty; and on each input, author (a draft's source, as draft_sources holds it) and transcript, each omitted when absent. |
Development
just bootstrap from a clean clone, then just check, the deterministic gate; just --list
names every recipe.
Metadata
Release files for onefollowup-cli 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| onefollowup_cli-0.6.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for onefollowup_cli-0.6.0-py3-none-win_amd64.whl |
| onefollowup_cli-0.6.0-py3-none-manylinux_2_39_x86_64.whl | Python 3 | none | Linux glibc 2.39+ x86-64 | Details for onefollowup_cli-0.6.0-py3-none-manylinux_2_39_x86_64.whl |
| onefollowup_cli-0.6.0-py3-none-manylinux_2_39_aarch64.whl | Python 3 | none | Linux glibc 2.39+ ARM64 | Details for onefollowup_cli-0.6.0-py3-none-manylinux_2_39_aarch64.whl |
| onefollowup_cli-0.6.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for onefollowup_cli-0.6.0-py3-none-macosx_11_0_arm64.whl |
Total release size: 53.2 MB
Release files / onefollowup_cli-0.6.0-py3-none-win_amd64.whl
| Download URL | onefollowup_cli-0.6.0-py3-none-win_amd64.whl |
|---|---|
| Size | 13.0 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c98e48c9b56e20153065e7bd7612cb99db224ddec6241ebe68158543c9dd18a9
|
|
BLAKE2b-256 checksum How to use checksums |
a90314a1ecc58d34ffe3f2291b555b117a4c15d9ce116de70d9ffd971ac8941a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / onefollowup_cli-0.6.0-py3-none-manylinux_2_39_x86_64.whl
| Download URL | onefollowup_cli-0.6.0-py3-none-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 14.7 MB |
| Tags | Linux glibc 2.39+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
4f34a705758e1b644672f8794f14e9cd0bab6bb9e68e11ddb2cde0ad9702b36a
|
|
BLAKE2b-256 checksum How to use checksums |
35081d5e0982da6fc30be742287d431ec26feeb683609e23d1905d30c18c566b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / onefollowup_cli-0.6.0-py3-none-manylinux_2_39_aarch64.whl
| Download URL | onefollowup_cli-0.6.0-py3-none-manylinux_2_39_aarch64.whl |
|---|---|
| Size | 14.0 MB |
| Tags | Linux glibc 2.39+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
9683eb3db64613a2da09e2c5a778af4dedb88ef7eeb38628217903cac535e267
|
|
BLAKE2b-256 checksum How to use checksums |
fcd308e3d1579eba64d914183c820cb80d86bef36694894a4e990cb2aa937784
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / onefollowup_cli-0.6.0-py3-none-macosx_11_0_arm64.whl
| Download URL | onefollowup_cli-0.6.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 11.4 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2996494f81023d4af6075ff46669d03cd470aa29a0df612aaa334b1ba880965f
|
|
BLAKE2b-256 checksum How to use checksums |
9b0f0468c987380fd1ad83c7870ed4fd33315278b9867e977ca5c9e78c6bec91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for onefollowup-cli 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.