Skip to content

Bounded shutdown grace and recovery when the stopped receipt is missing #264

Closed as not planned

Description

@HemSoft

Part of #176 (acceptance item 2) and #174, found by the offline audit.

Problem

If the host process is killed during a provider session before the stopped audit receipt is written, the job stays leased and the auth fenced, and RecoverStoppedProvider (#251) refuses because the receipt is required evidence. The controller then admits nothing further for that job. There is also no bounded shutdown grace that would let the guest return auth before Close stops the unit.

Acceptance criteria

  • Close waits a bounded, documented grace for an in-flight native session to return auth and write its stopped receipt before stopping the unit; the bound is tested and never extends indefinitely.
  • Needs an owner decision before implementation: whether a lease whose stopped receipt is missing may ever be recovered, and on what alternative evidence (for example a fresh whole-unit stop proof plus retiring the auth unconditionally). Until decided, that case stays fenced as today.

Validation

go -C reviewer test -race ./...; an E2E case killing the host process mid-session (once the decision is recorded).

Activity

  1. added
    enhancementNew feature or request
    agent:human-requiredFix exceeds safe automation boundary — human must own this
    source:manualManually created by developer
    on Oct 24, 2026
  2. HemSoft commented on Oct 24, 2026

    @HemSoft
    CollaboratorAuthor

    The bounded shutdown grace and the session budget rule merged in #272 (6a0d717). Still open: recovering a lease whose stopped receipt is missing, which waits on the owner decision recorded above. Lost E2E coverage of the fenced branch is tracked in #271.

  3. HemSoft commented on Oct 28, 2026

    @HemSoft
    CollaboratorAuthor

    Park with its worker; no credential recovery or policy decision is implied. The native-review plan does not run the local worker.

    The parked work stops. Revival requires the original unresolved gates, as stated in the approved plan.

  4. added
    parkedWork parked pending its documented revival condition
    on Oct 28, 2026
  5. HemSoft commented on Oct 29, 2026

    @HemSoft
    CollaboratorAuthor

    Closed per Franz (2026-10-29 19:34 ET, set-it-free-loop post: 'Agreed'): SFL stays inside pmd (project-manager). The standalone alpha controller, adapters and publisher are not being built. Next SFL work is project-manager #75 (review status) and #76 (changes between rounds). Reopen if that direction changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:human-requiredFix exceeds safe automation boundary — human must own thisenhancementNew feature or requestparkedWork parked pending its documented revival conditionsource:manualManually created by developer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions