Skip to content

fix(supply): harden shard budget guard - #7596

Merged
koala73 merged 3 commits into
mainfrom
codex/issue-7586-supply-shard-budget
Sep 3, 2026
Merged

fix(supply): harden shard budget guard#7596
koala73 merged 3 commits into
mainfrom
codex/issue-7586-supply-shard-budget

Conversation

@koala73

@koala73 koala73 commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

Supply shard publication now fails before cohort activation when the payload needs more than the runtime batch budget, while the caller records batch count and request size for operational headroom. The regression fixture now derives country, commodity, and canonical chokepoint dimensions from shared registries and proves that the payload exceeds the previous 15-request, 4 MiB-per-request capacity. Request sizes are captured after the write completes, so retry behavior cannot hide the assertion.

Type of change

  • Bug fix
  • New feature
  • New data source / feed
  • New map layer
  • Refactor / code cleanup
  • Documentation
  • CI / Build / Infrastructure

Affected areas

  • Other: supply vulnerability seeder and regression coverage

Validation

  • npx tsx --test tests/supply-vulnerability-seeder.test.mjs — 24 passed
  • npm run test:data — 29,745 passed, 37 skipped, 0 failed
  • npm run typecheck — passed
  • npm run typecheck:api — passed
  • npm run lint — passed; existing unrelated warnings remain
  • npm run --silent lint:boundaries — passed

Post-Deploy Monitoring & Validation

  • Monitor the Railway seed-bundle-static-ref-heavy logs for [SupplyVulnerability] batch telemetry.
  • Healthy output must remain at or below 15 batches. The low-headroom warning is expected only at 14 or 15 batches; a value above 15 is a failed publication and requires rollback or payload investigation before activation.
  • No production deployment was performed by this task.

Fixes #7586.


Compound Engineering
Codex

@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
worldmonitor Ready Ready Preview Sep 3, 2026 3:57pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-03T13:01:00.769298Z ff1b505 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.

@koala73
koala73 enabled auto-merge (squash) September 3, 2026 15:55
@koala73
koala73 merged commit f29516b into main Sep 3, 2026
43 checks passed
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.

chore(supply): harden the shard-budget guard — 7 follow-ups from the #7557 review

1 participant