Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
10d85dd
spec(AST-094, AST-057): gestures work on the web for every pointer (F…
cixzhang Oct 27, 2026
c037c2f
spec(AST-094): the fine-pointer press paints through the press contro…
cixzhang Oct 27, 2026
ff18a21
Merge remote-tracking branch 'origin/main' into spec/gestures-on-web
cixzhang Oct 27, 2026
0329096
spec: gestures on web — useMenuPress, user-states, buttons follow eve…
cixzhang Oct 27, 2026
91bc491
spec(AST-057, AST-094): a trackpad's horizontal scroll swipes a row; …
cixzhang Oct 27, 2026
874ee55
Merge main (AST-094 FR19 scroll-edge exception) into spec/gestures-on…
cixzhang Oct 27, 2026
848021a
Merge main into spec/gestures-on-web
cixzhang Oct 27, 2026
1bb6eb7
Merge main into spec/gestures-on-web
cixzhang Oct 27, 2026
06fa181
Merge remote-tracking branch 'origin/main' into spec/gestures-on-web
cixzhang Oct 27, 2026
a3f189c
Merge main into spec/gestures-on-web
cixzhang Oct 27, 2026
c46ace4
spec(AST-057): DEC-4 names horizontal wheel input
cixzhang Oct 27, 2026
c7c4091
Merge main into spec/gestures-on-web
cixzhang Oct 27, 2026
8e6c9ef
Merge main into spec/gestures-on-web
cixzhang Oct 27, 2026
459c961
Merge main into spec/gestures-on-web
cixzhang Oct 27, 2026
7270894
Merge remote-tracking branch 'origin/main' into spec/gestures-on-web
cixzhang Oct 27, 2026
d5aee72
Merge main into spec/gestures-on-web
cixzhang Oct 27, 2026
7a823e3
Merge remote-tracking branch 'origin/main' into spec/gestures-on-web
cixzhang Oct 27, 2026
da36283
Merge main into spec/gestures-on-web
cixzhang Oct 27, 2026
4fb6ea2
spec(AST-057): intent names the pen
cixzhang Oct 27, 2026
4084b67
Merge main into spec/gestures-on-web
cixzhang Oct 27, 2026
4e3f644
Merge remote-tracking branch 'origin/main' into spec/gestures-on-web
cixzhang Oct 27, 2026
18da5ed
Merge main into spec/gestures-on-web
cixzhang Oct 27, 2026
b61be38
Merge main into spec/gestures-on-web
cixzhang Oct 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions docs/architecture/react-component-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@ those contracts.
keeps one copy per page however many components use them. There is no
install call, no public entry, and no public installed check; tests reset
the modules through an internal hook only. A component's own touch logic is
small glue in its own build over these modules. Where the primary pointer
is fine, no recognizer attaches and no touch listener is registered
(`spec:AST-094` FR19, FR24). The modules are not public exports and are not
small glue in its own build over these modules. The gesture host attaches for
every pointer, with no touch-only query, and pointer and hover queries live
with the environment queries; under a fine pointer only a component that

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.

The INV13 verification row (line 342) still fails "a touch listener under a fine primary pointer"; it needs the new budget this paragraph states.

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.

“the environment queries” is not defined in any record or in packages/core/src. Name the module or record that owns pointer and hover queries, or drop the clause.

uses a gesture listens (`spec:AST-094` FR19, FR24, FR43). The modules are not public exports and are not
documented for consumers; Core and Lab components reach them through
`@astryxdesign/core/internal/touch`, a subpath reserved for Astryx's own
packages: undocumented, outside the compatibility promise, versioned in
Expand Down Expand Up @@ -327,15 +328,15 @@ observable-behavior predicates require review or runtime evidence. Likewise, a
focused test proves only its named behavior and mutation expectation; a green
component suite is not blanket conformance with every invariant.

| Invariant | Evidence | Failure signal |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| INV1–INV2 | Initial-render and interaction tests | Output flashes a known-wrong state, or one action is delayed or repeated through an Effect |
| INV3, INV5 | StrictMode setup/cleanup and dependency-change tests | Duplicate callback, leaked work, stale subscription, or missing resynchronization |
| INV1, INV4, INV6 | Ref attach/null/replacement, DOM-in-state rejection, and old-node cleanup-before-new-attach mutations | A DOM node or collection enters state, old node remains active, cleanup misses replacement, or ref mutation changes semantics silently |
| INV7 | Real-browser geometry plus N-consumer observer-instance/subscription mutations | Geometry is invalid, observer instances grow with repeated consumers, one unsubscribe silences peers, or cleanup removes another subscriber |
| INV8 | Owner-observable behavior across documented composition replacement; optional focused internal mechanism tests | Behavior disappears or changes owner when a documented subpart is replaced |
| INV9 | Provider/external-store identity and render-count tests | Unchanged semantic payload changes identity, or snapshot identity creates a render loop |
| INV10 | Shared test over every adopter of the announcement module | An adopter holding its own Effect, observer, timer, or listener for its own-content announcement |
| INV11 | Source boundary check plus hook tests across StrictMode replay and unmount | A second keyboard listener or measurement in Core; a consumer reading a CSS custom property on the root or a shared ancestor for the height; an export of the hook; a component outside Core measuring by a rule other than AST-099 FR2, or riding the keyboard; a listener left after unmount; a Core rider driven by JavaScript per frame or by its own transition; or more than one layout read per keyboard change |
| INV12 | Source boundary check plus real-browser tests on a throttled phone profile over a 10-level by 50-sibling tree and two changes in one frame | A per-frame height or layout, a walk past the area or into a subtree other than `display: contents`, an element moved twice for one frame, an added element, or an exported reporting function fails |
| INV13 | Source boundary check plus bundle analysis of a page with several touch components, and real-browser tests on a throttled phone profile, under a fine pointer, and on a hybrid device | A second copy of a touch module on one page, a component bundling its own copy of a module's primitive, an `import()` of a module in a component, a public export or doc entry for the modules, an install call or installed check in the public API, a touch listener under a fine primary pointer, or an import of `@astryxdesign/core/internal/*` outside Core and Lab fails |
| Invariant | Evidence | Failure signal |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| INV1–INV2 | Initial-render and interaction tests | Output flashes a known-wrong state, or one action is delayed or repeated through an Effect |
| INV3, INV5 | StrictMode setup/cleanup and dependency-change tests | Duplicate callback, leaked work, stale subscription, or missing resynchronization |
| INV1, INV4, INV6 | Ref attach/null/replacement, DOM-in-state rejection, and old-node cleanup-before-new-attach mutations | A DOM node or collection enters state, old node remains active, cleanup misses replacement, or ref mutation changes semantics silently |
| INV7 | Real-browser geometry plus N-consumer observer-instance/subscription mutations | Geometry is invalid, observer instances grow with repeated consumers, one unsubscribe silences peers, or cleanup removes another subscriber |
| INV8 | Owner-observable behavior across documented composition replacement; optional focused internal mechanism tests | Behavior disappears or changes owner when a documented subpart is replaced |
| INV9 | Provider/external-store identity and render-count tests | Unchanged semantic payload changes identity, or snapshot identity creates a render loop |
| INV10 | Shared test over every adopter of the announcement module | An adopter holding its own Effect, observer, timer, or listener for its own-content announcement |
| INV11 | Source boundary check plus hook tests across StrictMode replay and unmount | A second keyboard listener or measurement in Core; a consumer reading a CSS custom property on the root or a shared ancestor for the height; an export of the hook; a component outside Core measuring by a rule other than AST-099 FR2, or riding the keyboard; a listener left after unmount; a Core rider driven by JavaScript per frame or by its own transition; or more than one layout read per keyboard change |
| INV12 | Source boundary check plus real-browser tests on a throttled phone profile over a 10-level by 50-sibling tree and two changes in one frame | A per-frame height or layout, a walk past the area or into a subtree other than `display: contents`, an element moved twice for one frame, an added element, or an exported reporting function fails |
| INV13 | Source boundary check plus bundle analysis of a page with several touch components, and real-browser tests on a throttled phone profile, under a fine pointer, and on a hybrid device | A second copy of a touch module on one page, a component bundling its own copy of a module's primitive, an `import()` of a module in a component, a public export or doc entry for the modules, an install call or installed check in the public API, a gesture listener in a component that uses no gesture, or an idle document listener outside a press, or an import of `@astryxdesign/core/internal/*` outside Core and Lab fails |

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.

FR24 admits the shared press controller, whose window and document listeners stay installed between presses (packages/core/src/utils/pressFeedback.ts lines 396–409), but this row fails "an idle document listener outside a press" with no exception, so a page that follows FR24 fails it. Suggest "… outside a press, other than the one shared press controller"; AST-094's FR24 row (line 564) needs the same.

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.

AST-094 FR24 admits "the shared press controller, installed once per page", whose document-level scroll and visibilitychange listeners stay installed between presses while any pressable surface is mounted (packages/core/src/utils/pressFeedback.ts lines 395–409). This row fails "an idle document listener outside a press" with no exception, so a page that follows FR24 fails it. Suggest "… an idle document listener outside a press, other than the one shared press controller …"; AST-094's FR24 row (line 569) needs the same.

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.

AST-094 FR24 admits "the shared press controller, installed once per page", whose document scroll and visibilitychange listeners stay installed between presses while any pressable surface is mounted (packages/core/src/utils/pressFeedback.ts lines 395–410). This row fails "an idle document listener outside a press" with no exception, so a page that follows FR24 fails it. Suggest "… an idle document listener outside a press, other than the one shared press controller …"; AST-094's FR24 row (line 575) needs the same.

4 changes: 2 additions & 2 deletions docs/design/user-states.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ surface.
- **DR1 — Press the manipulated surface.** During pointer hold or drag, each
enabled surface in the matrix below MUST paint `--color-overlay-pressed` on
the named visual part. The overlay is transient and MUST clear when the press
or drag ends. Under a finger, the overlay's timing follows `spec:AST-094` FR11's press profiles.
or drag ends. The overlay's timing follows `spec:AST-094` FR11's press profiles under every pointer.
- **DR2 — Disabled means no response.** A disabled control in the matrix MUST
remain inoperable and MUST NOT gain a pressed visual treatment.
- **DR3 — Persistent selection wins.** A selected SegmentedControl item MUST
keep its raised selected surface during pointer hold; only an unselected item
receives the pressed overlay. Under a finger the item keeps that surface, and its press timing follows
receives the pressed overlay. Under every pointer the item keeps that surface, and its press timing follows
`spec:AST-094` FR11.

## Anatomy and hierarchy
Expand Down
Loading
Loading