Skip to content

docs(Tokenizer): define opening-anchor contract - #5810

Merged
cixzhang merged 1 commit into
mainfrom
docs/tokenizer-opening-anchor-contract
Sep 1, 2026
Merged

docs(Tokenizer): define opening-anchor contract#5810
cixzhang merged 1 commit into
mainfrom
docs/tokenizer-opening-anchor-contract

Conversation

@cixzhang

@cixzhang cixzhang commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Why

PowerSearch’s readable editor placement needs a stable opening-control identity from Tokenizer without publishing DOM refs, pointer coordinates, or width tuning as consumer API.

What

  • Promotes the Tokenizer component contract to authority: current with Cindy’s recorded approval.
  • Records one component DEC for the package-internal outer-field/opening-control descriptor, width-first full-width versus narrower placement, modality-neutral anchoring, one read batch per open, hidden commit, next-frame show, and no continuous tracking.
  • Keeps Tokenizer’s public API and existing suggestion-menu sizing unchanged.
  • Requires real-Chromium open-state evidence when the runtime implementation ships.

#5804 remains dependent draft evidence and owns its separate PowerSearch editor-width policy. Implementation and focused runtime verification remain pending.

Risk

Documentation only. No runtime, public API, consumer docs, stories, or Changeset changes.

Testing

  • pnpm check:knowledge
  • pnpm check:repo
  • pnpm exec prettier --check packages/core/src/Tokenizer/Tokenizer.spec.md
  • pnpm exec vitest run scripts/check-knowledge.test.mjs (60 tests)
  • git diff --check

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 1, 2026
@vercel

vercel Bot commented Sep 1, 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 1, 2026 5:03am UTC

Request Review

@cixzhang
cixzhang force-pushed the docs/tokenizer-opening-anchor-contract branch from c71a10b to 8ce38fc Compare September 1, 2026 05:00
@cixzhang

cixzhang commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 8ce38fc

@cixzhang

cixzhang commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 8ce38fc

@cixzhang
cixzhang merged commit 6c25a4f into main Sep 1, 2026
29 checks passed
@github-actions github-actions Bot added the spec-auto-merge Auto-merge was enabled by the spec owner gate label Sep 1, 2026
@github-actions
github-actions Bot deleted the docs/tokenizer-opening-anchor-contract branch September 2, 2026 06:27
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. spec-auto-merge Auto-merge was enabled by the spec owner gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant