Audit GUI (pm-audit-ui)¶
Learning objectives
After reading this page you will understand:
- What the Audit GUI is for, how it reaches the audit trail, and what must be running
- How a snapshot pins the evidence, and what the evidence banner says
- How to review a session: the Overview, the Market canvas and Market Replay, Participants, the Explorer and Findings
- How to run a behavioural scan, read its candidates and tune a threshold, and how review state, the evidence basket and cases keep a review together
- How to diagnose what it shows, what load it puts on the gateway, and what this release leaves out
Overview¶
The Audit GUI (pm-audit-ui, web-apps/audit-gui/, port 8097) is
a browser client for reviewing what the exchange recorded: the retained
audit trail that pm-audit writes (audit.log and its archived days),
reconstructed with pm-audit-replay's own rules. Only an ADMIN key may
use it; trading, market-maker and read-only keys are refused at the login.
The browser talks to one service only: pm-api-gwy, through its
/api/v1/audit routes (and /api/v1/status for the login). The gateway
reads the trail itself, read-only, from the directories its configuration
names; the browser never sees a path. Nothing in the application can trade,
change the exchange or edit the evidence. The only thing it writes is
review state: dispositions and cases (see "Review state and
Investigations").
It has seven workspaces in four groups: Overview and Findings
(triage); Market, Participants and Explorer (investigate);
Integrity & Coverage (trust); and Investigations (conclude). The
evidence banner, the evidence basket and the help (?, and Explain
for the words on every screen) are always there. The design is
docs-design/EduMatcher-Audit-GUI.md.
What must be running¶
| Needs | Why |
|---|---|
pm-api-gwy (the desk instance in the shipped stack) |
It serves /api/v1/audit and reads the trail |
pm-engine |
It confirms each key and its role at the login |
An ADMIN gateway key (OPS01 in the bundled configurations) |
Every audit route is ADMIN-only |
audit_collections in the gateway's api_gateways block |
Which trails may be read, each by an id. Omitted: one collection, default, the data directory (audit.log there and its audit/ parts and archives) |
The gateway keeps its derivative files (pinned copies, the replay index of
each snapshot, jobs, exports and review state) under data/audit-gui/.
The pinned copies and read models can be deleted; they are rebuilt on the
next read. review.db there holds dispositions and cases: deleting it
loses them. See API Gateway for
audit_collections and the routes.
pm-audit need not be stopped: a snapshot copies the active file's complete
lines when it is pinned, so records written afterwards never change what it
shows.
Starting it¶
With the stack. The source-built and released compose stacks run it
beside the other GUIs (edumatcher-audit-gui, published on AUDIT_GUI_PORT,
default 8097), proxying to the desk gateway. ./edumatcher.sh urls and
make up-all list it.
On its own, in a container.
cd web-apps/audit-gui
API_PROXY_TARGET=http://host.containers.internal:8080 make up # Podman
make up # Docker Desktop
Without a container.
cd web-apps/audit-gui
make install && make build
API_PROXY_TARGET=http://localhost:8080 make serve # production build on :8097
make dev # Vite on :8197, /api → localhost:8080
| Variable | Default | Meaning |
|---|---|---|
API_PROXY_TARGET |
unset (compose: http://host.docker.internal:8080) |
Where /api/* goes. Unset: /api/* answers 503 with an explanation |
HOST / PORT |
0.0.0.0 / 8097 |
The static server's listener |
STATIC_DIR |
apps/web/dist |
The built application |
AUDIT_GUI_PORT |
8097 |
Host port the container is published on |
Logging in and pinning a snapshot¶

Log in with an ADMIN gateway's key. It is kept in memory for the tab only: a reload asks for it again, and no link or export ever carries it.
Then choose an evidence collection in the top bar. The gateway pins it as a snapshot: every audit file's size and SHA-256, the active file's complete lines, the engine runs and what the evidence can support. Every view reads that snapshot, so pages, stories and charts never drift onto records written later, and the top bar labels the view Historical snapshot with its id. Choosing the same unchanged collection again gives the same snapshot.
A snapshot also pins four optional sources:
- the evidence manifest (
audit/manifest.jsonl), checked aspm-audit-cli verifychecks it; - a
pm-sim-forensicsreport inforensics/beside the collection directory (the tool's default--outfor the installed data directory; for another collection, pass--out <collection>/../forensics). Itsfindings.jsonlists the audit files it read, and the report is used only if they are exactly the snapshot's; - the simulator's history,
market_sim_news.dbbeside the trail (news events and true-value jumps), as context, not evidence: copied and hashed with the snapshot, on the simulator's own clock. pm-market-sim records when it received each enginesession.state(by message id), and the trail holds the same messages, so pinning measures the offset between the two clocks, with an uncertainty. A database written before this (or from another run) has no matching record: the offset is then not measured, and nothing that needs the two clocks aligned (pre-publication analysis) is computed; - the scenario labels of a session recorded by
pm-sim-scenarios(scenario_labels.json; see "Labelled scenario sessions").
Pinning also queues the snapshot's prepare job. The gateway's audit
worker, a separate process it starts on the first job, reconstructs the
session (pm-audit-replay's pipeline and episode index, and the market
model) and publishes the result as the snapshot's first generation; the
top bar shows "Preparing snapshot" with the stage and progress until then,
and opens the snapshot when it is done. A class session takes seconds; a large
trail takes minutes (about 2,700 records a second on a 10-million-record
trail), and none of it runs in the gateway's request handling. Pinning
itself is still synchronous: it hashes every file, about 80,000 records a
second.
The worker runs one job at a time, with one hour, 4 GiB of memory and
512 MiB of free disk per job. A job that fails, times out or is cancelled
publishes nothing, and the last generation stays in use. If the worker
process dies, its job is marked failed (WORKER_LOST) and the worker is
started again; choose Retry in the top bar to queue the job again.
The worker stops with the gateway.
Supported size. Preparation holds the whole session in memory, about
10 KiB per audit record, so within the worker's 4 GiB a snapshot can hold
about 380,000 records: a class session of an hour or two, not a full
overnight simulation (a 10-million-record trail needs about 105 GiB and an
hour). A larger snapshot fails to prepare with JOB_ERROR and
MemoryError named; the gateway and its host are unaffected. To review
part of a long day, point a collection at a directory holding only the
audit files of the hours you need (orders entered before its first file
are then unknown to it, and a re-run is not eligible). Measurements:
docs-design/EduMatcher-Audit-GUI-Benchmark.md.
The evidence banner¶
Above every workspace. Read it before anything else.
| Line | Meaning |
|---|---|
| Extent | First and last record on the receipt clock (UTC), records, engine runs |
| Gaps | Recorder gaps: the replay's ESEQ_GAP findings, records the engine published that pm-audit never received. "no recorder gap" is a measured zero |
| Manifest | checked, unanchored: the hash chain and every archive match, but no copy of the head hash is kept off this host, so a rewritten chain would not show. failed: each problem by day. no manifest: no day has been archived yet |
| Forensics | The report's checks per status. SKIPPED (its data was absent) and ERROR (the check broke) are never a pass |
| Simulator context | Attached simulator history, with its news events and value jumps, marked "not audit evidence", and the clock offset: measured (for example +250.0 ms ± 1.0 ms) or not measured |
| Active file | A partial last line of audit.log left out of the snapshot |
| Not available | Each analysis the evidence cannot support, with its reason code |
Hide details folds the banner to its first line, except while a check has failed (a failed manifest, or a FAIL or ERROR in a matching forensics report): then it stays open, red, and says so. The Integrity & Coverage screenshot below shows a banner held open by a failed forensics check.
The Overview¶

Tiles first, each with its scope and counting basis: executions (once per trade), admitted orders (quote legs apart), active gateways, consistency and evidence findings, and executions and traded shares of the symbol you pick (never summed across symbols). The behavioural candidates tile appears only when a scan completed at least one rule, and names the scan, its profile and how many rules completed. The activity strip counts orders admitted, executions, owner and system cancellations and rejected entries per time bin, shaded by phase and gap; brush it to open the same interval in Market. Simulator news is not marked on the strip, and the line under it says why: no simulator context, a clock offset that is not measured, or, with a measured offset, that the markers are not drawn in this release. Needs review lists each lane's first findings; What changed? says it is unavailable.
Debrief on the Overview runs a debrief job, downloaded like an export:
- The whole session's report (Markdown and HTML): the timeline, market quality per symbol, every gateway's page (outcome funnel, maker and taker mix, net traded in window, VWAP against the session's, findings by lane) and the notable episodes. Each episode states its rule (largest move, longest halt, deepest stop cascade) and links into Market Replay.
- One gateway's own page, to hand to that student: every other gateway under a stable alias for the report, with no reserve or refill data and no other gateway's records. It is a reviewed extract: only an ADMIN key can run it.
- Teaching clips: SVG frame strips of the notable episodes, each with the snapshot id and the Recorded badge. They are teaching material, not evidence.
- The simulator's true value: only with simulator context and for a finished session (one that ended with the engine's shutdown), on the simulator's clock.
Views in the top bar lists starter views for the reviewer journeys, and your own views saved by name in this browser. A view keeps the workspace, its filter and its layout, never the snapshot or the key.
The Market canvas¶

Open Market and choose a symbol. The canvas shows one symbol on one time axis (receipt clock):
- Depth heatmap: the displayed quantity per price level from the recorded
book.<symbol>observations only, bids blue, asks amber. An observation is valid until the next one, a phase change, an uncross, lost records or the engine stopping; nothing is interpolated. The cadence line says how often books were recorded; bins are never finer than its median. - Masks, hatched: a gap (records lost: no cells) and a halt (the book observed while halted is kept). The list under the chart names each, with its reason.
- Order lifelines: each order or quote leg as a bar at its price from admission to its end, thicker for more displayed quantity, dashed while a stop is held. The end glyph says how it ended: ● filled, × owner cancel, ⊗ system cancel, ◌ expired, ▸ still resting, … cut by the window.
- Trades: ▲ buyer-initiated, ▼ seller-initiated, ◆ auction prints; and the flow strip of signed aggressive volume underneath.
Drag across the chart to zoom to an interval; Whole session undoes it. Click a lifeline, or select it in the list under the chart (arrow keys, Enter), to open the order drawer:

- Story:
pm-audit-replay's narration of the order, fact by fact, with the confidence of each link; - Causality: the episodes linked to it, recorded links apart from inferred ones;
- Checks: the replay's findings on the order's episodes;
- Raw evidence: every record naming the order, with its payload and
file:line.
The filter bar above the lifelines narrows them to the orders that pass
a typed filter, e.g. gateway:TRADER01 end:cancel.owner lifetime<500ms
phase:continuous. The gateway parses it and shows what it understood as
chips; a field or value it does not know is refused with what you may have
meant. A filter tests each order as it really was (how it ended, how long it
lived, the phase it was admitted in), whatever the zoom cuts. Help → Filters
lists the fields; the REST chapter has the whole grammar.
Copy as API and Copy as CLI, beside the filter here, on Findings and
in the Explorer, copy the view's request: as curl, with the key as
$EDUMATCHER_API_KEY (never the key itself), and as the pm-audit-replay
command line when one gives the same answer. When none does, the CLI
button is greyed out and its tooltip says why. The command reads the
collection through $AUDIT_COLLECTION; set it to the collection's directory
from audit_collections first.
The symbol, the interval, the filter and the open drawer are in the address bar: Back and Forward step through them, and a copied link reopens the same view of the same snapshot.
The Analyse tabs¶

Under the canvas, the Analyse tabs read the same window:
- Quality: time-weighted spread, depth and presence, effective and realized spread and price impact per horizon, per phase, with covered and excluded time.
- Participants: each gateway as maker, taker and in auctions.
- Levels: the orders at each price level, how long they rested and how they ended.
- Patterns: the latest scan's candidates for the symbol, one row per rule on the window's time axis, red when escalated, each with its comparisons and baseline and opening its card in Findings. There is no single "manipulation probability" for a symbol. Without a scan the tab says so.
- Events & checks: the symbol's findings, gaps and halts, and links to its episodes.
Market Replay¶

Replay (beside the symbol) keeps the canvas and adds a cursor, a red line, below which the panes follow it. It has three parts:
- Transport. Step by event, trade, phase, episode or finding (the arrow keys too), seek by order id (anywhere in the snapshot), trade id, record key or time, or click the canvas. A step across more than 5 s says how much idle time it skipped.
- Book at the cursor. The last valid recorded observation, best price first, with its age, or why none is valid (a phase change, an uncross, lost records, the engine stopping). Only the displayed quantity is shown: no queue is implied.
- Records. The symbol's records in the window, at most 1,000 (narrow the window for more), with the one under the cursor marked and a Story link for an order's.
Three modes keep their labels:
- Recorded: the above alone.
- Reproduced: a
rerunjob, with its verdict and first divergence placed against the cursor. - Queue explanation: a
queuejob for the order under the cursor: its place in its level after every change, shares ahead and by whom.
A divergence is a banner. Past it the queue reads "not determinable", and readings stop there. A trail that cannot be re-run disables both jobs with the reason. Both jobs answer for the whole trail, so seeking anywhere, backwards included, reads that answer without re-running. Each job shows its progress and can be cancelled.
With simulator context, Replay also shows a news absorption panel. It is not drawn in this release, and it says why: the clock offset is not measured, or, when it is, the frames are not built yet.
Illustrations¶

Illustrate plays the window on the same cursor:
- Queue ladder: the recorded level bars, the queue order not
determinable. Reproduce the queue order runs a whole-book
queuejob and draws a block per order in priority order. - Layering and Momentum path: one gateway's orders against the book, and the trades with their aggressors.
- Domino chain: stops linked to the trade that fired them. A dashed link is inferred.
- Price corridor: the engine's halts with its own corridor, and the thresholds of the recorded configuration.
- Auction curves: demand and supply from the call's book; the indicative price alone without one.
- SMP collision: the resting orders, the incoming order and the cancel, with the policy.
Each illustration has two views. Animated follows the Replay cursor, frame by frame. Static shows the final state of the window and the frame table. Static is the default when the browser or system asks for reduced motion, or when only the keyboard has been used; choose Animated to see the state at the cursor. The frame table lists every frame in words, with the one under the cursor marked.
The Explorer drawer's Messages tab is an order's swimlane: each record between its lanes with each clock's own stamps, and a missing message marked with its finding.
Participants¶

The list ranks gateways by a metric you choose, each figure with its denominator. A gateway's profile has six tabs: Activity (each metric with its definition and sample counts), Symbols, Execution (VWAP and fill ratio per symbol), Counterparties (the pair table and the directed seller × buyer matrix, with each pair's share of both sides), Inventory & outcomes (the order outcome funnel and the path of net traded in window, which is not a position) and Findings & stories. Open in clearing opens the gateway's trades in the clearing GUI on the same host at port 8096, with the symbol and the snapshot's days.
The Counterparties tab plays the symbol's trades as a flow ring (each
trade a particle from seller to buyer, edges the pair flows so far, bars
the net traded in window) or a Sankey of a sliding window (10 s to the
whole window). Every frame is a recorded event, badged Recorded: play,
pause, step, next trade and speed move one cursor (the URL's frame),
shared with the frame table. Cycles light up on the ring, dashed red, only
from a completed circular_ring scan and once a cycle's last leg has
traded; the line under the ring states the rule's window and quantity
tolerance, or why nothing lights (no scan, not in the profile, not
completed). A gap holds the last recorded state under a "no data" overlay;
idle periods are skipped, and the label lists them. With reduced motion
set in the browser or system, or when only the keyboard has been used, the
static final state and the table come first. Over 2,000 trades the frames
are buckets, and the player says so.
Pin two to four gateways and use Compare pinned gateways: coverage differences (symbols only one gateway traded) come first, then the metrics side by side, the funnels on one scale and the inventory paths of a common symbol on shared axes.
Explorer¶

The replay's episodes (an order's life, a trade, a quote, a phase, a
gateway's session, orphan records) in opening order, each with its
narration, outcome and findings, filtered with the episodes grammar
(kind:order gateway:TRADER02 end:cancel.owner phase:continuous). Open in
Explorer on Market carries the symbol and the brushed interval: the
episodes overlapping it are listed, and one the window cuts is marked
"began before the window" or "continues after the window" with its recorded
outcome, never as a violation.
- Raw lists the records with the same scope (gateway, symbol, run, the window) and names the clauses raw records do not have.
- Pivot computes a measure (owner-cancel rate, orders, median lifetime) by up to two dimensions (gateway, symbol, phase at admission, type, side, end, run) over admitted orders; every cell opens its rows.
- The drawer has Story, Causality (the episodes within 1-3 links, at
most 200; recorded links distinct from inferred ones, and "Recorded links
only"), Market context, Messages, Checks and the episode's raw records.
Something the replay could not name (
UNKNOWN_TOPIC,UNKNOWN_ENUM) is highlighted.
Findings¶

Findings lists the replay's findings and any imported
pm-sim-forensics checks in four lanes: evidence (the trail is incomplete
here), consistency (recorded facts break an invariant), operations (a
participant, the configuration or the infrastructure did something), and
behaviour (a detector scan's candidates, next section). Each row has its
symbol, gateway, time, how often the code recurs and the source line, a
page at a time. A lane's count is never a made-up zero: the behavioural
lane says "not available" until a scan has completed a rule.
A finding opens its evidence card: the claim, what it does not establish, its Review state (see "Review state and Investigations"), the rule and what it measured, the episode's records with the finding's line marked, the counter-explanations to rule out first (on a snapshot with sequence gaps, a consistency finding names them), and the raw sources with the episode's weakest link. Open in Explorer and Open in Market carry its episode and time.
The behavioural lane and the threshold workbench¶

Findings › Behaviour shows the latest scan of the snapshot: its state,
the profile and each rule's version, and per rule its state (a rule that
could not run says why: unsupported with its reason, insufficient
data), the comparisons it made, its scope and exclusions (the windows
eligible and measured, and those left out for a recording gap or a partial
window), and its candidates. A line above names the rules tested and those
not. Without a succeeded scan, or when no rule completed, it says nothing
was tested, never "none found", and the lane has no count. A candidate has
its rule's strength and whether it is escalated (its key recurred
in the scan: review it first). Strength is the rule's own measure: it is
not a severity, which is the replay's, and not a probability. A detector
lists its first 200 candidates; the scan's result
(GET /api/v1/audit/results/{job_id}) has them all.

A candidate opens its card: the rule and what it does not establish, every threshold, the baseline it was compared with, its measurements and evidence, the counter-explanations, and its disposition. Open in Market Replay plays the symbol from one detector window before the candidate to one after. Pin to basket keeps it in the evidence basket.
Run a scan takes a detector profile as JSON (pasted or loaded from a
file). Every parameter of every detector named must be given: there is no
default. The form starts from the profile the last scan ran; the example
docs/examples/detector-profiles/classroom-r2.json is a starting point. A
scan runs in the worker; a new one never changes an earlier one's result.

The threshold workbench, under the lane, re-runs one rule of that
profile at several values of one parameter over this snapshot and up to
eight others (by snapshot id). Its table shows, per value, the candidates
and escalations beside the labels found and missed and the false groups of
the labelled scenario sessions among them (an unlabelled session's
candidates are counted, not judged); Per snapshot opens each session's
row. Each value is a new profile version, <version>+<parameter>=<value>:
Scan with this version runs a new scan with the whole profile at that
value. The sweep rewrites no result and adds nothing to the detectors'
baseline store, so each session is compared with its own earlier windows
only.
How well each detector finds the patterns it is meant to, and what it raises on look-alikes and a real trail, is in Behavioural detectors: what they find.
The evidence basket and exports¶

Pin to basket (or b) on a finding's or candidate's card, an episode,
an order, a gateway or a gap row keeps it in the evidence basket (top
bar, Basket), with its snapshot and read-model generation; an item from
another snapshot is flagged. The basket is kept in the browser. Its deep
link carries the view (filter, page, open card or drawer), the snapshot
and the basket, never the key: opened in another session it asks for the
key, then restores them. A link is a bookmark: it does not keep evidence
that has since been removed.
Export in the basket runs an export job in the worker and offers its
zip archive for download:
- Evidence bundle: this snapshot's basket items. It holds the pinned descriptor, one file per item with its content and the API request that answers it again, and a Markdown summary. A behavioural candidate is stated as the rule's candidate, with what it does not establish (intent, common ownership, misconduct).
- Tables (CSV) and Notebook (Parquet): the snapshot's records,
order lifecycles, trades and participant metrics. A
descriptor.jsongives their columns, units, tick scales and metric definitions.
Every archive holds inventory.json: each file's SHA-256, the redactions
(credentials, the recorded configuration text, host paths) and the cuts. A
CSV cell that would start a spreadsheet formula is escaped. Archives are kept
under data/audit-gui/exports/.
Parquet needs pyarrow, the optional audit extra of the gateway's Python
environment (pip install 'edumatcher[audit]'; poetry install --extras
audit in a checkout). The shipped image does not install it, so a Parquet
export there is "unavailable", with the reason, and CSV still works.
Add to a case puts every item of the basket in an open case (next section).
Review state and Investigations¶
A finding's evidence card has a Review section, and a candidate's card a Disposition section: the subject's disposition, one of unreviewed, in review, explained, needs follow-up or escalated, with who set it and when. Set disposition needs a reason. A new disposition supersedes the current one, which stays in the history below: nothing is deleted. Explained is a reviewer's statement only: it changes no detector threshold or profile and hides nothing.

Investigations holds review cases. Open case takes a title and the investigation question; the logged-in ADMIN key's gateway owns it. In the evidence basket, Add the basket adds every item to an open case, each with the snapshot it came from (a finding by its stable reference, so a later page or filter does not change which one it names). A case shows its items with each finding's and candidate's current disposition, the snapshots they come from, notes, and its change log: who changed what, when, before and after, including the dispositions set on its items. Remove marks an item removed, by whom and when; it stays in the record. A closed case takes no items or notes until it is reopened.
Review state lives in data/audit-gui/review.db, never in the audit files
or the read models, and only ADMIN keys may read or change it. A case is not
a legal hold: keeping its evidence needs a retention policy.
Integrity & Coverage¶

What can be trusted in a snapshot, as four kinds of confidence, each in its own section and never one badge:
- Integrity: the manifest's hash chain, each archive against its entry, whether the head is anchored (it never is yet: "Checked, unanchored"), the retained files now, and the latest verify. Failed when any of them failed. Verify now re-hashes every pinned file in the worker.
- Coverage: extent, engine runs, the gap map (each break of the engine-wide sequence, the topics it lost when every lost message is accounted for, or unknown, and what it affects), a torn tail, and the replay's evidence findings per code (zero is a measured zero).
- Link confidence: links per confidence, as the replay states them.
- Behavioural strength: which scan the behavioural lane rests on (its
profile and how many detectors completed),
NO_SCANwithout a scan, orNO_COMPLETED_DETECTORwhen none of its detectors completed.
Below them: clock warnings, re-run and queue eligibility (each
prerequisite of pm-audit-replay rerun with the earliest missing one;
Request re-run runs it in the worker when every prerequisite is met,
and shows whether the fresh engine agreed with the recording, its first
divergence and both versions), and the read model the view reads (its
generation, what built it, whether it is stale; Rebuild publishes a new
one). The view keeps its generation in the address bar: a rebuild is
offered, never switched to.
A retained file changed or removed after the pin makes every other view
answer AUDIT_SOURCE_UNAVAILABLE; this one still opens and says which file.
Labelled scenario sessions¶
pm-sim-scenarios records sessions that reproduce the design's behavioural
patterns on purpose (layering, churn, paired round trips, a circular ring,
stop hunting, auction steering, ...) and four benign look-alikes (a market
maker repricing, cancellations after a halt, a reaction to published news,
one IOC sweep), each with ordinary market activity around it. They are
ground truth for the behavioural detectors (and the threshold workbench's
labels), and teaching material. The screenshots on this page are of two of
them (layering and circular_ring, seed 0) and the test suite's small
world with a recorder gap; tools/audit_gui_screenshots.py takes them
again.
pm-sim-scenarios list
pm-sim-scenarios corpus --out ~/scenarios --store ~/.edumatcher/data/audit-gui
Each session is an audit collection (<scenario>/collection/) with its
label manifest, scenario_labels.json, beside audit.log: the pattern,
gateways, symbol and episode window of every labelled episode. The labels
are never in the audit files; a snapshot of the collection pins them with
it. --store pins every session; add a collection to audit_collections
to open one in the GUI.
The engine runs in-process: nothing connects to a deployment. The engine
configuration (built in, or --config) must say simulation: true; any
other is refused with exit 2.
Diagnosing what it shows¶
| It says | Meaning | What to do |
|---|---|---|
| "This is a TRADER key…" / "read-only key" at the login | Only ADMIN keys may read audit evidence | Log in with an ADMIN gateway's key |
A collection listed as unavailable (SOURCE_MISSING) |
Its directory does not exist on the gateway's host | Fix audit_collections or mount the directory |
AUDIT_SOURCE_UNAVAILABLE (SOURCE_CHANGED) |
A retained file changed after the snapshot was pinned | Pin the collection again; find out why an archived file changed |
CAPABILITY_UNAVAILABLE (NO_BOOK_OBSERVATIONS) on the canvas |
No book.<symbol> record was retained |
The lifelines and the drawer still work |
Forensics DIFFERENT_INPUTS |
The report beside the collection read other audit files | Re-run pm-sim-forensics on the stopped run |
Re-run "not eligible", earliest missing whole_sequence |
The engine-wide sequence jumps: records were lost (the gap map shows where) | A re-run cannot reproduce the engine; read the stories with the gap in mind |
Re-run "not eligible", earliest missing recorder_continuous |
pm-audit restarted while the engine published, and something was lost | As above |
| Read model "Stale" | The generation was built by another version, rules or detection | Rebuild |
| "Preparing snapshot" for a long time | The worker is reconstructing a large session; the stage and count say how far | Wait |
"Preparing the snapshot failed: WORKER_LOST" |
The worker process ended mid-job (killed, out of memory) | Retry; check the gateway's host for memory |
"Preparing the snapshot failed: JOB_ERROR … MemoryError" |
The snapshot is larger than the worker's 4 GiB allows (about 380,000 records) | Pin a collection with fewer audit files (see "Supported size") |
"Preparing the snapshot failed: TIMEOUT" / unavailable: DISK_LOW |
The job ran over an hour, or the store has under 512 MiB free | Free space under data/audit-gui/; Retry |
Behaviour "not available" (NO_SCAN) |
No scan has succeeded for this snapshot | Run a scan with a profile |
Behaviour "not available" (NO_COMPLETED_DETECTOR) |
The latest scan ran, but no rule completed: each is unsupported (its reason, such as MISSING_EVENTS or CLOCK_OFFSET_UNKNOWN) or had too little data |
Read each rule's reason in the lane; a scenario or a longer session may support it |
A rule insufficient_data (NO_COMPARABLE_WINDOW) |
No window had enough earlier windows to compare with | A longer session, or a profile with a smaller min_baseline or window_ns |
| An illustration does not move with the Replay cursor | It is in the Static view (the final state), the default with reduced motion or keyboard-only use | Choose Animated |
Load on the exchange¶
None on the engine beyond the login check: the gateway reads files. The
reconstruction and every scan, sweep, export and debrief run in the worker
process (one CPU core while a job runs); the gateway itself only hashes
files when pinning and reads the prepared generation, so a read takes
milliseconds for a class session. A full scan of all seventeen detectors
takes about 0.17 ms per record (266 s on 1.56 million records). A
generation takes about five times the size of the trail on disk (most of
it the replay index); the current and the previous generation of a
snapshot are kept under data/audit-gui/. The browser loads its chart
library only when Market opens.
What it leaves out¶
Not yet: a list of exports in Investigations; expiry of old exports and of
old snapshots in data/audit-gui/; a level's queue from the GUI (the
API's queue job answers it); Replay's play, interval loop and bookmarks
(the address is the bookmark); news markers on the activity strip and the
news absorption frames, even with a measured clock offset; illustrations
on evidence cards; the venue's timezone (times are UTC); a run selector
(the canvas shows every run of the snapshot, and each lifeline names its
run). There is no trading, no control and no editing of evidence, by
design: review state is the only thing the GUI writes.