feat(scheduler-sim-decision-trace): move units and value formatting helpers into repl_fmt.c

Task 1.2: translate_units_mode, repl_format_numeric_resource_value,
repl_format_consumable_value_and_used and repl_current_units_mode move
unchanged from repl_info.c and are declared in repl_internal.h so the
trace renderer can reuse them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Rongsong Shen 2026-10-08 07:30:42 +00:00
parent ce757eaaa1
commit 7f40ff27dc
Signed by untrusted user: rshen
GPG key ID: 80533536B0EB651C
5 changed files with 269 additions and 127 deletions

View file

@ -14,7 +14,7 @@
- Done when the new baseline test passes on the unmodified tree under ASAN and the fixtures are committed.
- _Requirements: 10.4, 10.5_
- [ ] 1.2 Move the units and value formatting helpers into the shared REPL formatting module
- [x] 1.2 Move the units and value formatting helpers into the shared REPL formatting module
- Move these helpers out of the info module so a new renderer can reuse them, with no change in behaviour:
- units-mode translation;
- numeric-resource and consumable value formatting;