Skip to content

Track private download counts in D1 - #1311

Merged
AnthonyRonning merged 1 commit into
masterfrom
codex-upd-metrics-maple
Oct 27, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
codex-upd-metrics-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Record private, unsampled download request events from both update Workers through a retry queue into D1. Timestamped records distinguish Agent payloads, Research redirects, HEAD, ranges, metadata and explicit probes; event IDs deduplicate queue retries. Collection failures leave the original download response unchanged.

Adds an authenticated, read-only hourly/daily query CLI and a dead-letter recovery guide. No application version, signed release bytes, routes, domains or installer targets change. Research downloads served directly by GitHub remain outside Worker coverage.

Validation: 37 Agent Worker tests, 49 Research Worker tests, 9 Python query tests, real workerd Queue-to-D1 delivery/duplicate/outage recovery, commit hooks, workflow lint and the Nix workflow/change-detection checks passed locally. Hosted CI was not awaited under the requested release policy.

Deployed both existing Workers while retaining the current Research asset bundle and Agent R2 binding. All 54 public byte/header/ETag preservation checks and eight additional Agent alias checks passed. Eleven marked production event classes reached D1; the private hourly query returned exactly the four controlled Agent GET alias requests. Probe traffic is excluded by default. Routes, custom domains and preview settings were verified unchanged.

@AnthonyRonning
AnthonyRonning merged commit 15eb596 into master Oct 27, 2026
35 of 38 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-upd-metrics-maple branch October 27, 2026 03:16
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