01-scope-architecture.md 2.2 KB

Review 1 — Scope and architecture

Date: 2026-08-18 Round: HTH Host Safe Delivery Truth, SDK Field Parity and Reproducible Release Closure Round 5 HEAD: recorded in the unique Run Manifest after the host-only commit (this file does not override that manifest).

Scope

No PID, MPC, RL, NN, online training, model lifecycle, data lake, Kafka, MLflow, Kubernetes, container runtime platform, Web UI, cloud service, MCU, SoC-FPGA bring-up, new CPLD business function, new UART protocol, or real actuator test was added. Process shape remains one hthd per serial controller: Actor + Serial Worker + Observe/Control UDS + Python SDK + capture/replay. Public API grew only additively (TimingCapabilities physical temperature / snapshot subscription periods, Observe StepReplay deprecated=true).

Single serial authority

Device Actor is the only object that allocates job_id and ActionExecutionContext. Serial Worker executes jobs whose identity includes job_id, port_generation, device_epoch, kind, origin, peer, and deadline. CurrentInflight is compare-and-cleared only on a full match. Stale results do not clear a new job. Ingress applyCh capacity is 1: ordinary continuous actions latest-wins at the channel, not a 32-deep backlog. Safe / Resume / Shutdown / in-flight writes are not superseded by ordinary Apply.

Findings this round

  • WriteDisconnected drops transport, parser, epoch, lease, targets, then reconnects and writes a new Epoch Safe Baseline. The original Safe action is not replayed.
  • WriteNotStarted retries the same Command ID inside deadline/budget, then NOT_DELIVERED. It does not busy-loop and does not stay in SAFE_PENDING forever.
  • Runtime Safe Frame, Capabilities, Capability Hash, Doctor, Mock, Replay, and tests share EffectiveSafetyContract. Invalid contract fails start or keeps CONFIG_INVALID / not ready. SafeSetAll is not a second calculation path for hthd startup encode.
  • Snapshot Store.base() deep-clones nested objects.

Verdict

Architecture direction: PASS. No blocking ownership or scope items. Software simulation & integration acceptance is not decided in this file; see Review 5 and the Run Manifest. Hardware validation: NOT RUN. Real actuator validation: NOT RUN.