Lifecycle table

This is the contribution state machine as defined in lifecycle.py: 29 states, 244 transitions with 96 distinct verbs (70 of the transitions are expanded from 5 rules), 1 flag, and 13 retry budgets, plus the operation table with 6 states and 14 transitions. A contribution starts in queued.idle (accept_request).

Requested Work is identified by its generation, revision, and Work id. A Result that differs in any of them is never folded and never published.

Contents
  1. Triggers
  2. State kinds
  3. States
  4. Partial clears
  5. Rules
    1. park_contribution
    2. resume_stale
    3. record_reminder
    4. record_source_unavailable
    5. record_late_effect
  6. Flags
    1. paused
  7. Transitions
    1. queued.idle
    2. planning.idle
    3. planning.agent_running
    4. planning.waiting_human
    5. provisioning.idle
    6. provisioning.waiting_human
    7. development.agent_running
    8. development.waiting_ci
    9. development.fix_needed
    10. development.waiting_human
    11. handoff.awaiting_submission
    12. handoff.review_due
    13. handoff.agent_running
    14. handoff.review_pending
    15. handoff.reviewing
    16. handoff.building_upstream_branch
    17. handoff.waiting_ci
    18. handoff.preparing_submission
    19. handoff.waiting_human
    20. handoff.waiting_upstream_pr
    21. upstream_review.waiting_ci
    22. upstream_review.fix_needed
    23. upstream_review.agent_running
    24. upstream_review.waiting_human
    25. release_wait.idle
    26. release_wait.waiting_human
    27. released.idle
    28. parked.idle
    29. closed.idle
  8. Budgets
  9. Operation table
    1. Operation planned
    2. Operation applying
    3. Operation uncertain
    4. Operation confirmed
    5. Operation failed
    6. Operation not_launched

Triggers

Trigger Meaning
command An authorized /upstreaming command. Commands that activate or approve work name the exact current revision; stop commands may name a stale one.
observation A read-only observation by the collector: fork branch, CI runs, pull requests, review comments, or releases.
result A verified native-queue Result folded by reconciliation. A Result is folded only when it matches the current generation, revision, and requested Work; any other Result takes record_late_effect. Each Result records its token usage in the events.
operation A trusted remote operation receipt and its exact readback.
tick A controller decision without new input: Work allocation, a budget charge or exhaustion, a deadline, or the stop after an unexpected error while one contribution was processed.

State kinds

Kind Meaning
auto_wait Waits for an automatic trigger; the controller acts without a human. A guard that does not hold yet (a worker slot, capacity) keeps the contribution here; there is no separate capacity wait.
work Requested Work or a trusted operation is in progress.
human_wait A recorded pending_human_action names what a human must do; /upstreaming resume continues.
gate Waits for a human command that starts the next step.
locked Write-fenced wait: only the listed exits leave it, and no Work, patch, or branch write happens while here.
generation_end The current generation has ended; the record is kept for audit and late-effect reconciliation until a clean restart with /upstreaming refresh.
terminal No transition leaves this state.

States

Launches means the controller may allocate Work or launch remote effects from the state, subject to the flags. Fork writes means automated writers may write the contribution fork. Exits counts the state’s own transitions and, after the plus sign, the rule transitions that apply in it.

State Kind Launches Fork writes Exits Description
queued.idle auto_wait yes no 6 + 3 An accepted request is recorded; planning has not started.
planning.idle auto_wait yes no 6 + 3 Planning is due; the controller allocates planning Work when a worker slot is free.
planning.agent_running work no no 10 + 2 Planning Work is requested or running and will return a plan.
planning.waiting_human human_wait no no 5 + 3 Planning recovery or a budget is exhausted; a human corrects the cause and resumes.
provisioning.idle work yes yes 7 + 4 The fork provisioning operation is planned or running through the trusted workflow.
provisioning.waiting_human human_wait no no 4 + 4 Provisioning cannot continue safely; a human corrects the prerequisite and resumes, or parks.
development.agent_running work no yes 10 + 3 Patch Work is requested or running, or its verified Result is being published.
development.waiting_ci auto_wait no yes 11 + 3 A patch is published to the development PR; CI and review evaluate the exact head. Passing CI nominates the head, or returns to development.fix_needed while actionable feedback is pending or a series requirement of the plan is unmet; passing CI behind an open operation keeps the contribution here.
development.fix_needed auto_wait yes yes 12 + 4 Development Work is due: the fork is ready for a first patch, or a CI failure, actionable review, passing CI with feedback still pending, rejected proposal, refreshed plan, or a resume needs a bounded repair. It is the only state in which patch Work is requested, so none is requested before confirm_provisioning.
development.waiting_human human_wait no no 7 + 4 Development recovery or work_total is exhausted, the development PR does not match, or CI on the head was interrupted repeatedly; a human corrects the cause and resumes.
handoff.awaiting_submission gate no no 6 + 3 Required CI passed on the exact head; a human may request upstream submission.
handoff.review_due auto_wait yes no 6 + 3 The submission rewrite is due; the controller allocates rewrite Work when a worker slot is free.
handoff.agent_running work no no 6 + 2 Submission rewrite Work is requested or running; its Result is the rewritten series, title, and description, or the reasons the series cannot be shaped without a code change.
handoff.review_pending auto_wait yes no 7 + 3 The rewritten series passed the trusted check; its review is due, and the controller allocates review Work when a worker slot is free.
handoff.reviewing work no no 6 + 2 Submission review Work is requested or running; its Result is pass or fail with reasons for exactly the rewritten series and text.
handoff.building_upstream_branch work no yes 6 + 2 The upstream branch riscv64 is created, or replaced under an exact-head lease, from the reviewed series, and read back. It is never written while an upstream PR is open from it, and riscv64-dev is not changed.
handoff.waiting_ci auto_wait no no 5 + 2 Required CI runs on the clean head of riscv64.
handoff.preparing_submission work no no 4 + 2 The submission package (title, body, prefilled compare link) is posted to the tracking issue. It is posted only while riscv64 still resolves to the clean head.
handoff.waiting_human human_wait no no 9 + 3 A handoff step failed repeatedly or needs a human: the submission rewrite or review Work, writing riscv64 (also while an upstream PR is open from it), CI on the clean head, or posting the submission package. A human corrects it and resumes; the resume returns to the step named by pending_human_action and starts again the counter named in pending_human_action.counter.
handoff.waiting_upstream_pr locked no no 4 + 2 Waiting for a human to open the upstream PR from the package. Exactly three exits leave it: verify_upstream_pr, retract_submission, and refresh_planning.
upstream_review.waiting_ci auto_wait no no 7 + 1 The upstream PR is open; upstream CI, review, and merge are observed. Upstream CI is never rerun by the pipeline.
upstream_review.fix_needed auto_wait yes yes 8 + 2 Upstream CI or actionable review needs a revision of the upstream PR head.
upstream_review.agent_running work no yes 9 + 1 Revision Work for the upstream PR head is requested or running, or its verified Result is being published.
upstream_review.waiting_human human_wait no no 7 + 3 The upstream PR was closed unmerged, its head changed, a reviewer needs an answer, or recovery or a budget is exhausted; a human triages.
release_wait.idle auto_wait no no 3 + 1 The upstream PR is merged; official release coverage is observed.
release_wait.waiting_human human_wait no no 1 + 2 Release evidence needs operator action.
released.idle terminal no no 0 + 1 Verified official release coverage satisfies the acceptance contract.
parked.idle generation_end no no 2 + 1 The generation ended without success; a clean restart is possible.
closed.idle terminal no no 0 + 1 No further work: withdrawn, not applicable, already satisfied, or abandoned. The reason is terminal_reason.

Partial clears

An effect normally clears a whole field. These entries clear a part of one.

Entry Field What is cleared
carried pending_feedback_evidence_ids pending_feedback_evidence_ids exactly the ids in active_work.feedback_evidence_ids, the pending feedback present when the Work was allocated; feedback recorded later stays pending

Rules

A rule is a transition that applies in many states. It is written once and expanded into one row per state; the rows appear under each state below, marked (rule).

park_contribution

Applies in every non-terminal state except parked.idle, handoff.waiting_upstream_pr, release_wait.*, and upstream_review.* other than upstream_review.waiting_human.

Verb Trigger To Guard Effects Charges
park_contribution command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -

Expanded into: queued.idle, planning.idle, planning.agent_running, planning.waiting_human, provisioning.idle, provisioning.waiting_human, development.agent_running, development.waiting_ci, development.fix_needed, development.waiting_human, handoff.awaiting_submission, handoff.review_due, handoff.agent_running, handoff.review_pending, handoff.reviewing, handoff.building_upstream_branch, handoff.waiting_ci, handoff.preparing_submission, handoff.waiting_human, upstream_review.waiting_human.

resume_stale

Applies in every provisioning.* and development.* state.

Verb Trigger To Guard Effects Charges
resume_stale command (/upstreaming resume) queued.idle exact revision; paused, or waiting for a human; stopped for longer than refresh.stale_after_days days; quiescent: no open operation and no pending publication; no requested Work. After a long stop the plan is refreshed: complete planning runs again while the fork and development PR are kept. The stop is counted from the older of paused_at and pending_human_action.requested_at. While an operation is open no resume applies, and the rejection names the open operation. From a human wait that an exhausted budget caused, it starts again the counter named in pending_human_action.counter, like every resume. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id, paused, paused_at, paused_reason, paused_by; starts again the counter named in pending_human_action.counter (one of operation_launch, interrupted_reruns, dispatch_recovery, work_recovery, work_total, publish_recovery, source_reads) -

Expanded into: provisioning.idle, provisioning.waiting_human, development.agent_running, development.waiting_ci, development.fix_needed, development.waiting_human.

record_reminder

Applies in every state of kind gate, human_wait, or locked.

Verb Trigger To Guard Effects Charges
record_reminder tick same state at least human_sla_business_days.reminder business days since the request or the last reminder; not paused. Posts an append-only reminder of the pending human step. In handoff.waiting_upstream_pr the reminder text carries the package link and the exact head, and states when an observed PR does not match. sets pending_human_action.reminded_at -

Expanded into: planning.waiting_human, provisioning.waiting_human, development.waiting_human, handoff.awaiting_submission, handoff.waiting_human, handoff.waiting_upstream_pr, upstream_review.waiting_human, release_wait.waiting_human.

record_source_unavailable

Applies in every state in which the controller needs the upstream base branch: queued.idle, planning.idle, provisioning.idle, development.fix_needed, handoff.review_due, handoff.review_pending, and upstream_review.fix_needed.

Verb Trigger To Guard Effects Charges
record_source_unavailable observation same state the upstream repository or its base branch could not be read, and the upstream did not say that the branch is missing; source_reads remains; not paused; quiescent: no open operation and no pending publication. A network error, a server error, a rate limit, or a repository that cannot be read: the contribution stays, and a later tick reads the upstream again. A failed read is charged only when it is the first of a run, or when it falls in a later spacing slot than the last charged read (slots of retries.source_unavailable_minutes divided by retries.source_unavailable_reads, counted from the first failed read, so that a tick a little early or late still counts); a failed read in the same slot writes nothing, so a burst of ticks adds no events, and a read after a long pause counts once. A tick that reads the upstream starts source_reads again. none source_reads

Expanded into: queued.idle, planning.idle, provisioning.idle, development.fix_needed, handoff.review_due, handoff.review_pending, upstream_review.fix_needed.

record_late_effect

Applies in every state.

Verb Trigger To Guard Effects Charges
record_late_effect result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

Expanded into: queued.idle, planning.idle, planning.agent_running, planning.waiting_human, provisioning.idle, provisioning.waiting_human, development.agent_running, development.waiting_ci, development.fix_needed, development.waiting_human, handoff.awaiting_submission, handoff.review_due, handoff.agent_running, handoff.review_pending, handoff.reviewing, handoff.building_upstream_branch, handoff.waiting_ci, handoff.preparing_submission, handoff.waiting_human, handoff.waiting_upstream_pr, upstream_review.waiting_ci, upstream_review.fix_needed, upstream_review.agent_running, upstream_review.waiting_human, release_wait.idle, release_wait.waiting_human, released.idle, parked.idle, closed.idle.

Flags

A flag is stored beside the state. It is set and cleared from every non-terminal state and keeps phase and activity, except where noted.

paused

Stored in paused. A stop of new Work and writer admission, with its reason and who set it (a human or the controller) in paused_reason and paused_by. pause accepts an optional reason; a pause set by the controller always records one: pause_on_identity_change names it in the table, and pause_on_processing_error records the error. Setting it clears the requested Work and the pending publication, and records paused_at; nothing held is published after the stop, and no publish retry is launched while paused. Phase, activity, evidence, and pending feedback are kept. The one exception: setting it in an agent_running state leads to the state in which the Work is due again, planning.idle, development.fix_needed, handoff.review_due (also from handoff.reviewing), or upstream_review.fix_needed. In handoff.awaiting_submission and handoff.waiting_upstream_pr, resume_pause keeps the plan, candidate head, clean head, handoff_request, and the posted package. verify_upstream_pr binds to the exact head only, so the revision bump does not invalidate the posted package; submit_upstream and retract_submission also name the exact revision, so after the bump they name the new revision with the same head, as the tracking-issue entries offer them.

Verb Sets or clears Trigger Guard Effects
pause sets command (/upstreaming pause) not paused; not terminal; any revision, current or stale. A reason is optional; when given it is recorded in paused_reason. Work: clear; sets paused, paused_at, paused_reason, paused_by=human; clears pending_publication
pause_on_identity_change sets observation not paused; not terminal; the observed upstream repository identity differs from the recorded one Work: clear; sets paused, paused_at, paused_reason=upstream_identity_changed, paused_by=controller; clears pending_publication
pause_on_processing_error sets tick not paused; not terminal; an unexpected error while the controller processed this contribution in the tick. Everything the tick staged for the contribution and every effect it requested for it are discarded first, so the stop is taken on the record as it was committed before the tick. paused_reason states the error class, the bounded and sanitized message, and the run id. The tick continues with the other contributions. A contribution that is already paused is not paused again. Work: clear; sets paused, paused_at, paused_reason, paused_by=controller; clears pending_publication
resume_pause clears command (/upstreaming resume) paused; exact revision; stopped for at most refresh.stale_after_days days, or the phase is not provisioning or development. A Result that landed during the pause no longer matches and takes record_late_effect. In a human wait the resume clears the flag only: the reply states that the contribution still waits for a human and names the pending action, and a second resume leaves the wait. revision +1; clears paused, paused_at, paused_reason, paused_by

Setting the flag clears the requested Work, so these states are left for the state in which that Work is due again:

From To
planning.agent_running planning.idle
development.agent_running development.fix_needed
handoff.agent_running handoff.review_due
handoff.reviewing handoff.review_due
upstream_review.agent_running upstream_review.fix_needed

While set:

Trigger Effect
command resume, park, refresh, retract-pr, abandon, and resolve-operation apply; other commands are rejected. resume clears the flag first: it takes resume_pause or resume_stale. In a human wait a second resume then leaves the wait.
observation Folded normally, including CI on the exact head.
result The requested Work and the pending publication were cleared, so a Result takes record_late_effect; nothing is published.
operation Folded normally. The publisher’s final check reads paused; an effect that passed it before the pause may finish.
tick No launch, no Work allocation, no budget charge; reminders are suppressed.

Transitions

For each state, the verbs available from it. A verb leads from a state to one target only. Same state means the transition keeps phase and activity.

queued.idle

Verb Trigger To Guard Effects Charges
begin_planning tick planning.idle not paused none -
withdraw_request observation closed.idle intake label removed; no Work requested; no plan; no fork sets terminal_reason=withdrawn -
require_base_branch observation planning.waiting_human the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Records whether the branch does not exist or was renamed, and to which name. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
exhaust_source_reads observation planning.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the base branch; not paused; quiescent: no open operation and no pending publication. Records how many failed reads were counted, since when, how many of them could not read the repository itself, and the last error. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=base_branch_unavailable, pending_human_action.counter=source_reads -
require_upstream_access observation planning.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the repository itself; not paused; quiescent: no open operation and no pending publication. Taken once failed reads of the repository itself are the majority of the retry window (deleted, made private, or no longer readable with the token). Records the repository and the counted reads. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=upstream_unavailable, pending_human_action.counter=source_reads -
require_renamed_upstream observation planning.waiting_human GitHub answers for the recorded upstream repository id under another name (renamed or transferred); not paused; quiescent: no open operation and no pending publication. Taken at once, with no counter: the answer cannot change by reading again. Records the repository and the name GitHub now gives it, and upstream.repository_id becomes the id GitHub answered for (the recorded one when it is bound; for a request not bound yet, the id of the renamed repository, so that no other repository later created under the recorded name is taken for it). The upstream is still read on every tick, and once GitHub answers for the same repository id under its recorded name again the wait ends without a human (resume_renamed_upstream); a resume while it is still named otherwise waits again at once. Once it is answered for under its recorded name but its base branch is missing, require_base_branch replaces the wait. A repository that moved is a new request: the contribution is parked, then abandoned. sets pending_human_action=upstream_unavailable, upstream.repository_id -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_source_unavailable (rule) observation same state the upstream repository or its base branch could not be read, and the upstream did not say that the branch is missing; source_reads remains; not paused; quiescent: no open operation and no pending publication. A network error, a server error, a rate limit, or a repository that cannot be read: the contribution stays, and a later tick reads the upstream again. A failed read is charged only when it is the first of a run, or when it falls in a later spacing slot than the last charged read (slots of retries.source_unavailable_minutes divided by retries.source_unavailable_reads, counted from the first failed read, so that a tick a little early or late still counts); a failed read in the same slot writes nothing, so a burst of ticks adds no events, and a read after a long pause counts once. A tick that reads the upstream starts source_reads again. none source_reads
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

planning.idle

Verb Trigger To Guard Effects Charges
dispatch_planning tick planning.agent_running worker slot free; work_total remains; not paused; no open operation; upstream identity and base bound Work: allocate work_total
exhaust_work_total tick planning.waiting_human work_total exhausted sets pending_human_action=work_budget_exhausted, pending_human_action.counter=work_total -
require_base_branch observation planning.waiting_human the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Records whether the branch does not exist or was renamed, and to which name. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
exhaust_source_reads observation planning.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the base branch; not paused; quiescent: no open operation and no pending publication. Records how many failed reads were counted, since when, how many of them could not read the repository itself, and the last error. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=base_branch_unavailable, pending_human_action.counter=source_reads -
require_upstream_access observation planning.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the repository itself; not paused; quiescent: no open operation and no pending publication. Taken once failed reads of the repository itself are the majority of the retry window (deleted, made private, or no longer readable with the token). Records the repository and the counted reads. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=upstream_unavailable, pending_human_action.counter=source_reads -
require_renamed_upstream observation planning.waiting_human GitHub answers for the recorded upstream repository id under another name (renamed or transferred); not paused; quiescent: no open operation and no pending publication. Taken at once, with no counter: the answer cannot change by reading again. Records the repository and the name GitHub now gives it, and upstream.repository_id becomes the id GitHub answered for (the recorded one when it is bound; for a request not bound yet, the id of the renamed repository, so that no other repository later created under the recorded name is taken for it). The upstream is still read on every tick, and once GitHub answers for the same repository id under its recorded name again the wait ends without a human (resume_renamed_upstream); a resume while it is still named otherwise waits again at once. Once it is answered for under its recorded name but its base branch is missing, require_base_branch replaces the wait. A repository that moved is a new request: the contribution is parked, then abandoned. sets pending_human_action=upstream_unavailable, upstream.repository_id -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_source_unavailable (rule) observation same state the upstream repository or its base branch could not be read, and the upstream did not say that the branch is missing; source_reads remains; not paused; quiescent: no open operation and no pending publication. A network error, a server error, a rate limit, or a repository that cannot be read: the contribution stays, and a later tick reads the upstream again. A failed read is charged only when it is the first of a run, or when it falls in a later spacing slot than the last charged read (slots of retries.source_unavailable_minutes divided by retries.source_unavailable_reads, counted from the first failed read, so that a tick a little early or late still counts); a failed read in the same slot writes nothing, so a burst of ticks adds no events, and a read after a long pause counts once. A tick that reads the upstream starts source_reads again. none source_reads
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

planning.agent_running

Verb Trigger To Guard Effects Charges
retry_dispatch tick same state a dispatcher run ended with the requested Work absent or unclaimed; dispatch_recovery remains. Launches the dispatcher again for the same committed Work request. none dispatch_recovery
exhaust_dispatch_recovery tick planning.waiting_human dispatch_recovery exhausted Work: clear; sets pending_human_action=dispatch_failed, pending_human_action.counter=dispatch_recovery -
allocate_work_retry tick same state the Work graph is terminal without a usable Result; work_recovery and work_total remain; upstream identity and base bound. A terminal Work graph is never submitted again; a fresh graph is allocated. It carries the same feedback ids. revision +1; Work: reallocate work_recovery, work_total
exhaust_work_recovery tick planning.waiting_human the Work graph is terminal without a usable Result; work_recovery or work_total exhausted. pending_human_action.counter names work_total when that budget is exhausted, and work_recovery otherwise. Work: clear; sets pending_human_action=work_failed, pending_human_action.counter -
reject_plan result planning.idle the Result has no plan, the plan is invalid, its decision is not develop, park, or close, or PyPI does not confirm a decision close; planning_attempts remains. Trusted validation rejects the Result; a new planning run is due. revision +1; Work: clear planning_attempts
exhaust_planning_recovery result planning.waiting_human the Result has no usable plan; planning_attempts exhausted Work: clear; sets pending_human_action=planning_failed, pending_human_action.counter=planning_attempts -
admit_development result provisioning.idle verified plan decision develop, or verified plan decision park and a recorded admission_override; the verified plan names scope_paths, and scope_coverage_complete holds; no refresh recorded, or the recorded fork or development PR no longer matches. The scope of the patch is checked here, before a fork exists: no patch Work is requested before confirm_provisioning. revision +1; Work: clear; sets plan_evidence_id, admission_class, scope_paths; clears refresh, admission_override -
readmit_development result development.fix_needed verified plan decision develop, or verified plan decision park and a recorded admission_override; refresh recorded; the recorded fork and development PR still match. A refreshed planning returns to the existing fork for repair. revision +1; Work: clear; sets plan_evidence_id, admission_class, scope_paths; clears refresh, admission_override -
park_planning result parked.idle verified plan decision park; no admission_override recorded Work: clear; sets parked_reason, previous_phase; clears pending_publication -
close_planning result closed.idle verified plan decision close; PyPI serves riscv64 for the latest release of every distribution, and each PyPI project names the upstream repository: a riscv64 wheel, or pure-Python wheels only. The reconciler reads PyPI itself; terminal_reason is already_released when a riscv64 wheel is published, else no_work. A project that is not released on PyPI is never closed by its plan: it is parked with the evidence. A recorded admission_override is not applied against a decision close; the reply states so. Work: clear; sets terminal_reason; clears pending_publication -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

planning.waiting_human

Verb Trigger To Guard Effects Charges
rearm_dispatch tick planning.idle pending_human_action is dispatch_failed; the work-queue Policy was installed after the dispatch failed, and the compiled policy preserves it; not paused; quiescent: no open operation and no pending publication. Re-arms a dispatch that failed while the installed work-queue Policy refused every dispatch, once the dispatcher has reinstalled the compiled policy: the same transition as the resume a human would post, taken by the controller. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of dispatch_recovery) -
resume_planning command (/upstreaming resume) planning.idle exact revision; quiescent: no open operation and no pending publication. When an exhausted budget caused the wait, the resume starts again the one counter named in pending_human_action.counter, and no other. The event records the actor, the counter, and its count at that point. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of work_total, dispatch_recovery, work_recovery, planning_attempts, source_reads) -
resume_upstream_read tick planning.idle pending_human_action is base_branch_unavailable or upstream_unavailable; the wait was entered because reads kept failing, not because the upstream said that the branch is missing; the upstream repository and its base branch are read again; not paused; quiescent: no open operation and no pending publication. Ends a wait that failed reads caused once a tick reads the upstream again: the step that was due runs again, and the tracking issue states that the contribution continues. A wait the upstream’s own answer caused (a missing or renamed branch) still needs a resume. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of source_reads) -
resume_renamed_upstream tick planning.idle pending_human_action is upstream_unavailable; the wait was entered because GitHub named the recorded repository otherwise: its pending action names no counter; the upstream repository and its base branch are read again; not paused; quiescent: no open operation and no pending publication. Ends the wait a renamed repository caused once a tick reads the repository under its recorded name and id again: the step that was due runs again, and the tracking issue states that the contribution continues. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of source_reads) -
require_base_branch tick same state the wait was entered because GitHub named the recorded repository otherwise: its pending action names no counter; the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Taken once the repository is read under its recorded name and id again and the upstream says that the base branch does not exist or was renamed: the wait stays, and its cause becomes the base branch, as require_base_branch records it from the state the step was due in. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_reminder (rule) tick same state at least human_sla_business_days.reminder business days since the request or the last reminder; not paused. Posts an append-only reminder of the pending human step. In handoff.waiting_upstream_pr the reminder text carries the package link and the exact head, and states when an observed PR does not match. sets pending_human_action.reminded_at -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

provisioning.idle

Verb Trigger To Guard Effects Charges
start_operation tick same state fork_provision operation planned; capacity available; operation_launch remains; not paused. Launches the planned operation; an uncertain launch is never repeated without discovery. none operation_launch
require_provisioning_intervention operation provisioning.waiting_human a prerequisite cannot be satisfied, an uncertain operation has no discovery, or operation_launch is exhausted. pending_human_action.counter names operation_launch when that budget is exhausted, and no counter otherwise. sets pending_human_action, pending_human_action.counter -
confirm_provisioning operation development.fix_needed the receipt matches the operation; exact fork and ref readback sets fork, upstream.repository_id, upstream.base_ref, upstream.base_sha -
require_base_branch observation provisioning.waiting_human the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Records whether the branch does not exist or was renamed, and to which name. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
exhaust_source_reads observation provisioning.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the base branch; not paused; quiescent: no open operation and no pending publication. Records how many failed reads were counted, since when, how many of them could not read the repository itself, and the last error. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=base_branch_unavailable, pending_human_action.counter=source_reads -
require_upstream_access observation provisioning.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the repository itself; not paused; quiescent: no open operation and no pending publication. Taken once failed reads of the repository itself are the majority of the retry window (deleted, made private, or no longer readable with the token). Records the repository and the counted reads. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=upstream_unavailable, pending_human_action.counter=source_reads -
require_renamed_upstream observation provisioning.waiting_human GitHub answers for the recorded upstream repository id under another name (renamed or transferred); not paused; quiescent: no open operation and no pending publication. Taken at once, with no counter: the answer cannot change by reading again. Records the repository and the name GitHub now gives it, and upstream.repository_id becomes the id GitHub answered for (the recorded one when it is bound; for a request not bound yet, the id of the renamed repository, so that no other repository later created under the recorded name is taken for it). The upstream is still read on every tick, and once GitHub answers for the same repository id under its recorded name again the wait ends without a human (resume_renamed_upstream); a resume while it is still named otherwise waits again at once. Once it is answered for under its recorded name but its base branch is missing, require_base_branch replaces the wait. A repository that moved is a new request: the contribution is parked, then abandoned. sets pending_human_action=upstream_unavailable, upstream.repository_id -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
resume_stale (rule) command (/upstreaming resume) queued.idle exact revision; paused, or waiting for a human; stopped for longer than refresh.stale_after_days days; quiescent: no open operation and no pending publication; no requested Work. After a long stop the plan is refreshed: complete planning runs again while the fork and development PR are kept. The stop is counted from the older of paused_at and pending_human_action.requested_at. While an operation is open no resume applies, and the rejection names the open operation. From a human wait that an exhausted budget caused, it starts again the counter named in pending_human_action.counter, like every resume. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id, paused, paused_at, paused_reason, paused_by; starts again the counter named in pending_human_action.counter (one of operation_launch, interrupted_reruns, dispatch_recovery, work_recovery, work_total, publish_recovery, source_reads) -
record_source_unavailable (rule) observation same state the upstream repository or its base branch could not be read, and the upstream did not say that the branch is missing; source_reads remains; not paused; quiescent: no open operation and no pending publication. A network error, a server error, a rate limit, or a repository that cannot be read: the contribution stays, and a later tick reads the upstream again. A failed read is charged only when it is the first of a run, or when it falls in a later spacing slot than the last charged read (slots of retries.source_unavailable_minutes divided by retries.source_unavailable_reads, counted from the first failed read, so that a tick a little early or late still counts); a failed read in the same slot writes nothing, so a burst of ticks adds no events, and a read after a long pause counts once. A tick that reads the upstream starts source_reads again. none source_reads
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

provisioning.waiting_human

Verb Trigger To Guard Effects Charges
resume_provisioning command (/upstreaming resume) provisioning.idle exact revision; the prerequisite is corrected; stopped for at most refresh.stale_after_days days. When an exhausted budget caused the wait, the resume starts again the one counter named in pending_human_action.counter, and no other. The event records the actor, the counter, and its count at that point. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of operation_launch, source_reads) -
resume_upstream_read tick provisioning.idle pending_human_action is base_branch_unavailable or upstream_unavailable; the wait was entered because reads kept failing, not because the upstream said that the branch is missing; the upstream repository and its base branch are read again; not paused; quiescent: no open operation and no pending publication. Ends a wait that failed reads caused once a tick reads the upstream again: the step that was due runs again, and the tracking issue states that the contribution continues. A wait the upstream’s own answer caused (a missing or renamed branch) still needs a resume. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of operation_launch, source_reads) -
resume_renamed_upstream tick provisioning.idle pending_human_action is upstream_unavailable; the wait was entered because GitHub named the recorded repository otherwise: its pending action names no counter; the upstream repository and its base branch are read again; not paused; quiescent: no open operation and no pending publication. Ends the wait a renamed repository caused once a tick reads the repository under its recorded name and id again: the step that was due runs again, and the tracking issue states that the contribution continues. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of operation_launch, source_reads) -
require_base_branch tick same state the wait was entered because GitHub named the recorded repository otherwise: its pending action names no counter; the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Taken once the repository is read under its recorded name and id again and the upstream says that the base branch does not exist or was renamed: the wait stays, and its cause becomes the base branch, as require_base_branch records it from the state the step was due in. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
resume_stale (rule) command (/upstreaming resume) queued.idle exact revision; paused, or waiting for a human; stopped for longer than refresh.stale_after_days days; quiescent: no open operation and no pending publication; no requested Work. After a long stop the plan is refreshed: complete planning runs again while the fork and development PR are kept. The stop is counted from the older of paused_at and pending_human_action.requested_at. While an operation is open no resume applies, and the rejection names the open operation. From a human wait that an exhausted budget caused, it starts again the counter named in pending_human_action.counter, like every resume. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id, paused, paused_at, paused_reason, paused_by; starts again the counter named in pending_human_action.counter (one of operation_launch, interrupted_reruns, dispatch_recovery, work_recovery, work_total, publish_recovery, source_reads) -
record_reminder (rule) tick same state at least human_sla_business_days.reminder business days since the request or the last reminder; not paused. Posts an append-only reminder of the pending human step. In handoff.waiting_upstream_pr the reminder text carries the package link and the exact head, and states when an observed PR does not match. sets pending_human_action.reminded_at -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

development.agent_running

Verb Trigger To Guard Effects Charges
retry_dispatch tick same state a dispatcher run ended with the requested Work absent or unclaimed; dispatch_recovery remains. Launches the dispatcher again for the same committed Work request. none dispatch_recovery
exhaust_dispatch_recovery tick development.waiting_human dispatch_recovery exhausted Work: clear; sets pending_human_action=dispatch_failed, pending_human_action.counter=dispatch_recovery -
allocate_work_retry tick same state the Work graph is terminal without a usable Result; work_recovery and work_total remain; upstream identity and base bound. A terminal Work graph is never submitted again; a fresh graph is allocated. It carries the same feedback ids. revision +1; Work: reallocate work_recovery, work_total
exhaust_work_recovery tick development.waiting_human the Work graph is terminal without a usable Result; work_recovery or work_total exhausted. pending_human_action.counter names work_total when that budget is exhausted, and work_recovery otherwise. Work: clear; sets pending_human_action=work_failed, pending_human_action.counter -
record_publish_success result development.waiting_ci the Result is published, or uncertain and later confirmed. The published patch answers exactly the feedback its Work carried; feedback recorded while the Work ran stays pending. A publication whose push was not read back (uncertain) does not take this row when its Result is folded: it is a failed publication (schedule_publish_retry), and the row is taken once the publication is confirmed, by the publish-only retry reading back the head the lost push left (or publishing the same commit), or by the confirmed branch operation of an earlier attempt. The report of the Work is stored as worker_report evidence. Work: clear; sets proposal_artifact, publication_operation_id, budget.reruns; clears carried pending_feedback_evidence_ids -
reject_patch_proposal result development.fix_needed the proposal is rejected for the current revision, the worker reports it is blocked, or the worker reports a failure not caused by the patch and either flaky_reruns is exhausted or the Work carries feedback; no_progress remains. The pending feedback is kept. The worker’s report is discarded. revision +1; Work: clear; clears clean_head_sha no_progress
replan_development result development.fix_needed the proposal no longer applies to the fork head. The pending feedback is kept. The worker’s report is discarded, unless this is a publish-only retry whose earlier attempt’s operation is still open: that push may have landed, so the report is stored with the commit it proposed. revision +1; Work: clear -
request_ci_rerun result development.waiting_ci the worker reports a failure not caused by the patch; the Work carries no feedback; flaky_reruns remains. The repair worker classifies the failure; the failed jobs are rerun on the exact head, and the head and revision are kept. A rerun answers no feedback, so Work that carries feedback never takes this row: the same outcome counts as reject_patch_proposal. The rerun is the publication of this Result: the trusted publication job requests it on the exact head and reads back the new attempt before the row is taken. A rerun that cannot be requested or read back is a failed publication (schedule_publish_retry, exhaust_publish_recovery). The report of the Work is stored as worker_report evidence. Work: clear; clears last_ci_evidence_id flaky_reruns
schedule_publish_retry result same state publication failed with an infrastructure error; publish_recovery remains. The same verified Result is published again; no new Work is requested. The pending publication carries the feedback ids of its Work. A publication whose push was not read back (uncertain) is such a failure; the retry reads the branch first and never pushes over a push that landed. Its push may have landed, so the report of an uncertain Result is stored as worker_report evidence with the commit it proposed, whatever ends the hold. Work: clear; sets pending_publication publish_recovery
exhaust_publish_recovery result development.waiting_human publish_recovery exhausted sets pending_human_action=publication_infrastructure_failure, pending_human_action.counter=publish_recovery, pending_publication.exhausted -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
resume_stale (rule) command (/upstreaming resume) queued.idle exact revision; paused, or waiting for a human; stopped for longer than refresh.stale_after_days days; quiescent: no open operation and no pending publication; no requested Work. After a long stop the plan is refreshed: complete planning runs again while the fork and development PR are kept. The stop is counted from the older of paused_at and pending_human_action.requested_at. While an operation is open no resume applies, and the rejection names the open operation. From a human wait that an exhausted budget caused, it starts again the counter named in pending_human_action.counter, like every resume. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id, paused, paused_at, paused_reason, paused_by; starts again the counter named in pending_human_action.counter (one of operation_launch, interrupted_reruns, dispatch_recovery, work_recovery, work_total, publish_recovery, source_reads) -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

development.waiting_ci

Verb Trigger To Guard Effects Charges
record_ci_failure observation development.fix_needed an executed blocking failure on the exact head sets last_ci_evidence_id -
rerun_interrupted_ci observation same state a required CI job on the exact head was cancelled or lost its runner; interrupted_reruns remains. The collector reruns the interrupted jobs on the exact head. It reruns for no other conclusion. The collector records a ci_rerun operation that the trusted workflow executes; a rerun that fails is requested again by this row within the budget. none interrupted_reruns
exhaust_interrupted_reruns observation development.waiting_human a required CI job on the exact head was cancelled or lost its runner; interrupted_reruns exhausted sets pending_human_action=ci_interrupted, pending_human_action.counter=interrupted_reruns -
record_actionable_review observation development.fix_needed authorized actionable review feedback revision +1; sets pending_feedback_evidence_ids -
record_explanation observation same state authorized explanation-only inquiry. Answered on the development PR or recorded without requesting a change; revision and CI evidence are kept. sets processed_review_ids, processed_review_comment_ids, processed_pr_conversation_comment_ids -
record_head_change observation same state the observed fork head differs from the recorded head revision +1; sets fork.head_sha, budget.reruns; clears last_ci_evidence_id -
record_pr_mismatch observation development.waiting_human the observed development PR does not match the recorded fork, ref, or PR sets pending_human_action=development_pr_mismatch -
nominate_for_handoff observation handoff.awaiting_submission every required CI job executed and passed on the exact head; no pending actionable feedback; every series requirement of the verified plan is met on the exact head, the plan records none, or the series is too large to read; no requested Work sets last_ci_evidence_id, handoff_request, pending_human_action=submit_upstream -
return_for_feedback observation development.fix_needed every required CI job executed and passed on the exact head; pending actionable feedback; no requested Work. CI passed on the exact head while actionable feedback is still pending (a push while Work was due for a review, or feedback the published Work did not carry): the passing evidence is recorded and Work is due again, so request_patch requests a repair that carries the feedback. The pending feedback is kept; only a published Result clears it. sets last_ci_evidence_id -
return_for_series_requirements observation development.fix_needed every required CI job executed and passed on the exact head; no pending actionable feedback; a series requirement of the verified plan is unmet on the exact head; no requested Work. CI passed on the exact head, no feedback is pending, and the series does not meet a series requirement of the verified plan (a path its non-debug commits must change, such as a changelog entry): the passing evidence is recorded, the unmet requirements are recorded as series_requirements evidence and become the pending feedback, and Work is due again, so request_patch requests a repair that carries them. Only a published Result clears the feedback. Nothing is charged here: the Work is bounded by no_progress and work_total. revision +1; sets last_ci_evidence_id, pending_feedback_evidence_ids -
refresh_planning command (/upstreaming refresh) queued.idle exact revision; quiescent: no open operation and no pending publication; no requested Work; development PR and head recorded. Runs complete planning again while keeping the fork and development PR. Accepted while paused. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
resume_stale (rule) command (/upstreaming resume) queued.idle exact revision; paused, or waiting for a human; stopped for longer than refresh.stale_after_days days; quiescent: no open operation and no pending publication; no requested Work. After a long stop the plan is refreshed: complete planning runs again while the fork and development PR are kept. The stop is counted from the older of paused_at and pending_human_action.requested_at. While an operation is open no resume applies, and the rejection names the open operation. From a human wait that an exhausted budget caused, it starts again the counter named in pending_human_action.counter, like every resume. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id, paused, paused_at, paused_reason, paused_by; starts again the counter named in pending_human_action.counter (one of operation_launch, interrupted_reruns, dispatch_recovery, work_recovery, work_total, publish_recovery, source_reads) -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

development.fix_needed

Verb Trigger To Guard Effects Charges
request_patch tick development.agent_running no failing CI job is recorded for the head; write admission; worker slot free; capacity available; no_progress remains; work_total remains; not paused; upstream identity and base bound. Covers the first patch, the patch after a rejected proposal, and a repair driven only by review feedback. The Work request carries the pending feedback ids present at allocation (active_work.feedback_evidence_ids). Work: allocate; sets active_work.feedback_evidence_ids work_total
request_repair tick development.agent_running a failing CI job is recorded for the head; write admission; worker slot free; capacity available; repair_attempts_cluster and no_progress remain; work_total remains; not paused; upstream identity and base bound. Charges repair_attempts_cluster for the failing CI job. The Work request carries the pending feedback ids present at allocation (active_work.feedback_evidence_ids). Work: allocate; sets active_work.feedback_evidence_ids repair_attempts_cluster, work_total
refresh_on_exhaustion tick queued.idle no_progress is exhausted, or repair_attempts_cluster is exhausted and a failing CI job is recorded for the head; work_total remains; the automatic refresh is unused in this generation; not paused. One automatic refresh per generation: complete planning runs again on the existing fork. The per-job and no-progress counters start again; work_total does not. revision +1; sets refresh, automatic_refresh_used; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id, budget.clusters, budget.no_progress_streak -
exhaust_repair_attempts tick parked.idle no_progress is exhausted, or repair_attempts_cluster is exhausted and a failing CI job is recorded for the head; work_total remains; the automatic refresh is used in this generation. Parks for repair_attempts_cluster and no_progress only, after refresh_on_exhaustion is used. Exhaustion of work_total takes exhaust_work_total first. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
exhaust_work_total tick development.waiting_human work_total exhausted. The reply states the number of Work allocations spent in this generation and names both /upstreaming resume, which starts work_total again, and /upstreaming park. sets pending_human_action=work_budget_exhausted, pending_human_action.counter=work_total -
record_head_change observation development.waiting_ci the observed fork head differs from the recorded head. A push to the development branch while Work is due (a human push): the new head is recorded and CI is awaited for it, so no Work is requested for the head the record names any more. The pending feedback is kept; when CI passes on the new head return_for_feedback makes Work due again for it. revision +1; sets fork.head_sha, budget.reruns; clears last_ci_evidence_id -
record_actionable_review observation same state authorized actionable review feedback. A review on the recorded head while Work is due, including one observed together with the CI failure that left the submission gate: it is recorded as pending feedback, so the Work requested next carries it. The CI evidence is kept. revision +1; sets pending_feedback_evidence_ids -
refresh_planning command (/upstreaming refresh) queued.idle exact revision; quiescent: no open operation and no pending publication; no requested Work; development PR and head recorded. Runs complete planning again while keeping the fork and development PR. Accepted while paused. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id -
require_base_branch observation development.waiting_human the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Records whether the branch does not exist or was renamed, and to which name. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
exhaust_source_reads observation development.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the base branch; not paused; quiescent: no open operation and no pending publication. Records how many failed reads were counted, since when, how many of them could not read the repository itself, and the last error. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=base_branch_unavailable, pending_human_action.counter=source_reads -
require_upstream_access observation development.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the repository itself; not paused; quiescent: no open operation and no pending publication. Taken once failed reads of the repository itself are the majority of the retry window (deleted, made private, or no longer readable with the token). Records the repository and the counted reads. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=upstream_unavailable, pending_human_action.counter=source_reads -
require_renamed_upstream observation development.waiting_human GitHub answers for the recorded upstream repository id under another name (renamed or transferred); not paused; quiescent: no open operation and no pending publication. Taken at once, with no counter: the answer cannot change by reading again. Records the repository and the name GitHub now gives it, and upstream.repository_id becomes the id GitHub answered for (the recorded one when it is bound; for a request not bound yet, the id of the renamed repository, so that no other repository later created under the recorded name is taken for it). The upstream is still read on every tick, and once GitHub answers for the same repository id under its recorded name again the wait ends without a human (resume_renamed_upstream); a resume while it is still named otherwise waits again at once. Once it is answered for under its recorded name but its base branch is missing, require_base_branch replaces the wait. A repository that moved is a new request: the contribution is parked, then abandoned. sets pending_human_action=upstream_unavailable, upstream.repository_id -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
resume_stale (rule) command (/upstreaming resume) queued.idle exact revision; paused, or waiting for a human; stopped for longer than refresh.stale_after_days days; quiescent: no open operation and no pending publication; no requested Work. After a long stop the plan is refreshed: complete planning runs again while the fork and development PR are kept. The stop is counted from the older of paused_at and pending_human_action.requested_at. While an operation is open no resume applies, and the rejection names the open operation. From a human wait that an exhausted budget caused, it starts again the counter named in pending_human_action.counter, like every resume. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id, paused, paused_at, paused_reason, paused_by; starts again the counter named in pending_human_action.counter (one of operation_launch, interrupted_reruns, dispatch_recovery, work_recovery, work_total, publish_recovery, source_reads) -
record_source_unavailable (rule) observation same state the upstream repository or its base branch could not be read, and the upstream did not say that the branch is missing; source_reads remains; not paused; quiescent: no open operation and no pending publication. A network error, a server error, a rate limit, or a repository that cannot be read: the contribution stays, and a later tick reads the upstream again. A failed read is charged only when it is the first of a run, or when it falls in a later spacing slot than the last charged read (slots of retries.source_unavailable_minutes divided by retries.source_unavailable_reads, counted from the first failed read, so that a tick a little early or late still counts); a failed read in the same slot writes nothing, so a burst of ticks adds no events, and a read after a long pause counts once. A tick that reads the upstream starts source_reads again. none source_reads
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

development.waiting_human

Verb Trigger To Guard Effects Charges
resume_ci command (/upstreaming resume) development.waiting_ci exact revision; pending_human_action is ci_interrupted; quiescent: no open operation and no pending publication; stopped for at most refresh.stale_after_days days. Starts interrupted_reruns (budget.reruns.interrupted) again for the head; the first observation after it reruns the interrupted jobs on the exact head through rerun_interrupted_ci, charging the restarted counter. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of interrupted_reruns) -
rearm_dispatch tick development.fix_needed pending_human_action is dispatch_failed; the work-queue Policy was installed after the dispatch failed, and the compiled policy preserves it; not paused; quiescent: no open operation and no pending publication. Re-arms a dispatch that failed while the installed work-queue Policy refused every dispatch, once the dispatcher has reinstalled the compiled policy: the same transition as the resume a human would post, taken by the controller. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of dispatch_recovery) -
resume_development command (/upstreaming resume) development.fix_needed exact revision; pending_human_action is not ci_interrupted; quiescent: no open operation and no pending publication; stopped for at most refresh.stale_after_days days. Fresh Work is requested; a Result held for publication is not reused. The pending feedback is kept. When an exhausted budget caused the wait, the resume starts again the one counter named in pending_human_action.counter, and no other. The event records the actor, the counter, and its count at that point. revision +1; clears pending_human_action, pending_publication; starts again the counter named in pending_human_action.counter (one of dispatch_recovery, work_recovery, work_total, publish_recovery, source_reads) -
refresh_planning command (/upstreaming refresh) queued.idle exact revision; quiescent: no open operation and no pending publication; no requested Work; development PR and head recorded. Runs complete planning again while keeping the fork and development PR. Accepted while paused. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id -
resume_upstream_read tick development.fix_needed pending_human_action is base_branch_unavailable or upstream_unavailable; the wait was entered because reads kept failing, not because the upstream said that the branch is missing; the upstream repository and its base branch are read again; not paused; quiescent: no open operation and no pending publication. Ends a wait that failed reads caused once a tick reads the upstream again: the step that was due runs again, and the tracking issue states that the contribution continues. A wait the upstream’s own answer caused (a missing or renamed branch) still needs a resume. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of source_reads) -
resume_renamed_upstream tick development.fix_needed pending_human_action is upstream_unavailable; the wait was entered because GitHub named the recorded repository otherwise: its pending action names no counter; the upstream repository and its base branch are read again; not paused; quiescent: no open operation and no pending publication. Ends the wait a renamed repository caused once a tick reads the repository under its recorded name and id again: the step that was due runs again, and the tracking issue states that the contribution continues. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of source_reads) -
require_base_branch tick same state the wait was entered because GitHub named the recorded repository otherwise: its pending action names no counter; the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Taken once the repository is read under its recorded name and id again and the upstream says that the base branch does not exist or was renamed: the wait stays, and its cause becomes the base branch, as require_base_branch records it from the state the step was due in. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
resume_stale (rule) command (/upstreaming resume) queued.idle exact revision; paused, or waiting for a human; stopped for longer than refresh.stale_after_days days; quiescent: no open operation and no pending publication; no requested Work. After a long stop the plan is refreshed: complete planning runs again while the fork and development PR are kept. The stop is counted from the older of paused_at and pending_human_action.requested_at. While an operation is open no resume applies, and the rejection names the open operation. From a human wait that an exhausted budget caused, it starts again the counter named in pending_human_action.counter, like every resume. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id, paused, paused_at, paused_reason, paused_by; starts again the counter named in pending_human_action.counter (one of operation_launch, interrupted_reruns, dispatch_recovery, work_recovery, work_total, publish_recovery, source_reads) -
record_reminder (rule) tick same state at least human_sla_business_days.reminder business days since the request or the last reminder; not paused. Posts an append-only reminder of the pending human step. In handoff.waiting_upstream_pr the reminder text carries the package link and the exact head, and states when an observed PR does not match. sets pending_human_action.reminded_at -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

