scripts/ab/mirror-replay.py replays native harness data through opencode_mirror.py, agy_mirror.py and runner/cli.mjs (TranscriptWriter, fed by a stub pi) and dumps the JSONL they write: --base REF diffs base vs working tree byte for byte, --incremental feeds opencode / agy sources in steps (per op, seeded chunks with half-written lines, a fresh mirror per poll) and requires the hub's parse to match the one-shot output, --real adds read-only copies of the lab's opencode db and agy brain/. Committed synthetic fixtures (mirror_fixtures/) and sidecar/test_mirror_replay.py run without private data. Clock, output paths, git branch, run liveness and temp paths are frozen or normalised; no product code changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
526 B
Python
10 lines
526 B
Python
"""Synthetic sources for ``mirror-replay.py``: what opencode, agy and pi
|
|
write, as ordered lists of operations (``opencode.py``, ``agy.py``) or the
|
|
event stream ``pi --mode json`` prints (``pi.py``). Made up from the shapes
|
|
the mirrors' unit tests use — no real conversation is in here."""
|
|
|
|
# Every clock the converters read during a replay is this instant (plus the
|
|
# settle steps): 2099-01-01T00:00:00Z. A timestamp from 2099 in a dump was
|
|
# written from the mirror's clock, not from the source.
|
|
FROZEN_NOW = 4070908800.0
|