Skip to content

daemon-idle: an A-B-A reading for the idle bound's re-derivation; gate.yml's E2E_MINUTES - #319

Merged
SSFSKIM merged 6 commits into
masterfrom
p5-o10-idle-aba
Oct 29, 2026
Merged

SSFSKIM merged 6 commits into
masterfrom
p5-o10-idle-aba

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 29, 2026

Copy link
Copy Markdown
Owner

The idle bound's re-derivation reading, owed after P5 O10 M10 (P5 Decision Logs 107, 124 and 125; the architect's rulings 565 and 575). A fixed bound on the daemon shape flaps because the machine drifts between jobs. tonight's runs saw the engine host read 65 to 72 MiB with no code change, which put master itself over 101,113 KiB. This case measures that drift and cancels it: it reads today's detached supervisor (A), the daemon shape (B) and the supervisor again (A') back to back in one job, so B can be compared with the A mean taken in the same job.

What changed

  • e2e/daemon-idle.spec.ts, its fifth case ("A-B-A").
    • It runs the first case's scene three times, each leg a fresh launch on its own scratch directory, with the shape named in that launch's MAWS_HOST_MODE.
    • Each leg's scratch is removed and its processes ended before the next leg launches.
    • Each window uses the first case's settle (120 s), window (600 s) and readers, and is held to the existing validity rule.
    • It writes test-results/daemon-idle-aba.json and asserts no bound.
    • The scene, settle and window take the shape and run as parameters. The other cases pass what they passed before.
    • MAWS_DAEMON_IDLE_TRIAL=1, which no script sets, shortens the legs for a local end-to-end trial.
  • test/support/daemon-idle.ts.
    • abaDeltas computes B against the A mean, as a difference and as a ratio, and A against A'. It also gives each of B's processes against its own A mean.
    • abaLine formats the job log's line.
    • test/support/daemon-idle.test.ts covers both.
  • package.json.
    • New script e2e:daemon-idle-aba (-g "A-B-A").
    • |A-B-A is added to the grep-invert of e2e:daemon-idle and e2e:daemon-idle-baseline, so neither runs it.
  • The gate.
    • MEASURED_E2E lists daemon-idle-aba.
    • E2E_MINUTES is a new gate.yml list of name=minutes. The plan (gate-plan.mjs) gives a listed group's job those minutes in place of its class's, with the Mac wait still added. daemon-idle-aba=90 puts its timeout at 100 on the home Mac.
    • The plan refuses a malformed entry, a non-positive minutes value, or a name with no package script, whatever the run. gate-plan.test.mjs has the rows. CI-opt reviewed this design.

The first readings (on d0802b2, the mini after its 2026-10-28 reboot)

  • A-B-A, run 40778748076, valid:
    • A, detached: 65,537 KiB (load 4.5).
    • B, daemon: 95,907 KiB, which is mawsd 29,409 plus the engine host 66,497 (load 4.7).
    • A', detached: 66,609 KiB (load 3.7).
    • A against A' is -1,072 KiB. B against the A mean is +29,834 KiB, x1.452 against the bound's x1.5. The engine host in B reads +424 KiB against its A mean, so the daemon shape's cost is mawsd's.
  • Plain baselines:
    • 40791210494: 66,737 KiB (load 2.4), valid.
    • 40789442114: void on load (9.5).
  • For DL 107: the valid detached readings 65,537, 66,609 and 66,737 have a median of 66,609, and x1.5 gives 99,914 KiB. The architect records the bound.

Validation

  • Class 1a on d0802b2: 40757928082, GREEN.
  • The landing gate on this head follows in a comment.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

…'s re-derivation

The idle spec's fifth case runs the first case's scene three times back to back in one job, each leg a fresh launch on
a scratch of its own with the shape it names in that launch's MAWS_HOST_MODE: today's detached supervisor (A), the
daemon shape (B) and the supervisor again (A'). A leg's scratch is removed, its processes ended, before the next
launches. Each window is the first case's settle, window and readers, each held to the existing validity rule. Its line
(abaLine) names B against the mean of A and A' (with the ratio), A against A', each of B's processes against its A mean,
and each window's per-process medians, CPU and load; it writes test-results/daemon-idle-aba.json and asserts no bound.

The scene, the settle and the window take the shape and the run as parameters (the other cases pass the process
environment's shape and IDLE_RUN, unchanged); the enrolled case's window validity and reading helpers move to module
scope for both. MAWS_DAEMON_IDLE_TRIAL=1, set by no script, shortens the A-B-A legs to a 10 s settle and a 60 s window
for a local end-to-end trial. A measured group on MEASURED_E2E with its package script; the first case's two scripts
leave the case out.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…idle-aba takes 90

A group whose own run needs more than its class's minutes is named on gate.yml's E2E_MINUTES as name=minutes, and the
plan gives its job those minutes in place of its class's, the wait of its runner's start still added on top (CI-opt's
design: every per-group policy is a gate.yml list the plan reads). The plan refuses, whatever the run, an entry that is
not that form, whose minutes are not a positive whole number, or whose name has no package script. daemon-idle-aba
takes 90: its three settles and windows are 36 minutes and its scenes about 3 more, which its two settle guards'
15-minute bounds and its build would outgrow in a measured group's 60; on the home Mac its timeout is 100.

gate-plan.test.mjs: the new list's rows (its own minutes on and off the Mac, a group off the list keeping its class's,
each malformed entry refused), and the repository's variables as they stand now carry E2E_MINUTES, so the measured
groups' placement pins daemon-idle-aba at 100 from gate.yml itself.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…idle-aba

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T00:21:52.570159Z 178eb02 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.

…e 300 minutes

A 309-digit entry passed the pattern, became Infinity and serialized as a null
timeout instead of failing closed. Cap at 300: GitHub-hosted jobs stop at 360
minutes and the longest start wait added on top is 60.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…ooted mini, 66097 KiB and 0.12 s (P5 Decision Log 107)

Three distinct runs at d0802b2: 40791210494 (66737 KiB, load 2.4), 40795119204 (66097, 3.7) and the A-B-A 40778748076
as the mean of its detached windows (66073; 65537 and 66609), the architect's record (his 583 and 586). The bound moves
from 101113 KiB and 1.11 s to 99145 KiB and 1.12 s. O2's record stays as history (DAEMON_IDLE_BASELINE_O2). Two
baselines were void on load from Spotlight's post-reboot reindex, one of them at 178eb02, named in the comment.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…exing, not Spotlight's file index

CI-opt's correction: Spotlight file indexing is off on every volume of the mini
(mdutil -s -a); the processes were corespotlightd and spotlightknowledged.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
@SSFSKIM

SSFSKIM commented Oct 29, 2026

Copy link
Copy Markdown
Owner Author

The landing set at head a23a131 (tree 96e59a29, merge base a26a493 = master, CLEAN):

  • Class 1a + hosted e2e:default at 2673a71, run 40797738368: static, unit 4/4 and probes passed. e2e:default had one red, e2e/presentations-export.spec.ts:618 (three PNGs, two distinct). That is the known PNG-uniqueness flake (MAWS/conditional friction entry, now at 4 sightings) in a spec this PR doesn't reach.
  • a23a131 is 2673a71 plus a comment-only change in test/support/daemon-idle.ts. It names the void runs' cause, Apple Intelligence's app-content indexing, in place of Spotlight's file index, which is off on the mini.
  • static at a23a131: run 40799100807, green.
  • hosted e2e:default at a23a131: run 40799842778, green, no flaky line.
  • CI-opt's review of the gate.yml entry and gate-plan.mjs: OK at 2673a71, nothing blocking.

The baseline record (2673a71): d0802b2, runs 40778748076 (the A-B-A's A mean, 66,073), 40791210494 (66,737) and 40795119204 (66,097). That gives a median of 66,097 KiB and CPU 0.12 s, so the bound is 99,145 KiB and 1.12 s.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

@SSFSKIM
SSFSKIM merged commit a14c683 into master Oct 29, 2026
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
… mini, 99145 KiB and 1.12 s; the A-B-A case (#319); #318 recorded

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
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