{
  "schemaVersion": 1,
  "profile": "teamyfy-bot-v1",
  "evidence": {
    "kind": "reviewed-source-and-focused-unit-checkpoint",
    "runtimeCommit": "29cc72e7900311c090d1fa3ad749c99242acf5b9",
    "liveAcceptance": false,
    "operatorInstallationRequired": true,
    "note": "This inventory does not alter profile.json requirements or turn native differences into successful compatibility. Package manifests and review receipts retain exact test counts."
  },
  "restPrefix": "/discord/api/v10",
  "pathNotes": [
    "Gateway, /runtime and /assets paths are absolute; other paths are relative to restPrefix.",
    "Methods and paths in a family are a grouped inventory, not a Cartesian product; source router is authoritative."
  ],
  "statusDefinitions": {
    "implemented": "Actual route/projection exists under current authority; listed boundary still applies.",
    "adapted": "Existing workflow uses the named native semantics; it is not identical Discord behavior."
  },
  "defaultModuleMatrices": {
    "Red": "teamyfy-red/eng/DEFAULT_MODULES.md",
    "Nadeko": "teamyfy-nadeko/eng/DEFAULT_MODULES.md"
  },
  "gateway": {
    "intents": 65411,
    "encoding": "v10-json-no-compression",
    "implementedProfileEvents": [
      "READY",
      "RESUMED",
      "GUILD_CREATE",
      "GUILD_UPDATE",
      "GUILD_DELETE",
      "GUILD_MEMBER_ADD",
      "GUILD_MEMBER_UPDATE",
      "GUILD_MEMBER_REMOVE",
      "GUILD_MEMBERS_CHUNK",
      "GUILD_ROLE_CREATE",
      "GUILD_ROLE_UPDATE",
      "GUILD_ROLE_DELETE",
      "CHANNEL_CREATE",
      "CHANNEL_UPDATE",
      "CHANNEL_DELETE",
      "CHANNEL_PINS_UPDATE",
      "MESSAGE_CREATE",
      "MESSAGE_UPDATE",
      "MESSAGE_DELETE",
      "MESSAGE_REACTION_ADD",
      "MESSAGE_REACTION_REMOVE",
      "TYPING_START",
      "PRESENCE_UPDATE",
      "INTERACTION_CREATE",
      "VOICE_STATE_UPDATE",
      "VOICE_SERVER_UPDATE"
    ],
    "requiredProfileEventsNotEmitted": {
      "MESSAGE_DELETE_BULK": "Batch deletion is implemented but native durable journal emits individual MESSAGE_DELETE records.",
      "MESSAGE_REACTION_REMOVE_ALL": "Native own-reaction API has no clear-all primitive; no fabricated event is emitted."
    },
    "replay": "Durable authorized message/event references; non-replayable metadata/voice/interactions cause fresh IDENTIFY on missed gaps."
  },
  "operations": [
    {
      "id": "identity",
      "status": "implemented",
      "methods": [
        "GET"
      ],
      "paths": [
        "/users/@me",
        "/oauth2/applications/@me",
        "/users/{user}"
      ],
      "request": "Local Bot token; compatibility identity from current native authority",
      "response": "Concrete SDK user/application models",
      "events": [],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/provider.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/projection.py"
      ],
      "boundary": "No arbitrary global user directory; current authorized metadata only."
    },
    {
      "id": "profile",
      "status": "implemented",
      "methods": [
        "GET"
      ],
      "paths": [
        "/teamyfy/profile",
        "/teamyfy/admissions",
        "/gateway",
        "/gateway/bot"
      ],
      "request": "Local Bot token",
      "response": "Supported intents; actual admission state; Gateway URL and session budget",
      "events": [],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/gateway.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/metadata.py"
      ],
      "boundary": "A granted capability is not proof of an available MLS key or published audio track."
    },
    {
      "id": "community-metadata",
      "status": "implemented",
      "methods": [
        "GET"
      ],
      "paths": [
        "/users/@me/guilds",
        "/guilds/{guild}",
        "/guilds/{guild}/channels",
        "/guilds/{guild}/roles",
        "/channels/{channel}"
      ],
      "request": "Current installed communities; before/after/limit for community list",
      "response": "Authorized SDK guild/channel/role models",
      "events": [
        "GUILD_CREATE",
        "GUILD_UPDATE",
        "GUILD_DELETE",
        "CHANNEL_CREATE",
        "CHANNEL_UPDATE",
        "CHANNEL_DELETE",
        "GUILD_ROLE_CREATE",
        "GUILD_ROLE_UPDATE",
        "GUILD_ROLE_DELETE"
      ],
      "consumers": [
        "Red.Core",
        "Red.General",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/provider.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/metadata.py"
      ],
      "boundary": "Metadata cache deltas are not durable replay payloads; lost metadata requires fresh IDENTIFY."
    },
    {
      "id": "members",
      "status": "implemented",
      "methods": [
        "GET"
      ],
      "paths": [
        "/guilds/{guild}/members",
        "/guilds/{guild}/members/{user}"
      ],
      "request": "Authorized community; bounded after/limit pagination",
      "response": "SDK member snapshots and native role membership",
      "events": [
        "GUILD_MEMBER_ADD",
        "GUILD_MEMBER_UPDATE",
        "GUILD_MEMBER_REMOVE",
        "GUILD_MEMBERS_CHUNK",
        "PRESENCE_UPDATE"
      ],
      "consumers": [
        "Red.Core",
        "Red.Mod",
        "Nadeko.Administration",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/provider.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/metadata.py"
      ],
      "boundary": "Current native member/presence data only; no fabricated Discord boosts, badges or global administrator rights."
    },
    {
      "id": "channel-messages",
      "status": "implemented",
      "methods": [
        "GET",
        "POST"
      ],
      "paths": [
        "/channels/{channel}/messages",
        "/channels/{channel}/messages/{message}"
      ],
      "request": "History before/after/around/limit; JSON content/embeds/reply/user-mention policy/components or multipart payload_json/files[n]",
      "response": "Real accepted or currently readable SDK message with persistent compatibility IDs",
      "events": [
        "MESSAGE_CREATE",
        "MESSAGE_UPDATE",
        "MESSAGE_DELETE"
      ],
      "consumers": [
        "Red.Core",
        "Red.CustomCom",
        "Red.Cleanup",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/provider.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/projection.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/mentions.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/component_actions.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/attachments.py"
      ],
      "boundary": "Current grants and actual MLS admission; unsupported fields fail explicitly. Gateway content is redacted without MESSAGE_CONTENT."
    },
    {
      "id": "history",
      "status": "implemented",
      "methods": [
        "GET"
      ],
      "paths": [
        "/channels/{channel}/messages"
      ],
      "request": "Explicit history request plus native history.read and per-channel full-history grant",
      "response": "Only historical epochs with real authenticated key-grant proof; bounded preparation may return pending conflict",
      "events": [],
      "consumers": [
        "Red.Cleanup",
        "Nadeko.Administration",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/history.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/provider.py"
      ],
      "boundary": "Default is FROM_JOIN_EPOCH. Listing/installing does not disclose old history. Revoke/generation/root changes fence future reads."
    },
    {
      "id": "channel-edit-delete",
      "status": "implemented",
      "methods": [
        "PATCH",
        "DELETE"
      ],
      "paths": [
        "/channels/{channel}/messages/{message}"
      ],
      "request": "Own message partial content/embeds/allowed_mentions/components edit; authorized deletion",
      "response": "Actual edited message or 204",
      "events": [
        "MESSAGE_UPDATE",
        "MESSAGE_DELETE"
      ],
      "consumers": [
        "Red.Core",
        "Red.Cleanup",
        "Nadeko.Administration",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/message_ops.py"
      ],
      "boundary": "Existing attachment membership is immutable; caption/embed edits preserve descriptors. No other-author edits."
    },
    {
      "id": "bulk-delete",
      "status": "adapted",
      "methods": [
        "POST"
      ],
      "paths": [
        "/channels/{channel}/messages/bulk-delete"
      ],
      "request": "{messages:[1..100 distinct compatibility IDs]}",
      "response": "204 after native authorized batch deletion",
      "events": [
        "MESSAGE_DELETE"
      ],
      "consumers": [
        "Red.Cleanup",
        "Nadeko.Administration",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/message_ops.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/provider.py"
      ],
      "boundary": "Current native journal emits individual MESSAGE_DELETE events, not MESSAGE_DELETE_BULK. DIRECT bulk deletion is unavailable."
    },
    {
      "id": "reactions",
      "status": "adapted",
      "methods": [
        "PUT",
        "DELETE"
      ],
      "paths": [
        "/channels/{channel}/messages/{message}/reactions/{emoji}/@me"
      ],
      "request": "One native emoji: thumbs up/down, laughing, fire, heart or poop",
      "response": "204; current message projection includes actual counts and own state",
      "events": [
        "MESSAGE_REACTION_ADD",
        "MESSAGE_REACTION_REMOVE"
      ],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/message_ops.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/interaction_events.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/direct_actions.py"
      ],
      "boundary": "Only own mutations and six native emoji. Custom/arbitrary emoji, reactor listing, other-user removal and clear-all are unavailable; no MESSAGE_REACTION_REMOVE_ALL is emitted."
    },
    {
      "id": "pins",
      "status": "implemented",
      "methods": [
        "GET",
        "PUT",
        "DELETE"
      ],
      "paths": [
        "/channels/{channel}/pins",
        "/channels/{channel}/pins/{message}",
        "/channels/{channel}/messages/pins",
        "/channels/{channel}/messages/pins/{message}"
      ],
      "request": "Legacy list or bounded limit/before timestamp list; exact message for mutation",
      "response": "Real pinned messages/timestamps or 204",
      "events": [
        "CHANNEL_PINS_UPDATE",
        "MESSAGE_UPDATE"
      ],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/message_ops.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/interaction_events.py"
      ],
      "boundary": "CHANNEL only. Equal timestamps that cannot fit an SDK cursor fail explicitly instead of dropping entries."
    },
    {
      "id": "typing",
      "status": "implemented",
      "methods": [
        "POST"
      ],
      "paths": [
        "/channels/{channel}/typing"
      ],
      "request": "Current read/write authority and admission",
      "response": "204",
      "events": [
        "TYPING_START"
      ],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/message_ops.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/direct_actions.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/interaction_events.py"
      ],
      "boundary": "Native five-second coalescing; stale typing is filtered."
    },
    {
      "id": "direct-consent",
      "status": "adapted",
      "methods": [
        "GET",
        "POST",
        "DELETE"
      ],
      "paths": [
        "/users/@me/channels",
        "/channels/{direct}"
      ],
      "request": "POST recipient_id resolves an already consented current human; DELETE closes existing conversation",
      "response": "Actual SDK DM channel(s)",
      "events": [],
      "consumers": [
        "Red.Reports",
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/direct.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/direct_http.py"
      ],
      "boundary": "Bot cannot create unsolicited consent. Native consent generation/admission and scopes are distinct from community grants."
    },
    {
      "id": "direct-messages",
      "status": "implemented",
      "methods": [
        "GET",
        "POST",
        "PATCH",
        "DELETE"
      ],
      "paths": [
        "/channels/{direct}/messages",
        "/channels/{direct}/messages/{message}"
      ],
      "request": "Same bounded JSON/multipart read/send; own caption edit/delete",
      "response": "Actual SDK DM messages without guild_id",
      "events": [
        "MESSAGE_CREATE",
        "MESSAGE_UPDATE",
        "MESSAGE_DELETE",
        "MESSAGE_REACTION_ADD",
        "MESSAGE_REACTION_REMOVE",
        "TYPING_START"
      ],
      "consumers": [
        "Red.Reports",
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/direct.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/direct_http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/direct_actions.py"
      ],
      "boundary": "Own reaction/typing supported. No DM pins, bulk delete, application commands or actionable components. Attachment edits remain immutable."
    },
    {
      "id": "channel-direct-files",
      "status": "implemented",
      "methods": [
        "GET",
        "HEAD"
      ],
      "paths": [
        "/assets/attachments/{channel}/{message}/{upload}"
      ],
      "request": "Local Bot token; optional bounded HTTP byte range",
      "response": "Currently authorized decrypted file stream from authenticated native ciphertext ranges",
      "events": [],
      "consumers": [
        "Red.Image",
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/attachments.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/provider.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/direct.py"
      ],
      "boundary": "No keys in URLs; HEAD/download recheck authority. Native range chunks at most 1 MiB; plaintext staging bounded and removed after terminal operations."
    },
    {
      "id": "member-moderation",
      "status": "adapted",
      "methods": [
        "PATCH",
        "DELETE"
      ],
      "paths": [
        "/guilds/{guild}/members/{user}",
        "/teamyfy/guilds/{guild}/members/{user}/moderation"
      ],
      "request": "SDK PATCH supports mute only; native adapter accepts mutedMinutes or microphoneMuted; DELETE kicks",
      "response": "Actual member/native restriction state or 204",
      "events": [
        "GUILD_MEMBER_UPDATE",
        "GUILD_MEMBER_REMOVE"
      ],
      "consumers": [
        "Red.Mod",
        "Red.Mutes",
        "Nadeko.Administration",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/moderation.py"
      ],
      "boundary": "Native community chat/microphone restrictions, not universal Discord timeout. Human checks and owner/self fences remain; nickname/overwrite fields fail explicitly."
    },
    {
      "id": "bans",
      "status": "adapted",
      "methods": [
        "GET",
        "PUT",
        "DELETE"
      ],
      "paths": [
        "/guilds/{guild}/bans",
        "/guilds/{guild}/bans/{user}"
      ],
      "request": "Bounded limit/before/after; only zero delete_message_days/delete_message_seconds",
      "response": "Actual native bans or 204",
      "events": [
        "GUILD_MEMBER_UPDATE",
        "GUILD_MEMBER_REMOVE"
      ],
      "consumers": [
        "Red.Mod",
        "Red.Filter",
        "Nadeko.Administration",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/moderation.py"
      ],
      "boundary": "Nonzero purge/softban fail before effects; unknown unrelated external users cannot be banned through invented identities. Ban reasons are not fabricated."
    },
    {
      "id": "role-assignment",
      "status": "adapted",
      "methods": [
        "PUT",
        "DELETE"
      ],
      "paths": [
        "/guilds/{guild}/members/{user}/roles/{role}"
      ],
      "request": "Current roles.assign grant and exact allowedRoleIds membership",
      "response": "204 after native assignment/removal",
      "events": [
        "GUILD_MEMBER_UPDATE"
      ],
      "consumers": [
        "Red.Admin",
        "Nadeko.Administration",
        "Nadeko.Xp",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/moderation.py"
      ],
      "boundary": "Only allowlisted nonprivileged native roles; no role create/rename/delete/permission mutation or global permission bypass."
    },
    {
      "id": "command-catalog",
      "status": "adapted",
      "methods": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE"
      ],
      "paths": [
        "/applications/{application}/commands",
        "/applications/{application}/commands/{command}",
        "/applications/{application}/guilds/{guild}/commands",
        "/applications/{application}/guilds/{guild}/commands/{command}"
      ],
      "request": "Typed bounded definitions; collection replacement <=100 commands; native current revision",
      "response": "Real persistent command IDs, definitions and versions; delete 204",
      "events": [
        "INTERACTION_CREATE"
      ],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/application_commands.py"
      ],
      "boundary": "Community-only contexts=[0], dm_permission=false. Global catalog means all authorized installations, not DM availability; explicit unsupported contexts fail."
    },
    {
      "id": "command-dispatch",
      "status": "implemented",
      "methods": [
        "WS"
      ],
      "paths": [
        "/gateway?v=10&encoding=json"
      ],
      "request": "Native human invocation encrypted to current bot identity; command/context revision and selected option types checked",
      "response": "SDK application/user/message command or autocomplete interaction, including resolved option11 attachments",
      "events": [
        "INTERACTION_CREATE"
      ],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/private_interactions.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/interaction_payloads.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/interaction_files.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/interaction_claims.py"
      ],
      "boundary": "Durable claim before dispatch; arguments/tokens are not persisted. Lost token/restart yields in_doubt, not guessed handler replay."
    },
    {
      "id": "initial-reply",
      "status": "implemented",
      "methods": [
        "POST"
      ],
      "paths": [
        "/interactions/{interaction}/{token}/callback"
      ],
      "request": "Types4/5/8/9 with bounded content/embeds/components/modal/choices; type4 multipart payload_json precedes files",
      "response": "204 or SDK with_response resource using actual native IDs",
      "events": [
        "INTERACTION_CREATE"
      ],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/private_interactions.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/public_interactions.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/interaction_multipart.py"
      ],
      "boundary": "Initial deadline 3s; file reply explicitly defers before file bytes then materializes same original. Private flag64/public flag0 retain audience; no guessed public-to-private conversion."
    },
    {
      "id": "followup-replies",
      "status": "implemented",
      "methods": [
        "POST",
        "GET",
        "PATCH",
        "DELETE"
      ],
      "paths": [
        "/webhooks/{application}/{token}",
        "/webhooks/{application}/{token}/messages/{message_or_original}"
      ],
      "request": "Expiring exact callback capability; JSON/multipart messages and partial edits",
      "response": "Actual private/public message, same-ID deferred materialization, or deletion tombstone/204",
      "events": [],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/http.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/private_interactions.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/public_interactions.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/interaction_mutations.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/interaction_multipart.py"
      ],
      "boundary": "Private own replies can retain/add/remove same-interaction attachments. Public channel membership remains immutable. Deleted replies cannot be recreated; final current authority fence follows asynchronous projection."
    },
    {
      "id": "components-modals",
      "status": "implemented",
      "methods": [
        "POST",
        "PATCH"
      ],
      "paths": [
        "/channels/{channel}/messages",
        "/channels/{channel}/messages/{message}",
        "/interactions/{interaction}/{token}/callback",
        "/webhooks/{application}/{token}"
      ],
      "request": "Classic action rows: buttons, string/user/role/mentionable/channel selects; modal text inputs",
      "response": "Authenticated action UUID/source revision binding and SDK source message; selected values resolved under current authority",
      "events": [
        "INTERACTION_CREATE"
      ],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/component_actions.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/component_payloads.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/component_projection.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/source_interactions.py"
      ],
      "boundary": "Bind only accepted native source; pending registration retries metadata only. No trust in human custom_id alone. DM actionable components and unsupported component fields fail explicitly."
    },
    {
      "id": "source-responses",
      "status": "implemented",
      "methods": [
        "POST",
        "GET",
        "PATCH",
        "DELETE"
      ],
      "paths": [
        "/interactions/{interaction}/{token}/callback",
        "/webhooks/{application}/{token}/messages/@original"
      ],
      "request": "Types6/7 defer/update the exact component source; real expected source revision/hash for mutations",
      "response": "Original CHANNEL message/private parent reply, actual update receipt or persistent deletion receipt",
      "events": [
        "MESSAGE_UPDATE",
        "MESSAGE_DELETE"
      ],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/source_interactions.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/source_deletion.py"
      ],
      "boundary": "Lost ACK retries exact request/source; never switches to newer source or republishes a reply. DELETE retry reads tombstone without reopening deleted bytes; attachment membership preserved."
    },
    {
      "id": "private-interaction-files",
      "status": "implemented",
      "methods": [
        "GET",
        "HEAD"
      ],
      "paths": [
        "/assets/interactions/{interaction}/{reply_or_invocation}/{upload}"
      ],
      "request": "Local Bot token; current authenticated invocation or original reply request ID; optional byte range",
      "response": "Real attachment compatibility ID/metadata in SDK models and bounded plaintext stream",
      "events": [],
      "consumers": [
        "Red.Core",
        "Nadeko.Core",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/interaction_files.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/interaction_reply_files.py"
      ],
      "boundary": "Current parent authority/expiry and signed descriptor membership are checked; no arbitrary URLs or caller keys. Nonempty descriptor descriptions unsupported."
    },
    {
      "id": "voice",
      "status": "adapted",
      "methods": [
        "WS",
        "HTTP"
      ],
      "paths": [
        "/gateway?v=10&encoding=json",
        "/runtime/v1/voice/sessions"
      ],
      "request": "Gateway voice state intent/join; private control/PCM contract in runtime.openapi.json",
      "response": "Real native voice reservation/admission/publication, generation-bound READY and capture acknowledgement",
      "events": [
        "VOICE_STATE_UPDATE",
        "VOICE_SERVER_UPDATE"
      ],
      "consumers": [
        "Red.Audio",
        "Nadeko.Music",
        "SDK"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/voice.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/rtc_process.py",
        "bot-runtime/runtime/teamyfy_bot_runtime/gateway.py"
      ],
      "boundary": "Custom Red Lavalink/Nadeko PCM adapters, not Discord UDP/DAVE. Worker process isolation and bounded queue; actual published encrypted track required before READY."
    },
    {
      "id": "command-recovery",
      "status": "adapted",
      "methods": [
        "POST"
      ],
      "paths": [
        "/runtime/v1/commands/claim",
        "/runtime/v1/commands/outcome"
      ],
      "request": "Actual retained MESSAGE_CREATE identity, source kind and handler claim/outcome",
      "response": "Durable claimed/completed/in_doubt outcome, with current source authorization",
      "events": [],
      "consumers": [
        "Red.Core",
        "Nadeko.Core"
      ],
      "source": [
        "bot-runtime/runtime/teamyfy_bot_runtime/commands.py"
      ],
      "boundary": "At-least-once transport is not exactly-once arbitrary handler effects; uncertain execution requires explicit operator policy."
    }
  ],
  "explicitDifferences": [
    {
      "feature": "Discord-only guild administration",
      "result": "Explicit unsupported error",
      "details": "Threads/private threads, invite management, guild/channel/role creation or settings mutation, incoming webhooks, Discord audit-log readers and universal timeout are not implemented."
    },
    {
      "feature": "Mentions",
      "result": "Current authorized user mentions implemented",
      "details": "Authenticated native alias/display and notification policy; role/everyone notifications are unsupported. Private interaction responses do not notify."
    },
    {
      "feature": "Music sources",
      "result": "Existing source pipelines with public-address/redirect/decoder guards",
      "details": "External service credentials and provider availability remain operator dependencies. No new Nadeko seek or Discord voice UDP/DAVE compatibility."
    },
    {
      "feature": "Downloaded plugins",
      "result": "Outside agreed acceptance",
      "details": "No arbitrary third-party module parity or sandbox guarantee."
    }
  ]
}
