Repository navigation
feat(worktrees): default implementation to task worktree - #153
Conversation
[CCR-20261005-001] · reviewer · openai/gpt-6-sol→? · high · schema:1Initial review — CHANGES_REQUESTEDReviewed PR #153 at [REV-001] · high · open · - · blocks:yes — Runtime does not select and retain the default task worktree
[REV-002] · medium · open · - · blocks:yes — Substring issue IDs can select another task's worktree
Security triageNo custom Verification and CI
Real implementation and resolution dispatch across worktrees, including Herdr selection, was not run here. The passing CI validates the existing suite but its new tests assert prompt and documentation strings, not workspace behavior. The review verdict is CHANGES_REQUESTED for REV-001 and REV-002. |
[CCR-20261005-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261005-001] · deep_coder · openai/gpt-6-luna→? · max · triaged:a4fc00343ecb305f7823f1befb0f0c4b6e7e0a0f · schema:1Resolution — PR #153Both valid findings were resolved from triage head [REV-001] · high · resolved · valid · blocks:yes — Runtime does not select and retain the default task worktreeDefault task mode selects a task-specific linked worktree, reuses a matching worktree or a PR branch linked to the work item, and keeps the selected checkout for later stages and diff collection. [REV-002] · medium · resolved · valid · blocks:yes — Substring issue IDs can select another task's worktreeWork-item branch matching now requires the ID to be delimited, so Verification
|
[CCR-20261005-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261005-001] · deep_coder · openai/gpt-6-luna→? · max · triaged:a4fc00343ecb305f7823f1befb0f0c4b6e7e0a0f · schema:1[CCR-20261005-002] · reviewer · openai/gpt-6-sol→? · high · schema:1Rereview — CHANGES_REQUESTEDReviewed head [REV-001] · high · resolved · valid · blocks:yes — Runtime does not select and retain the default task worktree
[REV-002] · medium · resolved · valid · blocks:yes — Substring issue IDs can select another task's worktree
[REV-003] · medium · open · - · blocks:yes — Reused worktree supplies a nested base directory to the implementer
Security triage activated an audit because this change selects writable checkouts and runs Git/Herdr commands. The audit found no confirmed injection, path escape, secret exposure, or authentication issue; Verification: GitHub CI on this head: both |
[CCR-20261005-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261005-001] · deep_coder · openai/gpt-6-luna→? · max · triaged:a4fc00343ecb305f7823f1befb0f0c4b6e7e0a0f · schema:1[CCR-20261005-002] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261005-002] · deep_coder · openai/gpt-6-luna→? · max · triaged:940adaec846c3e5c5ce8f1c42fafd9457e18ed7c · schema:1Triage — PR #153All findings were reconciled against head [REV-001] · high · resolved · valid · blocks:yes — Runtime does not select and retain the default task worktreeThe latest rereview confirms the runtime selects a task worktree before dispatch and carries its selected checkout through later stages. The existing valid disposition is preserved. [REV-002] · medium · resolved · valid · blocks:yes — Substring issue IDs can select another task's worktreeThe branch matcher requires a delimited work-item identifier, and pull-request branch reuse checks the linked work item. The existing valid disposition is preserved. [REV-003] · medium · open · valid · blocks:yes — Reused worktree supplies a nested base directory to the implementerConfirmed against the triage head: when the matching linked worktree is the current checkout, |
[CCR-20261005-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261005-001] · deep_coder · openai/gpt-6-luna→? · max · triaged:a4fc00343ecb305f7823f1befb0f0c4b6e7e0a0f · schema:1[CCR-20261005-002] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261005-002] · deep_coder · openai/gpt-6-luna→? · max · triaged:940adaec846c3e5c5ce8f1c42fafd9457e18ed7c · schema:1Resolution summary — PR #153Resolved all three valid findings recovered from review. The working branch remains [REV-001] · high · resolved · valid · blocks:yes — Runtime does not select and retain the default task worktreeResolved in prior commit [REV-002] · medium · resolved · valid · blocks:yes — Substring issue IDs can select another task's worktreeResolved in prior commit [REV-003] · medium · resolved · valid · blocks:yes — Reused worktree supplies a nested base directory to the implementer
Verification
Verification reservation: the host inherited The change is limited to worktree-base selection and its regression test. The post-fix security review found no confirmed vulnerability. |
[CCR-20261005-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261005-001] · deep_coder · openai/gpt-6-luna→? · max · triaged:a4fc00343ecb305f7823f1befb0f0c4b6e7e0a0f · schema:1[CCR-20261005-002] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261005-002] · deep_coder · openai/gpt-6-luna→? · max · triaged:940adaec846c3e5c5ce8f1c42fafd9457e18ed7c · schema:1[CCR-20261005-003] · reviewer · openai/gpt-6-sol→? · high · schema:1Rereview — APPROVEDReviewed PR #153 at [REV-001] · high · resolved · valid · blocks:yes — Runtime does not select and retain the default task worktreeCorrected and verified by execution. The earlier rereview exercised the runtime tests; at this head, a read-only [REV-002] · medium · resolved · valid · blocks:yes — Substring issue IDs can select another task's worktreeCorrected and verified by execution. On the current head, [REV-003] · medium · resolved · valid · blocks:yes — Reused worktree supplies a nested base directory to the implementerCorrected and verified by execution. From the existing linked worktree, Security triageNo custom Verification and CI
A live implementation/resolution dispatch through Herdr was not run in this rereview. The direct worktree/prompt reproduction and current-head CI provide the available execution evidence. No finding remains open or blocks approval. Verdict: APPROVED for the current head. |
Closes #151
Summary
issue-1510.--workspace currentas the explicit per-run opt-out. Local-only runs require that opt-out before selection, avoiding worktree creation before a blocked stop.herdr worktree createoropenwith the current repository as--cwd, the configured location as--path, and--no-focus; block on failure without silently falling back to Git.Diagnosis
Issue #151 is a feature request: implementation workflows could use the invoking checkout even though #143 and merged PR #149 established
code_cycle.worktree_dir. Reproduction does not apply. The invariant is that all code-mutating stages for one work item use the same isolated linked worktree and PR branch, and the invoking checkout is changed only whenworkspace=currentis explicitly selected. A bug cause hypothesis does not apply because the issue did not propose a bug mechanism. Widened related-work search found #143 (closed; implemented by PR #149) and adjacent open issue #141; the recent workspace/progress work in #140 / PR #152 was checked and is distinct. No competing open PR was found. Reviews caught and verified three implementation defects during the cycle: the runtime did not enforce task-worktree selection, substring IDs could reuse another task's branch, and reusing a linked worktree derived a nested worktree base. The final fix enforces selection at the runtime boundary, verifies same-item reuse, and resolves the base from the main repository root.Work units
scripts/run_cycle.py;docs/configuration.md;docs/instrumentation.md;docs/workflows.md;docs/skills.md;skills/cc-implement-issue/SKILL.md;skills/cc-orchestrator/SKILL.md;skills/cc-orca-orchestrator/SKILL.md;tests/test_run_cycle.py;tests/test_installed_cycle.py;tests/test_issue_review.py;tests/test_cycle_progress.py;tests/test_validate_package.pyVerification
python3 scripts/validate-package.py— passed locally.git diff --check 7ca83f6b792eb80c5092fce627f7fe8f87a79c1b ea708ba37b97bac9346f4821e29b882ac589e0a9— passed.WorkspaceSelectionTestsrun could not reach assertions because the sandbox has no usable temporary directory. This is not counted as a local test pass.Herdr behavior
When running inside Herdr, create or open task worktrees through Herdr. This task worktree was opened with
herdr worktree open --cwd /home/datacas/www/code-cycle-toolkit --path /home/datacas/www/code-cycle-toolkit/.worktree/issue-151-worktree-default --no-focus.Checks of pushed head
Head SHA:
ea708ba37b97bac9346f4821e29b882ac589e0a9PR remains open for manual merge.