Skip to content

Make functional tests independent of execution speed - #1696

Merged
max-sixty merged 1 commit into
mainfrom
codex/hosted-publication-diagnostics
Oct 4, 2026
Merged

max-sixty merged 1 commit into
mainfrom
codex/hosted-publication-diagnostics

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Functional tests and their instrumentation must preserve their result and exercise the same causal situation when execution is ten times slower. The testing instructions now distinguish controlled product time from monotonic hang deadlines, require completion or acquisition evidence instead of sleeps, and require delayed-completion and fault controls. They also clarify that fixing the wall-clock date leaves timers and browser rendering running.

The clock audit reproduced watcher false failures with tenfold completion delay: the same trusted Send action passes at 300 ms and reports lost words at 3000 ms; four input-owned rendering updates pass at 30 ms each and report movement at 300 ms each. The shift contrast uses the sensor's settled-reading stand-in and native browser layout. Removing its one-second cutoff in the scratch control restores the delayed pass while later passive movement still fails. TODO records the input cutoff and words-association findings alongside capped observer draining and retention, and process-race sleeps that can miss their claimed ordering. This change documents the rule and audit findings; watcher and process-test remediation remains in TODO.

Validation: native Chromium latency contrast, source audit, independent prose and contract review, and pre-commit checks pass.

This was written by Codex on behalf of max-sixty

@max-sixty
max-sixty merged commit d613feb into main Oct 4, 2026
4 checks passed
@max-sixty
max-sixty deleted the codex/hosted-publication-diagnostics branch October 4, 2026 01:32
max-sixty added a commit that referenced this pull request Oct 4, 2026
The browser health watchers could reject legitimate input work when it
completed more slowly, or declare success before delayed paint was
judged. Process race checks could pass before the competing process
reached its lock. This completes the clock remediation identified after
#1696.

Shift ownership now lasts through declared rendering completion and
preserves native animation, pointer, and painted endpoint evidence until
judgment. Draft-loss checks share exact trusted-input callback
provenance instead of elapsed windows; native-await fixtures explicitly
capture their committing callback. Native watcher clocks remain separate
from controlled product timers.

Lock races acknowledge actual kernel contention, adapter tests observe
completed scans, and reaper tests control the grace clock. Rest checks
execute due timer callbacks, elapsed-age tests fix their date, and
temporary server shutdown waits for active work to finish. Testing
instructions explain these boundaries, and the completed remediation
TODO is removed.

Validation: normal and ten-times-delayed completion controls pass while
independent passive shift/draft-loss controls still fail. Held paint,
resize, native animation retirement/replay, real draft submission, lock
contention, adapter lifetime, reaper decisions, and active-request
shutdown have targeted and independent review coverage. The fresh
Python/browser landing gate passes 2,117 tests, with one skipped,
including edited nightly cases. All 197 runtime checks and pre-commit
pass.

> _This was written by Codex on behalf of max-sixty_
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.

2 participants