docs(intent): reissuing automatically with sourceStatusOnRetire - #211
Merged
Conversation
Superseding a retired target frees the source's slot, but a source flipped by the sourceStatus completion hook can never re-qualify on its own - so an event-only create-from stopped being event-driven after its first document. sourceStatusOnRetire is the hook's inverse: retiring the target returns the source, the ordinary trigger re-fires, and the replacement is minted. Documents the key, the state-based idempotence, the parse-time refusals, the lifecycle edge it needs, and the generated listener - plus the pointer from the existing sourceStatus bullet. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
A retirement is delivered at-least-once, so it can arrive again after the replacement already exists - and by then the source is standing at sourceStatus once more, because the reissue put it there. The standing-status test alone would re-open a source with a live target against it. The reopen now runs exactly when a creation would be allowed through. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
A create-from triggered only by a button carries no at-most-once guard, so nothing blocks a replacement - the button is itself the reissue, and there is no trigger for a reopen to re-fire. Co-Authored-By: Claude Opus 5 <noreply@anthropic.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.
Documents the new
sourceStatusOnRetire:key indocs/help/intent/dsl-reference.md, next to Superseding a retired target.Superseding frees the source's slot. Where the rule also declares a
sourceStatus:completion hook, nothing could refill it — and that is the one combination where an event-driven create-from stops being event-driven after its first document: the hook moves the source off the status its own trigger qualifies on, the lifecycle graph declares no edge back, so the source never re-qualifies and no qualifying event is published again.sourceStatusOnRetire:is the hook's inverse, so the reissue is the ordinary path — the retirement returns the source, the trigger re-fires, the guard steps over the retired document, and the replacement is minted.Covers the key, the state-based idempotence (no marker column), that immediacy is the trigger's decision rather than the reopen's, every parse-time refusal, the lifecycle edge it needs, and the generated listener. Also adds the pointer from the existing
sourceStatus:bullet, since that bullet's "composes unchanged" was the sentence that hid the gap.Platform PR: eclipse-dirigible/dirigible#6893. Spec proposal: IntentFile/intent-specification#48.