Skip to content

test(agents): prepare runtime config in model fallback fixtures - #170741

Merged
steipete merged 2 commits into
mainfrom
dbasync/redmain-model-fallback
Oct 13, 2026
Merged

steipete merged 2 commits into
mainfrom
dbasync/redmain-model-fallback

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Model-fallback fixtures did not follow two updated runtime contracts. After #169714 made getRuntimeConfig a prepared-snapshot reader, all 32 cases in the original failing CI job failed at session admission. Publish each fixture's actual configuration before admission, including the two direct embedded-runner cases, and clear it in the workspace helper's existing finally cleanup.

The sibling overflow-recovery fixture also seeded a credential store even though it skips auth-profile runtime and already has synthetic provider keys. Since #170632 requires credential writes from admitted workers, that unused write fails in the threaded test lane before all three cases reach their assertions. Remove only the obsolete import and setup write. Every fallback, compaction, profile-health, suspension, replay-safety, result, and execution-receipt assertion remains intact. Production code and credential security checks are unchanged.

Evidence

  • The original 32 cases pass in PR CI: 48.51 seconds Vitest / 50.04 seconds wrapper. That run exposed the three overflow-recovery fixture failures described above.
  • Exact-file overflow baseline on main 605065ce7461177e9b438c8d8917641a8e8380e0 reproduces all three credential-custody failures (56.82 seconds Vitest / 60.52 seconds wrapper), with unchanged sources verified. The current head also passes all three overflow cases in PR CI 38360757838: 42.20 seconds Vitest / 43.77 seconds wrapper. The original 32 cases also pass on this head (59.65 seconds / 61.78 seconds).
  • Changed-file oxfmt, repository-config oxlint, and git diff --check pass. The initial repair and overflow-only repair each received a Codex review scoped-clean through P2. The overflow review required one retry after the first attempt exited without a report.
  • No local test suites, builds, or SQL harness ran. This fixture-only repair makes no warmed SQL/request or T1 claim; production LOC is zero.

Scope: three test files, +9/-3 lines. Source culprits were verified from parent-relative patches: 7e48efba10479f90496438e3edf3e0d0121e34c7 (#169714) changed the runtime-config reader, and 50414196f1912053abee1ddcab595fca3c7e7889 (#170632) added the credential-write worker guard. The overflow main-branch behavioral baseline confirms the source attribution; the independent 32-case baseline did not complete and is inconclusive; it was cancelled to conserve compute. No baseline pass or failure is claimed for that attempt.

Current-head ratchets: T1 454 → 454, compatibility calls 9 → 9, dialect groups 0 → 0. The required dependency review and aggregate CI gate passed on this head; the earlier transient status was not a dependency finding.

@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T06:46:04.252575Z 04d5150 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS labels Oct 13, 2026
@steipete
steipete merged commit 3c53176 into main Oct 13, 2026
132 of 134 checks passed
@steipete
steipete deleted the dbasync/redmain-model-fallback branch October 13, 2026 07:19
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
## What Problem This Solves

Model-fallback fixtures did not follow two updated runtime contracts. After openclaw#169714 made `getRuntimeConfig` a prepared-snapshot reader, all 32 cases in [the original failing CI job](https://github.com/openclaw/openclaw/actions/runs/38353294225/job/115150698389) failed at session admission. Publish each fixture's actual configuration before admission, including the two direct embedded-runner cases, and clear it in the workspace helper's existing `finally` cleanup.

The sibling overflow-recovery fixture also seeded a credential store even though it skips auth-profile runtime and already has synthetic provider keys. Since openclaw#170632 requires credential writes from admitted workers, that unused write fails in the threaded test lane before all three cases reach their assertions. Remove only the obsolete import and setup write. Every fallback, compaction, profile-health, suspension, replay-safety, result, and execution-receipt assertion remains intact. Production code and credential security checks are unchanged.

## Evidence

- The original 32 cases pass in [PR CI](https://github.com/openclaw/openclaw/actions/runs/38358233170/job/115166408820): 48.51 seconds Vitest / 50.04 seconds wrapper. That run exposed the three overflow-recovery fixture failures described above.
- [Exact-file overflow baseline](https://github.com/openclaw/openclaw/actions/runs/38359573397/job/115170321081) on main `b47aa9f98f13dedf545cd84747a19c9b3096e13c` reproduces all three credential-custody failures (56.82 seconds Vitest / 60.52 seconds wrapper), with unchanged sources verified. The current head also passes all three overflow cases in [PR CI 38360757838](https://github.com/openclaw/openclaw/actions/runs/38360757838/job/115174590776): 42.20 seconds Vitest / 43.77 seconds wrapper. The original 32 cases also pass on this head (59.65 seconds / 61.78 seconds).
- Changed-file oxfmt, repository-config oxlint, and `git diff --check` pass. The initial repair and overflow-only repair each received a Codex review scoped-clean through P2. The overflow review required one retry after the first attempt exited without a report.
- No local test suites, builds, or SQL harness ran. This fixture-only repair makes no warmed SQL/request or T1 claim; production LOC is zero.

Scope: three test files, +9/-3 lines. Source culprits were verified from parent-relative patches: `5dbf2157dc8325fff25f79abddd7a2d2bc11e798` (openclaw#169714) changed the runtime-config reader, and `c3b5d0c7bc15f2f497247c3127cfa844d34c6e74` (openclaw#170632) added the credential-write worker guard. The overflow main-branch behavioral baseline confirms the source attribution; the independent 32-case baseline did not complete and is inconclusive; it was cancelled to conserve compute. No baseline pass or failure is claimed for that attempt.

Current-head ratchets: T1 454 → 454, compatibility calls 9 → 9, dialect groups 0 → 0. The required dependency review and aggregate CI gate passed on this head; the earlier transient status was not a dependency finding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant