Authoritative data and states
What is the effect of the permission withdrawal before or after the acceptance of the change?
The interfaces require an authoritative state. All replicas with the same accepted set of changes show the same text. A change shall be effective at most once. Write permission is checked for server-side acceptance; offline creation does not guarantee later acceptance. The following table separates current states from the evidence of their formation.
Starting point Compare identity and canonical payload.
Assumptions for the example case
Our own fictitious example design: A text document with a character sequence and comments; several devices per person; deterministic merging; server-side checked permissions during synchronization. Figures and quality goals are illustrative test assumptions. Outside are table formulas, encrypted end-to-end cooperation and automatic content conflict resolution.
Data relationships and permitted transitions
Replicates, operations and causal change inventory
Text is built from accepted operations; snapshots compact a known revision watermark without replacing permission checks.
Entities and relationships
| Entity | Authoritative data | Responsibility |
|---|---|---|
| Document D-91 | Confirmed set of changes, rights version | Leading accepted content. |
| Devices G-91 and G-92 | Local changes, last confirmed status | Offline version remains distinguishable from server confirmation. |
| Changes O-91 and O-92 | Device, counter, parent reference, content | Stable identity and deterministic order. |
| Permission grant | Person, document, role, current version | Is considered when new changes are adopted. |
| Snapshot | Text and full change state | Accelerates loading; it does not replace pending device changes. |
Document D-91
- Authoritative data
- Confirmed set of changes, rights version
- Responsibility
- Leading accepted content.
Devices G-91 and G-92
- Authoritative data
- Local changes, last confirmed status
- Responsibility
- Offline version remains distinguishable from server confirmation.
Changes O-91 and O-92
- Authoritative data
- Device, counter, parent reference, content
- Responsibility
- Stable identity and deterministic order.
Permission grant
- Authoritative data
- Person, document, role, current version
- Responsibility
- Is considered when new changes are adopted.
Snapshot
- Authoritative data
- Text and full change state
- Responsibility
- Accelerates loading; it does not replace pending device changes.
Permitted state transitions
| Starting point | Target | Condition |
|---|---|---|
| Local | Pending | Change permanently stored in the device. |
| Pending | bestätigt | Server checks right and accepts change. |
| Pending | Rejected | Right withdrawn or content invalid; local copy remains exportable. |
| bestätigt | Merged | All required dependent changes are present. |
| Merged | archiviert | The snapshot contains the documented revision. |
| Rejected | terminal | New acceptance needs new legitimate intent; old change is not quietly accepted. |
Local
- Target
- Pending
- Condition
- Change permanently stored in the device.
Pending
- Target
- bestätigt
- Condition
- Server checks right and accepts change.
Pending
- Target
- Rejected
- Condition
- Right withdrawn or content invalid; local copy remains exportable.
bestätigt
- Target
- Merged
- Condition
- All required dependent changes are present.
Merged
- Target
- archiviert
- Condition
- The snapshot contains the documented revision.
Rejected
- Target
- terminal
- Condition
- New acceptance needs new legitimate intent; old change is not quietly accepted.
Check permissions at acceptance
Check current permissions when the server commits.
Write permission ends during offline work.
Subsequently submitted changes may be rejected.
- Alternative considered
- The old offline permission grant would bypass withdrawal indefinitely.
- Trade-off
- Local work can remain outside the document.
- Reassess
- An explicit offline contract is agreed.
Terms in this step
- Check permissions at acceptance
- Subsequently submitted changes may be rejected.
Try it yourself
A write permission is withdrawn before or after server acceptance. Determine both outcomes.
A hint for your attempt
Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.
Compare with a possible solution
- First part of the solution
- Withdrawal first: new change is rejected and remains locally exportable.
- Second part of the solution
- Acceptance first: the change remains historically confirmed. Subsequent permission withdrawal does not remove it retroactively.
Apply to your project
Which corresponding assumption in your project would you check first? Use as an occasion: An explicit offline contract is agreed.