Skip to content

fix(linear): rename the agent:* label family to ai:* in AGENTS.md - #18

Merged
Oba-One merged 1 commit into
mainfrom
claude/linear-label-ai-rename-clean
Jul 28, 2026
Merged

fix(linear): rename the agent:* label family to ai:* in AGENTS.md#18
Oba-One merged 1 commit into
mainfrom
claude/linear-label-ai-rename-clean

Conversation

@Oba-One

@Oba-One Oba-One commented Jul 27, 2026

Copy link
Copy Markdown
Member

Closes PRD-756.

Every routine spec and agent-facing doc told writers to apply agent:routine / agent:codex / agent:claude. No agent label group exists in Linear. The live group is ai, with exactly those three children. Because save_issue rejects the entire label array when any one entry fails to resolve, an agent following the docs literally got a hard write failure and filed nothing. That is how health-watch hit this while filing PRD-755.

Verified against live Linear before changing anything: the ai group holds routine (90260e40…), codex (50724377…), claude (33e73a3a…), and there is no agent group.

Two traps this rename had to avoid

  • package:agent is a real, unrelated label (the agent runtime package) and is untouched. This was not a find-and-replace of the word "agent"; the substitutions were scoped to the four label tokens.
  • agent:copilot appeared in the operating model as an example and has no ai: equivalent at all. The live group is only routine/codex/claude, so it was dropped rather than translated.

The second finding, also from PRD-756

The group:child notation these docs use throughout is display shorthand, not accepted API input. save_issue resolves labels by bare child name or ID, so ["protocol:green-goods", "activity:qa"] fails where ["green-goods", "qa"] succeeds. PRD-756's own label array reads [routine, qa, docs, green-goods], which is the proof. This is now stated at the canonical definition and at both routine-facing indexes, since that is where writers actually look.

One further correction found while reading

The guild routines README said to "optionally add ai:claude or ai:codex" on top of ai:routine. Linear enforces one child per grouped family, so that write would be rejected for exactly the same reason as the original bug. It now says they replace rather than accompany.

Not in this PR

green-goods/.plans/active/commitment-pooling/** also carries agent:* references. Left alone deliberately: the audit reports and status.json event log are dated historical records that should not be rewritten, and the lane data is live input to plan-hub.mjs linear-sync for a feature another agent is actively working. It needs its own scoped pass, with the plan-hub.test.mjs fixtures moving in lockstep.

🤖 Generated with Claude Code

Closes PRD-756.

Every routine spec and agent-facing doc instructed writers to apply
`agent:routine` / `agent:codex` / `agent:claude`. No `agent` label group
exists in Linear. The live group is `ai`, with exactly those three
children. `save_issue` rejects the entire label array when any one entry
fails to resolve, so an agent following the docs literally got a hard
write failure and filed nothing, which is how health-watch hit this
while filing PRD-755.

Two traps this rename had to avoid:

- `package:agent` is a real, unrelated label (the agent runtime
  package) and is untouched. This was not a find-and-replace of the
  word "agent".
- `agent:copilot` appeared in the operating model as an example, and
  has no `ai:` equivalent at all: the live group is only routine,
  codex, and claude. Dropped rather than translated.

Also documents the second failure mode from the same issue: the
`group:child` notation used throughout these docs is display shorthand,
not accepted API input. `save_issue` resolves by bare child name or ID,
so `["protocol:green-goods", "activity:qa"]` fails where
`["green-goods", "qa"]` succeeds. PRD-756`s own label array reads
`[routine, qa, docs, green-goods]`, which is the proof. Stated at the
canonical definition and at both routine-facing indexes, since that is
where writers look.

One further correction found while reading: the guild routines README
said to "optionally add `ai:claude` or `ai:codex`" on top of
`ai:routine`. Linear enforces one child per grouped family, so that
write would be rejected for the same reason. It now says they replace
rather than accompany.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Oba-One, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 56 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

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.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f23cc2c7-b85a-422c-b5ac-34b8e5a279f8

📥 Commits

Reviewing files that changed from the base of the PR and between aaca9e4 and b714765.

📒 Files selected for processing (1)
  • AGENTS.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/linear-label-ai-rename-clean

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 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: b714765885

ℹ️ 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.md
## Linear-Spawned Issue Contract

Linear (workspace `greenpill-dev-guild`; teams Product `PRD` / Research `RESR`) is the durable backlog — never open GitHub Issues for backlog work. Codex work is labeled `agent:codex` (distinct from `agent:claude` interactive and `agent:routine` cron writes). The Linear MCP is wired into the Codex environment for read/query and state transitions.
Linear (workspace `greenpill-dev-guild`; teams Product `PRD` / Research `RESR`) is the durable backlog — never open GitHub Issues for backlog work. Codex work is labeled `ai:codex` (distinct from `ai:claude` interactive and `ai:routine` cron writes). The Linear MCP is wired into the Codex environment for read/query and state transitions.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Document the bare label names required by save_issue

When an agent follows this instruction while creating a Linear issue through the stated MCP, ai:codex (and likewise ai:claude or ai:routine) is still rejected because save_issue accepts a bare child name or ID rather than group:child notation—the second failure mode described in this commit. The rename therefore leaves the hard-write failure intact; identify these values as display shorthand and tell MCP callers to pass codex, claude, or routine.

Useful? React with 👍 / 👎.

@Oba-One
Oba-One merged commit 5bd328e into main Jul 28, 2026
6 checks passed
@Oba-One
Oba-One deleted the claude/linear-label-ai-rename-clean branch July 28, 2026 00:03
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