In April, Jonathan Murray asked what happens when an agent picks up on Wednesday a task that started on Monday. Does the new session know which earlier decision it follows? My reply said the chain survives because the receipt is on disk. When I tried the published recorder in a fresh process, I found a hole in that answer. Jonathan’s original comment

With Agent-Blackbox 0.3.0a4, I could see the event in the JSONL file, but a new CLI process couldn't find it. The recorder also kept the signing key in memory. Version 0.3.0a5 rebuilds the event index when it opens the journal and saves each recorder’s public verification key. I tested the Monday-to-Wednesday handoff by letting one Python process exit completely before starting the next.

Here’s the experiment. The planner decides to retry a job. A worker starts in a fresh process and records that it scheduled the retry. The handoff is one event hash in a text file.

1. Record the planner’s decision, then exit

Start in an empty directory with a Python virtual environment active. The shell commands below use Bash. Install the same alpha release I tested. Agent-Blackbox 0.3.0a5 on PyPI

python -m pip install "agent-blackbox-jep==0.3.0a5" 

Save this as planner.py.

from pathlib import Path from agent_blackbox import AgentBlackbox box = AgentBlackbox(storage="journal") @box.trace("planner") def plan(): return "retry job 17" plan() parent = next(reversed(box.events)) Path("parent.hash").write_text(parent, encoding="utf-8") print("planner recorded", parent) 
python planner.py 

When the prompt comes back, the planner has exited. You can close the shell here. To continue, return to the same directory and activate the same environment.

2. Give the worker the parent hash

Save this as worker.py. Opening journal lets the worker read the planner’s record. Passing parent_event_hash=parent declares which event this new decision follows. Sharing a journal alone does not create that link.

from pathlib import Path from agent_blackbox import AgentBlackbox parent = Path("parent.hash").read_text(encoding="utf-8").strip() box = AgentBlackbox(storage="journal") @box.trace("worker", parent_event_hash=parent) def schedule_retry(): return "retry scheduled for job 17" schedule_retry() child = next(reversed(box.events)) Path("child.hash").write_text(child, encoding="utf-8") print("worker recorded", child) 
python worker.py 

3. Reopen the journal and verify both signatures

Both writers have now exited. Each of these commands starts a new CLI process.

agent-blackbox --storage journal review "$(cat child.hash)" agent-blackbox --storage journal verify "$(cat parent.hash)" agent-blackbox --storage journal verify "$(cat child.hash)" 

On my run, review returned two entries in order, planner followed by worker. The worker’s parent_event_hash matched the contents of parent.hash. Both verify commands exited with code 0 and printed the same result.

{ "verification_status": "verified", "valid": true } 

For a handoff on another day, keep journal/events.jsonl and the recorder’s trusted public keys in journal/trusted-keys/. Pass the parent hash with the job. That is enough for the next process to append a linked event and for a later reader to verify both records. If the trusted keys are missing, verification reports unknown_key and exits with code 4.

The example recovers a verifiable history of two recorded decisions. Resuming the work itself still requires whatever state the worker needs, such as the job payload or a checkpoint. In this example, the worker signs an event containing a digest of its return value. To find out whether job 17 actually ran, I would still check the job runner.

I used OpenAI Codex to draft this walkthrough and run the examples against the published Python package.