Skip to content

orchestrator: carry device count in table type - #27

Open
Daniiiil1 wants to merge 1 commit into
9elements:device-table-single-sourcefrom
Daniiiil1:codex/fixed-size-device-table
Open

orchestrator: carry device count in table type#27
Daniiiil1 wants to merge 1 commit into
9elements:device-table-single-sourcefrom
Daniiiil1:codex/fixed-size-device-table

Conversation

@Daniiiil1

Copy link
Copy Markdown

Summary

  • carry the device count as a const generic on DeviceTable
  • accept a fixed-size device array instead of an erased slice
  • require Chain<N> to be constructed from DeviceTable<_, _, N>
  • remove the remaining runtime capacity assertion from table-to-chain conversion

Why

This is the fixed-size-array part of OpenPRoT#404, rebased onto the single-source design in #26 as requested in review. The table's validated length now travels in the type, so a chain with a mismatched capacity is rejected by the compiler instead of at runtime.

Validation

  • npx --yes @bazel/bazelisk test //services/orchestrator/config:all //services/orchestrator/sm:orchestrator_sm_test //target/mock:all
  • rustup run stable rustfmt --edition 2024 --check on all changed Rust files
  • git diff --check

Signed-off-by: Daniil Mordanov <mordanovdania@gmail.com>
@Daniiiil1
Daniiiil1 marked this pull request as ready for review August 8, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant