Skip to content

docs(dev-lead): concurrency ownership, @main pin, and the permission contract - #404

Merged
don-petry merged 11 commits into
mainfrom
docs/dev-lead-stub-standard
Jun 8, 2026
Merged

don-petry merged 11 commits into
mainfrom
docs/dev-lead-stub-standard

Conversation

@don-petry

Copy link
Copy Markdown
Contributor

Codifies in ci-standards.md the design that #402 settled, and corrects the standard where it described dev-lead as a public .github @v1 reusable (it actually lives in .github-private and tracks @main).

Changes

  • New subsection "Concurrency, pinning, and the permission contract" under Dev-Lead Agent:
    • Stubs carry no concurrency: block — it's centralized per-lane in the reusable (why: per-stub concurrency drifted and starved issue pickups; safe to parallelize since feat(feature-ideation): auto-enhance new Ideas Discussions on creation #448 isolates checkouts).
    • Stubs pin .github-private/...dev-lead-reusable.yml@main for immediate propagation of permission/security fixes.
    • Stubs must grant the full permission set the reusable requests (incl. statuses: read) or consumers startup_failure; the caller-permissions CI guard enforces the template-first ordering.
    • dev-lead:hands-off label opt-out.
  • Pinning policy: add a dev-lead carve-out (private repo, @main) and fix the example that showed dev-lead pinned to .github @v1.

Pairs with the compliance-check PR (separate) that enforces these stub invariants. Part of the #402 follow-ups.

🤖 Generated with Claude Code

…sion contract

Codifies the design that #402 settled, and corrects the
standard where it wrongly described dev-lead as a public .github @v1 reusable:

- New "Concurrency, pinning, and the permission contract" subsection: stubs carry
  no concurrency block (centralized per-lane in the reusable); stubs pin
  .github-private/...dev-lead-reusable.yml@main for immediate fix propagation;
  stubs must grant the full permission set the reusable requests (incl.
  statuses:read) or consumers startup_failure; dev-lead:hands-off label opt-out.
- Pinning policy: add a dev-lead carve-out (private repo, @main) and fix the
  example that showed dev-lead pinned to .github @v1 — it lives in .github-private.

Refs #402

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 7, 2026 03:06
@don-petry
don-petry requested a review from a team as a code owner June 7, 2026 03:06
@coderabbitai

coderabbitai Bot commented Jun 7, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@don-petry, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 14 minutes and 22 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: da3eaa41-4e16-4835-871a-5ad47bb0c5e4

📥 Commits

Reviewing files that changed from the base of the PR and between 916302f and 46099ee.

📒 Files selected for processing (1)
  • standards/ci-standards.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/dev-lead-stub-standard

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 and usage tips.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the CI standards documentation to detail the concurrency, pinning, and permission contracts for the dev-lead agent, including its exception to track the @main branch in the private repository. Feedback points out a grammatical typo in the permissions section and notes that the template workflow file standards/workflows/dev-lead.yml needs to be updated to include the statuses: read permission to prevent startup failures for adopting repositories.

Comment thread standards/ci-standards.md Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the org CI standards documentation to codify the dev-lead agent’s ownership boundaries (concurrency, pinning, and permissions) and to correct internal pinning guidance now that dev-lead’s reusable workflow lives in petry-projects/.github-private and tracks @main.

Changes:

  • Document a dev-lead exception to the normal “pin reusables to tags” guidance, explicitly noting the private repo + @main tracking model.
  • Expand the internal reusable-workflow pinning exception to include petry-projects/.github-private, and correct the dev-lead uses: examples accordingly.
  • Add a new “Concurrency, pinning, and the permission contract” subsection under Dev-Lead Agent describing centralized concurrency lanes and required caller permissions (including statuses: read) plus the dev-lead:hands-off opt-out.

Comment thread standards/ci-standards.md Outdated
Comment thread standards/ci-standards.md Outdated
Comment thread standards/ci-standards.md Outdated

@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: 33099f27d5

