You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(research): bound nested model synthesis (#167)
## Why
Production deep-research runs repeatedly failed in the per-query
synthesis step after Anthropic returned HTTP 524. Each pass sent a large
evidence pack with the default 4,096-token output budget, and the
synthesis stage allowed 8,192 tokens.
## What changed
- Bound Exa and Firecrawl evidence included in each model pass.
- Use stage-appropriate 2,048-token pass and 4,096-token final synthesis
budgets.
- Bound every nested research generation to 75 seconds.
- Retry one transient timeout, rate-limit, or 5xx failure in memory
while preserving parent cancellation.
- Emit a structured warning when that retry is used.
- Document the request-scoped retry and non-persistence boundary.
## Architecture and data
No schema, migration, environment, vendor, or deployment-topology
changes. BYOK credentials remain request-scoped and no Mastra workflow
snapshot contains secret-bearing state.
## Verification
- `pnpm lint`
- `pnpm typecheck`
- `pnpm turbo build --force`
- `pnpm deadcode`
- `pnpm architecture:check`
- `pnpm turbo skills:build`
- Production Worker trace reproduced the original HTTP 524 twice before
the fix.
The repository pins Node 24.18.0; local verification ran on Node 26.4.0
and emitted only the existing engine warning.
0 commit comments