Skip to content

refactor(input): remove falsified gesture experiments - #151

Merged
AsafMah merged 2 commits into
devfrom
cleanup/finalize-falsified-experiments
Sep 3, 2026
Merged

refactor(input): remove falsified gesture experiments#151
AsafMah merged 2 commits into
devfrom
cleanup/finalize-falsified-experiments

Conversation

@AsafMah

@AsafMah AsafMah commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Closes #147.

Outcome

Removes the two-thumb experiments that device testing falsified while preserving the one proven production fix and the reusable side-by-side build infrastructure.

Measured reduction: 22 files changed in the cleanup commit, +245 / -1,721. Relative to the original #141 surface, 13 fewer retained files and 1,484 fewer added lines.

Removed

  • StrokeAligner / DUAL_POINTER
  • IdealPrefixTrailBuilder
  • interval/gap/re-timing preferences and settings UI
  • native two-pointer harness that measured the in-repo AOSP engine, not the closed user-supplied decoder that actually runs on device
  • related tests/search wiring/strings

The old connector behavior is restored directly in WordComposer, with exact connector assertions. The historical document keeps the important falsification: the host-vs-loaded-library boundary, the real ambulance nonsense result, and guardrails against repeating the experiment.

Kept

  • PointerIdNormalizer, still wired at fresh-start reset, incremental append and final append
  • new production-path test proving raw pointer id 1 is normalized to decoder track 0 through update and end
  • side-by-side experimental build type and distinct LeanTypeDual EXP label for future controlled experiments
  • normal multi-part connector behavior

Integration order

This PR is based directly on final dev after:

  1. ci: gate LeanTypeDual fork invariants #148 fork-invariant source + packaged-APK gates
  2. merge: sync LeanBitLab/LeanType v4.1.8 #149 LeanBitLab v4.1.8 sync
  3. fix(input): restore fast Shift double-tap #150 double-tap Shift fix

The shared Settings/Defaults/SettingsValues/InputLogic/strings surfaces were manually rechecked after the final rebase. The Shift implementation/tests match dev byte-for-byte and are not part of this diff.

Validation

  • python tools/check_fork_invariants.py — pass
  • fork/tool self-tests — 34 pass
  • compileOfflineRunTestsKotlin — pass
  • :app:testOfflineRunTestsUnitTest --continue --rerun-tasks343 tests, 4 known Windows ParserTest failures, 8 skipped
  • tools/check_test_results.py[ok] no new failures against baseline
  • :app:assembleOfflineExperimental — pass
  • native host suite — 77 enabled tests pass, 1 disabled; FormatUtils quarantine excluded
  • zero remaining production/test references to StrokeAligner, IdealPrefixTrailBuilder, removed prefs, or the deleted two-pointer harness

No device was connected. The retained pointer-normalization fix has JVM production-path coverage; hardware smoke remains listed in the refreshed handoff.

Running docs

docs/HANDOFF.md is refreshed from its stale v0.2.0/v4.0.8 state to v0.3.0/v4.1.8, records the Shift fix and both invariant gates, advances the pristine upstream baseline checkout to v4.1.8, and lists the current device/manual next steps.

AsafMah and others added 2 commits September 3, 2026 17:51
Restore the proven connector path, retain pointer-id normalization and experimental packaging, and preserve the falsification record without shipping the dead experiment machinery.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refreshes only current-state sections after the v4.1.8 sync, Shift fix,
invariant gates, v0.3.0 release and falsified-experiment cleanup. Keeps the
older release incidents and v4.1.2 defect investigation as historical context.

Records the final post-Shift cleanup baseline (343 tests, four known Windows
ParserTest failures), advances the pristine upstream baseline to v4.1.8, and
replaces manual fork-invariant greps with the source and packaged-APK gates.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a88bd77f-d993-44c5-9efc-c7124f0d825e
@AsafMah
AsafMah merged commit 07ef753 into dev Sep 3, 2026
2 checks passed
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