Skip to content

docs(skills): set scope, threat model and existing tools when writing a brief - #236

Merged
furedea merged 4 commits into
mainfrom
docs/brief-scope-and-tools
Nov 19, 2026
Merged

furedea merged 4 commits into
mainfrom
docs/brief-scope-and-tools

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

概要

herdr-delegation の「Prepare a Self-Contained Brief」の既存の項目に,2 点を加えた.あわせて Scope and Dependencies に 1 文を加えた.新しい節や仕組みは作っていない.

  • Scope and focus: 範囲外の一覧と脅威モデル(入力の出所と,判断を誤ったときの損失)を brief を書く時点で決める.lane は範囲外の P2・P3 の指摘にこの一覧を引いて答え,P0・P1 は常に直す(development-cycle の delivery.md と同じ).
  • Input: 実装では方法を決める前に既存の道具(標準ライブラリ,既に入っている依存,de facto の外部ツール)を調べ,選んだ理由(または合うものが無い理由)を brief に書く.
  • Scope and Dependencies: 承認済みの plan の独立した lane は,それぞれ別の Herdr worktree で順番待ちせず並行して走らせる.同じ行を変える lane だけは例外で,順番に走らせる.並行にできる機会があるだけでは委任を許可しない,という既存の規則は残している.

#209 では範囲と脅威モデルが無く,指摘が範囲外まで広がった.#212 では既存の道具を調べずに自作して作り直しになった.

重複の確認

development-cycle には brief を書く手順の重複が無い.delivery.md は lane が範囲外の指摘に答える側の規則で,brief に書く側の規則は herdr-delegation の 1 か所にまとまっている.branches.md は herdr-delegation へのリンクのみ.

確認

  • nix flake check --no-build: 通過

範囲外の指摘

  • 並行 lane の文を 1 つの PR に含めることへの指摘: ユーザーがこの PR に加えるよう指示した変更で,本文の概要に記載した.lane が同じ行を変えるかは plan の lane 分割(issue_plan.md)で決まり,承認済みの plan の lane だけが対象なので,「委任を推論しない」という既存の文とは矛盾しない.
  • 同じ行を変える lane を 1 つにまとめる,または stacked-branch 手順を要求する指摘: ユーザーの指示は「順番に走らせる」で,lane 分割の見直しと stacked-branch 手順は本変更の範囲外(P2).

Closes #233
Refs #169

🤖 Generated with Claude Code

@furedea

furedea commented Nov 18, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T01:21:15.998649Z 6a27556 Manual request
ℹ️ 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.

Comment thread agents/skills/herdr-delegation/SKILL.md Resolved
@github-actions

Copy link
Copy Markdown

Review summary

One finding, P1: the PR description doesn't match the diff.

  • The diff only touches agents/skills/herdr-delegation/SKILL.md. It adds a requirement to check existing tools before an implementation brief, and it reworks the scope and threat-model wording.
  • The body describes cleanup_worktrees.py changes: new REGENERABLE_NAMES, nested .claude/.cc-writes handling, and tests. None of those are in the PR, and the base's REGENERABLE_NAMES still lacks the new names.
  • Closes #232 would auto-close an issue whose fix isn't included.
  • The "247 passed" claim doesn't exercise anything changed here.

Fix by either rewriting the body for this docs change and dropping the closing keyword, or adding the missing code and tests.

The docs wording is otherwise fine. I found no correctness or security issues, and no tests are needed for a docs-only change.

@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: f9c87786c3

ℹ️ 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".

Comment thread agents/skills/herdr-delegation/SKILL.md Resolved
@furedea

furedea commented Nov 18, 2026

Copy link
Copy Markdown
Owner

@codex review

Comment thread agents/skills/herdr-delegation/SKILL.md Resolved
@github-actions

Copy link
Copy Markdown

Review summary

The change to agents/skills/herdr-delegation/SKILL.md is consistent. It adds the existing-tools check and the scope, out-of-scope list and threat-model wording, and keeps the P0/P1 fix rule. I found no correctness or security problems. This is a docs-only change, so no tests apply.

P2: The PR body describes a different change. It covers cleanup_worktrees.py, REGENERABLE_NAMES and test results, none of which are in this diff, and it says Closes #232. Merging would close #232 without the fix. Please correct the body, or add the missing code and tests.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: daf363bc74

ℹ️ 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".

@furedea-agent
furedea-agent Bot force-pushed the docs/brief-scope-and-tools branch from daf363b to 2297a80 Compare November 19, 2026 01:11
@furedea

furedea commented Nov 19, 2026

Copy link
Copy Markdown
Owner

@codex review

Comment thread agents/skills/herdr-delegation/SKILL.md Resolved
@github-actions

Copy link
Copy Markdown

Review summary

One finding, P2, posted inline. There were no P0 or P1 findings.

  • P2: The new parallel-lanes sentence at SKILL.md:19-20 isn't in the PR description or in docs(skills): set scope, threat model and existing tools when writing a brief #233. It reads as a mandate, and it sits next to the "do not infer permission … to work in parallel" sentence. The sequencing exception also has no way to tell in advance which lanes overlap. Suggest moving it to its own PR or documenting it here.
  • The two intended edits, "Input: check existing tools" and "Scope and focus: out-of-scope list and threat model", read consistently with delivery.md. The P0/P1-always-fixed rule is stated clearly.
  • This is a docs-only change, so no tests apply. I did not run nix flake check; the description says it passes.

🤖 Generated with Claude Code

@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: 2297a8079d

ℹ️ 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".

Comment thread agents/skills/herdr-delegation/SKILL.md Resolved
Comment thread agents/skills/herdr-delegation/SKILL.md Resolved
@furedea

furedea commented Nov 19, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

Copy link
Copy Markdown

Review summary: no findings.

This is a docs-only change to agents/skills/herdr-delegation/SKILL.md, so there is no code or test surface to check. I read the three additions against the rest of the skill and found no contradictions:

  • The parallel-lanes sentence keeps the existing rule against inferring delegation from an opportunity to work in parallel.
  • The sentence on lanes that change the same lines is consistent with the Implementation Assignments and Run and Reconcile sections.
  • The scope, threat-model and existing-tools additions match the guidance in AGENTS.md.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 6a2755661f

ℹ️ 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".

@furedea
furedea merged commit 3913659 into main Nov 19, 2026
29 checks passed
@furedea
furedea deleted the docs/brief-scope-and-tools branch November 19, 2026 01:57
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.

docs(skills): set scope, threat model and existing tools when writing a brief

1 participant