oracle-property: the History line is capped at 2000 characters, so a failing history cannot be filed in full

Offen
#185 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
testing

Rechercherichtung

Start with packages/oracles/src/oracle-property.ts and inspect reportText plus the failure output that prints the History: and replay lines. Check how the framework handles histories that cannot be shrunk back, especially fixed, constructed entries, and canShrinkWithoutContext. Done means full histories are retained in CI output, replay output names the history being replayed, and the history replay gap is addressed here or tracked in a linked issue.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

reportText in packages/oracles/src/oracle-property.ts caps every printed value at 2,000 characters:

function reportText(value: unknown): string {
  try {
    return encodeData(value, ``, `report`).slice(0, 2000)

The History: line of a failing oracle uses reportText, so a failing history is truncated. The CI log for the #184 failure (run 44588135077, job "random seed, 3/4") cuts the history at 2,000 characters, so the full history cannot be recorded from CI.

Why it matters: M, "Replay by history" (register 2026-11-16) says a filed counterexample records its full history, not only its seed. Replay and base-replay attribution run that exact history. With this cap, the filed history for #184 (random seed: a daemon pause that cannot engage, seed -1120189360) is incomplete in CI output. A local scratch edit that removes the cap printed the full 3,593-byte history (83 keys), which is how #184 was captured.

Needed: print the full history in the failure (the cap removed, or a separate full-history line that the CI log keeps), and have the replay line name the history it replays. Separately, a history that the arbitrary cannot take back is rejected by fixed and by constructed entries (canShrinkWithoutContext is false), so a captured history cannot yet be replayed by history through the framework's own entries. That is a second gap for the same replay rule and should be covered here or in a linked issue.

Related: TanStack/oracles#184.

Vorherrschende Sprache
JavaScript
Sterne
5
Forks
1
Ø Merge
11 Std. 18 Min.
Gemergte PRs (30 T.)
66

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TanStack/oracles

Alle Issues in TanStack/oracles

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.