Skip to content

feat: prototype a shared exact contract tester (efbk7s) - #738

Open
dafuga wants to merge 14 commits into
mainfrom
feat/efbk7s-contract-tester
Open

dafuga wants to merge 14 commits into
mainfrom
feat/efbk7s-contract-tester

Conversation

@dafuga

@dafuga dafuga commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Purpose

Tracker efbk7s evaluates whether one shared runner can execute locked contract cases without generating a separate test file for each module.

  • Adds a versioned JSON schema for exact callable results and errors, Commander results, and real Chromium interactions.
  • Checks target ownership and declared provider operations before execution. Node jobs and browser cases get isolated state.
  • Includes a 20-module pilot and a scanner for the 616-module frozen inventory. Invoke the runner explicitly with --experimental. Runner usage

Evidence

  • The frozen scan matched 616 of 616 manifests on 03715fac893. Of 4,543 declared rows, 1,333 fit the version 1 shapes after an author supplies exact values.

  • The exact-head pilot passed 39 of 40 cases, including all five real Chromium cases. The preserved DeviceRevocationService transcript starts at removal, while current code first resolves the device holder and pairing.

  • Three four-worker samples on harbor-mbp-2 ran 100 module jobs each and took 43.5, 98.4 and 102.9 seconds. Every sample passed 195 of 200 cases, with five repeats of the same device-revocation discrepancy and zero invalid or skipped cases. The samples each repeated 20 distinct frozen modules five times.

  • Six focused runner tests passed. The same six broader guard assertions and the same registry and audit findings were present on main and the candidate. The affected-check request on harbor-mbp-2 is 85203de8-0dea-4d43-ac2d-45feb8402077.

  • Hosted Relevant checks on 5f669798a9 stopped at packages/reports/test/entity-preview-actions.spec.ts, before reaching the new runner tests. A separate PR on the same base stopped at the same spec. The harbor-mbp-2 request is still queued. Hosted receipt · Comparison receipt

Recommend shadow use for reviewed, supported cases. Qualify 100 distinct modules against the end-to-end budget and preserve existing verification for unsupported rows before widening adoption.

[ai-generated]

@dafuga
dafuga force-pushed the feat/efbk7s-contract-tester branch from 5f66979 to eabc09a Compare December 1, 2026 12:20
@dafuga
dafuga marked this pull request as ready for review December 1, 2026 12:20
@dafuga
dafuga marked this pull request as draft December 1, 2026 13:51
@dafuga
dafuga marked this pull request as ready for review December 1, 2026 15:11
dafuga added a commit that referenced this pull request Dec 1, 2026
…ster

Addresses cej0t1 review of PR #738: removes per-module lookup tables, verifies exact equality against locked evidence.values/throws, refuses empty/incomplete checks, drops prose lane regexes, and distinguishes timeouts.
dafuga and others added 14 commits December 1, 2026 20:50
…ster

Addresses cej0t1 review of PR #738: removes per-module lookup tables, verifies exact equality against locked evidence.values/throws, refuses empty/incomplete checks, drops prose lane regexes, and distinguishes timeouts.
Adds scripts/contract-capture-states.ts and --capture-states on scripts/contract-tester.ts. Reads contract states with plain code, mounts each state in Chromium in light and dark themes, and writes PNGs plus manifest.json.
…tract data

Browser lane: exact matches, owned files only, settled checks, real
deadlines, unknown callbacks, page error classes, and the pipeline's
fixture data. Type lane decides from typeCheck data against the real type.
New call lane decides a service or function call carried as data (invoke).
Node render runs in a killable child; html selectors refuse what they do
not support; --require-all for shadow runs; capture reports skipped states.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pe7GR4XNht9Y7YoDKcV8n9
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pe7GR4XNht9Y7YoDKcV8n9
…ex functions

Move type declarations into sibling .types.ts files, split the five over-complex
functions into small helpers, move the shadow test fixtures into a support file, and
make node render rows check that the rendered component is a source file the unit owns
(reusing the browser lane's ownership check), with a refusal test.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pe7GR4XNht9Y7YoDKcV8n9
@dafuga
dafuga force-pushed the feat/efbk7s-contract-tester branch from 78cd713 to 8d84a16 Compare December 1, 2026 20:50
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