Repository navigation
Acceptance tooling: TextEdit cleanup, warm parity runtimes, accept-native items 1 and 10, mini harness residue (#157) - #165
Merged
Conversation
…dleID or "CFBundleIdentifier"), through key-guard's parseFrontmost (#157)
… absent before the run, launched after it began) and hands the front back; a cua-free witness of that path for the mini (#157)
…oof children take the TAP reporter from NODE_OPTIONS alone; the clean clone checks out the checkout's HEAD commit (detached too); fixtures use a made-up home, the mini's own layout is a declared home-rule exception; research-tree citations in comments are not dependencies
…h its log, mode, pause and hold files as arguments; the decision is a tested function (#157)
…iagnostics/<connection>.stderr.log only when a connection ends abnormally (#157)
…ernel's vendored Meriyah, so npm test runs without node_modules as the clean clone does; shell-exec's PEM fixture header is assembled; the research-tree pattern lives only in accept-native
…osts): a cell held by a CI pause past the 15-minute idle stop no longer restarts the runtime and differs (#157)
…xtEdit survives the harness cleanup and is quit only by the witness's teardown), then the started-by-run case; mini-rules gated --hold ignores the queue inside a CI-opt hold (#157)
…asons, only while the research tree is absent or on another platform, each listed with its count; any other skip still blocks. Evidence: the TextEdit witness on the mini (10/10) and the sitting log
…package (acceptance 10's clean clone, which proves npm test runs without node_modules); accepted only while the package is absent from the checkout (#157)
…nv and boundaryServeEnv set CUA_RUNTIME_IDLE_MS=0 themselves (they rebuild the env and dropped ownNodeEnv's value, so settingsFrom took the 15-minute default); a test feeds both builders into settingsFrom
…=UTC beside LC_ALL=C and lstart parses with Date.UTC, so a fall-back hour no longer picks the earlier occurrence and rejects the run's own launch; the parse tests compare UTC instants, including both occurrences of a fall-back hour
…s its own TextEdit as {pid, launch time} right after its open (exactly one new pid launched in or after its first second; none or several record none, and several are reported as ambiguous), and the cleanup quits only that recorded pid while it still has the same launch time. Nothing is re-scanned at cleanup, so a TextEdit the owner starts mid-run or relaunches, or a reused pid, is never selected. The witness captures identity the same way after its own opens
…irmed to hold no window but the fixture's (#157): cleanUpFixtureApp takes an explicit alone flag (exactly true); textedit.mjs passes it only when its close step saw TextEdit report no window at all and no GUI stop or identity loss happened. Unconfirmed, nothing is signalled, the quit step is BLOCKED naming the pid left running, and the front is still handed back. The witness, which owns every document its TextEdits hold, confirms it explicitly
…n returns (awaitLaunch): past the bound it is recorded as a miss, never guessed; the witness records how long the new pid took to appear (#157)
… new pid listed 16 ms after open)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #157
Fixes the acceptance and parity harness defects that #115's live runs on the Mac mini surfaced: the four items in #157's body and the ones its two comments added. The full account is in
docs/evidence/2026-10-18-acceptance-tooling/README.md.TextEdit fixture cleanup.
scripts/accept/fixture-app.mjscaptures the run's own launch right afteropenreturns. It polls, bounded and timed, for a new pid and records the pid with its UTClstartlaunch time. More than one new pid is treated as ambiguous; a reading past the bound is a miss, never a guess.Paused parity cells. Every repl-parity lane serve runs with
CUA_RUNTIME_IDLE_MS=0on both hosts, set inownNodeEnvand again in the rebuiltcellsServeEnvandboundaryServeEnv. A CI pause past the 15-minute idle stop no longer restarts the runtime, so the cell gets no restart notice and keeps its REPL state.accept-native item 1. The two failing tests were not specific to the mini. accept-native puts the TAP reporter in NODE_OPTIONS, and
verifyUnitProofsadded a second--test-reporter; with two reporters and one destination,node --testrefuses to start. The proof children now take the reporter from NODE_OPTIONS alone.accept-native item 10.
npm testruns withoutnode_modules.Declared skips (approved by the dispatching session). accept-native's suite verdict accepts a fixed list of exact skip reasons, each only while its gate is truly absent:
Each accepted skip is listed with its count. Any other skip still BLOCKS.
Mini harness residue.
lsappinfospellings.gated --holdignores the queue inside a CI-opt hold.scripts/mini-watch.mjslands the untracked/tmpwatch with a required--log.<out>/diagnostics/only when a connection ends abnormally.~/Developer/GitHub/cua-parityon the mini was reset to main.Last-tab guard (comment 1). Nothing added. Every harness close is a cell in a cua session and reaches Chrome as
Target.closeTargetthrough cua's host, the only Chrome route. Ending a session can close the user's Chrome window and kill the profile's extension host: no last-tab guard when closing agent tabs #148'skeepWindowalready guards that path.Validation Evidence
env -ienvironment, from a detached checkoutnode scripts/mini-rules.mjs gated -- … node scripts/accept-native.mjs --items 1,10at 8318fe3docs/evidence/2026-10-18-acceptance-tooling/accept-native-items-1-10/acceptance.jsonnode scripts/mini-rules.mjs gated --hold -- … node scripts/accept/textedit-cleanup-witness.mjsat c46afe6, inside a CI-opt holdopen. Pid running before (1650) survived the harness cleanup. Run's pid (1924) recorded and quit. No TextEdit left; Terminal in front (checked independently).textedit-witness/witness-c46afe6.json; the e9cdc1f run was 10/10NODE_OPTIONS="--test-reporter=tap --test-reporter-destination=stdout" node --test test/repl-parity/coverage.test.mjs test/repl-parity/inventory.test.mjs--test-reporter must match the number of specified --test-reporter-destination); after: 11/11node --test test/repl-parity/topology.test.mjs test/repl-parity/fixture-launch.test.mjsCUA_RUNTIME_IDLE_MS=0, and both rebuilt envs givesettingsFrom(...).runtimeIdleMs === 0node --test test/accept-*.test.mjs test/mini-*.test.mjs "test/repl-parity/**/*.test.mjs" test/cli.test.mjs test/secrets-project.test.mjsnpm run test:modsci(plan, plugin, test, verdict)Review:
doperpowers:reviewer-medium, two rounds.Residue
~/cua-115/home, the approved runtime copy, was removed on 2026-10-18. A fresh install would put a new helper on disk, which raises a screen-capture confirmation only the owner can answer, and the owner's resident home must not be touched. The cleanup path itself is proven by the cua-free witness above.ACCEPT_REMOTEinscripts/mini-rules.mjsstill pins Independence 2: cua's own sandbox for node_repl cells; drop the Codex binary and app-server #115 M0's sitting (94366c1,~/cua-115/home, which is gone). A reusable accept-native sitting script needs a ticket of its own: parameters for the SHA, the approved home and the flags, plus--holdandmini-watch.mjswiring. Independence 4: cua's own native accessibility engine (replace sky) measured against a native baseline #117 will need one.scripts/mini-watch.mjsis not yet wired intogated. It runs beside a driver by hand, as Independence 2: cua's own sandbox for node_repl cells; drop the Codex binary and app-server #115's/tmpcopy did. Agated --watchoption would make the stop rules automatic.