Skip to content

docs(intent): reissuing automatically with sourceStatusOnRetire - #211

Merged
delchev merged 3 commits into
masterfrom
docs/reopen-on-retire
Aug 21, 2026
Merged

docs(intent): reissuing automatically with sourceStatusOnRetire#211
delchev merged 3 commits into
masterfrom
docs/reopen-on-retire

Conversation

@delchev

@delchev delchev commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Documents the new sourceStatusOnRetire: key in docs/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.

delchev and others added 3 commits August 21, 2026 15:52
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant