unchanged-reuse law reads a missing evidence.ran as zero

Open Beginner friendly
#146 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript
Domain
testing

Research direction

Start in gap-report-oracle.property.test.mjs and trace how observations supply evidence.ran to the unchanged reuse law. Make a missing ran fail loudly, then add a calibration that removes ran from one observation and verifies failure. The issue is done when that calibration fails as expected and existing behavior remains covered.

Written by the indexing model from the issue text.

Description

In the gap report e2e oracle, computedRuns = run.evidence?.ran ?? 0 (gap-report-oracle.property.test.mjs, from #126) reads a missing ran as "computed nothing". That would make the unchanged reuse law pass vacuously if the retention hook were ever unset for a judged run. No current driver path produces that, but the observation should throw on a missing ran instead (fail-fast). Found in the #126 merge-gate review (E1).

Repair: throw when ran is missing. Add a calibration that drops ran from one observation and must fail loudly.

This issue was written by Isaac.

Dominant language
JavaScript
Stars
13
Forks
1
Avg merge
11h 8m
Merged PRs (30d)
67

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 TanStack/oracles

All issues in TanStack/oracles

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.