Implementation:2akouwu Reverify run status
| Knowledge Sources | |
|---|---|
| Domains | Context_Engineering, Diagnostics |
| Last Updated | 2026-10-24 12:00 GMT |
Overview
Concrete tool for inspecting rollover guard state and the append-only events audit trail, provided by the Reverify library.
Description
The run_status function prints the guard state for a session: harness, transcript, session ID, context tokens, threshold, next trigger, pending status, blocks count, rollovers count, last outcome, and hand-off file status. The log_event function appends to events.jsonl — an audit trail of block, receipt, rollover, request, launch, and successor events with timestamps.
Usage
Use these functions when you need to:
- Inspect why a guard is or is not firing.
- View the rollover history for a session.
- Debug hand-off file status.
- Audit rollover events over time.
Code Reference
Source Location
- Repository: Reverify
- File: reverify/rollover_harness.py
- Lines:
run_statusat L1599-1636;log_eventat L191-201
Signature
def run_status(argv: List[str]) -> int:
"""Print guard state for a session or directory."""
def log_event(kind: str, **fields) -> None:
"""Append an event to events.jsonl (audit trail)."""
Import
from reverify.rollover_harness import run_status
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| argv | List[str] | Yes | dir>] [--session <id>] |
Outputs
| Name | Type | Description |
|---|---|---|
| (stdout) | str | Console output: guard state, hand-off status, events tail |
Usage Examples
CLI Usage
# Status for a specific transcript
reverify rollover status /path/to/transcript.jsonl
# Status for a project directory
reverify rollover status --harness claude /project
# Status for a specific session
reverify rollover status --session abc123