Skip to content

fix(release): bound candidate tooling lag path count - #182047

Merged
RomneyDa merged 2 commits into
mainfrom
fix/frv-tooling-lag-buffer
Oct 24, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/frv-tooling-lag-buffer

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Problem

pnpm ci:full-release for the 2026.10.10-beta.4 candidate (release/2026.10.10 @ ed86799d836) fails before admission with spawnSync git ENOBUFS. The advisory candidate tooling-lag warning buffers git diff --name-only <candidate> <main>; that list is 1.8 MB for this branch (38,551 changed paths), over Node's 1 MB execFileSync default buffer.

Solution

Read the net changed-path count from git diff --shortstat instead of buffering every path name. The warning text and --dirstat area summary are unchanged.

Impact

Release candidates whose tree has drifted far from main can dispatch Full Release Validation again. No workflow, admission, or qualification behavior changes.

Evidence

  • Before: [full-release-validation] FAILED: spawnSync git ENOBUFS right after Validation SHA fetchable by bare SHA: ed86799d….
  • git diff --no-renames --name-only ed86799d836 origin/main | wc -c → 1,848,296; --shortstat → 38551 files changed.
  • After: the same helper invocation with this patch proceeds past the lag check (live beta.4 dispatch).
  • oxfmt --check clean.

@RomneyDa RomneyDa added the release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) label Oct 24, 2026
@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Oct 24, 2026
@RomneyDa
RomneyDa enabled auto-merge (squash) October 24, 2026 00:42
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 24, 2026
@clawsweeper

clawsweeper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR counts changed paths with Git’s compact summary instead of buffering every filename.

Example: Validate the 2026.10.10-beta.4 candidate with 38,551 changed paths and a 1,848,296-byte filename list.

  • Before: The original helper aborts before admission with spawnSync git ENOBUFS.
  • After: The patched helper reads the compact count and proceeds past the lag check.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused patch with corroborated real dispatch evidence and no blocking findings; implementation-coupled test assertions limit regression confidence.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The maintainer records the real full-release CLI failing on the beta.4 candidate before the patch and proceeding past the lag check afterward; the linked workflow-dispatch run independently corroborates that progress.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A warning-only comparison prevented release operators from dispatching validation for heavily drifted candidates.
Reason: The maintainer-authored direction preserves the diagnostic contract and cheaply avoids work that the merged buffer increase still performs.

Merge readiness

✅ Ready for maintainer review

The earlier finding is resolved, and no introduced correctness or security defect remains. Keep this maintainer-authored PR open as a focused improvement to the release diagnostic.

Priority: P2
Reviewed head: d3df718d12beb1f49df9a0633a29509e654d6800

Before merge

None.

Findings

None.

Tests

  • Low-value test test/scripts/full-release-validation-at-sha.test.ts: The new assertions at lines 93–94 pin Git command flags and cannot detect a broken count parser; replace them with a behavioral dispatch regression that checks the resulting warning count.
  • Missing end-to-end proof: The reported red/green run checks command flags; an overflow-triggering regression verifying successful dispatch and the warning count is not shown.
Agent review details

How this fits together

The full-release CLI compares candidate and main Git revisions, emits an advisory tooling-lag warning, and continues into qualification admission and workflow dispatch.

flowchart LR
  A[Release operator] --> B[Full release CLI]
  B --> C[Candidate and main comparison]
  C --> D[Compact path count]
  D --> E[Tooling lag warning]
  E --> F[Qualification admission]
  F --> G[Workflow dispatch]
Loading

Technical review

Best possible solution:

Keep the existing diagnostic owner and obtain its path count without materializing filenames.

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

The original ENOBUFS failure is supported by the recorded CLI trace and original source; current main’s larger buffer accommodates that input, and no target code was executed during this review.

Is this the best way to solve the issue?

The compact Git summary is a small, direct repair that avoids unnecessary output while retaining the existing warning and qualification contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 77001de66da1.

Provenance checked

  • Candidate tooling-lag comparison keeps the original intent (753c73d: Report complete candidate-versus-main drift without substituting main tooling for frozen candidate qualification.)
  • Diagnostic command assertion changes intended behavior with a stated reason (753c73d: Ensure the comparison derives complete scope from Git rather than a manually maintained release-path inventory.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 753c73d adds scripts/full-release-validation-at-sha.mts:842 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 753c73dd43d9; files: scripts/full-release-validation-at-sha.mts)

PR surface

Tests +3, Other +4. Total +7 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 4 1 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 9 5 +4
Total 2 13 6 +7

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a focused release-operator tooling improvement with limited blast radius; current main already accommodates the reported oversized output.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rank-up moves

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

  • Replace the new Git-flag assertions with a large-output dispatch regression that verifies the emitted path count.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-24T01:02:21.567Z sha 68b3994 :: needs changes before merge. :: [P2] Replace the obsolete filename-list assertion

Reviewed October 23, 2026, 9:18 PM ET / October 24, 2026, 01:18 UTC (Revision 2).

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Replaced the obsolete --name-only assertion with a --shortstat assertion that also rejects any --name-only tree diff. Proof: vitest run test/scripts/full-release-validation-at-sha.test.ts -t "manually maintained release-path inventory" fails on main's helper (red) and passes with this patch (green). Live proof: 2026.10.10-beta.4 FRV dispatch (run 40047883674) proceeded past the lag check with this patch; it previously failed with spawnSync git ENOBUFS.

@clawsweeper

clawsweeper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 24, 2026
@RomneyDa
RomneyDa merged commit 0afc988 into main Oct 24, 2026
112 checks passed
@RomneyDa
RomneyDa deleted the fix/frv-tooling-lag-buffer branch October 24, 2026 01:21
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) scripts Repository scripts 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