Skip to content

fix(cli): search reads another entry's name as that entry's evidence - #12433

Merged
josephfarina merged 7 commits into
mainfrom
josephfarina/search-round-l
Nov 18, 2026
Merged

josephfarina merged 7 commits into
mainfrom
josephfarina/search-round-l

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

astryx search reads another entry's name as that entry's evidence. A block no longer ranks above a component because it uses components that match the query's words. A guide whose title sits in the query no longer takes the title's rank when the query also names a component the guide does not answer. It ranks by the words it matches: a guide whose title is its only match yields to a component the query names, except when that word is also a doc's name (link, icon, theme, calendar) or the guide's own name is a query word. Scoring reuses its word work, so search stays within its speed budget. spec:AST-083 FR states the reading.

Results

  • Ranking: judged relevance of the top three results improved in a Core-only project and in a project with eight integrations, on replayed requests and on requests not seen while tuning.
  • Known loss: asks that name one specific table template or color doc may show a closely related entry first; a follow-up rule restores exact-name asks.
  • Typos: no typo probe lost its leading result; a few gained one.
  • Build: recommendations unchanged (same starts, alternatives and blocks).
  • Lookups and the search quality graph: not worse.
  • Speed (warm search vs main, on a quiet machine, medians with 95% ranges, n=21 with an A/A control): warm search is within +15 ms of main in every project tested; the largest cell is eight-integration long asks at +15 ms (range +10 to +19). First runs are unchanged within noise.
  • JSON shape unchanged.

Testing

  • packages/cli/api/search/search.own-evidence.test.mjs covers the own-evidence reading.
  • The search, discovery and doc suites pass.

Writing rubric results

R1 narration: none. The FR1 addition and the Non-goals line state what search does, in the present tense.
R2 research: none in the record. The measurements are in the description and the gate reports.
R3 evidence: none. The Verification table is unchanged.
R4 rejected alternatives: none added.
R5 change references: none. No pull request or issue numbers in the record.
R6 open questions: none ("None." unchanged).
R7 project status: none.

@vercel

vercel Bot commented Nov 17, 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 18, 2026 8:57am UTC

Request Review

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

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request): in search's reading of the catalog, another entry's name is that entry's evidence. A component that a block uses never answers a query word for the block alone, and a title inside the query reaches its tier only when no query word it leaves unanswered names a component, a hook or no doc. searchCore, which build reads, keeps the gathered reading. The known loss is disclosed above: an ask that names one specific table template or color doc may show a closely related entry first.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b66d068

@astracat-bot

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 18, 2026, 9:05 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.

Changes requested: the block half of this change works, but one case the changeset promises still behaves as before.

  • A guide whose title is its only answer still takes the title tier past a component the query names (packages/cli/api/search/_score.mjs:286, the matched === 0 branch): astryx search "drawer test in an app" lists the "Test in an app" guide (160) above Drawer (108), and four more guide titles do the same, which contradicts the amended FR1 and the changeset's "no longer ranks above a component the query names"; score such a title below the tier and add a test for it, or state the exception in FR1, ORDERING.md and the changeset.

Two smaller points: the record's Non-goals still say it does not cover how search scores an entry, and the description's speed lines (the +20 ms budget "in every cell" beside +32 ms for long eight-integration requests) read as conflicting.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: search reads another entry's name as that entry's evidence: partly false; true for blocks, not for a title that answers no other query word.
  • Claim: a block no longer ranks above a component because it uses components that match the query's words: verified (new test fails before and passes after; real searches put the components first).
  • Claim: a guide whose title sits in the query no longer ranks above a component the query names that it does not answer: false for five guide titles (_score.mjs:286).
  • Claim: build is unchanged: verified (build reads the gathered catalog; build tests pass).
  • Claim: the record's FR1 states the reading: verified; the code adds an exception FR1 does not state.
  • Claim: judged relevance improved in both test projects, typo probes kept their leading results, lookups and the quality graph are not worse: not verifiable from the repository.
  • Claim: speed within budget: not verifiable for the eight-integration project; Core-only warm long requests measured about +5 ms; the two speed sentences conflict.
  • Claim: JSON shape unchanged: verified (result fields and types unchanged).
  • Claim: the new test file covers the reading and the search suites pass: verified for the search suite (282 tests); it has no case for a title that answers no other word.
  • File .changeset/search-own-evidence.md: finding (guide claim).
  • File docs/specs/AST-083-result-order/spec.md: owner-approved; title clause contradicted by the code; non-blocking Non-goals note.
  • File packages/cli/api/search/ORDERING.md: finding (states the title rule without the exception).
  • File packages/cli/api/search/_score.mjs: finding (title-tier exception).
  • File packages/cli/api/search/_adapter.mjs: clear.
  • File packages/cli/api/search/_candidate-score.mjs: clear.
  • File packages/cli/api/search/_gather-templates.mjs: clear.
  • File packages/cli/api/search/_lexical.mjs: clear.
  • File packages/cli/api/search/_named-keywords.mjs: clear.
  • File packages/cli/api/search/_words.mjs: clear.
  • File packages/cli/api/search/search-index.mjs: clear.
  • File packages/cli/api/search/search.own-evidence.test.mjs: clear; missing the case above.

