Skip to content

Name the identity fields oda_map_projects requires - #59

Merged
amnotyoung merged 1 commit into
mainfrom
document-map-projects-identity-fields
Aug 13, 2026
Merged

Name the identity fields oda_map_projects requires#59
amnotyoung merged 1 commit into
mainfrom
document-map-projects-identity-fields

Conversation

@amnotyoung

Copy link
Copy Markdown
Owner

What happened

A plugin test run asked what KOICA funds in Tanzania. Five consecutive oda_map_projects calls came back PUBLIC_RESPONSE_BLOCKED; the sixth, which dropped both agency and fields, worked. The caller concluded agency was at fault, abandoned the filter, paged all 177 country records, and tallied KOICA by hand.

agency was never the problem. {country, agency: "한국국제협력단(KOICA)"} returns 102 items, and adding status: "active" returns 49 — the exact number the hand tally reached before discarding it as untrustworthy. Every failed call omitted id from fields.

Why the Skills made it worse

"Selecting fields" told readers to request only what a question needs and never mentioned that each item must carry id and name. The first blocked call — fields: ["name","sector","dates","status","description"] — was that guidance followed exactly.

The blocked-response guidance then said to narrow the request. For this failure narrowing cannot help: a smaller array still omits the required values. That is why five attempts, shrinking limit 100 → 30 → 10 and fields five → one, all failed.

Change

  • references/portfolio-lookup-protocol.md — states the requirement as the first item under "Selecting fields", where fields are chosen
  • both blocked-response sections — check fields before narrowing
  • korean-oda-portfolio-lookup/SKILL.md step 4 and the comparison workflow, international-oda-data-lookup/SKILL.md route 2 — name id and name alongside the fields they already request

generate-development-country-report is untouched: it is a synced build output fingerprinted by public-skill.lock.json, and it carries no fields guidance to correct.

Version 0.2.27 → 0.2.28; npm test 27/27.

Relationship to the gateway fix

amnotyoung/io-mcp#61 fills id and name in, so the constraint disappears once deployed. The wording here is conditional on the deployed build rather than claiming the block is permanent, and these paragraphs can be dropped after that ships.

🤖 Generated with Claude Code

`fields` on oda_map_projects looks like a free choice among fourteen
values, but every returned item must carry id and name, and a gateway
that has not taken the identity fix blocks any array missing either one
with PUBLIC_RESPONSE_BLOCKED.

The Skills walked consumers into that. "Selecting fields" told them to
request only what a question needs and never mentioned the two required
values, and the blocked-response guidance told them to narrow the
request — which, for this failure, keeps it blocked. A lookup that hit
this dropped its agency filter, paged the whole country list, and
tallied by hand, having misread the block as a filter problem.

Records the requirement where fields are chosen, and puts the fields
check ahead of narrowing wherever a blocked response is handled.

The gateway fix (amnotyoung/io-mcp) fills id and name in, so the wording
stays conditional on the deployed build rather than claiming the block
is permanent.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@amnotyoung
amnotyoung merged commit f776117 into main Aug 13, 2026
2 checks passed
amnotyoung added a commit that referenced this pull request Aug 13, 2026
#59 told readers to put id and name in every `fields` array because the
gateway blocked any array without them. amnotyoung/io-mcp#61 shipped, so
the gateway fills both in and nothing blocks. Instructions written
against a defect outlive it badly: they read as requirements, and the
next person spends time satisfying one that no longer exists.

Restores the three Skill files to their pre-#59 wording — the
blocked-response sections lose the fields step they gained, and the
callers that named id and name alongside description drop them again.

Keeps one line, because one thing #59 found is still true and was never
written down: every item carries id and name, so they come back whether
or not the caller lists them. That is why the response echo can be
longer than the request, which is otherwise a surprise with no
explanation anywhere.

The empty-projection fix (amnotyoung/io-mcp#62) needed no Skill change:
it removed a false claim from responses rather than adding a rule for
callers to follow.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
amnotyoung added a commit that referenced this pull request Aug 13, 2026
#59 told readers to put id and name in every `fields` array because the
gateway blocked any array without them. amnotyoung/io-mcp#61 shipped, so
the gateway fills both in and nothing blocks. Instructions written
against a defect outlive it badly: they read as requirements, and the
next person spends time satisfying one that no longer exists.

Restores the three Skill files to their pre-#59 wording — the
blocked-response sections lose the fields step they gained, and the
callers that named id and name alongside description drop them again.

Keeps one line, because one thing #59 found is still true and was never
written down: every item carries id and name, so they come back whether
or not the caller lists them. That is why the response echo can be
longer than the request, which is otherwise a surprise with no
explanation anywhere.

The empty-projection fix (amnotyoung/io-mcp#62) needed no Skill change:
it removed a false claim from responses rather than adding a rule for
callers to follow.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
@amnotyoung
amnotyoung deleted the document-map-projects-identity-fields branch August 13, 2026 08:09
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