Bound package-only upgrade rebuilds and prepare 0.41.44 #506
No reviewers
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index!506
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/bounded-package-upgrade-recovery"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A package-only upgrade can re-extract an entire mixed-language project because startup cannot recover the previous activation after container bytes move. Retain metadata from the existing verified approval reads, select the recorded generation's exact containers, and accept the old activation only when package membership, extraction identity, recorded grants and the full activation digest match. The dirty-domain planner then reparses affected files and carries the rest.
Missing old bytes/provenance, withdrawn approvals, removed packages, contradictory extraction identity, or unproven configuration/host/grant changes retain the full rebuild. Recovery never stages, compiles or executes old package code. Reuse the existing generation reader and grant projection; no schema or ABI expansion.
Validation: the regression failed before the fix. Real signed-worker mixed Rust/Python/TypeScript tests cover Rust-only and Python-only extractor upgrades, updated facts, unchanged carried contributions, a zero-reparse second pass, and nine conservative fallback cases. The activation/discovery/ownership suites pass47 tests; C# readiness, C#/XAML bridges and Timeline pass33. Indexer all-target Clippy and CLI test-target Clippy pass with warnings denied. Registry, version-site and release contracts pass locally.
A separate public CLI drill uses official signed Svelte0.2.3→0.2.4, retains legitimate approvals, and restores the preceding database to simulate interrupted adoption. Published core0.41.43 reinserts Svelte, C# and Python symbols; the patched binary reinserts only Svelte. The identical check will run against published0.41.44 before #410 closes.
Align all release version sites for0.41.44, preserving external dependency pins. Update the retained-approval log test to require the INFO shadow count and reject the verbose superseded event at INFO; a DEBUG→WARN mutation fails this assertion. #313 remains open; no extension-method resolver prototype is included.