Skip to content

feat(core): make the CLI visible where agents read - #5939

Closed
josephfarina wants to merge 2 commits into
mainfrom
cli-discovery-build-hints
Closed

josephfarina wants to merge 2 commits into
mainfrom
cli-discovery-build-hints

Conversation

@josephfarina

@josephfarina josephfarina commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • generate a CLI search hint at the top of every shipped component doc
  • stamp every generated TypeScript declaration during the core build
  • append a copyable CLI search to development warnings while keeping production error text unchanged
  • keep docs and tests out of runtime component audit scopes, so generated comments do not fan out visual, RTL, or accessibility jobs
  • fail check:repo when checked-in source hints drift

This closes the gap where an agent can read the package's rich docs or types without ever discovering the Astryx CLI.

Test plan

  • pnpm lint:strict
  • pnpm exec vitest run --maxWorkers=4 --reporter=dot
  • pnpm -F @astryxdesign/core build
  • pnpm -F @astryxdesign/core typecheck
  • packed @astryxdesign/core and verified all 227 component docs and 598 declarations contain guidance
  • ran all 235 unique generated CLI searches and verified every query returns results

Try it

pnpm generate:cli-discovery-hints --check
pnpm -F @astryxdesign/core build
sed -n '1,8p' packages/core/dist/Button/Button.d.ts
NODE_ENV=development node --input-type=module -e 'import("./packages/core/dist/utils/devWarning.js").then(({devWarn}) => devWarn("Button", "bad prop"))'

Expect the declaration to start with npx @astryxdesign/cli search "Button". The warning prints the original message followed by the same CLI lookup.

@vercel

vercel Bot commented Sep 2, 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 Sep 24, 2026 1:48am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 2, 2026
@josephfarina
josephfarina force-pushed the cli-discovery-build-hints branch from fd1141a to 074f41e Compare September 2, 2026 22:47
github-actions Bot added a commit that referenced this pull request Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Preview availability: CI did not succeed, so no preview was published.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.9KB 1.2KB

Accessibility Audit

Status: 36 accessibility violation(s) found — 2 critical, 34 serious.

Button pattern - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/18 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ChatComposer - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/19 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ChatComposerInput - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/16 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ChatReasoning - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 4/5 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ChatToolCalls - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 10/11 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Checkbox pattern - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/33 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
CheckboxList - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 4/17 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ClickableCard - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/5 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
CodeEditor - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/7 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
CodeEditorPerf - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/2 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
CodeEditorTheme - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 13/14 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
CodeTheme - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 14/16 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
DateRangeInput - 1 issue(s)
  • 🔴 critical: Ensure an element's role supports its ARIA attributes
    • Rule: aria-allowed-attr · Affects 1/21 stories · Learn more
    • WCAG: 4.1.2 (Level A)
FileInput - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/15 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
GridMasonry - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/3 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Heading - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/16 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Icon - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/18 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
LogStream - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/3 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
MediaTheme Auto - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/5 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
PowerSearch - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/26 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ProgressBar - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/18 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Radio group pattern - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/26 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
RadioList - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/14 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
RichTextEditor - 2 issue(s)
  • 🟠 serious: Ensure every ARIA input field has an accessible name
    • Rule: aria-input-field-name · Affects 2/18 stories · Learn more
    • WCAG: 4.1.2 (Level A)
  • 🔴 critical: Ensure every form element has a label
    • Rule: label · Affects 1/18 stories · Learn more
    • WCAG: 4.1.2 (Level A)
SelectableCard - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/4 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Stepper - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/30 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
TableGroupedRows - 1 issue(s)
  • 🟠 serious: Ensure ARIA attributes are used as described in the specification of the element's role
    • Rule: aria-conditional-attr · Affects 3/3 stories · Learn more
    • WCAG: 4.1.2 (Level A)
TableTree - 1 issue(s)
  • 🟠 serious: Ensure ARIA attributes are used as described in the specification of the element's role
    • Rule: aria-conditional-attr · Affects 8/9 stories · Learn more
    • WCAG: 4.1.2 (Level A)
Text - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/23 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Theme - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/5 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
PopArt - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/6 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Thumbnail - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/12 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Timestamp - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/20 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Token - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/10 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Tokenizer - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/24 stories · Learn more
    • WCAG: 1.4.3 (Level AA)

Visual Regression

19 of 422 shot(s) changed. View the report

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Slider Default probe light 15,617
Slider Default probe dark 15,615
Chat With Attachments probe light 12,964
Chat With Attachments probe dark 12,114
InputGroup With Typeahead probe light 11,012
InputGroup With Typeahead probe dark 9,189
ComplexSelector Tree list with search probe light 6,245
TextArea Vertical Form Alignment probe light 5,634
ComplexSelector Tree list with search probe dark 5,602
TextArea Vertical Form Alignment probe dark 5,047
ComplexSelector Fruit ripeness selector neutral light 4,007
ComplexSelector Fruit ripeness selector neutral dark 3,825
ToggleButton Group Single probe dark 1,538
ToggleButton Group Single probe light 1,538
MediaTheme On Dark neutral dark 838
Banner Collapsible Content (Expanded) probe dark 92
Banner Collapsible Content (Expanded) probe light 90
AlertDialog Delete neutral light 71
TableRowStatus Default neutral light 23
Slider — Default — probe light
BeforeAfterDiff
Before visual regression frame After visual regression frame Pixel difference frame
Slider — Default — probe dark
BeforeAfterDiff
Before visual regression frame After visual regression frame Pixel difference frame
Chat — With Attachments — probe light
BeforeAfterDiff
Before visual regression frame After visual regression frame Pixel difference frame

Generated by PR Enrichment workflow | View full report

@astracat-bot

astracat-bot Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Sep 28, 2026, 12:17 PM UTC

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

Before approval, please preserve declaration source-map relationships during stamping, hard-gate generated CLI search terms with deterministic CI, and rebase and revalidate the generated outputs and audit-scope assumptions. The current draft is conflicted and hundreds of commits behind, so these checks need to run against a current base.

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

Thanks for closing the agent-discoverability gap — the doc, declaration, and warning pointers all serve that one intent coherently, and production error text is preserved.

Approval is waiting on a maintainer: please provide or identify the governing spec that authorizes adding generated CLI search hints to every shipped component doc and generated declaration, and appending the CLI line to development warnings. The CLI record found in the repo is still a draft, and the current public-API rules require this kind of observable change to match an approved record. Naming that spec is what unblocks approval on direction.

Two independent fixes are also needed before this can land:

  • Preserve declaration source maps when stamping — declarations are built with maps enabled, but prepending the hint without updating the map shifts every mapped line for consumers.
  • Add a deterministic CI gate that the generated search terms actually resolve, including fallback terms — the current check only proves the hints do not drift.

[Automated review]

github-actions Bot added a commit that referenced this pull request Sep 24, 2026
josephfarina and others added 2 commits September 23, 2026 18:32
Summary:
Add deterministic CLI search hints to every shipped component doc and generated type declaration. Route development warnings through the same CLI-aware formatter while preserving production error output.

Test Plan:
- pnpm lint:strict
- pnpm exec vitest run --maxWorkers=4 --reporter=dot
- pnpm -F @astryxdesign/core build
- pnpm -F @astryxdesign/core typecheck
- pnpm -F @astryxdesign/core pack --pack-destination /tmp/ac-astryx-pack-final
- verify all 227 docs and 598 declarations in the tarball contain guidance
- verify all 235 generated search queries return results
The ResizeHandle axis-mismatch test (added on main after this PR) asserts
the exact console.warn text. This PR appends a CLI search hint to every
dev warning, so the test must expect that suffix.

The Markdown production-diagnostic test (protocol.test.tsx) stubs
NODE_ENV to "production" at runtime, but devWarning.ts snapshots isDev
at module load. devError still appends the CLI hint because the stub
arrives too late. This is a known finding — see the PR discussion for
a proposed isDev() function patch.

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

Thanks for closing the agent-discoverability gap — the doc, declaration, and warning pointers all serve that one intent coherently.

Approval is waiting on a maintainer: please provide or identify the governing spec that authorizes adding generated CLI search hints to every shipped component doc and generated declaration, and appending the CLI line to development warnings. The CLI record in the repo is still a draft, and the current public-API rules require this kind of observable change to match an approved record. Naming that spec is what unblocks approval on direction.

Three independent fixes are also needed before this can land:

  • Preserve declaration source maps when stamping — declarations are built with maps enabled, but prepending the hint without updating the map shifts every mapped line for consumers.
  • Add a deterministic CI gate that the generated search terms actually resolve, including fallback terms — the current check only proves the hints do not drift.
  • Keep production Markdown diagnostics free of the hint in the runtime-stub path too — the caller checks the environment at call time but the warning helper snapshots it at load, so that production diagnostic can still get the extra line; evaluating the environment at call time, as already proposed in the latest commit message, would fix it.

[Automated review]

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

Reviewed exact head acebf435, the generator, representative generated outputs, utility semantics, build order, and live CI. Requesting changes.

  1. devWarning.ts:24,74-77 captures isDev at module load while callers such as Markdown check NODE_ENV when the failure occurs. If the environment changes after import, devError() appends the development-only CLI hint to a production diagnostic. This is reproduced by the current failing test-ui job: the existing protocol test receives an extra Astryx CLI line. Determine production mode at call time and cover the non-reimported case.

  2. Core emits declaration maps, then generate-cli-discovery-hints.mjs:56-67,136-165 prepends six lines to every .d.ts without updating .d.ts.map. That shifts every generated position and corrupts editor source navigation. Append the hint before the source-map directive without shifting mapped declarations, or update each map.

Cross-PR: new docs from #6221 and #5489 will fail check:cli-discovery-hints unless this generator is rerun after those files land. Rebase/regenerate rather than copying generated docs across branches.

