Skip to content

Reclaim abandoned workspace patch staging artifacts durably #713

Description

@flyingrobots

A process exit after staging and before rename can retain the deterministic sibling staging artifact introduced by #711.

The existing reconciler must remain read-only and effect-free; deleting during reconciliation would create an unrecorded mutation. Add a separately requested, durably admitted cleanup operation or equivalent scheduler-owned effect whose exact target is derived from the settled attempt ID and whose outcome is durably settled before resumption.

Acceptance:

  • no directory sweep or ambient path authority;
  • request-before-cleanup and settlement-before-resumption;
  • exact attempt-derived staging aperture;
  • recovery and idempotent reconciliation;
  • replay does not repeat cleanup;
  • crash-boundary tests cover the retained staging artifact.

Follow-up from CodeRabbit thread PRRT_kwDOQH8Wr86VD_gm on #712. Not a blocker for #711 because the requested mutation does not belong in the read-only reconciler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bad-codeKnown code smell or defect filed for laterenhancementNew feature or requestfeatureFeature umbrella (epic)legend:testMethod legend test.roadmap-aRoadmap A: standalone Hello Echo deliveryroadmap-a1Roadmap A.1: bounded Hello external effectsruntimeRuntime corespecSpec/Design documenttoolingTooling/CI/CLItype:enhancementMethod work type enhancement.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions