Skip to content

live bench: a clock void that survives a real network, bounded waits for the code files, the owner's sheets in the operator's words - #555

Merged
SSFSKIM merged 1 commit into
masterfrom
bench-fit
Nov 10, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 10, 2026

Copy link
Copy Markdown
Owner

The live remote bench (e2e/remote-latency-live.spec.ts) fitted to give a valid run on a real network, with the owner approving in the app's own sheets. Test-support, e2e and docs only; nothing under src/.

  • Clock void (test/support/remote-latency.ts, the architect's ruling of 2026-11-10). A carrier is void when the start's and end's exchanges can't share one offset: over both sets, the greatest lower edge of the exchanges' intervals passes the least upper edge by more than 5 ms (gapMs, LIVE_BENCH.gapVoidMs). The judged interval is unchanged (the hull of the narrowest intervals). spreadMs is recorded and voids nothing. The guard on delays under zero is unchanged. Unit cases, written red first: constant offset under 100 ms of round-trip jitter (not void), 20 ms step between sets (void), step inside one set (void), 3 ms drift (not void, hull covers both ends), a wide exchange hides no step.
  • Code files (test/support/remote-bench.ts awaitCodeFile/CODE_WAIT, bench-sign-in.ts, the spec). The owner's app runs one pairing or enrollment at a time, so the runner now waits a bounded time for each file: pairingFile 10 min (one pairing code's life), codeFile 30 min (inside the enrollment code's hour, less the enroll's 18 min span). While it waits it says what the owner does and how long is left. A file is taken once it is non-empty and its size is stable. A file that never comes fails with its reason.
  • Operator's words. Every line now names Settings › Org › People (Pair a device…, Remove device…) and Settings › Org › Machines (Enroll a machine…, Drop… with "Its key may be compromised"), with Touch ID. No line says admin or "their terminal" any more.
  • Additions. The precheck reads the VM's load (/proc/loadavg through devcloud vm ssh). MAWS_REMOTE_BENCH_REMOVE_APP=1, set with MAWS_REMOTE_BENCH_REMOVE=1, removes the bench app's scratch profile; it refuses unless the path is a scratch profile and no process names it.
  • O7 Decision Log entry of 2026-11-10. Tracker: the 2026-11-05 row is closed and the 2026-11-02 row is narrowed to the run's own samples.

Gate: run 42833046505 green (static, unit; class 1a linux). The first run, 42828418593, failed only on the known detached-transport crash-ladder flake. Review: doperpowers:reviewer-medium, no findings. Not run: the live spec itself (Electron, real network).

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

… the runner waits for each code file; the operator's words name the owner's sheets

- remote-latency.ts: a carrier is void when, over the start's and the end's exchanges, the greatest
  lower edge of their intervals passes the least upper edge by more than 5 ms (gapMs, LIVE_BENCH.gapVoidMs).
  The judged interval stays the hull of the narrowest; spreadMs is recorded and voids nothing.
- remote-bench.ts: awaitCodeFile and CODE_WAIT (pairing 10 min, enrollment 30 min); enroll waits for
  codeFile, saying what the owner does and how long is left; the VM's load read from /proc/loadavg.
- bench-sign-in.ts and the spec: takePairing waits for pairingFile; every operator line names the
  app's sheets and Touch ID, not `admin` at a terminal; MAWS_REMOTE_BENCH_REMOVE_APP=1 removes the
  bench app's scratch profile.
- O7 Decision Log entry of 2026-11-10; tracker rows on the remote load closed and narrowed.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T14:40:25.829674Z fda6299 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit a262490 into master Nov 10, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fda6299ead

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +813 to +815
this.#quiet(span);
const act = `the owner, in their MAWS: Settings › Org › Machines, Enroll a machine…, the name ${m.name}, Make a code, Copy, and the code into that file (0600); the app makes it only once the pairing has ended, and the sheet stays open until the machine is enrolled`;
if (!(await awaitCodeFile(m.codeFile, { who: m.name, code: 'the enrollment code', act }, CODE_WAIT.enrollMs, { say: (line) => this.#deps.say(line), sleep: (ms) => this.#sleep(ms), now: () => this.#now() }))) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bound the code-file wait by the next quiet window

When enrollment starts less than 30 minutes before a quiet window but passes the existing 18-minute span check, the new code-file wait can continue into that window. For example, on the mini, starting at 06:15 UTC with no code file waits until 06:45. Although the status watch has its own shutdown timer, the already-staged scratch daemon does not; teardown's #miniOpsStop() and #endScratchProcesses() then refuse their remote calls through #quiet(), leaving cleanup incomplete and the scratch daemon running during the protected window. Include the code-file wait in the initial quiet-window budget, or end the wait early enough to complete teardown before the window.

Useful? React with 👍 / 👎.

@SSFSKIM
SSFSKIM deleted the bench-fit branch November 10, 2026 15:08
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