ℹ️ 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 standards/ci-standards.md
Comment thread standards/ci-standards.md
Comment thread standards/ci-standards.md Outdated
Addresses bot review feedback on #404:
- "caller-permission" -> drop the ambiguous compound ("permission and security
  fixes") so it doesn't read as an inconsistent spelling of the caller-permissions
  guard (copilot, x2).
- "full set the reusable requests" -> "full set that the reusable requests" (gemini).
- `.github-private#448` in backticks -> petry-projects/.github-private#448 so the
  cross-repo reference autolinks, matching the other references (copilot).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@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

3. Set `GH_PAT_WORKFLOWS` — a PAT with read access to `petry-projects/.github-private` — as an org or repo secret (required for cross-repo script access).

P2 Badge Align the template with the required PAT secret

This line makes GH_PAT_WORKFLOWS required for access to the private .github-private workflow resources, but the file adopters are told to copy verbatim (standards/workflows/dev-lead.yml) still says GH_PAT_WORKFLOWS is optional/only needed if Claude pushes workflow files. A new repo that trusts the copied header can omit the PAT and then run dev-lead without the secret this standard now says is required for cross-repo script access. Please update the template header and any shims alongside the standard.

ℹ️ 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 standards/ci-standards.md

To exclude a specific PR or issue from the agent — e.g. a PR that edits the
dev-lead workflow itself, so the agent doesn't pile commits onto its own infra
change — add the **`dev-lead:hands-off`** label; the classifier then skips every

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 Provision the hands-off label before documenting it

This new escape-hatch relies on a dev-lead:hands-off label, but the standard label set and the label automation I checked (standards/github-settings.md and scripts/apply-repo-settings.sh) only create the existing standard labels and do not include this one. In repos managed by these settings, maintainers following this instruction will not be able to apply the label until it is manually created, so the classifier cannot skip the PR/issue. Please add the label to the standard/automation, or document an explicit creation step, with this guidance.

Useful? React with 👍 / 👎.

@donpetry-bot donpetry-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated review — APPROVED ✓

Risk: LOW
Reviewed commit: cc0ac22112d2ead2ebe76fe28c99f693bf95c358
Review mode: triage-approved (single reviewer)

Summary

Docs-only update to standards/ci-standards.md (+57 / -5) that:

  1. Adds an Exception — dev-lead note to the reusable-pinning policy, plus a new Concurrency, pinning, and the permission contract subsection under Dev-Lead Agent.
  2. Updates the internal-reusable carve-out to cover petry-projects/.github-private and corrects the example that pinned dev-lead-reusable.yml@v1 under public .github (it actually lives in .github-private and tracks @main).
  3. Documents the dev-lead:hands-off opt-out label.

This is exactly the kind of low-risk standards write-up that triage flagged for fast-track confirmation.

Linked issue analysis

No closes/fixes linkage; the PR body references #402 as the design issue being codified, with #403 (template + shim back-fill) and #405 (compliance-audit guard) as paired follow-ups. The scope of this PR matches its stated intent: documentation only.

Findings

No blocking issues introduced by this PR. Coverage of prior bot feedback:

  • Gemini / Copilot / Codex (round 1, on 33099f2): terminology nit (caller-permission vs caller-permissions), grammar nit ("full set the reusable requests"), and autolink-formatting nit on .github-private#448. All three were addressed in the follow-up commit cc0ac22.
  • Codex P2 — template concurrency: block (line 1198): the new rule bans a concurrency: block in stubs, but standards/workflows/dev-lead.yml still ships one. Author response on-thread confirms removal is in #403; this PR documents the post-#403 target state. Acceptable — the standard and template will land in a coordinated series.
  • Codex P1 — template missing statuses: read (line 1220): same situation. statuses: read is added to the template and back-filled to all shims in #403. Caller-permissions CI guard enforces template-first ordering, so the temporary doc/template skew during this series is the intended sequence.
  • Codex P2 — audit guard still expects old @v1 path: addressed in #405 per the author response.
  • Codex P2 — dev-lead:hands-off label not in org label automation (line 1232): unresolved on-thread, but only a documentation/automation tracking gap — the standard correctly describes the label semantics; maintainers can create it manually until label automation is updated. Worth a follow-up issue but not blocking for a docs PR.
  • Codex top-level — GH_PAT_WORKFLOWS listed as required at line 1239 but the template header still calls it optional: the line cited (Adopting the Dev-Lead Agent step 3) is not modified by this PR — it pre-dates this change. Not a regression introduced here; worth tracking separately but out of scope for this PR.

No security, secrets, auth, migration, or workflow-permission code changes. No supply-chain edits. Docs-only diff.

CI status

All required checks green on cc0ac22:

  • AgentShield ✓
  • CI / Lint ✓
  • CI / ShellCheck ✓
  • CI / Agent Security Scan ✓
  • CI / Secret scan (gitleaks) ✓
  • CodeQL (actions) ✓
  • SonarCloud / SonarCloud Analysis ✓ (Quality Gate passed, 0 new issues)
  • Dependency audit ecosystems detected, all language-specific audits SKIPPED (no manifests changed) ✓
  • Dependabot auto-merge: SKIPPED (expected — not a dependabot PR)
  • CodeRabbit: APPROVED on this SHA

mergeStateStatus is BLOCKED solely because org-leads review is required.


Reviewed automatically by the PR-review agent (single-reviewer mode: opus 4.7). Reply if you need a human review.

@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: 1b7fe4240a

ℹ️ 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 standards/ci-standards.md
Comment on lines +43 to +47
> **Exception — `dev-lead`.** The dev-lead reusable lives in the private
> `petry-projects/.github-private` repo (it checks out private prompts/scripts)
> and is pinned `@main`, not a tag — so permission and security fixes
> propagate immediately instead of waiting for a tag bump or the monthly
> standards-sync. See [Dev-Lead Agent](#dev-lead-agent).

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 Align the Tier 1 row with this dev-lead carve-out

This new exception says dev-lead lives in .github-private and tracks @main, but the Tier 1 table just above still includes dev-lead.yml in a generic rule that says stubs delegate to petry-projects/.github/...@<version> and that the matching reusable lives in this repo. Readers and compliance agents following the table before this carve-out can still generate or validate the old public @v1 shape, so please update the Tier 1 row to either exclude dev-lead or explicitly mention the private @main exception there as well.

Useful? React with 👍 / 👎.

@don-petry don-petry added the dev-lead:hands-off Exclude from dev-lead agent automation label Jun 8, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

@don-petry
don-petry merged commit 26f6c87 into main Jun 8, 2026
17 of 18 checks passed
@don-petry
don-petry deleted the docs/dev-lead-stub-standard branch June 8, 2026 21:43
don-petry added a commit that referenced this pull request Jun 11, 2026
…contract (#404)

* docs(dev-lead): document concurrency ownership, @main pin, and permission contract

Codifies the design that #402 settled, and corrects the
standard where it wrongly described dev-lead as a public .github @v1 reusable:

- New "Concurrency, pinning, and the permission contract" subsection: stubs carry
  no concurrency block (centralized per-lane in the reusable); stubs pin
  .github-private/...dev-lead-reusable.yml@main for immediate fix propagation;
  stubs must grant the full permission set the reusable requests (incl.
  statuses:read) or consumers startup_failure; dev-lead:hands-off label opt-out.
- Pinning policy: add a dev-lead carve-out (private repo, @main) and fix the
  example that showed dev-lead pinned to .github @v1 — it lives in .github-private.

Refs #402

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs(dev-lead): fix review nits — terminology, grammar, autolink

Addresses bot review feedback on #404:
- "caller-permission" -> drop the ambiguous compound ("permission and security
  fixes") so it doesn't read as an inconsistent spelling of the caller-permissions
  guard (copilot, x2).
- "full set the reusable requests" -> "full set that the reusable requests" (gemini).
- `.github-private#448` in backticks -> petry-projects/.github-private#448 so the
  cross-repo reference autolinks, matching the other references (copilot).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Code Bot <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev-lead:hands-off Exclude from dev-lead agent automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants