Skip to content

The envelope

What every bus message carries about itself. This is its data dictionary today: one entry for every field of its messages a plugin meets, saying what the field is for, what a value means and does not mean, what empty means, who fills it, its bounds and the operations a write must carry it on. Each entry is anchored by its name, the name a refusal's path resolves to and a declaration names, which never changes.

Its messages are declared in meridian/v1/bus.proto, meridian/v1/envelope.proto. A field's entry is the same whatever carries it: a typed operation's parameters take the entries of the message they are made from.

Records

The messages this store keeps and answers.

Record What it is
Envelope the frame one bus message travels in: its metadata, its type and its bytes
MessageMeta what every bus message carries about itself, to route, correlate and audit it

Envelope

meridian.v1.Envelope, a record.

meta

message MessageMeta · stable

Carries what the message says about itself.

  • Means: its identifiers, topic, publisher, time and the person and scope the sidecar stamped
  • Does not mean: the payload
  • Empty: never unset
  • Filled: stamped, by sidecar

payload_type

text · stable

Names the payload's message.

  • Means: its full name, which a subscriber checks before decoding rather than guessing from the topic
  • Does not mean: the topic
  • Empty: never empty
  • Filled: stamped, by sidecar

payload

bytes · stable

Carries the message itself.

  • Means: the payload message, serialised
  • Does not mean: a oneof over every message: the bus carries any payload without being compiled against it
  • Empty: empty for a message with no field set
  • Filled: stamped, by sidecar

MessageMeta

meridian.v1.MessageMeta, a record.

message_id

identifier message · stable

Identifies the message.

  • Means: unique per message: the idempotency key a handler that has seen it may drop the message by
  • Does not mean: a business identifier on the payload
  • Empty: never empty
  • Filled: stamped, by sidecar

correlation_id

identifier message · stable

Ties together every message one originating action caused.

  • Means: constant across them, so a person can follow a sync all the way to a position update
  • Does not mean: the message that caused this one, which causation_id names
  • Empty: empty where the publisher began nothing to correlate
  • Filled: stamped, by sidecar

causation_id

identifier message · stable

Names the message that caused this one.

  • Means: its message_id: correlation gives the set, causation the shape of the tree inside it
  • Does not mean: the originating action
  • Empty: empty for a message nothing on the bus caused
  • Filled: stamped, by sidecar

publisher_instance_id

identifier instance · stable

Names the instance that published the message.

  • Means: provenance, and the reply address for a request
  • Does not mean: the person it was sent for
  • Empty: never empty
  • Filled: stamped, by sidecar

topic

text · stable

Names the topic the message was published on.

  • Means: kept so a message stays interpretable once captured away from its subscription
  • Does not mean: the payload's type
  • Empty: never empty
  • Filled: stamped, by sidecar

schema_version

text · stable

Says which contract version the publisher was built against.

  • Means: v and a number, as the publisher declared it
  • Does not mean: the payload's own version
  • Empty: empty where the publisher did not say
  • Filled: stamped, by sidecar

published_at_ns

moment · stable

Records when the message was published.

  • Means: the publisher's wall clock at publish: observation time
  • Does not mean: when something happened in the world, which only the payload can say
  • Empty: never 0
  • Filled: stamped, by sidecar
  • Unit: nanoseconds since the epoch, UTC

acting_for_subject

text · stable

Names the person, or from v21 the service account, a command was sent for.

  • Means: the deployment-local subject the sidecar verified (W4.9), so the store records who made the change; acting_for_kind says which kind of user
  • Does not mean: anything a plugin supplies: stamped by the sidecar alone (decisions/014)
  • Empty: empty when the plugin acted as itself
  • Filled: stamped, by sidecar

acting_through_delegation

text · stable

Names the delegation the person acted through.

  • Means: the delegation the assertion named (W4.9, decisions/029), set beside acting_for_subject
  • Does not mean: the actor, who stays the person
  • Empty: empty for a person at the dashboard, and for a plugin acting as itself
  • Filled: stamped, by sidecar

acting_through_client

text · stable

Names the client the person acted through.

  • Means: the client's registered name as the assertion named it, so a store records the person through that client without a second read
  • Does not mean: a person or a plugin instance
  • Empty: empty where acting_through_delegation is
  • Filled: stamped, by sidecar

account_scope

repeated identifier account · stable

Carries the accounts the publishing plugin may read, on a read; from v22 the accounts it may write, on a command naming a record by its ID alone.

  • Means: a core store answers only for these; on a command naming an order, a placement, a change request or a locate by its ID alone (W4.9, W11), the sending instance's write scope narrowed to the person's write access where it acts for one, and the book refuses, changing nothing, a command whose record's account is outside it (PERMISSION_DENIED, no reason code)
  • Does not mean: the accounts the person may read
  • Empty: empty is nothing when account_scope_applies; unread otherwise
  • Filled: stamped, by sidecar

account_scope_applies

boolean · stable

Says the account scope applies, so an empty one is nothing.

  • Means: set by the sidecar on every query it sends for a plugin (W4.11), and from v22 on every command naming a record by its ID alone; a store answers a query whose scope is empty with nothing, and refuses one naming an account outside it
  • Does not mean: anything a core component sets
  • Empty: false on a core component's read, which no scope cuts
  • Filled: stamped, by sidecar

prepared_call_id

text · preview

Names the prepared change a command for a person was made from.

  • Means: the PC- ID the assertion named (W4.9, W6.27), set beside acting_for_subject and any delegation, which the store keeps
  • Does not mean: the actor, who stays the person; or anything the plugin chose: it cannot set it
  • Empty: empty unless the person made the command from a prepared change, and for a plugin acting as itself
  • Filled: stamped, by sidecar

acting_for_kind

enum SubjectKind · preview

Says the kind of user a command was sent for.

  • Means: the claims' subject_kind, stamped beside acting_for_subject (W4.9), so a store records a service account, never a person
  • Does not mean: anything a plugin supplies: stamped by the sidecar alone
  • Empty: unspecified: a person acted, or the plugin acted as itself
  • Filled: stamped, by sidecar
Value Means
SUBJECT_KIND_UNSPECIFIED a person, or nobody where acting_for_subject is empty
SUBJECT_KIND_SERVICE_ACCOUNT a service account: acting_for_subject is its SA- subject

owner_subject

text · preview

Names the person answerable for the service account a command was sent for.

  • Means: the claims' owner_subject, stamped beside acting_for_subject, which the store keeps on the actor
  • Does not mean: who acted, which is the service account
  • Empty: empty unless acting_for_kind is a service account
  • Filled: stamped, by sidecar

connectivity_allowed

boolean · preview

Carries the sending ems sidecar's verdict on a placement's connectivity link.

  • Means: true when the placement's connectivity plugin is linked to the stamped ems instance, its link not withdrawn, and the acting user — person, service account or a user group they are in — among the link's users: the placement's connectivity instance is in the caller's CallerClaims.connectivity_instance_ids (W4.9, W11.8); the book refuses a placement stamped false with REFUSAL_REASON_CONNECTIVITY_NOT_ALLOWED and records the refusal
  • Does not mean: anything a plugin supplies, or a verdict read on any other command
  • Empty: false on every message but a CreatePlacement, where false is the sidecar's refusal of the link
  • Filled: stamped, by sidecar

algorithm_id

text · preview

Names the algorithm a service account's call named.

  • Means: the claims' algorithm_id, stamped beside owner_subject after the sidecar checked it against the version's algorithms; the book copies it to the entry's ServiceAccountActor
  • Does not mean: anything a plugin supplies: stamped by the sidecar alone
  • Empty: empty for a person, and where the call named none
  • Filled: stamped, by sidecar

connectivity_demo

boolean · preview

Carries the sending ems sidecar's verdict on whether the connection is demo (W4.9, W11.8).

  • Means: true when the placement's, or the reported fills', connectivity instance is in the caller's CallerClaims.demo_connectivity_instance_ids; the book refuses an agent's act stamped false while agent_orders_demo_only is on, REFUSAL_REASON_AGENT_LIVE_ORDER, recorded
  • Does not mean: anything a plugin supplies, or a verdict read on any other command
  • Empty: false on every message but a CreatePlacement or an AcceptExecution naming a new order, where false means the connection is not demo
  • Filled: stamped, by sidecar

on_behalf_of_instance_id

identifier instance · preview

Names the client instance the analytics component reads for (W12.2).

  • Means: the stores answer within that instance's dataset entitlements and role's kinds, beside the account scope carried in account_scope
  • Does not mean: anything a sidecar or a plugin sets: a store ignores it from anything but the analytics component
  • Empty: empty on every message but the analytics component's reads for a job
  • Filled: stamped, by analytics

read_after

message Watermark · preview

Names the watermark a read must not be answered behind (W4.4; approved by 1057).

  • Means: the highest watermark the plugin's sidecar has seen for that instance on the store's partitions, from its own acknowledged writes, the deliveries it passed on and the watermark each of its reads was answered at, stamped by the sidecar, never by the plugin (approved 2026-11-09 and 2026-11-10): session consistency, read-your-writes and monotonic reads for the instance; a member behind it waits up to its bound or the call's remaining deadline, whichever is sooner, then answers from the store's primary database; a writer still behind it refuses UNAVAILABLE; no member answers from behind it
  • Does not mean: a point in time to read as of, which as_of_ns and book_at name; a plugin-facing field; or a demand to read from the writer: a member at or past it answers
  • Empty: unset: the nearest member answers, eventually consistent, its watermark saying how current
  • Filled: stamped, by sidecar

shard

integer · preview

Names the shard of its instance whose pod sent the write (W8.3; approved 2026-11-15).

  • Means: the shard whose Lease the sending pod's sidecar holds, stamped by the sidecar on every message it sends for its plugin while it holds it, never by the plugin (decisions/014); a standby that took a shard stamps that shard
  • Does not mean: a writer group, a lake range, or a plugin-facing field
  • Empty: 0 on a write from an instance that runs one pod, which takes no Lease; then shard_epoch is 0 too
  • Filled: stamped, by sidecar
  • Unit: shards of the instance, numbered from 0

shard_epoch

integer · preview

States the shard's epoch the write was sent under, its fencing token (W8.3; approved 2026-11-15).

  • Means: the epoch the lake answered the sidecar's TakeShard with when it took the shard's Lease, stamped by the sidecar on every message it sends for its plugin, never by the plugin (decisions/014); each lake and book writer group's database checks it in the write's own transaction against the highest it holds for the shard (lake_shard_fence, book_shard_fence): lower is refused FAILED_PRECONDITION with REFUSAL_REASON_SHARD_FENCED, equal passes, higher raises it
  • Does not mean: a store partition's epoch (WriterTookOver.epoch), or the Lease's leaseTransitions, which is only its floor
  • Empty: 0 on a write from an instance that runs one pod: no fence checks it
  • Filled: stamped, by sidecar
  • Unit: epochs of the shard

Generated from boundaries/fields.json in meridian-schema at 9f396f9.