Skip to content

fix(ci): restore deterministic main checks - #120501

Merged
steipete merged 10 commits into
mainfrom
codex/fix-current-main-ci
Aug 8, 2026
Merged

steipete merged 10 commits into
mainfrom
codex/fix-current-main-ci

Conversation

@steipete

@steipete steipete commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repairs the CI owner boundaries that remained unique after current main absorbed the overlapping protocol, token-provenance, and QA process fixes:

  • Plugin SDK API output changed with TypeScript discovery order because Session Catalog derived its public entry type through the larger runtime graph.
  • The Doctor bind-persistence regression cold-loaded every bundled plugin contract and deterministically exceeded the test timeout.
  • Max-lines and bundled-protocol jobs independently re-resolved/refetched comparison bases that preflight had already validated.
  • A broad agent-session test crossed its line budget even though its unavailable-context assertion belongs in the focused context-usage suite.
  • The managed-image browser proof confused concurrent Blob creation order with the cache's authoritative revoked LRU.
  • The sidebar reconnect proof armed its deferred sessions.list response after closing the socket, allowing the reconnect request to race ahead of the test hook.

Why This Change Was Made

Session Catalog now owns an explicit { sessionKey, entry: SessionEntry } interface. The API baseline test locks that declaration, removing graph-order-dependent alias selection.

The Doctor regression still exercises the real migration and atomic config writer, but under the supported empty bundled-plugin inventory because plugin discovery is unrelated to the core bind-persistence contract.

Preflight is now the single owner of immutable comparison-base resolution. The max-lines checkout co-fetches that base with the target, while bundled-protocol reuses the same validated base instead of performing a second manual GitHub lookup and fallback stack. PR merge-tree validation, release-gate behavior, and fork credential isolation remain intact.

The unavailable-context compaction assertion moved from the oversized loop integration file into the focused context-usage suite without changing behavior. The browser cache proof now derives the evicted URL from the actual revoked set and verifies that it was created, so concurrent fetch completion order cannot select the wrong image.

The sidebar reconnect proof now registers the deferred sessions.list response before disconnecting, matching the sibling route-reconnect flow and guaranteeing the reconnect request cannot escape the proof boundary.

Provenance: #120475 exposed the graph-derived SDK declaration and added the slow Doctor regression. Run 31241160655 showed the duplicate max-lines base fetch consuming the lane budget before the ratchet ran. The Blob-order assumption was carried forward by #115654 despite its comment acknowledging concurrent creation order. Main run 31249100164 exposed the sidebar deferral-order race.

User Impact

No product behavior changes. CI is deterministic, uses one authoritative comparison base, and keeps its focused regressions below the line budget.

Production/workflow LOC: +43/-91 (net -48) | Tests: +136/-136 (net 0) | Generated artifacts: +1/-1.

Evidence

  • Plugin SDK API baseline and Session Catalog: 15/15 focused tests passed.
  • Doctor bind persistence: 2/2 focused tests passed through the real writer.
  • Sessions command after current-main overlap cleanup: 17/17 focused tests passed.
  • Workflow guards: 103 passed / 2 skipped.
  • Managed-image Control UI browser proof: 14/14 file tests passed.
  • Sidebar reconnect scenario: 1/1 focused browser test passed; the whole file passed 9/10 before an unrelated existing Shift+F10 menu timeout at line 385.
  • oxfmt --check, targeted oxlint, max-lines ratchet, and git diff --check passed.
  • Fresh full-branch autoreview at 3053cf0fd3a0 and focused reconnect-fix autoreview at 24dad0bb5d are clean with no accepted/actionable findings.
  • Exact head 24dad0bb5d46 passed CI run 31250535162 (65/65) after the reconnect-order follow-up.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation commands Command implementations size: M maintainer Maintainer-authored PR labels Aug 8, 2026
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Aug 8, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 8, 2026
@steipete
steipete force-pushed the codex/fix-current-main-ci branch from 095e909 to c6d3843 Compare August 8, 2026 08:00
steipete added a commit that referenced this pull request Aug 8, 2026
…ss retries

Repairs the two #120497 regressions still red on main:
- attempt-normalization: carried lastRunPromptUsage from an earlier attempt
  outranked the session's unavailable-context sentinel, reviving a stale
  context-size fact across retries; the sentinel now acts as a barrier while
  numeric carried ordering stays unchanged. Fixes the shipped-red
  'keeps the unavailable sentinel across a retry' test.
- commands-status fixtures: stamp totalTokensFresh/totalTokensVersion
  provenance on Codex context-override entries (hunks adopted from #120501).
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Aug 8, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 8, 2026
steipete and others added 8 commits August 8, 2026 01:52
Finish the canonical token-provenance fixtures while preserving the
latest maintainer-owned unavailable-usage ordering. Limit the diff-base
GitHub token to manual non-release comparisons and guard that fork
isolation invariant in the existing workflow regression test.

Co-authored-by: Sarah Fortune <[email protected]>
Consume the immutable diff base already resolved and validated by
preflight for every CI event. Remove the dead duplicate manual
GitHub lookup and unreachable fallbacks, and guard the single
authoritative path without changing fork credential isolation.
@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@steipete
steipete merged commit 95ea82b into main Aug 8, 2026
139 checks passed
@steipete
steipete deleted the codex/fix-current-main-ci branch August 8, 2026 10:36
@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
* fix(plugin-sdk): stabilize session catalog baseline

* test(doctor): isolate bind persistence inventory

* fix(ci): prepare max-lines base during checkout

* test(sessions): align freshness regression fixtures

* style(tests): format context usage fixture

* fix(ci): preserve token provenance and isolate fork credentials

Finish the canonical token-provenance fixtures while preserving the
latest maintainer-owned unavailable-usage ordering. Limit the diff-base
GitHub token to manual non-release comparisons and guard that fork
isolation invariant in the existing workflow regression test.

Co-authored-by: Sarah Fortune <[email protected]>

* test(ui): identify actual managed image eviction

* fix(ci): reuse the validated protocol comparison base

Consume the immutable diff base already resolved and validated by
preflight for every CI event. Remove the dead duplicate manual
GitHub lookup and unreachable fallbacks, and guard the single
authoritative path without changing fork credential isolation.

* test(sessions): preserve stale total expectation

* test(ui): arm reconnect deferral before disconnect

---------

Co-authored-by: Sarah Fortune <[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 app: web-ui App: web-ui commands Command implementations docs Improvements or additions to documentation maintainer Maintainer-authored PR rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant