コンテンツにスキップ

Adapter Authoring

adapter は UMMAYA の expansion unit です。一つの adapter は一つの public-service channel、mockable policy shape、または official handoff path を一つの tool entry として wrap し、schema、citation、state label、permission metadata を持ちます。

adapter authoring は backend work だけではありません。adapter は docs が何を honest に claim できるか、model が何を call できるか、user がどの permission を見るか、final answer がどの evidence を cite できるかを決めます。

code を書く前に channel を classify します。

StateUse whenDocumentation consequence
Liveofficial callable channel and credential path existdocs may describe evidence-backed execution within scope
Mockchannel shape is known or policy-mandated, but live access is unavailabledocs must label simulation
Handoffnext step belongs to an opaque official servicedocs should prepare the path and stop
Plannedtarget-state demand exists but shape/evidence is not readydocs may describe roadmap, not current capability

この decision は最初に行う必要があります。schema、tests、permission wording、user-facing claims をすべて変えるからです。

有用な adapter は query engine と docs が agreement できる structure を持つ必要があります。

RequirementWhy it matters
primitiveties the adapter to locate, find, check, or send
input/output schemaprevents plausible but invalid tool calls
Live/Mock/Handoff statecontrols user-facing authority language
permission tierseparates public lookup from protected action
public or policy citationprevents UMMAYA-invented authority
fixture or artifactmakes Mock or Live behavior inspectable
search hintslets retrieval find the adapter from citizen language

adapter がこれら fields を欠く場合、docs は user workflow の evidence として promote してはいけません。

user-facing coverage に影響する adapter は prose を持つ必要があります。その prose は adapter が support できること、support できないこと、適用される status label、安全な answer language を言うべきです。

例えば public weather adapter は Live weather lookup を support できます。separate protected path がない限り personal disaster benefit eligibility は support できません。docs はこれら claims を分ける必要があります。

Mock から Live への promotion には optimism ではなく evidence が必要です。official endpoint または channel validation、credential handling、schema validation、permission metadata、sanitized request/response artifacts、CI で live citizen infrastructure を call しない tests が必要です。

promotion 後、docs surfaces を regenerate し、affected pages を review します。

Terminal window
npm run docs:generate
npm run docs:check

generated adapter metadata が変わったら、user docs と LLM-readable docs も変わる必要があります。

common failure は tool を追加した後に broad marketing copy を書くことです。UMMAYA は逆に進むべきです。channel shape を prove し、boundary を define し、その evidence が support することだけ docs に claim させます。