Gap e2e random seed: brokenOwner classifies if-false as branch-never-taken, owed indeterminate (main too)

未关闭
#172 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
43/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript
领域
devtools, testing

调研方向

Start by running the supplied replay command with the reported seed and inspect the gap e2e oracle configuration and the classification law at the "cli" checkpoint. Trace how the brokenOwner fault produces the if-false branch result in src/sut.ts; compare the oracle result with the expected indeterminate classification. Done when the replay no longer reports this difference and the relevant oracle checks pass.

由索引模型根据 Issue 内容生成。

描述

Random-seed counterexample in the gap report e2e oracle, found on #122's CI (run 5, job 135126725001, head 616dbcc5). It fails the same way on main 97a4e7a when the same history is replayed (the #122 reviewer's pool run, tag r122rev3-*), so it is main's and doesn't block #122 (M-20 / R42).

  • Unit: random seed: a declaration fault: brokenOwner
  • Law: classification, at checkpoint "cli"
  • Difference: src/sut.ts:f0:33:if-false#0: branch-never-taken, owed indeterminate
  • Replay (gap e2e oracle config): ORACLE_SEED=541762753 ORACLE_PATH=0 ORACLE_PROPERTY='oracle-gaps.report' ORACLE_UNIT='random seed: a declaration fault: brokenOwner' vitest run --config oracle-gaps/vitest.config.mjs gap-report-oracle -t '^oracle-gaps\.report(?: | > )random seed: a declaration fault: brokenOwner$'

Counterexample history, as CI printed it (CI cuts it at 2,000 characters, #81; the full log is on the maintainer's machine at /tmp/r122rev/job5-random1.log):

Counterexample: [{"functions":[[{"kind":"throwIf","message":"assertion"},{__proto__:null,"kind":"nearProbe","variant":"former","op":"!==","k":3},{__proto__:null,"kind":"readData","shape":"primitive"},{__proto__:null,"kind":"probeIf","op":"<","k":4}],[{"kind":"nearProbe","variant":"former","op":"<","k":7},{"kind":"oldProbe"},{"kind":"readData","shape":"array"}]],"containers":["free"],"overloads":[false,true,true],"owners":["a"],"library":[[{__proto__:null,"kind":"dollar"},{"kind":"dollar"},{"kind":"push","quote":"`"}],[{"kind":"if","op":"<=","k":3,"not":true,"quote":"`"}]],"libraryOwners":["none"],"runes":[[{__proto__:null,"kind":"runeDerivedBy"},{__proto__:null,"kind":"runeStateRaw"},{"kind":"runeEffect","rune":"$effect.pre"},{"kind":"runeStateRaw"}]],"derived":{__proto__:null,"params":"plain","field":false,"before":[],"form":"arrow","after":[]},"sourceSpelling":"linked","dotGen":true,"ownsSpelling":"redundant","wholeFile":"none","template":true,"tests":[{__proto__:null,"file":"b","route":"determinism","registered":true,"name":"plain","fn":1,"input":1,"judges":true,"law":"L","channel":"observe","flaky":false,"judgeBy":"soft","hangs":false,"slow":false,"shrinks":false,"draws":false,"ioWait":false,"stops":false,"rawImport":false,"cleanupThrows":true,"asProp":false,"then":{"route":"case","input":3},"work":null,"timed":false},{__proto__:null,"file":"a","route":"random seed","registered":true,"name":"route","fn":1,"input":0,"judges":false,"law":"L","channel":"expect","flaky":true,"judgeBy":"soft","hangs":false,"slow":false,"shrinks":false,"draws":false,"ioWait":false,"stops":false,"rawImport":false,"cleanupThrows":false,"asProp":false,"then":null,"work":null,"timed":false}],"witness":false,"authored":{"stmt":4,"kind":"apply"},"declaration":"wrapper","ownerless":false,"fault":"brokenOwner","stability":"none","ordinary":true,"lazyGate":false,"secondAuthored":false,"consoleOutput":true,"config":"object","configEnv":true,"setupGlobal":false,"native":"none","depSubpath":false,"unbuiltDep":false,"boot":true,"budget":"one","stopRuns":[],"onlyRun":false,"pragma":false,"cliPath":"plain","concurrentStart":true,"configFile":"vite.config.js","configPlace":"none","packageType":"module","configAwait":false,"configRequire":false,"contexts":4,"steps":null,"dataOwners":[],"exportOwners":["b","b","a"],"importer":"b","midrunBy":"a","midrunTarget":"helper","prePlugin":false,"fsRead":"none","laterSteps":[],"tornRows":false,"pauseEngages":true,"warmReplaced":false,"testRoot":"none","loadPlugin":false,"rejectBatch":0,"outMode":"explicit","logBlocked":false,"overlap":false,"stopWitness":false,"spawnStop":false,"spawnSignal":"SIGTERM","spawnDelay":161,"spawnOnStart":false,"claimScenario":false,"logLost":false,"supervisorDeath":false,"unsupervised":false,"psMissing":false,"holdOverlap":false,"replyHeld":false,"spinData":true,"siblingDir":false,"hookStops":false,"spinThrows":false,"slowStart":false,"shortWait":false,"absentObjects":["undefined","undefined"],"optionalChains":[{"links":1,"level":3,"call":"none","returns":"object"},{"links":1,"level":0,"call":"optional","returns":"object"},{__proto__:null,"links":1,"level":2,"call":"none","returns":"nothing"},{__proto__:null,"links":1,"level":2,"call":"plain","returns":"object"},{__proto__:null,"links":3,"level":0,"call":"none","returns":"nothing"},{__proto__:null,"links":2,"level":2,"call":"none","returns":"object"},{__proto__:null,"links":3,"level":2,"call":"optional","returns":"object"},{"links":2,"level":1,"call":"plain","returns":"nothing"}]}]

Not related to #107 or #171, which are other brokenOwner failures.

This issue was written by Isaac.

主要语言
JavaScript
星标
5
派生
1
平均合并
11 小时 18 分钟
30 天内合并 PR
66

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TanStack/oracles 的其他 Issue

查看 TanStack/oracles 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。