From 9744cd2b6743ba7c4f27d48bf6a6c58e67a66ba8 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Nov 2026 15:56:05 +0000 Subject: [PATCH 1/5] Refuse third-party dependencies in the foundation crates check_dependencies.py now reads a closed crate list from dependency_rules.json: the five foundation crates take only heapless, libm and each other as production dependencies. The foundations design doc cites the check and records why the sound cue crosses the port. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011wmjvKzamiTf3Th8ePmUoi --- docs/design/foundations.md | 4 +++- firmware/tools/check_dependencies.py | 27 ++++++++++++++++++++++- firmware/tools/dependency_rules.json | 14 ++++++++++++ firmware/tools/tests/test_dependencies.py | 16 ++++++++++++++ 4 files changed, 59 insertions(+), 2 deletions(-) diff --git a/docs/design/foundations.md b/docs/design/foundations.md index f0a482d9d9..37877022cc 100644 --- a/docs/design/foundations.md +++ b/docs/design/foundations.md @@ -45,8 +45,9 @@ The system depends on no other system. Its tests use `obcm-testkit` from map rea | A trip start record never replaces a finished trip record. | `a_start_record_moves_the_stored_record_and_never_replaces_it` in [`trip_progress.rs`](../../firmware/obc-formats/src/trip_progress.rs) | | A map style stays at 12 bytes or less, because a source keeps 256 of them in RAM. | `size_of::