Repository navigation
fix(github): recover rejected publication selections - #137734
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: blocked before merge. Reviewed September 4, 2026, 5:53 PM ET / 21:53 UTC. ClawSweeper reviewWhat this changesThe PR adds a typed pre-admission rejection for stale GitHub publication account selections so Control UI can refresh the account and require a new explicit publish attempt. Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 4 items remain Keep open. The reviewed head implements a narrowly scoped stale-selection recovery path with owner-boundary and UI coverage, but this read-only checkout could not load current main source or a valid current test merge, and the required-check rollup is still incomplete. Priority: P2 Review scores
Verification
How this fits togetherGitHub publication starts with a Control UI account selection, passes through Gateway admission and a durable receipt boundary, then returns a result to the UI. This change lets the UI distinguish a rejected fresh attempt from an uncertain or already-admitted publication. flowchart LR
UI[Control UI selection] --> RPC[Gateway publish request]
RPC --> Admission[Publication admission]
Admission --> Receipt[Receipt existence check]
Admission --> Rejection[Typed fresh-selection rejection]
Rejection --> Refresh[Refresh account and select again]
Receipt --> Execute[Git publication execution]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +126, Tests +573, Docs +2, Config +8, Other +22. Total +731 across 20 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the receipt-owner-based typed rejection and strict key-matched UI recovery, then validate the refreshed current-main integration and exact-head required checks before landing. Do we have a high-confidence way to reproduce the issue? Yes. The source establishes a reproducible stale-account path: admission rejects before a receipt exists, and the pre-fix UI retained the attempt instead of clearing it; this read-only review did not execute the scenario. Is this the best way to solve the issue? Unclear for the active main integration. On the reviewed head, the receipt-owner fact plus exact-key UI handling is the best fix because generic identity-error recovery would conflate a fresh rejection with an uncertain admitted request. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 11a46fa85b47. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
Integrate c4b91f5 while retaining the publication selection recovery and the complete terminal exception release. Keep main's scoped live-child census and regenerate its CI projection. The main-only terminal projection still times out when exception formatting raises around a cyclic traceback. Retain diagnostic emission outside the handler as well as the terminal exit; all 74 canonical owner cases now pass. Validation: managed review (14 clean partitions), canonical protocol check, QA-enabled full build, 13 publication browser tests, 101 workflow checks, selected-plugin composition and read-only configured-install Doctor check. Real Gateway plus built UI: one stale-publisher rejection, explicit Refresh to the current account, no admitted publication or Git changes; normal owned shutdown and complete source/runtime/dependency integrity checks passed.
|
Merged via squash.
|
What changed
A stale GitHub publisher selection could be rejected before admission, yet Control UI retained the old account and idempotency key. Refresh fetched the new account, but Retry kept sending the rejected selection.
The admission owner now records a typed, invocation-only selection rejection after rereading the exact canonical receipt. An existing or concurrently admitted receipt, a failed lookup, or an uncertain earlier invocation never grants recovery. The RPC forwards only the matching request key; Control UI accepts only the strict detail for its first still-current attempt, clears obsolete choices, and requires Refresh plus another explicit Publish. It never automatically publishes or broadens retries.
Shared, personal, deferred and worker-claim admission reuse the same failure boundary while retaining their receipt and lifecycle ownership. Personal identity preparation reuses one selected-account binding. Repeated receipt-query setup is shared without caching absence.
The c4 integration also resolves the CI Git-owner overlap at its canonical owner: diagnostics and the final exit run after leaving the active exception handler, so cyclic exception metadata cannot trap older Python while it attaches another exception context. Main’s independent process-census improvement is retained. The workflow projection is regenerated from that one owner.
LOC at
8980942c213against integrated mainc4b91f5c705: handwritten production +174/-44 (+130), tests +597/-24 (+573), generated output +32/-6 (+26), docs +2. Publication production is +126, reduced from +134 by the coordinator cleanup. That growth carries the missing receipt-owner-to-wire-to-current-invocation fact; generic identity-error recovery would discard the uncertainty/concurrency distinction. The other +4 handwritten lines repair the reproduced CI Git-owner cyclic-exception diagnostic/exit hang.Compatibility
One additive optional detail in the existing error envelope; no new RPC, retry loop, protocol-version bump, configuration, authorization policy, SQLite schema, stored representation, migration, request digest, claim, effect or retention change. Older clients retain the generic error. Older-binary reopen was not run because the repair changes a transient response, not persisted data.
Fresh integrated-head verification
These results bind the frozen integration of
8255cae0c5bwith mainc4b91f5c705. The normal merge commit8980942c213was then pushed with an identical Git tree; no reviewed or tested source bytes changed during commit. The effective candidate remains 20 paths. All 16 non-overlapping publication source/test/doc paths are byte-identical to8255cae0c5b; the CI owner/workflow overlap and incoming generated/test changes are retained in the integrated tree.Fresh c4 real Gateway/dist proof passed, including normal Gateway/browser shutdown, sanitized log export and temporary-state cleanup. In the same Gateway process, session and UI WebSocket, a configured publisher change from synthetic A to B caused exactly one Publish attempt to return the typed, request-key-matched rejection. The publication table remained empty and physical Git files, refs and index were unchanged. Explicit Refresh returned B with Publish enabled; no second Publish or model request occurred. All 51 observed JS/CSS response hashes matched this build. Full source, distribution, dependency and generated-output guards passed before and after. The reviewed commit passed exact-head hosted CI and landed through native preparation/merge; the landed tree was independently checked against its actual main parent.
Retained earlier proof and limits
Original pre-fix reproductions failed 7/14 owner cases and 2/17 controller cases; opposite existing/uncertain-outcome controls already passed. Historical proof on the
8255cae0c5bcandidate includes 348 owner/client/sibling tests across 21 files and the expanded 38-stage changed-file gate with 1,105 tests. Those are retained evidence, not claims that the broad gate was rerun on c4. Counts overlap and are not an aggregate unique-test total.The earlier 15-part managed review returned no actionable findings; its retained completion reports and independent verification remain available, but its original helper terminal stream was unavailable after session resumption and is not claimed as observed. The earlier QA build command exited 0 while its wrapper failed on retained compile-cache cleanup; a separate audited cleanup preserved that failure and verified unchanged source/build bytes. The fresh c4 build above is a distinct successful run, not a retroactive relabeling of that older cleanup failure.
Historical real Gateway + real bundled Control UI V5 passed on the prior candidate, including normal owner shutdown and log export/cleanup. In one Gateway process/session/UI WebSocket, the shared publisher changed from synthetic account A to B. Exactly one actual UI Publish returned the typed rejection for A; the durable request table remained empty and fixture Git bytes/refs/index were unchanged. The UI displayed the reason, unlocked selection, and explicit Refresh returned B with Publish enabled. All 52 requested JS/CSS asset hashes matched that candidate build. No second Publish or model turn ran. That historical V5 run is separate from the fresh c4 result above.
The live Gateway uses synthetic GitHub HTTP responses, not real account credentials or an authenticated GitHub publication. It proves actual Gateway admission, RPC and UI recovery, not a remote GitHub write. Source/build/dependency/tool manifests, process checks and cleanup receipts are retained; sampled process telemetry is not an exhaustive whole-host or network audit.
Real Gateway evidence
Historical V3 recording from the prior candidate: stale A is rejected; explicit Refresh shows B. The fixed left-sidebar privacy crop retains all 127 frames and original timing. V3 behavior assertions passed, but its later log-export/cleanup step failed; the separately recorded historical V5 result above passed completely. This video is not labeled as V5.
stale-publisher-main-pane.webm
The following actual V5 captures show the selected account, visible rejection, and refreshed account. All captures were fully inspected; only synthetic fixture data and public UI text remain.
Historical before/after controls
Earlier actual Chromium/Control UI flows used synthetic Gateway replies, not the real Gateway. Before: Refresh returned a new publisher but Retry reused the old selection/key. After: shared and personal paths required a separate explicit Publish with a new key. Reconnect did not transparently replay publication.
Integration and review disposition
Landed via the native workflow as 44b3e1f82013. CI run 33922100704 completed with 137 successful jobs and four skipped jobs. The required
openclaw/ci-gatesucceeded at 22:16:36 UTC, including the selected iOS/Watch/screenshot, Windows, Docker, Node and browser lanes.The latest ClawSweeper review (21:53 UTC, September 4) covers
8980942c213and has no code/security findings. Its remaining integration/confidence limits were unavailable main-source/media access and still-running CI. Root and independent reviews inspected current-main admission, receipt, UI and transcript boundaries; a fresh three-way merge with main7697286a566is conflict-free with the same 20 effective paths. Fresh canonical owner tests, the actual Gateway/UI flow and exact-head CI address the automation and evidence requests. All three current synthetic captures were inspected directly. Production growth remains +130 as justified above.The Rank-up request for a refreshed, checked integration is satisfied by the resolved/pushed head, clean current three-way result and green exact-head gate. No additional rebase is performed solely for main drift, and no new bot confidence score is substituted for those observations. The fresh bot review contains no actionable defect; native preparation/merge revalidated the actual head and live rules.
The earlier
8255cae0c5bsnapshot had passing administrative workflows but no normal CI or required gate while the PR conflicted with main. That is historical status, not the CI state of the new integrated head. Production growth has been recounted and is justified above.Earlier CI run 33835702660 failed advisory audit, browser UI shard 7, iOS tests and the dependent aggregate. The integrated candidate includes the landed advisory/browser and Swift test prerequisites; local green does not prove the new hosted run. Earlier Chrome bootstrap/fixture lifetime and iOS launch diagnoses remain historical, not claims about the new head.
Provenance and release-note context
Parent-relative patch
4c0588d783c776ed111b8e3e3bf7620a1ab356b4(#133799; raw parentdbddc382eceaf74dd09d3e5dc5b81de90eace68a) introduced the first-invocation account lock and untyped shared-account rejection. Verified author: Peter Steinberger; committer: GitHub. Merger/automation-trigger identity is not inferred.Release-note context: Control UI can refresh and explicitly reselect a GitHub publisher after an account mismatch is rejected before admission, without changing the account or request of an uncertain publication.
Landing verification: GitHub reports MERGED; the native outcome is complete, the squash tree matches the exact three-way result, and fetched main contains the landed commit. No release or package publication was performed.