Skip to content

The Task CRD

tasks.maku.ogenki.io/v1alpha1, namespaced, created by the factory at runtime and never committed to Git. Its name is an 8-character id ([a-z2-7]{8}) derived from the source’s key, so creating it twice is the dedup. Source: api/factory/v1alpha1/task_types.go.

FieldMeaning
spec.source.kindissue, runlore, schedule or api
spec.source.refowner/name#n, <alert>/<resource>, the schedule’s name, or an api task’s ref (default api:<name>)
spec.source.keyThe idempotency key the name derives from
spec.source.requestedBygithub:<login>, system:runlore, system:scheduler, or system:<name> for a sponsored principal
spec.source.sponsorapi tasks only: github:<login>, the maintainer accountable for the request (immutable)
spec.source.onBehalfOfapi tasks only: slack:<team>/<user> when a link chose the sponsor
spec.maxMicroUSDapi tasks only: the request’s max_cost ceiling in micro-USD, immutable; 0 for every other task. See sponsored principals
spec.source.trustuntrusted text is fenced as data for the agent; trusted (schedules) is not
spec.source.contentSHA256sha256 of the text as labelled
spec.repositoryowner/name
spec.issueThe issue the factory narrates on; 0 for none
spec.issueAuthorThe issue’s author, for the room list’s “mine” filter
spec.textThe sanitised snapshot; admission caps it at caps.maxTextBytes
spec.dataClasspublic or internal; every run of the task gets it
spec.predictedClassThe merge class triage predicted. Intent, not authority: only the gate merges
spec.templatesolo, pair, trio or investigate
spec.budgettier, model, runTokens (≤ 5,000,000), taskTokens, runMinutes (≤ 480), runMicroUSD, taskMicroUSD (0: the token caps)
spec.loopstallSteps, continuations, judgeModel (empty: no judge): the class’s loops row, resolved at triage; every implementer run of the task gets it as spec.loop. Unset: the loop is off
spec.scopeModeoff, steering or scoper: the class’s loops row, fixed at triage. Empty: triaged before the field existed, read as off. An investigate task is always off
spec.searchtrue when the class’s loops row sets search, fixed at triage; every implementer run of the task gets spec.loop.search. Omitted: off
spec.steeringpath, sha (the git blob), text: the class’s steering note on the default branch, read at triage; unset for none
status.phase, status.reason, status.phaseSinceThe phase above, why, and since when
status.classificationThe classifier’s tier, confidence, classifier, fallback (none, default, static), shadow verdicts, control (forced to frontier) and fit (scored at the end)
spec.splitmaxChildren (2–5), familyMicroUSD, childTier: set at triage on a task C7 rated frontier (any task, with split.anyTier) whose class has a split row. The family’s cap lives here; the parent’s spec.budget stays its tier’s
spec.parentOn a part: task, issue, index, of. Fixed at creation. A part is requested by the approver and carries its parent’s snapshot whole (text, contentSHA256)
spec.scopeOn a part: its own scope (state: ready, task, touches, leave, plan, assumptions, acceptance), from the approved split. Never changes once set; a revision brief keeps it whole
status.runs[]Each run: id, role, trigger (initial, review, human, ci, retry, resume), round, phase, reason, verdict, tokens, costMicroUSD, unpriced, startSeq, headSHA, started, finished, and provenance, what it ran on: factoryVersion (the claim’s CREATE-only agents.ogenki.io/factory-version), compositionRevision (the claim’s spec.crossplane.compositionRevisionRef.name), harnessImage (the claim’s status.harnessImage, the harness container’s imageID) and servedModels (the meter’s gen_ai_request_model, at most 8, each at most 64 characters: a longer name is skipped, never truncated). Each is written once, as it becomes known; empty means unknown. A run created before the upgrade (its claim has no factory version) stays empty, and a value over the CRD’s bound is not recorded
status.roomRefThe task’s room, named like the task
status.pullRequestnumber, url, nodeID, headSHA, mergeCommitSHA, mergedBy, autoMerged, armedAt, mergedAt, revertNumber, author, reviewers
status.usagetokens and costMicroUSD summed over the runs; never drops
status.usageSettledThe meter’s late readings had their window and the total is final
status.endedAt, status.outcomeThe task’s first end and what it ended as (accepted, merged_human, no_op, closed, stopped, rejected, reverted, failed): the settle window counts from the first. A later Reverted revises neither. task_outcomes_total reports outcome for a task of its own; an approved split’s parent reports the family’s outcome, read from its parts at the settle, and its own outcome is a part’s fallback (a part never opened, or not ended)
status.evaluatedA split’s part the evaluation counts under its parent’s workflow: written at the part’s triage when the parent has one. Its merge’s provenance is read for the mark, never for the parent
status.reviewRounds, status.fixRuns, status.retries, status.resumesCounters behind maxReviewRounds, merge.fixRuns, /factory retry and resume.maxPerTask. status.fixRunsBeforeStep is fixRuns at the escalation step: the cap counts from it
status.checkReruns, status.checkRerunsHeadRe-runs of cancelled checks, per head
status.gateReentriesReturns from a transient hand-off to the gate (at most 3)
status.verdictThe last review’s effective verdict: approve, changes or none
status.narrated, status.outboxKeys of the comments posted; comments still owed
status.roomSeq, status.factsThe task’s message sequence in its room; the facts last written there
status.nextTrigger, status.nextRoleWhy the next run exists; the verifier it is for
status.handledGitHub review and comment ids already acted on
status.heldUp to 16 maintainers’ commands posted before the phase they apply in: id (the comment), command (retry, retry-deeper, retry-openhands, split, fix, plan-approve, plan-revise, plan-split), author, at. Each leaves when applied or expired (Commands posted early)
status.refusalsUp to 16 login, at: the last “not acted on” reply to each person, at most one an hour
status.configHashThe config that triaged the task
status.contractrunId, commit (40 hex), files, ids (1 to 50 each): the tester’s commit as GitHub recorded it. Set once, when its push is read; every implementer run is held to it
status.scopestate (ready, question, assumed, missing, failed) and seq (the scope’s handoff): the scoper’s outcome, kept when the task stops
status.overlapThe bounded outcome-overlap evaluation: repository-scoped fingerprint (64 lowercase hex), classification, at most 20 matches (Task/run 8-character ids, positive issue/PR numbers, exact/lexical, phase), at most four checked sources (tasks, runs, rooms, github), optional deterministic evaluation-run scoperRun, checkedAt and a note of at most 512 characters. Pending has neither classification nor checkedAt; a final classification and its evidence are immutable
status.splitstate (proposed, approved, declined, superseded, expired, ignored), seq (the split’s handoff), of, approvedBy (github:<login>, every part’s payer) and children[] (index, issue, task, outcome: landed, dropped, reverted)
status.lastActivityThe running run’s last room event, for stuck detection
status.traceThe task’s root span ids
MetadataMeaning
Annotation agents.ogenki.io/stopStop this task: true by hand, label from factory/stop, superseded by a new factory/ready, family_dropped on a part whose family ended Closed
Annotation agents.ogenki.io/revertA maintainer’s factory/revert
Label agents.ogenki.io/issueThe issue number
Label agents.ogenki.io/parentA part’s parent task: how the factory lists a family and sums its spend. Only spec.parent counts as membership
Label agents.ogenki.io/source-keyGroups a RunLore finding’s tasks