Repository navigation
Description
Problem and verified cause
scripts/execution_plan.py grants resolve comment/push publication; cc-resolve-comments requires commit and push for code-changing RESOLVED. run_cycle.validate_start rejects local-only resolve. The publication helper retries uploads, but stage execution cannot intentionally finish local preparation while deferring publication. A flag alone would leave result, comment and verification contracts inconsistent.
Scope
Separate local resolution/preparation, verification and independently retryable publication using existing journal and plan storage. Keep normal authorized automatic cycles compatible by chaining those operations. Deferred mode performs no remote writes, including triage/progress comments. Local completion must be distinguishable from remotely applied RESOLVED and merge readiness.
Acceptance criteria
- Resolve and required local verification can finish with zero pushes or remote comments; inspect the candidate before publication.
- Record exact candidate SHA/tree, frozen check identity, command, environment and plan digest. Changed content/SHA invalidates automatic evidence reuse. WIP or provenance never implies a pass.
- Preserve existing security/review obligations. Distinguish local pre-publication checks from provider CI, which necessarily runs after publication. Maintain strict/parallel policies and manual merge requirements.
- Record publication authorization for exact repository, branch and operation; reuse existing valid consent without redundant prompts. A checkpoint cannot widen authorization.
- Retry upload without rerunning resolution or recreating commits. Cover interruption after verification, before push, during push and network failure after remote acceptance.
- Reconcile branch and PR head before retrying an uncertain result; confirmed publication produces no duplicate success comments.
- Detect remote updates/divergence; preserve other actors' work, use normal fast-forward publication and explicit refspecs. No automatic force-push or recovery-ref publication. Preflight alone does not eliminate races: test server rejection and post-write reconciliation.
- Missing/corrupt state preserves work and names the unresolved condition. Repeated resumes are idempotent.
Dependencies and compatibility decisions
Depends on durable recovery for full interruption guarantees; link the companion recovery issue. Reuse #284 transport/attributed unpublished commits and #491 frozen verification rather than duplicating them. Coordinate #401, #426, #450 and #457. Preserve #284's in-sandbox transport decision; do not silently move upload to the host.
Explicit contract changes: local result semantics, resolve's pre-edit remote triage, and pending publication versus RESOLVED. CLI naming and opt-in configuration remain design decisions. Excludes consolidation and automatic merge.
Update docs/review-cycle.md, docs/role-workspace-policy.md, docs/execution-plan.md, docs/workflows.md and CLI/configuration ownership pages. P1, M1, urgent: executing recovery currently couples completion to publication.
Implementation dependency: #503.
Activity
datacas commentedon Dec 2, 2026
Remaining scope after #567
PR #567 (merged, aec305f) implemented the local preparation half of this issue:
--local-only --from resolvereportsLOCAL_PREPARED, records the candidate SHA/tree, frozen checks, environment and plan digest, and blocks on mismatched or missing state. AC-1, AC-2, AC-3 are met and do not need new work.The next cycle on this issue covers only what is still open:
LOCAL_PREPAREDcandidate is enforced by the runtime, not only by a prompt instruction: no new resolution dispatch, no recreated commit. Tests for interruption after verification, before push, during push, and a network failure after the remote accepted the push.LOCAL_PREPARED→ publish path: remote divergence, server rejection and post-write reconciliation tested on that path (the generic publication code already covers them).Reuse #284 transport, #491 frozen verification and #503 checkpoints; do not duplicate #567.