Skip to content

Add workflow evaluation apparatus and initial CLI repairs - #325

Draft
KyleAMathews wants to merge 8 commits into
mainfrom
codex/oracles-feedback-tweaks
Draft

KyleAMathews wants to merge 8 commits into
mainfrom
codex/oracles-feedback-tweaks

Conversation

@KyleAMathews

@KyleAMathews KyleAMathews commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

This initial PR adds a reusable workflow for agent-session evaluations and repairs the first CLI problems those sessions exposed. The workflow records the task, agent settings, protected inputs, attempts, interventions, outcomes, and limits. Existing agent tools run the sessions.

CLI behavior

Repeated source options now select every named file:

oracle-gaps --package ./pkg --source a.ts --source b.ts

Previously, the parser silently retained only the final occurrence. Repeated flags and comma lists now accumulate. Every path undergoes validation, and aliases select each canonical file once.

Node's built-in parser handles option syntax. Malformed commands print a clear cause and recovery instruction, exit 2, and leave existing reports untouched. Empty source values appear explicitly as "". The resolved report directory survives supervisor and daemon reparsing, including a trailing --.

--only refuses unknown selectors, mixed known/unknown selections, and empty selector values before baseline tests. Known targets retain their existing outcomes. Generated IDs remain positional, so the README directs callers to obtain IDs from a current report.

What extra work means

An extra-work diagnostic reports unchanged observations with a higher count of instrumented site evaluations. That count does not establish a slowdown or its cause. A later public observation can expose a behavior difference that the current histories miss.

The message retains the affected test and measured counts. It directs that later observation first, then an adopted cost law when applicable. It no longer derives a proposed performance threshold from the observed ratio. Manuel's registration example in #214 motivated this distinction.

Evaluation apparatus and regression coverage

The evaluation directory contains brief, round, findings, and review templates, scenario recipes, a pinned source-selection fixture, and completed experiment reports. The reports distinguish task completion from evidence that an instruction change improves agent outcomes. The experiments do not establish a general instruction advantage.

The accompanying oracles cover source selection, effective options, native-pool selection and cache reuse, selectors and keys, report evidence, and error endings. Review repairs also preserve unexpected parser failures and reject malformed authored entries.

The return-validity repair withholds private falsy-return mutations only within its Boolean-consumer proof. Shorthand escapes, runtime class heritage, mixed value consumers, and selected later returns prevent that proof when callers can observe the changed value. This follows the existing validity guarantee without adding an application-oracle exception.

Verification

The pre-integration Arca run passed 785 baseline tests and killed all 24 selected authored regressions. Both diagnostic repairs first failed their strengthened oracles on unchanged production. Five real CLI controls exited 2 and created no report directory. Lint and formatting passed.

The integrated branch preserves main's merged runtime, evidence-store, and diff-base changes. On code commit e7fa78d0, all 1,298 baseline tests across 12 selected oracle files pass. All 26 selected authored regressions are killed, with zero nondeterministic tests. The real-Git receiving check also passes. The integration record retains source hashes, controls, outcomes, and failed integration attempts.

Full CI exposed compatibility failures beyond that targeted run. Commit 1bcc35c3 builds the package before Linux wiring tests and preserves literal invalid revisions with inline option syntax. Arca then passed 25 wiring tests and killed the selected wiring regression. Six invalid-revision controls each exited 2 and named the intended cause. These results do not establish a passing static suite.

Commit 0e77bbc5 also repairs a Windows driver comparison by resolving the returned package path before checking identity. Arca passed all 170 option tests and killed a wrong-package mutation. The Windows options oracle now passes.

Commit 74a1eacf exports the generated devBuild fixture helper so callers can observe its exact return. It also aligns argument-refusal checks with the approved rule that malformed commands need a clear error without report recovery. The static oracle now declares ownership of the functions its laws describe. Four saved CI counterexamples pass through the gap checker on Arca.

The full static attempt stopped at its unchanged 590-second bound before a complete report. It supplies no passing full-suite or mutation-closure claim. The fixture verification record preserves hashes and replay outcomes. CI at 74a1eacf completed with 70 passing checks and two failures. Both failures are the 12-second daemon argument determinism timeout, on Linux and Windows. All 38 end-to-end shards passed. The original targeted verification remains tied to e7fa78d0.

The four command shapes now register separately, with two determinism runs per shape and the same 12-second limit. Each shape also retains a refusal calibration. The driver records absent report options after a refusal, so the argument-meaning law reports the failure.

Arca passed all 34 tests and killed the existing argument-composition regression. Two physical forwarding controls also fail under the intended law. These controls do not establish subprocess mutation coverage. The budget verification record preserves the command mapping, source hash and results. Linux and Windows verification remains pending on the new head.

The branch also incorporates main at 7ad4013e. The law metadata retains both approved changes. Both saved refusal replays pass on the merged oracle pair. Their sampled formatter mutation is unowned, so these replays establish baseline compatibility only.

Review status and follow-ups

This is an initial draft for review. It makes no global zero-gap or merge-readiness claim.

  • The historical return-validity module inventory records 26 survivors and three unreached mutations. Targeted runs do not close that inventory.
  • A Vite-served mutation does not yet reach a separately spawned raw Node CLI. The subprocess controls establish wiring, not mutation coverage of that child.
  • The slow compatibility replay and speedup work remain separate. This PR adds no new optimization or copying-cost law.
  • Historical decision records identify their original source hashes. They do not claim verification of the final PR commit.

Start with the initial scope, the experiment explanations, and the verification record.

@changeset-bot

changeset-bot Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ce50102

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tanstack/oracles Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant