Skip to content

feat: fix AMC seller 403, auditor report fields, and the using-kuudo connect flow - #65

Merged
tspicer merged 6 commits into
mainfrom
feat/client-feedback-refactor
Nov 25, 2026
Merged

tspicer merged 6 commits into
mainfrom
feat/client-feedback-refactor

Conversation

@tspicer

@tspicer tspicer commented Nov 25, 2026

Copy link
Copy Markdown
Member

Why

A client session on 2026-11-25, using the plugin with the Kuudo Amazon Ads server, reported four problems. Each was reproduced read-only on the live server before the fix and checked again after it.

Reported Reproduced Fix
AMC pre-flight sends the wrong ID for a seller amc_listInstances returned 403 for the seller profile's accountInfo.id and the instance for the entityId on alternateIds amazon-ads-marketing-cloud 0.6.0, amazon-ads-accounts 1.2.1
The campaign auditor's first report request fails The old starting field set was rejected with 400006; the new one was accepted amazon-ads-sp-campaign-auditor 0.5.0
using-kuudo loads twice and has nothing to say when the server is already connected The hook injects the skill without its directory, and the skill's own rules told the agent to invoke it using-kuudo 0.5.0 and the hook preamble
The AMC skill is long for a discovery request 6,438 words in SKILL.md 4,781 words; the audience workflow moved to a reference

What changed

