Skip to content

refactor(test): share requester and session transcript fixtures - #159372

Merged
steipete merged 1 commit into
mainfrom
hostneutral/scheduler-mcp-fixtures-0926
Sep 27, 2026
Merged

steipete merged 1 commit into
mainfrom
hostneutral/scheduler-mcp-fixtures-0926

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Prepare the existing MCP requester and session transcript fixtures for the remaining scheduler cutover without mixing fixture reorganization into production lifecycle changes.

User Impact and Update Behavior

No production or test behavior changes. Existing installs, state, configuration, ports, storage, schemas and public SDK contracts are unchanged; no migration is required.

Why This Change Was Made

Move makeRequesterParams into the existing MCP manager test-support module and writeTerminalTranscriptSessionStore into the existing session test-support module. Their current tests import and use the helpers in this same slice. Fixture values, transcript/registry write ordering, assertions and cleanup are unchanged. The original in-file definitions are deleted; this slice adds no scheduler, timing change or assertion.

LOC: production +0/−0/net 0; tests/support +62/−58/net +4; docs +0/−0/net 0. The 120 changed lines are the helper moves, imports and one derived parameter type.

Evidence

Focused proof used blacksmith-testbox, lease tbx_01m3fqja9r983kwbphpb3v3g5g, run 36270738491. Both files passed after frozen installation: 334 cases in 121.067 s command wall. Each ran as pnpm test <file> --maxWorkers=1.

File Passed Command wall
src/agents/agent-bundle-mcp-runtime.test.ts 114 37.636 s
src/auto-reply/reply/session.test.ts 220 83.431 s

These existing suites cover MCP runtime/process lifecycle and persisted session/transcript transitions through their current owners; no cases or process boots were added. Their full-file costs are retained rather than adding duplicate extraction tests. The receipts pin source head 789dae3c09d9b621a781f3d3c7e65aac2ff39d18 and tree 0bf241b0b8bfd776488d552d6fa861dc7b89fd3b. All four changed files are byte-identical to that proved stage. The standalone publication rebase onto fresh main preserves the exact reviewed patch and drops unrelated diagnostic/auth ancestors; historical proof is not described as a run of this new publication head.

Deslop, cross-shard caller search and git diff --check passed. Independent Codex review through P2 had no accepted/actionable findings; its exact unchanged fixture payload is reused. Required openclaw/ci-gate validates the published composition. Exact-head CI run 36291139075 passed on f79567cfdf894113d7897f2ca68beef237a7cbf3 in 760 s workflow elapsed, including the enforced openclaw/ci-gate. Auto-merge landed 66dae510ea24dfee512a0dde66c4ad990ab6e86b, verified on fresh origin/main.

Stack

This behavior-neutral preparation can land independently before diagnostic/auth work. Preceding slices include session delivery #159275, update watcher #159291 and update campaign #159306. Remaining slices cover diagnostic/CLI/SDK lifetime, auth pruning, CLI settlement, the required MCP scheduler cutover, and final timer census/docs. The final Gateway/cron/suspend/restart/shutdown proof belongs to merged main after those production slices land.

Merged scheduler slices

@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S labels Sep 27, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 26, 2026, 11:25 PM ET / September 27, 2026, 03:25 UTC.

ClawSweeper review

What this changes

Moves requester-input and terminal session-transcript fixtures from two test files into their existing shared test-support modules.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main does not contain this fixture move, and the verified test merge retains it. The moved helpers preserve their values, write order, and existing callers; I found no actionable patch defect.

Priority: P3
Reviewed head: f79567cfdf894113d7897f2ca68beef237a7cbf3

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The fixture move is focused and source-equivalent, with no identified correctness or security defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This test-only fixture move changes no production behavior, and Repository State identifies the author as MEMBER, so the external-contributor proof gate does not apply. The PR reports earlier Testbox execution of the affected suites, but that workflow's overall failure and unavailable logs prevent independent confirmation of its per-file results; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This test-only fixture move changes no production behavior, and Repository State identifies the author as MEMBER, so the external-contributor proof gate does not apply. The PR reports earlier Testbox execution of the affected suites, but that workflow's overall failure and unavailable logs prevent independent confirmation of its per-file results; no stored-data contract changes.
Evidence reviewed 6 items Introduced patch: The pinned merge-base-to-head patch moves two helpers into existing test-support modules and changes their test imports; it contains no production-file change.
Requester fixture parity: Current main defines the original helper with the same parameters, workspace, Telegram channel, and override order as the moved helper.
Transcript fixture parity: The original helper on main appends the same event before or after the registry write according to the same scenario parameter. The moved helper calls the existing shared store writer that the test previously imported under an alias.
Findings None None.
Security None None.

How this fits together

Agent MCP tests use requester fixtures to exercise session-scoped server runtimes. Reply-session tests use a transcript fixture to seed session state before checking lifecycle behavior; this PR changes test support only.

flowchart LR
A[Requester test cases] --> B[Shared MCP fixture]
B --> C[MCP runtime tests]
D[Session lifecycle cases] --> E[Shared transcript fixture]
E --> F[Session store and transcript]
F --> G[Reply session tests]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +4. Total +4 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 62 58 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 62 58 +4

Review metrics

None.

Technical review

Best possible solution:

Preserve these fixture semantics as later scheduler tests adopt the shared helpers, and validate scheduler lifecycle behavior with the production cutover.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR reports no user-facing bug; the relevant check is whether the moved fixture definitions and callers match current main.

Is this the best way to solve the issue?

Yes: the existing test-support modules are the narrow owners for these shared fixtures, and the patch preserves their behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a6b5ed882cb5.

Labels

Label changes:

  • add P3: This is a test-fixture cleanup with no production behavior or user-facing change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This test-only fixture move changes no production behavior, and Repository State identifies the author as MEMBER, so the external-contributor proof gate does not apply. The PR reports earlier Testbox execution of the affected suites, but that workflow's overall failure and unavailable logs prevent independent confirmation of its per-file results; no stored-data contract changes.

Label justifications:

  • P3: This is a test-fixture cleanup with no production behavior or user-facing change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This test-only fixture move changes no production behavior, and Repository State identifies the author as MEMBER, so the external-contributor proof gate does not apply. The PR reports earlier Testbox execution of the affected suites, but that workflow's overall failure and unavailable logs prevent independent confirmation of its per-file results; no stored-data contract changes.

Evidence

What I checked:

  • Introduced patch: The pinned merge-base-to-head patch moves two helpers into existing test-support modules and changes their test imports; it contains no production-file change. (src/agents/agent-bundle-mcp-manager.test-support.ts:8, f79567cfdf89)
  • Requester fixture parity: Current main defines the original helper with the same parameters, workspace, Telegram channel, and override order as the moved helper. (src/agents/agent-bundle-mcp-runtime.test.ts:708, a6b5ed882cb5)
  • Transcript fixture parity: The original helper on main appends the same event before or after the registry write according to the same scenario parameter. The moved helper calls the existing shared store writer that the test previously imported under an alias. (src/auto-reply/reply/session.test.ts:268, a6b5ed882cb5)
  • Merge result: The verified test merge has current main followed by the exact PR head as parents, and its result still contains the same four-file fixture patch. The work is therefore not already present on main. (src/auto-reply/reply/test/session.test-support.ts:54, b730a66c4893)
  • Area history: Current-main history records prior merged work on these test-support files by Peter Steinberger, including MCP runtime and session-fixture changes; source-line introduction could not be established from the partial local history. (src/auto-reply/reply/test/session.test-support.ts, a6b5ed882cb5)
  • Reported validation limit: The PR body reports 334 focused cases passing on an earlier source tree and says the four changed files are byte-identical. The cited Testbox workflow has an overall failure conclusion; its logs and earlier source object were unavailable to this read-only reviewer, so those per-file results were not independently confirmed.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete enabled auto-merge (squash) September 27, 2026 03:30
@steipete
steipete merged commit 66dae51 into main Sep 27, 2026
121 checks passed
@steipete
steipete deleted the hostneutral/scheduler-mcp-fixtures-0926 branch September 27, 2026 03:34
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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