Repository navigation
fix(pr): keep the reviewed workflow stable between maintainer commands - #167350
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed October 8, 2026, 1:32 PM ET / 17:32 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch retains a PR’s admitted maintainer workflow revision across commands and retires its binding after verified completion. Example: A maintainer repeats scripts/pr review-guard 123 after origin/main advances.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness⛔ Needs changes before merge - 3 items remain This PR provides useful workflow continuity, but it breaks supported cold provisioning and leaves sibling regression suites failing for introduced reasons. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe maintainer CLI coordinates PR review, preparation, and landing using trusted repository scripts. This change stores the selected script revision between commands and removes that record when native completion is verified. flowchart TD
A[Maintainer command] --> B[Trusted workflow selection]
C[Repository and PR binding] --> B
B --> D[Operation lock and admission]
D --> E[Review preparation or landing]
E --> F{Verified completion}
F -->|No| C
F -->|Yes| G[Retire exact binding]
Technical reviewBest possible solution: Keep native workflow continuity while allowing trusted cold acquisition to establish its first revision and preserving the existing lock and recovery contracts. Do we have a high-confidence way to reproduce the issue? Not applicable to the proposed continuity capability; its introduced regressions have exact-head hosted failure traces and clear source triggers. Is this the best way to solve the issue? No, not yet: the existing wrapper is the right owner, but admission must preserve cold acquisition and its sibling regression coverage. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 56c033e8267a. Provenance checked
TestingProof path: in-process harness. Added test files: 4. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests +362, Docs +2, Other +206. Total +570 across 9 files. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
|
Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163
* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits) test(gateway): restore local probe deferred import fix(agents): release prompt diagnostics for retired sessions (#177614) fix(release): tag restart plugin cohorts consistently (#177725) refactor(ui): inline single-caller detail requests (#177705) chore(i18n): refresh native locales (#177721) refactor(codex): drop unread private runtime reports (#177689) refactor(ui): consolidate static artwork registries (#177692) refactor(ui): derive settings schema analysis in the view (#177624) refactor(media): consolidate capability defaults and compression grids (#177665) refactor(auth): bind OAuth managers to native provider operations (#177676) refactor(ui): remove redundant component rendering layers (#177607) fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082) fix(agents): report failed secret input prompt delivery (#177688) refactor(ui): share chat message render contracts (#177668) fix(ui): settle model status after overlapping publication (#177667) refactor(gateway): reuse native workspace and lifecycle facts (#177670) refactor(runtime): rely on canonical async lifecycle owners (#177635) refactor: fold private operation helpers into their callers (#177655) refactor(ui): remove unused chat leaf element adapters (#177582) perf(talk): use published authority for foreign voice writes (#177533) ...
|
Merged via squash.
|
Workflow binding from #167350 reads its source closure from Git and verifies the writer before locked operations. The cross-checkout fixture only copied wrapper files onto disk, and the preflight fixture had no committed HEAD or remote identity, so neither reached its intended check. Commit the existing production inventory, retain it in source and landed trees, and provide local origin/main and the existing dependency links. Model the mandatory writer read in the cross-checkout GitHub stub and assert its exact order. Keep owner-only reconciliation, invalid gate refusals, lock state and retained evidence assertions intact. No production workflow, update behavior, timeout, retry, permission or baseline changes. Validation: 22 cases pass across both affected files with one worker; targeted tooling types, typed lint, formatting and P2 review pass.
openclaw#167350) * fix(pr): retain the admitted workflow across maintainer commands * fix: refresh the reviewed correction baseline Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163 * fix(pr): preserve cold workflow admission and repository identity * chore(pr): integrate canonical main CI repair * commit '4f8617589b6c71d754171052b603fe534901bfa1': (52 commits) test(gateway): restore local probe deferred import fix(agents): release prompt diagnostics for retired sessions (openclaw#177614) fix(release): tag restart plugin cohorts consistently (openclaw#177725) refactor(ui): inline single-caller detail requests (openclaw#177705) chore(i18n): refresh native locales (openclaw#177721) refactor(codex): drop unread private runtime reports (openclaw#177689) refactor(ui): consolidate static artwork registries (openclaw#177692) refactor(ui): derive settings schema analysis in the view (openclaw#177624) refactor(media): consolidate capability defaults and compression grids (openclaw#177665) refactor(auth): bind OAuth managers to native provider operations (openclaw#177676) refactor(ui): remove redundant component rendering layers (openclaw#177607) fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (openclaw#166082) fix(agents): report failed secret input prompt delivery (openclaw#177688) refactor(ui): share chat message render contracts (openclaw#177668) fix(ui): settle model status after overlapping publication (openclaw#177667) refactor(gateway): reuse native workspace and lifecycle facts (openclaw#177670) refactor(runtime): rely on canonical async lifecycle owners (openclaw#177635) refactor: fold private operation helpers into their callers (openclaw#177655) refactor(ui): remove unused chat leaf element adapters (openclaw#177582) perf(talk): use published authority for foreign voice writes (openclaw#177533) ... Co-authored-by: Vincent Koc <[email protected]>
Workflow binding from openclaw#167350 reads its source closure from Git and verifies the writer before locked operations. The cross-checkout fixture only copied wrapper files onto disk, and the preflight fixture had no committed HEAD or remote identity, so neither reached its intended check. Commit the existing production inventory, retain it in source and landed trees, and provide local origin/main and the existing dependency links. Model the mandatory writer read in the cross-checkout GitHub stub and assert its exact order. Keep owner-only reconciliation, invalid gate refusals, lock state and retained evidence assertions intact. No production workflow, update behavior, timeout, retry, permission or baseline changes. Validation: 22 cases pass across both affected files with one worker; targeted tooling types, typed lint, formatting and P2 review pass.
What Problem This Solves
Fixes maintainer commands silently selecting a different workflow revision when main advances between review, preparation, and landing.
User Impact
No product-runtime change. An ongoing PR operation keeps its admitted workflow and dependency contract until native completion. The corrected implementation also preserves supported cold startup when no local main tracking ref exists.
Why This Change Was Made
The trusted entrypoint retains the workflow it actually admitted in a repository- and PR-bound Git ref. Later commands validate and reuse that immutable source; verified native completion retires the exact binding. Admission is prospective, with no caller-selected revision override.
Cold startup uses the existing locked canonical-fetch owner to establish trust before binding. It compares immutable executing and selected source closures, preserves failed qualification evidence, and leaves shared main tracking refs untouched. Separate descriptor ownership preserves supervised cleanup. Repository identity now distinguishes SSH users, endpoints, ports, path case, and relative paths.
The correction preserves the original PR ancestry and fixes both reviewed regressions: cold provisioning and sibling lock-fixture admission. The canonical tooling guide documents continuity and recovery. The extra production code implements source qualification and lifecycle ownership; it does not add a second provisioning or cleanup owner.
Evidence
mvlacks the declared exchange capability. The wrapper import-inventory case and three shell syntax checks passed.extensions/diffs/src/config.tsreproduce with the tracked source exactly restored to frozen main59c74d52601820df7f751b89391acc34e187cd87. Those unrelated budgets/exports are unchanged. No skip, weakened check, or merge exception is requested.73033bf6edcdd1734e30bcc0ced91afa827d3db6; final treeacdc61e3988ba39f3693d1e111a7a5fee8473cacdiffers only by the verified formatting-only test blob. The original failed-verifier and changed-check receipts are retained rather than rewritten. All proof children joined; native lease cleanup completed.These fixtures exercise the actual native wrapper with controlled Git/GitHub boundaries, not a production main-movement experiment. Exact published-head CI and native completed-hosted landing gates remain required; this PR is not yet merge-qualified.
Current CI Disposition
Previous published head
11c2bd103216d2b566f18c2934841d51b6469747passed the hosted build and all 112 main-refresh plus 23 workflow-binding cases, with zero skips in those two suites. The earlier runner-assignment wait ended normally; it is no longer the blocker.CI39321423337 completed with failures in
check-test-types-core-4andcheck-lint-core-1. Both concern the missingcreateDeferredCoreimport insrc/gateway/local-http-probe.test.ts, introduced on main by #177670. The tested merge and its main parent share offending blobcb50eabba3e6638baad1a3860e8f602449757f75; this PR and its frozen baseline retain the import and do not change that path. The other lint diagnostics are nonfatal file-length warnings.The maintainer restored exactly that import in b6bd9e8b. Its commit message reports focused probe/type/lint/format proof; those reported checks are not independently captured evidence here.
Native publication now selects signed
fcfecdf6e1e3f2c1d12314acb9987aca4d95bc9c, an ancestry-preserving integration of main08e32fdb4df002c9d4eea158b855d6521dd1e916. Its tree is0f9d99c2039deba94fcdee67edbff02da5a6bbcf; all eleven PR files are byte-identical to the preceding reviewed head, and the baseline-relative patch remains exactly eleven paths. The relevant wrapper, helper, library, focused-test, dependency and CI workflow inputs are unchanged between the previous CI's main parent and this integration baseline. Independent inspection confirmed the integration and retained proof binding; no completed application proof was replayed.Fresh exact-head CI39328494720 actually executed and passed all112 main-refresh and23 workflow-binding cases, zero skips, including the two cold-start and seven repository-identity regressions. Both job logs bind their checkout to this published head merged into08e32fdb. The hosted build also passed at this exact head. The aggregate remains pending on boundary/lint/type and ratchet work, not qualified green. This PR remains unmerged until required current-head CI and completed-hosted native landing gates pass. The original failed run remains failed; no CI rerun, inherited-failure exception, direct-main write or weakened gate was used.