Skip to content

test(sessions): remove unused persisted-run fixture default - #208263

Draft
vincentkoc wants to merge 1 commit into
mainfrom
test-session-persisted-run-fixture-default-20261129
Draft

vincentkoc wants to merge 1 commit into
mainfrom
test-session-persisted-run-fixture-default-20261129

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The persisted-session fixture keeps an optional overrides default even though both callers supply explicit values.

User Impact

No user-visible change. All three persisted-session cases and their assertions remain intact.

Why This Change Was Made

Remove the unused default from the private run builder. Its two callers, fixture values and cleanup behavior remain unchanged.

Evidence

  • All three affected cases pass through the canonical runner.
  • The original 20-suite baseline passes all 242 cases.
  • Scoped formatting, lint, Gateway-method test types and diff checks pass. No production change.
  • Local ClawSweeper reviewed the complete committed range 501ee91..269ce90 with no findings.

@vincentkoc vincentkoc self-assigned this Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 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.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 29, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

Removes the unused empty-object default from the private persisted-run fixture builder.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is minimal and source-verified; validation is reported in prose without independently inspected test output.
Proof confidence 🦐 gold shrimp (3/6) No user-visible behavior changes; reported test results support the cleanup, with caller equivalence independently verified from source.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored change modestly tightens a private helper contract without adding machinery or changing product behavior.

Merge readiness

✅ Ready for maintainer review

This PR is a correct, minimal test-fixture cleanup with no actionable findings; keep it open under the maintainer-authored guard while it remains a draft.

Reviewed head: 269ce908a854b7c4edd69c68e30a84327014979b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Gateway session-read tests build synthetic subagent records, persist them through fixture support, and exercise session-list responses alongside worker writes.

flowchart LR
A[Explicit fixture overrides] --> B[Private run builder]
B --> C[Registry fixture persistence]
C --> D[Session list handler]
D --> E[Response assertions]
Loading

Technical review

Best possible solution:

Keep the single signature change and preserve the existing fixture values, cases, and assertions.

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

There is no reported runtime bug; source inspection confirms the unused default and both explicit override arguments.

Is this the best way to solve the issue?

Removing only the default is the smallest complete cleanup and leaves executed fixture behavior unchanged.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7c0080f09ee2.

Provenance checked

  • Private persisted-run fixture default keeps the original intent (e633da5: The original worker-registry suite used the builder without overrides in a storage-validation case; the current remaining callers both supply overrides.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e633da5 adds src/gateway/server-methods/sessions-list-persisted-worker.test.ts:29 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e633da5d8d8c; files: src/gateway/server-methods/sessions-list-persisted-worker.test.ts)
  • Vincent Koc: Raw commit 5f93e19 adds src/gateway/server-methods/sessions-list-persisted-worker.test.ts:176 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5f93e19bb826; files: src/gateway/server-methods/sessions-list-persisted-worker.test.ts)

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 29, 2026, 6:33 AM ET / 11:33 UTC.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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