# Runtime Health Remaining Gap-Closure Work Orders

**Program ID:** RHR-2026-09-02  
**Created:** 2026-09-02  
**Authority:** evidence audit of committed `main` at `c8a529e2` plus the
ollama-unify deployment at `1480529`  
**Rule:** a prior broad “closed” statement does not close a granular item that
the production path, deterministic test, or operational receipt does not prove.

This register records only the gaps that survived the second source audit. It
does not duplicate work that already has accepted evidence.

## Wave A: interruption authority (WO-18)

- [x] Complete the typed interruption lifecycle and legal transition table.
- [x] Bind pause, resume, and stop to session, run, task epoch, owner,
  generation, and child lineage.
- [x] Fence model admission, tool admission, stream delivery, completion, and
  late asynchronous callbacks after pause or stop.
- [x] Preserve resumable state on pause without creating completion evidence.
- [x] Reconcile mutating-tool and outbound-delivery ambiguity before resume.
- [x] Persist lifecycle state atomically and recover it after restart.
- [x] Propagate one abort lineage through broker waits, tools, child processes,
  Telegram delivery, scheduled actions, media, and browser work.
- [x] Wire exact `/pause`, `/resume`, and `/stop` commands through readline,
  signals, daemon routes, TUI controls, and trusted Telegram administration.
- [x] Prove idempotency, first-terminal-wins, stale-generation rejection,
  restart recovery, multi-session isolation, and bounded acknowledgement.
- [x] Preserve the legacy route behind rollback until shadow comparison passes.

## Wave B: safe artifact creation and delivery (WO-11)

- [x] Enforce successful-fetch receipts for every externally returned URL.
- [x] Downgrade an unverified URL to inert explanatory text without changing
  unrelated reply prose.
- [x] Validate declared send kind against detected MIME before claiming or
  delivering a Telegram artifact.
- [x] Bind every creation or transformation run to a unique scoped directory.
- [x] Enforce artifact quotas, allowed types, symlink rejection, cleanup, and a
  terminal run receipt for success, failure, cancellation, and timeout.
- [x] Add PDF creation, extraction, page rendering, visual inspection, revision,
  and final verification receipts.
- [x] Add safe DOCX and text-document creation and inspection receipts.
- [x] Add bounded image crop, mask, composite, scale, and inspection loops.
- [x] Add bounded FFmpeg audio splice, normalize, transcode, metadata removal,
  and inspection loops.
- [x] Prove redirect, delayed-body, timeout, oversized-body, corrupt-document,
  MIME-mismatch, transform-failure, and cleanup behavior.
- [x] Prove only verified artifacts become clickable local links or Telegram
  uploads.

## Wave C: broker, pressure, and hermetic execution

### WO-00 remaining

- [x] Inventory every production constructor that can open an inference socket.
- [x] Require one explicit integration-network opt-in outside exact test-fixture
  allowlists.
- [x] Add replay-fixture redaction tests for secrets and message bodies.

### WO-01 remaining

- [x] Register embedding-triggered background work with the process-wide
  pressure authority.
- [x] Gate corpus construction and embedding work before resource admission.
- [x] Stop a background sweep after the first timeout or capacity refusal.
  Daemon embedding and Telegram room sweeps preserve the typed refusal and
  terminate the active sweep.
- [x] Prove that production Telegram cognition uses one bounded queue and fair
  global foreground preemption.

### WO-02 remaining

- [x] Return a non-content-bearing queue position or equivalent ordered ticket
  position from the broker.
- [x] Add an explicit reclaimable-placement reason distinct from permanent
  placement refusal and ordinary capacity wait.
- [x] Resume broker admission without resending the full prompt body after the
  broker has durably accepted the logical request.
- [x] Prove cancel, expiry, replay, and idempotent resume across reconnect.

## Wave D: workboard, context, and completion correctness

### WO-03 remaining

- [x] Add revision and exact range fields to typed evidence predicates.
- [x] Store diagnostic first-seen, last-seen, count, and bounded exemplars.
- [x] Enforce one active frontier per assignee and ownership lease.
- [x] Resolve the persistent failure store and workboard as one recoverable
  transaction with a distinct durable resolution receipt.
- [x] Record the real turn identity for `lastSubstantiveProgress`.
- [x] Prove crash recovery on each side of the cross-store resolution commit.

### WO-04 and Hermes H4 remaining

- [x] Supply real typed signals to the production canonical projection.
- [x] Enforce a production request budget of at most 40,000 input tokens.
- [x] Use progressive tool exposure to keep the inline set relevant without a
  fixed aggregate schema ceiling; constrained providers may opt into a finite
  ceiling explicitly.
- [x] Keep only a minimal always-inline tool set.
- [x] Promote deferred tools from explicit capability or action contracts.
- [x] Apply a finite promotion TTL and rebuild tool definitions after state
  change, expiry, or action completion.
- [x] Replace raw tool output with accepted receipts and artifact references.
- [x] Prove policy uniqueness, authority retention, stale-work exclusion,
  no-progress compaction termination, and valid role ordering on real traces.

### WO-05 confirmation

