Просмотр исходного кода

refactor(repo): preserve HTH subtree history

root 3 месяцев назад
Родитель
Сommit
3da63b063b
2 измененных файлов с 16 добавлено и 0 удалено
  1. 9 0
      AGENTS.md
  2. 7 0
      docs/6400/migration.md

+ 9 - 0
AGENTS.md

@@ -0,0 +1,9 @@
+# HTH platform rules
+
+- `hthd` is the sole owner of the configured CPLD serial device. CLI, Python SDK, capture, replay, and Lab use gRPC over Unix-domain sockets.
+- The 6400 wire/snapshot/channel contract is imported from generated CPLD artifacts; do not hand-write offsets or command values.
+- One Host transaction is outstanding at a time. SET_TARGET waits for `0x81`; GET_SNAPSHOT waits for `0x82`; Identification stimulus waits for `0x83`.
+- Production rejects stimulus as unsupported. ACK means target/stimulus commit only, never thermal attainment.
+- Serial, mock, and replay backends implement the same public behavior. PTY tests are simulation, not COM/hardware evidence.
+- Keep the history-preserving subtree provenance. Work on feature/fix branches and merge accepted work to clean `dev`.
+- No direct COM/JTAG/programming, no HTTP/MQTT/Web UI, and no second serial owner.

+ 7 - 0
docs/6400/migration.md

@@ -0,0 +1,7 @@
+# 6400 HTH migration
+
+This repository was created with `git subtree split --prefix=host` from the Host-bearing `origin/dev` history. Split tip: `cf5fa387f273ec1a8254d2d7f8ed3bf131865122`. It is not a copy presented as preserved history.
+
+The existing door-percent API remains migration/Legacy code. The 6400 path imports the generated target/ACK/snapshot contract and exposes `set_target`, `stop`, `get_snapshot`, `capture_snapshot`, and Identification-only `run_stimulus` through the existing gRPC-over-UDS service boundary.
+
+Only `hthd` opens a serial path. Lab and notebooks must use the Python SDK. Hardware, COM, and real UART validation are NOT RUN.