Repository navigation
docs(repo): use one worker branch name across the workflow - #566
Conversation
Worker branches are research/<slug>/s<stage>-<unit> everywhere, the form the router's orphan sweep searches. concept-research, issue-handoff and notes-reconcile used wf/<package-slug>/C001-sN and vocabulary.md used wf/<slug>-c002-s2. profile.md now lists the optional agent_work_dir key that collaboration.md refers to (the table was realigned by prettier).
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 50 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0f8a8d44d8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - Note: the file stem `C001__to__C002__<uuid>`, where `<uuid>` is 32 lowercase hex digits. Allocated by `note`. | ||
| - Decision: `D001`, `D002`, ... Never reused, even after a reversal. | ||
| - Branch: `wf/<slug>-c002-s2` for concept C002 at stage S2 of package `<slug>`, and `wf/<slug>-c002.3-s6` for a facet. A follow-up after a merge adds `-2`, `-3`. | ||
| - Branch: `research/<slug>/s2-c002` for concept C002 at stage S2 of package `<slug>`, and `research/<slug>/s6-c002.3` for a facet. The router finds every worker branch of a package under `refs/heads/research/<slug>/`. A follow-up after a merge adds `-2`, `-3`. |
There was a problem hiding this comment.
Name the remote-tracking namespace used by the router
When a worker branch was pushed from another clone or its local branch has been cleaned up, it exists only under refs/remotes/origin/research/<slug>/, so a router following this statement would miss it. The repository's actual orphan sweep fetches the remote and iterates that remote-tracking namespace in .agents/skills/research-workflow/references/merge-and-restart.md lines 79–83; document the same namespace here rather than refs/heads/....
Useful? React with 👍 / 👎.
| ## Steps | ||
|
|
||
| 1. **Claim and boot.** Follow the worker boot in collaboration.md: git env, fresh worktree from `origin/main`, your own branch (the brief's name, else `wf/<package-slug>/C001-s2`), push it empty. Take the concept lease with `lease acquire` and renew it before it expires. Append a `start` line to your live log. | ||
| 1. **Claim and boot.** Follow the worker boot in collaboration.md: git env, fresh worktree from `origin/main`, your own branch (the brief's name, else `research/<slug>/s2-c001`), push it empty. Take the concept lease with `lease acquire` and renew it before it expires. Append a `start` line to your live log. |
There was a problem hiding this comment.
Distinguish the package slug in fallback branch names
When this fallback is used without a router brief, <slug> is ambiguous because this skill also uses that placeholder for the concept filename, while the router's branch prefix requires the package/request slug. Substituting the concept slug creates research/<concept-slug>/..., outside the package's orphan sweep and branch grouping; keep the explicit <package-slug> placeholder in the new layout or define which slug is required. The same ambiguity was introduced in the changed defaults for notes-reconcile and issue-handoff.
Useful? React with 👍 / 👎.
| | `integration_prefix` | String | Prefix used for multi-stage integration branches (`integration/`). | | ||
| | `worktree_root` | String | Directory where parallel git worktrees are instantiated. | | ||
| | `git_env` | String | Shell command required to initialize git environment before operations. | | ||
| | `agent_work_dir` | String | Optional. Live coordination directory (locks, heartbeats) when `$(git rev-parse --git-common-dir)/agent-work` is not writable. | |
There was a problem hiding this comment.
Wire the documented coordination-directory override
When the git common directory is not writable—the exact situation for which this key is prescribed—setting agent_work_dir has no effect: request-intake line 28, research-workflow line 16, research-prepare line 29, and the restart procedure all still construct paths directly under $(git rev-parse --git-common-dir)/agent-work. Their mkdir operations therefore continue to fail, preventing coordination from starting; either make every producer read this profile key or document the required manual path substitution instead of presenting it as a supported override.
Useful? React with 👍 / 👎.
Worker branch names disagreed in three places (vocabulary.md
wf/<slug>-c002-s2, worker-briefresearch/<slug>/s1-c003, stage skillswf/<package-slug>/C001-s2). This makes them allresearch/<slug>/s<stage>-<unit>, which is what the router's orphan-branch sweep searches. Also documents the optionalagent_work_dirprofile key that collaboration.md mentions.Evidence:
python3 -I scripts/research_workflow.py check --repo-root .reports ok; prettier formatted the touched files. Not covered: design-orchestrate, feature-plan and implementation-orchestrate are being rewritten in a separate PR and will follow the same name.Need help on this PR? Tag
@codesmith-botwith what you need.