Skip to content

spec(AST-117): entryErrorBehavior for inputs that check their own entries - #11310

Merged
nynexman4464 merged 12 commits into
mainfrom
nynexman4464/spec/validation-timing
Nov 12, 2026
Merged

nynexman4464 merged 12 commits into
mainfrom
nynexman4464/spec/validation-timing

Conversation

@nynexman4464

@nynexman4464 nynexman4464 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

The option is decided on #10367, and the owner has ruled on its name and every sub-decision (see Owner decisions). This PR records them; the spec owner needs to approve the record content.

This head differs from the first in five ways:

  • The option is named entryErrorBehavior, with defaultEntryErrorBehavior on FormLayout and an exported EntryErrorBehavior type. This follows the <thing>Behavior naming rule (architecture:public-component-api INV2).
  • Its default, 'complete', is each member's shipped behavior (INV3). 'blur-or-enter' holds every signal of a member's own rejection until Enter or blur.
  • The behavior changes that apply with no prop set move to a companion record, spec:AST-118 (separate PR). Those are: the per-member points of completion, keeping rejected text at commit, visible messages for NumberInput, TimeInput, and native controls, and the end of per-keystroke alerts. In this PR those members keep today's behavior.
  • Every compatibility bullet is additive.
  • The review findings on d603db2 are addressed (see Evidence).

Existing authority searched

  • family:input-fields owns the cross-member treatment of input state display and API. Its shared-owner section gives FormLayout form-level optionality. No claim covers when a member reveals its own rejection.
  • architecture:public-component-api INV2 and INV3.
    • INV2: a prop that chooses how a component responds to input is named <thing>Behavior.
    • INV3: a new behavior prop defaults to the shipped behavior.
    • The name and the 'complete' default follow both.
  • component:FormLayout FR4, FR5, ORD1, ORD3: how defaultOptionality works.
    • It travels through a layer-scoped context.
    • A nested layout replaces it, an unset value included.
    • Content in a layer opened inside the form starts without it.
    • A field's own prop wins.
    • defaultEntryErrorBehavior follows the same path, as decided.
  • spec:AST-086 (FR1, FR5, FR7) owns how announcements are delivered, not when an input rejects.
  • spec:AST-111 FR11, FR12, AR3 owns the date rejection kinds and their messages.
  • spec:AST-085 FR2: disabled and busy fields. spec:AST-017 FR5: additive changes.
  • Component records: DateInput FR20/AR3, DateTimeInput FR11/AR5, TimeInput FR3/FR6/AR2, and NumberInput FR2/FR3/AR2. Each states when it reveals its own rejections; none takes a timing.
  • Code on main (a709f9a):
    • typedDateError in DateInput/useTypedDate.ts.
    • The isInputValid memos and keystroke role="alert" regions in NumberInput.tsx, TimeInput.tsx, and DateTimeInput.tsx.
    • NativeDateField.tsx's rejected value.
    • FormLayoutContext.ts.
    • The editors in PowerSearchValueEditor.tsx and useTableFiltering.tsx, which include inline filter slots.
  • Open work:

Why a new record instead of extending the family record:

  1. It adds public API to four members and to FormLayout, a collaborator and not a member. The repo sends consequential public-API changes to docs/specs/ (AGENTS.md; docs/specs/README.md).
  2. The family record is current and cannot hold draft content while sub-decisions are open.
  3. The family keeps a short projection (FR14, a concept row, a gap bullet, and a verification row), the way its FR13 projects spec:AST-099. Each owning contract changes in this PR (architecture:knowledge-contracts, "When current records disagree", step 5).

Decision

spec:AST-117 (authority draft, phase proposed):

  • FR1: DateInput, DateTimeInput, TimeInput, and NumberInput take entryErrorBehavior: 'complete' | 'blur-or-enter'. One value covers every surface and segment, and the type is exported as EntryErrorBehavior. The prop sets when a member reveals its own entry errors. React Aria's validationBehavior chooses native or ARIA validation, which is a different concept.
  • FR2: FormLayout takes defaultEntryErrorBehavior. Resolution order: the field's prop, then the nearest FormLayout in the same layer, then 'complete'. The default travels exactly like defaultOptionality.
  • FR3: 'complete' is each member's shipped behavior. A field with neither prop behaves exactly as on the latest stable release.
  • FR4: under 'blur-or-enter', a member shows, marks, styles, and announces no rejection of its own while the person types. A member that reports rejections to the caller (DateInput's and DateTimeInput's onEntryErrorChange, now on main) reports a rejection when it reveals it, so a caller error status that the report drives appears at the same commit; a cleared rejection reports at once.
    • At Enter or blur, it reveals the entry's current rejection: every signal its record gives that rejection appears together, and the announcement is made once.
    • A native date or time value is held to the next Enter or blur.
    • Where the member's record drops the rejected entry at that commit, the member announces the rejection once and then drops the entry.
  • FR5: under both values, a rejection clears as soon as the entry is valid or empty. Under 'blur-or-enter', an edit that leaves the entry rejected keeps the revealed rejection, without a new announcement. A new value or a pick clears a rejection only where the member's record says it replaces the entry, so NumberInput and TimeInput keep an invalid focused draft across a value change, as they do today.
  • FR6: disabled and busy fields reveal no rejection of their own.
  • FR7: PowerSearch and Table filter editors keep 'complete' and take no prop.

Projections:

Record Claims
family:input-fields FR14
component:FormLayout FR7, ORD4
component:DateInput FR24
component:DateTimeInput FR15
component:TimeInput FR13
component:NumberInput FR14

Each projection states 'complete' as that member's shipped behavior, states 'blur-or-enter' for that member, and adds one gap line.

Owner decisions (recorded)

The owner ruled on every sub-decision, and each DEC names the owner as decider. The record has no open questions.

  1. DEC-4: under 'blur-or-enter', a member that drops a rejected entry at commit announces it once at that commit, then drops it. If spec:AST-118 lands, nothing drops and this case disappears.
  2. DEC-5: PowerSearch editors, Table filters, and Pagination's page input keep 'complete' and take no prop; a surrounding FormLayout doesn't change them. DateRangeInput has no typed entry.
  3. DEC-3: the prop is entryErrorBehavior / defaultEntryErrorBehavior / EntryErrorBehavior, with the values 'complete' | 'blur-or-enter'. It avoids React Aria's validationBehavior (native vs ARIA validation), follows INV2, and matches onEntryErrorChange. DEC-3 records the rejected names.
  4. DEC-6: under 'blur-or-enter', a shown entry error stays, without a new announcement, while an edit leaves the entry wrong, until it's valid or empty or the next commit.

Other record choices to check:

  • Enter in TimeInput. Under 'blur-or-enter', Enter becomes a commit for TimeInput. The change is additive: it happens only where a caller sets 'blur-or-enter'.
  • Native values. Under 'blur-or-enter', native values are held to Enter or blur, so the partial years Chromium reports while a year is typed never flag under 'blur-or-enter'. Under 'complete' they flag as they do today. spec:AST-118 FR1 changes that.
  • Nested FormLayout. A nested FormLayout with no defaultEntryErrorBehavior resets its descendants to 'complete', as unset defaultOptionality does.

Rejected alternatives

Claim scope and non-goals

  • Out of scope: which entries a member rejects, when it reveals a rejection under 'complete', which signals a rejection has, and what a commit does with a rejected entry. Each member's record owns these.
  • Also out of scope: caller validation, native constraint validation, rejection wording, announcement delivery, and onChange timing.
  • No implementation, no .doc.mjs changes, and no changeset.

Evidence and implementation relationship

Review on d603db2, by finding:

  • A native date counts as complete when reported, but Chromium reports partial years (0002-05-10): this record no longer defines completeness. 'complete' is the shipped behavior, and under 'blur-or-enter' native values wait for Enter or blur (FR4). The rule that a native date value is complete only at commit is spec:AST-118 FR1, projected in DateInput FR24 and DateTimeInput FR15 there.
  • Two different number tests: removed here. spec:AST-118 FR1 now makes a typed number complete only at commit, and its DEC-12 rejects the digit-reachability test.
  • AST-017 FR1/FR53 classification: the FR1/FR53 classifications are in spec:AST-118, which is now one AST-017 FR53 accessibility fix. AST-017 FR5 cited for changes that apply with no prop set: no such change remains here. Every bullet is additive. The FR1/FR53 classifications are in spec:AST-118.
  • "Known verification gap" line: dropped.
  • NumberInput's inverted-range row and the opening of FR3: unchanged here, because this record keeps the revert. spec:AST-118 aligns both with its keep rule.
  • INV2 naming and INV3 default: renamed, and the default is the shipped behavior.

Relationship with spec:AST-118:

  • The two land independently, in either order.

  • Both use the next free FR ids on main (DateInput FR24, DateTimeInput FR15, TimeInput FR13, NumberInput FR14, family FR14). Whichever lands second renumbers its ids.

  • The second to land meets textual conflicts at adjacent insertions in the family record and the four component records.

  • If spec:AST-118 lands second, it updates the shipped-behavior wording of 'complete' in this record's component rows. DEC-4's case then has nothing left to apply to.

Code facts on main (a709f9a), read from source:

  • typedDateError shows a nonexistent or out-of-range date once the date is complete. Unreadable date text sets aria-invalid and fills the alert on each keystroke, then reverts on Enter or blur.
  • NumberInput's and TimeInput's isInputValid drives aria-invalid and an assertive alert on each keystroke for any draft that is not an in-range value.
  • Both revert an unparsable draft on blur. TimeInput has no Enter commit.

Precedent (public):

  • react-hook-form mode, Ant Design validateTrigger, and Mantine validateInputOnBlur set timing on the form.
  • Base UI validationMode is set per form and per field, and the field wins.
  • React Aria validationBehavior means native vs ARIA validation, so this record doesn't use that name.

The record keeps only a one-sentence conclusion, in DEC-2.

Implementation follows in a separate PR once the record is approved.

Writing rubric results

spec:AST-117 (new)

  • R1 narration: Intent, Requirements, and Decision log are in the present tense. Compatibility compares with the latest stable release, as spec:AST-017 classification needs. No other narration.
  • R2 research in the record: none. The precedent is one sentence in DEC-2, and the survey is in this PR body.
  • R3 evidence naming a change: none. Verification cells name suites and states.
  • R4 rejected alternatives over one line or outside a decision: two, one line each, in DEC-1 and DEC-3.
  • R5 pull request or issue references remaining: none. I searched for # plus digits, /pull/, and /issues/.
  • R6 ruled open questions still listing options: none. The owner ruled on every question; the record lists no open questions, and DEC-3 to DEC-6 name the owner as decider.
  • R7 project status: none. The mismatches are two FRn gap: lines. The "Known verification gap" line is removed. phase: proposed is the template's lifecycle field.

family:input-fields

component:FormLayout

  • R1 narration: "None recorded. The record describes shipped behavior." stopped being true and now reads "None recorded here. spec:AST-117 DEC-2 decides the entry error behavior default."
  • R2 research in the record: none.
  • R3 evidence naming a change: the FR7 basis is "spec:AST-117 DEC-2; proposal", and its row is "TBD (gap)".
  • 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: none.
  • R7 project status: FR7 states its gap inline.

component:DateInput

  • R1 narration: FR24 is in the present tense. FR20 gains one parenthesis (under 'blur-or-enter', a report comes at the commit that reveals it, FR24), AR3 gains one sentence about 'blur-or-enter', and the concept row is renamed entry error behavior; the states are unchanged.
  • R2 research in the record: none.
  • R3 evidence naming a change: the FR24 basis is proposal, and its row is "TBD (gap)".
  • R4 rejected alternatives over one line or outside a decision: none.
  • R5 pull request or issue references remaining: none added. An older test name in the FR6 verification cell contains (#5074). I left it alone.
  • R6 ruled open questions still listing options: none.
  • R7 project status: the FR24 gap is inline, plus one Current-state impact bullet.

component:DateTimeInput

  • R1 narration: FR15 is in the present tense. The concept cell and AR5 are unchanged.
  • R2 research in the record: none.
  • R3 evidence naming a change: the FR15 basis is proposal, and its row is "TBD (gap)".
  • 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: none.
  • R7 project status: the FR15 gap is inline, plus one Current-state impact bullet.

component:TimeInput

  • R1 narration: FR13 is in the present tense. FR3 and FR6 are unchanged, and AR2 gains a 'blur-or-enter' clause.
  • R2 research in the record: none.
  • R3 evidence naming a change: the FR13 basis is proposal, and its row is "TBD (gap)".
  • 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: none.
  • R7 project status: the FR13 gap is inline, plus one Current-state impact bullet.

component:NumberInput

  • R1 narration: FR14 is in the present tense. FR2, FR3 (including its opening), the inverted-range row, and the state rows are unchanged, and AR2 gains a 'blur-or-enter' sentence.
  • R2 research in the record: none.
  • R3 evidence naming a change: the FR14 basis is proposal, and its row is "TBD (gap)".
  • 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: none.
  • R7 project status: the FR14 gap is inline, plus one Current-state impact bullet.

Scope

Components: DateInput, DateTimeInput, TimeInput, NumberInput, FormLayout (records only); the input-fields family record

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract. (None is named.)
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them. (The default-behavior changes are in spec:AST-118.)
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: "Knowledge templates and records are aligned." It prints no status warning for any touched record.
  • Prettier: prettier --check is clean on the seven records.
  • git diff --check: clean.
  • pnpm review:pre (head vs origin/main): 597 authored lines (limit 2,000), 0 findings, merges cleanly. Checklist items: [d] public boundary; [g] a spec owner approves the record content.
  • pnpm specs:for --diff origin/main: no concern-routed claims.

…ies (draft)

A draft system spec for `validationTiming` on DateInput, DateTimeInput,
TimeInput, and NumberInput, with a form-wide `defaultValidationTiming` on
FormLayout. The input-field family and the five component records project
it, each with its requirement gaps.
@vercel

vercel Bot commented Nov 11, 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 12, 2026 9:16am UTC

Request Review

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

astracat-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 12, 2026, 9:37 AM UTC

@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.

Approval is on hold. spec:AST-117 and its projections add requirements that no current record covers yet, so an engineering owner needs to record the decision by commenting /approve-spec <full head SHA> on this pull request; as an engineering owner, the author may do so. That decision covers the option itself, OQ1–OQ5, and whether validationTiming and its 'complete' default fit the public-API rules for behavior props (the <thing>Behavior naming, and new behavior props defaulting to the shipped behavior).

A new commit resets any approval, so please fix these record defects first:

  • FR3 item 4 and DateInput FR24 count a native date as complete as soon as the control reports it, but Chromium reports each partial year (0002-05-10, 0020-05-10, 0202-05-10) while the year is typed, so a native DateInput with min would flag an unfinished date against AR1; count a native date value as complete only at commit.
  • FR3 item 3 equates "no digit added to its end can bring it into range" with "zero or more and above max, or negative and below min", but the two differ (4 with min={20} max={30} can never reach the range yet fails the second test), so keep one test across FR3, DEC-4, OQ1 and NumberInput FR14.
  • The Compatibility section cites spec:AST-017 FR5 for changes that apply with no prop set (per-keystroke marking stops, rejected text stays on blur, a shown rejection persists), but FR5 covers only additive changes that leave old usage unchanged, and AST-017 FR3 judges a changed default under FR1, so reclassify those bullets under FR1 (naming the consumer scenario) or FR53.

Two smaller points: drop "Known verification gap: none of these suites exist on main.", since the TBD (gap) rows already say it, and align NumberInput's inverted-range row and the opening of its FR3 with the new rule that a commit keeps rejected text.

Claims and files checked
  • Claim: the option was decided in the linked issue. The decision comment exists; it is not an approval of this head.
  • Claim: FormLayout's optionality default travels through a layer-scoped context, and a nested layout replaces it, unset included. Verified in the FormLayout source.
  • Claim: main shows a nonexistent or out-of-range date once it is complete and flags unreadable date text on each keystroke. Verified in the typed-date hook.
  • Claim: NumberInput and TimeInput mark every draft that is not an in-range value as invalid and announce it on each keystroke, with no visible message. Verified.
  • Claim: TimeInput and NumberInput revert an unparsable draft on blur, and TimeInput has no Enter commit. Verified.
  • Claim: PowerSearch and Table filter editors render these inputs, and DateRangeInput has no typed entry. Verified.
  • Claim: the new record carries no pull request or issue references. Verified.
  • Claim: current mismatches are written as requirement-named gap lines. Verified, except the "Known verification gap" line.
  • Claim: 646 authored lines. Verified.
  • Claim: git diff --check is clean. Verified.
  • Claim: the knowledge check, Prettier, the pre-review script and the specs lookup pass. Not verified.
  • File docs/specs/AST-117-validation-timing/spec.md: three findings and one note.
  • File docs/specs/components/DateInput/DateInput.spec.md: FR24 shares the native-date finding.
  • File docs/specs/components/DateTimeInput/DateTimeInput.spec.md: FR15 inherits the native-date finding.
  • File docs/specs/components/NumberInput/NumberInput.spec.md: FR14 shares the number-test finding; one note on the inverted-range row.
  • File docs/specs/components/TimeInput/TimeInput.spec.md: clear.
  • File docs/specs/components/FormLayout/FormLayout.spec.md: clear.
  • File docs/families/input-fields.md: clear.

Automated review (maintainer link)

Rename the option to `validationBehavior`, `defaultValidationBehavior`, and
`ValidationBehavior`, per the `<thing>Behavior` rule for a prop that chooses
how a component responds to input, and note that it differs from the React
Aria prop of the same name.

`'complete'` is now each member's shipped behavior, as a new behavior
prop's default must be, and `'commit'` holds every signal of a member's own
rejection until Enter or blur. Per-member completeness, keeping rejected text
at commit, visible messages for NumberInput, TimeInput and native controls,
and the end of per-keystroke alerts move to a separate record. Every
compatibility bullet is additive; the unneeded verification-gap line is
dropped.
@nynexman4464 nynexman4464 changed the title spec(AST-117): validation timing for inputs that check their own entries spec(AST-117): validationBehavior for inputs that check their own entries Nov 11, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 11, 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.

Approval is on hold: spec:AST-117 and its six projections add requirements that no current record covers yet, so an engineering owner needs to record the decision by commenting /approve-spec <full head SHA> on this pull request; as an engineering owner, the author may do so. That decision covers the option itself, the recommended answers to OQ1–OQ4, whether the value name 'complete' fits NumberInput and TimeInput (which flag on each keystroke today), and whether Pagination's page input follows a form default.

A new commit resets any approval, so please fix these record defects first:

  • FR5's last sentence makes a caller's new value replace the entry and clear its rejection under both values, but NumberInput and TimeInput keep an invalid draft when value changes today (NumberInput's tests assert it), so it changes the default behaviour FR3 promises to keep; drop the sentence or scope it to what each member's record states.
  • NumberInput FR14 announces only an unparsable draft at blur and says an out-of-range number always clamps, but FR3 and the Range row also revert a fractional draft in an integer-only field and every number while min is above max, so under 'commit' those drafts would vanish unannounced against AST-117 FR4 and AR3; name them in FR14.

Smaller points: DateTimeInput's time segment has no Enter commit today either, so the FR4 gap, the Compatibility bullet and DateTimeInput FR15's gap should name it, FR3 should tie 'complete' to each member's record alone, and DateInput FR24 could say that a refused native value is announced and reverted at the same blur.

Claims and files checked
  • Claim: the option is named validationBehavior, with a FormLayout default and an exported type, following the behavior-prop naming rule: verified (record FR1, FR2, DEC-3; the public API naming rule).
  • Claim: the default is each member's shipped behaviour: verified for FR3 and the member rows; false through FR5's caller-value sentence.
  • Claim: changes that apply with no prop set moved to the companion record, so these members keep today's behaviour: false only for FR5's caller-value sentence.
  • Claim: every compatibility bullet is additive: verified for both bullets; the FR5 change has no bullet.
  • Claim: the earlier review's findings are addressed: verified for native-date completeness, the two number tests, the compatibility citation, the verification-gap line, and the naming and default; the inverted range resurfaces in NumberInput FR14.
  • Claim: the form default travels like the optionality default, nested layouts replace it even when unset, and layers start without it: verified against the layout context code.
  • Claim: code facts on main (date rejection timing, per-keystroke number and time flagging, blur reverts, no TimeInput Enter commit): verified in source.
  • Claim: the two records' new requirement ids do not overlap: verified against the companion pull request's files.
  • Claim: the knowledge check, Prettier and the pre-review checks pass: not rerun.
  • File: docs/specs/AST-117-validation-timing/spec.md: FR5 finding; FR3, FR4 gap and Compatibility notes.
  • File: docs/specs/components/NumberInput/NumberInput.spec.md: FR14 finding.
  • File: docs/specs/components/DateTimeInput/DateTimeInput.spec.md: FR15 gap note.
  • File: docs/specs/components/DateInput/DateInput.spec.md: FR24 native note.
  • File: docs/specs/components/TimeInput/TimeInput.spec.md: clear.
  • File: docs/specs/components/FormLayout/FormLayout.spec.md: clear.
  • File: docs/families/input-fields.md: clear.

Automated review (maintainer link)

…e reverted number drafts, and note the DateTimeInput time segment's Enter

@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.

Approval is on hold: spec:AST-117 and its six projections add requirements that no current record covers yet, so an engineering owner needs to record the decision by commenting /approve-spec <full head SHA> on this pull request; as an engineering owner, the author may do so. That decision covers the option itself, the recommended answers to OQ1–OQ4, whether the value name 'complete' fits NumberInput and TimeInput (which flag on each keystroke today), and whether Pagination's page input follows a form default.

Both record defects from the last review are fixed, and no blocking finding remains. Three optional wording points follow; a new commit resets any approval, so make them first if you take them:

  • NumberInput FR14's Enter clause keeps only a draft that does not parse, while FR3 and the Range row also keep a wrong-kind draft and, with min above max, every number; say Enter keeps a draft FR3 keeps.
  • FR3's last sentence ties no-prop behavior to the latest stable release as well as to each member's record; one source is enough.
  • Miss: TimeInput's at-a-glance Public contract still says "no prop, type, or export changes" beside the new validationBehavior.
Claims and files checked
  • Claim: the option is named validationBehavior, with a FormLayout default and an exported type, following the behavior-prop naming rule: verified (record FR1, FR2, DEC-3; the public API naming rule).
  • Claim: the default is each member's shipped behavior, and commit holds every signal of a member's own rejection until Enter or blur: verified (FR3, FR4 and the four member projections).
  • Claim: changes that apply with no prop set moved to the companion record, so these members keep today's behavior: verified; the value-replacement sentence now defers to each member's record.
  • Claim: every compatibility bullet is additive: verified in the new record and the five component records.
  • Claim: the earlier review findings are addressed: verified for the value-replacement sentence, the number blur clause and the time-segment Enter gap; the Enter half of the number fix remains a wording point.
  • Claim: the form default travels like the optionality default (layer-scoped, nested layouts replace it even when unset, the field wins): verified against the layout context code.
  • Claim: code facts on the base (date rejection timing, per-keystroke number and time flagging, blur reverts, no TimeInput Enter commit): verified in source.
  • Claim: open work makes commit timing the only date behavior: verified (two open pull requests).
  • Claim: the two records' new requirement ids do not overlap: verified against the companion pull request's files.
  • Claim: the new record carries no pull request or issue references: verified.
  • Claim: the knowledge check, Prettier and the pre-review checks pass: not rerun; the 502 authored lines match.
  • File: docs/specs/AST-117-validation-timing/spec.md: FR3 wording point.
  • File: docs/specs/components/NumberInput/NumberInput.spec.md: FR14 Enter wording point.
  • File: docs/specs/components/TimeInput/TimeInput.spec.md: at-a-glance wording point.
  • File: docs/specs/components/DateInput/DateInput.spec.md: clear.
  • File: docs/specs/components/DateTimeInput/DateTimeInput.spec.md: clear.
  • File: docs/specs/components/FormLayout/FormLayout.spec.md: clear.
  • File: docs/families/input-fields.md: clear.

Automated review (maintainer link)

…keeps what FR3 keeps; TimeInput contract names validationBehavior

@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.

Approval is on hold: spec:AST-117 and its six projections add requirements that no current record covers yet, so an engineering owner needs to record the decision by commenting /approve-spec <full head SHA> on this pull request; as an engineering owner, the author may do so. That decision covers the option itself, the recommended answers to OQ1–OQ4, whether the value name 'complete' fits NumberInput and TimeInput (which flag on each keystroke today), whether Pagination's page input follows a form default, and when DateInput's and DateTimeInput's onEntryErrorChange reports under 'commit'.

One fix is needed before that approval, and a new commit resets any approval, so approve the rebased head:

  • Regression: main now gives DateInput and DateTimeInput onEntryErrorChange, so this branch conflicts in both records, and DateInput FR24 and DateTimeInput FR15 do not say whether that callback, and the caller error status it drives (which DateInput AR3 shows and announces), wait for Enter or blur under 'commit'; rebase onto main and state that timing in FR4, FR24 and FR15.

The three earlier wording points are fixed.

Claims and files checked
  • Claim: the option is named validationBehavior, with a FormLayout default and an exported type, following the behavior-prop naming rule: verified (record FR1, FR2, DEC-3; the public API naming rule).
  • Claim: the default is each member's shipped behavior, and commit holds every signal of a member's own rejection until Enter or blur: verified (FR3, FR4 and the four member projections).
  • Claim: changes that apply with no prop set moved to the companion record, so these members keep today's behavior: verified; FR3 now names one source for no-prop behavior.
  • Claim: every compatibility bullet is additive: verified in the new record and the five component records.
  • Claim: the earlier review findings are addressed: verified, including the number Enter clause, the single source for the default and the time input's summary row.
  • Claim: the form default travels like the optionality default (layer-scoped, nested layouts replace it even when unset, the field wins): verified against the layout context code.
  • Claim: code facts on the base (date rejection timing, per-keystroke number and time flagging, blur reverts, no time input Enter commit): verified in source at the base.
  • Claim: open work makes commit timing the only date behavior: verified (two open pull requests).
  • Claim: the two records' new requirement ids do not overlap: verified against the companion pull request's files.
  • Claim: the new record carries no pull request or issue references: verified.
  • Claim: the pre-review check merges cleanly: false now; the date input records changed on the main branch since, and the branch conflicts in both.
  • Claim: the knowledge check and Prettier pass: not rerun; the 502 authored lines match.
  • File: docs/specs/AST-117-validation-timing/spec.md: FR4 is silent on the date inputs' new rejection callback (the blocking point).
  • File: docs/specs/components/DateInput/DateInput.spec.md: conflicts with the main branch; FR24 is silent on the callback.
  • File: docs/specs/components/DateTimeInput/DateTimeInput.spec.md: conflicts with the main branch; FR15 is silent on the callback.
  • File: docs/specs/components/NumberInput/NumberInput.spec.md: clear.
  • File: docs/specs/components/TimeInput/TimeInput.spec.md: clear.
  • File: docs/specs/components/FormLayout/FormLayout.spec.md: clear.
  • File: docs/families/input-fields.md: clear.

Automated review (maintainer link)

…idation-timing

# Conflicts:
#	docs/specs/components/DateInput/DateInput.spec.md
#	docs/specs/components/DateTimeInput/DateTimeInput.spec.md
@nynexman4464 nynexman4464 changed the title spec(AST-117): validationBehavior for inputs that check their own entries spec(AST-117): entryErrorBehavior for inputs that check their own entries Nov 12, 2026
@nynexman4464

Copy link
Copy Markdown
Contributor Author

/approve-spec 306c614

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 12, 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 approved spec:AST-117 at this head, which settles its direction; these record fixes remain, and because they need a new commit, which resets that approval, the owner approves the fixed head again with /approve-spec <full head SHA>.

  • The public-concept rows in the family record and the four member records, and AST-117's Current-state impact line, still call the option "validation timing", the name DEC-3 rejects, while FormLayout calls the same concept "entry error behavior"; rename them to "entry error behavior".
  • FR7 now keeps Pagination's page input at 'complete', but its verification row names only PowerSearch and Table suites and the path-applicability block omits packages/core/src/Pagination/Pagination.tsx, so add both, as architecture:knowledge-contracts INV26 requires.
  • Miss: the path-applicability block also leaves out packages/core/src/PowerSearch/PowerSearchValueEditor.tsx and packages/core/src/Table/plugins/filtering/useTableFiltering.tsx, which FR7 has bound since earlier revisions; add them.
  • The description says 502 authored lines (this revision has 510) and that React Aria has a prop "of the same name" (its prop is validationBehavior); update both sentences, which needs no new commit.

Non-blocking: DEC-3's "as soon as the entry is complete enough to be wrong" reads looser than NumberInput FR14 and TimeInput FR13, which flag 1 with min={10} on the keystroke, and DateInput FR20 could point its typing sentence to FR24. The earlier onEntryErrorChange and merge-conflict point is fixed.

Claims and files checked
  • Claim: the option, its name, values and default were decided in the linked issue, and the owner ruled every sub-decision: verified (issue comments for the option, values, default and names; DEC-4 to DEC-6 as the author's Decider lines, approved at this head).
  • Claim: the option is named entryErrorBehavior, with a FormLayout default and an exported type, following the behavior-prop naming rule: verified (FR1, FR2, DEC-3; the behavior-prop rule).
  • Claim: the default is each member's shipped behavior, and blur-or-enter holds every signal of a member's own rejection until Enter or blur: verified (FR3, FR4 and the four member rows).
  • Claim: changes that apply with no prop set moved to the companion record, so these members keep today's behavior: verified (FR3; the companion pull request's files).
  • Claim: every compatibility bullet is additive: verified in the new record and the five component records.
  • Claim: the findings on the first revision are addressed: verified; none of the earlier record findings remains.
  • Claim: the cited existing records (family record, behavior-prop rules, FormLayout optionality clauses, announcement, calendar, disabled and release records, member records) say what the description quotes: verified on the main branch.
  • Claim: code facts on the main branch (date rejection timing, per-keystroke number and time flagging, blur reverts, no time-input Enter commit, the layer-scoped layout context, editors that render the members): verified in source.
  • Claim: two open pull requests make commit timing the only date behavior: verified (both open).
  • Claim: React Aria has a prop of the same name: false; React Aria's prop is validationBehavior.
  • Claim: onEntryErrorChange reports at the revealing commit and clears at once: verified (FR4, the DateInput and DateTimeInput rows).
  • Claim: number and time inputs keep an invalid focused draft across a value change: verified (FR5).
  • Claim: the projections take the listed ids in six records, each with a gap line: verified.
  • Claim: the companion record takes the same ids, and whichever lands second renumbers: verified in both descriptions.
  • Claim: a nested layout without the prop resets to complete, native values wait under blur-or-enter, and Enter becomes a time-input commit only when set: verified (FR2, FR4, Compatibility).
  • Claim: the new record carries no pull request or issue references: verified.
  • Claim: no implementation, docs or changeset changes, and no internal context: verified.
  • Claim: the pre-review count is 502 authored lines: false; this revision has 510. Merges cleanly: verified.
  • Claim: the whitespace check is clean: verified. The knowledge check, Prettier and spec routing: not rerun.
  • File: docs/specs/AST-117-validation-timing/spec.md: FR7's verification row and path-applicability block miss Pagination, and the block misses the PowerSearch and Table editors; DEC-3 wording is non-blocking.
  • File: docs/families/input-fields.md: the concept row says validation timing.
  • File: docs/specs/components/DateInput/DateInput.spec.md: the concept row says validation timing; the FR20 note is non-blocking.
  • File: docs/specs/components/DateTimeInput/DateTimeInput.spec.md: the concept row says validation timing.
  • File: docs/specs/components/NumberInput/NumberInput.spec.md: the concept row says validation timing.
  • File: docs/specs/components/TimeInput/TimeInput.spec.md: the concept row says validation timing.
  • File: docs/specs/components/FormLayout/FormLayout.spec.md: clear.

Automated review (maintainer link)

Comment thread docs/families/input-fields.md Resolved
…erification name Pagination, PowerSearch and Table filter files
@nynexman4464

Copy link
Copy Markdown
Contributor Author

/approve-spec aa8c1d9

@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, for the pull request description only. The records at this head are consistent, and the engineering-owner approval of this head settles the spec direction; because every fix below is a description edit, it needs no new commit and the approval stays valid.

  • The writing-rubric line for component:DateInput says FR20 is unchanged, but this head adds "(under 'blur-or-enter', at the commit that reveals it, FR24)" to FR20 (DateInput.spec.md:198).
  • The Evidence section says spec:AST-118 projects its native-date rule in DateInput FR25 and DateTimeInput FR16, but #11321 projects it in DateInput FR24 and DateTimeInput FR15, as this description's own relationship paragraph says.
  • The Evidence section says spec:AST-118 FR1 keeps the "nothing typed at its end can bring it into range" number test with the 4-in-20–30 example, but AST-118 FR1 now makes a typed number complete only at commit, and its DEC-12 rejects that test.

Optional: FormLayout's nested state row (FormLayout.spec.md:116) could name entry error behavior beside direction and optionality, as FR4 now does.

Claims and files checked
  • Verified: the option, its values, default and names were decided on the linked issue and match FR1–FR3 and DEC-3.
  • Verified: changes that apply with no prop set live in the companion record, and both compatibility bullets are additive.
  • Verified: the earlier findings are addressed (no completeness definition here, no number tests, additive citations only, the naming and default rules, the five concept rows, FR7's Pagination row and the path block).
  • Verified: the cited architecture, release, announcement, disabled-state and FormLayout clauses say what the description says they say.
  • Verified: the code facts for the date, number and time inputs on the base, including the per-keystroke alert regions and TimeInput's missing Enter commit.
  • Verified: the linked pull requests and issues are open and about what the description says.
  • Verified: the decisions DEC-1 to DEC-6 name the owner, and the record has no open questions.
  • Verified: the companion record is one accessibility fix, aligns the NumberInput range row and FR3, and claims the same next free requirement ids.
  • Verified: the rubric lines for the new record, the family, FormLayout, DateTimeInput, TimeInput and NumberInput.
  • Verified: the authored line count (591), the clean merge with main, and a clean whitespace check.
  • False: the DateInput rubric line on FR20, and the two Evidence lines about the companion record's ids and number rule.
  • Not checked: the knowledge check, Prettier and specs-routing results in Validation, which could not run in this review's environment.
  • docs/specs/AST-117-validation-timing/spec.md: clear.
  • docs/families/input-fields.md: clear.
  • docs/specs/components/DateInput/DateInput.spec.md: clear (the description misstates its FR20 change).
  • docs/specs/components/DateTimeInput/DateTimeInput.spec.md: clear.
  • docs/specs/components/FormLayout/FormLayout.spec.md: non-blocking note on the nested state row.
  • docs/specs/components/NumberInput/NumberInput.spec.md: clear.
  • docs/specs/components/TimeInput/TimeInput.spec.md: clear.

Automated review (maintainer link)

@nynexman4464

Copy link
Copy Markdown
Contributor Author

/approve-spec a24c20e

@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: one record fix. The engineering-owner approval of this head settles the direction and the earlier description findings are fixed, but the fix below needs a new commit, after which an engineering owner records approval again by commenting /approve-spec <full head SHA> on the new head (the author may do so as an engineering owner).

  • Miss: spec:AST-117 FR6 says a disabled or busy member reveals no rejection "as its record states", but TimeInput's record keeps a busy field editable and flagging (its FR6 keeps the picker enabled during a pending Action and marks out-of-range native edits, and only a disabled field blocks typing) and DateTimeInput's native segments accept edits during a pending changeAction, so FR6 contradicts FR3's promise that 'complete' is the shipped behavior; scope FR6 to the records that lock a busy field (DateInput FR12, DateTimeInput FR9 and FR13) and align its verification row.

Optional: NumberInput's Builder impact row still says public prop types remain unchanged beside the new entryErrorBehavior, and the Validation line's authored count is 593 at this head, not 591.

Claims and files checked
  • Verified: the option, its values, default and names were decided on the linked issue and match FR1–FR3 and DEC-3; the name follows the behavior-prop rule and the default is the shipped behavior.
  • Verified: changes that apply with no prop set live in the companion record, which is one accessibility fix, projects into the same next requirement ids, and makes typed numbers and native dates complete only at commit.
  • False while FR6 stands: that the four members keep today's behavior in this pull request and that every compatibility bullet is additive; a busy TimeInput would stop flagging.
  • Verified: the earlier findings are addressed (no completeness definition here, no number tests, additive citations only, no verification-gap line, the naming and default rules).
  • Verified: the cited architecture, release, announcement, layer, disabled-state and FormLayout clauses say what the description says they say.
  • Verified: the code facts for the date, number and time inputs on the base, including the per-keystroke alert regions and TimeInput's missing Enter commit (DateTimeInput's validity memo has a slightly different name).
  • Verified: the linked pull requests and issues are open and about what the description says.
  • Verified: DEC-1 to DEC-6 name the owner, the record has no open questions, and the projections table matches the records.
  • Verified: the writing-rubric lines for all seven records.
  • Verified: a clean whitespace check and a clean merge with main.
  • Stale: the authored line count (593 at this head, not 591).
  • Not checked: the knowledge check, Prettier, specs routing and pre-review findings in Validation, which could not run in this review's environment.
  • docs/specs/AST-117-validation-timing/spec.md: FR6 busy rule (blocking).
  • docs/specs/components/TimeInput/TimeInput.spec.md: FR13 cites FR6 but keeps a busy field flagging (part of the FR6 finding).
  • docs/specs/components/DateTimeInput/DateTimeInput.spec.md: native segments during a pending Action (part of the FR6 finding).
  • docs/specs/components/NumberInput/NumberInput.spec.md: non-blocking Builder impact row.
  • docs/specs/components/DateInput/DateInput.spec.md: clear.
  • docs/specs/components/FormLayout/FormLayout.spec.md: clear.
  • docs/families/input-fields.md: clear.

Automated review (maintainer link)

@nynexman4464

Copy link
Copy Markdown
Contributor Author

/approve-spec a9259bb

@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 is still running on this head, so this is not ready to merge until its required checks pass.

The engineering-owner approval of this head settles the direction of spec:AST-117, and the last review's finding is fixed: FR6 now silences only locked fields, and a busy TimeInput, which stays editable, keeps revealing rejections as it does today.

  • Optional (Miss): the Governing rules row of each member's review projection (DateInput, DateTimeInput, FormLayout, NumberInput, TimeInput) could list spec:AST-117, the way DateInput's row already lists spec:AST-111.
Claims and files checked
  • Verified: the option, its values, default and names were decided in the owner's comments on the linked issue and match FR1–FR3 and DEC-3.
  • Verified: the name follows the behavior-prop naming rule, and the default is each member's shipped behavior.
  • Verified: changes that apply with no prop set live in the companion record's open pull request, which is one accessibility fix, makes typed numbers and native dates complete only at commit, rejects the digit-reachability test, and uses the same next requirement ids.
  • Verified: every compatibility bullet is additive, in the new record and in each member's compatibility lines.
  • Verified: the earlier findings are addressed (no completeness definition, no number tests, additive citations only, no verification-gap line, NumberInput's range row and FR3 opening unchanged).
  • Verified: the cited naming, release, announcement, layer, disabled-state and FormLayout clauses say what the description says, and a nested FormLayout replaces an unset optionality default in code.
  • Verified: the code facts for the date, number and time inputs on the main branch, including the per-keystroke alert regions and TimeInput's missing Enter commit (DateTimeInput's validity memo is named for its time segment).
  • Verified: the linked pull requests and issues are open and about what the description says.
  • Verified: FR1–FR7, the projections table, the owner decisions (DEC-3 to DEC-6 name the owner; no open questions), the notes on TimeInput's Enter, native values and nested layouts, and the scope and non-goals match the records; no implementation, docs or changeset changes.
  • Verified: the writing-rubric lines for all seven records, including the older references left outside the delta.
  • Verified: 597 authored lines, a clean whitespace check and a clean merge with the main branch; every changed table is padded the way Prettier pads it, and the new record follows the system-spec template.
  • Not rerun here: the knowledge check, the Prettier check, specs routing and the pre-review findings count; CI's spec lane runs the knowledge check.
  • docs/specs/AST-117-validation-timing/spec.md: clear (FR6 fixed).
  • docs/specs/components/DateInput/DateInput.spec.md: Governing rules note (non-blocking).
  • docs/specs/components/DateTimeInput/DateTimeInput.spec.md: Governing rules note (non-blocking).
  • docs/specs/components/FormLayout/FormLayout.spec.md: Governing rules note (non-blocking).
  • docs/specs/components/NumberInput/NumberInput.spec.md: Builder impact row fixed; Governing rules note (non-blocking).
  • docs/specs/components/TimeInput/TimeInput.spec.md: Governing rules note (non-blocking).
  • docs/families/input-fields.md: clear.

Automated review (maintainer link)

| Behavior | `presentation` selects the picker surface; an omitted value is `adaptive-native`; `presentation` wins over deprecated `nativePicker`; every committed path emits the same controlled ISO-date value and action feedback. The pointer field reads and writes typed dates in the resolved calendar and reports a typed date only when it is complete (FR20). With a calendar other than `gregory` or `iso8601`, a presentation that would show the native control shows the popover on a fine pointer and the bottom sheet on a coarse pointer, and the bottom sheet shows months of the calendar (FR21). |
| End-user impact | People type or pick one date using a surface suited to the primary pointer, in the calendar the application chooses. Disabled and busy fields stay focusable; a busy field keeps its ordinary paint with a Spinner while new commits are blocked. |
| Builder impact | Optional: set `calendar` on the field or its provider, and `min` and `max` on Buddhist and Minguo calendar fields. `changeAction` runs after `onChange` with optimistic busy feedback on every surface. |
| Compatibility/readiness | `calendar` is additive and the default stays Gregorian. `onEntryErrorChange` is additive; without it, a typed rejection's message replaces a caller `status` as AR3 states. Typed Gregorian entry fires `onChange` only for complete input and keeps an out-of-range date with its error; `parseDateInput` handles only unreadable text and dates the locale's order lacks, and a two-digit year reads within the 80 years before and 19 after the current year, 1946–2045 in 2026 (FR20). Calendars that need `Temporal` fall back to Gregorian where it is missing (the `spec:AST-013` FR12 exception). Under a finger, the sheet wheels' markup changes (one strip of flat rows, faded by a layer inside the column). Under every presentation, keys step through the values in time order (FR17). Caller handlers while disabled, fixed field height, a clear control that drops focus, and month paging in the touch calendar are listed under Current-state impact. |
| Review checks | Reject a surface-mapping change, lost constraint, callback-order change, unlabeled field, native `disabled`, disabled paint on a busy-only field, unreachable disabled reason, changed close behavior, a theming target placed on the wrong owner, a typed date reported before it is complete, an adjusted typed date, or two rejection kinds that share a message. |
| Review checks | Reject a surface-mapping change, lost constraint, callback-order change, unlabeled field, native `disabled`, disabled paint on a busy-only field, unreachable disabled reason, changed close behavior, a theming target placed on the wrong owner, a typed date reported before it is complete, an adjusted typed date, two rejection kinds that share a message, or a rejection revealed before commit under `'blur-or-enter'`. |
| Governing rules | `spec:AST-043/FR1–FR5`; `spec:AST-085/FR1–FR6`; `spec:AST-086/FR3, FR4, FR6, FR8`; `spec:AST-111` FR2, FR3, FR9–FR16, AR2, AR3; `spec:AST-013` FR12; `family:input-fields/FR1–FR6, FR8–FR11`; `family:overlay-dismissal/FR1–FR7`, including its recorded BottomSheet adoption gap; `spec:AST-020/FR15`; `spec:AST-102/FR4`; the four architecture records linked above. |

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.

Non-blocking (Miss): this Governing rules row lists spec:AST-111 but not spec:AST-117, which FR24 and the Public contract row now cite. The same row in DateTimeInput (:64), FormLayout (:49), NumberInput (:52) and TimeInput (:49) omits it too. Suggest adding spec:AST-117 FR1–FR6 (FormLayout: FR2).

@nynexman4464
nynexman4464 marked this pull request as ready for review November 12, 2026 09:30
@nynexman4464
nynexman4464 merged commit 1182a64 into main Nov 12, 2026
119 checks passed
@github-actions
github-actions Bot deleted the nynexman4464/spec/validation-timing branch November 13, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — a9259bbb Deployed Nov 12, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant