Commit dfde23a
committed
fix: check kept_artifact in run_vendor_gc to prevent orphan sweep
When run_vendor_gc receives a drift-skip keep (kept_artifact: true) from
dispatch_revert_one, it must keep the ledger entry instead of pruning it.
Otherwise the trailing orphan sweep deletes artifacts the backend deliberately
retained, recreating residual #131 via scan --prune.
This fix adds the kept_artifact check to both section (a) manifest-dropped
and section (b) lockfile-unused paths, matching the contract already wired
into reconcile_dropped and run_revert.1 parent 7a2013f commit dfde23a
1 file changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1568 | 1568 | | |
1569 | 1569 | | |
1570 | 1570 | | |
1571 | | - | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
1575 | 1578 | | |
1576 | 1579 | | |
1577 | 1580 | | |
| |||
1601 | 1604 | | |
1602 | 1605 | | |
1603 | 1606 | | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
1607 | | - | |
| 1607 | + | |
| 1608 | + | |
1608 | 1609 | | |
1609 | 1610 | | |
1610 | 1611 | | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
1611 | 1617 | | |
1612 | 1618 | | |
1613 | 1619 | | |
| |||
0 commit comments