Skip to content

create_rfq: reject SUI legs that omit baseChain/quoteChain at the schema level #5

@BarisSozen

Description

@BarisSozen

From CodeRabbit review on PR #4 (outside-diff, src/index.ts ~205-208). The create_rfq description states SUI legs REQUIRE baseChain/quoteChain (no legacy fallback), but the zod schema accepts baseToken/quoteToken "SUI" with the chain omitted and only fails downstream. A zod refinement rejecting SUI-without-chain would give the agent a clear, self-correctable schema error up front.

Deferred from PR #4 deliberately: create_rfq is intentionally NOT modified in the Agent-Friendly MCP Layer 1 scope (its intent-compiler description + the pin tests guarding it are load-bearing; spec docs/superpowers/specs/2026-05-18-agent-friendly-layer1-design.md). Tracking here as a focused follow-up so the create_rfq change can be made + pin-tested in isolation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions