<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=MindAttic.Telemetry%2FBIBLE</id>
	<title>MindAttic.Telemetry/BIBLE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=MindAttic.Telemetry%2FBIBLE"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=MindAttic.Telemetry/BIBLE&amp;action=history"/>
	<updated>2026-12-06T16:14:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=MindAttic.Telemetry/BIBLE&amp;diff=628&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=MindAttic.Telemetry/BIBLE&amp;diff=628&amp;oldid=prev"/>
		<updated>2026-11-29T20:27:31Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= MindAttic.Telemetry — Project Bible =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
Single source of truth for what MindAttic.Telemetry IS, is NOT, and the rules that keep it coherent. README says how to build and run it; this says how to think about it. The finish line lives in &amp;lt;code&amp;gt;docs/RELEASE.md&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 1. The one sentence &amp;lt;span id=&amp;quot;M.TELE-1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
MindAttic.Telemetry records raw, replayable turn and event telemetry for MindAttic games as one append-only NDJSON file per session, and reads it back as flat rows for analysis.&lt;br /&gt;
&lt;br /&gt;
== 2. The product promise &amp;lt;span id=&amp;quot;M.TELE-2&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;Crash-safe by construction.&amp;lt;/strong&amp;gt; Every line is flushed and independently valid JSON; a crash loses nothing already written.&lt;br /&gt;
* &amp;lt;strong&amp;gt;The rename is the clean-finish signal.&amp;lt;/strong&amp;gt; A session is &amp;lt;code&amp;gt;.ndjson.tmp&amp;lt;/code&amp;gt; until &amp;lt;code&amp;gt;FinishAsync&amp;lt;/code&amp;gt; writes &amp;lt;code&amp;gt;SessionEnd&amp;lt;/code&amp;gt; and renames it to &amp;lt;code&amp;gt;.ndjson&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Orphans recover themselves.&amp;lt;/strong&amp;gt; The next &amp;lt;code&amp;gt;Telemetry.Begin&amp;lt;/code&amp;gt; appends a &amp;lt;code&amp;gt;{&amp;quot;recovered&amp;quot;:true}&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;SessionEnd&amp;lt;/code&amp;gt; to any abandoned &amp;lt;code&amp;gt;.tmp&amp;lt;/code&amp;gt; file nobody holds open, and renames it.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Your shapes, verbatim.&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;RecordTurn&amp;lt;/code&amp;gt; takes whatever &amp;lt;code&amp;gt;before&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;command&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;events&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;after&amp;lt;/code&amp;gt; DTOs the game already has; &amp;lt;code&amp;gt;RecordEvent&amp;lt;/code&amp;gt; takes a name and any data.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Recording never breaks the game.&amp;lt;/strong&amp;gt; Unserializable payloads, access-denied files and throwing event sequences are logged and dropped, never thrown into the caller.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Same file from .NET and Unity.&amp;lt;/strong&amp;gt; Member names are camelCase and dictionary keys verbatim in both.&lt;br /&gt;
&lt;br /&gt;
== 3. What it is NOT &amp;lt;span id=&amp;quot;M.TELE-3&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT a replay engine.&amp;lt;/strong&amp;gt; It records seed and commands; re-simulation is the game&amp;#039;s own job.&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT a service.&amp;lt;/strong&amp;gt; No agent, no background process, no encoding; just files and a file-lock probe.&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT a universal event schema.&amp;lt;/strong&amp;gt; The core never assumes what a turn or event looks like.&lt;br /&gt;
&lt;br /&gt;
== 4. Architecture canon &amp;lt;span id=&amp;quot;M.TELE-4&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt; game ── Telemetry.Begin ──&amp;gt; TelemetrySession ── RecordTurn / RecordEvent ──&amp;gt; {session}.ndjson.tmp&lt;br /&gt;
                                              └─ FinishAsync ──&amp;gt; SessionEnd + rename ──&amp;gt; .ndjson&lt;br /&gt;
 next Begin ──&amp;gt; TelemetryMaintenance.RecoverOrphans&lt;br /&gt;
 analysis  ──&amp;gt; TelemetryReader.Read / Flatten ──&amp;gt; rows (pandas read_json lines=True)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Output: &amp;lt;code&amp;gt;&amp;amp;lt;root&amp;gt;\&amp;amp;lt;AppName&amp;gt;\&amp;amp;lt;date&amp;gt;_&amp;amp;lt;sessionId&amp;gt;\&amp;amp;lt;sessionId&amp;gt;.ndjson&amp;lt;/code&amp;gt;, root &amp;lt;code&amp;gt;R:\Telemetry&amp;lt;/code&amp;gt; with a &amp;lt;code&amp;gt;Documents\MindAttic\Telemetry&amp;lt;/code&amp;gt; fallback when the drive is missing.&lt;br /&gt;
&lt;br /&gt;
=== 4.1 Projects ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;src/MindAttic.Telemetry&amp;lt;/code&amp;gt; — core, &amp;lt;code&amp;gt;netstandard2.1&amp;lt;/code&amp;gt; (for Unity) and &amp;lt;code&amp;gt;net10.0&amp;lt;/code&amp;gt;; no third-party dependencies. Version 1.0.0.&lt;br /&gt;
* &amp;lt;code&amp;gt;unity/com.mindattic.telemetry&amp;lt;/code&amp;gt; — Unity 6 package (&amp;lt;code&amp;gt;TelemetryUnity&amp;lt;/code&amp;gt;), carrying the core as a plugin DLL refreshed by &amp;lt;code&amp;gt;tools/update-unity-plugin.ps1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;tests/MindAttic.Telemetry.Tests&amp;lt;/code&amp;gt; — NUnit.&lt;br /&gt;
&lt;br /&gt;
=== 4.2 Domain model (the nouns) ===&lt;br /&gt;
&lt;br /&gt;
Session, record (&amp;lt;code&amp;gt;seq&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;kind&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;atUtc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;payload&amp;lt;/code&amp;gt;), kinds &amp;lt;code&amp;gt;SessionStart&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Turn&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Event&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;SessionEnd&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;TelemetryOptions&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TelemetryData&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 4.3 Key services (the verbs) ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Telemetry.Begin&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TelemetrySession.RecordTurn/RecordEvent/FinishAsync&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TelemetryMaintenance.RecoverOrphans&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TelemetryReader.Read/Flatten&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ITelemetryJson&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ITelemetryLog&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== 5. The Laws &amp;lt;span id=&amp;quot;M.TELE-5&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
Inherits &amp;lt;code&amp;gt;MindAttic.HouseRules.md&amp;lt;/code&amp;gt; by reference.&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;strong&amp;gt;Append-only.&amp;lt;/strong&amp;gt; &amp;lt;span id=&amp;quot;M.TELE-LAW-1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; A written line is never rewritten.&lt;br /&gt;
# &amp;lt;strong&amp;gt;Never throw into the game.&amp;lt;/strong&amp;gt; &amp;lt;span id=&amp;quot;M.TELE-LAW-2&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; Record and lifecycle calls swallow and log storage and serialization failures.&lt;br /&gt;
# &amp;lt;strong&amp;gt;Core stays dependency-free.&amp;lt;/strong&amp;gt; &amp;lt;span id=&amp;quot;M.TELE-LAW-3&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; Unity consumes the &amp;lt;code&amp;gt;netstandard2.1&amp;lt;/code&amp;gt; build.&lt;br /&gt;
# &amp;lt;strong&amp;gt;Plugin follows source.&amp;lt;/strong&amp;gt; &amp;lt;span id=&amp;quot;M.TELE-LAW-4&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; A core change is not finished until the Unity plugin DLL is refreshed from it.&lt;br /&gt;
&lt;br /&gt;
== 6. Verified state &amp;lt;span id=&amp;quot;M.TELE-6&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
* GridGame.Unity consumes the Unity package through a &amp;lt;code&amp;gt;file:&amp;lt;/code&amp;gt; path and the plugin DLL.&lt;br /&gt;
* Hardening: 86076a4, bb9829c, 69c0ad6 (M.TELE-T28), 72c4c9e (M.TELE-T29). The plugin DLL was last refreshed in bb9829c, before T28 and T29.&lt;br /&gt;
&lt;br /&gt;
== 7. Active frontier &amp;lt;span id=&amp;quot;M.TELE-7&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
See &amp;lt;code&amp;gt;docs/RELEASE.md&amp;lt;/code&amp;gt;: Unity plugin parity and one verified GridGame session.&lt;br /&gt;
&lt;br /&gt;
== 8. Quality bar &amp;lt;span id=&amp;quot;M.TELE-8&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
A change is done when the solution builds, NUnit covers it, the Unity plugin carries it and the README describes any change to the file shape.&lt;br /&gt;
&lt;br /&gt;
== 9. Glossary &amp;lt;span id=&amp;quot;M.TELE-9&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;Session&amp;lt;/strong&amp;gt; — one run, one NDJSON file.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Orphan&amp;lt;/strong&amp;gt; — a &amp;lt;code&amp;gt;.ndjson.tmp&amp;lt;/code&amp;gt; left by a run that never finished.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Flatten&amp;lt;/strong&amp;gt; — one row per event, standalone or inside a turn.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[MindAttic.Telemetry]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/MindAttic.Telemetry/blob/main/docs/BIBLE.md MindAttic.Telemetry/docs/BIBLE.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:MindAttic.Telemetry]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>