Repository navigation
feat(research): consolidate catalogue lifecycle and recovery (#529)
Change
Combine the coherent catalogue lifecycle and recovery changes from #474,
#475, #478, #479, #480, #483, #487, #488, #489 and #490 on current main.
Apply only each pinned original base-to-head source delta, preserving
accepted main recipe guards, evidence and task ownership. The original
source heads remain unchanged.
The union retains retained fresh-process groups, failed-group retries,
ready-phase scheduling, optional learned commit margins, sealed
checkpoint resume, bounded oracle ownership waits, retry cooldown,
primary-failure diagnostics and serialized open telemetry. Conflict
resolutions forward both checkpoint state and the oracle wait callback,
plan pending capacity after ownership admission, seal terminal groups
and always cancel abandoned phase intents.
Provenance and boundaries
Excluded #484, #485 and #486 require unmerged #471, #481 and #473.
Builder PRs #495, #498, #506, #509, #512, #517, #520 and #521 remain
separate. Existing originals may close as superseded only after their
exact source changes are verified in this published replacement;
branches and worktrees are retained.
Verification
- Accepted base:
3dda0a44c5cda9dd731fa678c80cfecea1d98c85 - Initial integration head:
9508bc8fbe3b89f609bb9e2e02e7559cbe03e550 - Every path belongs to an exact selected source range or this
integration's recorded repair/change/provenance entries - All 55 changed source files pinned; changed Python syntax parsed
successfully - All 19 planning views rebuilt and freshness checked; all 17 manifest
hashes match canonical staged Git bytes - Planning links remain 159746 bytes; main's existing metadata is
preserved with the selected retry scope link - Staged whitespace checks passed
- No local unit tests, vendor oracle or native CAD process run
Fresh exact-head PR CI and configured approval remain required. Complete
acceptance remains a merge-queue gate. Historical process/native
measurements retain their original source pins and do not establish
combined-revision native acceptance, a throughput improvement, portable
semantics or production conversion support.
Contributions are provided under the MIT License.
Current revision and repair evidence
Current repair head b9427bd0b75930e688a8f2f2d0b860a273d1a2e5, base
3dda0a44c5cda9dd731fa678c80cfecea1d98c85, synthetic PR merge
4f5ae498f118b15927add8ab3bd16e0ceed74db2. The closure metadata head
f93145bd3099eeb0b96c18eebc3fe0596347c6db preserved source code from
6ce8b2a6d54edd7c10a788933709da852d2a7028, which passed 52 applicable
PR checks with 34 conditional skips and received a 5/5 no-findings
scoped assessment; draft status prevented actual approval on that
revision. This PR is now ready for review, with fresh exact-head checks
and actual approval requested.
The scoped follow-ups repair four C# findings and the configured
retained-open cleanup P2. Failed opens now close their exact owned
document directly, verify path absence and restored document count, then
remove the closed roster entry. Successful retention remains intact.
C#5-compatible typed cleanup handlers preserve known operational errors
and the evidenced PowerShell wrapper; unrelated runtime failures
propagate. Scanner rules and every gate remain enabled.
The actual Windows PowerShell/full-C# compiler and failure receipt
process passed: 1 case in 1.54 seconds. The final concurrent telemetry
process proof passed with eight writers, 640 records and confirmed owned
exits in 14.23055 seconds. It preserved file locking, truncated-tail
refusal, primary/log aggregates and cleanup aggregates. No unit tests or
native CAD process ran. This callback/process evidence does not
establish retained-native document cleanup acceptance.
- Retention can defeat failed-open
cleanup - PowerShell cleanup compiler
boundary - Fixed components still trigger Combine
query
Per-PR source inclusion audit
Original source ranges are pinned in SourceUnion.json. Each was applied
independently onto accepted main. Original additions that differ in
overlapping files are accounted for by the selected later feature
evolution or the explicit CI/review repairs. All 55 effective source
hashes and 17 planning source hashes match committed Git bytes.
Generated views are rebuilt; historical native receipts retain their
original source pins.
| Original | Included feature and final path | Replacement state |
|---|---|---|
| #474 | Retained groups and fresh verification in CatalogueDesktop, |
|
RunRetainedBatch, and the final recovery scheduler |
Source included; | |
| original closed as superseded | ||
| #475 | DesktopGroup.run, source/baseline pins, archived failed |
|
| outputs, three-attempt bounds, unaffected successful groups | Source | |
| included; original closed as superseded | ||
| #478 | Cached process identity, FinishConfiguredStages, |
|
| failed-stage/primary and secondary receipt diagnostics | Source | |
| included; original closed as superseded | ||
| #479 | CatalogueCapacity phase intents, verifier opportunities, |
|
retry restoration, final-chain phase_cancel |
Source included; | |
| original closed as superseded | ||
| #480 | CatalogueCommitCapacity derives from phase capacity; opt-in |
|
| margin, bootstrap/reserve guards and owned process limits remain | ||
| Source included; original closed as superseded | ||
| #483 | Worker forwards Checkpoints; RunDesktopPhases filters |
|
| revalidated seals and seals completed/exhausted groups before final | ||
| cleanup | Source included; original closed as superseded | |
| #487 | Worker forwards WaitCheck; CatalogueOracle checks |
|
| ownership/source/pause/deadlines; pending capacity plans after admission | ||
| Source included; original closed as superseded | ||
| #488 | Retry backoff and telemetry additions remain; original source | |
| additions are present; main metadata retained with retry scope link | ||
| Source included; original closed as superseded | ||
| #489 | Primary build/unit failure preservation and separate document | |
| cleanup diagnostics; typed cleanup compatibility repair recorded | ||
| Source included; original closed as superseded | ||
| #490 | Serialized complete open records, failure propagation and | |
| cleanup aggregates; forced failed-open close fixes retained interaction | ||
| Source included; original closed as superseded |
Unselected #484/#485/#486 and the separate builder stack remain outside
this replacement. Closing a superseded PR does not mark its unresolved
native or conversion acceptance requirements complete. Fresh
current-head CI and actual configured approval remain required; complete
candidate acceptance stays a merge-queue gate.
Original PR closure readback
The user-authorized supersession closures completed on 2026-12-05 for
#474, #475, #478, #479, #480, #483, #487, #488, #489 and #490. Every
closure comment links this replacement and its audited source head.
GitHub readback confirms all ten are closed without merge and their
branches still exist at their original source SHAs. Exact closure times,
branch identities and per-feature overlap assessments are retained in
SourceUnion.json. Worktrees and original evidence remain intact. #484,
#485 and #486 remain open outside this replacement.
Included change entries and gotchas
SolidWorksBuildFailurePreservation
SolidWorksFailureDiagnostics
CatalogueMemoryReserve
CatalogueOracleWait
CatalogueDesktopBatching
CatalogueGroupRecovery
CatalogueGroupCheckpoints
CatalogueLifecycleUnion
CatalogueLearnedCommitExperiment
CatalogueOpenAttemptTelemetry
CatalogueReadyPhaseCoordination
CatalogueRetryBackoff
DeclaredQueryPackCanDifferFromExecuted
FixedPathComponentsStillTriggerCombine
IncompleteSpdxNotice
PlanningBudgetFirstTask
PlanningLinksReviewSize
SolidWorksFailureCleanupMasksNativeException
OracleWaitSessionDeadline
FormattingInvalidatesSourceHashes
DocumentCleanupMasksBuildFailure
FrameworkAggregateMessages
RetentionCanDefeatFailedOpenCleanup
PowerShellCleanupCompilerBoundary
PowerShellComInterfaceParameters
RetainedControlOpenWarnings
CatalogueDoesNotUseDesktopTrialScheduler
CatalogueGroupCrashReplays
CatalogueOutputPathBudget
CatalogueRetryTelemetry
ConcurrentOpenAttemptAppend
DesktopCaptureWorkerMemoryCap
LearnedCommitBelowBootstrap
OwnedRegistrationTimeoutNeedsGroupRetry
RetainedLockSidecars
SparseCatalogueImports
TelemetryFailureCancelsDocumentReturn
VerifierGroupsNeedCommitHeadroom
VerifierRetryNeedsFreshIntent
WindowsJobCompletionPort
Triple-failure follow-up
The ready-state review identified one advisory diagnostic edge case. The
combined open/cleanup aggregate now becomes the outer operationFailure
before it is thrown, so telemetry failure retains both earlier causes.
The actual complete-source compilation and concurrent telemetry process
proof passed with eight writers and 640 records in 15.2768711 seconds,
including the combined open, cleanup and logging failure and no repeated
cleanup. Native CAD was not launched. Failure-state
gotcha.
The advisory thread is resolved, and fresh exact-head CI and actual
configured approval are requested. All original supersession closures
and retained branch identities remain unchanged.