Skip to content

docs(repo): use one worker branch name across the workflow - #566

Merged
dezren39 merged 1 commit into
mainfrom
fix/wf-branch-names
Oct 22, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/wf-branch-names

Conversation

@dezren39

@dezren39 dezren39 commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Worker branch names disagreed in three places (vocabulary.md wf/<slug>-c002-s2, worker-brief research/<slug>/s1-c003, stage skills wf/<package-slug>/C001-s2). This makes them all research/<slug>/s<stage>-<unit>, which is what the router's orphan-branch sweep searches. Also documents the optional agent_work_dir profile 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.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

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).
@dezren39
dezren39 requested a review from a team as a code owner October 22, 2026 06:10
@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f136c2fe-7b8d-4eea-86eb-4929ad5dae91
📥 Commits

Reviewing files that changed from the base of the PR and between 8762408 and 0f8a8d4.

📒 Files selected for processing: 5
  • .agents/skills/concept-research/SKILL.md
  • .agents/skills/issue-handoff/SKILL.md
  • .agents/skills/notes-reconcile/SKILL.md
  • planning/workflow/profile.md
  • planning/workflow/vocabulary.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T06:16:16.724822Z 0f8a8d4 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant