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

Aperta Adatta ai principianti
#334 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@pavithra-r06 ci sta già lavorando.

Dal 18/11/2026.

  • #341 di @pavithra-r06 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, security

Direzione di ricerca

Inizia da cmd_fork() in simple/ovl.py e dai controlli dei timestamp in simple/stamp.py; confronta il modo in cui vengono archiviate le ricevute delle esecuzioni sorgente con la directory timestamps/ del fork. Copia le ricevute originali di FreeTSA e DigiCert per le voci ereditate, quindi assicurati che la nuova voce abbia un timestamp separato. Il lavoro è terminato quando le ricevute ereditate sono conservate e python simple/stamp.py FORK --check ha esito positivo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Python
Stelle
26
Fork
64
Merge medio
2g 11h
PR unite (30g)
71

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AOSSIE-Org/OpenVerifiableLLM

Tutte le issue di AOSSIE-Org/OpenVerifiableLLM

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.