Skip to content

test(interaction): stop the interaction-contract lane waiting real time - #4680

Merged
thymikee merged 1 commit into
mainfrom
ci/interaction-contract-real-time-waits
Nov 18, 2026
Merged

thymikee merged 1 commit into
mainfrom
ci/interaction-contract-real-time-waits

Conversation

@thymikee

@thymikee thymikee commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • The lane's daemon scenarios each paid the post-open first-screen stabilization on every open: the next capture polled on a 200ms schedule, so each scenario scripted and absorbed two settling runner reads. The harness's open now passes the product flag postGestureStabilization: false and scripts the one read its own snapshot performs. The lane proves dispatch shape, not the first-screen wait, which the provider-scenarios lane owns with its own scripted settling pair.
  • Three --settle contract tests slept the settle loop's quiet windows on the wall clock; they now pass the harness's existing createContractClock, so the loop polls on the contract clock.
  • The daemon-backed scenarios that lacked the documented parallel-budget exception now carry PARALLEL_PROVIDER_SCENARIO_TIMEOUT_MS, matching their siblings; coordinate errorTaxonomy timed out at the 5s default on main (run 44134141716).

Validation

  • vitest run --project interaction-contract: 11 files / 98 tests pass. Whole-lane duration 15.1–16.0s → 9.5–10.0s (three runs each, unloaded host). The three settleObservation tests go from ~1.5s each to under 6ms; the per-daemon-test floor drops from ~530ms to ~340ms.
  • tsc -b, oxlint --deny-warnings, oxfmt --check clean on the touched files.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.40 MB 6.39 MB -5.6 kB
Package (unpacked) 6.40 MB 6.39 MB -5.6 kB
Package (download) 1.94 MB 1.94 MB -1.9 kB

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 24.2 ms 25.2 ms +1.0 ms
CLI --help 51.4 ms 47.8 ms -3.6 ms

The lane's daemon scenarios each paid the post-open first-screen
stabilization: the open marked the next capture, whose loop polled on a
200ms schedule, so every scenario scripted and absorbed two settling
runner reads. The open now opts out with the product flag
postGestureStabilization: false, and the harness scripts the one read
its own snapshot performs. The scenarios prove dispatch shape, not the
first-screen wait, which the provider-scenarios lane owns with its own
scripted settling pair.

Three --settle contract tests slept the settle loop's quiet windows on
the wall clock while the harness already exposes createContractClock;
they now pass it, so the loop runs its polls on the contract clock.

The daemon-backed scenarios that lacked the documented parallel-budget
exception now carry PARALLEL_PROVIDER_SCENARIO_TIMEOUT_MS, matching
their siblings; coordinate errorTaxonomy timed out at the 5s default on
main (run 44134141716).

Local whole-lane duration: 15.1-16.0s to 9.5-10.0s; the settle tests go
from ~1.5s each to under 6ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thymikee
thymikee force-pushed the ci/interaction-contract-real-time-waits branch from 392045c to d683ab2 Compare November 18, 2026 10:35
@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of d683ab2

No open findings.

Reviewed with this repository's own Sentinel configuration (972b5a5a2306).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee

Copy link
Copy Markdown
Member Author

The PR is ready at d683ab2: I found no problems in the code. All 18 checks pass or are intentionally skipped, including Integration Tests, Coverage, Lint/Typecheck, Repo Guards and the Smoke Tests, and the diff only touches the interaction-contract lane that Integration Tests runs directly. There are no conflicts, no open review threads, and nothing else stands in the way of merge.

Not blocking: the 14-test timeout wrap re-indents about 25 tests, so the diff is large for a flag, a constant and three clock lines; you could keep the timeout only on the coordinate contract test the issue named, or drop it if the flag alone clears the timeouts. The three settleObservation tests would still pass without the injected clock, so nothing fails if it is removed; no change is needed, and you can take or leave both notes.

The timing numbers come from the PR body.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 18, 2026
@thymikee
thymikee merged commit 684c594 into main Nov 18, 2026
18 checks passed
@thymikee
thymikee deleted the ci/interaction-contract-real-time-waits branch November 18, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant