Skip to content

Two timing windows: Refresh during a parse, and a proof saved onto a replacement copy #644

Description

@harenome

Priority

P3 · When convenient: wording, layout, tests

Evidence

Two narrow timing windows left after #361 and #367. Both need a pause at an exact point to show.

  1. Refresh between a parse and its index write. clear_cache can finish after a loader publishes a parse file and before it takes jobs/index.json.lock. The loader then lists a job whose parse file Refresh just removed: job_index lists it, n_cached is 0.
  2. A replacement copy takes an old proof. Start a proof on a user copy, Use bundled entry, make a new copy with a different driver, then save the first proof. The new copy shows the old 7/7: path, key and schema all match.

Reproduction

  1. Pause load_job after its parse file is written, run Refresh, resume.
  2. As in item 2 above, from definitions.get to definitions.save.

Expected

Neither writer publishes a result for something that changed under it.

Acceptance

  • An index addition is published only while its parse file is still there and matches
  • A proof saves only onto the same entry it was started on, not a later copy at the same path

Related

#361, #367

Activity

  1. added
    bug
    P3
    on Dec 1, 2026
  2. added theissue type on Dec 1, 2026
  3. self-assigned this
    on Dec 1, 2026
  4. added 2 commits that reference this issue on Dec 3, 2026
    f93e400
    28037f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions