Skip to content

test(agents): keep one runtime config owner per embedded-runner fixture - #170630

Merged
steipete merged 1 commit into
mainfrom
steipete/dedupe-runtime-config-fixture-publish
Oct 13, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/dedupe-runtime-config-fixture-publish

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #170447, #170433, #169714

What Problem This Solves

Three embedded-agent test fixtures publish the runtime config snapshot twice because #170447 and #170433 repaired the same #169714 fallout independently and both landed.

User Impact

No user-visible change. Each fixture has one clear config owner again, so a later edit to either publish is not silently masked by the other.

Why This Change Was Made

#170447's run-level setup is kept as the single owner because it follows each run's authored config. The redundant beforeEach publishes from #170433 are removed:

  • lane-controller.attempt-controls.test.ts: createRunController keeps setRuntimeConfigSnapshot(params.config ?? {}). The file-level beforeEach publish is removed and the single clearRuntimeConfigSnapshot() in afterEach stays.
  • lane-controller.test.ts: createLaneController keeps setRuntimeConfigSnapshot(runParams.config ?? {}). The describe-level beforeEach publish is removed and the afterEach clear stays.
  • settled-turn-finalization.unavailable.test.ts: config: {} in the run params stays. The beforeEach publish is removed. Nothing publishes a snapshot in this file any more, so its clearRuntimeConfigSnapshot() and the import were dead and are removed too.

All three files are now byte-identical to #170447's post-images. Assertions, timeouts and cases are unchanged. Three test files, no production change.

Evidence

Local, pnpm test <file> --maxWorkers=1 on the final content:

File Result Vitest duration Wall
lane-controller.attempt-controls.test.ts 18/18 passed 67.67 s 86.5 s
lane-controller.test.ts 6/6 passed 56.41 s 70.1 s
settled-turn-finalization.unavailable.test.ts 1/1 passed 83.19 s 107.6 s

Durations are mostly cold transform on a busy shared host (transform 75–85 %). The test bodies themselves are a few seconds each. Before #169714 was repaired, these cases timed out after about 120 s each without a published snapshot, so passing here means the run-level owner is doing the work.

For settled-turn, the task was to prove whether config: {} alone is enough:

  • Negative control: without both config: {} and the snapshot publish, the case fails with expected undefined to be true on result.attempt.assistantTranscriptOwned. This is the original test(agents): prepare config in lane and finalization fixtures #170447 symptom.
  • config: {} alone: with no snapshot publish, the case passes.
  • Teardown probe: a temporary probe showed getRuntimeConfigSnapshot() is null at teardown, so the removed clear had nothing to clear.

Scoped oxfmt --check, plain oxlint and git diff --check pass on all three files. The repo's type-aware lint wrapper didn't run locally: its plugin-sdk boundary .d.ts preparation timed out at 300 s on a heavily loaded shared host. That is a tooling timeout, not a lint finding, and PR CI runs the type-aware lane. Independent Codex autoreview (P0–P2) is scoped-clean with no findings.

#170447 and #170433 both repaired the same #169714 fallout in three
embedded-agent fixtures, and both landed. Keep #170447's run-level owner,
which follows each run's authored config, and drop #170433's redundant
beforeEach publishes.

The lane-controller fixtures keep their controller-factory publish and
single afterEach clear. The settled-turn fixture keeps config: {} in its
run params. Without both that and the publish it fails with
assistantTranscriptOwned undefined; with config alone it passes and no
snapshot is published, so its clear and import are dropped as dead.

Assertions, timeouts and cases are unchanged; all three files now match
#170447's post-images.
@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-13T04:34:14.378982Z 5c6003d 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 aee3136 into main Oct 13, 2026
100 checks passed
@steipete
steipete deleted the steipete/dedupe-runtime-config-fixture-publish branch October 13, 2026 05:10
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…re (openclaw#170630)

openclaw#170447 and openclaw#170433 both repaired the same openclaw#169714 fallout in three
embedded-agent fixtures, and both landed. Keep openclaw#170447's run-level owner,
which follows each run's authored config, and drop openclaw#170433's redundant
beforeEach publishes.

The lane-controller fixtures keep their controller-factory publish and
single afterEach clear. The settled-turn fixture keeps config: {} in its
run params. Without both that and the publish it fails with
assistantTranscriptOwned undefined; with config alone it passes and no
snapshot is published, so its clear and import are dropped as dead.

Assertions, timeouts and cases are unchanged; all three files now match
openclaw#170447's post-images.
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