[BUG]: Forked runs omit timestamps for inherited chain entries

Open Beginner friendly
#334 3 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@pavithra-r06 is already working on this.

Since Nov 18, 2026.

  • #341 by @pavithra-r06 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend, security

Research direction

Start with cmd_fork() in simple/ovl.py and the timestamp checks in simple/stamp.py; compare how source run receipts are stored with the fork's timestamps/ directory. Copy the original FreeTSA and DigiCert receipts for inherited entries, then ensure the new entry is timestamped separately. Done means inherited receipts are preserved and python simple/stamp.py FORK --check succeeds.

Written by the indexing model from the issue text.

Description

bug
Bug Description

The fork command copies chain entries 0..K from the original run into the new fork, but it does not copy their RFC 3161 timestamp receipts.

In simple/ovl.py, cmd_fork() creates the new fork entry and calls:

stamp.stamp_entry(out, entry)

This timestamps only the new fork entry (K+1).

However, simple/stamp.py checks every entry in chain.jsonl and expects both FreeTSA and DigiCert timestamp files under the fork's timestamps/ directory.

As a result, the inherited entries have missing timestamp files in the fork, even when the original run contains valid timestamp receipts.

Steps to Reproduce

  1. Prepare a completed source run with a valid chain.jsonl and timestamp files for its chain entries.
  2. Fork the run at a valid Wikipedia boundary:
python simple/ovl.py fork \
  --run RUN \
  --data PREP \
  --at 30 \
  --exclude-page PAGE_ID \
  --out FORK
  1. Inspect FORK/chain.jsonl. It contains the inherited entries 0..30 and the new fork entry 31.
  2. Inspect FORK/timestamps/. The original timestamp receipts for entries 0..30 are not copied.
  3. Run:
python simple/stamp.py FORK --check

The checker reports missing timestamp files for inherited entries and exits unsuccessfully.

Expected Behavior

The fork should preserve the timestamp evidence for all inherited chain entries by copying their original FreeTSA and DigiCert receipt files into the fork's timestamps/ directory.

Only the newly created fork entry should require new timestamp requests.

The fork should retain the original timestamp evidence and pass python simple/stamp.py FORK --check.

Impact

Forked runs lose the independently timestamped history they inherit from the original run. This prevents a complete timestamp check of the fork and weakens the provenance evidence for its shared history.

Suggested Tests

  • Verify that timestamp files for inherited entries are copied byte-for-byte.
  • Verify that the new fork entry receives its own timestamp files.
  • Verify that stamp.py FORK --check succeeds when the source run contains valid timestamps.

Environment: OpenVerifiableLLM main, CPU-only fork tests; no GPU replay required.

Steps to Reproduce

No response

Logs and Screenshots

No response

Environment Details

No response

Impact

Medium - Feature works but has issues

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Dominant language
Python
Stars
27
Forks
72
Avg merge
2d 19h
Merged PRs (30d)
45

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/OpenVerifiableLLM

All issues in AOSSIE-Org/OpenVerifiableLLM

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.