<?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=ProcessLogger%2FBIBLE</id>
	<title>ProcessLogger/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=ProcessLogger%2FBIBLE"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=ProcessLogger/BIBLE&amp;action=history"/>
	<updated>2026-12-05T10:03:25Z</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=ProcessLogger/BIBLE&amp;diff=744&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=ProcessLogger/BIBLE&amp;diff=744&amp;oldid=prev"/>
		<updated>2026-11-29T20:30:50Z</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;= ProcessLogger — Project Bible =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
Single source of truth for what ProcessLogger 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;PL-1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
Catch whatever stole focus: record every Windows process start and exit, even sub-second ones, and every foreground change, then search it in a viewer.&lt;br /&gt;
&lt;br /&gt;
== 2. The product promise &amp;lt;span id=&amp;quot;PL-2&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
* Processes that live a fraction of a second are still recorded (kernel trace).&lt;br /&gt;
* Each row says who started it, how heavy it was, and which capture source saw it.&lt;br /&gt;
* Focus changes sit next to what was running at that moment.&lt;br /&gt;
* Everything stays local in one SQLite file.&lt;br /&gt;
&lt;br /&gt;
== 3. What it is NOT &amp;lt;span id=&amp;quot;PL-3&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
* Not a monitoring service: no alerts, no remote viewing, nothing sent anywhere.&lt;br /&gt;
* Not cross-platform: Windows only, and the logger runs elevated.&lt;br /&gt;
* Not a general log store: its operational log holds lifecycle, warnings and errors; the process record lives in &amp;lt;code&amp;gt;processlogger.db&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== 4. Architecture canon &amp;lt;span id=&amp;quot;PL-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; ETW kernel trace ─┐&lt;br /&gt;
                   ├─► reconciler ─► ProcessEvents ─┐&lt;br /&gt;
 WMI start/stop ───┘   (250 ms window)              ├─► processlogger.db (SQLite, EF Core) ◄── viewer&lt;br /&gt;
 memory sampler (50 ms) ─────────────────────────────┤                                       (WebView2)&lt;br /&gt;
 SetWinEventHook foreground ─► FocusEvents ─────────┘&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 4.1 Projects ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;ProcessLogger.Core&amp;lt;/code&amp;gt; — capture sources, reconciler, memory sampler, focus watcher, EF model, query services.&lt;br /&gt;
* &amp;lt;code&amp;gt;ProcessLogger.Cli&amp;lt;/code&amp;gt; — elevated generic host running the watchers; applies migrations at start.&lt;br /&gt;
* &amp;lt;code&amp;gt;ProcessLogger.Frontend&amp;lt;/code&amp;gt; — WPF + WebView2 viewer (vanilla HTML/CSS/JS in &amp;lt;code&amp;gt;wwwroot&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;lt;code&amp;gt;ProcessLogger.Tests&amp;lt;/code&amp;gt; — NUnit tests.&lt;br /&gt;
&lt;br /&gt;
=== 4.2 Domain model ===&lt;br /&gt;
&lt;br /&gt;
ProcessEvent (name, PID, parent, path, command line, opened/closed, duration, memory peaks, source Etw/Wmi/Both), FocusEvent (process, title, focused/lost times).&lt;br /&gt;
&lt;br /&gt;
=== 4.3 Key services ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ProcessWatcherService&amp;lt;/code&amp;gt; (reconcile and persist), &amp;lt;code&amp;gt;MemorySamplerService&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FocusWatcherService&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ProcessEventQueryService&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;FocusEventQueryService&amp;lt;/code&amp;gt; (filters, sorts, take).&lt;br /&gt;
&lt;br /&gt;
== 5. The Laws &amp;lt;span id=&amp;quot;PL-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;
# Two sources report the same process within the reconcile window → one row, source &amp;lt;code&amp;gt;Both&amp;lt;/code&amp;gt;. &amp;lt;span id=&amp;quot;PL-LAW-1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
# Names are stored with &amp;lt;code&amp;gt;.exe&amp;lt;/code&amp;gt;; filters match either spelling. &amp;lt;span id=&amp;quot;PL-LAW-2&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
# Capture must never crash on a protected or vanished process. &amp;lt;span id=&amp;quot;PL-LAW-3&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
# Database writes are serialized; no SQLite lock contention. &amp;lt;span id=&amp;quot;PL-LAW-4&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
# Settings live in a per-machine MindAttic Vault app. &amp;lt;span id=&amp;quot;PL-LAW-5&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 6. Verified state &amp;lt;span id=&amp;quot;PL-6&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
Capture, reconcile, focus log and viewer work; NUnit covers the watcher, query services and MindAttic.Log integration. Deployed to &amp;lt;code&amp;gt;R:\MindAttic\Apps\ProcessLogger&amp;lt;/code&amp;gt; (abeaf18). Known: the operational log grows ~1.7 GB a day (PL-T28).&lt;br /&gt;
&lt;br /&gt;
== 7. Active frontier &amp;lt;span id=&amp;quot;PL-7&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;docs/RELEASE.md&amp;lt;/code&amp;gt; — milestone MS-69 &amp;quot;Lean and on R:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== 8. Quality bar &amp;lt;span id=&amp;quot;PL-8&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
Builds with warnings as errors (&amp;lt;code&amp;gt;Directory.Build.props&amp;lt;/code&amp;gt;); capture changes come with a watcher test using the fake capture source.&lt;br /&gt;
&lt;br /&gt;
== 9. Glossary &amp;lt;span id=&amp;quot;PL-9&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;ETW&amp;lt;/strong&amp;gt; — the NT Kernel Logger process trace (only one session system-wide).&lt;br /&gt;
* &amp;lt;strong&amp;gt;WMI&amp;lt;/strong&amp;gt; — &amp;lt;code&amp;gt;Win32_ProcessStartTrace&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;StopTrace&amp;lt;/code&amp;gt;, the cross-check and fallback.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Reconcile window&amp;lt;/strong&amp;gt; — how close two sources&amp;#039; reports must be to merge (250 ms).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[ProcessLogger]].&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/ProcessLogger/blob/main/docs/BIBLE.md ProcessLogger/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:ProcessLogger]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>