/.well-known/stellar.toml on the selected domain. RampSpec evaluates the file against the exact upstream snapshot, then applies separately labeled security and interoperability checks without turning them into new SEP requirements.
Pinned source and scope
The normative source is SEP-1 at commit0dc4592cb44dda1943341016f076e9326874daed. The source digest and metadata are recorded in the standards baseline.
Safe modes
SEP-1 discovery is passive: it retrieves public metadata and does not authenticate, create customer state, invoke transfer endpoints, sign, or submit a Stellar transaction. It is suitable for discovery, contract, regression, and passive monitor modes. Run against a verified target. Public runners must recheck DNS and address classification before connection and every redirect, pin the approved origin policy, reject embedded credentials and forbidden ports, enforce time and byte limits, and preserve only redacted response metadata. A private home domain requires an outbound-only local runner.Transport checks
For the normalized home domain, retrieve exactly/.well-known/stellar.toml over HTTPS without appending a query or following an out-of-scope redirect.
- The response must make the document available at the standard path.
- The response must contain
Access-Control-Allow-Origin: *. - The body must not exceed 100 KB; stop reading at the limit rather than buffering an oversized body.
Content-Type: text/plainis an upstream recommendation, so a mismatch is not a normative failure by default.- Record status, final URL, redirect chain, resolved addresses, TLS identity, headers, byte count, retrieval time, and exact body SHA-256.
- Treat DNS, TLS, timeout, proxy, truncation, or transport failure as indeterminate unless a released rule explicitly defines a target requirement.
TOML structure
Parse the exact response bytes with the rule-pack’s pinned TOML implementation and resource limits. Reject invalid syntax, duplicate keys, conflicting value types, malformed arrays/tables, excessive nesting or item counts, invalid text encoding, and trailing content the parser cannot account for. Validate each recognized field against the pinned SEP-1 type and constraint. Preserve unknown fields for evidence but do not fail them merely for being extensions. Use the declaredVERSION to select known field semantics; do not silently reinterpret an unsupported future version.
General fields and endpoint URLs
ValidateNETWORK_PASSPHRASE, Stellar public keys, contract IDs, accounts, and endpoint URL types exactly as defined by the pinned source. Fields that require HTTPS must not accept insecure schemes, embedded credentials, fragments, ambiguous encodings, or malformed hosts.
Recognize the protocol relationships represented by:
TRANSFER_SERVERfor SEP-6;TRANSFER_SERVER_SEP0024for SEP-24;KYC_SERVERfor SEP-12;WEB_AUTH_ENDPOINTfor SEP-10;WEB_AUTH_FOR_CONTRACTS_ENDPOINTandWEB_AUTH_CONTRACT_IDfor SEP-45;DIRECT_PAYMENT_SERVERfor SEP-31;ANCHOR_QUOTE_SERVERfor SEP-38;SIGNING_KEY,HORIZON_URL,ACCOUNTS, federation, and URI signing metadata.
Organization and principal data
Validate[DOCUMENTATION] and [[PRINCIPALS]] names, types, formats, domain relationships, and URL constraints. Treat completeness recommendations separately from required syntax. Do not download identity photographs, attestations, bills, licenses, or other potentially sensitive linked material during default discovery.
RampSpec does not determine whether an organization is licensed, an attestation is genuine, a principal identity is verified, or a business is trustworthy. It reports only the scoped format and relationship checks selected by the suite.
Accounts and currencies
For eachACCOUNTS entry, validate the expected classic-account StrKey form and reject duplicates. Ledger ownership or control is not proven merely because a key is listed.
For every [[CURRENCIES]] entry:
- require a valid code within the pinned length rule when the source requires it;
- distinguish classic Stellar asset issuers from SEP-41 contract identifiers;
- validate status, display decimals, URLs, booleans, and numeric policy fields by type and range;
- enforce the pinned mutual exclusion among
fixed_number,max_number, andis_unlimited; - validate external currency TOML links without fetching them unless policy approves the destination;
- compare duplicate codes, issuer/contract identity, and asset metadata deterministically;
- treat reserve, redemption, regulation, and collateral claims as declarations, not independently verified facts.
Cross-field and endpoint coherence
Coherence checks are explicit and classified. Examples include:- network passphrase agrees with the registered target and ledger sources;
SIGNING_KEYhas the expected relationship to later SEP-10 or SEP-45 observations;- SEP-12 is advertised when a selected dependent flow requires it;
- account and issuer identifiers use the target network and expected roles;
- configured assets and methods agree with later
/inforesponses; - home-domain and organization URLs meet their pinned same-domain relationship;
- deprecated fields and interactive SEP-6 behavior receive their upstream labels.
INTEROP, SECURITY, or POLICY as appropriate.
Fixture corpus
The released rule pack must include stored, hashed fixtures for:- a minimal valid file and a complete valid file;
- each required transport failure, including missing wildcard CORS and oversized bodies;
- malformed TOML, duplicate keys, wrong value types, and parser-limit cases;
- insecure or malformed endpoint URLs and redirect targets;
- invalid classic accounts, contract IDs, asset codes, issuers, and numeric boundaries;
- currency entries for classic assets, SEP-41 contracts, templates, and external TOML;
- inconsistent network, signing-key, endpoint, account, and asset relationships;
- unknown extension fields and future versions that must fail or warn according to compatibility policy.
validate-snippets confirms they match those stored files.
Common findings and remediation
Finding-detail links remain unavailable until the backend publishes stable rule IDs and a compatible generated catalog.