Skip to content

Concurrent edits & data consistency

This guide explains how Tessule behaves when more than one person — or a person and an import / integration — changes the same data at once. It is written for workspace members and admins.

If you only remember one thing:

By default, the last successful save wins on a given field — like a shared spreadsheet. Clients that care (record detail, careful API/AI integrations) can ask the server to reject a save if someone else changed the record first.


This product is a step up from shared Excel: real uniqueness and booking-style “no overlap” rules, permissions, and an audit trail of who called the API.

It is not a banking ledger. We do not promise immutable journals, cryptographic proof chains, or automatic merging of every conflicting edit.


  • Each cell save updates only that field.
  • If you and a colleague edit different fields, both changes usually keep.
  • If you both edit the same field, whichever save finishes last is what stays. The grid may flash when someone else’s change arrives.
  • This is intentional spreadsheet-style collaboration.
  • When you open a record, the app remembers when it was last updated.
  • On Save, it tells the server “only accept this if the record is still at that version.”
  • If a colleague (or an import / AI agent) saved first, you get an error that the record changed — your save is not applied. Reload, check their changes, then edit again.
  • Ordinary PUT / PATCH without a version check behave like last-write-wins.
  • Send optional expectedUpdatedAt (the updatedAt you last read) to get the same protection as the detail page. If the record moved on, the API returns 409 with code STALE_RECORD and changes nothing.
  • MCP update_record accepts the same idea as expected_updated_at.

When you import into an existing table you choose duplicate handling:

Mode Behaviour
append (default) Every row tries to insert. If a unique field collides, that row errors.
skip Rows that match an existing record on your match field are counted and not written.
update A single match overwrites the mapped columns on that record (unmapped columns keep their values). No match → insert. Ambiguous matches error.

Important limits:

  • Import does not use the “expected version” check. An import update can overwrite fields someone edited in the UI while the job ran — last writer wins on those mapped fields.
  • By default the job commits in batches. If a later batch fails or you cancel, earlier batches stay. Choose atomic (within the size limit) if you need all rows or none for that load.
  • Invalid rows can be skipped (skipInvalid) so the rest of the file still loads; the job result lists row errors.

Prefer pausing heavy UI editing on a table while a large update import runs, or use skip when you only want to add new rows.


Situation What you see
Unique value already taken Validation error (HTTP 400) naming the field / rule
Booking / range would overlap Validation error (HTTP 400) for the no-overlap rule
Two references point at records under different parents Validation error (HTTP 400) for the same-parent rule
A booking would take a resource past its capacity Validation error (HTTP 400) naming the capacity rule, the resource and the dates
Detail/API save with stale version HTTP 409, code STALE_RECORD — reload and retry
Record deleted (or outside your access) since you loaded it HTTP 404
Not allowed after a role/permission change HTTP 403 (or 404 when the record is hidden from you)

Constraint checks are enforced for the UI, REST API, imports, and MCP — the same rules everywhere.


A no-overlap rule allows one booking at a time. A capacity rule allows a number: at every instant from now on, the total weight of the rows that share a resource must not exceed its limit. Declare it from a table’s constraints panel (kind Capacity), in a schema plan, or through POST /tables/{tableId}/constraints.

A capacity rule names:

  • The resource (the scope): up to three fields that say what is being filled, such as a van, or a room and a site.
  • The range: a start and an end field, both dates or both date-times.
  • The limit, in one of two forms. A fixed limit is a number greater than 0, such as 3 jobs per van. A limit from the resource reads a number field on the record the resource field points at, such as a room’s seats, so each room carries its own limit. An empty limit on the resource means no limit, and a limit of 0 (allowed only in this form) means nothing can be booked.
  • The weight (optional): a number field saying how much of the limit a row uses, such as a booking’s attendees. Without one, or when it is empty, each row uses 1. A negative weight is refused.
  • The condition (optional): only the rows it selects use capacity. A condition such as status != "cancelled" frees the place when a booking is cancelled, and re-checks it if the booking is reinstated.

A write that would overfill a resource is refused with a validation error (HTTP 400) in the record form, the grid, the calendar, imports, the REST API and MCP. Two people booking the last place at the same moment cannot both succeed. When the limit comes from the resource, lowering it is refused if bookings from now on need more than the new limit.

The rule governs the present and the future; earlier periods are history. For date-time ranges, everything from the current instant on is checked. For date-only ranges, everything from yesterday on is checked, so no time zone sees its own current day treated as past. A booking that started earlier is checked only for the part from that point on. As a result, lowering a limit is blocked only by bookings that still count, correcting a past booking is never refused, and a rule can be added to a table whose past was fuller than its current limit.

To see how full a resource is before booking it, read its occupancy:

GET /tables/{tableId}/constraints/{constraintId}/occupancy?from=2026-01-05&to=2026-01-12

The response lists, for each resource, its limit, its peak load and the stretches of constant load inside the window (at most 366 days). Add resource to read one resource. The read applies the caller’s record permissions: when row access is restricted the response is marked partial, and the limit is omitted when the caller cannot read it. Open the record page of a resource to see the next 28 days as bars of load against its limit.

Use a no-overlap rule instead when a resource holds exactly one booking at a time.


  • HTTP audit log (Workspace settings → audit, for roles that can view it): who called which mutating API, when, with a redacted request body. This always runs for /api mutations.
  • Application events: record updates can include a before and after snapshot (ItemUpdated), which is enough to see who overwrote which fields.

The audit trail answers “who submitted this change.” It does not by itself stop two people from saving in quick succession unless the client used expectedUpdatedAt.

Schema changes applied via a schema plan are all-or-nothing: if apply fails, nothing from that plan is left half-applied.


  • Default collaboration model is last-write-wins, not conflict-free replicated data types (CRDTs).
  • Imports that update matched rows will overwrite mapped fields without a per-field conflict dialog.
  • We are not a payments or general ledger system; do not treat record history as court-grade financial evidence without your own process around exports and retention settings.

For how permissions interact with “who can still save,” see Authorization & Permissions.

Open the app