cixzhang added a commit that referenced this pull request Oct 14, 2026
…docs (#7372)

## User impact

Builders reading DateInput's API reference could not find `containerClassName`, `containerStyle`, `controlClassName`, or `controlStyle`, even though DateInput accepts them and they are the only class-name and inline-style hooks it has after root styling was removed. The English, Chinese, and dense references now list all six part-styling props, like the other field components. The draft contract now matches DateInput's current behavior. Runtime behavior does not change.

## Audit scope

- Package/component: `core/DateInput`
- Base: `1e883f86e7aa5c2be376671f746d79e5cfae769b`
- Frozen head: `4faee79d299c5f4661bfecbb01a7aade966440ee`
- Mode: Night Watch whole-component audit · Rubric: **1.16.6**
- Runtime/API changes: none (API reference, draft contract, and a `[docs]` Changeset)
- Landing: held until the 0.7.0 release is tagged.

## Score

- Before: **85.6 / C** — 2 open BLOCKs; §5b not measured.
- After: **87.3 / C**, confirmed by the exact-head checks — the same 2 BLOCKs, both owned by open contributor pull requests (see Needs Review).
- Sensitivity: resolve the 2 open BLOCKs and change nothing else → **99.0 / A**.
- Sections §1, §2, §3, §4, §5a, §5b, §6, §7, §8, §9, §10 — before `3, 5, 5, 3, 5, nm, 5, 5, 4, 5, 4`; after `3, 5, 5, 3, 5, nm, 5, 5, 5, 5, 4`.

## Findings

| ID | Section | Finding | Authority | Result |
|---|---|---|---|---|
| D1 | §1 A5 — BLOCK | In the bottom-sheet calendar, the month arrows become natively disabled at the first or last reachable month, so a keyboard user who steps onto that month loses focus to the document. | `architecture:interaction-modality`; WCAG 2.2 SC 2.4.3 | **Open.** #6304 already fixes it; not duplicated here. |
| D2 | §4 B15 — BLOCK | After a clear, the pointer surface passes `undefined` to Calendar, which treats it as uncontrolled, so reopening the calendar shows the cleared date as selected. A focused test at the exact head reproduces it: one day stays selected after clear and reopen. | DateInput clear contract (FR1, FR11); Calendar's documented controlled-empty `null`; WCAG 2.2 SC 4.1.2 | **Open.** #6935 already fixes it; not duplicated here. |
| D3 | §8 X5b — FIX | The API reference omitted `containerClassName`, `containerStyle`, `controlClassName`, and `controlStyle`, which DateInput accepts under `family:input-fields/FR10`; the other field members list them. | `family:input-fields/FR10`; rubric X5b | **Fixed** in the English, Chinese, and dense references. |
| D4 | §8 — FIX | The draft contract described the removed `date-input-clear-icon` alias and did not cite the FR10 base-prop and part-styling rule DateInput now follows. | Current source; `family:input-fields/FR10` | **Fixed.** The contract cites FR10 and the current clear-glyph target; the FR10 suite joins `verified_by`. No new component requirement is added. |

Not scored: the bottom-sheet surface inherits BottomSheet's recorded shared-dismissal adoption gap (owned by BottomSheet under `family:overlay-dismissal`). The bottom-sheet calendar's day cells fade their colors without a reduced-motion collapse, but the motion record is still a draft, so no current authority applies.

## What changed

- `DateInput.doc.mjs` — four props entries in `docs` and `docsZh`, four `docsDense` descriptions, matching the sibling field components.
- `DateInput.spec.md` (draft) — cites `family:input-fields/FR10` in the governing rules and the family relationship, adds `DateInput.fr10.test.tsx` to `verified_by`, and names the current clear-glyph target.
- `.changeset/date-input-part-style-props-docs.md` — `[docs]` patch, because the API reference ships in the package.

## Evidence

- This PR changes no behavior, so no new functional test was added; typed docs validation and the doc-prop suites cover the docs change.
- Exact-head checks on `4faee79`: CI run 38256902974 succeeded, including build, lint, unit tests, docsite tests, and the Storybook build.
- `pr-a11y` audited all 26 DateInput stories: 0 violations and no new baseline entries.
- `pr-rtl` (core): `core/DateInput` passes the automatic check and its curated calendar/clear control-order check.
- Stable visual regression: see Visual acceptance.
- Owner-exempt `review-required` is success on `4faee79`, set by GitHub Actions through the repository's Review signal workflow. `spec-owner-approval` is success (draft record only), and the CLA check passes.
- A private review of the exact head, title, and description is clean.
- Local runs on the first head: DateInput, doc-prop, and theming suites — 757/757; `typecheck:docs`; `pnpm build`; docsite generate and tests — 620 passed, 6 skipped; `check:knowledge`; `check:changesets`. Later commits changed only draft-contract text, with `check:knowledge` re-run after each, plus one empty commit that retriggered a failed preview deployment.
- No local browser result is credited; browser evidence comes from the exact-head checks above.

## Closed evidence inventory

| Surface | Evidence | Result |
|---|---|---|
| Controlled ISO value, typing, constraints, formats | source; focused suites | pass |
| Five presentation values and deprecated mapping | `Presentation.test.tsx`; native and touch suites | pass |
| Pointer calendar open, select, close | source; tests; `OpenCalendarAudit` story | pass |
| Clear and calendar selection | source; focused test at the exact head | open — D2 |
| Bottom-sheet calendar, wheels, save | `DateInputTouch.test.tsx` | pass |
| Bottom-sheet month arrows at a bound | source | open — D1 |
| Native picker, Action, clear, focus continuity | `NativeDateField.test.tsx` | pass |
| Field states, status, disabled reason, InputGroup | focused suites; `AllVariations` | pass |
| FR10 base props and part styling | `DateInput.fr10.test.tsx`; `StylingParts` story | pass |
| API reference completeness | `DateInput.doc.mjs` | fixed — D3 |
| Theming targets | `themingTargets.test.ts`; themed stories | pass |
| Accessibility and RTL | exact-head `pr-a11y` (26 stories) and `pr-rtl` (core) | pass |
| Narrow viewport and coarse pointer pixels | none | not measured |

## Visual acceptance

Product visual delta: **N/A**. The change is limited to the API reference, the draft contract, and a Changeset; no component source, style, story, or rendered output changes.

The exact-head stable visual gate passed with verdict `changed`: 448 shots, 356 unchanged, 42 changed, 50 added, 22 removed, 0 failed, against a baseline captured on 2026-09-26. #7370's exact-head report, from a PR that changed no DateInput file, lists the same 42 changed, 50 added, and 22 removed shots. 41 changed shots match it pixel for pixel; the 42nd, a SideNav resize shot, also varies between runs of this PR. No DateInput shot changed: its 8 added and 2 removed shots appear identically in #7370's report. The verdict reflects baseline drift, not this PR.

## Knowledge overlap search

- Terms: `component:DateInput`, `DateInput.spec.md`, `containerClassName`, `controlClassName`, `FR10`, `date-input-clear-icon`, plus the path `packages/core/src/DateInput/`.
- Canonical owner: the existing draft `component:DateInput` at `packages/core/src/DateInput/DateInput.spec.md`; the FR10 rule stays with `family:input-fields` and is linked, not copied.
- Overlapping open work inspected: #6935 and #6304 own D2 and D1; #7358 changes translator imports; #6884, merged after this audit's base, changes only the bottom-sheet padding in `TouchDateField.tsx`; #6133 and #5939 are drafts. None edits `DateInput.spec.md`. DateRangeInput, DateTimeInput, and TimeInput carry the same API-reference gap; that is outside this audit.

## Review feedback

- Automated review asked that the contract not restate part of `family:input-fields/FR10` and then that it not add a draft requirement that no current spec states. The contract now only cites FR10; the earlier FR13 row and its verification row are removed. The automated review approved the final head.

## Needs Review

- **D1** — focus at the bottom-sheet month bounds: owned by #6304.
- **D2** — stale calendar selection after clear: owned by #6935.
- **Merge timing** — held until the 0.7.0 release is tagged.

## Writing rubric results

- R1 narration: none; the contract states current behavior.
- R2 research: none.
- R3 evidence: facts and standards, not changes.
- R4 rejected alternatives: none.
- R5 change references: none.
- R6 open questions: none.

## FR10 exact-head report

```json
{
  "schemaVersion": 1,
  "component": "DateInput",
  "package": "core",
  "mode": "night-watch",
  "rubricVersion": "1.16.6",
  "repositoryBase": "1e883f86e7aa5c2be376671f746d79e5cfae769b",
  "repositoryHead": "4faee79d299c5f4661bfecbb01a7aade966440ee",
  "componentContractHead": "4faee79d299c5f4661bfecbb01a7aade966440ee",
  "inventory": {"closed": true, "rows": 13},
  "score": {"before": 85.6, "after": 87.3, "beforeBlocks": 2, "afterBlocks": 2},
  "unresolvedObjectiveGaps": [{"id": "D1", "rule": "A5", "owner": "#6304"}, {"id": "D2", "rule": "B15", "owner": "#6935"}],
  "unresolvedManualGaps": [],
  "remediations": [
    {"id": "D3", "state": "verified-source", "evidence": "six part-styling props listed in all three references"},
    {"id": "D4", "state": "verified-source", "evidence": "draft contract cites FR10 and names the shared clear glyph target"}
  ],
  "approvals": {"privateExactHeadSelfReview": "clean", "reviewSignal": "success (GitHub Actions)", "specOwner": "draft record only"},
  "checks": {"local": "green; no local browser", "exactHeadCI": "success (run 38256902974)", "a11y": "0 violations across 26 owned stories", "rtl": "automatic and curated checks pass", "visual": "N/A product delta; gate drift matches an unrelated PR"},
  "eligibility": {"eligible": false, "reasons": ["FR11 auto-merge inactive", "two open BLOCKs owned by contributor pull requests", "held until the 0.7.0 release is tagged"]}
}
```
@josephfarina

Copy link
Copy Markdown
Contributor Author

Closing: init and upgrade now write the Astryx agent-docs block at the project root, where every agent we tested reads it (#7497), and global install mode adds a computer-level skill (#7649), so agents find the CLI without hints inside each component doc.

@github-actions
github-actions Bot deleted the cli-discovery-build-hints branch October 22, 2026 06:22

This branch was successfully deployed

1 active deployment
Preview — acebf435 Deployed Sep 24, 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.

2 participants