Automated review (maintainer link)

Comment thread packages/cli/api/search/_score.mjs Resolved
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · b535fa6

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 5.43 MB packed (+3.0 kB); no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

A title inside the query keeps its tier only when no query word it leaves
unanswered names a component or hook, also when the title is the guide's
only answer. Kept from the tier, the title still answers its own words, as
a keyword substring hit does, so the guide stays a match on the token sum.
The record's non-goals now name the reading FR1 states.
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner approving the spec:AST-083 change at this head, and one release-note claim needs rewording. The earlier /approve-spec covered the previous head, and the latest commit edited the record again, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do this as an engineering owner.

  • Miss: the changeset and the description say a guide whose title sits in the query no longer ranks above a component the query names, but a guide whose own name is a query word still leads (astryx search "drawer global mode" lists the Global mode guide at 122 above Drawer at 105, and six more guides do the same for every component checked), so reword it to say such a guide no longer takes the title tier above that component and ranks on the words it answers itself.

The earlier finding is fixed: a guide whose title is its only answer now ranks below the component the query names. Smaller points: add the ## Writing rubric results section that record changes carry, and say which rule lets the +32 ms eight-integration speed cell meet the +20 ms budget.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: search reads another entry's name as that entry's evidence: verified for a block's used components and for the title tier.
  • Claim: a block no longer ranks above a component because it uses components that match the query: verified (the new test fails before and passes after; avatar badge lists Avatar and Badge before the blocks that only use them).
  • Claim: a guide whose title sits in the query no longer ranks above a component the query names that it does not answer: false for guides whose own name is a query word (drawer global mode); true for guides whose title is their only answer.
  • Claim: scoring reuses its word work and stays within the speed budget: warm long requests in a Core-only project read about +2 ms; the eight-integration cells could not be reproduced, and the two speed sentences read as conflicting.
  • Claim: the record's FR1 states the reading: verified; the record is not yet approved at this head.
  • Claim: judged relevance improved in both projects, no typo probe lost its leading result, lookups and the quality graph are not worse, and the disclosed loss on exact table-template and color-doc asks: not verifiable from the repository.
  • Claim: build recommendations and build are unchanged: verified (build reads the gathered catalog; the build suite passes).
  • Claim: JSON shape unchanged: verified (result fields and types unchanged).
  • Claim: the new test file covers the reading, and the search, discovery and doc suites pass: verified (search, build, discovery and docs suites pass).
  • File .changeset/search-own-evidence.md: finding (guide claim).
  • File docs/specs/AST-083-result-order/spec.md: matches the code; awaits spec approval at this head.
  • File packages/cli/api/search/ORDERING.md: clear.
  • File packages/cli/api/search/_adapter.mjs: clear (formatting only).
  • File packages/cli/api/search/_candidate-score.mjs: clear.
  • File packages/cli/api/search/_gather-templates.mjs: clear.
  • File packages/cli/api/search/_lexical.mjs: clear.
  • File packages/cli/api/search/_named-keywords.mjs: clear.
  • File packages/cli/api/search/_score.mjs: clear (the earlier title-only finding is fixed).
  • File packages/cli/api/search/_words.mjs: clear.
  • File packages/cli/api/search/search-index.mjs: clear.
  • File packages/cli/api/search/search.own-evidence.test.mjs: clear.

Automated review (maintainer link)