- [x] Re-run completion-readiness acceptance after Waves A, B, and D without
  weakening host-derived evidence or explicit override receipts.

## Wave E: Telegram ownership and transport continuity

### WO-06 and Hermes H7 remaining

- [x] Add a deterministic transport whose `getUpdates` call never completes.
- [x] Abort and replace a wedged polling client within a bounded deadline.
- [x] Preserve spool ownership and the contiguous durable checkpoint during
  client replacement.
- [x] Restart the configured bridge after an update or resume transaction.
- [x] Prove OS-signal shutdown awaits poll cancellation and database flush.

### Hermes H1 stream ownership

- [x] Fence every visible stream by input ID, chat/thread scope, generation,
  and outbound operation ID.
- [x] Reject late chunks and finalizers from superseded generations.
- [x] Record a turn-wide delivery ledger for draft, edit, final send, fallback,
  acknowledgement, ambiguity, and receipt.
- [x] Prove exact Unicode and Telegram-markup delivery once across 429,
  reconnect, timeout-before-ack, and timeout-after-server-acceptance cases.

### Hermes H2 immutable routing

- [x] Add a task-local immutable routing record as a convenience layer only.
- [x] Keep explicit durable receipt keys authoritative.
- [x] Prove interleaved chats cannot leak chat, thread, sender, input, or
  message identity through tool callbacks, stream callbacks, or final delivery.

## Wave F: scheduled work, child results, ontology, and supervision

### Hermes H3 canonical scheduled work

- [x] Route legacy cron entry points through ReminderTool occurrence leases.
- [x] Preserve the distinct `person_notification` and `agent_action` contracts.
- [x] Use the canonical missed-run coalescing, retry, cancellation, capability,
  and delivery receipts.
- [x] Prove restart-before-run, restart-during-run, dual-daemon claim, delivery
  failure, action failure, and foreground cancellation.

### Hermes H5 restart-storm breaker

- [x] Persist a bounded restart count and time window across owner respawns.
- [x] Apply capped exponential restart backoff.
- [x] Expose an explicit degraded health state and next eligible restart time.
- [x] Require a manual, authorized reset after the circuit opens.
- [x] Preserve exact PID, start-time, command, home, endpoint-claim, and owner
  identity validation before any process signal.
- [x] Prove healthy stabilization resets the budget without enabling a loop.

### Hermes H6 bounded child returns

- [x] Reserve parent-context headroom before child dispatch.
- [x] Wire the available live remaining-context and owning `AbortSignal` hooks
  into the main TUI full-sub-agent constructor. Telegram and main-TUI delegated
  runs now use live headroom and the exact task-owner signal.
- [x] Cap inline child synthesis and accepted finding or receipt identifiers.
- [x] Spill detailed child output to a scoped artifact with hash and receipt.
- [x] Emit a bounded timeout diagnostic artifact without copying a full child
  stack trace into the parent context.
- [x] Propagate lineage, depth, cancellation authority, and capability pins on
  every child path.

### WO-13 ontology completion

- [x] Add typed actor, conversation, and relationship node kinds.
- [x] Add typed reply, reaction, delivery, and ownership relation kinds.
- [x] Require evidence, confidence, temporal validity, and scope on inferred
  social or relationship facts.
- [x] Include task epoch in projected identity and reconciliation.
- [x] Prove revision, supersession, and replay across task and social graphs.

## Wave G: evidence reconciliation and operational canaries

### WO-19 clean-build prerequisite

- [x] Remove undeclared global and optional-package assumptions from schemas,
  execution, and CLI.
- [x] Prove affected package typechecks and builds from declared workspace
  dependencies.
- [x] Run an isolated clean-checkout gate without consuming protected generated
  discovery or publish-tree changes.

- [x] Reconcile `TRACKER.md`, `EXTENDED-WORK-ORDERS.md`, each work order, the
  traceability matrix, and this register against committed evidence.
- [x] Run all hermetic package suites, typechecks, builds, and documentation
  validation after canonical discovery regeneration. Existing `publish/**`
  and unrelated CLI test changes remained untouched.
- [x] Run workboard, context-budget, completion, Telegram crash/restart,
  exact-once delivery, reminder, adjudication, and child-result replays.
- [x] Exercise feature flags, shadow comparison, rollback, and legacy-store
  compatibility.
- [x] Run controlled broker and Telegram load with less than 1% failure and no
  duplicate logical requests, admission amplification, or unbounded queues.
- [ ] Run the macOS, Windows, and AGX Orin device canaries where the required
  hardware is available; otherwise record the exact external blocker.
- [ ] Run live inference only after the exact endpoint, model tag, and actual
  physical GPU placement pass the mandatory hardware gate.
- [x] Record operational receipts and reconcile task-owned Git cleanliness.
- [x] Fetch, preserve unrelated work, create scoped commits, and push verified
  tranches to `origin/main`.

## Completion boundary

This program is complete only when every checked item points to code, a focused
test or operational receipt, and a commit. Device-only and live-environment
items may be marked blocked, but they cannot be called verified on the strength
of a mock or prompt statement.
