RFC 010: Add run.cancelled to RunLifecycleEvent.eventType enum - #16
Open
brettin wants to merge 1 commit into
Open
RFC 010: Add run.cancelled to RunLifecycleEvent.eventType enum#16brettin wants to merge 1 commit into
brettin wants to merge 1 commit into
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds RFC 010, which requests an additive enum patch: add
run.cancelledtoRunLifecycleEvent.eventTypeso a Run transitioning tocancelledis recorded as a first-class lifecycle event (matching the already-permittedcancelledstatus on Run / lifecycle payload). Disposition: Ship.RFC document
Full text of
contracts/rfcs/010-run-cancelled-enum.md(also in this PR's Files tab):run.submitted | run.started | run.target_failed |
run.retry | run.completed | run.failed
Semantics
queued | runningtocancelled.distinct from
run.failed(terminal error) andrun.completed(terminalsuccess).
payload.statusMUST be"cancelled".payload.failureClassMUST beF0_NONE— cancellation is not a failure.(Implementations that want to distinguish "cancelled because upstream failed"
emit
run.failedwith the appropriatefailureClassinstead.)payloadfields keep their existing semantics:runIdandcapabilityIdrequired;targetOutcomesoptional.No new schema file; this is an additive enum patch. Existing consumers will see a
new
eventTypevalue they may want to handle; no existing event shape changes.Relationship to RFC 003
RFC 003 targets the
Run.statusenum vocabulary(spec vs platform); this RFC targets the
RunLifecycleEvent.eventTypeenum.Both can land independently — RFC 003 reconciles status names, this RFC adds the
matching lifecycle event for the already-permitted
cancelledstatus. If RFC003 lands first and renames
cancelledto a platform-aligned spelling, thisRFC's enum value should follow.
Deferred (out of scope for this RFC)
payload.cancelledBy(principal id) or
payload.cancellationReason(free text) field would beuseful but introduces shape questions beyond this enum-only patch.
cancelRunoperation semantics. The lifecycle event records thatcancellation happened; what HTTP shape
cancelRuntakes (synchronous vs.202 + poll, hard vs. cooperative) is separately specified by the operation
contract.
(interaction with
pauseRun/resumeRun/listRunCheckpoints). Thedurable-execution surface is its own RFC.
Platform reference
ARIAPlatform
platform-v0-implementation-profile.json—
RunStatus,RunLifecycleEvent. ARIAPlatform v0 surfaces acancelledRunstatus today; this RFC adds the matching lifecycle event so the transition is
auditable through the normal
listEventsfilter.