ori cache subcommand family (D6)
Goal
ori cache info/gc/budget/clean each run and report the documented result, and clean refuses while an in-flight reference is held.
Implementation Sketch
Derived from compiler_repo/docs/ori_lang/proposals/approved/cache-lifecycle-proposal.md. Implement the work items below in order; each maps to a design bullet in the approved proposal.
Spec References
- Approved proposal:
compiler_repo/docs/ori_lang/proposals/approved/cache-lifecycle-proposal.md - Umbrella invariant T4:
compiler_repo/docs/ori_lang/proposals/approved/toolchain-philosophy-proposal.md
Work Items
-
ori cache info— location, total size, budget, per-class entry counts, reclaimable amount -
ori cache gc [--dry-run]— force collection;--dry-runreports without removing -
ori cache budget <size|unlimited>— set the budget; with no argument, report it -
ori cache clean— remove everything in the cache root, blocking unconditionally, refusing while any in-flight reference is held (--forceoverride)