Skip to content

docs(atlas-search): align Worker README and wrangler comment with the code - #13317

Merged
dezren39 merged 1 commit into
mainfrom
lane-xg-13282
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-xg-13282

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Fixes the five Atlas Worker README/wrangler disagreements found by the Atlas book survey, each verified first-hand against pkgs/atlas-search/worker/src on main:

  1. Cache key: material is KEY_SCHEMA 2 and also carries "v": 2 and the disclosure context (hosted-per-user, atlas(worker): state the disclosure context on hosted search requests and key the result cache by it #12622) — the README's fingerprint list predated the bump.
  2. D1 hot cache: HotCacheStore has no caller in the request path (tests only), so the flag alone does not activate it — README now says the store is unwired; read-path integration remains impl(atlas): D1 hot-cache read-path integration — Turso-hop skip with skip logging #13105.
  3. wrangler.toml's GATE_TOKEN comment scoped the gate to /v1/*; it also covers POST /mcp.
  4. The Worker itself verifies effective_ceiling on every search response and refuses (502) before caching — README credited enforcement to the service only.
  5. Module map: normalization and keying live in key.ts; search keying runs in search.ts (executeSearch); index.ts calls queryKey directly only for inspect/purge.

Verification: worker vitest suite on the laptop at this head — 41/41 pass (incl. key, hot_cache, and worker suites, which load wrangler.toml). Docs/comment-only change.

Closes #13282


Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… code

Five survey findings from the Atlas book pass, each verified
against pkgs/atlas-search/worker/src on main:

- key material is KEY_SCHEMA 2: it also carries "v": 2 and the
  disclosure context (hosted-per-user); the README's fingerprint
  list predated the bump, so a key built from the README was wrong.
- the D1 hot cache is not flag-activated: HotCacheStore has no
  caller in the request path (tests only), so the README now says
  the store is unwired rather than implying the flag turns it on.
- wrangler.toml's GATE_TOKEN comment scoped the gate to /v1/*;
  the same gate covers POST /mcp.
- the Worker itself verifies effective_ceiling on every search
  response and refuses (502) before caching; the README credited
  ceiling enforcement to the service only.
- the module map credited index.ts with normalization and
  keying; both live in key.ts, search keying runs in search.ts,
  and index.ts calls queryKey directly only for inspect/purge.
@dezren39
dezren39 merged commit 7e58102 into main Nov 23, 2026
1 check passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T13:24:23.769756Z c32d0a3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 98f05499-82db-4541-abb8-4785b15b97d8
Commits

Reviewing files that changed from the base of the PR and between 619b7e5 and c32d0a3.

Files selected for processing: 2

  • pkgs/atlas-search/worker/README.md
  • pkgs/atlas-search/worker/wrangler.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Atlas Worker README vs code: cache key, D1 flag, gate scope, ceiling check, module map (book survey, #13251)

1 participant