Comment thread .changeset/search-own-evidence.md Resolved
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec ec414a2

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

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: the spec:AST-083 change is approved at this head, but two problems remain, and earlier reviews missed both.

  • Miss: when a synonym hit through a used component wins, bestForToken (packages/cli/api/search/_score.mjs:57-64) keeps only that hit's own score, so a block that answers a word with its own text drops out of the every-word tier (astryx search "field input" puts FieldShowcase 29th instead of 2nd); keep the best own score over the direct hit and every synonym hit, and add a test for it.
  • Miss: the changeset and the description say a guide whose title is its only match yields to a component the query names, but a component that shares a doc's name still sits below the guide (astryx search "link test in an app" lists the "Test in an app" guide above Link, and Icon, Theme and Calendar behave the same), so name that exception.

The earlier findings are fixed: a title-only guide now yields to other named components, and the release note says a guide whose own name is a query word can still lead. The wording suggested in the earlier review also left out the doc-name exception.

Claims and files checked

Review mode: incremental; reason: none

  • Claim: search reads another entry's name as that entry's evidence: verified (new tests fail before and pass after).
  • Claim: a block no longer ranks above a component only because it uses components that match the query: verified (avatar badge lists Avatar and Badge above the blocks that only use them).
  • Claim: a guide whose title sits in the query no longer takes the title's rank when the query also names a component the guide does not answer: false when a doc shares the component's name (link test in an app); true otherwise (drawer side panel).
  • Claim: a guide whose title is its only match yields to that component: false for the same components; true otherwise (drawer test in an app).
  • Claim: a guide whose own name is a query word can still lead: verified (drawer global mode).
  • Claim: build and its recommendations are unchanged: verified (the build suite passes).
  • Claim: scoring reuses its word work and stays within the speed budget: warm long requests in a Core-only project read about +1 to +3 ms; the eight-integration cells could not be reproduced.
  • Claim: the record's FR1 states the reading: verified, and approved at this head.
  • Claim: relevance improved in both projects, the disclosed loss on exact table-template and color-doc asks, typo probes, lookups and the quality graph: not verifiable from the repository.
  • Claim: the JSON shape is unchanged: verified (result types unchanged).
  • Claim: the new test file covers the reading, and the search, discovery and doc suites pass: verified.
  • Claim: the writing rubric results for the record: verified against the changed lines.
  • File .changeset/search-own-evidence.md: finding (doc-name exception).
  • File docs/specs/AST-083-result-order/spec.md: clear.
  • File packages/cli/api/search/ORDERING.md: clear.
  • File packages/cli/api/search/_adapter.mjs: clear (formatting and a type).
  • File packages/cli/api/search/_candidate-score.mjs: clear.
  • File packages/cli/api/search/_gather-templates.mjs: clear.
  • File packages/cli/api/search/_lexical.mjs: clear.
  • File packages/cli/api/search/_named-keywords.mjs: clear.
  • File packages/cli/api/search/_score.mjs: finding (synonym own score).
  • File packages/cli/api/search/_words.mjs: clear.
  • File packages/cli/api/search/search-index.mjs: clear.
  • File packages/cli/api/search/search.own-evidence.test.mjs: clear; no case for a synonym hit through a used component.

Automated review (maintainer link)

Comment thread packages/cli/api/search/_score.mjs Resolved
Comment thread .changeset/search-own-evidence.md Resolved
When a component a block uses wins a query word through a synonym, the
block keeps the best answer its own text gave for that word, from the word
itself or any synonym, so it stays in the every-word tier. The changeset
names the two cases where a guide whose title sits in the query keeps its
place: a component word that is also a doc's name, and a guide whose own
name is a query word.
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 812bd71

@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: the main CI workflow found no room under its ceiling on this head, so its tests did not run; re-run all jobs before merging.

The two findings from the last review are fixed: a block that answers a word with its own text keeps that answer when a synonym reaches a component it uses (astryx search "field input" lists FieldShowcase second again, and a new test pins it), and the release note now names both cases that keep a guide first.

  • Non-blocking: the file header of packages/cli/api/search/_named-keywords.mjs (lines 16-18) says a title keeps its tier unless an unanswered word names a component or hook; add "and no doc" so it matches FR1 and ORDERING.md.
Claims and files checked

