Skip to content

chore(ops): add the attachment-index shadow report script - #948

Merged
Zach Dunn (zachdunn) merged 1 commit into
mainfrom
claude/attachment-index-shadow-report
Sep 2, 2026
Merged

chore(ops): add the attachment-index shadow report script#948
Zach Dunn (zachdunn) merged 1 commit into
mainfrom
claude/attachment-index-shadow-report

Conversation

@zachdunn

Copy link
Copy Markdown
Member

Operator tooling for the #934 phase 2 shadow: one command that turns the per-sync log lines into a sign-off number for phase 3.

scripts/attachment-index-shadow-report.mjs queries Workers Logs over the last N hours (default 24) and prints the number of syncs shadowed, the match rate, how many syncs had real attachments and their match rate, total missing / extra keys, the ten most common mismatched keys (already prefix-redacted by the worker), a per-repo breakdown for syncs with attachments, and the count of shadow read failures and timeouts. --json emits the same as an object. Needs CLOUDFLARE_API_TOKEN with Workers Observability read; the account id defaults to production.

The runbook section in docs/ops.md now leads with the script and records a gotcha found while verifying the deploy: shadow lines carry no message field, so the Workers Logs UI shows them with an empty message and a text search finds nothing. Filter on the parsed component field.

First run against production, six-hour window: every shadowed sync matched, including the ones with real attachments; no read failures or timeouts.

Summarizes the #934 phase 2 shadow lines from Workers Logs: match rate,
syncs with real attachments, top missing/extra keys, per-repo breakdown,
read failures. Runbook now leads with it and notes that shadow lines have
no message field, so filter on the parsed component field.
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (2)
  • coderabbit:review
  • review
🚫 Excluded labels (none allowed) (1)
  • wip

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 67d414ba-b8f2-40f6-8d4f-a692781c7897

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

Comment @coderabbitai help to get the list of available commands.

@changeset-bot

changeset-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 97b4d83

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@zachdunn
Zach Dunn (zachdunn) merged commit 1cf4191 into main Sep 2, 2026
3 checks passed
@zachdunn
Zach Dunn (zachdunn) deleted the claude/attachment-index-shadow-report branch September 2, 2026 19:59
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.

1 participant