Skip to content

spec(AST-094): a mouse or pen press on a control takes the fine-pointer profile by its own pointer (FR11, INV5); finger timing open (OQ11) - #8469

Draft
cixzhang wants to merge 12 commits into
mainfrom
spec/ast094-press-feedback-per-event
Draft

cixzhang wants to merge 12 commits into
mainfrom
spec/ast094-press-feedback-per-event

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

Which profile does a finger press take where the device's primary pointer is fine (OQ11)? That is the one open owner question. The mouse and pen half is already decided by architecture:press-feedback INV5, and spec:AST-094 FR11 now states it.

Existing authority searched

  • architecture:press-feedback INV5 (current): a mouse or pen press paints at once on pointerdown through the engine, with the same release fade as a finger's, in place of CSS :active.
  • spec:AST-094 FR11: the three press profiles; under a fine pointer a control uses the fine-pointer profile (DEC-21).
  • spec:AST-094 FR13: the presentation resolver, which follows the primary pointer.
  • spec:AST-057: its row swipe reads each event's pointer, the precedent for per-event reading.
  • family:buttons visual state: already gives a mouse or a pen the fine-pointer profile, so it needs no change.
  • Search terms: press feedback, pointerType, hybrid, primary pointer, pen, INV5.

Decision

No new decision. spec:AST-094 FR11 states what INV5 decides:

  • Mouse or pen on a control: takes the fine-pointer profile by its own pointerType and paints at once, even where the primary pointer is coarse, so on a tablet with a mouse or a pen a click does not wait like a finger. A menu row keeps module:DropdownMenu/useMenuPress FR2 and FR6 (a pen's menu-row press stays on the cell profile).
  • Finger where the primary pointer is fine: open, as OQ11 (owner decision).
  • Presentation: still follows FR13.

The verification row cites pressFeedback.test.ts for the mouse ("paints a mouse press at once, holds it, and fades it at the release"). The pen is recorded as a Current-state FR11 gap: line: a pen press paints at once only on a surface that owns a control's box, and elsewhere inside a scroll view the controller still waits 150 ms.

Earlier revisions of this pull request gave a pen the finger's delay and decided the finger half. Both are removed: the pen delay conflicts with INV5, and no record decides the finger half.

Rejected alternatives

None recorded: this pull request adds no decision.

Writing rubric results

  • R1 narration: none. FR11's sentences and OQ11 state behavior or the open question in the present tense.
  • R2 research in the record: none.
  • R3 evidence naming a change: none. The verification row cites a test, and the pen mismatch is a Current-state gap line.
  • R4 rejected alternatives over one line or outside a decision: none.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: OQ11 is unruled; it states the two options as the question.

Scope

  • This PR contains only the specification record spec:AST-094 (FR11, one verification row, one Current-state gap line, OQ11). No runtime code or tests change.
  • It records observable behavior and preserves equivalent internal implementations.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It adds no decision and leaves one question open for the owner.
  • The canonical knowledge owner (spec:AST-094) and the affected claims (FR11, OQ11) are named.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: passes.
  • Prettier; git diff --check.

@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 21, 2026 3:41pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 3:46 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 26, 2026
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current change has no visual or preview-producing scope. Visual checks are not applicable; preview links are not shown.


Generated by PR Enrichment workflow | View current CI run

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 26, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change needs an engineering owner's decision before it can be approved: FR19's new press-feedback exception, DEC-10 and the new verification row change the current spec:AST-094 FR19, and any engineering owner records that decision by commenting /approve-spec <full-head-sha> on this pull request, which the author may do as an engineering owner. Whatever that decision, the record needs three fixes before approval:

  • Say whether menu rows are inside the exception, since the menus paragraph and module:DropdownMenu/useMenuPress FR2 and FR6 still keep a fine-primary finger on today's menu behavior with no per-gesture pointer read.
  • Add press feedback to FR24's exception, since the press's 150 ms wait is a touch-only timer that FR24 still forbids where the primary pointer is fine.
  • Restate DEC-10's reason, since a finger press on such a device already gets the :active press today (design:user-states DR1), not no feedback.

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change needs an engineering owner's decision before it can be approved: FR19's and FR24's new press-feedback exceptions, DEC-10 and the new verification row change the current spec:AST-094, and any engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, which the author may do as an engineering owner. The menu boundary, the FR24 exception and DEC-10's premise are now in place, and two verification gaps remain whatever that decision is, so fixing them first lets the approval land on the final head:

  • The "FR19 press feedback" row presses only a finger and a mouse, so add a pen press and its expected result, since the exception names only a finger and the released press controller treats a pen like one.
  • FR24's verification row has no finger-press state, so add one that checks the press's touch listener or timer ends with that press.

[Automated review]

…n moves to FR11 (the press profiles) after main's FR19/FR24 rewrite, and a pen follows the finger
@cixzhang cixzhang changed the title spec(AST-094): a finger's press feedback follows the event's pointerType (DEC-10) spec(AST-094): a press's feedback follows its own pointerType (FR11, DEC-10) Nov 5, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change needs an engineering owner's decision before it can be approved. FR11's new per-press rule, DEC-10 and the new "FR11 per event" verification row add requirements the current spec:AST-094 does not state, including whether a pen follows the finger. Any engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. Whatever the decision, three fixes are needed before approval:

  • FR13 still defines touch press timing (FR11) as part of the touch presentation that applies only under a coarse primary pointer, so amend its list to follow the new per-press rule.
  • The buttons family record still gives a pen the fine-pointer profile, and FR43's verification row still fails "a press delay under a fine pointer", so amend them to give a pen the control profile, or take the pen out of FR11, DEC-10 and the new row.
  • The new pen test checks the row only at 150 ms, so a pen that paints at once also passes; assert no paint at PRESS_ONSET_MS - 1, as the finger test does, and add that onset to the row's failure column.

[Automated review]

…inter; FR13 and FR43's row follow DEC-10

FR13's list says a finger or pen press takes touch press timing by its own
pointerType; the buttons family visual-state row gives a pen the control
profile; FR43's verification row scopes its press-delay failure to a mouse.
The pen unit case asserts no paint before the control profile's onset.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change needs an engineering owner's decision before it can be approved. FR11's per-press rule (a finger or pen press takes the control or cell profile even where the primary pointer is fine, and a mouse press takes the fine-pointer profile), DEC-10, the matching FR13 wording, the new "FR11 per event" verification row, FR43's verification row and the pen change in the buttons family record change what the current spec:AST-094 and family:buttons state. Any engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

The three fixes the previous review asked for (FR13's list, the pen in the buttons family and FR43's row, and the pen test's onset check) are in place, and no other change is needed.

[Automated review]

Takes main's AST-094, buttons family and pressFeedback test files; the rework commit after this one re-adds the narrowed DEC-10.
… a finger on a fine-primary device is open (OQ11)

DEC-10 now covers only what architecture:press-feedback INV5 allows: a mouse or a pen press takes the fine-pointer profile and paints at once, even where the primary pointer is coarse. The pen delay is gone, and so is the pen-as-finger test. Which profile a finger press takes where the primary pointer is fine is OQ11, an owner decision.
@cixzhang cixzhang changed the title spec(AST-094): a press's feedback follows its own pointerType (FR11, DEC-10) spec(AST-094): a mouse or pen press follows its own pointer (DEC-10) Nov 17, 2026
The mouse and pen half is what architecture:press-feedback INV5 already decides, so FR11 cites INV5 and carries the reason (a tablet with a mouse or a pen), and DEC-10 is removed. OQ11 and the evidence-gap row stay.
@cixzhang cixzhang changed the title spec(AST-094): a mouse or pen press follows its own pointer (DEC-10) spec(AST-094): a mouse or pen press takes the fine-pointer profile by its own pointer (FR11, INV5); finger timing open (OQ11) Nov 17, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 7c65dfa

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the owner's approval settles the direction, but three record fixes are still needed in spec:AST-094 and the menu press record.

  • FR11's opening clause ("follows that press's own pointerType, not the primary pointer") covers every press, so it already decides the case of a finger on a fine-pointer device, which OQ11 calls open and FR13 answers the other way; please narrow it to the mouse and pen rule that architecture:press-feedback INV5 settles.
  • The new "FR11 per event" row says no test presses a mouse or a pen where the primary pointer is coarse, but pressFeedback.test.ts already covers the mouse and the shipped controller still waits 150 ms for a pen inside a scroll view unless the surface owns a control's box, so please cite the mouse test and record the pen mismatch as an FR11 gap: line instead of a missing test.
  • FR11 now gives every pen press the fine-pointer profile with no menu exception, while module:DropdownMenu/useMenuPress FR2 and FR6 still put a pen's menu-row press on FR11's cell profile, so please amend them to match or scope FR11's sentence away from menu rows.

These are record-only fixes, and the new commit will need a fresh /approve-spec.

Claims and files checked

Review mode: same-head; reason: none

  • Changed rules since the last review: none.
  • Title: a mouse or pen press takes the fine-pointer profile by its own pointer, with finger timing open. The mouse and pen half is verified against the press-feedback record; "finger timing open" is false while FR11's opening clause decides it (first finding).
  • Claim: the press-feedback architecture record already has a mouse or pen press paint at once through the engine. Verified in its INV5.
  • Claim: FR11 holds three press profiles, with the fine-pointer profile under a fine pointer. Verified in the current FR11.
  • Claim: FR13's presentation rule follows the primary pointer. Verified in the current FR13.
  • Claim: the row-actions record reads each event's pointer. Verified in its FR5 and FR7.
  • Claim: the buttons family already gives a mouse or a pen the fine-pointer profile. Verified in its visual-state row.
  • Claim: the change adds no decision and settles only mouse and pen. False: FR11's opening clause also settles the fine-pointer finger (first finding).
  • Claim: no test yet presses a mouse or a pen where the primary pointer is coarse. False: the press-controller tests press both, and a pen fails the new row on shipped code (second finding).
  • Claim: the earlier pen delay and finger decision are removed. Verified: the head adds neither.
  • Claim: only the AST-094 record changes, with no code or tests. Verified: one file, 12 added lines.
  • Claim: the knowledge check, Prettier and the whitespace check pass. Verified at this head.
  • Claim: rubric results R1 to R6. R6 is false, because FR11's clause answers OQ11; R7 is not reported and fails on the row's "yet".
  • Claim: public text holds no internal context. Verified.
  • File: docs/specs/AST-094-touch-presentations/spec.md: three blocking findings, above.

Automated review (maintainer link)

… control only

The opening clause now settles only what press-feedback INV5 settles: a
mouse or a pen press on a control takes the fine-pointer profile by its
own pointer. It no longer reaches a finger on a fine-pointer device (OQ11
stays open) or a menu row, which keeps useMenuPress FR2 and FR6. The
verification row cites pressFeedback.test.ts for the mouse, and a new
FR11 gap line records that a pen still waits 150 ms in a scroll view on a
surface that owns no control's box.
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 18, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: two small record fixes remain, and the new head will then need an engineering owner's /approve-spec.

  • Please retitle the pull request to say "a mouse or pen press on a control", because FR11 now covers only controls and leaves a pen's menu-row press on the menu press record's cell profile, so the current title states a broader rule than the record.
  • The new FR11 gap: line opens with "a pen press paints at once only on a surface that owns a control's box", but the press controller paints a pen press at once outside a scroll view and waits 150 ms only inside one, so please confine the line to scroll views, for example "inside a scroll view, the press controller paints a pen press 150 ms after pointerdown, as it does a finger's, except on a surface that owns a control's box".

The three findings from the last review are fixed at this head.

Claims and files checked

Review mode: full; reason: spec-record

  • Title: a mouse or pen press takes the fine-pointer profile by its own pointer, with finger timing open. False in scope: the record now covers only a press on a control (first finding).
  • Claim: the press-feedback architecture record already has a mouse or pen press paint at once through the press engine. Verified in its invariant on every pointer.
  • Claim: FR11 holds three press profiles, with the fine-pointer profile under a fine pointer. Verified in the current FR11.
  • Claim: FR13's presentation rule follows the primary pointer. Verified in the current FR13.
  • Claim: the row-actions record reads each event's pointer. Verified in its modality split.
  • Claim: the buttons family already gives a mouse or a pen the fine-pointer profile. Verified in its visual-state row.
  • Claim: FR11 adds no decision; a mouse or pen press on a control follows its own pointer, and a menu row keeps the menu press record. Verified: each sentence restates a current claim.
  • Claim: a finger where the primary pointer is fine is left open, and presentation still follows FR13. Verified: the open question is recorded and FR13 is unchanged.
  • Claim: the verification row cites the controller test for the mouse. Verified: the named test exists and passes.
  • Claim: the pen is recorded as a gap, waiting 150 ms inside a scroll view except on a surface that owns a control's box. The description is accurate; the record line's first sentence is false outside a scroll view (second finding).
  • Claim: the earlier pen delay and finger decision are removed. Verified: the head adds neither.
  • Claim: rubric results R1 to R6 report nothing. Verified at this head.
  • Claim: only the touch-presentations record changes, with no runtime code or tests. Verified: one file, 15 added lines.
  • Claim: the record states observable behavior, and verification names the evidence layer and failure signal. Verified.
  • Claim: public text and artifacts hold no internal context. Verified.
  • Claim: the knowledge check, Prettier and the whitespace check pass. Verified at this head.
  • File: docs/specs/AST-094-touch-presentations/spec.md: two blocking findings, above.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 107a93c

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 8a44ada

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: an engineering owner's /approve-spec at this head settles the direction, and two accuracy fixes in the record are left.

  • Please retitle the pull request to say "a mouse or pen press on a control": FR11 now scopes the rule to a press on a control and keeps a pen's menu-row press on the menu press record's cell profile, so the present title states a broader rule than the record, and the head commit's own message already uses the narrower wording.
  • The new FR11 gap: line opens with "a pen press paints at once only on a surface that owns a control's box", but the press controller delays a pen only inside a scroll view, and a pen press on a plain button outside one paints at pointerdown under either primary pointer, so please confine the line to scroll views, for example "inside a scroll view, the press controller paints a pen press 150 ms after pointerdown, as it does a finger's, except on a surface that owns a control's box".

A commit that fixes these needs a fresh /approve-spec from an engineering owner, since a new commit invalidates the present one.

Claims and files checked

Review mode: full; reason: spec-record

  • Title: a mouse or pen press takes the fine-pointer profile by its own pointer, with finger timing open. False in scope: the record covers a press on a control and keeps menu rows on the menu press record (first finding).
  • Claim: the press-feedback architecture record already has a mouse or pen press paint at once through the press engine. Verified in its invariant, which sets no primary-pointer condition.
  • Claim: FR11 holds three press profiles, with the fine-pointer profile under a fine pointer. Verified in the current FR11.
  • Claim: FR13's presentation rule follows the primary pointer. Verified in the current FR13.
  • Claim: the row-actions record reads each event's pointer. Verified in its drag and press rules.
  • Claim: the buttons family already gives a mouse or a pen the fine-pointer profile, so it needs no change. Verified in its visual-state row.
  • Claim: FR11 adds no decision; a mouse or pen press on a control follows its own pointer, and a menu row keeps the menu press record. Verified: each sentence restates a current claim.
  • Claim: a finger where the primary pointer is fine is left open, and presentation still follows FR13. Verified: the open question is recorded and FR13 is unchanged.
  • Claim: the verification row cites the controller test for the mouse. Verified: the named test exists and passes at this head.
  • Claim: the pen is recorded as a gap, waiting 150 ms inside a scroll view except on a surface that owns a control's box. The description is accurate; the record line's first sentence is not (second finding).
  • Claim: the earlier pen delay and the earlier finger decision are removed. Verified: this head adds neither.
  • Claim: the writing rubric results R1 to R6 report nothing. Verified at this head.
  • Claim: only the touch-presentations record changes, with no runtime code or tests. Verified: one file, 15 added lines.
  • Claim: the record states observable behavior, and verification names the evidence layer and the failure signal. Verified.
  • Claim: public text and artifacts hold no internal context. Verified over the title, description, branch name, commit messages and every added line.
  • Claim: the knowledge check, Prettier and the whitespace check pass. Verified for this change; Prettier's one remaining complaint on the file is a line that arrives from the base branch.
  • File: docs/specs/AST-094-touch-presentations/spec.md: the two findings above.

Automated review (maintainer link)

@cixzhang cixzhang changed the title spec(AST-094): a mouse or pen press takes the fine-pointer profile by its own pointer (FR11, INV5); finger timing open (OQ11) spec(AST-094): a mouse or pen press on a control takes the fine-pointer profile by its own pointer (FR11, INV5); finger timing open (OQ11) Nov 21, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec f1027d7

@cixzhang

Copy link
Copy Markdown
Contributor Author

/revoke-spec f1027d7

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, because its jobs are skipped while the pull request is a draft.

FR11 now states, for a press on a control, what the press-feedback architecture record already requires of a mouse or pen press, and both earlier fixes landed: the title names "a press on a control", and the FR11 gap: line confines the pen's 150 ms wait to scroll views, which matches the press controller.

Next: the repository's spec gate still waits on an engineering owner's /approve-spec for this head, since the one posted for it was withdrawn; the author may post it as an engineering owner.

Claims and files checked

Review mode: full; reason: spec-record

  • Title: a mouse or pen press on a control takes the fine-pointer profile by its own pointer, with finger timing left open. Verified against FR11's new sentences and OQ11.
  • Claim: one owner question is open, which profile a finger takes where the primary pointer is fine. Verified: OQ11 is the only addition that asks for a decision.
  • Claim: the press-feedback architecture record already decides the mouse and pen half. Verified: its invariant has every mouse or pen press paint at once and sets no primary-pointer condition.
  • Claim: FR11 holds three press profiles, with the fine-pointer profile under a fine pointer. Verified in FR11.
  • Claim: FR13's presentation rule follows the primary pointer. Verified; FR13 is unchanged.
  • Claim: the row-actions record reads each event's pointer. Verified in its modality rule.
  • Claim: the buttons family already gives a mouse or a pen the fine-pointer profile, so it needs no change. Verified in its visual-state row.
  • Claim: a mouse or pen press on a control paints at once even where the primary pointer is coarse, and a menu row keeps the menu press record, so a pen's menu-row press stays on the cell profile. Verified: each sentence restates a current claim.
  • Claim: the finger case stays open and presentation still follows FR13. Verified.
  • Claim: the verification row cites the controller test for the mouse. Verified: the named test exists and passes.
  • Claim: the pen is recorded as a gap, waiting 150 ms inside a scroll view except on a surface that owns a control's box. Verified against the controller and a probe of a pen press inside and outside a scroll view.
  • Claim: the earlier pen delay and the earlier finger decision are removed. Verified: this head adds neither.
  • Claim: the writing rubric results R1 to R6 report nothing. Verified.
  • Claim: only the touch-presentations record changes, with no runtime code or tests, no new decision and one open question, and it names its owner record and claims. Verified: one file, 15 added lines.
  • Claim: public text and artifacts hold no internal context. Verified over the title, description, branch name, commit messages and every added line.
  • Claim: the knowledge check, Prettier and the whitespace check pass. The knowledge check passes and no trailing whitespace is added; Prettier's one complaint on the file is a line that arrives from the base branch.
  • File: docs/specs/AST-094-touch-presentations/spec.md: clear.

Automated review (maintainer link)

This branch was successfully deployed

1 active deployment
Preview — f1027d70 Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant