Skip to content

report/main_loop: don't launch kateri in native-renderer mode - #35

Open
drserajames wants to merge 1 commit into
mainfrom
fix-main-loop-native-guard
Open

report/main_loop: don't launch kateri in native-renderer mode#35
drserajames wants to merge 1 commit into
mainfrom
fix-main-loop-native-guard

Conversation

@drserajames

Copy link
Copy Markdown
Owner

Don't launch kateri when the native renderer is selected

main_loop() spawned KateriTask + SocketServerTask for any command not marked @no_kateri, regardless of AE_REPORT_MAP_RENDERER. So with the native renderer (now the default), a report run — export, serum_coverage_export, … — still launched the kateri app, which then sat idle because the native renderer ignores it. On a normal Mac this goes unnoticed (kateri launches, connects, does nothing); where the unix socket can't bind, the run hard-fails before rendering.

This means the P2 "no kateri process" goal was only realised inside export's body (styled.ace / sig-page-mapi round-trips replaced by native code, commit 90f9051) — the app was still launched by main_loop.

Fix: guard the kateri-task launch on not native_selected(), so native mode runs a report with no kateri process at all. The opt-in kateri backend (AE_REPORT_MAP_RENDERER=kateri) still launches it, and @no_kateri commands are unaffected.

Surfaced by a full end-to-end report.pdf acceptance run (which produced a kateri-free 36-page report, 32/36 pages pixel-identical to the kateri baseline, the rest the expected native-vs-kateri AA floor). WHO-data gate clean.

…ected

main_loop() spawned KateriTask + SocketServerTask for any command not marked
@no_kateri, regardless of AE_REPORT_MAP_RENDERER. So with the native renderer
(the default) a report run — `export`, `serum_coverage_export`, … — still
launched the kateri app, which then sat idle (native ignores it). On a normal
Mac that goes unnoticed; where the unix socket can't bind it hard-fails.

Guard the launch on `not native_selected()` so native mode runs with NO kateri
process at all — realising the P2 "no kateri launch" goal end-to-end. The
opt-in kateri backend (AE_REPORT_MAP_RENDERER=kateri) still launches it.
Surfaced by a full end-to-end report.pdf run.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant