Skip to content

Throw phrases with pointer-derived velocity - #20

Merged
datashaman merged 1 commit into
mainfrom
agent/issue-15-phrase-throw
Aug 10, 2026
Merged

datashaman merged 1 commit into
mainfrom
agent/issue-15-phrase-throw

Conversation

@datashaman

Copy link
Copy Markdown
Owner

Closes #15.

What changed

  • estimate release velocity from a bounded 120 ms / 8-sample pointer window
  • carry stable drag-session IDs through React, the bridge protocol, and the native command queue
  • add validated phrase.throw commands with finite, bounded velocity
  • transfer accepted release velocity to the native 120 Hz spatial world
  • suppress stationary releases and reflect thrown phrases at field edges and corners
  • preserve optimistic UI positioning while native snapshots remain authoritative
  • document the completed throw interaction

Impact

All four phrase bodies can now be grabbed, repositioned, and thrown. Interrupted or stale pointer lifecycles are rejected safely, and throw/input pressure remains independent of MIDI scheduling.

Validation

  • ./scripts/verify.sh
  • Debug native and React test suites
  • Release native test suite and packaged build
  • deterministic ten-minute stress run: 100 throws across all four phrases, 15,614 MIDI messages, zero late events, zero phase or timestamp drift

The packaged-app feel check is intentionally left for a maximized manual run so automated verification does not steal desktop focus.

@datashaman
datashaman marked this pull request as ready for review August 10, 2026 13:07
@datashaman
datashaman merged commit 1dfaa78 into main Aug 10, 2026
1 check 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.

Throw phrases with pointer-derived velocity

1 participant