Skip to content

fix(release): audit backport companion closure - #178188

Merged
RomneyDa merged 4 commits into
mainfrom
fix/rri-57-backport-companions
Oct 20, 2026
Merged

RomneyDa merged 4 commits into
mainfrom
fix/rri-57-backport-companions

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • add a bounded release backport companion audit for later same-path commits, same-PR follow-ups, neighbor tests, and reference/registry candidates
  • compare the selected file set and non-blocking content-difference evidence against the final release candidate
  • fail closed on unauditable bounds, baseline-covered selections, and merge-commit ambiguity while requiring manual contract tracing

Fixes RRI-57.

Testing

  • pnpm exec vitest run test/scripts/release-backport-companions.test.ts (3 tests)
  • node scripts/run-oxlint.mjs scripts/release-backport-companions.mjs test/scripts/release-backport-companions.test.ts
  • OPENCLAW_LOCAL_CHECK=0 node scripts/run-tsgo-core-test-shards.mjs --root-stripe 2/4
  • git diff --check
  • live repository smoke scan across a pinned 20-commit range

Review

  • independent semantic review completed with no P0/P1/P2 findings after bounding content differences as inspection evidence rather than failure

Add a bounded, evidence-only audit for later same-path commits, PR companions, neighbor tests, reference candidates, and candidate file/content differences.

Co-authored-by: RomneyDa <[email protected]>
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: L labels Oct 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature 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: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds a Git-based CLI that identifies possible backport companions and compares selected changes with a release candidate.

Example: A selected commit adds scripts/prometheus-ipc-producer.mjs, but the release candidate omits it.

  • Before: The operator must discover the omitted file through manual comparison.
  • After: The report lists the missing path alongside registry references, neighboring tests, and follow-up commits for disposition.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused implementation with executable integration coverage and no identified defect; inspectable real-repository output would strengthen the behavioral evidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored CLI is outside the ordinary contributor proof gate; executable Git-fixture tests support the changed behavior, while the reported live repository scan has no attached trace and the earlier request to attach it remains optional.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Release operators can overlook companion commits, supporting files, or candidate differences when assembling backports manually.
Reason: The maintainer-authored direction adds useful discovery evidence while retaining the established ledger, manual dependency review, and approval boundary.

Merge readiness

✅ Ready for maintainer review

This PR provides useful release-audit tooling, preserves manual approval, and has no actionable correctness findings; exact-head CI is still pending.

Priority: P2
Reviewed head: 654750628d4ba997aaa514b44811f99fd3138004

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The reported pinned-repository smoke scan has no attached output, so its candidate-comparison result cannot be independently inspected.
Agent review details

How this fits together

Release preparation supplies pinned baseline, main, selected-commit, and optional candidate references; the CLI reads Git history and trees and emits Markdown or JSON evidence for the existing backport ledger.

flowchart TD
  A[Pinned release references] --> B[Companion audit CLI]
  C[Git history and trees] --> B
  B --> D[Companion candidates]
  B --> E[Candidate differences]
  D --> F[Existing backport ledger]
  E --> F
  F --> G[Manual contract review]
Loading

Technical review

Best possible solution:

Keep one read-only audit executable feeding the existing ledger, with manual contract tracing and release approval remaining authoritative.

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

This adds an audit capability rather than demonstrating a current runtime defect; the supplied integration tests construct concrete omitted-file and follow-up scenarios, and no target code was executed during this review.

Is this the best way to solve the issue?

The bounded Git report is a focused addition: every introduced area serves discovery, candidate comparison, or executable coverage, while heuristic matches remain evidence for human disposition.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 10f02efb0e73.

Provenance checked

  • Selected-contract closure workflow keeps the original intent (7b627f4: Require evidenced prerequisite dispositions before qualification rather than relying on clean cherry-picks or CI to discover missing contracts.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 7b627f4 adds .agents/skills/release-openclaw-maintainer/references/backport-discovery.md:96 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7b627f476aef; files: .agents/skills/release-openclaw-maintainer/references/backport-discovery.md)

PR surface

Tests +151, Docs +26, Config +1, Other +452. Total +630 across 4 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 151 0 +151
Docs 1 26 0 +26
Config 1 1 0 +1
Generated 0 0 0 0
Other 1 452 0 +452
Total 4 630 0 +630

Review metrics