handoff.awaiting_submission

Verb Trigger To Guard Effects Charges
submit_upstream command (/upstreaming submit-upstream) handoff.review_due exact revision; exact candidate head; not paused. The only submission command; it authorizes the submission review and the whole deterministic handoff preparation. The development branch riscv64-dev and the development PR are never changed for the submission. sets handoff_approval; clears pending_human_action -
return_for_repair observation development.fix_needed an executed blocking failure on the candidate head. Only a CI failure takes this row; the evidence of the failure is recorded. An actionable review without a failure takes record_actionable_review at the gate; one observed with the failure is recorded by record_actionable_review in development.fix_needed. revision +1; sets last_ci_evidence_id; clears clean_head_sha, clean_head_ci_since, submission_rewrite_id, submission_review_id, handoff_request, pending_human_action -
record_actionable_review observation development.fix_needed authorized actionable review feedback; no executed blocking failure on the candidate head. The review is recorded as pending feedback, and the CI evidence of the candidate head is kept. When CI also failed on the candidate head, return_for_repair applies instead, and the review is recorded in the same observation by record_actionable_review in development.fix_needed. revision +1; sets pending_feedback_evidence_ids; clears clean_head_sha, clean_head_ci_since, submission_rewrite_id, submission_review_id, handoff_request, pending_human_action -
record_explanation observation same state authorized explanation-only inquiry. The comment is recorded and linked from the event log of the website. No Work is requested and nothing is answered automatically; the revision, the candidate head, and the CI evidence are kept. sets processed_review_ids, processed_review_comment_ids, processed_pr_conversation_comment_ids -
record_head_change observation development.waiting_ci the observed fork head differs from the candidate head revision +1; sets fork.head_sha, budget.reruns; clears last_ci_evidence_id, handoff_request, pending_human_action -
refresh_planning command (/upstreaming refresh) queued.idle exact revision; quiescent: no open operation and no pending publication; no requested Work; development PR and head recorded. Runs complete planning again while keeping the fork and development PR. Accepted while paused. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_reminder (rule) tick same state at least human_sla_business_days.reminder business days since the request or the last reminder; not paused. Posts an append-only reminder of the pending human step. In handoff.waiting_upstream_pr the reminder text carries the package link and the exact head, and states when an observed PR does not match. sets pending_human_action.reminded_at -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

handoff.review_due

Verb Trigger To Guard Effects Charges
request_submission_rewrite tick handoff.agent_running worker slot free; work_total remains; not paused; no open operation; upstream identity and base bound. The uncredentialed rewrite Work reads the plan’s contribution guidelines and the non-debug commits of the approved riscv64-dev series. It reshapes the commit messages (squashing or splitting only where the project’s contributing instructions or reviewers require it, with the same final tree and no content the approved series does not have) and writes the upstream PR title and description after the project’s pull request template and contributing instructions. Work: allocate work_total
exhaust_work_total tick handoff.waiting_human work_total exhausted sets pending_human_action=work_budget_exhausted, pending_human_action.counter=work_total -
require_base_branch observation handoff.waiting_human the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Records whether the branch does not exist or was renamed, and to which name. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
exhaust_source_reads observation handoff.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the base branch; not paused; quiescent: no open operation and no pending publication. Records how many failed reads were counted, since when, how many of them could not read the repository itself, and the last error. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=base_branch_unavailable, pending_human_action.counter=source_reads -
require_upstream_access observation handoff.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the repository itself; not paused; quiescent: no open operation and no pending publication. Taken once failed reads of the repository itself are the majority of the retry window (deleted, made private, or no longer readable with the token). Records the repository and the counted reads. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=upstream_unavailable, pending_human_action.counter=source_reads -
require_renamed_upstream observation handoff.waiting_human GitHub answers for the recorded upstream repository id under another name (renamed or transferred); not paused; quiescent: no open operation and no pending publication. Taken at once, with no counter: the answer cannot change by reading again. Records the repository and the name GitHub now gives it, and upstream.repository_id becomes the id GitHub answered for (the recorded one when it is bound; for a request not bound yet, the id of the renamed repository, so that no other repository later created under the recorded name is taken for it). The upstream is still read on every tick, and once GitHub answers for the same repository id under its recorded name again the wait ends without a human (resume_renamed_upstream); a resume while it is still named otherwise waits again at once. Once it is answered for under its recorded name but its base branch is missing, require_base_branch replaces the wait. A repository that moved is a new request: the contribution is parked, then abandoned. sets pending_human_action=upstream_unavailable, upstream.repository_id -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_source_unavailable (rule) observation same state the upstream repository or its base branch could not be read, and the upstream did not say that the branch is missing; source_reads remains; not paused; quiescent: no open operation and no pending publication. A network error, a server error, a rate limit, or a repository that cannot be read: the contribution stays, and a later tick reads the upstream again. A failed read is charged only when it is the first of a run, or when it falls in a later spacing slot than the last charged read (slots of retries.source_unavailable_minutes divided by retries.source_unavailable_reads, counted from the first failed read, so that a tick a little early or late still counts); a failed read in the same slot writes nothing, so a burst of ticks adds no events, and a read after a long pause counts once. A tick that reads the upstream starts source_reads again. none source_reads
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

handoff.agent_running

Verb Trigger To Guard Effects Charges
retry_dispatch tick same state a dispatcher run ended with the requested Work absent or unclaimed; dispatch_recovery remains. Launches the dispatcher again for the same committed Work request. none dispatch_recovery
exhaust_dispatch_recovery tick handoff.waiting_human dispatch_recovery exhausted Work: clear; sets pending_human_action=dispatch_failed, pending_human_action.counter=dispatch_recovery -
allocate_work_retry tick same state the Work graph is terminal without a usable Result; work_recovery and work_total remain; upstream identity and base bound. A terminal Work graph is never submitted again; a fresh graph is allocated. It carries the same feedback ids. revision +1; Work: reallocate work_recovery, work_total
exhaust_work_recovery tick handoff.waiting_human the Work graph is terminal without a usable Result; work_recovery or work_total exhausted. pending_human_action.counter names work_total when that budget is exhausted, and work_recovery otherwise. Work: clear; sets pending_human_action=work_failed, pending_human_action.counter -
accept_submission_rewrite result handoff.review_pending the rewritten series has the tree of the approved series without its debug commits, every commit passes the upstream-facing validation and the attribution check, and the series and description satisfy the plan’s measurable rules. The trusted deterministic check before the Result is folded rebuilds the rewritten series on the frozen base and requires the tree of the approved series without its debug commits, the upstream-facing validation of every commit, attribution trailers of the App or of the approved commits, the plan’s measurable commit rules, and every required section of the pull request template in the description. Nothing is posted. The revision is bumped: the review Work is new Work of the next revision. The report of the Work is stored as worker_report evidence. revision +1; Work: clear; sets submission_rewrite_id -
reject_submission_rewrite result development.fix_needed the rewrite reports the series cannot be shaped without a code change, the rewritten series changes the tree, a commit fails the upstream-facing validation or the attribution check, or a measurable rule is broken. The reasons are recorded as rewrite evidence and are the pending feedback of the next development Work. Nothing is posted and riscv64 is not written. The worker’s report is discarded. revision +1; Work: clear; sets pending_feedback_evidence_ids; clears clean_head_sha, clean_head_ci_since, submission_rewrite_id, submission_review_id, handoff_request, pending_human_action -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

handoff.review_pending

Verb Trigger To Guard Effects Charges
request_submission_review tick handoff.reviewing worker slot free; work_total remains; not paused; no open operation; the publication artifact of the rewritten series is current; upstream identity and base bound. The uncredentialed review Work starts in a fresh context and reads exactly the rewritten series and text (the trusted pre-agent step downloads them from the rewrite’s publication artifact and checks their digests), the plan’s contribution guidelines, the pull request template, the contributing instructions, and the commit conventions. It reviews them against the reviewers’ expectations and returns pass or fail with reasons; it can change nothing. Work: allocate work_total
exhaust_work_total tick handoff.waiting_human work_total exhausted sets pending_human_action=work_budget_exhausted, pending_human_action.counter=work_total -
expire_submission_rewrite tick handoff.review_due the publication artifact of the rewritten series expired or expires within a day; work_total remains. A fresh rewrite is due; the expired rewrite is never reviewed. clears submission_rewrite_id -
require_base_branch observation handoff.waiting_human the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Records whether the branch does not exist or was renamed, and to which name. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
exhaust_source_reads observation handoff.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the base branch; not paused; quiescent: no open operation and no pending publication. Records how many failed reads were counted, since when, how many of them could not read the repository itself, and the last error. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=base_branch_unavailable, pending_human_action.counter=source_reads -
require_upstream_access observation handoff.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the repository itself; not paused; quiescent: no open operation and no pending publication. Taken once failed reads of the repository itself are the majority of the retry window (deleted, made private, or no longer readable with the token). Records the repository and the counted reads. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=upstream_unavailable, pending_human_action.counter=source_reads -
require_renamed_upstream observation handoff.waiting_human GitHub answers for the recorded upstream repository id under another name (renamed or transferred); not paused; quiescent: no open operation and no pending publication. Taken at once, with no counter: the answer cannot change by reading again. Records the repository and the name GitHub now gives it, and upstream.repository_id becomes the id GitHub answered for (the recorded one when it is bound; for a request not bound yet, the id of the renamed repository, so that no other repository later created under the recorded name is taken for it). The upstream is still read on every tick, and once GitHub answers for the same repository id under its recorded name again the wait ends without a human (resume_renamed_upstream); a resume while it is still named otherwise waits again at once. Once it is answered for under its recorded name but its base branch is missing, require_base_branch replaces the wait. A repository that moved is a new request: the contribution is parked, then abandoned. sets pending_human_action=upstream_unavailable, upstream.repository_id -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_source_unavailable (rule) observation same state the upstream repository or its base branch could not be read, and the upstream did not say that the branch is missing; source_reads remains; not paused; quiescent: no open operation and no pending publication. A network error, a server error, a rate limit, or a repository that cannot be read: the contribution stays, and a later tick reads the upstream again. A failed read is charged only when it is the first of a run, or when it falls in a later spacing slot than the last charged read (slots of retries.source_unavailable_minutes divided by retries.source_unavailable_reads, counted from the first failed read, so that a tick a little early or late still counts); a failed read in the same slot writes nothing, so a burst of ticks adds no events, and a read after a long pause counts once. A tick that reads the upstream starts source_reads again. none source_reads
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

handoff.reviewing

Verb Trigger To Guard Effects Charges
retry_dispatch tick same state a dispatcher run ended with the requested Work absent or unclaimed; dispatch_recovery remains. Launches the dispatcher again for the same committed Work request. none dispatch_recovery
exhaust_dispatch_recovery tick handoff.waiting_human dispatch_recovery exhausted Work: clear; sets pending_human_action=dispatch_failed, pending_human_action.counter=dispatch_recovery -
allocate_work_retry tick same state the Work graph is terminal without a usable Result; work_recovery and work_total remain; upstream identity and base bound. A terminal Work graph is never submitted again; a fresh graph is allocated. It carries the same feedback ids. revision +1; Work: reallocate work_recovery, work_total
exhaust_work_recovery tick handoff.waiting_human the Work graph is terminal without a usable Result; work_recovery or work_total exhausted. pending_human_action.counter names work_total when that budget is exhausted, and work_recovery otherwise. Work: clear; sets pending_human_action=work_failed, pending_human_action.counter -
accept_submission_review result handoff.building_upstream_branch the review of exactly the rewritten series and text passes, with every expectation it lists met. The trusted check of the Result requires a review of exactly the rewritten series and text (their digests); the accepted review records the rewrite it passed. Nothing is posted. The report of the Work is stored as worker_report evidence. Work: clear; sets submission_review_id -
reject_submission_review result development.fix_needed the review of exactly the rewritten series and text fails. The reasons are recorded as review evidence and are the pending feedback of the next development Work. Nothing is posted and riscv64 is not written. A Result that is not a usable review takes allocate_work_retry or exhaust_work_recovery instead. The worker’s report is discarded. revision +1; Work: clear; sets pending_feedback_evidence_ids; clears clean_head_sha, clean_head_ci_since, submission_rewrite_id, submission_review_id, handoff_request, pending_human_action -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

handoff.building_upstream_branch

Verb Trigger To Guard Effects Charges
retry_upstream_branch operation same state the lease write or its readback failed with an infrastructure error; upstream_branch remains none upstream_branch
confirm_clean_head operation handoff.waiting_ci the lease write and ref readback match the reviewed series. When the clean head has another tree than the candidate head, the same trusted attempt dispatches the project’s required CI workflow on riscv64 if it can be dispatched, and reads its run back by head; the outcome is recorded on the operation. sets clean_head_sha, clean_head_ci_since, budget.reruns -
return_for_repair operation development.fix_needed the reviewed series does not rebuild to the reviewed head, or the lease on riscv64 conflicts revision +1; clears clean_head_sha, clean_head_ci_since, submission_rewrite_id, submission_review_id, handoff_request, pending_human_action -
require_branch_intervention operation handoff.waiting_human a pull request is open from riscv64 (upstream or in the fork), riscv64-dev is missing, or the record’s development branch is not riscv64-dev. riscv64 is left as it is and the reason is recorded: a human closes the pull request, restores riscv64-dev, or decides otherwise, then resumes. sets pending_human_action=upstream_branch_blocked -
expire_submission_rewrite tick handoff.review_due the publication artifact of the rewritten series expired or expires within a day; no open operation. The series riscv64 would be built from is no longer available: a fresh rewrite and review are due, also after a long human wait that resumed to this step. clears submission_rewrite_id, submission_review_id -
exhaust_upstream_branch_retries operation handoff.waiting_human upstream_branch exhausted sets pending_human_action=upstream_branch_failed, pending_human_action.counter=upstream_branch -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

handoff.waiting_ci

Verb Trigger To Guard Effects Charges
accept_clean_head_ci observation handoff.preparing_submission every required CI job executed and passed on the clean head, or on the candidate head when the clean head has its tree. CI is a function of the tree: when the reviewed series has the tree of the candidate head (the approved series had no debug commit), the CI evidence of the candidate head is CI on the clean head. sets last_ci_evidence_id -
rerun_interrupted_ci observation same state a required CI job on the exact head was cancelled or lost its runner; interrupted_reruns remains. The collector reruns the interrupted jobs on the exact head. It reruns for no other conclusion. The collector records a ci_rerun operation that the trusted workflow executes; a rerun that fails is requested again by this row within the budget. The bounded wait for CI on the clean head starts again, since CI was started again. sets clean_head_ci_since interrupted_reruns
exhaust_interrupted_reruns observation handoff.waiting_human a required CI job on the exact head was cancelled or lost its runner; interrupted_reruns exhausted sets pending_human_action=ci_interrupted, pending_human_action.counter=interrupted_reruns -
return_for_repair observation development.fix_needed a blocking CI failure on the clean head, or the observed riscv64 head differs from the clean head. A blocking failure records the failing evidence of the clean head as last_ci_evidence_id, so the repair requested in development.fix_needed names the failing job and charges its cluster. A riscv64 head that is not the clean head has no CI verdict: the recorded evidence of the candidate head is kept. revision +1; sets last_ci_evidence_id; clears clean_head_sha, clean_head_ci_since, submission_rewrite_id, submission_review_id, handoff_request, pending_human_action -
require_clean_head_ci observation handoff.waiting_human CI on the clean head is not complete, and either no run exists and its workflow cannot be dispatched, or 12 hours have passed since the wait began. The pending action names the missing CI on the clean head; a human runs it (or makes it runnable) and resumes, which observes CI on the clean head again. sets pending_human_action=clean_head_ci_missing -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

handoff.preparing_submission

Verb Trigger To Guard Effects Charges
retry_submission_comment operation same state posting the package failed; submission_comment remains none submission_comment
confirm_submission_package operation handoff.waiting_upstream_pr the package comment is read back sets pending_human_action=open_upstream_pr, handoff_request -
return_for_repair operation development.fix_needed riscv64 of the fork does not resolve to the clean head. The package is not posted: the final check of the attempt found riscv64 moved, deleted, or renamed, and the reconciler read the same. The recorded CI evidence is kept, and nothing is written to riscv64. revision +1; clears clean_head_sha, clean_head_ci_since, submission_rewrite_id, submission_review_id, handoff_request, pending_human_action -
exhaust_comment_retries operation handoff.waiting_human submission_comment exhausted sets pending_human_action=submission_comment_failed, pending_human_action.counter=submission_comment -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

handoff.waiting_human

Verb Trigger To Guard Effects Charges
rearm_dispatch tick handoff.review_due pending_human_action is dispatch_failed; the work-queue Policy was installed after the dispatch failed, and the compiled policy preserves it; not paused; quiescent: no open operation and no pending publication. Re-arms a dispatch that failed while the installed work-queue Policy refused every dispatch, once the dispatcher has reinstalled the compiled policy: the same transition as the resume a human would post, taken by the controller. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of dispatch_recovery) -
resume_submission_review command (/upstreaming resume) handoff.review_due exact revision; pending_human_action is work_budget_exhausted, dispatch_failed, work_failed, base_branch_unavailable, or upstream_unavailable. Fresh rewrite Work is requested, and its review after it. When an exhausted budget caused the wait, the resume starts again the one counter named in pending_human_action.counter, and no other. The event records the actor, the counter, and its count at that point. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of work_total, dispatch_recovery, work_recovery, source_reads) -
resume_upstream_branch command (/upstreaming resume) handoff.building_upstream_branch exact revision; pending_human_action is upstream_branch_failed or upstream_branch_blocked revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of upstream_branch) -
resume_ci command (/upstreaming resume) handoff.waiting_ci exact revision; pending_human_action is ci_interrupted. Starts interrupted_reruns (budget.reruns.interrupted) again for the head; the first observation after it reruns the interrupted jobs on the exact head through rerun_interrupted_ci, charging the restarted counter, and the bounded wait for CI on the clean head starts again. revision +1; sets clean_head_ci_since; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of interrupted_reruns) -
resume_clean_head_ci command (/upstreaming resume) handoff.waiting_ci exact revision; pending_human_action is clean_head_ci_missing. CI on the clean head is observed again, and its bounded wait starts again. revision +1; sets clean_head_ci_since; clears pending_human_action -
resume_submission_preparation command (/upstreaming resume) handoff.preparing_submission exact revision; pending_human_action is submission_comment_failed revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of submission_comment) -
resume_upstream_read tick handoff.review_due pending_human_action is base_branch_unavailable or upstream_unavailable; the wait was entered because reads kept failing, not because the upstream said that the branch is missing; the upstream repository and its base branch are read again; not paused; quiescent: no open operation and no pending publication. Ends a wait that failed reads caused once a tick reads the upstream again: the step that was due runs again, and the tracking issue states that the contribution continues. A wait the upstream’s own answer caused (a missing or renamed branch) still needs a resume. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of source_reads) -
resume_renamed_upstream tick handoff.review_due pending_human_action is upstream_unavailable; the wait was entered because GitHub named the recorded repository otherwise: its pending action names no counter; the upstream repository and its base branch are read again; not paused; quiescent: no open operation and no pending publication. Ends the wait a renamed repository caused once a tick reads the repository under its recorded name and id again: the step that was due runs again, and the tracking issue states that the contribution continues. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of source_reads) -
require_base_branch tick same state the wait was entered because GitHub named the recorded repository otherwise: its pending action names no counter; the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Taken once the repository is read under its recorded name and id again and the upstream says that the base branch does not exist or was renamed: the wait stays, and its cause becomes the base branch, as require_base_branch records it from the state the step was due in. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_reminder (rule) tick same state at least human_sla_business_days.reminder business days since the request or the last reminder; not paused. Posts an append-only reminder of the pending human step. In handoff.waiting_upstream_pr the reminder text carries the package link and the exact head, and states when an observed PR does not match. sets pending_human_action.reminded_at -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

handoff.waiting_upstream_pr

Verb Trigger To Guard Effects Charges
record_audit_observation observation same state an observation that does not satisfy verify_upstream_pr. Recorded for audit only; it never changes phase or activity. none -
verify_upstream_pr observation upstream_review.waiting_ci an open PR against the upstream repository and the frozen base, or the name the upstream renamed it to when that branch contains the recorded base commit; its head is riscv64 of the contribution fork at the exact clean head; a compatible human author. The base branch is kept, unless the upstream renamed it before the PR was opened; then the contribution follows the new name. sets upstream_pr, upstream.base_ref; clears pending_human_action -
retract_submission command (/upstreaming retract-pr) development.fix_needed exact revision; exact clean head; quiescent: no open operation and no pending publication. Stops reminders and unlocks branch work. riscv64 is left as it is; the next submit_upstream replaces it. revision +1; clears pending_human_action, handoff_request, handoff_approval -
refresh_planning command (/upstreaming refresh) queued.idle exact revision; exact clean head; quiescent: no open operation and no pending publication. Returns to complete planning while keeping the fork. Accepted while paused. revision +1; sets refresh; clears plan_evidence_id, scope_coverage_complete, scope_paths, proposal_artifact, last_ci_evidence_id, clean_head_sha, handoff_request, handoff_approval, pending_human_action, publication_operation_id -
record_reminder (rule) tick same state at least human_sla_business_days.reminder business days since the request or the last reminder; not paused. Posts an append-only reminder of the pending human step. In handoff.waiting_upstream_pr the reminder text carries the package link and the exact head, and states when an observed PR does not match. sets pending_human_action.reminded_at -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

upstream_review.waiting_ci

Verb Trigger To Guard Effects Charges
record_upstream_ci_failure observation upstream_review.fix_needed an executed blocking failure on the upstream PR head; not yet recorded for this head and CI run. Fires once per head and CI run, so a failure that was already recorded does not request a revision again after a resume. sets last_ci_evidence_id -
record_actionable_review observation upstream_review.fix_needed authorized actionable review feedback revision +1; sets pending_feedback_evidence_ids -
record_explanation observation same state authorized explanation-only inquiry. Recorded and linked from the event log of the website; nothing is posted on the upstream PR. Revision and CI evidence are kept. sets processed_review_ids, processed_review_comment_ids, processed_pr_conversation_comment_ids -
record_head_change observation upstream_review.waiting_human the upstream PR head changed and the pipeline did not publish the change revision +1; sets upstream_pr.head_sha, pending_human_action=upstream_head_changed, budget.reruns; clears last_ci_evidence_id -
record_pr_closed_unmerged observation upstream_review.waiting_human the upstream PR is closed without merge sets pending_human_action=pr_closed_unmerged -
record_merge observation release_wait.idle the upstream PR is merged sets merge; clears active_operation_id -
follow_renamed_base observation same state the upstream renamed the base branch, the open upstream PR now targets the new name, and the new name’s history contains the recorded base commit; not paused; quiescent: no open operation and no pending publication. upstream.base_ref and the recorded base of the upstream PR become the new name; upstream.base_sha is kept, since the renamed branch still contains it. The tracking issue states the rename. sets upstream.base_ref, upstream_pr.base_ref -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

upstream_review.fix_needed

Verb Trigger To Guard Effects Charges
request_upstream_revision tick upstream_review.agent_running the upstream PR head is the controlled fork ref; a failing CI job is recorded for the head; worker slot free; repair_attempts_cluster, no_progress, and work_total remain; not paused; upstream identity and base bound. Charges repair_attempts_cluster for the failing CI job. The Work request carries the pending feedback ids present at allocation (active_work.feedback_evidence_ids). Work: allocate; sets active_work.feedback_evidence_ids repair_attempts_cluster, work_total
request_review_revision tick upstream_review.agent_running the upstream PR head is the controlled fork ref; no failing CI job is recorded for the head; worker slot free; no_progress and work_total remain; not paused; upstream identity and base bound. A revision driven only by review feedback; it charges no repair_attempts_cluster. The Work request carries the pending feedback ids present at allocation (active_work.feedback_evidence_ids). Work: allocate; sets active_work.feedback_evidence_ids work_total
exhaust_repair_attempts tick upstream_review.waiting_human no_progress or work_total is exhausted, or repair_attempts_cluster is exhausted and a failing CI job is recorded for the head. pending_human_action.counter names the counter that is exhausted. sets pending_human_action=repair_budget_exhausted, pending_human_action.counter -
require_base_branch observation upstream_review.waiting_human the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Records whether the branch does not exist or was renamed, and to which name. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
exhaust_source_reads observation upstream_review.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the base branch; not paused; quiescent: no open operation and no pending publication. Records how many failed reads were counted, since when, how many of them could not read the repository itself, and the last error. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=base_branch_unavailable, pending_human_action.counter=source_reads -
require_upstream_access observation upstream_review.waiting_human source_reads exhausted: reads of the upstream kept failing for the whole retry window, most of them for the repository itself; not paused; quiescent: no open operation and no pending publication. Taken once failed reads of the repository itself are the majority of the retry window (deleted, made private, or no longer readable with the token). Records the repository and the counted reads. The upstream is still read on every tick, and once it can be read again the wait ends without a human (resume_upstream_read); a resume reads it again at once. sets pending_human_action=upstream_unavailable, pending_human_action.counter=source_reads -
require_renamed_upstream observation upstream_review.waiting_human GitHub answers for the recorded upstream repository id under another name (renamed or transferred); not paused; quiescent: no open operation and no pending publication. Taken at once, with no counter: the answer cannot change by reading again. Records the repository and the name GitHub now gives it, and upstream.repository_id becomes the id GitHub answered for (the recorded one when it is bound; for a request not bound yet, the id of the renamed repository, so that no other repository later created under the recorded name is taken for it). The upstream is still read on every tick, and once GitHub answers for the same repository id under its recorded name again the wait ends without a human (resume_renamed_upstream); a resume while it is still named otherwise waits again at once. Once it is answered for under its recorded name but its base branch is missing, require_base_branch replaces the wait. A repository that moved is a new request: the contribution is parked, then abandoned. sets pending_human_action=upstream_unavailable, upstream.repository_id -
follow_renamed_base observation same state the upstream renamed the base branch, the open upstream PR now targets the new name, and the new name’s history contains the recorded base commit; not paused; quiescent: no open operation and no pending publication. upstream.base_ref and the recorded base of the upstream PR become the new name; upstream.base_sha is kept, since the renamed branch still contains it. The tracking issue states the rename. sets upstream.base_ref, upstream_pr.base_ref -
record_source_unavailable (rule) observation same state the upstream repository or its base branch could not be read, and the upstream did not say that the branch is missing; source_reads remains; not paused; quiescent: no open operation and no pending publication. A network error, a server error, a rate limit, or a repository that cannot be read: the contribution stays, and a later tick reads the upstream again. A failed read is charged only when it is the first of a run, or when it falls in a later spacing slot than the last charged read (slots of retries.source_unavailable_minutes divided by retries.source_unavailable_reads, counted from the first failed read, so that a tick a little early or late still counts); a failed read in the same slot writes nothing, so a burst of ticks adds no events, and a read after a long pause counts once. A tick that reads the upstream starts source_reads again. none source_reads
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

upstream_review.agent_running

Verb Trigger To Guard Effects Charges
record_revision_publish_success result upstream_review.waiting_ci the revision is published to the upstream PR head. The published revision answers exactly the feedback its Work carried. upstream_pr.head_sha records the head the publisher read back on riscv64 after its push. A publication whose push was not read back (uncertain) does not take this row: it is a failed publication (schedule_publish_retry), and the publish-only retry reads back the head a lost push left without pushing again. The report of the Work is stored as worker_report evidence. revision +1; Work: clear; sets proposal_artifact, publication_operation_id, upstream_pr.head_sha; clears carried pending_feedback_evidence_ids -
reject_patch_proposal result upstream_review.fix_needed the proposal is rejected for the current revision, or the worker reports it is blocked; no_progress remains. The pending feedback is kept. The worker’s report is discarded, unless this is a publish-only retry rejected as stale behind the operation of an earlier attempt: that push landed or may have, so the report is stored with the commit it proposed. revision +1; Work: clear no_progress
require_reviewer_answer result upstream_review.waiting_human the worker reports that no change is needed. A human answers the reviewer; the pipeline posts nothing on the upstream PR. The report of the Work is stored as worker_report evidence. Work: clear; sets pending_human_action=answer_reviewer -
schedule_publish_retry result same state publication failed with an infrastructure error; publish_recovery remains. The same verified Result is published again; no new Work is requested. The pending publication carries the feedback ids of its Work. A publication whose push was not read back (uncertain) is such a failure; the retry reads the branch first and never pushes over a push that landed. Its push may have landed, so the report of an uncertain Result is stored as worker_report evidence with the commit it proposed, whatever ends the hold. Work: clear; sets pending_publication publish_recovery
exhaust_publish_recovery result upstream_review.waiting_human publish_recovery exhausted sets pending_human_action=publication_infrastructure_failure, pending_human_action.counter=publish_recovery, pending_publication.exhausted -
retry_dispatch tick same state a dispatcher run ended with the requested Work absent or unclaimed; dispatch_recovery remains. Launches the dispatcher again for the same committed Work request. none dispatch_recovery
exhaust_dispatch_recovery tick upstream_review.waiting_human dispatch_recovery exhausted Work: clear; sets pending_human_action=dispatch_failed, pending_human_action.counter=dispatch_recovery -
allocate_work_retry tick same state the Work graph is terminal without a usable Result; work_recovery and work_total remain; upstream identity and base bound. A terminal Work graph is never submitted again; a fresh graph is allocated. It carries the same feedback ids. revision +1; Work: reallocate work_recovery, work_total
exhaust_work_recovery tick upstream_review.waiting_human the Work graph is terminal without a usable Result; work_recovery or work_total exhausted. pending_human_action.counter names work_total when that budget is exhausted, and work_recovery otherwise. Work: clear; sets pending_human_action=work_failed, pending_human_action.counter -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

upstream_review.waiting_human

Verb Trigger To Guard Effects Charges
resume_upstream_review command (/upstreaming resume) upstream_review.waiting_ci exact revision; pending_human_action is pr_closed_unmerged, answer_reviewer, or upstream_head_changed; for pr_closed_unmerged, the upstream PR is observed open again. No revision Work is requested. The pending feedback is cleared when the pending action is answer_reviewer, because a human answered it; the other two pending actions hold none. revision +1; clears pending_human_action, pending_feedback_evidence_ids -
rearm_dispatch tick upstream_review.fix_needed pending_human_action is dispatch_failed; the work-queue Policy was installed after the dispatch failed, and the compiled policy preserves it; not paused; quiescent: no open operation and no pending publication. Re-arms a dispatch that failed while the installed work-queue Policy refused every dispatch, once the dispatcher has reinstalled the compiled policy: the same transition as the resume a human would post, taken by the controller. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of dispatch_recovery) -
resume_upstream_revision command (/upstreaming resume) upstream_review.fix_needed exact revision; pending_human_action is dispatch_failed, work_failed, publication_infrastructure_failure, repair_budget_exhausted, base_branch_unavailable, or upstream_unavailable. Only when revision Work failed: dispatch, Work, publication, or a budget. The pending feedback is kept. When an exhausted budget caused the wait, the resume starts again the one counter named in pending_human_action.counter, and no other. The event records the actor, the counter, and its count at that point. revision +1; clears pending_human_action, pending_publication; starts again the counter named in pending_human_action.counter (one of repair_attempts_cluster, no_progress, work_total, dispatch_recovery, work_recovery, publish_recovery, source_reads) -
resume_upstream_read tick upstream_review.fix_needed pending_human_action is base_branch_unavailable or upstream_unavailable; the wait was entered because reads kept failing, not because the upstream said that the branch is missing; the upstream repository and its base branch are read again; not paused; quiescent: no open operation and no pending publication. Ends a wait that failed reads caused once a tick reads the upstream again: the step that was due runs again, and the tracking issue states that the contribution continues. A wait the upstream’s own answer caused (a missing or renamed branch) still needs a resume. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of source_reads) -
resume_renamed_upstream tick upstream_review.fix_needed pending_human_action is upstream_unavailable; the wait was entered because GitHub named the recorded repository otherwise: its pending action names no counter; the upstream repository and its base branch are read again; not paused; quiescent: no open operation and no pending publication. Ends the wait a renamed repository caused once a tick reads the repository under its recorded name and id again: the step that was due runs again, and the tracking issue states that the contribution continues. revision +1; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of source_reads) -
require_base_branch tick same state the wait was entered because GitHub named the recorded repository otherwise: its pending action names no counter; the upstream says that the base branch does not exist or was renamed; not paused; quiescent: no open operation and no pending publication. Taken once the repository is read under its recorded name and id again and the upstream says that the base branch does not exist or was renamed: the wait stays, and its cause becomes the base branch, as require_base_branch records it from the state the step was due in. While the contribution waits, the upstream is read again only once an authorized resume is posted. Once the branch exists again, a resume continues; to continue on another branch, the contribution is parked first and then restarted on that branch. sets pending_human_action=base_branch_unavailable -
resume_renamed_base observation upstream_review.fix_needed pending_human_action is base_branch_unavailable; the upstream renamed the base branch, the open upstream PR now targets the new name, and the new name’s history contains the recorded base commit; not paused; quiescent: no open operation and no pending publication. The wait a renamed base branch caused ends without a human: the record follows the rename as follow_renamed_base does, and the revision Work that was due is due again. The tracking issue states the rename. revision +1; sets upstream.base_ref, upstream_pr.base_ref; clears pending_human_action; starts again the counter named in pending_human_action.counter (one of source_reads) -
park_contribution (rule) command (/upstreaming park) parked.idle a reason is given; any revision, current or stale; no open operation. Ends the current generation; evidence is kept for audit. A Result held for publication is not published. Accepted while paused. Work: clear; sets parked_reason, previous_phase; clears pending_publication -
record_reminder (rule) tick same state at least human_sla_business_days.reminder business days since the request or the last reminder; not paused. Posts an append-only reminder of the pending human step. In handoff.waiting_upstream_pr the reminder text carries the package link and the exact head, and states when an observed PR does not match. sets pending_human_action.reminded_at -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

release_wait.idle

Verb Trigger To Guard Effects Charges
record_release_incomplete observation same state release evidence does not yet satisfy the acceptance contract none -
require_release_intervention observation release_wait.waiting_human release evidence needs operator action sets pending_human_action -
verify_release observation released.idle verified release coverage satisfies the acceptance contract sets release_acceptance -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

release_wait.waiting_human

Verb Trigger To Guard Effects Charges
resume_release_observation command (/upstreaming resume) release_wait.idle exact revision revision +1; clears pending_human_action -
record_reminder (rule) tick same state at least human_sla_business_days.reminder business days since the request or the last reminder; not paused. Posts an append-only reminder of the pending human step. In handoff.waiting_upstream_pr the reminder text carries the package link and the exact head, and states when an observed PR does not match. sets pending_human_action.reminded_at -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

released.idle

Terminal: no transition leaves this state.

Verb Trigger To Guard Effects Charges
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

parked.idle

Verb Trigger To Guard Effects Charges
restart_generation command (/upstreaming refresh) queued.idle exact revision; quiescent: no open operation and no pending publication; no open upstream PR. Starts a clean generation that runs complete planning; identity, events, evidence, and replay fences are kept. An optional class, paths, and reason are stored as admission_override. upstream.base_ref is the optional branch of the command, else the target branch the request asked for at intake, else none (the upstream default branch is bound). Accepted while paused. revision +1; generation +1; Work: clear; sets admission_override, upstream.base_ref -
abandon command (/upstreaming abandon) closed.idle a reason is given; any revision, current or stale sets terminal_reason=abandoned; clears pending_publication -
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

closed.idle

Terminal: no transition leaves this state.

Verb Trigger To Guard Effects Charges
record_late_effect (rule) result same state the Result does not match the current generation, revision, and requested Work. Recorded in the events for audit. The Result is never folded, the publisher refuses it, and the state never changes. none -

Budgets

Each budget counts charges by the verbs that name it. Its limit is a policy.json value, plus one when the first try is free. When the count reaches the limit, an exhaustion verb is taken instead. Exhaustion of an infrastructure budget always leads to a human wait of the same phase. Every exhaustion that leads to a human wait names its counter in pending_human_action.counter, and the resume from that wait starts exactly that counter again, and no other.

Budget One charge Counter Limit Infrastructure Charged by Exhaustion
work_total one Work allocation of any kind budget.attempts_used, counted per generation retries.max_attempts_per_contribution (24) no allocate_work_retry from development.agent_running; allocate_work_retry from handoff.agent_running; allocate_work_retry from handoff.reviewing; allocate_work_retry from planning.agent_running; allocate_work_retry from upstream_review.agent_running; dispatch_planning from planning.idle; request_patch from development.fix_needed; request_repair from development.fix_needed; request_review_revision from upstream_review.fix_needed; request_submission_review from handoff.review_pending; request_submission_rewrite from handoff.review_due; request_upstream_revision from upstream_review.fix_needed exhaust_work_total: planning.idle to planning.waiting_human; exhaust_work_recovery: planning.agent_running to planning.waiting_human; exhaust_work_recovery: development.agent_running to development.waiting_human; exhaust_work_total: development.fix_needed to development.waiting_human; exhaust_work_total: handoff.review_due to handoff.waiting_human; exhaust_work_recovery: handoff.agent_running to handoff.waiting_human; exhaust_work_total: handoff.review_pending to handoff.waiting_human; exhaust_work_recovery: handoff.reviewing to handoff.waiting_human; exhaust_repair_attempts: upstream_review.fix_needed to upstream_review.waiting_human; exhaust_work_recovery: upstream_review.agent_running to upstream_review.waiting_human
work_recovery one fresh Work graph after terminal Work without a usable Result active_work.attempt 1 + retries.work_recovery (2) = 3 yes allocate_work_retry from development.agent_running; allocate_work_retry from handoff.agent_running; allocate_work_retry from handoff.reviewing; allocate_work_retry from planning.agent_running; allocate_work_retry from upstream_review.agent_running exhaust_work_recovery: planning.agent_running to planning.waiting_human; exhaust_work_recovery: development.agent_running to development.waiting_human; exhaust_work_recovery: handoff.agent_running to handoff.waiting_human; exhaust_work_recovery: handoff.reviewing to handoff.waiting_human; exhaust_work_recovery: upstream_review.agent_running to upstream_review.waiting_human
planning_attempts one planning Result without a usable plan budget.planning_attempts retries.planning_attempts (3) no reject_plan from planning.agent_running exhaust_planning_recovery: planning.agent_running to planning.waiting_human
repair_attempts_cluster one repair or revision Work allocation for one failing CI job; Work that is due without a failing CI job charges none budget.clusters[<job>], started again by refresh_on_exhaustion retries.patch_attempts_per_cluster (3) no request_repair from development.fix_needed; request_upstream_revision from upstream_review.fix_needed refresh_on_exhaustion: development.fix_needed to queued.idle; exhaust_repair_attempts: development.fix_needed to parked.idle; exhaust_repair_attempts: upstream_review.fix_needed to upstream_review.waiting_human
no_progress one successive rejected or blocked outcome without progress budget.no_progress_streak, started again by a published patch and by refresh_on_exhaustion retries.no_progress_review_after (2) no reject_patch_proposal from development.agent_running; reject_patch_proposal from upstream_review.agent_running refresh_on_exhaustion: development.fix_needed to queued.idle; exhaust_repair_attempts: development.fix_needed to parked.idle; exhaust_repair_attempts: upstream_review.fix_needed to upstream_review.waiting_human
flaky_reruns one rerun of the failed CI jobs on the exact head, requested by the repair worker budget.reruns.flaky, counted for the head in budget.reruns.head_sha and started again whenever the recorded head changes retries.flaky_reruns (1) no request_ci_rerun from development.agent_running reject_patch_proposal: development.agent_running to development.fix_needed
interrupted_reruns one rerun by the collector of CI jobs that were cancelled or lost their runner budget.reruns.interrupted, counted for the head in budget.reruns.head_sha and started again whenever the recorded head changes and by resume_ci retries.infrastructure_per_head_failure (2) yes rerun_interrupted_ci from development.waiting_ci; rerun_interrupted_ci from handoff.waiting_ci exhaust_interrupted_reruns: development.waiting_ci to development.waiting_human; exhaust_interrupted_reruns: handoff.waiting_ci to handoff.waiting_human
dispatch_recovery one dispatcher run that ended with the requested Work absent or unclaimed dispatcher runs since active_work.requested_at 1 + retries.infrastructure_per_head_failure (2) = 3 yes retry_dispatch from development.agent_running; retry_dispatch from handoff.agent_running; retry_dispatch from handoff.reviewing; retry_dispatch from planning.agent_running; retry_dispatch from upstream_review.agent_running exhaust_dispatch_recovery: planning.agent_running to planning.waiting_human; exhaust_dispatch_recovery: development.agent_running to development.waiting_human; exhaust_dispatch_recovery: handoff.agent_running to handoff.waiting_human; exhaust_dispatch_recovery: handoff.reviewing to handoff.waiting_human; exhaust_dispatch_recovery: upstream_review.agent_running to upstream_review.waiting_human
publish_recovery one publish-only retry of the same verified Result pending_publication.attempts 1 + retries.infrastructure_per_head_failure (2) = 3 yes schedule_publish_retry from development.agent_running; schedule_publish_retry from upstream_review.agent_running exhaust_publish_recovery: development.agent_running to development.waiting_human; exhaust_publish_recovery: upstream_review.agent_running to upstream_review.waiting_human
source_reads one failed read of the upstream repository or base branch without a definitive answer, counted at most once per spacing slot (retries.source_unavailable_minutes divided by retries.source_unavailable_reads, counted from the first failed read) budget.source_unavailable, the counted failed reads, since budget.source_unavailable_since, the last at budget.source_unavailable_at, of which budget.source_unavailable_repository could not read the repository itself: a tick that reads the upstream starts it again. It is exhausted by the first failed read once retries.source_unavailable_minutes minutes have passed since the first failed read and the count, that read included when it is counted, is reached: that read is never held back by the spacing retries.source_unavailable_reads (3) no record_source_unavailable from development.fix_needed; record_source_unavailable from handoff.review_due; record_source_unavailable from handoff.review_pending; record_source_unavailable from planning.idle; record_source_unavailable from provisioning.idle; record_source_unavailable from queued.idle; record_source_unavailable from upstream_review.fix_needed exhaust_source_reads: queued.idle to planning.waiting_human; require_upstream_access: queued.idle to planning.waiting_human; exhaust_source_reads: planning.idle to planning.waiting_human; require_upstream_access: planning.idle to planning.waiting_human; exhaust_source_reads: provisioning.idle to provisioning.waiting_human; require_upstream_access: provisioning.idle to provisioning.waiting_human; exhaust_source_reads: development.fix_needed to development.waiting_human; require_upstream_access: development.fix_needed to development.waiting_human; exhaust_source_reads: handoff.review_due to handoff.waiting_human; require_upstream_access: handoff.review_due to handoff.waiting_human; exhaust_source_reads: handoff.review_pending to handoff.waiting_human; require_upstream_access: handoff.review_pending to handoff.waiting_human; exhaust_source_reads: upstream_review.fix_needed to upstream_review.waiting_human; require_upstream_access: upstream_review.fix_needed to upstream_review.waiting_human
operation_launch one launch of a planned fork provisioning operation the operation’s launch attempts 1 + retries.infrastructure_per_head_failure (2) = 3 yes start_operation from provisioning.idle require_provisioning_intervention: provisioning.idle to provisioning.waiting_human
upstream_branch one lease write and readback of riscv64 the handoff operation’s attempts 1 + retries.infrastructure_per_head_failure (2) = 3 yes retry_upstream_branch from handoff.building_upstream_branch exhaust_upstream_branch_retries: handoff.building_upstream_branch to handoff.waiting_human
submission_comment one attempt to post the submission package the handoff operation’s attempts 1 + retries.infrastructure_per_head_failure (2) = 3 yes retry_submission_comment from handoff.preparing_submission exhaust_comment_retries: handoff.preparing_submission to handoff.waiting_human

Two more limits are read from policy.json: refresh.stale_after_days (7) is the length of a stop after which resume_stale applies, and human_sla_business_days.reminder (3) is the interval of record_reminder.

Operation table

Every remote effect is an operation with its own small table, held to the same checks. The intent is recorded before the effect, and the receipt is confirmed by discovering the actual resource. While an operation is open (planned, applying, uncertain) it fences its contribution: no park, no refresh, and no second writer. /upstreaming resolve-operation closes an open operation with a resolution evidence record.

An operation starts in planned (record_intent).

State Open Exits Description
planned yes 4 The intent is recorded; the remote effect has not been attempted.
applying yes 5 The remote call is in flight.
uncertain yes 5 The effect may or may not exist; it is discovered, never repeated.
confirmed no 0 The effect exists and was read back.
failed no 0 The effect definitely did not succeed.
not_launched no 0 A human established with evidence that the effect was never launched.

Operation planned

Verb Trigger To Guard Effects Charges
begin_effect tick applying capacity available; the contribution is not paused; the final check before the effect passes none -
resolve_confirmed command (/upstreaming resolve-operation) confirmed the command names this operation; a resolution evidence record states the disposition; disposition confirmed sets resolution -
resolve_failed command (/upstreaming resolve-operation) failed the command names this operation; a resolution evidence record states the disposition; disposition failed sets resolution -
resolve_not_launched command (/upstreaming resolve-operation) not_launched the command names this operation; a resolution evidence record states the disposition; disposition not-launched sets resolution -

Operation applying

Verb Trigger To Guard Effects Charges
record_response operation uncertain the remote call succeeded, or its response was lost or ambiguous. Even a successful response is provisional until discovery confirms the resource. sets external_ids -
record_failure operation failed the remote call returned a definite failure sets external_ids -
resolve_confirmed command (/upstreaming resolve-operation) confirmed the command names this operation; a resolution evidence record states the disposition; disposition confirmed sets resolution -
resolve_failed command (/upstreaming resolve-operation) failed the command names this operation; a resolution evidence record states the disposition; disposition failed sets resolution -
resolve_not_launched command (/upstreaming resolve-operation) not_launched the command names this operation; a resolution evidence record states the disposition; disposition not-launched sets resolution -

Operation uncertain

Verb Trigger To Guard Effects Charges
confirm_by_discovery operation confirmed discovery finds the exact resource the operation proposed sets discovery -
record_discovery operation same state discovery finds the resource absent or an unrelated one. Absence never proves that the effect did not launch, and elapsed time never closes an operation. sets discovery -
resolve_confirmed command (/upstreaming resolve-operation) confirmed the command names this operation; a resolution evidence record states the disposition; disposition confirmed sets resolution -
resolve_failed command (/upstreaming resolve-operation) failed the command names this operation; a resolution evidence record states the disposition; disposition failed sets resolution -
resolve_not_launched command (/upstreaming resolve-operation) not_launched the command names this operation; a resolution evidence record states the disposition; disposition not-launched sets resolution -

Operation confirmed

End state: no transition leaves it.

Operation failed

End state: no transition leaves it.

Operation not_launched

End state: no transition leaves it.