feat(skills): roster-discovery hardening — use run artist context; never trust the org list alone#71
feat(skills): roster-discovery hardening — use run artist context; never trust the org list alone#71sweetmantech wants to merge 1 commit into
Conversation
…ver trust the org list alone Two failures observed live (recoupable/chat#1837): headless agents ignored the artist they were given and roster-guessed, then resolved GET /artists?org_id=… — the ORG's roster ("Rostrum Pacific", 1 unrelated artist) — and declared a 59-artist personal roster's artist missing (chats fd8e8b26, aa4eb91f). recoup-platform-api-access now instructs: (1) if the run context provides an artist_account_id, use it directly — skip discovery entirely; (2) org_id-scoped lists are the org's roster, not yours — check the personal GET /api/artists before concluding an artist is absent. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 29 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
1 issue found across 1 file
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="skills/recoup-platform-api-access/SKILL.md">
<violation number="1" location="skills/recoup-platform-api-access/SKILL.md:34">
P3: Placeholder `{that id}` is conversational and doesn't match the variable name `artist_account_id` introduced in the same sentence. An agent reading `call /api/artists/{that id}/*` may not resolve what value to substitute. Use `{artist_account_id}` for consistency with the rest of the skill's named-placeholder convention.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| **Roster discovery:** `GET /accounts/id` → `GET /artists` (your roster; `org_id` | ||
| optional — orgs are often empty, so don't stop when `organizations` is `[]`). | ||
| **Skip discovery when the run gives you the artist.** If your context/system | ||
| prompt provides an `artist_account_id` (scheduled tasks and headless runs pass |
There was a problem hiding this comment.
P3: Placeholder {that id} is conversational and doesn't match the variable name artist_account_id introduced in the same sentence. An agent reading call /api/artists/{that id}/* may not resolve what value to substitute. Use {artist_account_id} for consistency with the rest of the skill's named-placeholder convention.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At skills/recoup-platform-api-access/SKILL.md, line 34:
<comment>Placeholder `{that id}` is conversational and doesn't match the variable name `artist_account_id` introduced in the same sentence. An agent reading `call /api/artists/{that id}/*` may not resolve what value to substitute. Use `{artist_account_id}` for consistency with the rest of the skill's named-placeholder convention.</comment>
<file context>
@@ -30,8 +30,20 @@ If neither var is set, ask the user to authenticate — don't retry blindly.
-**Roster discovery:** `GET /accounts/id` → `GET /artists` (your roster; `org_id`
-optional — orgs are often empty, so don't stop when `organizations` is `[]`).
+**Skip discovery when the run gives you the artist.** If your context/system
+prompt provides an `artist_account_id` (scheduled tasks and headless runs pass
+one), **use it directly** — call `/api/artists/{that id}/*` and get to work. Do
+not search the roster to "confirm" an artist you were already given.
</file context>
|
Closing per review — superseded by recoupable/api#742, and the residual guidance was built on a wrong assumption.
No skill change needed. recoupable/chat#1837 updated accordingly. |
Part of recoupable/chat#1837 (defense-in-depth; pairs with recoupable/api#742, the primary context-injection fix). Base:
main.Why
Two live failures (#1837 evidence): headless agents ignored the artist their run carried, roster-guessed, resolved
GET /artists?org_id=$RECOUP_ORG_ID— the org's roster ("Rostrum Pacific", 1 unrelated artist) — and declared an artist missing that sat in the 59-artist personal roster (chatsfd8e8b26,aa4eb91f). Implicit-artist tasks delivered 1/4 across two benchmark rounds; the id-embedding task went 2/2.Change (
recoup-platform-api-accessSKILL.md, roster-discovery section)artist_account_id— use it directly; don't search the roster to "confirm" a given artist.org_id-scoped lists are the org's roster, not yours — never conclude an artist doesn't exist from it alone; check the personalGET /api/artistsfirst (with the real failure quoted as the cautionary example).CI green:
check_resolvable,run_resolver_eval(structural),validate_manifests.With api#742 merged, headless runs will actually have the artist context this guidance points at; this skill change protects the no-context case and older sandboxes.
🤖 Generated with Claude Code
Summary by cubic
Hardened roster discovery guidance in
recoup-platform-api-accessto use run-provided artist context and avoid false “missing artist” results from org-scoped lists. Addresses recoupable/chat#1837 and protects headless runs and older sandboxes.artist_account_idis present; call/api/artists/{id}/*directly.GET /artists?org_id=…as the org’s roster only; never conclude absence from it. Check personalGET /api/artistsfirst.Written for commit f684607. Summary will update on new commits.