Journal records
What the bay writes down, and when each record is written.
Every record the journal holds carries a kind, and a consumer switches on it — the association to decide what a record means, an auditor to find the ones that matter. The complete list is part of the standard rather than an artifact of one engine: 06 §13.
These are not message types. A message is what crossed a wire; a record is what was written down. Several kinds here — a composed shot, a manifest, a superseded participant — correspond to no single message at all.
| kind | written when |
|---|---|
session_start | the journal opens; names the bay, session and bundle |
engine_restarted | an existing session was reopened after the engine came back |
engine_stopped | the engine closed the journal on purpose |
going_away | a planned shutdown, with when to come back |
participant_join | a device was admitted, with its descriptor hash |
participant_leave | a device's connection ended |
participant_superseded | the same unit reconnected and replaced its own stale connection |
admission_denied | a device was refused, and why |
manifest | the connection matrix in force from this point |
provenance_degraded | a field's best source got worse or went away |
round_started | a round began; names the course |
round_ended | a round ended; names the card that closed it |
roster | who is playing, label to slot |
player_up | the player at the ball changed; names the slot. SGA-OIS 06 section 9.7. Written on a change of player only, never on a repeat: it is what tells a member it is their turn, and a record per stroke would tell them on every stroke |
course | the course document a card's references resolve against |
scorecard | a card, for a stated reason |
checked_in | who has scanned in at this bay |
member_checkin | a member checked in by meeting the bay over Bluetooth, with the signed pass and the phone's signature that the cloud verifies (SGA-OIS 09 section 2.3a) |
swing_detected | a shot_id was allocated on first evidence of a swing |
shot | the composed shot record |
data | one contribution to a field, as the device sent it |
shot_declined | a device said it would not contribute to this shot |
shot_extended | a device asked for more of the correlation window |
practice_swing | a swing that resolved to no stroke |
standing_asserted | a standing value was published |
standing_retracted | a standing value was withdrawn |
standing_ambiguous | two sources disagreed and neither wins |
standing_digest | a periodic digest of standing state, so a gap is detectable |
declared_unsent | at a round's end, fields a device declared and never sent |
presence_scan | one closed presence scan window. Written even when the engine heard nobody, because an empty window is evidence and a missing window is an admission that nothing is known. A round that collects no presence at all writes none of these, and says so on its round record instead -- the three states have to be distinguishable or a reviewer reads silence as absence |
installation_unverified | this engine cannot demonstrate it is the installation it claims to be, so its rounds are A0. Recreational rather than refused, and nothing stops: the bay records, keeps and ships exactly as before. Journaled because a round's eligibility is decided from its record, so "these rounds were A0, and why" belongs there rather than in a log file somebody has to still have |
facility_changed | an operator changed the facility configuration at this bay. The configuration is replicated and conflicts are possible, so "who changed this, here, when" is a question that gets asked. It is also, for now, the only authentication the platform has for an offline change: it can see what changed and cannot yet verify who changed it |
listen_address | where this engine is listening, and how it got there. Recorded because a bay quietly listening somewhere other than where a runbook says it is, is something somebody finds out at the worst possible moment -- and because a random port means the engine is findable only by the discovery mechanisms that may themselves be the broken thing |
discovery_self_check | whether this engine could hear its own advertisement at startup. Journaled and not only logged, because the question it answers is "why did no device ever connect", and that is asked days later by somebody reading a journal rather than minutes later by somebody watching a terminal |
second_engine_allowed | this engine ran with the one-engine-per-machine rule deliberately switched off. Only reachable on an unclaimed bay, and recorded because it explains otherwise inexplicable records -- a device that reported to the wrong bay, a shot that arrived nowhere -- without a reviewer having to find a log file |
journal_quarantined | a journal failed verification at startup and was moved aside. Written into the NEW session, because the quarantined file cannot say it about itself -- its chain is the thing in doubt. Names the file, its size and digest, and what failed, so the cloud learns the break exists even when the file's good part never shows it one |
presence_mode | collection was switched on or off, and with what intervals. Written on every change, because the mode is what makes an absence of presence_scan records explicable. Without it, a round that deliberately collected nothing is indistinguishable from a round whose radio failed -- and from a member who was not there |
slot_bound | a slot was bound to a check-in |
slot_rebind | a bound slot moved to a different check-in |
slot_released | a slot's binding ended |
request | a request was made, with who asked |
request_refused | a request was refused, and why |
device_enrolled | a device was enrolled at this bay |
device_unenrolled | a device was removed from this bay |
device_renamed | a device's local name changed |
device_policy_rejected | a device policy was refused as unusable |
device_notice | a notice was raised about a device |
update_fetch | a firmware transfer was attempted, with bytes and outcome |
notice | a notice was raised |
notice_resolved | a notice was answered or expired |
policy_notified | a notice policy decided who to tell |
fetch_policy_loaded | an update budget policy came into force |
notice_policy_loaded | a notice policy came into force |
lapse_policy_loaded | a certification lapse policy came into force |
certificate_loaded | a bay certificate came into force |
certification_downgrade | the bay's certified tier dropped |
certification_lapsed | the bay's certification expired |
certification_shortfall | the bay no longer meets its certified tier |
event_bay_ineligible | the bay cannot host a sanctioned event |
bundle_loaded | a signed standards bundle came into force, naming the version and the path it arrived by. Aggregated across the fleet, this is how SGA learns which distribution channels actually propagate |
bundle_refused | a bundle did not verify, or was not newer than the one in force. The bay kept what it had and carried on |
bundle_held | a verified bundle is waiting for the round to end, because bundle_version is stable for the life of a round |
signing_keys_loaded | the online signing keys the bundle lists came into force (04 section 3a), with how many there are |
bay_token_unverified | a device presented a placard pairing token that did not verify, or named another bay, so it joined unbound (02 section 4) |
attest | a device's signature over a contribution it already sent, as received (02 section 3a.1) |
round_reconciled | after a restart restored an open round, the simulator's card was compared with the strokes the journal holds; names any slot and hole where the card has more |
member_device_released | a member's registered device was disconnected because that member's check-in ended (13 section 4.1) |
rules_package_checked | an event's rules package was verified, or refused and never delivered, with its digest and why (08 section 1.1) |
apply_rules_ack | the simulator's answer to request.apply_rules |
rules_applied | the conformance vector, the engine's comparison of a version of round.settings with the rules package in force (08 section 2) |
rules_ended | the bay stopped hosting the event |
participant_degraded | a participant that heartbeats missed three, or was heard from again (09 section 4) |
time_anchored | a time signed by SGA's online time key was accepted and the engine's clock anchored to it (08 section 2.2) |
Simulated Golf Association · SGA-OIS · generated from the specification sources