Commit Graph
5 Commits
Author SHA1 Message Date
ClaudeandClaude Opus 5.5 43317985e4 Modern UI contract: toto and exclusive sponsor reads and commands
toto and sponsor reads in the envelope (amounts as Money), toto.submit with
up to six columns and sponsor.answer for a camp's exclusive sponsor offer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:29:25 +01:00
ClaudeandClaude Opus 5.5 78b827a0e6 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>
2026-10-27 08:39:41 +01:00
ClaudeandClaude Opus 5.5 99a48a463d Modern UI contract: camps read and the first command, camp.book
ModernSession::ui_command checks careerId, expectedRevision and owner, runs
the engine action and answers command_result or error. A refused command
restores the state and both generators; a repeated requestId gets the stored
answer, a different command under the same id duplicate_request. The camps
read lists maps and camps with a binding, draw-free quote per camp, focus and
the season's stays. Tests cover stale revision, foreign owner, unknown camp,
booking, repeat, conflict and a refused second booking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:25:54 +01:00
ClaudeandClaude Opus 5.5 fec4c6c7e7 Modern UI contract: squad read and contract tests
The squad read lists a squad (own club, any league club or a national team
with a nominated squad) with ids, positions, values, absences and, for the
manager's own club, monthly salary and remaining contract months.
modern_ui_contract_tests checks envelope, identities, money, errors and
that reads leave the state unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:19:55 +01:00
ClaudeandClaude Opus 5.5 3336d01004 Modern UI contract: envelope, career and manager ids, session and desktop reads
First engine delivery for the Modern interface handoff (docs/new_ui/integration,
issue #15): ModernSession::ui_read answers in the draft envelope with careerId,
worldId, stateRevision, date, season, scope and Money in minor units. Careers and
human managers get persistent ids (saved in state/modern.json, older saves get
them on load). Reads: session and desktop. Engine decisions on the P0 points in
docs/new_engine/ui-anbindung.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:17:18 +01:00