2.7 KiB
ICDB Global Check and Repair Implementation Plan
Goal: Provide a separate full-library action that checks each available CBB and invokes the existing evidence-bound iCDB recovery when appropriate.
Architecture: Reuse the serial verification queue, including Ready rows, and the existing backup, ownership, native repair and retry safeguards. Confirm the full-library write scope before starting; stop on unconfirmed ownership and retain existing reports and evidence. Shared symbol database repair remains unsupported.
Tech Stack: Python 3.12, PySide6, pytest, Windows native Mentor tools.
- Add UI tests for confirmation, Ready-row inclusion, skipped projects, busy state and cancellation.
- Add the button and route the full set of eligible rows through the existing queue without changing ordinary Verify behavior.
- Run focused and full regression tests. On a new isolated project copy, attempt a reproducible native session failure and run the repair; retain evidence and explicitly report whether actual corruption and recovery were demonstrated.
Button design and acceptance (2026-10-28)
- Put the action in a separate database maintenance panel with the supported scope beside it.
- Confirmation displays the exact library, eligible count, Ready count and missing-project count, and explains that verification saves projects.
- Show item progress and separate checking, backup and native repair phases; allow stopping after the current item.
- Report verified items, native repairs, restored backups requiring review, unconfirmed repairs and unexecuted items separately. Save a JSON maintenance report with original error and repair evidence.
- Detect native restoration from an existing backup without treating it as an automatic repair success or retrying verification. Close only after restoration/diagnostics complete, the native main window is idle and the database address has been released.
- Exercise the actual Qt button on a fresh local library copy using the production reader and verifier, capture screenshots and check source fingerprints afterwards.
- Repeat the real header-corruption/native-repair probe with a 180-second native deadline and verify the restoration-review result and normal process exit.
- Run the full regression suite and record the supported scope and practical limits in a release validation note.
Results: docs/releases/2026-10-28-icdb-maintenance-button-validation.md. Actual button run PASS/READY raw=1 on IP101GR; all 21,029 source file hashes unchanged. Real header corruption led to native restoration of an older backup and RESTORED_REVIEW_REQUIRED, without automatic retry. Full regression: 455 passed. Final Windows EXE smoke: clean exit 0.