First experiment: Replay an old event and inspect the state
Replay an old event while a task is executing. Check whether the system returns the original receipt and preserves the current state.
Use Python 3.10+. Download and extract the offline lab. Open a terminal at the extraction location and enter the harness-journey directory containing journey.py. Download the offline lab ↓
Run these three lines in order. To run again, use the same new work directory in both Python commands.
cd harness-journey
python3 -B journey.py scenario --name replay_conflict --work ./journey-first-replay
python3 -B journey.py verify --work ./journey-first-replay
Check your result
The last command exits successfully. In this excerpt from an actual run, passed is true, failed is empty, and event_sequence passes.
{
"passed": true,
"checks": [
{
"id": "event_sequence",
"passed": true,
"actual": null
}
],
"failed": []
}
Open journey-first-replay/report.json to check the replay details. In the actual report, the old receipt still shows ready at sequence 1, and a new event that tries to move back to ready is rejected.
{
"replayed_ready_receipt": {
"seq": 1,
"status": "ready"
},
"backward": {
"observed_error": "status_transition"
}
}
Practice a failure by topic
Extract the offline lab and run these commands in the folder containing journey.py. Use a fresh work directory each time and inspect its report.json.
Check tenant rotation and reservations
python3 -B journey.py scenario --name fair_queue --work ./journey-fair_queue
python3 -B journey.py verify --work ./journey-fair_queue
Check fair_queue.rounds in report.json for admission order a1, b1, a2, b2. New tasks must wait while the slot is held.
Replay old events and inspect the state
python3 -B journey.py scenario --name replay_conflict --work ./journey-replay_conflict
python3 -B journey.py verify --work ./journey-replay_conflict
Replaying the ready event returns its old receipt. Check that the state stays executing and conflicting identities or sequence numbers are rejected.
Interrupt a migration and verify rollback
python3 -B journey.py scenario --name migration_rollback --work ./journey-migration_rollback
python3 -B journey.py verify --work ./journey-migration_rollback
Compare workflow snapshots and runtime records before and after interruption. Verify that a successful migration keeps the operation key, approval, and reservation.
Check when fallback must be blocked
python3 -B journey.py scenario --name fallback_blocked --work ./journey-fallback_blocked
python3 -B journey.py verify --work ./journey-fallback_blocked
Inspect rejection branches for permissions, capabilities, budget, and deadlines. For an unknown outcome, check that reconciliation uses the original operation key.
Reproduce rejection of a proposal with missing evidence
python3 -B journey.py scenario --name evidence_missing --work ./journey-evidence_missing
python3 -B journey.py verify --work ./journey-evidence_missing
Confirm that the proposal citing only d-general receives missing_policy_evidence. Check that the valid candidate then reaches approval.