From 2796bdcc148e39a033b5f389b83dcfbfe0a3e261 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 16:26:49 +0400 Subject: fix(ai): recognize newly built labs in research queries Handler(41) searched only the initial mission objects. A constructed lab has an issued logical ID, so the stub returned missing-object ERROR and sent the script into an unsupported ST_SOLVING transition. Resolve the lab through the live logical roster: an unloaded catalog returns false and the original script finishes the request without inventing a research job. Validation: fmt, workspace check/tests and an ignored stock-start regression build a lab, exercise 41 and confirm no script stop or granted technology. GOG ai.dll calls verify static/dynamic IDs, missing labs, cold catalogs and backend acceptance. A stock window replay reaches the lab and 41 without the old stop; the lab itself is outside the player's view. All 29 stock missions complete 900-second reports with successful exits and no Init, Mission or clan-script hard stops. Explicit research and gameplay stubs remain counted. Research catalog 43 and actual research dispatch remain explicit stubs. This coverage-blocker fix follows the visible scripted-mine construction change. --- docs/appendices/knowledge-boundaries.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/appendices/knowledge-boundaries.md') diff --git a/docs/appendices/knowledge-boundaries.md b/docs/appendices/knowledge-boundaries.md index 5c78e5ed..d64cf348 100644 --- a/docs/appendices/knowledge-boundaries.md +++ b/docs/appendices/knowledge-boundaries.md @@ -456,6 +456,8 @@ core и `ResearchCandidateSet::refresh_selection`: последний получ `script_research_status_stubs` считает `Handler(65)` и `Handler(41)` без каталога, `Handler(58)` без списка улучшений и `Handler(56)` без флага автоматических исследований. +Команда `41` видит построенные лаборатории через живые логические ID; +без каталога она возвращает отказ и не запускает исследование. `script_factory_defence_approx` считает оценки охраны завода по клану и цели. Радиус восстановлен, сила берётся из текущих таблиц Control. `script_building_defence_approx` считает выбор наименее охраняемого своего -- cgit v1.2.3