Skip to content

fix(router): bound incremental summary growth - #3599

Merged
nonoqing merged 2 commits into
mainfrom
codex/router-summary-budget-20261029
Oct 29, 2026
Merged

nonoqing merged 2 commits into
mainfrom
codex/router-summary-budget-20261029

Conversation

@nonoqing

@nonoqing nonoqing commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Router summaries could grow past the 2048-token prompt target and inflate later classifier inputs. Enforce a conservative final-text admission budget for live updates and history bootstrap, with one tighter rewrite from the same source under the existing deadline and queue permit. Rejected or failed results retain the accepted summary and pending observations. Record per-attempt length, latency, and known usage without logging summary text.

Smart mode remains release-disabled. Saved settings, environment variables, and manual activation cannot enable it. This change does not alter the summary model's thinking settings or include the reverted GPT compatibility work.

Validation:

  • Core routing and release-gate tests against the latest main integration: 118 passed, 2 ignored.
  • Portable Router context tests: 31 passed.
  • git diff --check passed.

Validation covers local fixtures and loopback providers; SSH workspaces, remote control, Peer Device Mode, and detached dispatch were not exercised end to end.

@nonoqing
nonoqing merged commit 48f920c into main Oct 29, 2026
11 of 12 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.

1 participant