Repository navigation
fix: let local chats publish their task checkout - #184531
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. |
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
|
Codex review: needs maintainer review before merge. What this changesThis PR lets an authorized local conversation adopt a committed task checkout, publish it, and resume with the publication result. Example: An unbound local conversation publishes committed work from /workspace/task using github_publish with workspacePath.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds useful local-checkout publication support, and no actionable defect was found in the pinned diff. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe agent tool hands publication to the Gateway, which authorizes the requester, prepares session workspace ownership, and invokes the existing GitHub publication coordinator. flowchart TD
A[Local conversation] --> B[GitHub publish tool]
B --> C[Session handoff]
C --> D[Gateway requester authorization]
D --> E[Workspace adoption]
E --> F[Publication coordinator]
F --> G[GitHub effects]
F --> H[Conversation continuation]
Technical reviewBest possible solution: Land the existing-owner adoption and publication path once CI for the reviewed head passes. Do we have a high-confidence way to reproduce the issue? Current-main source lacks the workspacePath parameter and local adoption branch; the reported limitation is source-verifiable, although no target code was executed during this review. Is this the best way to solve the issue? Extending the existing adoption, requester, and handoff owners is a focused solution that avoids a competing workspace or publication implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against abce5b50c487. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +88, Tests +244, Docs +2, Other -1. Total +333 across 16 files. Added test files: 0. View PR surface stats
Review metrics
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 (7 earlier review cycles)
Reviewed October 26, 2026, 3:59 PM ET / 19:59 UTC (Revision 8). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
CI note for Attempt 2 reran only that failed shard on the same commit and passed. No source, assertions, or timeouts changed. The initial timeout's root cause remains unestablished; the passing replay is not a claimed fix. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Prepare a session-owned checkout from an authorized local task folder, publish through the existing requester, and resume the same conversation. Preserve the original source, saved session settings, and complete publication result. Remove redundant full-write and queued-follow-up refusals. Rebase the reviewed patch onto main without changing its production behavior. Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
What Problem This Solves
Fixes agents getting blocked when publishing an authorized task from a local checkout not yet bound to the conversation.
User Impact
The agent can publish and resume the same conversation without an administrator repair or another human prompt. Original files, history and session preferences remain intact.
Why This Change Was Made
Reuse the existing publication, workspace and handoff owners. Clear the stale inherited workspace override during binding so execution, file access and publication use the same checkout. No added model-facing prompt paragraphs, separate guard layer, configuration or persisted-data format change.
Requested by @VACInc.
Work sessions
Evidence
gateway-methodstest-type graph, the worker-server type graph, scoped lint/format, protocol checks and independent P0–P2 review passed.3e7490c478dfand omitted saved skill selections onc6f147c5ace4. Minimal fixes in the existing owners make both pass. A failed-publication regression also proves the resumed agent receives the complete recovery receipt; all seven continuation cases pass.Simplification follow-up
Removed the extra full-write gate: the existing session-publication owner now decides access, including session-scoped writers, while existing path containment and live revocation checks remain. Queued follow-ups no longer block workspace adoption; the existing handoff barrier holds them until preparation finishes. Shared preparation arguments replace duplicated payload construction.
Against main
91fa755ffd6d: +88 production lines, +243 test/support lines, +2 documentation lines; +333 total, down from the previous PR total of +390. This simplification itself removes 53 net lines after the main conflict refresh. Remaining growth supplies local-checkout publication and its regression coverage; the PR is not net negative.Validation: 55 focused tests passed across publication, workspace adoption, handoff, runtime and prefix stability (140.34 seconds including compiler preparation). Core, gateway-methods and gateway-root types, scoped lint/format and independent P0–P2 review passed. The old code failed both the session-only publication and queued-follow-up regressions. Exact-head CI and ClawSweeper follow below; earlier-head results remain historical.
Rebase verification: production patch unchanged on main
cef62a5daf5b; 42 publication, adoption, handoff and cancellation tests pass on3e3e81128064. Exact-head CI remains the landing gate.