Skip to main content

Deliver results through an outbox

Status: Ready

Article ID: 053

Truth label: Current

Audience: Fleet operator

Reader outcome: Keep a completed worker result durable while Central is unavailable and drain it without losing attempt identity.

Related articles: 004, 051, 060

Target week: 21

Last verified: 2026-09-13

Technical reviewer: Codex source audit

Editorial reviewer: Codex editorial audit

Persist before transport​

The worker writes a terminal payload to outbox/<worker-id>/<task-id>-<fence>.json before its first result request. Atomic local persistence separates completed execution from network delivery.

Keep attempt identity​

The entry contains task, run, fence, status, result or error, verification, files, cost, and metadata. Draining uses the original run token and fence, so a restarted worker does not invent a new ownership claim.

Remove only resolved entries​

Accepted, duplicate, superseded, and task-gone dispositions resolve the entry. Transport and authentication failures retain it for diagnosis or later retry. The worker drains saved entries before polling for new work.

Prove Central downtime​

Use a scratch Central, stop it after execution, and confirm the outbox file remains. Restart Central, drain, and verify both the terminal disposition and entry removal without repeating repository work.

Current limits​

The outbox protects result delivery, not the repository checkout or raw artifacts. Worker-local state needs its own backup. Repeated authentication failure requires operator action rather than endless blind retry.

Next lesson​

Continue with Deduplicate repeated results.

Derivative map​

  • Weekly package: WEEK-21
  • Long video: VIDEO-W21-LONG
  • Shorts: SHORT-W21-PROBLEM, SHORT-W21-MECHANISM, SHORT-W21-WARNING
  • Email: EMAIL-W21
  • LinkedIn: LI-W21-A, LI-W21-B
  • X: X-W21-A, X-W21-B
  • Visual: VISUAL-W21

Review record​

  • Write-before-send, identity, drain order, and dispositions checked against current source.
  • Worker backup, artifacts, and authentication limits reviewed.
  • Downtime proof uses scratch services.
  • Internal links and repository voice reviewed.

Review completed: 2026-08-27

Re-audited against the running product: 2026-09-13