The rule tying a plan change to its direction is written down and not enforced #136

Open
opened 2026-09-21 07:18:40 +00:00 by cgalo5758 · 0 comments
Owner

What a contributor runs into

The plan-transitions specification requires a check constraint binding each kind of change to the rank pattern it implies, so that an upgrade cannot be recorded for a move downwards. The migrations carry only the list of kinds and the occupancy constraint; the direction is derived inside the conferral function in the database instead.

Why it costs

The specification and the schema disagree, and a contributor cannot tell which one a reviewer will hold them to.

Where

openspec/specs/plan-transitions/spec.md; internal/db/migrations, the transitions table and the conferral functions.

Done when

Either the constraint exists, which can be added without validating the existing rows, or the specification accepts derivation inside the conferral function and says so in the same words.

Migrated from status/issues.md at b7a0e15

## What a contributor runs into The plan-transitions specification requires a check constraint binding each kind of change to the rank pattern it implies, so that an upgrade cannot be recorded for a move downwards. The migrations carry only the list of kinds and the occupancy constraint; the direction is derived inside the conferral function in the database instead. ## Why it costs The specification and the schema disagree, and a contributor cannot tell which one a reviewer will hold them to. ## Where [`openspec/specs/plan-transitions/spec.md`](https://git.coopcloud.tech/wiki-cafe/member-console/src/commit/b7a0e15/openspec/specs/plan-transitions/spec.md); [`internal/db/migrations`](https://git.coopcloud.tech/wiki-cafe/member-console/src/commit/b7a0e15/internal/db/migrations), the transitions table and the conferral functions. ## Done when Either the constraint exists, which can be added without validating the existing rows, or the specification accepts derivation inside the conferral function and says so in the same words. Migrated from status/issues.md at b7a0e15
cgalo5758 added the
kind
debt
area/entitlements
labels 2026-09-21 07:18:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wiki-cafe/member-console#136