Skip to main content

Module events

Module events 

Source
Expand description

Append-only SQLite event log (charter N4, N7). Every gate decision is an event from Phase 1 onward; append-only is enforced in the schema itself via triggers, not by convention. Timestamps: UTC ISO-8601 (one convention, this table, documented here).

Structs§

EventLog
GateEvent
The event envelope of spec §8.3 (event field of the result JSON).
SessionId
Session identifier newtype (AGENTS.md: newtypes for domain IDs).
StatsSummary
Aggregates surfaced by pushkin stats (spec §14).
Telemetry
One telemetry emission: the rule tag it files under and its payload.

Enums§

EventLogError

Constants§

ESCALATION_RULE
Rule id recorded when the escalation ladder reaches its attempt cap (addendum §7/§8: escalation is an event, not just prose).
FAILOPEN_RULE
Rule id recorded when a shim fails open on malformed input (review directive: drift must be visible, never silent).
SCHEMA_VERSION