using-kuudo 0.4.0 → 0.5.0

  • "Already connected": confirm the connection read-only (identities, then the server's listing tool) and ask which account to work in. Setup steps moved under "Not connected".
  • The skill and the hook preamble say the text is already loaded. Host notes moved from references/claude-code.md and references/codex.md into a "Hosts" section, which now also covers chat in the Claude apps, Cowork, and Gemini CLI.
  • A duplicates rule: prefer the kuudo-skills: copy and Kuudo's servers unless the user names another.
  • Removed the "1% chance" block, the rationalizations table, the examples, and the exact Using [skill] to [purpose]. format. The skill now asks only that the user be told which skill is in use.

amazon-ads-marketing-cloud 0.5.2 → 0.6.0

  • Step 4b takes entityId from the advertiser account's alternateIds entry for the profile. The header pattern, the 403 rows, and the fan-out flows match.
  • The download step no longer suggests fetching inside the MCP's execute block, and it unescapes an HTML-escaped link.
  • The six-step audience workflow moved unchanged to references/12-audience-workflow.md. Guardrails, reply shapes, pre-flight, SQL essentials, and troubleshooting are unchanged.
  • compatibility frontmatter added.

amazon-ads-sp-campaign-auditor 0.4.2 → 0.5.0

  • The starting field set names metric.totalCost, adds budgetCurrency.value and campaign.country, and drops campaign.currencyCode, which came back blank.
  • A report covers the whole advertiser account, so the workflow checks marketplaces and currencies before totaling.
  • New notes on what the rows look like, and on where to download.

amazon-ads-accounts 1.2.0 → 1.2.1

  • Says where the entity ID is, so it agrees with the AMC skill.

Tests

  • claude-plugin.test.ts checks the hook's "already loaded" line instead of the removed announcement wording.
  • smoke.test.ts checks that using-kuudo carries its host guidance inline.

Evidence

Seven runs of the revised skills, one run each, all passing their assertions:

Run Result
Live: "connect me to kuudo amazon ads" Showed all 16 profiles, repeated no setup, asked which account, made no selection call (6/6)
Live: "Which AMC instances do I have?" on a seller profile Sent the entity ID, no 403, returned the instance (5/5)
Live: campaign audit from a finished report Downloaded in the client's environment, stated marketplace and currency, numbers matched an independent computation (7/7)
Report spanning three marketplaces and currencies Refused a combined total, offered per-marketplace figures (2/2)
AMC eval 13, retargeting plan, revised skill 15/15, graded blind
AMC eval 13, old skill 14/15, graded blind
AMC eval 15, lookalike "no review needed" Created nothing, held for three approvals (12/12)

npm run validate, catalog:check, version:check, skills:version-check, commits:check, and test:unit (158 pass, 1 skipped) pass locally.

For the reviewer

  • One run per configuration. The eval 13 comparison shows no regression from moving the audience workflow; it does not show an improvement.
  • Not exercised: a fresh Claude Code session with the real hook, and chat in the Claude Desktop app. The 2026-09-14 routing cases graded the literal announcement, which this change removes, so they were not rerun.
  • using-kuudo is about the same length (1,143 to 1,159 words). The saving is one load instead of two.
  • The & note is in three places (using-kuudo, the auditor, and AMC). In one probe the link was clean inside execute and escaped when delivered, so remove the note once that is fixed upstream.
  • Out of scope: amazon-ads-reporting still lists campaign.currencyCode and country.code for the Sponsored Products campaign report; both came back blank in the probe.

🤖 Generated with Claude Code

tspicer and others added 5 commits November 25, 2026 15:19
A client session with the plugin and the Kuudo Amazon Ads server showed
the skill loading twice, repeating setup for a server that was already
connected, and presenting 7 of 16 profiles as the full list.

- "Already connected" confirms the connection read-only and asks which
  account to work in; setup steps move under "Not connected".
- The skill and the session hook's preamble say the text is already
  loaded. Host notes move from two reference files into "Hosts", because
  the hook injects the skill without its directory.
- A duplicates rule prefers the kuudo-skills: copy and Kuudo's servers.
- The list_identities warning carries the measured 7 against 16.
- The "1% chance" block, the rationalizations table, the examples, and
  the exact announcement format are removed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Pre-flight told agents to send accountInfo.id as the advertiser header.
On a seller profile that is the merchant ID, and amc_listInstances
answers it with 403. The skill now takes entityId from the advertiser
account's alternateIds entry for the profile. Measured 2026-11-25: 4 of
4 seller profiles differed from their entityId, 11 of 11 vendor
profiles matched.

- The download step no longer suggests fetching inside the MCP's execute
  block, which can't fetch URLs, and it unescapes an HTML-escaped link.
- The six-step audience workflow moves unchanged to
  references/12-audience-workflow.md, so SKILL.md drops from 6,438 to
  4,781 words.
- compatibility frontmatter, and evals 17 and 18.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The starting field set was rejected with 400006 because it lacked
budgetCurrency.value, and it left the cost field for the agent to
discover.

- The set names metric.totalCost, adds budgetCurrency.value, adds
  campaign.country so each row carries its marketplace, and drops
  campaign.currencyCode, which came back blank on every row.
- A report covers the whole advertiser account, so the workflow checks
  marketplaces and currencies before totaling.
- adProduct.value comes back as display text, not the filter's enum.
- The download happens in the client's own environment, and an
  HTML-escaped link is unescaped first.
- Evals 16 to 18; eval 4 checks the new fields.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A seller profile's accountInfo.id is a merchant ID. The entity ID is on
the account's alternateIds entry for the profile. The quick reference,
Common Mistakes, and the identifiers reference now say so, which makes
this skill and amazon-ads-marketing-cloud agree. The list_identities
warning carries the measured counts.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 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-25T20:27:18.456560Z 3cf3605 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.

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

ℹ️ 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 skills/using-kuudo/SKILL.md Outdated
Comment on lines +51 to +52
1. `list_identities` on the server. With one identity, use it and say which; with several, ask.
2. That server's listing tool for what the identity reaches, such as `ac_listProfiles` on Amazon Ads or `sellers_getMarketplaceParticipations` on Selling Partner.

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 Establish Selling Partner routing before listing marketplaces

For an EU or FE Selling Partner identity, this connection check can fail despite valid authorization because it never establishes the region before calling sellers_getMarketplaceParticipations. As documented in skills/amazon-sp-fba-inbound/references/tool-access.md, selecting an identity clears marketplace/region selection and routing defaults to na; identity selection must also occur in the same execute block as the read. Add those prerequisites to this bootstrap flow, using the chosen identity's region or a marketplace it covers, before attempting the listing. Otherwise a user asking to verify a working non-NA connection can receive an authorization error instead of their marketplace list.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Confirmed against the Selling Partner server's own tool descriptions ("select identity first, then marketplace and dependent Amazon operations within the same execute. Nothing carries to the next execute.") and amazon-sp-fba-inbound/references/tool-access.md. Fixed in 3cf3605: the check now selects the identity and a marketplace it covers in the same execute block as the read, and the closing sentence about session-long selections is scoped to Amazon Ads. This branch was not run live; the available Selling Partner identity is North America only, which would not show the routing failure.

The connected check named sellers_getMarketplaceParticipations with no
routing step. On Selling Partner a selection lasts one execute block and
the region defaults to North America, so an EU or FE seller would get an
authorization error from a working connection. The check now selects the
identity and a marketplace it covers in the same block as the read.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@tspicer

tspicer commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

@codex review

@tspicer
tspicer merged commit 7a292cb into main Nov 25, 2026
1 check passed
@tspicer
tspicer deleted the feat/client-feedback-refactor branch November 25, 2026 20:25
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 3cf360576c

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

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