Skip to content

revert: default hard context admission (#189810) - #189891

Merged
roboclaw-bot merged 1 commit into
mainfrom
main-ci/l186-context-admission
Nov 1, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
main-ci/l186-context-admission

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Reverts our regression in #189810 (e44b8f449184), which broke eight node jobs in scheduled full CI 41252475393 by applying conservative context admission to previously working turns.

User Impact

Restores the opt-in context-pressure checks and earlier overflow recovery behavior. This explicitly re-accepts the earlier risk that long tool turns can overflow with midTurnPrecheck disabled. That risk needs a fresh forward fix later.

Why This Change Was Made

This urgent rollback is a clean inverse of our own change, restoring runtime behavior, consumer expectations, and configuration documentation together. No fixture budgets, assertions, retries, or baselines are weakened. Related #189888 adjusts fixtures while retaining the admission policy; this rollback deliberately withdraws that policy.

Evidence

  • Before the revert, real Gateway child-result cases fail 2/2 and the prompt-cache Responses case fails at first-turn completion. After the revert, all 49 named failure tests and 216 touched consumer tests pass; prompt-prefix stability also passes 14/14.
  • Rebased onto fresh main f121a7f70da4; the patch is unchanged and all 18 reverted file blobs match the parent of e44b8f449184. Fresh-head focused rerun passes 279/279 across 21 files: all 49 named failure tests, 216 touched consumers, and 14 prompt-prefix stability cases (four Vitest shards, 887.08s including preparation).
  • Parent validation: two scoped typechecks, scoped lint/format, generated configuration documentation, test-line ratchet, and diff checks pass.
  • Local Codex autoreview, P0–P2, c633ec6376e1..f365b8b5431a: scoped-clean, no findings. It reviewed the complete inverse with unchanged-source context limitations and did not execute tests. The rebase is patch-identical; source inspection and boundary tests supply separate evidence.
  • Four unrelated, pre-existing native-auth fixture failures occur before compaction in agent-runner.runreplyagent.e2e.test.ts, in the cases preserving explicit native OpenAI, default native OpenAI, default OpenAI with an unavailable selected profile, and API-key OpenAI compaction ownership before the first attempt. All fail because shared auth store ownership is not prepared at setRuntimeAuthProfileStoreSnapshot. A representative failure reproduces before the revert with fix: prevent context overflow during long tool turns #189810 still present; relevant auth sources are unchanged. The two restored overflow-copy cases pass. This is an auth-fixture setup gap, not a claimed passing full E2E suite.

Simplify pass: one clean inverse, no new owner, wrapper, state, dependencies, or configuration. Broad proof comes from exact-head PR CI.

Requested by @steipete

Work sessions

Discussion, implementation and verification

Revert e44b8f4 (#189810), which
introduced unconditional provider-bound pressure checks and overflow copy
changes across eight failed jobs in scheduled full CI 41252475393.

Restore the previous opt-in behavior, fixtures, recovery copy and docs as
one clean inverse. Real Gateway child-result tests fail before rollback,
as does the runner prompt-cache integration. Accepted rollback risk:
long tool turns can again overflow with the optional precheck disabled.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime agents Agent runtime and tooling size: L labels Nov 1, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 00:23
@roboclaw-bot
roboclaw-bot merged commit ffbaf04 into main Nov 1, 2026
205 checks passed
@roboclaw-bot
roboclaw-bot deleted the main-ci/l186-context-admission branch November 1, 2026 00:35
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 1, 2026
…ed-backup-search-exports-20261101

* commit 'cde4bfe4f10ce470ded7264c68d9a72ae03594cc':
  fix(ci): keep backup and chat search internals private (#189894)
  fix(codex): recover unused native threads without dropping history (#189900)
  fix(oc-path): use last duplicate JSON key to match runtime parsing (#189855)
  perf(test): parse the Mantis resolver workflow once (#189801)
  fix(agents): revert default hard context admission (#189891)
  refactor(test): use canonical tracked temp paths (#189800)
  chore(ui): refresh control ui locales (#189898)
  improve: show gateway commit and build time on About
  refactor(test): share SDK export fixture JSON writes (#189799)
  fix: restore Files navigation from unavailable previews (#189879)
  refactor(test): share raw ratchet fixture writes (#189798)
  fix(ai): honor Model Studio compatible-mode output limits (#189870)
  fix: hold queued messages through inline edits (#189869)
  perf(test): reuse the baseline fixture Node resolver (#189790)
  test(qa): correlate handoff replies by run identity (#189885)
  fix(ui): normalize canonical Unicode in local search comparisons (#189874)
  fix(ui): explain unsupported browsers without module scripts (#189883)

# Conflicts:
#	ui/src/pages/chat/components/chat-search-highlight.browser.test.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
Revert fe5a903 (openclaw#189810), which
introduced unconditional provider-bound pressure checks and overflow copy
changes across eight failed jobs in scheduled full CI 41252475393.

Restore the previous opt-in behavior, fixtures, recovery copy and docs as
one clean inverse. Real Gateway child-result tests fail before rollback,
as does the runner prompt-cache integration. Accepted rollback risk:
long tool turns can again overflow with the optional precheck disabled.

Co-authored-by: steipete <[email protected]>
steipete added a commit that referenced this pull request Nov 1, 2026
)

* fix(agents): compact long tool turns and publish current context totals

Start client maintenance at 75% of the active context window while preserving
provider and native compaction ownership. Check every prepared request against
the hard window using nominal occupancy, calibrated tool-result estimates, and
provider-measured context plus pending additions.

Publish current context through the existing guarded session writer and let
final ordered accounting supersede intermediate snapshots. Retire downstream
mixed-counter repairs; invalidate old prompt-only freshness stamps without a
schema change or new configuration.

Preserve the working 32k prompt-cache fixture and repair impossible lifecycle
fixture windows from the reverted admission rollout. Include red-on-parent
long-turn/accounting regressions and repair the cold native-auth test setup.

Related: #189810, #189891, #189888, #164551.
Co-authored-by: Alex Mittell <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>

* fix(agents): complete nominal context admission and accounting cutover

* fix(agents): share lexical pricing with compaction summary fitting

* test(agents): align context consumers and isolate announce state

* test: await archive and steering fixture handoffs

Join the database lifecycle before raw archive fixture seeding, and wait for
runtime steering admission before releasing the held document request.
Preserve the existing behavior assertions and allocate exact regression lines.

Archive admission passes 17/17; steering passes 6/6. The CI assertions did not
reproduce locally, but diagnostic probes exposed the asynchronous fixture
handoffs. Fresh Codex review found no actionable findings.

---------

Co-authored-by: Alex Mittell <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
…claw#190017)

* fix(agents): compact long tool turns and publish current context totals

Start client maintenance at 75% of the active context window while preserving
provider and native compaction ownership. Check every prepared request against
the hard window using nominal occupancy, calibrated tool-result estimates, and
provider-measured context plus pending additions.

Publish current context through the existing guarded session writer and let
final ordered accounting supersede intermediate snapshots. Retire downstream
mixed-counter repairs; invalidate old prompt-only freshness stamps without a
schema change or new configuration.

Preserve the working 32k prompt-cache fixture and repair impossible lifecycle
fixture windows from the reverted admission rollout. Include red-on-parent
long-turn/accounting regressions and repair the cold native-auth test setup.

Related: openclaw#189810, openclaw#189891, openclaw#189888, openclaw#164551.
Co-authored-by: Alex Mittell <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>

* fix(agents): complete nominal context admission and accounting cutover

* fix(agents): share lexical pricing with compaction summary fitting

* test(agents): align context consumers and isolate announce state

* test: await archive and steering fixture handoffs

Join the database lifecycle before raw archive fixture seeding, and wait for
runtime steering admission before releasing the held document request.
Preserve the existing behavior assertions and allocate exact regression lines.

Archive admission passes 17/17; steering passes 6/6. The CI assertions did not
reproduce locally, but diagnostic probes exposed the asynchronous fixture
handoffs. Fresh Codex review found no actionable findings.

---------

Co-authored-by: Alex Mittell <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation gateway Gateway runtime size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant