Skip to content

refactor(ios-runner): restrict the tap-witness synthesized type route to the bare submit key - #2845

Merged
thymikee merged 2 commits into
refactor/2802-drop-swift-snapshot-warning-textfrom
refactor/2800-tap-witness-newline-only
Sep 23, 2026
Merged

thymikee merged 2 commits into
refactor/2802-drop-swift-snapshot-warning-textfrom
refactor/2800-tap-witness-newline-only

Conversation

@thymikee

@thymikee thymikee commented Sep 23, 2026

Copy link
Copy Markdown
Member

Summary

Stacked on #2834.

The tap-witness synthesized route now admits only what the daemon sends it: no mode plus "\n". Ordinary text uses append mode and keeps its production path. The dormant commit wait and its tests are deleted. fill's replacement wait and shared helpers stay.

Tests now send daemon request shapes: append text asserting field values, plus no-mode "\n" route and refusal tests. Touched tests live in UnitTests/. The hint and commands.md now name only type "\n".

Issue line refs have moved; the facts still hold. 13 files. Closes #2800

Validation

Rebased onto main at a913cb222. Signed macOS host lane: 233/233 at 60e533284. check:affected --run is green at this head. The evidence below is from before the rebase.

SHA 7af257bee.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Sep 23, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-23 18:24 UTC

@github-actions

github-actions Bot commented Sep 23, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
Installed (including dependencies) 4.79 MB 4.79 MB -3.2 kB
Package (unpacked) 4.79 MB 4.79 MB -3.2 kB
Package (download) 1.43 MB 1.43 MB -363 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 28.0 ms 28.7 ms +0.7 ms
CLI --help 79.8 ms 81.5 ms +1.7 ms

@thymikee
thymikee added this pull request to stack #2830 September 23, 2026 17:20
@thymikee

Copy link
Copy Markdown
Member Author

This looks ready to merge at 7af257b. The route restriction to the bare submit key is sound by code reading; the old commit wait always returned .unobservable for text containing \n, which maps to nil, so treating the two paths as equivalent doesn't need a live hidden-keyboard run to hold. Not blocking: the diagnose workflow default (.github/workflows/1874-diagnose.yml#L26) now points at a test that asserts route xctest-element and never reaches a [DEBUG-1874] commit wait, so a default dispatch won't collect cadence lines; the author can point it at a replacement-route test or retire it under #2080, whichever comes first.

The rewritten app-launching XCTests (append asserting xctest-element with the keyboard hidden, and the submit-key route) haven't run anywhere yet; the in-progress Smoke Tests job (ios.yml#L160-L178, "Run targeted iOS runner XCTest regressions") is their first execution, covering testBareTypeUsesTappedInputWhenSoftwareKeyboardIsHidden, testBareSubmitKey*, and testHealthyCoordinateTapPreservesBareTypingWitness directly. That job needs to pass before merge, and PR #2834 needs to land first.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Sep 23, 2026
thymikee and others added 2 commits September 23, 2026 19:48
… to the bare submit key

The daemon sends ordinary `type` text in append mode and only the bare "\n"
with no text-entry mode, so the tap-witness synthesis gate now admits only
that shape. The ordinary-text commit wait it guarded never ran in production
and is deleted with its append-only outcome function and tests; the
replacement commit wait keeps every helper it shares.

Runner tests now send the daemon's request shapes: ordinary text in append
mode asserting the final field value, and a separate bare "\n" test asserting
the submission route. The touched command-level tests move to UnitTests/.

Closes #2800

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…r PR lane

Replaces the deleted append-mode commit-progress test in the PR XCTest list
with the submit-key route test and its synthesis-unavailable refusal.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@thymikee
thymikee force-pushed the refactor/2800-tap-witness-newline-only branch from 7af257b to 60e5332 Compare September 23, 2026 18:08
@thymikee
thymikee merged commit fa3b729 into main Sep 23, 2026
28 of 39 checks passed
@thymikee
thymikee deleted the refactor/2800-tap-witness-newline-only branch September 23, 2026 18:13
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.

refactor(ios-runner): restrict the tap-witness synthesized type route to newline

1 participant