Message types
The five wire namespaces, and every message in them.
Every message name says what kind of message it is. There are five kinds and nothing outside them — the full rule is in 03 §1.2. Each message links to the section that specifies it and, where one exists, to its JSON Schema, which wins wherever prose and schema disagree (schemas and vocabularies).
session.#
Establishing and maintaining the connection itself.
session.denied#
The engine refusing an admission or a request, with a registered code, a remedy, and what would fix it. The connection stays open where an update could fix the cause.
specified in 13 §2.1 · shape: denial.schema.json
{ "type": "session.denied",
"code": "firmware_below_minimum",
"remedy": "update_firmware",
"required_firmware": "4.2.0",
"advisory": "SGA-2027-004",
"retry_after_ms": 300000,
"detail": "shot injection via unauthenticated debug port" }session.describe#
A participant's capability descriptor: identity, roles, the fields it provides and wants, features and transports. The first message a participant sends, and the only one accepted before admission.
specified in 03 §2.1 · shape: capability-descriptor.schema.json
{ "type": "session.describe",
"identity": { "vendor": "acme", "model": "Fairway Pro" },
"roles": ["simulator"],
"own_vendor_only": ["sensor.ball"] }session.going_away#
The engine closing a connection on purpose, saying why and when to come back, so a planned restart is not treated as a crash.
specified in 09 §5.2 · shape: going-away.schema.json
{
"type": "session.going_away",
"reason": "update",
"reconnect_after_ms": 30000,
"resume": {
"session_id": "sga:session:01J9X4...",
"session_epoch": 3,
"journal_head": "sha256:7a3f...",
"standing_state_retained": true
},
"advisory": "Engine updating. Back in about 30 seconds."
}session.heartbeat#
Application-level liveness in both directions: a device's carries its own clock as device_t_ms, readiness and the manifest it holds; the engine's carries t_ms, the epoch and the manifest in force. SHOULD, not MUST.
specified in 09 §4 · shape: heartbeat.schema.json
{ "type": "session.heartbeat", "t_ms": 41230987, "session_epoch": 3, "manifest_version": 7 }session.hello#
The engine's opening message on every new connection: its session id and nonce, the session epoch, and the protocol version it speaks. A participant answers with session.describe.
specified in 03 §2.0
session.manifest#
The connection matrix the engine computes from every descriptor: who feeds whom for each field, what is unmet, who is excluded. Sent to every participant whenever it changes.
specified in 03 §2.2 · shape: session-manifest.schema.json
record.#
What happened, or what is the case.
record.attest#
A device's signature over one of its contributions, sent after the contribution so signing never delays a shot. Journaled, never routed.
specified in 02 §3a.1 · shape: attest.schema.json
{ "type": "record.attest", "shot_id": "sga:shot:01J9F3B0W8K2M6Q4T7XZ",
"counter": 47,
"attest": { "counter": 47, "key_id": "0A3F21", "sig": "<base64 signature>" } }record.course#
The course the round is played over, sent once: holes, par, stroke index and lengths from every set of markers. Scorecards reference it by digest.
specified in 06 §9.5 · shape: course.schema.json
record.scorecard#
A scorecard checkpoint composed by the simulator. Evidence independent of the shot stream; a final card ends the round.
specified in 06 §9 · shape: scorecard.schema.json
record.shot#
From a device, its contribution to one shot: the field it is about and the values it measured, in the shot record's namespaces (the schema linked here). From the engine, the record composed from every contribution, whose shape is shot-record.schema.json.
specified in 06 §10.4a · shape: shot-contribution.schema.json
{ "type": "record.shot", "field": "ball.speed_mps",
"shot_id": "sga:shot:01J9F3B0W8K2M6Q4T7XZ",
"ball": { "speed_mps": 64.8, "launch_angle_deg": 12.4,
"launch_direction_deg": -1.7, "spin_rpm": 2810 } }record.state#
A standing value asserted between shots (who is up, readiness, settings in force), or withdrawn with a null value.
specified in 03 §2.2a
{ "type": "record.state", "field": "club.club_id", "value": "7i",
"relayed_from": "h9Qe2LmX4tZb" }record.swing_detected#
The engine announcing that a shot context has opened on the first evidence of a swing, with the shot_id every contribution to it will carry.
specified in 06 §10.3
{
"type": "record.swing_detected",
"shot_id": "sga:shot:01J9X4...",
"t_ms": 842301,
"deadline_t_ms": 842481,
"window_ms": 180,
"pending": ["sga:device:lm-a", "sga:device:lm-b"]
}request.#
Asking a participant to do something — and the answer to it.
request.add_player#
Ask the simulator to add a player to the running round, with whatever the caller knows about them.
specified in 15 §6 · shape: request.schema.json#/$defs/addPlayer
{ "type": "request.add_player", "request_id": "q-41", "at": "2026-10-04T19:12:05Z", "asked_by": { "role": "engine" }, "display_label": "Sam R", "checkin_ref": "9c1f4a2e" }request.apply_rules#
The engine delivering a verified Event Rules Package to the simulator before a sanctioned round: the package itself, exactly as SGA signed it, and its digest.
specified in 08 §1.1 · shape: request.schema.json#/$defs/applyRules
request.apply_rules_ack#
The simulator's answer to request.apply_rules: the package accepted, or refused with a reason.
specified in 08 §1.1 · shape: request.schema.json#/$defs/applyRulesAck
request.end_round#
Ask the simulator to end the round, with a reason and a grace period, and whether to release the players.
specified in 00 §3.7 · shape: request.schema.json#/$defs/endRound
{ "type": "request.end_round", "request_id": "q-77",
"at": "2026-10-04T01:00:00Z",
"asked_by": { "role": "operator", "operator_ref": "desk-4f2a91" },
"round_ref": "r2",
"release_players": false }request.remove_player#
Ask the simulator to remove a player from the running round.
specified in 15 §6 · shape: request.schema.json#/$defs/removePlayer
{ "type": "request.remove_player", "request_id": "q-42", "at": "2026-10-04T20:40:11Z", "asked_by": { "role": "operator", "operator_ref": "desk-4f2a91" }, "slot": 3, "reason": "member_left" }request.scorecard#
Ask the simulator for a scorecard checkpoint now.
specified in 06 §9.4 · shape: request.schema.json#/$defs/scorecard
{ "type": "request.scorecard", "request_id": "card-3f9a1c",
"at": "2026-10-04T19:10:00Z", "asked_by": { "role": "engine" },
"round_ref": "r2", "card_reason": "begin_round" }request.shot_decline#
A device saying it has nothing for this shot, so the window can close without waiting for its deadline.
specified in 06 §10.3
{ "type": "request.shot_decline", "shot_id": "sga:shot:01J9X4...", "reason": "not_ready" }request.shot_extend#
A device asking for more time on an open shot because its data completes late.
specified in 06 §10.4
{ "type": "request.shot_extend", "shot_id": "sga:shot:01J9X4...", "need_ms": 120 }request.substitute_player#
Ask the simulator to put another player on a slot from a given hole, keeping the slot and its card: a substitute in a team league.
specified in 15 §6 · shape: request.schema.json#/$defs/substitutePlayer
{ "type": "request.substitute_player", "request_id": "q-44", "at": "2026-10-04T20:05:00Z", "expires_at": "2026-10-04T20:07:00Z", "asked_by": { "role": "operator", "operator_ref": "desk-4f2a91" }, "round_ref": "r2", "slot": 3, "from_hole": 10, "checkin_ref": "51b0d7c3", "display_label": "Jo" }request.update_player#
Ask the simulator to change a seated player's tee or display label, before or during the round. Never which slot they are in or who they are.
specified in 15 §6 · shape: request.schema.json#/$defs/updatePlayer
{ "type": "request.update_player", "request_id": "q-43", "at": "2026-10-04T19:30:00Z", "asked_by": { "role": "engine" }, "slot": 2, "tee": "White", "display_label": "Sam R." }notice.#
Addressed to a person, not to software.
notice.post#
A notice for a person: a registered code, severity, audience, urgency and optional choices. Delivered to participants that want sga.notice.
specified in 12 · shape: notice.schema.json
{ "type": "notice.post", "code": "device_question", "severity": "info",
"audience": "slot", "slot": 2, "urgency": "background",
"text": "How did that one feel?",
"choices": [ {"id":"1","label":"Poor"}, {"id":"3","label":"Fine"},
{"id":"5","label":"Great"} ],
"expires_ms": 120000 }notice.response#
A player's answer to a notice that carried choices, routed back to whoever asked. Carries a slot, never a name.
specified in 12 §8 · shape: notice-response.schema.json
notice.result#
The engine telling a device what became of a notice it raised: delivered, or not and why.
specified in 12 §7 · shape: notice-result.schema.json
{ "type": "notice.result", "notice_id": "7c1e09a2b4f3d6e8", "delivered": false, "reason": "player_disabled" }update.#
The bulk path, deliberately separate from the live path.
update.begin#
The engine saying a firmware transfer is viable and starting, sent only once the first bytes are in hand.
specified in 13 §3 · shape: update.schema.json#/$defs/updateBegin
{ "type": "update.begin", "request_id": "fw-7", "bytes": 1503232, "chunk_bytes": 1024 }update.data#
One chunk of a firmware image, base64 in JSON.
specified in 13 §3 · shape: update.schema.json#/$defs/updateData
{ "type": "update.data", "request_id": "fw-7", "seq": 0, "data": "f0VMRgIBAQAAAAAAAAAAAAIAPgAB…" }update.end#
The end of a firmware transfer, successful or not, with the digest of what was sent.
specified in 13 §3 · shape: update.schema.json#/$defs/updateEnd
{ "type": "update.end", "request_id": "fw-7", "bytes": 1503232, "chunks": 1468, "complete": true, "sha256": "9f2c…" }update.fetch#
A device asking the engine to fetch a firmware image on its behalf.
specified in 13 §3 · shape: update.schema.json#/$defs/updateFetch
{ "type": "update.fetch", "request_id": "fw-7", "url": "https://updates.acme.example/ax3/4.3.0.bin", "max_bytes": 2097152, "chunk_bytes": 1024 }update.refused#
The engine declining to fetch firmware, with a coded reason.
specified in 13 §3 · shape: update.schema.json#/$defs/updateRefused
{ "type": "update.refused", "request_id": "fw-7", "reason": "device_budget_exhausted", "detail": "200 MB in 24 h already relayed for this device", "retry_after_ms": 5400000, "remaining_bytes": 0 }