Skip to main content

Module task_completion

Module task_completion 

Source
Expand description

Audited task completion and conservative, held-only reopening.

All operator surfaces share admission checks. Task claims serialize queue drivers; retained owner/fix/execution locks exclude direct run control until the admitted task snapshot has been committed. Reopening never alters a run, public pull request, or attempt budget. Verified completion may supersede earlier unsuccessful attempts, as automatic settlement does.

Structs§

CompletionGuards
Locks retained from admission through the caller’s durable task commit. Dropping these guards never changes any run or publication record.

Functions§

admit_close
Admit a close while the caller holds its task claim. Keep the returned guards until the local-decision receipt and task save are durable. Chat control uses this to commit its receipt and completion together.
admit_reopen
Admit a held-only reopen while the caller holds the task claim. Keep the returned guards through the atomic task/decision-receipt save.
close
Mark an idle task done with one immutable completion occurrence. Already-done requests are idempotent and never create another notice.
describe
Human-readable audit and run/PR evidence for CLI and chat responses.
prepare_close
Capture local evidence and require explicit abandonment of unfinished work. Call admit_close when committing an operator decision; this local helper alone does not exclude run owners or validate the forge.
reopen
Reopen a completed task into an explicit operator hold, never into execution. Every retained run is checked, even runs from older repository assignments.