Skip to content

test(config): authorize intentional warning reset write - #166284

Merged
clawsweeper[bot] merged 3 commits into
mainfrom
fix/frv-config-warning-size-drop
Oct 10, 2026
Merged

clawsweeper[bot] merged 3 commits into
mainfrom
fix/frv-config-warning-size-drop

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member

Problem

Full Release Validation deterministically fails src/config/io.write-config.test.ts before the warning-deduplication test reaches its intended preCommitRuntimePreflight rejection. The test writes an intentionally smaller empty config, so the production size-drop guard correctly rejects it first.

Solution

Authorize that one intentional test write with the existing allowConfigSizeDrop option. Production behavior and the dedicated size-drop guard coverage remain unchanged.

Impact

The test again exercises warning deduplication and failed-preflight behavior rather than accidentally testing the earlier size-drop boundary.

Evidence

  • Before: pnpm test src/config/io.write-config.test.ts --maxWorkers=1 — 1 failed / 112 passed; exact failure size-drop:514->256 in the warning-deduplication case.
  • After: pnpm test src/config/io.write-config.test.ts -t 'dedupes validation warnings across writes and reloads until config becomes clean' --maxWorkers=1 — 1/1 passed; test 1.713s, command 35.17s including compilation.
  • AutoReview P0–P2: clean.
  • Test audit: no new test or production seam; the existing test uses the public intentional-write authority only for the payload whose later preflight behavior it asserts.

@clawsweeper

clawsweeper Bot commented Oct 6, 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.

@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper automerge

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper could not enable automerge for this PR.

Reason: target is no longer an open PR.

Draft PRs stay fix-only until GitHub marks them ready for review. Pause with /clawsweeper stop.

Automerge progress:

  • 2026-10-10 01:38:56 UTC review queued 583ae647a803 (queued)
  • 2026-10-10 02:09:29 UTC review queued 964660d4742b (after repair)
  • 2026-10-10 02:13:58 UTC review passed 964660d4742b (structured ClawSweeper verdict: pass (sha=964660d4742b63837879747840cb760ca1c...)
  • 2026-10-10 02:16:45 UTC merged 964660d4742b (merged by ClawSweeper automerge)

@clawsweeper clawsweeper Bot added clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR authorizes an intentional size reduction in the warning regression and moves that regression into a test-support module.

Example: The warning regression attempts an empty-config write whose preflight throws "blocked".

  • Before: The write does not explicitly permit a size reduction or assert that persisted bytes remain unchanged.
  • After: The write permits the intentional reduction and verifies that preflight rejection preserves the original file bytes.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A coherent test-only improvement with no concrete findings; available execution evidence is limited to the test harness.
Proof confidence 🦐 gold shrimp (3/6) This MEMBER-authored, test-only PR is outside the contributor runtime-proof gate; supplied evidence reports the focused regression passing, rather than a shipped-entry-point run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The warning regression could fail at the size guard before exercising its intended preflight rejection.
Reason: The maintainer-authored change preserves meaningful warning-state coverage and checks that the rejected write leaves persisted bytes intact.

Merge readiness

✅ Ready for maintainer review

Keep open under the maintainer-author guard. The test-only patch preserves warning coverage and adds a file-preservation assertion; no introduced defect was found.

Priority: P3
Reviewed head: 964660d4742b63837879747840cb760ca1c3d6a9

Before merge

None.

Findings

None.

Agent review details

How this fits together

Config IO validates candidate settings, applies write-safety checks, runs preflight, and publishes the file; the regression exercises warning deduplication across successful and rejected writes.

flowchart TD
  A[Warning regression] --> B[Config IO]
  B --> C[Size safety checks]
  C --> D[Runtime preflight]
  D --> E[File publication]
  E --> F[Warning fingerprint update]
Loading

Technical review

Best possible solution:

Retain the existing warning-state regression with its narrow intentional-write exemption and file-preservation assertion.

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

No tests were executed during this read-only review; the reported historical fixture failure has an alternative repair on current main.

Is this the best way to solve the issue?

The existing size-drop option is appropriately scoped to the rejected test write, and the added assertion checks persisted output without weakening production protection.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0bff78b03b47.

Provenance checked

  • Warning deduplication across rejected writes keeps the original intent (eedd309: Repeated warnings should remain suppressed across failed writes and become visible again after successful clean validation.)
  • Existing-file warning fixture keeps the original intent (471f950: Seed an existing file so literal rewrites do not discard first-write native catalog preferences.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Introduced change: The pinned introduction diff changes only tests and test support, retaining the warning sequence while adding allowConfigSizeDrop and persisted-byte verification. (src/config/io.write-warnings.test-support.ts:34, 964660d4742b)
  • Production ordering: Blocking size checks precede preflight, and preflight precedes file publication; the fixture exemption therefore targets the intended rejection without changing production safeguards. (src/config/io.write.ts:437, 964660d4742b)
  • Merged alternative on main: GitHub verifies that fix(ci): keep full release validation within measured budgets #166774 merged an alternative fixture repair, explicitly links this PR, and reports the complete config-write suite passing; current main retains that existing-file seed. (src/config/io.write-config.test.ts:566, 471f950ee340)
  • Feature provenance: The warning regression was introduced with shared warning deduplication, including preservation across failed writes; the patch retains that intent. (src/config/io.write-config.test.ts:559, eedd309c4a07)
  • Current review state: REST confirms the reviewed head remains open and mergeable, with no requested reviewers or reviews; exact-head CI is still pending, with no observed failed checks. (964660d4742b)
  • Historical comparison limit: The earlier reviewed SHA is unavailable locally, so comparison against that revision could not execute; the complete current introduction diff was independently inspected. (964660d4742b)

PR surface

Tests +22. Total +22 across 2 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 62 40 +22
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 62 40 +22

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P3: This improves an existing test fixture and assertions without changing production behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 🚀 automerge armed: This PR is in ClawSweeper's automerge lane.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-06T20:35:43.642Z sha 583ae64 :: passed. :: none
  • reviewed 2026-10-06T21:46:05.094Z sha 583ae64 :: passed. :: none

Reviewed October 9, 2026, 10:12 PM ET / October 10, 2026, 02:12 UTC (Revision 3).

@clawsweeper
clawsweeper Bot force-pushed the fix/frv-config-warning-size-drop branch from 583ae64 to 964660d Compare October 10, 2026 02:09
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Oct 10, 2026
@clawsweeper
clawsweeper Bot merged commit ecc98d4 into main Oct 10, 2026
114 checks passed
@clawsweeper
clawsweeper Bot deleted the fix/frv-config-warning-size-drop branch October 10, 2026 02:16
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 10, 2026
)

Summary:
- This PR authorizes an intentional size reduction in the warning regression and moves that regression into a test-support module.
- **Example:** The warning regression attempts an empty-config write whose preflight throws "blocked".
- **Before:** The write does not explicitly permit a size reduction or assert that persisted bytes remain unchanged.
- **After:** The write permits the intentional reduction and verifies that preflight rejection preserves the original file bytes.

Automerge notes:
- PR branch already contained follow-up commit before automerge: test(config): authorize intentional warning reset write
- PR branch already contained follow-up commit before automerge: fix(clawsweeper): address review for automerge-openclaw-openclaw-1662…

Validation:
- ClawSweeper review passed for head 964660d.
- Required merge gates passed before the squash merge.

Prepared head SHA: 964660d
Review: openclaw#166284 (comment)

Co-authored-by: Dallin Romney <[email protected]>
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Approved-by: romneyda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant