Skip to content

chore: remove duplicate startup corpus runs - #204932

Merged
vincentkoc merged 1 commit into
mainfrom
test/fixture-reachability-audit-20261125
Nov 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test/fixture-reachability-audit-20261125

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The startup corpus runs the same operator configuration twice. Since #184375, hamverbot.json has been an alias for the byte-identical operator-container.json input, adding one duplicate config-startup run and two duplicate prior-release state-startup runs.

User Impact

No user-visible behavior change. Developers retain the same startup and source-config preservation coverage with three fewer duplicate executions.

Why This Change Was Made

Remove the synthetic alias and move its unchanged source-config assertions to operator-container.json. The keeper still checks the authored model policy and both OAuth profile records. All 16 on-disk configuration fixtures and both historical state releases remain covered. Production code and fixture bytes are unchanged; test/support code shrinks by three lines.

Evidence

All 53 retained cases passed across the config-startup suite and all eight state-startup partitions (476.28 seconds). Every remaining configuration ran against both historical releases.

A temporary startup mutation that drops authored OAuth profiles makes both the original hamverbot.json case and the retained operator-container.json case fail at the same source-config assertion. All temporary edits were restored byte-for-byte.

Targeted type-aware lint, config/CLI test typechecking, formatting, and all three dead-code scans passed. Pinned local ClawSweeper review found no correctness or security findings. No production behavior or fixture bytes change.

Keep source-config preservation assertions on the operator-container case. The removed alias has loaded byte-identical operator-container input since #184375, so it repeats one config startup and two prior-release state startup cases.
@vincentkoc vincentkoc self-assigned this Nov 24, 2026
@clawsweeper

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

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 24, 2026
@clawsweeper

clawsweeper Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes the synthetic hamverbot.json corpus alias and moves its source-config preservation assertions to operator-container.json.

Example: Run the operator-container configuration through startup and both historical-state releases.

  • Before: Identical configuration bytes run under two names, producing six executions across the three scenarios.
  • After: The configuration runs once per scenario, retaining the model-policy and OAuth-profile assertions.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The source supports a correct, focused consolidation, but executed corpus validation remains pending; draft status itself does not reduce the rating.
Proof confidence 🦪 silver shellfish (2/6) No shipped behavior changes, so product-entry-point proof is unnecessary; the draft's planned corpus validation has no completed result in the inspected discussion or checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Developers repeatedly execute the same startup configuration without gaining distinct coverage.
Reason: The maintainer-authored direction removes redundant test work while preserving every on-disk fixture and the alias's independent expectations.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR removes genuinely duplicate test executions while retaining the distinct assertions; no introduced defect was found.

Priority: P3
Reviewed head: 7d16e584793c0061d4c35bb276d4bdb47f68cfc4

Before merge

None.

Findings

None.

Agent review details

How this fits together

A shared test-only reader supplies configuration fixtures to the config-startup suite and the partitioned historical-state startup suite, which exercise existing production owners and assert startup and preservation behavior.

flowchart LR
  A[Configuration fixtures] --> B[Shared corpus reader]
  B --> C[Config startup suite]
  B --> D[Historical state suite]
  E[Two release snapshots] --> D
  C --> F[Startup and preservation assertions]
  D --> F
Loading

Technical review

Best possible solution:

Retain the direct fixture inventory and transferred assertions, then complete the existing corpus validation and normal CI gates.

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

Source establishes the duplication conclusively: both names resolve to the same file and enter the same parameterized test bodies without distinct name-dependent handling.

Is this the best way to solve the issue?

This is the smallest complete cleanup: remove the redundant alias at the shared inventory owner and retain its stronger assertions on the existing fixture.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1a15f8948efd.

Provenance checked

  • Synthetic corpus inventory and reader changes intended behavior with a stated reason (f238a9b: Reconstruct a distinct configuration variant from a shared fixture while retaining all logical cases.)
  • Byte-identical alias mapping keeps the original intent (7b95dbd: Remove variant reconstruction while retaining source-preservation assertions using the same operator shape.)
  • Source-config preservation expectations keeps the original intent (2128a60: Protect authored model policy and OAuth profile records alongside prior-release state preservation.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit f238a9b adds src/config/config-corpus.test-support.ts:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f238a9bf2377; files: src/config/config-corpus.test-support.ts)
  • Ayaan Zaidi: Raw commit 2128a60 adds src/config/config-startup-corpus.test.ts:64 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2128a6081516; files: src/config/config-startup-corpus.test.ts)

PR surface

Tests -3. Total -3 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 6 9 -3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 6 9 -3

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:

  • add P3: Test-only maintenance removes redundant executions without changing runtime behavior or stored data.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: Test-only maintenance removes redundant executions without changing runtime behavior or stored data.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the planned config-startup and historical-state corpus validation and obtain the normal exact-head CI results.

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 24, 2026, 5:19 PM ET / 22:19 UTC.

@vincentkoc
vincentkoc marked this pull request as ready for review November 24, 2026 22:20
@vincentkoc
vincentkoc enabled auto-merge (squash) November 24, 2026 22:22
@vincentkoc
vincentkoc merged commit e04d625 into main Nov 24, 2026
194 of 195 checks passed
@vincentkoc
vincentkoc deleted the test/fixture-reachability-audit-20261125 branch November 24, 2026 22:35
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 25, 2026
Keep source-config preservation assertions on the operator-container case. The removed alias has loaded byte-identical operator-container input since openclaw#184375, so it repeats one config startup and two prior-release state startup cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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