What Is New in 0.3
End a Surface explicitly while preserving action replay and protecting unfinished delivery.
After reading this guide, you will know:
- Close a finished view without repeating its business actions.
- Abandon pending follow-up explicitly.
- Upgrade persisted data before using lifecycle APIs.
- Preview and apply scoped cleanup while retaining replay guards.
End a View from the Host
RailsToolViews.close(surface.id, scope: scope,
retain_until: 30.days.from_now)
The lifecycle guide describes host policies, first-termination deadlines and readable closed state. New actions stop; exact committed requests keep their receipts. Use abandon only when the host intends to stop pending or failed follow-up.
Preserve Delivery Boundaries
Closure and delivery claims coordinate through the Surface lock. Provider callbacks remain outside transactions. An expired lease does not imply that a callback stopped; a durable uncertainty guard protects reclaimed or ambiguous old delivery histories from lifecycle cleanup.
Upgrade First
This release adds a migration and lifecycle snapshot fields. Stop old workers, install missing engine migrations and restart only the new runtime. See Upgrading for rollback limits.
Preview Retention Cleanup
The opt-in purge_closed API checks host authorization, exact scope, closing cutoff and the elapsed retention deadline. Preview is the default. Apply scrubs payloads and removes terminal receipt graphs atomically per view, while keeping correlation guards and business records. Read Surface Lifecycle before scheduling host maintenance.