A review check for oracle pages: a generalising claim must name the row that discriminates it

Open
#5,652 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
20/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp, powershell, python

Research direction

Start with scripts/test.selftest.ps1 and docs/vb6-fidelity-oracle/README.md; the proposed script is scripts/check-oracle-claims.py or similar. The row marker convention still needs agreement with hexide-docs, and the issue names an owner, so check with them before starting. Done means a diff-range checker reports generalising phrases on added oracle lines, skips lines or paragraphs that name a discriminating row and lines outside the oracle folder, and passes the specified self-tests.

Written by the indexing model from the issue text.

Description

chore documentation small tooling

A review check for oracle pages: a generalising claim must name the row that discriminates it. Owned by hexide-int, from the retro of the week of 2026-11-16 (theme "wide oracle rules"), which Jen approved on 2026-11-25. Filed now and built once the pace alarm clears, under the goal-only cut.

The defect it catches

An oracle page states a rule more widely than its rows can tell apart. Each case below cost a review round or a VM run to correct. One reached a pinned test value.

  • A nested UDT "lays out inline, exactly as its fields would" (#4241): its only nested row came to 12 bytes under either reading.
  • Round sees the 15-digit value "for the same reason" as Format (#4017): from rows that couldn't tell the two rules apart.
  • Len of a dynamic array "counts 4": from Long and String elements, which are both 4 bytes.
  • Len "returns Integer": from 6 and 40,000, until 32,767 and 32,768 were measured.
  • LoadPicture's page said a property "decides nothing" without the row where the candidate rules differ.

The habit didn't hold, so it needs a check

docs/vb6-fidelity-oracle/README.md already asks for the measurement, not just the conclusion. The rule was also in the owner's own notes, and still wasn't applied to the owner's own pages.

Measured on main at ff7260d3e

Case-insensitive counts over the 401 pages under docs/vb6-fidelity-oracle/:

Phrase Lines Pages
"decides nothing" 4 3
"for the same reason" 3 3
"regardless of" 2 2
"whatever the" 62 55
"always" 102 64
"never" 393 176

"always" and "never" are too common to flag across the corpus: most are honest descriptions of a single measured row. So the check looks only at a pull request's added lines, not at the whole folder.

The proposal

  • A script, scripts/check-oracle-claims.py or similar. Given a diff range, it lists every added line under docs/vb6-fidelity-oracle/ that carries a generalising phrase.
    • The phrases: "decides nothing", "for the same reason", "regardless of", "whatever", "always", "never", "every", "any", and "the same as".
    • A line is not listed when it, or its paragraph, names a discriminating row by the page's own row convention. That convention is to be settled with hexide-docs, which co-owns the oracle pages; one option is a marker like "(row …)" or "discriminating:".
  • Where it runs: in review first, by the reviewer of every oracle PR, as an advisory list.
    • Each listed line is then answered by a row, reworded, or left with a stated reason.
    • It does not fail CI until its false-positive rate on a week of oracle PRs has been measured.
  • Tests: a self-test in the style of scripts/test.selftest.ps1.
    • It flags: the #4241 and Len wordings, replayed as added lines.
    • It passes: a line naming its row, and a line outside the oracle folder.

Not touched: the existing pages. A sweep of the 401 pages is a separate decision.

Size: small. Owner: hexide-int (with hexide-docs for the row convention). Not goal work, so it's off the week's milestone.

🤖 Generated with Claude Code

https://claude.ai/code/session_01D6J1WTLzua3JFV5CNfdEhn

Dominant language
C#
Stars
11
Forks
6
Avg merge
1h 1m
Merged PRs (30d)
152

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 hexide-io/HexIDE

All issues in hexide-io/HexIDE

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.