Skip to content

Schedule updates: permit non-trigger edits after a one-shot fires #2146

Open

Description

@kantord

Outcome

An existing one-shot schedule can update fields that are otherwise mutable even after its stored firing instant has passed, without changing or re-arming its trigger.

Context

Studio keeps an existing trigger immutable and resends the stored one during update. The schedule manager nevertheless applies create-time validation to the unchanged one-shot instant, rejecting prompt, permission-mode, write-posture, and other non-trigger edits once that instant is in the past.

This makes valid mutable fields effectively immutable after the firing time and prevents #1852's edit dialog from accurately representing backend behavior.

Scope

  • Distinguish an unchanged stored trigger from a requested trigger change.
  • Permit valid non-trigger updates without requiring a past one-shot to become future-dated.
  • Preserve completion, enabled state, retry counters, next-fire state, placement, ownership, and fire history.
  • Do not implicitly re-arm a completed one-shot.
  • Add manager-level and Studio/BFF integration coverage.

Acceptance

  • Updating prompt or permission posture on a past one-shot succeeds when all changed fields are otherwise valid.
  • Trigger changes remain rejected through the Studio contract.
  • A successful update does not re-run or re-arm completed work.

Parent: #1736
Discovered while designing: #1852

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions