Repository navigation
fix(auto-ticket): sync the branch with its base before config, resolve conflicts at the CI wait, name the parking step (3.30.0) - #124
Merged
Conversation
… config falls back to the base's copy
…ct at the CI wait, and name the parking step in the run record (3.30.0)
… base branch's copy; one base-branch resolver
…over merge and stops on a foreign one, --push pushes an unpushed merge, binary conflicts stay unresolved until changed
…ver a merge in progress, push a Step 0 merge, validate after every base merge, base-only merge keys
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes two
/ccmagic:auto-ticketfailures seen on 2026-11-21 when Reeve dispatched cclens tickets to Cyrus, which reuses a ticket's existing worktree..claude/ccmagic.local.mdwithmerge_owner: reeve, so the run usedmerge_owner: self, triedgh pr merge, and parked on the hook's refusal although the PR was clean.stepssaiddone, so Reeve could not tell it was a merge conflict.Changes
bin/ccm-base-sync(new):syncmergesorigin/{base}into the branch when its history lacks it (merge only, never rebase or force push; fast-forward only on the base branch itself) and aborts a conflicting merge so the tree is unchanged.beginleaves a conflicting merge in progress for a fix pass.concludecommits it after checking MERGE_HEAD matches, no conflict marker lines remain, and no untracked file was added. Alsopush(never forced) andabort.bin/ccm-lib.sh: with no project config in the checkout, config is read from the base ref's copy (local refs only). This coversccm-context, the PreToolUse merge guard, and every script that reads config.bin/ccm-context:--config-ref REFand aproject_configoutput key. The base branch is now resolved before config.skills/auto-ticket/SKILL.md: Step 0 item 0 runs the sync beforeccm-context. A new Step 0b handles a conflict at the start of the run. Step 4c'sconflictingnow merges the base once (with one conflict fix pass, a validate, and a push when the merge conflicts), waits for CI again, and the moved head gets the 4f re-review. A park the orchestrator decides adds a step entry to the record.skills/auto-ticket/base-sync.md(new): the conflict procedures and the run record entries.skills/auto-ticket/autonomous-contract.md:fix_source: conflict, a §4 table of step names for orchestrator-decided parks (ci-waitfor the CI wait), updated parked-record examples, and a new invariant.skills/work-ticket/base-conflict.md(new), plus pointers inskills/work-ticket/SKILL.mdandagents/auto-work.md: the conflict fix pass rules.bin/ccm-finish-guard: comment only.base-syncentries match no rule. A conflict fix pass is awork-ticketentry, so a validate is still required after it.tests/run.shcoverccm-base-sync, the config fallback, the guard reading the base'smerge_owner, finish-guard entries, and the skill wiring.tests/every-ticket-since-baseline.diffis regenerated.docs/cyrus-deployment.mdgrantsBash(ccm-base-sync *). README and CHANGELOG are updated, and the version is now 3.30.0.Verification
bash tests/run.sh: 531 passed, 0 failed locally. The openspec-CLI tests were skipped because the CLI is not installed locally (CI installs it).shellcheck -xpasses on every file CI checks.For review
origin/{base}, and then one conflict fix pass runs before the work step (Step 0b). If that pass fails, the merge is aborted and the run parks.