Modern UI contract: lineup, tactics and training reads and commands

lineup.commit takes the squad order and swaps rows into place after opening
the board as the desk does; tactics.commit sets the eight values through the
board's checks; training.commit initializes the plan when needed and applies
decreases before increases so every step stays within the limits. Each is one
revision and is rolled back as a whole when the engine refuses a step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-27 08:39:41 +01:00
1 parent 99a48a463d
commit 78b827a0e6
6 files changed
+305 -11

No files matched your search

+4
View File
@@ -54,5 +54,9 @@ cli::Json ui_error(const std::string& request_id, const std::string& code, const
uint64_t revision, bool retryable);
// The contract id of a manager slot ("manager:<n>").
std::string ui_manager_id(const ModernState& g, int manager);
// Reads the session answers itself (they need the executable's tables): data in the envelope.
cli::Json ui_snapshot(const ModernState& g, const UiContext& context, const std::string& request_id, cli::Json data);
std::string ui_team_id(const ModernState& g, int team);
std::string ui_player_id(const ModernState& g, int player);
} // namespace bmh::modern