Skip to content

Keep CLI search coverage internal - #5994

Merged
cixzhang merged 1 commit into
mainfrom
fix-search-score-metadata
Sep 4, 2026
Merged

Keep CLI search coverage internal#5994
cixzhang merged 1 commit into
mainfrom
fix-search-score-metadata

Conversation

@cixzhang

@cixzhang cixzhang commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Why

Current main promotes exact multi-word keyword matches but drops internal coverage metadata from that return path. Declaration sync fails, blocking package, sandbox, Storybook, and downstream PR CI.

Coverage is an implementation detail of build's page-quality gate. Exposing tokenizer-derived counts on every public search/build result would create a permanent API contract tied to current ranking mechanics.

What

  • Preserve coverage for promoted exact-phrase scores.
  • Carry coverage from search to build through a module-private WeakMap.
  • Keep matchedTerms/queryTerms out of public search and build result shapes and generated declarations.
  • Preserve build's 50% page-coverage gate.

Testing

  • pnpm -F @astryxdesign/cli sync:api-types
  • Focused search + build tests (45 tests)
  • pnpm check:repo
  • Focused ESLint and diff checks

@vercel

vercel Bot commented Sep 3, 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 3, 2026 11:38pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 3, 2026
github-actions Bot added a commit that referenced this pull request Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@cixzhang
cixzhang force-pushed the fix-search-score-metadata branch from c8c184d to 9663594 Compare September 3, 2026 23:35
@cixzhang cixzhang changed the title Fix exact phrase search coverage metadata Keep CLI search coverage internal Sep 3, 2026
github-actions Bot added a commit that referenced this pull request Sep 4, 2026

@cixzhang cixzhang left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Semantic verdict: approve

Thanks, this keeps tokenizer coverage private while preserving build's page gate. Exact-phrase, partial-match, declaration-sync, and focused checks are clean.

[Reviewed by Robohands]

@cixzhang
cixzhang merged commit ea1b9b5 into main Sep 4, 2026
28 checks passed
@github-actions
github-actions Bot deleted the fix-search-score-metadata branch September 5, 2026 06:19
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