Repository navigation
[AISAGE-503] chore(usage-ingest): enable staging processing - #8074
Merged
Merged
Conversation
johnnyeric
marked this pull request as ready for review
October 19, 2026 11:12
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryThe configuration-only change correctly persists staging processing mode and the staging writer URL, keeps production in receipt mode, and updates the type override so runtime tests can still inject a local writer URL; no defects found in the five changed files. Files Reviewed (5 files)
Assumption: staging's existing Reviewed by deepseek-v4.1-flash-1017 · Input: 57.9K · Output: 10.6K · Cached: 770K Review guidance: REVIEW.md from base branch |
chrarnoldus
approved these changes
Oct 19, 2026
3 tasks done
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Persist staging usage-ingest processing mode and
https://staging-app.kilo.ai/api/internal/usage/recordas its writer URL so later deployments retain the tested dashboard configuration. Production stays in receipt mode; gateway direct writes and shadow publishing remain unchanged.Regenerate Worker bindings, keep the writer URL type usable for local and production URLs, and limit the receipt-test override to staging so production's actual default remains covered.
Verification
Visual Changes
N/A
Reviewer Notes
Staging is already configured with processing and the writer URL through the dashboard; this persists those values in source control. Keep the existing staging
USAGE_WRITER_SECRETaligned with the app'sINTERNAL_API_SECRET, and retainUSAGE_WRITER_PROTECTION_BYPASSif deployment protection requires it. Publisher authentication remains separate. Scheduled staging deployment can apply this configuration automatically after merge.All 60 service tests, service typecheck/lint, formatting and generated-types checks passed after rebasing onto current main. Hosted evidence confirms a first consumer-originated insert and writer-side duplicate recovery; no new hosted test or deployment was performed while preparing this PR.