)]}'
{
  "commit": "4574b55a4dfde4f70cd3b6d5b6a78eb6f42a7ac0",
  "tree": "8bfa14e23a58011cd1961c00e45ef8727328f7f5",
  "parents": [
    "eb90627b19f9def02dac69ae82632976b0f8a978"
  ],
  "author": {
    "name": "Anthony Rocha",
    "email": "anthony.rocha@amd.com",
    "time": "Sat Nov 14 15:48:53 2026 -0800"
  },
  "committer": {
    "name": "Anthony Rocha",
    "email": "anthony.rocha@amd.com",
    "time": "Sat Nov 14 21:07:23 2026 -0800"
  },
  "message": "orchestrator/test: a pure device model for boot-sequence tests\n\nA managed device as seen from its reset line: hold reset and it is down,\nrelease it and one boot attempt starts. A script of Behaviours (Hang, Boots,\nBootsThenFails) says what each attempt does, indexed by how many times reset\nhas been released, so the device owns its behaviour and the system under test\nnever tells it how to act.\n\nIt is a pure state machine with injected time and no dependencies: no pins,\nno clock, no kernel, no heap. The delay counts from the release, a reset\nmid-boot restarts it, and asserting reset drops ready. Transitions are stamped\nwith the moment they were due, not the moment a late caller noticed, so tests\ncheck exact timing and an event loop can sleep until next_event_at. A small\nqueue keeps ready edges so a pulse between two polls is not lost; overflow is\ncounted, not hidden.\n\nIt lives beside the orchestrator\u0027s other test doubles in services/orchestrator/test\nand has a README documenting its seams, invariants and host-test target. All\narithmetic saturates and the script lookup avoids casts, per the review\nchecklist.\n\nNineteen host tests. Two deliberate breakages (boot one tick late, a reset\nthat forgets to record the drop) each fail several of them. ./pw presubmit\npasses.\n\nCo-Authored-By: Claude Sonnet 5.5 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "584a1a4b23c47cc567f104f4a9a1e6f8e8637e9f",
      "new_mode": 33188,
      "new_path": "services/orchestrator/test/device_model/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2aa66b83baef333b782389b93d73115b6684b067",
      "new_mode": 33188,
      "new_path": "services/orchestrator/test/device_model/README.md"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "82fd6fe2ba191b5ca429d7be76cd8d677ac588c4",
      "new_mode": 33188,
      "new_path": "services/orchestrator/test/device_model/src/behaviour.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8f369880a83f27648cc7902465998834acb602d0",
      "new_mode": 33188,
      "new_path": "services/orchestrator/test/device_model/src/lib.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "37ffa106c68318b2ad53b3b05e67e8e43c2ca8ed",
      "new_mode": 33188,
      "new_path": "services/orchestrator/test/device_model/src/model.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b25dd4c9cd2115d0e136e2196fa3d39f7793241d",
      "new_mode": 33188,
      "new_path": "services/orchestrator/test/device_model/src/tests.rs"
    }
  ]
}
