DO NOT MERGE: ProjectData DO sharding infrastructure - #1873
Draft
simple-agent-manager[bot] wants to merge 3 commits into
Draft
DO NOT MERGE: ProjectData DO sharding infrastructure#1873simple-agent-manager[bot] wants to merge 3 commits into
simple-agent-manager[bot] wants to merge 3 commits into
Conversation
Contributor
|
This was referenced Aug 21, 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
session_shardsand fan out all-history search across registered shards.beforeEachhooks; this removes full-suite hook timeouts without changing product behavior.Agent Preflight
Classifications
External References
Reviewed SAM idea
01M0F88EEQPGR32E08R1EXC2VR, the project library research doc/engineering/research/do-10gb-storage-ceiling-research.md, and PoC coverage inapps/api/tests/workers/do-sharding-poc.test.tsbefore implementing Phase 1.Codebase Impact Analysis
Primary impact is in
apps/api/src/durable-objects/project-data/for migrations, routing, storage estimation, and alarm-driven migration. Supporting changes touchapps/api/src/env.ts,apps/api/tests/,apps/www/src/content/docs/docs/reference/configuration.md,.claude/skills/env-reference/SKILL.md,CLAUDE.md, andtasks/backlog/.Documentation & Specs
Updated
apps/api/.env.example,apps/www/src/content/docs/docs/reference/configuration.md,.claude/skills/env-reference/SKILL.md, andCLAUDE.mdto document the new ProjectData sharding controls and behavior.Constitution & Risk Check
Checked Principle XI no hardcoded values: thresholds are exposed through env vars with
DEFAULT_*constants. Scope stays internal to ProjectData, with no API route, MCP tool, UI, wrangler binding, or new DO class changes.Validation
pnpm testpnpm lintpnpm typecheckpnpm format:checkpnpm buildpnpm quality:file-sizespnpm quality:do-migration-safetypnpm quality:migration-safetyConstraints