Private
Public Access
0
0
Files
manual_slop/tests
ed 635ca5523d fix(mma_concurrent_tracks): partial fix for production+mock regression
This test was failing for multiple stacked reasons. Fixed the ones I
could identify but the test still does not pass (the bg_task for the
second track does not run, suggesting a deeper integration issue).

Fixes:

1. src/app_controller.py: _start_track_logic_result and _cb_plan_epic both
   mutated the frozen ProjectContext dataclass returned by flat_config()
   via flat.setdefault('files', {})['paths'] = .... The flat_config()
   return type was changed from dict[str, Any] to a frozen @dataclass
   ProjectContext by cruft_elimination Phase 2 (in 0d2a9b5e), but the
   consumers were never updated. Fix: call flat.to_dict() to get a
   mutable dict before mutation.

2. src/app_controller.py: _start_track_logic_result iterated over
   sorted_tickets_data expecting dicts but conductor_tech_lead.topological_sort()
   returns list[Ticket]. So t_data['id'] raised 'Ticket' object is not
   subscriptable. Fix: use Ticket attribute access (t_data.id, etc.).

3. tests/mock_concurrent_mma.py: The mock was not handling the
   --resume session-id case that the gemini_cli_adapter uses for
   subsequent calls. The mock's first call returns the epic, but
   the second call (--resume mock-epic) fell to the default case.
   Fix: parse --resume arg from sys.argv and route to per-track
   sprint-ticket response based on a persistent call counter.

Known remaining issue: only one sprint-ticket mock call is observed in
the test log; the second track's _start_track_logic does not appear to
call the mock. Could be a deeper integration issue in the test sandbox
or in the _cb_accept_tracks._bg_task loop. Test still fails at line 66.
2026-06-27 13:35:05 -04:00
..
2026-03-05 17:13:59 -05:00
2026-05-10 15:14:54 -04:00
2026-05-20 07:51:58 -04:00
2026-03-05 16:37:30 -05:00
2026-03-05 17:13:59 -05:00
2026-03-05 16:37:30 -05:00
2026-03-07 20:32:59 -05:00
2026-03-12 19:08:51 -04:00
ok
2026-03-07 21:40:40 -05:00