SGA‑OISOpen Interoperability Standard
1.0 Draft
SGA-OIS/Reference

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.

kindwritten when
session_startthe journal opens; names the bay, session and bundle
engine_restartedan existing session was reopened after the engine came back
engine_stoppedthe engine closed the journal on purpose
going_awaya planned shutdown, with when to come back
participant_joina device was admitted, with its descriptor hash
participant_leavea device's connection ended
participant_supersededthe same unit reconnected and replaced its own stale connection
admission_denieda device was refused, and why
manifestthe connection matrix in force from this point
provenance_degradeda field's best source got worse or went away
round_starteda round began; names the course
round_endeda round ended; names the card that closed it
rosterwho is playing, label to slot
player_upthe 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
coursethe course document a card's references resolve against
scorecarda card, for a stated reason
checked_inwho has scanned in at this bay
member_checkina 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_detecteda shot_id was allocated on first evidence of a swing
shotthe composed shot record
dataone contribution to a field, as the device sent it
shot_declineda device said it would not contribute to this shot
shot_extendeda device asked for more of the correlation window
practice_swinga swing that resolved to no stroke
standing_asserteda standing value was published
standing_retracteda standing value was withdrawn
standing_ambiguoustwo sources disagreed and neither wins
standing_digesta periodic digest of standing state, so a gap is detectable
declared_unsentat a round's end, fields a device declared and never sent
presence_scanone 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_unverifiedthis 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_changedan 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_addresswhere 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_checkwhether 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_allowedthis 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_quarantineda 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_modecollection 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_bounda slot was bound to a check-in
slot_rebinda bound slot moved to a different check-in
slot_releaseda slot's binding ended
requesta request was made, with who asked
request_refuseda request was refused, and why
device_enrolleda device was enrolled at this bay
device_unenrolleda device was removed from this bay
device_renameda device's local name changed
device_policy_rejecteda device policy was refused as unusable
device_noticea notice was raised about a device
update_fetcha firmware transfer was attempted, with bytes and outcome
noticea notice was raised
notice_resolveda notice was answered or expired
policy_notifieda notice policy decided who to tell
fetch_policy_loadedan update budget policy came into force
notice_policy_loadeda notice policy came into force
lapse_policy_loadeda certification lapse policy came into force
certificate_loadeda bay certificate came into force
certification_downgradethe bay's certified tier dropped
certification_lapsedthe bay's certification expired
certification_shortfallthe bay no longer meets its certified tier
event_bay_ineligiblethe bay cannot host a sanctioned event
bundle_loadeda 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_refuseda bundle did not verify, or was not newer than the one in force. The bay kept what it had and carried on
bundle_helda verified bundle is waiting for the round to end, because bundle_version is stable for the life of a round
signing_keys_loadedthe online signing keys the bundle lists came into force (04 section 3a), with how many there are
bay_token_unverifieda device presented a placard pairing token that did not verify, or named another bay, so it joined unbound (02 section 4)
attesta device's signature over a contribution it already sent, as received (02 section 3a.1)
round_reconciledafter 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_releaseda member's registered device was disconnected because that member's check-in ended (13 section 4.1)
rules_package_checkedan event's rules package was verified, or refused and never delivered, with its digest and why (08 section 1.1)
apply_rules_ackthe simulator's answer to request.apply_rules
rules_appliedthe conformance vector, the engine's comparison of a version of round.settings with the rules package in force (08 section 2)
rules_endedthe bay stopped hosting the event
participant_degradeda participant that heartbeats missed three, or was heard from again (09 section 4)
time_anchoreda 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