feat: recover interrupted installation preparation safely
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
# Installation recovery — T09/#51
|
||||
|
||||
The installer retains pending schema review even when a durable synchronization's
|
||||
reservation blocks binding import. It waits for busy operations, retries interrupted
|
||||
sync through the domain API and explicitly requests guarded preprocessing recovery.
|
||||
|
||||
Preprocessing now uses the existing kernel writer-lock mechanism plus inherited
|
||||
worker locks and an owner-generation check. A surviving orphan worker prevents
|
||||
recovery; a delayed worker from an older generation cannot start. Once absence of
|
||||
writers is established, the Catalog fingerprint/revision/run-identity CAS marks an orphaned
|
||||
current-protocol run interrupted and the full pipeline can run again. Legacy owners
|
||||
without this protocol are not silently adopted. Clear operations use the same guard
|
||||
but are never invoked by installation recovery.
|
||||
|
||||
No new Catalog authority or generic reset was added. Existing document seals detect
|
||||
changed credentials and inputs; corrected documents need a new plan. Imported binding
|
||||
changes must also be reconciled through Administration, preserving intentional edits.
|
||||
Source and prebuilt installations share this behavior.
|
||||
|
||||
Migration 015 stores the attempt identity so a late completion cannot finish a new
|
||||
attempt using the same inputs. Ownership is rechecked after asynchronous work before
|
||||
updating the job. Regression tests kill the real lock holder during semantic preflight
|
||||
and verify rejection of a stale completion against real PostgreSQL.
|
||||
|
||||
Real source installation exposed two additional contract defects: containerd image
|
||||
stores may identify a locally loaded image by its manifest rather than Buildx's config
|
||||
digest; unsupported Git ports must fail document validation before runtime startup.
|
||||
Both now have regression tests. A fresh installation also uses `low` reasoning for
|
||||
the Pi smoke when neither installation nor saved settings select a level.
|
||||
|
||||
Verification includes real kernel-lock/child-process tests, delayed-worker rejection,
|
||||
service retry after Catalog completion loss, legacy-owner refusal, authenticated route
|
||||
conflict handling and installation client readiness checks. Full suite results and
|
||||
published consumer acceptance are recorded after completion, not inferred from mocks.
|
||||
|
||||
Validation before publication: the full backend suite and all Go packages passed;
|
||||
backend typecheck, source-producer tests and the strict documentation build passed.
|
||||
After aligning the in-memory Catalog test double with the new run identity, the
|
||||
focused Catalog route/service/identity suite passed (39 tests), as did typecheck.
|
||||
Standards and Spec reviews found no remaining production blocker. Real consumer
|
||||
fault-recovery acceptance remains pending at this commit.
|
||||
Reference in New Issue
Block a user