Review mode: incremental; reason: none

  • Claim: search reads another entry's name as that entry's evidence: verified (the new tests pass; the synonym case fails on the previous revision's scoring).
  • Claim: a block no longer ranks above a component only because it uses components that match the query: verified (avatar badge lists Avatar and Badge above the four blocks that only use them).
  • Claim: a guide whose title sits in the query no longer takes the title's rank when the query also names a component the guide does not answer: verified (drawer side panel leads with Drawer).
  • Claim: a guide whose title is its only match yields to that component: verified (drawer test in an app leads with Drawer).
  • Claim: a component word that is also a doc's name keeps the guide first: verified for link, icon, theme and calendar; layout, selector, token and command palette behave the same.
  • Claim: a guide whose own name is a query word keeps first: verified (drawer global mode).
  • Claim: build and its recommendations are unchanged: verified (build reads the gathered catalog; the build suite passes).
  • Claim: scoring reuses its word work and stays within the speed budget: warm searches in the repository's own project measured within a few milliseconds of the base; the eight-integration cells could not be reproduced.
  • Claim: the record's FR1 states the reading: verified, and approved at this head.
  • Claim: relevance improved in both projects, the disclosed loss on exact table-template and color-doc asks, typo probes, lookups and the quality graph: not verifiable from the repository.
  • Claim: the JSON shape is unchanged: verified (result types unchanged).
  • Claim: the new test file covers the reading, and the search, discovery and doc suites pass: verified.
  • Claim: the writing rubric results for the record: verified against the changed lines.
  • File .changeset/search-own-evidence.md: clear.
  • File docs/specs/AST-083-result-order/spec.md: clear.
  • File packages/cli/api/search/ORDERING.md: clear.
  • File packages/cli/api/search/_adapter.mjs: clear (formatting and a type).
  • File packages/cli/api/search/_candidate-score.mjs: clear.
  • File packages/cli/api/search/_gather-templates.mjs: clear.
  • File packages/cli/api/search/_lexical.mjs: clear.
  • File packages/cli/api/search/_named-keywords.mjs: non-blocking note (header wording).
  • File packages/cli/api/search/_score.mjs: clear (the synonym reading now keeps the block's own answer).
  • File packages/cli/api/search/_words.mjs: clear.
  • File packages/cli/api/search/search-index.mjs: clear.
  • File packages/cli/api/search/search.own-evidence.test.mjs: clear.

Automated review (maintainer link)

Comment on lines +16 to +18
* word for the block alone (_score.mjs); and a title inside the query keeps
* its tier only when no word it leaves unanswered names a component or hook
* (_lexical.mjs). Both are read while scoring, so the view copies no block.

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: this header says a title keeps its tier only when no word it leaves unanswered names a component or hook, but FR1, ORDERING.md and _lexical.mjs also let a word that names a doc keep it (astryx search "link test in an app" still leads with the guide). Suggested: "... names a component or hook and no doc (_lexical.mjs)".

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 30022f3

@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: the node test shards and the docsite browser job were still running on this head, so let them finish before merging.

The merge of main keeps its namespace-doc reading beside this one in the spec and the scorer, and the search, build, discovery and docs suites pass on the merged code; the new tests for the block and title rules fail on the earlier search code and pass here.

  • Non-blocking: the header of packages/cli/api/search/_named-keywords.mjs still says the file "holds two rules" and that a title keeps its tier unless an unanswered word names a component or hook; name the namespace-doc reading it now also applies and add "and no doc" so it matches FR1 and ORDERING.md.
Claims and files checked

Review mode: full; reason: spec-record

  • Claim: Search treats another entry's name as that entry's evidence: verified (the new test file passes; three of its tests fail on the earlier search code).
  • Claim: A block no longer ranks above a component only because it uses components that match the query: verified (avatar badge lists Avatar and Badge above the four blocks that only use them).
  • Claim: A guide whose title sits in the query no longer takes the title's rank when the query also names a component it does not answer: verified (drawer side panel and drawer best practices lead with Drawer).
  • Claim: Such a guide ranks by the words it matches, so a guide whose title is its only match yields to that component: verified (drawer test in an app, tooltip test in an app).
  • Claim: A component word that is also a doc's name keeps the guide first (link, icon, theme, calendar): verified for all four.
  • Claim: A guide whose own name is a query word keeps first: verified (drawer global mode lists the Global mode doc above Drawer).
  • Claim: Scoring reuses its word work and search stays within its speed budget: warm searches in the repository's own project run within a few milliseconds of the base; the eight-integration cells could not be reproduced.
  • Claim: The record's FR states the reading: verified (FR1), approved at this head.
  • Claim: Relevance improved in both projects on replayed and unseen requests, the disclosed loss on exact table-template and color-doc asks, typo probes, lookups and the quality graph: not verifiable from the repository.
  • Claim: Build recommendations are unchanged: verified (build reads the gathered catalog; the build suite passes).
  • Claim: The JSON shape is unchanged: verified (result types unchanged).
  • Claim: The new test file covers the reading, and the search, discovery and doc suites pass: verified on the merged code.
  • Claim: The writing rubric results for the record: verified against the changed lines.
  • Claim: Changeset: the same claims, and build is unchanged: verified.
  • File .changeset/search-own-evidence.md: clear.
  • File docs/specs/AST-083-result-order/spec.md: clear (the merged FR1 keeps the namespace-doc sentence unchanged).
  • File packages/cli/api/search/ORDERING.md: clear.
  • File packages/cli/api/search/_adapter.mjs: clear (formatting and a type).
  • File packages/cli/api/search/_candidate-score.mjs: clear (the merge passes the used and text flags in order at every call).
  • File packages/cli/api/search/_gather-templates.mjs: clear.
  • File packages/cli/api/search/_lexical.mjs: clear.
  • File packages/cli/api/search/_named-keywords.mjs: non-blocking note (header wording).
  • File packages/cli/api/search/_score.mjs: clear.
  • File packages/cli/api/search/_words.mjs: clear.
  • File packages/cli/api/search/search-index.mjs: clear.
  • File packages/cli/api/search/search.own-evidence.test.mjs: clear.

Automated review (maintainer link)

* HoverCard). Names are read as the ranker reads them: joined (`joined`,
* _words.mjs) and either plural (`pluralOf`, _query.mjs).
* @file Search's reading of keywords and query words that name another
* entry. It holds two rules. (1) A component or hook doc's declared keyword

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: after the merge of main this file holds a third reading, withSummarized (line 154), which reads each docs namespace page at its own grain, so "It holds two rules" and the @output line no longer describe the view. Suggested: name it as a third reading here and in @output ("... marked ownEvidence, and each namespace doc holds the docs beneath it as _summarizes").

The search answer for `icon set` now lists the Icon component one place ahead of a toolbar block template. Only the order changes; no result is added or dropped.
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 33bcc82

@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: node test shards 3 to 9 and the docsite browser job are still running on this head, so let them finish before merging.

The only change since the last review updates the two icon set search goldens to the order the own-evidence reading produces, with Icon now ahead of the ToolbarTableFilter block; the isolation test that compares them, and the search, build, discovery and docs suites, pass on this head and on it merged with main.

  • Non-blocking: the header of packages/cli/api/search/_named-keywords.mjs still says the file "holds two rules" and that a title keeps its tier unless an unanswered word names a component or hook; name the namespace-doc reading it also applies and add "and no doc" so it matches FR1 and ORDERING.md.
Claims and files checked

Review mode: incremental; reason: none

  • Claim: Search treats another entry's name as that entry's evidence: verified (the new test file passes; three of its tests fail on the earlier search code).
  • Claim: A block no longer ranks above a component only because it uses components that match the query: verified (avatar badge lists Avatar and Badge above the blocks that only use them; icon set lists Icon above the toolbar filter block).
  • Claim: A guide whose title sits in the query no longer takes the title's rank when the query also names a component it does not answer: verified (drawer side panel and drawer test in an app lead with Drawer).
  • Claim: Such a guide ranks by the words it matches, so a guide whose title is its only match yields to that component: verified (drawer test in an app).
  • Claim: A component word that is also a doc's name (link, icon, theme, calendar) keeps the guide first: verified (link test in an app keeps the guide, and icon, theme and calendar behave the same).
  • Claim: A guide whose own name is a query word keeps first: verified (drawer global mode lists the Global mode doc above Drawer).
  • Claim: Scoring reuses its word work and search stays within its speed budget: warm searches in the repository's own project run within a few milliseconds of the base; the eight-integration cells could not be reproduced.
  • Claim: The record's FR states the reading: verified (FR1), approved at this head.
  • Claim: Relevance improved in both projects on replayed and unseen requests, the disclosed loss on exact table-template and color-doc asks, typo probes, lookups and the quality graph: not verifiable from the repository; the replay gate reports a pass for this head.
  • Claim: Build recommendations are unchanged: verified (build reads the gathered catalog; the build suite passes).
  • Claim: The JSON shape is unchanged: verified (result types unchanged; the updated goldens only reorder two results).
  • Claim: The new test file covers the reading, and the search, discovery and doc suites pass: verified on this head and on it merged with main.
  • Claim: The writing rubric results for the record: verified against the changed lines.
  • Claim: Changeset: the same claims, and build is unchanged: verified.
  • Claim: The latest commit only moves Icon one place ahead of a toolbar block for icon set, adding or dropping nothing: verified (the two entries swap; the isolation test passes).
  • File .changeset/search-own-evidence.md: clear.
  • File docs/specs/AST-083-result-order/spec.md: clear.
  • File packages/cli/api/search/ORDERING.md: clear.
  • File packages/cli/api/search/_adapter.mjs: clear (formatting and a type).
  • File packages/cli/api/search/_candidate-score.mjs: clear.
  • File packages/cli/api/search/_gather-templates.mjs: clear.
  • File packages/cli/api/search/_lexical.mjs: clear.
  • File packages/cli/api/search/_named-keywords.mjs: non-blocking note (header wording).
  • File packages/cli/api/search/_score.mjs: clear.
  • File packages/cli/api/search/_words.mjs: clear.
  • File packages/cli/api/search/search-index.mjs: clear.
  • File packages/cli/api/search/search.own-evidence.test.mjs: clear.
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear (matches the head's output).
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear (matches the head's output).

Automated review (maintainer link)

# Conflicts:
#	docs/specs/AST-083-result-order/spec.md
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b535fa6

@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: both ranking rules follow the owner-approved spec:AST-083 FR1 at this head, and CI passed on it.

The merge of main composes with the change: the new icon section reads only component and hook names after ranking, and the resolved FR1 keeps both sentences. Two optional cleanups, neither blocking:

  • The _named-keywords.mjs header still says the file holds two rules and leaves "and no doc" out of the title rule (lines 5 and 16-18).
  • isOrStartsAWordOf in _words.mjs repeats the word loop of startsATermWordOf, which can call it after its length check.
Claims and files checked

Review mode: full; reason: merge-touches-pr-files

Claims:

  • Changeset: search reads another entry's name as that entry's evidence. Verified: search's view turns the reading on, and both scoring gates read it.
  • Changeset: a block no longer outranks a component only because it uses components that match the query. Verified: avatar badge now leads with the block that answers both words itself, then Avatar and Badge; the new test fails on the base and passes here.
  • Changeset: a guide whose title sits in the query no longer takes the title's rank when the query names a component it does not answer, and a guide whose title is its only match yields. Verified: drawer side panel and drawer test in an app lead with Drawer; both title tests fail on the base.
  • Changeset: a component word that is also a doc's name (link, icon, theme, calendar), and a guide whose own name is a query word, keep the guide first. Verified: those four ... test in an app queries keep the guide, and drawer global mode keeps the Global mode doc above Drawer.
  • Changeset: build is unchanged. Verified: build reads the gathered catalog, and the build suite and gathered-catalog tests pass.
  • Description: search stays within its speed budget. Verified for the Core project (warm medians within 2 ms on four queries); the eight-integration timings were not reproduced.
  • Description: the record's FR1 states the reading. Verified.
  • Description: judged relevance improved in both projects. Not reproduced, since the replay sets are not in the repository; the probes above agree with it.
  • Description: no typo probe lost its leading result. Verified on ten typo queries, with the same leaders on base and head.
  • Description: build recommendations, lookups and the quality graph are not worse. Verified for build and whole-name lookups by their suites; the quality graph was not reproduced.
  • Description: the JSON shape is unchanged. Verified: the response types and result fields are untouched.
  • Description: the new test file covers the reading, and the search, discovery and doc suites pass. Verified: 15 of 15 here, and 879 tests across those suites.
  • Description: writing rubric R1 to R7. Verified against the record's FR1 and Non-goals lines.

Files:

  • .changeset/search-own-evidence.md: clear
  • docs/specs/AST-083-result-order/spec.md: clear (approved at this head; keeps main's icon sentence)
  • packages/cli/api/search/ORDERING.md: clear
  • packages/cli/api/search/_adapter.mjs: clear
  • packages/cli/api/search/_candidate-score.mjs: clear
  • packages/cli/api/search/_gather-templates.mjs: clear
  • packages/cli/api/search/_lexical.mjs: clear
  • packages/cli/api/search/_named-keywords.mjs: non-blocking header note
  • packages/cli/api/search/_score.mjs: clear
  • packages/cli/api/search/_words.mjs: non-blocking duplicated-loop note
  • packages/cli/api/search/search-index.mjs: clear
  • packages/cli/api/search/search.own-evidence.test.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear (matches the head's output)
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear (matches the head's output)

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 227a9de into main Nov 18, 2026
81 checks passed
@github-actions
github-actions Bot deleted the josephfarina/search-round-l branch November 19, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — b535fa62 Deployed Nov 18, 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