This commit is contained in:
Brent Larsen
2026-10-26 22:21:04 -05:00
parent 9b848cefcf
commit ffc1003f2d
9 changed files with 574 additions and 16 deletions
+12
View File
@@ -93,3 +93,15 @@ The clarified strategy is:
- an accepted result that should no longer be evergreen is exported/ejected and becomes ordinary input to another project, intentionally severing the live dependency edge.
This was a documentation clarification rather than a runtime change.
## 2026-10-20 — catalog-wide explicit artifact vacuum
The project-specific storage cleanup prototype was generalized into Optimus:
`--vacuum` verifies the present pull graph of **all** configured targets,
records an exact per-file checksummed plan in side-effects, and never rebuilds;
`--vacuum --apply` repeats the entire inspection and inventories before
removing unvisited files. Project-specific freshness still belongs to owning
transformers. An inspection-only hook makes custom results fail closed without
changing their normal build behavior. Nothing is vacuumed implicitly during
`npx optimus` or targeted builds, and the maintenance run does not create a
permanent declarative dependency graph.
+16
View File
@@ -103,3 +103,19 @@ Do not introduce lifecycle restrictions, lazy-loading machinery, or async conven
## Blocking flow is intentional
The project family intentionally targets synchronous, blocking batch execution. Promise-aware behavior that exists today supports legacy callers pending a separate unwind; it is not the desired public programming model. Do not add concurrency or Promise-driven orchestration as an optimization.
## Catalog-wide cleanup is explicit and pull-derived
Optimus may reconstruct the live graph from every current named target in
`settings/artifacts.json` for maintenance (`--vacuum`). This temporary graph
is not a replacement for normal pull execution and is not persisted as a
second dependency graph. Any meaningful artifact reached through the current
pull graph remains in the warehouse regardless of its regeneration cost.
Vacuum verification is read-only. If any current target is stale, requires a
build, or cannot be inspected, vacuuming aborts. Custom transformers must
expose the result of their own freshness check through the Optimus inspection
hook before invoking nondeterministic work. Diagnostic reporting is not
semantic evidence of reachability. The dry-run plan belongs in disposable
side-effects; apply independently recomputes and validates the plan before
removal. This is an opt-in maintenance operation, never automatic deletion.