Self-oracle counterexample: calibration selector finds no history when history names repeat (seed 1187311827)

Ouverte
#50 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@KyleAMathews y travaille déjà.

Depuis le 16/11/2026.

  • #122 par @KyleAMathews — ouverte

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
25/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
javascript
Domaine
testing-qa

Piste de recherche

Start from the calibration-history selector added in #31 (e2af13a), under packages/oracles/src, and find where an enumerated source must match exactly one history when history names repeat. Run the replay command in the issue to reproduce the failure, then shrink the seed path. Done means a RED oracle test in tests/ that fails on the duplicate-name case, followed by a fix or a recorded coverage-map entry.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

A random-seed run of the framework self-oracle on main found a counterexample in the calibration-history selector from #31 (e2af13a). The selector found no history for an enumerated source when the property declares duplicate history names.

  • Run: PR #46, run 43288589486, job 131428487356, "Framework self-oracle (3/3)". #46 changes no file under packages/oracles/src or tests/.
  • Unit: self-oracle.framework > random seed: generated
  • Violation: checkpoint "child", law registration.
  • Difference: unexpected child load/suite errors: {"id":"self-oracle.synthetic-0","errors":["self-oracle.synthetic-0: calibration history selector for \"cal-0\": enumerated \"items 0 | 1\" must identify exactly one history (found 0)."]}
  • History shape: duplicateHistoryNames: true, an enumerated source [[0]], and an unbound probe.
  • Replay:
    ORACLE_SEED=1187311827 ORACLE_PATH=1:0:0:0:1:1:1:1:2:5:2:2:2:2:2:2:2:2:2:2:2:2 ORACLE_PROPERTY='self-oracle.framework' ORACLE_UNIT='random seed: generated' vitest run -t '^self-oracle\.framework(?: | > )random seed: generated$'
    

Either the selector mishandles duplicate history names, or the grammar generates a property that #31's model does not cover. Fix it oracle-first: shrink it, decide whether the defect is in production or in the model, show RED, then fix. Otherwise, record it in the coverage map with this trace.

This issue was written by Isaac.

Langage dominant
JavaScript
Étoiles
5
Forks
1
Merge moyen
8 h 31 min
PR mergées (30 j)
60

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de TanStack/oracles

Toutes les issues de TanStack/oracles

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.