25 lines
2.7 KiB
Markdown
25 lines
2.7 KiB
Markdown
# 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.
|
|
|
|
1. Add UI tests for confirmation, Ready-row inclusion, skipped projects, busy state and cancellation.
|
|
2. Add the button and route the full set of eligible rows through the existing queue without changing ordinary Verify behavior.
|
|
3. 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)
|
|
|
|
- [x] Put the action in a separate database maintenance panel with the supported scope beside it.
|
|
- [x] Confirmation displays the exact library, eligible count, Ready count and missing-project count, and explains that verification saves projects.
|
|
- [x] Show item progress and separate checking, backup and native repair phases; allow stopping after the current item.
|
|
- [x] 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.
|
|
- [x] 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.
|
|
- [x] Exercise the actual Qt button on a fresh local library copy using the production reader and verifier, capture screenshots and check source fingerprints afterwards.
|
|
- [x] Repeat the real header-corruption/native-repair probe with a 180-second native deadline and verify the restoration-review result and normal process exit.
|
|
- [x] 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.
|