Metric Value Why it matters
Audit CLI inputs 5 named flags; --selected is repeatable The new flags select audit bounds, commits, candidate comparison, and JSON output without adding persisted user settings.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Improves release backport completeness within an operator workflow while preserving existing qualification and approval requirements.
  • 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.

Rank-up moves

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

  • Optionally attach redacted output from the reported pinned-repository scan, including candidate comparison.

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 (2 earlier review cycles)
  • reviewed 2026-10-20T07:02:40.812Z sha 2c7c525 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-20T07:30:45.853Z sha cf3c351 :: needs maintainer review before merge. :: none

Reviewed October 20, 2026, 4:05 AM ET / 08:05 UTC (Revision 3).

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Pushed cf3c351afa3 to fix the related check-lint failure (typescript/no-unnecessary-type-conversion). Focused oxlint is clean and all 3 companion-scanner tests pass.

The prior extension failures were unrelated Codex concurrency-test timeouts in untouched files, and the macOS dead-code intersection named untouched Swift methods. The new push has restarted CI against the repaired head.

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Addressed the package-manager separator finding in 654750628d4:

  • the companion-audit CLI now accepts one -- separator passed through by the documented pnpm release:backport-companions -- ... invocation;
  • a second separator remains an unknown-argument failure;
  • the integration test now exercises the executable with the separator.

Validation: 3 focused tests passed; pnpm tsgo:scripts passed; oxlint reported zero findings.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@RomneyDa
RomneyDa enabled auto-merge (squash) October 20, 2026 23:29
@RomneyDa
RomneyDa merged commit 0f2b5e9 into main Oct 20, 2026
218 checks passed
@RomneyDa
RomneyDa deleted the fix/rri-57-backport-companions branch October 20, 2026 23:30
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
* fix(release): audit backport companion closure

Add a bounded, evidence-only audit for later same-path commits, PR companions, neighbor tests, reference candidates, and candidate file/content differences.

Co-authored-by: RomneyDa <[email protected]>

* fix(release): satisfy companion scanner lint

Co-authored-by: RomneyDa <[email protected]>

* fix(release): accept backport companion separator

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 23, 2026
* fix(release): retain postpublish failure causes (#178147)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit f47d5d7)

* fix(release): make FRV no-op commands succeed (#178149)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 29587f5)

* fix(release): retry unstarted FRV reruns after 5xx (#178160)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit fadee60)

* fix(release): show readable SDK acknowledgement diff (#178158)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit f6c0066)

* fix(release): report FRV plan sealing state (#178172)

* fix(release): report FRV plan sealing state

Co-authored-by: RomneyDa <[email protected]>

* fix(release): declare FRV plan lifecycle APIs

Declare the plan lifecycle helpers consumed by the TypeScript tests so NodeNext resolution checks the new exports.

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 4b065f5)

* fix(release): gate integrated branch pushes (#178202)

* fix(release): gate integrated branch pushes

Validate a captured release SHA from an immutable detached checkout, then push that exact SHA only after static, type, dead-code, and changed-test gates pass.

Co-authored-by: RomneyDa <[email protected]>

* fix(release): gate stable branch pushes

Co-authored-by: RomneyDa <[email protected]>

* fix(release): accept orchestrated stable push shape

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 2afc8db)

* fix(release): audit backport companion closure (#178188)

* fix(release): audit backport companion closure

Add a bounded, evidence-only audit for later same-path commits, PR companions, neighbor tests, reference candidates, and candidate file/content differences.

Co-authored-by: RomneyDa <[email protected]>

* fix(release): satisfy companion scanner lint

Co-authored-by: RomneyDa <[email protected]>

* fix(release): accept backport companion separator

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 0f2b5e9)

* ci(release): retain live failure diagnostics (#179097)

* ci(release): retain live failure diagnostics

Co-authored-by: RomneyDa <[email protected]>

* test(release): isolate live cache shell replay

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 89ee777)

* feat(release): add fast backport conflict probe (#179104)

* feat(release): add fast backport conflict probe

Co-authored-by: RomneyDa <[email protected]>

* fix(release): parse backport probe separator

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 3c1d486)

* fix(release): print release note verifier errors (#179077)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 2219999)

* fix(release): verify extended stable notes context (#179083)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 7de3a4b)

* feat(release): fetch compatibility inputs from registry (#179093)

* feat(release): fetch compatibility inputs from registry

Co-authored-by: RomneyDa <[email protected]>

* docs(release): clarify offline inventory checks

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit a819d2b)

* fix(release): close extended-stable FRV retry helper

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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.

2 participants