Skip to content

spec: deleting a master and the composition children it owns - #49

Open
delchev wants to merge 1 commit into
mainfrom
site/composition-cascade-delete
Open

spec: deleting a master and the composition children it owns#49
delchev wants to merge 1 commit into
mainfrom
site/composition-cascade-delete

Conversation

@delchev

@delchev delchev commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Tracks proposal 0033 (IntentFile/intent-specification#66): whenMasterDeleted: cascade | refuse on a composition relation.

Composition is ownership, so a delete of the master cannot leave its children behind - an orphan is invisible in the UI (a detail is reached through its master's page) while every report, roll-up and aggregate over the child keeps counting it. cascade is the default whether or not the key is authored; refuse rejects the master's delete while children exist.

  • docs/spec/relations.md: new Deleting the master - whenMasterDeleted section under relations, with the normative block.
  • docs/reference.md: the DSL index row.

npx vitepress build docs clean. Left open per the proposal-first policy - merge once #66 is accepted.

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