Forge Central as the source of task truth
Status: Ready
Article ID: 031
Truth label: Current
Audience: New builder
Reader outcome: Explain why Central owns persisted task state while workers report observations from one fenced attempt.
Related articles: 002, 004, 032
Target week: 13
Last verified: 2026-09-13
Technical reviewer: Codex source audit
Editorial reviewer: Codex editorial audit
Put authority in one service
Forge Central owns projects, tasks, workers, claims, leases, checkpoint decisions, schedules, sessions, run lineage, and the transitions between them. A worker asks Central for eligible work, claims one task, executes it, and reports progress or a result. It does not declare itself the final owner of task state.
This distinction matters when messages repeat, arrive late, or cross a service restart. Central can compare a report with persisted state and decide whether to accept, deduplicate, or mark it superseded.
Treat a worker report as a proposal
A worker observes its local CLI, verification process, filesystem, and outbox.
It can report in_progress, completed, failed, cancelled, or checkpoint
material. Central checks authentication, run identity, fence, and allowed
transition before applying the report.
A successful command on a worker is therefore not yet a completed task. The report must reach Central, survive its transition checks, and pass any configured checkpoint or pipeline gate.
Use persisted identities
Each claim creates a run UUID and increments the task's attempt number. The attempt number is also the fence. Central stores the lease and, for a credentialed worker, a hash of the run-bound token.
Those identities separate “this task” from “this attempt.” A task can have several attempts after lease expiry, machine failure, revision, or retry. An old attempt can still deliver evidence, but its fence prevents it from replacing the current state.
Read state from Central
For operational decisions, use the task, history, trace, logs, and decisions routes exposed by Central. The worker terminal and a local checkout provide supporting evidence, especially for raw artifacts that were never uploaded, but they do not replace the persisted control-plane record.
When records disagree, capture task id, run id, fence, worker id, timestamps, and result-delivery outcome. “The worker said done” is not specific enough for an incident review.
Apply the boundary to failure
Suppose a worker finishes, writes its result to the outbox, and loses network access. Central may later expire the lease and create a newer attempt. When the old outbox drains, Central can authenticate and ledger that old result as superseded without letting it overwrite the new attempt.
That behavior requires one authoritative state owner plus attempt identity. A last-writer-wins worker record could not distinguish recovery from corruption.
Current limits
Central is one active writer per native data root, not a horizontally distributed consensus system. It controls task state but cannot prevent two tasks from editing the same checkout. Raw worker artifacts can remain only on the machine that ran the attempt.
Next lesson
Continue with The complete task state machine.
Derivative map
- Weekly package: WEEK-13
- Long video: VIDEO-W13-LONG
- Shorts: SHORT-W13-PROBLEM, SHORT-W13-MECHANISM, SHORT-W13-WARNING
- Email: EMAIL-W13
- LinkedIn: LI-W13-A, LI-W13-B
- X: X-W13-A, X-W13-B
- Visual: VISUAL-W13
Review record
- Central, worker, claim, lease, fence, and result ownership checked against current source.
- One-writer, checkout-collision, and distributed-artifact limits reviewed.
- Failure example distinguishes task identity from attempt identity.
- Internal links and repository voice reviewed.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13