Capability registry#
<!-- @generated by scripts/generate_capability_registry.mjs from docs/reference/capabilities.json; do not edit by hand. --> <!-- prettier-ignore-start -->This page is generated from docs/reference/capabilities.json, the one machine-readable record
of what each Seesaw capability does, its status, where each surface implements it, and which
end-to-end journeys prove it. scripts/check_capability_registry.mjs keeps the file true
against the code. A row records the code at its lastVerifiedCommit, not a release signoff.
Summary#
| Kind | planned | implemented | qualified | released | Total |
|---|---|---|---|---|---|
| roadmap-item | 44 | 24 | 0 | 0 | 68 |
| capability | 5 | 156 | 0 | 0 | 161 |
Unplaced capabilities (in the code, in no item of roadmap section 9): 27. Capabilities that meet the definition of done of roadmap section 2.1: 0 of 161.
Roadmap items#
A roadmap item takes the lowest status of the capabilities that list it; an item with no
capability is planned.
| ID | Name | Status | Section 9 status text | Owning phase | Capabilities |
|---|---|---|---|---|---|
| F1 | Pyth markets with bring-your-own-key | implemented | Implemented | 9 | market.create, oracle.byo-pyth-key, lifecycle.end-price-capture, lifecycle.resolution, lifecycle.expiry, keeper.pyth-lifecycle, relay.pyth-updates |
| F2 | Mirror markets: Polymarket, Kalshi, OpticOdds | planned | Signed source results from Nitro witnesses; no profile is qualified for production | 3 | mirror.prepare-and-open, mirror.resolve, mirror.halt, mirror.extend-close, mirror.finalize, mirror.expire, mirror.cleanup, mirror.preallocation-reclaim, mirror.progress-reserve-top-up, mirror.source-control, mirror.trust-root, mirror.source-discovery, mirror.reads, mirror.enableable-source-profile, keeper.mirror-claims, runner.mirror-sources |
| F3 | Every compatible SPL and Token-2022 currency; governed freeze-capable mints | implemented | Six decimals only; small extension allowlist | 4 | referral.currency-treasury, treasury.currency-protocol, referral.currency-earnings, referral.currency-claim, referral.currency-rollup, currency.register, currency.freeze-exception, currency.decimal-generalization |
| F4 | Fee sharing: creator, referral, maker, builder codes | implemented | Implemented | 2 | fees.schedule, fees.creator-fee, referral.set-referrer, referral.currency-treasury, referral.currency-earnings, referral.currency-claim, referral.currency-rollup, fees.maker-rebate, builder.approval, builder.payout, treasury.recipients |
| F5 | Splines for market makers | implemented | Implemented | 6 | spline.init, spline.update-shape, spline.update-mid, spline.rotate-quote-authority, spline.attach, spline.fill, spline.settle, spline.recover, spline.vault-deposit, spline.vault-withdraw, spline.close, spline.no-taker-fills, liquidity.multi-maker |
| F6 | In-house attestations on Nitro Enclaves, Seesaw and third parties | implemented | Implemented | 3 | witness.nitro-attestation |
| F7 | Fully on-chain order book | implemented | Implemented | 5 | funding.deposit, funding.withdraw, order.limit, order.post-only, order.immediate-or-cancel, order.fill-or-kill, order.partial-fills, order.minimum-fill, order.post-only-cross.reject, order.post-only-cross.slide, order.self-trade-prevention, order.execution-deadline, order.resting-expiry, order.quote-bounds, order.slippage-bound, order.match-limit, order.expected-fee-epoch, order.client-order-id, order.batch-post-only, order.reduce, order.cancel-by-id, order.cancel-all, order.price-bounded-cancel, order.wallet-funded, order.prefunded, orderbook.bounded-indexes, order.resumable-mass-cancel, order.cancel-by-client-id |
| F8 | Full protocol specification and formal verification | planned | Substantial work; whole-implementation claim not established | 15 | verification.traceability-chain |
| F9 | Rust, Python, TypeScript SDKs from an IDL, with examples | planned | SDKs exist; IDL models 26 of 97 routes; packages unpublished | 13 | idl.executable-route-models, sdk.publication |
| F10 | ACE on Jito and Temporal | implemented | Implemented | 7 | spline.update-mid, spline.rotate-quote-authority, ace.provider-integration |
| F11 | Privacy with Helius Rings | planned | #741 draft plan, 32 capabilities | 12 | none |
| F12 | Web and mobile apps | planned | Implemented with parity and release gaps | 13 | app.shell, app.parity-and-release |
| F13 | Agentic trading | implemented | Foundations; stale agent skill | 2 | agent.tool-interface, agent.program-authority |
| M-A | Complete outcome-token lifecycle | implemented | Implemented | 6 | outcome.mint, outcome.withdraw-shares, outcome.merge, outcome.redeem |
| M-B | Professional order types and execution protections | implemented | Implemented in the program | 5 | funding.deposit, funding.withdraw, order.limit, order.post-only, order.immediate-or-cancel, order.fill-or-kill, order.partial-fills, order.minimum-fill, order.post-only-cross.reject, order.post-only-cross.slide, order.self-trade-prevention, order.execution-deadline, order.resting-expiry, order.quote-bounds, order.slippage-bound, order.match-limit, order.expected-fee-epoch, order.client-order-id, order.batch-post-only, order.reduce, order.cancel-by-id, order.cancel-all, order.price-bounded-cancel, order.wallet-funded, order.prefunded, order.ladder, order.read, order.cancel-by-client-id |
| M-C | Conditional and algorithmic execution | implemented | Implemented across keepers and the gateway | 10 | order.take-profit-limit, conditional.gateway-take-profit, conditional.stop-loss-keeper, conditional.stop-orders, conditional.parent-linked, algo.iceberg, algo.pegged, algo.smart-taker, algo.durable-execution-recovery |
| M-D | Permissionless lifecycle, settlement, and recovery | implemented | Implemented | 9 | lifecycle.end-price-capture, lifecycle.resolution, lifecycle.expiry, lifecycle.expired-order-reclaim, lifecycle.force-close, lifecycle.position-settlement, lifecycle.position-closure, lifecycle.abandoned-preparation-recovery, lifecycle.idle-seat-evacuation, lifecycle.market-close, lifecycle.rent-recovery, lifecycle.closer-reward-top-up, keeper.pyth-lifecycle |
| M-E | Independent operation and public integration infrastructure | planned | Substantial; app flows depend on the API for verifier context | 3 | independence.rpc-escape-hatch, mirror.enableable-source-profile, independence.third-party-stack, relay.pyth-updates, indexer.ingestion |
| M-F | Immutable market identity and precise settlement semantics | implemented | Implemented | 3 | market.create, mirror.prepare-and-open, mirror.resolve, mirror.halt, mirror.extend-close, mirror.finalize, mirror.expire, mirror.cleanup, mirror.preallocation-reclaim, mirror.progress-reserve-top-up, mirror.source-control, mirror.trust-root, mirror.source-discovery, mirror.reads, market.mirror-settlement-semantics |
| M-G | Multiple competing makers, series, bootstrapping | implemented | Implemented | 6 | spline.no-taker-fills, liquidity.multi-maker |
| M-H | Transparent, reproducible market discovery | implemented | Implemented | 8 | discovery.market-listing, discovery.reproducible-ranking |
| M-J | Embeds, analytics, bot adapters, onboarding, funding | implemented | Mixed | 4 | analytics.portfolio, embed.widget, adapters.exchange-api, adapters.ccxt-read, tooling.starter-bot, onboarding.tour, tooling.replay-simulation, gateway.order-entry, gateway.market-data, gateway.accounts-and-fees, funding.bridge-deposit, wallet.embedded |
| P-A | Strategy risk limits and owner-controlled agent permissions | implemented | Implemented | 5 | strategy.limits, agent.program-authority |
| P-B | Self-hostable MCP tool interface | implemented | Implemented | 10 | agent.tool-interface |
| P-C | Outcome-aware routing with complete sets | implemented | Implemented | 6 | outcome.merge, routing.outcome-aware |
| P-D | Replay, simulation, execution-quality analysis | implemented | Implemented | 11 | tooling.replay-simulation |
| P-E | Decimal-generalized currencies | implemented | Not implemented | 4 | currency.decimal-generalization |
| S1 | Shared liquidity, multi-maker, discovery together | implemented | Implemented | 6 | liquidity.multi-maker, discovery.reproducible-ranking |
| S2 | Bounded indexes, resumable cancellation, Market Tick | implemented | Implemented | 5 | order.cancel-all, orderbook.bounded-indexes, order.resumable-mass-cancel, orderbook.market-tick, order.cancel-by-client-id |
| S3 | Complete independent user journeys | planned | Not implemented | 2 | independence.third-party-stack |
| S4 | Executable interface and verification chain | planned | Partial | 15 | idl.executable-route-models, verification.traceability-chain |
| S5 | One authoritative capability registry | implemented | Not implemented | 2 | registry.capability-registry |
| C01 | Confidential wallet | planned | Draft plan | 12 | none |
| C02 | Confidential RFQ | planned | Draft plan | 12 | none |
| C03 | Protected order submission | planned | Draft plan | 12 | none |
| C04 | Sealed batch auctions | planned | Draft plan | 12 | none |
| C05 | Persistent limit-order commitments | planned | Draft plan | 12 | none |
| C06 | Continuous execution with identity privacy | planned | Draft plan | 12 | none |
| C07 | Partial fills | planned | Draft plan | 12 | none |
| C08 | Early close | planned | Draft plan | 12 | none |
| C09 | Transfer and novation | planned | Draft plan | 12 | none |
| C10 | Splits and merges | planned | Draft plan | 12 | none |
| C11 | Fungible shielded outcome claims | planned | Draft plan | 12 | none |
| C12 | Netting | planned | Draft plan | 12 | none |
| C13 | Private splines and liquidity | planned | Draft plan | 12 | none |
| C14 | Confidential mirror markets | planned | Draft plan | 12 | none |
| C15 | Fees and collector disclosure | planned | Draft plan | 12 | none |
| C16 | Rewards and analytics privacy | planned | Draft plan | 12 | none |
| C17 | Anonymous participation | planned | Draft plan | 12 | none |
| C18 | Private access | planned | Draft plan | 12 | none |
| C19 | Private market metadata | planned | Draft plan | 12 | none |
| C20 | Scoped disclosure | planned | Draft plan | 12 | none |
| C21 | Delegated automation | planned | Draft plan | 12 | none |
| C22 | Sponsorship and relayers | planned | Draft plan | 12 | none |
| C23 | Broader currencies | planned | Draft plan | 12 | none |
| C24 | Capacity utilization | planned | Draft plan | 12 | none |
| C25 | Cross-profile routing | planned | Draft plan | 12 | none |
| C26 | Independent recovery | planned | Draft plan | 12 | none |
| C27 | Version lifecycle and cleanup | planned | Draft plan | 12 | none |
| C28 | Margin and financed exposure | planned | Draft plan | 12 | none |
| C29 | Web Android CLI and SDK parity | planned | Draft plan | 12 | none |
| C30 | Deployment and operations | planned | Draft plan | 12 | none |
| C31 | Confidential collateral identity | planned | Draft plan | 12 | none |
| C32 | No privileged matcher plaintext access | planned | Draft plan | 12 | none |
| Q1 | TigerStyle coding rules | planned | Not adopted; baseline measured | 14 | none |
| Q2 | Ephyra property-based testing | planned | Not adopted | 15 | none |
| Q3 | PufferLib refactoring method | planned | Not adopted | 14 | none |
| Q4 | Maker-defined quote strategies evaluated in Seesaw | planned | Independent seats implemented (phase 6); strategy interface not implemented | 6 | none |
F1 Pyth markets with bring-your-own-key#
Roadmap section 9: Pyth markets with bring-your-own-key.
- Status: implemented; section 9 says: Implemented.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
F2 Mirror markets: Polymarket, Kalshi, OpticOdds#
Roadmap section 9: mirror markets of Polymarket, Kalshi and OpticOdds.
- Status: planned; section 9 says: Signed source results from Nitro witnesses; no profile is qualified for production.
- References: #757.
- Known limit: The Kalshi, Polymarket V2 and OpticOdds profiles take signed source results from Nitro witnesses (program/src/processor/source_market/, source-witness/crates/source-relations/src/). No profile is qualified for production: genuine captures, admitted witnesses and deployment policy are external signoffs (mirror.enableable-source-profile).
- Known limit: The legacy Reclaim processor path has been removed; signed-source markets use the source-market lifecycle.
- Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102.
F3 Every compatible SPL and Token-2022 currency; governed freeze-capable mints#
Roadmap section 9: every compatible SPL and Token-2022 currency, with governed admission of freeze-capable mints.
- Status: implemented; section 9 says: Six decimals only; small extension allowlist.
- References: #771.
- Known limit: The admitted decimal range is 6 to 9 (owner decision R4a of 2026-11-17); the Token-2022 extension allowlist is mint extension types 18 to 23 (R4b). Transfer fees, transfer hooks, permanent delegates, confidential transfers and mint close authority stay rejected.
- Known limit: The CLI, web, and Android support market creation in admitted classic SPL Token and Token-2022 currencies. The integration-branch client journeys still need recorded runs.
- Known limit: The CLI, web operations panel, and Android admin controls support WithdrawCurrencyProtocolTreasury (0x53); see treasury.currency-protocol for the remaining runtime evidence.
- Document disagreement (supports status implemented):
docs/internal/fable-prompts/ROADMAP.mdsays: Six decimals only; small extension allowlist The code: program/src/constants.rs admits settlement decimals 6 to 9 and program/src/validation/settlement_mint.rs admits Token-2022 mints with extension types 18 to 23; every capability of F3 is implemented, and the currency-market-lifecycle journeys pass at 6, 7, 8 and 9 decimals and on a Token-2022 group mint in normal and independent mode. - Last verified at
387d1cf71781d508aaac3b3c809754d0ebf9c6bf.
F4 Fee sharing: creator, referral, maker, builder codes#
Roadmap section 9: fee sharing for creators, referrers, makers and builders.
- Status: implemented; section 9 says: Implemented.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
F5 Splines for market makers#
Roadmap section 9: splines for market makers.
- Status: implemented; section 9 says: Implemented.
- Known limit: A placement can supply at most eight eligible spline seats.
- Known limit: Runtime runs of the journeys are deferred by owner decision of 2026-11-17.
- Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102.
F6 In-house attestations on Nitro Enclaves, Seesaw and third parties#
Roadmap section 9: in-house attestations on AWS Nitro Enclaves, operated by Seesaw and third parties.
- Status: implemented; section 9 says: Implemented.
- References: #757.
- Known limit: External signoff: live enclave measurements, their independent rebuild, and admission of production witnesses (see witness.nitro-attestation).
- Known limit: Runtime runs of the journeys are deferred by owner decision of 2026-11-17.
- Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102.
F7 Fully on-chain order book#
On-chain order placement and matching use indexed canonical orderbook and ledger accounts. Owners can cancel their active orders in bounded pages.
- Status: implemented; section 9 says: Implemented.
- Known limit: CancelOwnerOrders pages its work (at most 64 orders examined and 32 removed per call, program/src/instruction.rs:2223-2224) and excludes orders placed after the session cutoff; the six-order cancel-all bound is gone.
- Known limit: Runtime and release compute qualification remain deferred.
- Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102.
F8 Full protocol specification and formal verification#
Roadmap section 9: a full protocol specification and formal verification of the whole implementation.
- Status: planned; section 9 says: Substantial work; whole-implementation claim not established.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
F9 Rust, Python, TypeScript SDKs from an IDL, with examples#
Roadmap section 9: Rust, Python and TypeScript SDKs from an IDL, with examples.
- Status: planned; section 9 says: SDKs exist; IDL models 26 of 97 routes; packages unpublished.
- Document disagreement:
docs/internal/fable-prompts/ROADMAP.mdsays: Section 9 says the IDL models 26 of 97 routes. The code: idl/seesaw.json records wireInstructionCount 112, instructionModelCount 112 and unmodeledWireInstructionCount 0. - Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
F10 ACE on Jito and Temporal#
Roadmap section 9: Application Controlled Execution on Jito and Temporal.
- Status: implemented; section 9 says: Implemented.
- Known limit: External signoff: live BAM enrollment and Harmonic Custom Scheduler qualification (see ace.provider-integration).
- Known limit: Runtime runs of the journeys are deferred by owner decision of 2026-11-17.
- Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102.
F11 Privacy with Helius Rings#
Roadmap section 9: privacy with Helius Rings, the 32 capabilities of #741.
- Status: planned; section 9 says: #741 draft plan, 32 capabilities.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
F12 Web and mobile apps#
Roadmap section 9: the web and mobile apps.
- Status: planned; section 9 says: Implemented with parity and release gaps.
- Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce.
F13 Agentic trading#
Roadmap section 9: agentic trading.
- Status: implemented; section 9 says: Foundations; stale agent skill.
- Known limit: docs/features/agent-tools.md, docs/sdk/ai-agents.md and skills/seesaw/SKILL.md describe the agent tool server (packages/agent-mcp); the instruction tables of the last two are generated by scripts/generate_agent_abi_facts.mjs.
- Known limit: The server has two unattended modes: operator-policy, whose policy the server process enforces, and program-strategy-limits, whose limits the program enforces for a registered delegate. The agent-workflow journey runs in operator-policy mode (its matrix cells were recorded at 36fb708e6, outside this branch's history). The agent-strategy-limits journey covers program-strategy-limits; its runtime run deferred by owner decision of 2026-11-17.
- Document disagreement (supports status implemented):
docs/internal/fable-prompts/ROADMAP.mdsays: Foundations; stale agent skill The code: packages/agent-mcp/src/server.ts serves the read, planning and execution tools, with schemas generated from the IDL; packages/agent-mcp/src/authority/programStrategy.ts binds execution to the program-enforced strategy limits; skills/seesaw/SKILL.md points to the server and its instruction tables are generated. Both capabilities of F13 are implemented; runtime run of agent-strategy-limits deferred by owner decision of 2026-11-17. - Last verified at
1d113f2d205ff14d3d9e223ad6f8d535f56b39a4.
M-A Complete outcome-token lifecycle#
Mint outcome tokens, withdraw funded ledger shares, merge from wallet and ledger before resolution, and redeem after resolution.
- Status: implemented; section 9 says: Implemented.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
M-B Professional order types and execution protections#
Single and batch order placement, execution protections, cancellation and funding-aware reduction are exposed through the program and clients.
- Status: implemented; section 9 says: Implemented in the program.
- Known limit: Both post-only batch instructions reject crossing entries.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
M-C Conditional and algorithmic execution#
Roadmap section 9: conditional and algorithmic execution across keepers and the gateway.
- Status: implemented; section 9 says: Implemented across keepers and the gateway.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
M-D Permissionless lifecycle, settlement, and recovery#
Roadmap section 9: permissionless lifecycle, settlement and recovery.
- Status: implemented; section 9 says: Implemented.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
M-E Independent operation and public integration infrastructure#
Roadmap section 9: independent operation and public integration infrastructure.
- Status: planned; section 9 says: Substantial; app flows depend on the API for verifier context.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
M-F Immutable market identity and precise settlement semantics#
Roadmap section 9: immutable market identity and precise settlement semantics.
- Status: implemented; section 9 says: Implemented.
- Known limit: External signoff: qualification of the mirror relations against genuine production captures (see market.mirror-settlement-semantics).
- Known limit: Runtime runs of the journeys are deferred by owner decision of 2026-11-17.
- Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102.
M-G Multiple competing makers, series, bootstrapping#
Roadmap section 9: multiple competing makers, series and bootstrapping.
- Status: implemented; section 9 says: Implemented.
- References: #630.
- Known limit: Runtime runs of the journeys are deferred by owner decision of 2026-11-17.
- Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102.
M-H Transparent, reproducible market discovery#
Roadmap section 9: transparent, reproducible market discovery.
- Status: implemented; section 9 says: Implemented.
- References: #634.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
M-J Embeds, analytics, bot adapters, onboarding, funding#
Roadmap section 9: embeds, analytics, bot adapters, onboarding and funding.
- Status: implemented; section 9 says: Mixed.
- Known limit: Funding part (phase 4): Relay delivers mainnet USDT only, and both apps offer the bridge only when the funded settlement mint is mainnet USDT (bridgeAvailableFor in apps/web/lib/vendors/config.ts and apps/mobile/src/vendors/config.ts). Kept by the ruling of 2026-11-05 in docs/internal/archive/superpowers/plans/2026-11-05-currency-and-canonical-market-reconciliation.md section 4 (row F13 Relay bridge).
- Known limit: Phase 11 part (embeds, analytics, onboarding): see embed.widget, analytics.portfolio, onboarding.tour and tooling.replay-simulation. The embedded wallet on mobile is out of phase 11 by owner decision of 2026-11-17; the Seeker Connect device matrix is not run; the phase 11 journeys and suites have not run on a stack unless the matrix records it.
- Document disagreement (supports status implemented):
docs/internal/fable-prompts/ROADMAP.mdsays: Mixed The code: Every capability row of M-J is implemented at this commit, the last being tooling.replay-simulation (packages/replay/src/lib.rs). - Last verified at
2a5660b2f4fdafe0236d43a8f9e7b7aaa870ba42.
P-A Strategy risk limits and owner-controlled agent permissions#
Phase 5 supplies owner-configured risk limits and signed delegation for program strategy actions. The roadmap item also covers agent-server authority in Phase 10.
- Status: implemented; section 9 says: Implemented.
- Known limit: Phase 5 implements the program strategy limits (strategy.limits); phase 10 binds the agent server to them (agent.program-authority).
- Known limit: Runtime runs of the journeys are deferred by owner decision of 2026-11-17.
- Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102.
P-B Self-hostable MCP tool interface#
Roadmap section 9: a self-hostable MCP tool interface.
- Status: implemented; section 9 says: Implemented.
- Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102.
P-C Outcome-aware routing with complete sets#
Compare direct and complete-set routes and submit guarded trades atomically with an on-chain balance assertion.
- Status: implemented; section 9 says: Implemented.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
P-D Replay, simulation, execution-quality analysis#
Roadmap section 9: replay, simulation and execution-quality analysis.
- Status: implemented; section 9 says: Implemented.
- Known limit: See tooling.replay-simulation: no market impact model, modeled routes only, six mirrored-glue sites, and fixtures that must be recaptured for the current wire digest before the final run.
- Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102.
P-E Decimal-generalized currencies#
Roadmap section 9: decimal-generalized currencies.
- Status: implemented; section 9 says: Not implemented.
- References: #771.
- Known limit: The admitted decimal range is 6 to 9 (owner decision R4a of 2026-11-17, docs/internal/decisions/2026-11-17-settlement-currencies-r4.md); a lower range needs a minimum-lot design (docs/internal/settlement-currencies/design.md section 4).
- Known limit: Config thresholds apply to atoms unchanged in every currency (owner decision Q3 = T-0).
- Document disagreement (supports status implemented):
docs/internal/fable-prompts/ROADMAP.mdsays: Not implemented The code: program/src/constants.rs admits settlement decimals 6 to 9, CreateMarket gives the outcome mints the currency decimals (program/src/processor/create_market.rs), and the currency-market-lifecycle journeys pass at every admitted decimal count in normal and independent mode. - Last verified at
387d1cf71781d508aaac3b3c809754d0ebf9c6bf.
S1 Shared liquidity, multi-maker, discovery together#
Roadmap section 9: shared liquidity, multiple makers and discovery together.
- Status: implemented; section 9 says: Implemented.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
S2 Bounded indexes, resumable cancellation, Market Tick#
Bounded trader-seat, owner-order and client-ID indexes support primary lookup and resumable cancellation. Spline publishers can opt in to Market Tick windows.
- Status: implemented; section 9 says: Implemented.
- Known limit: Market Tick mainnet deployment remains an external signoff.
- Known limit: Release compute-budget certification remains deferred.
- Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102.
S3 Complete independent user journeys#
Roadmap section 9: complete independent user journeys.
- Status: planned; section 9 says: Not implemented.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
S4 Executable interface and verification chain#
Roadmap section 9: an executable interface and a verification chain.
- Status: planned; section 9 says: Partial.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
S5 One authoritative capability registry#
Roadmap section 9: one authoritative capability registry.
- Status: implemented; section 9 says: Not implemented.
- Document disagreement (supports status implemented):
docs/internal/fable-prompts/ROADMAP.mdsays: Not implemented The code: scripts/check_capability_registry.mjs, scripts/generate_capability_registry.mjs and docs/reference/capabilities.json exist on this branch and run in make docs-check. - Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce.
C01 Confidential wallet#
Capability C01 of the confidential-markets plan of PR #741: confidential wallet. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C02 Confidential RFQ#
Capability C02 of the confidential-markets plan of PR #741: confidential rfq. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C03 Protected order submission#
Capability C03 of the confidential-markets plan of PR #741: protected order submission. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C04 Sealed batch auctions#
Capability C04 of the confidential-markets plan of PR #741: sealed batch auctions. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C05 Persistent limit-order commitments#
Capability C05 of the confidential-markets plan of PR #741: persistent limit-order commitments. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C06 Continuous execution with identity privacy#
Capability C06 of the confidential-markets plan of PR #741: continuous execution with identity privacy. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C07 Partial fills#
Capability C07 of the confidential-markets plan of PR #741: partial fills. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C08 Early close#
Capability C08 of the confidential-markets plan of PR #741: early close. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C09 Transfer and novation#
Capability C09 of the confidential-markets plan of PR #741: transfer and novation. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C10 Splits and merges#
Capability C10 of the confidential-markets plan of PR #741: splits and merges. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C11 Fungible shielded outcome claims#
Capability C11 of the confidential-markets plan of PR #741: fungible shielded outcome claims. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C12 Netting#
Capability C12 of the confidential-markets plan of PR #741: netting. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C13 Private splines and liquidity#
Capability C13 of the confidential-markets plan of PR #741: private splines and liquidity. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C14 Confidential mirror markets#
Capability C14 of the confidential-markets plan of PR #741: confidential mirror markets. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C15 Fees and collector disclosure#
Capability C15 of the confidential-markets plan of PR #741: fees and collector disclosure. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C16 Rewards and analytics privacy#
Capability C16 of the confidential-markets plan of PR #741: rewards and analytics privacy. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C17 Anonymous participation#
Capability C17 of the confidential-markets plan of PR #741: anonymous participation. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C18 Private access#
Capability C18 of the confidential-markets plan of PR #741: private access. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C19 Private market metadata#
Capability C19 of the confidential-markets plan of PR #741: private market metadata. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C20 Scoped disclosure#
Capability C20 of the confidential-markets plan of PR #741: scoped disclosure. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C21 Delegated automation#
Capability C21 of the confidential-markets plan of PR #741: delegated automation. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C22 Sponsorship and relayers#
Capability C22 of the confidential-markets plan of PR #741: sponsorship and relayers. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C23 Broader currencies#
Capability C23 of the confidential-markets plan of PR #741: broader currencies. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C24 Capacity utilization#
Capability C24 of the confidential-markets plan of PR #741: capacity utilization. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C25 Cross-profile routing#
Capability C25 of the confidential-markets plan of PR #741: cross-profile routing. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C26 Independent recovery#
Capability C26 of the confidential-markets plan of PR #741: independent recovery. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C27 Version lifecycle and cleanup#
Capability C27 of the confidential-markets plan of PR #741: version lifecycle and cleanup. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C28 Margin and financed exposure#
Capability C28 of the confidential-markets plan of PR #741: margin and financed exposure. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C29 Web Android CLI and SDK parity#
Capability C29 of the confidential-markets plan of PR #741: web, Android, CLI and SDK parity. The B08 vault foundation covers local wallet operations. Full confidential market parity remains open.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C30 Deployment and operations#
Capability C30 of the confidential-markets plan of PR #741: deployment and operations. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C31 Confidential collateral identity#
Capability C31 of the confidential-markets plan of PR #741: confidential collateral identity. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
C32 No privileged matcher plaintext access#
Capability C32 of the confidential-markets plan of PR #741: no privileged matcher plaintext access. A draft plan; nothing is built.
- Status: planned; section 9 says: Draft plan.
- References: #741.
- Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b.
Q1 TigerStyle coding rules#
Roadmap section 9: TigerStyle coding rules (added 2026-11-26).
- Status: planned; section 9 says: Not adopted; baseline measured.
- Last verified at
23aa84a6939a10045071b684438e6d1c48204004.
Q2 Ephyra property-based testing#
Roadmap section 9: Ephyra property-based testing (added 2026-11-26).
- Status: planned; section 9 says: Not adopted.
- Last verified at
23aa84a6939a10045071b684438e6d1c48204004.
Q3 PufferLib refactoring method#
Roadmap section 9: PufferLib refactoring method (added 2026-11-26).
- Status: planned; section 9 says: Not adopted.
- Last verified at
23aa84a6939a10045071b684438e6d1c48204004.
Q4 Maker-defined quote strategies evaluated in Seesaw#
Roadmap section 9: maker-defined quote strategies evaluated in Seesaw (added 2026-11-26).
- Status: planned; section 9 says: Independent seats implemented (phase 6); strategy interface not implemented.
- Last verified at
23aa84a6939a10045071b684438e6d1c48204004.
Capabilities#
Surface columns: Y yes, P partial, N no, - not applicable. Order: Program, IDL, TypeScript SDK, Rust SDK, Python SDK, CLI, Indexer, API, Web, Android, iOS, Examples, Agent MCP server. A row that leaves out the optional Agent MCP server surface reads N there.
| ID | Status | Roadmap | Surfaces | Journeys (normal / independent) | Done |
|---|---|---|---|---|---|
confidential.market-establishment | implemented | unplaced | YYYNYNNNNNNNN | 0 / 0 | no |
confidential.terminal-record | implemented | unplaced | YYYNYNNNNNNNN | 0 / 0 | no |
confidential.wallet-vault | implemented | unplaced | --YPPY--PPNYN | 0 / 0 | no |
market.create | implemented | F1, M-F | YYYYYYYPYYNYN | 1 / 1 | no |
oracle.byo-pyth-key | implemented | F1 | --YPPY--YYNYN | 0 / 0 | no |
lifecycle.end-price-capture | implemented | M-D, F1 | YYYYYYYPYYNYN | 1 / 1 | no |
lifecycle.resolution | implemented | M-D, F1 | YYYYYYYPYYNYN | 1 / 1 | no |
lifecycle.expiry | implemented | M-D, F1 | YYYYYYYPYYNYN | 0 / 0 | no |
lifecycle.expired-order-reclaim | implemented | M-D | YYYYYYYPYYNYN | 0 / 0 | no |
lifecycle.force-close | implemented | M-D | YYYYYYYPPPNPN | 0 / 0 | no |
lifecycle.position-settlement | implemented | M-D | YYYYYYPPYYNYN | 0 / 0 | no |
lifecycle.position-closure | implemented | M-D | YYYYYYPNYYNYN | 0 / 0 | no |
lifecycle.abandoned-preparation-recovery | implemented | M-D | YYYYYY-NYYNYN | 0 / 0 | no |
lifecycle.idle-seat-evacuation | implemented | M-D | YYYYYYPNYYNYN | 0 / 0 | no |
lifecycle.market-close | implemented | M-D | YYYYYYYPYYNYN | 0 / 0 | no |
lifecycle.rent-recovery | implemented | M-D | YYYYYY-NYYNYN | 0 / 0 | no |
lifecycle.closer-reward-top-up | implemented | M-D | YYYYYYPPYYNYN | 0 / 0 | no |
funding.deposit | implemented | M-B, F7 | YYYYYYYPYYNYN | 1 / 1 | no |
funding.withdraw | implemented | M-B, F7 | YYYYYYYPYYNYN | 0 / 0 | no |
outcome.mint | implemented | M-A | YYYYYYYYYYNYN | 1 / 1 | no |
outcome.withdraw-shares | implemented | M-A | YYYYYYYYYYNYN | 0 / 0 | no |
outcome.merge | implemented | M-A, P-C | YYYYYYYYYYNYN | 0 / 0 | no |
outcome.redeem | implemented | M-A | YYYYYYYYYYNYN | 1 / 1 | no |
order.limit | implemented | M-B, F7 | YYYYYYYYYYNYN | 0 / 0 | no |
order.post-only | implemented | M-B, F7 | YYYYYYYYYYNYN | 1 / 1 | no |
order.immediate-or-cancel | implemented | M-B, F7 | YYYYYYYYYYNYN | 1 / 1 | no |
order.fill-or-kill | implemented | M-B, F7 | YYYYYY-YYYNYN | 0 / 0 | no |
order.partial-fills | implemented | M-B, F7 | YYYYYYYYYYNYN | 0 / 0 | no |
order.minimum-fill | implemented | M-B, F7 | YYYYYY-YYYNYN | 0 / 0 | no |
order.post-only-cross.reject | implemented | M-B, F7 | YYYYYY-YYYNYN | 0 / 0 | no |
order.post-only-cross.slide | implemented | M-B, F7 | YYYYYY-YYYNYN | 0 / 0 | no |
order.self-trade-prevention | implemented | M-B, F7 | YYYYYYYYYYNYN | 0 / 0 | no |
order.execution-deadline | implemented | M-B, F7 | YYYYYY-YYYNYN | 0 / 0 | no |
order.resting-expiry | implemented | M-B, F7 | YYYYYYYYYYNYN | 0 / 0 | no |
order.quote-bounds | implemented | M-B, F7 | YYYYYY-YYYNYN | 0 / 0 | no |
order.slippage-bound | implemented | M-B, F7 | YYYYYY-YYYNYN | 0 / 0 | no |
order.match-limit | implemented | M-B, F7 | YYYYYY-YYYNYN | 0 / 0 | no |
order.expected-fee-epoch | implemented | M-B, F7 | YYYYYY-YYYNYN | 0 / 0 | no |
order.client-order-id | implemented | M-B, F7 | YYYYYYYYYYNYN | 0 / 0 | no |
order.batch-post-only | implemented | M-B, F7 | YYYYYYYYYYNYN | 0 / 0 | no |
order.reduce | implemented | M-B, F7 | YYYYYYYYYYNYN | 0 / 0 | no |
order.cancel-by-id | implemented | M-B, F7 | YYYYYYYYYYNYN | 1 / 1 | no |
order.cancel-all | implemented | M-B, F7, S2 | YYYYYYYYYYNYN | 0 / 0 | no |
order.price-bounded-cancel | implemented | M-B, F7 | YYYYYYYYYYNYN | 0 / 0 | no |
order.wallet-funded | implemented | M-B, F7 | YYYYYYYYYYNYN | 0 / 0 | no |
order.prefunded | implemented | M-B, F7 | YYYYYYYYYYNYN | 0 / 0 | no |
order.ladder | implemented | M-B | YYYYYYYYYYNYN | 0 / 0 | no |
order.read | implemented | M-B | --YYYYYYYYNYN | 0 / 0 | no |
fees.schedule | implemented | F4 | Y-YYYYYYYYNYN | 1 / 1 | no |
fees.creator-fee | implemented | F4 | YYYYYYYYYYNYN | 0 / 0 | no |
referral.set-referrer | implemented | F4 | YYYYYYYYYYNYN | 0 / 0 | no |
referral.currency-treasury | implemented | F4, F3 | YYYYYYPNYYNYN | 0 / 0 | no |
treasury.currency-protocol | implemented | F3 | YYYYYYPNYYNYN | 0 / 0 | no |
referral.currency-earnings | implemented | F4, F3 | YYYYYYPPYYNYN | 0 / 0 | no |
referral.currency-claim | implemented | F4, F3 | YYYYYYYYYYNYN | 0 / 0 | no |
referral.currency-rollup | implemented | F4, F3 | YYYYYYYPYYNYN | 0 / 0 | no |
fees.maker-rebate | implemented | F4 | YYYYYYYPYYNYN | 0 / 0 | no |
builder.approval | implemented | F4 | YYYYYYYPYYNYN | 0 / 0 | no |
builder.payout | implemented | F4 | YYYYYYYP--NYN | 0 / 0 | no |
treasury.recipients | implemented | F4 | YYYYYPPPYYNYN | 0 / 0 | no |
currency.register | implemented | F3 | YYYYYYYPYYNYN | 1 / 1 | no |
currency.freeze-exception | implemented | F3 | YYYYYYYPYYNYN | 1 / 1 | no |
spline.init | implemented | F5 | YYYYYYYN---YN | 0 / 0 | no |
spline.update-shape | implemented | F5 | YYYYYYYN---PN | 0 / 0 | no |
spline.update-mid | implemented | F5, F10 | YYYYYY-N---YN | 0 / 0 | no |
spline.rotate-quote-authority | implemented | F5, F10 | YYYYYY-N---YN | 0 / 0 | no |
spline.attach | implemented | F5 | YYYYYYYN---PN | 0 / 0 | no |
spline.fill | implemented | F5 | YYYYYYYPYY-YN | 0 / 0 | no |
spline.settle | implemented | F5 | YYYYYYYN---YN | 0 / 0 | no |
spline.recover | implemented | F5 | YYYYYYYN---YN | 0 / 0 | no |
spline.vault-deposit | implemented | F5 | YYYYYYYN---YN | 0 / 0 | no |
spline.vault-withdraw | implemented | F5 | YYYYYYYN---YN | 0 / 0 | no |
spline.close | implemented | F5 | YYYYYYYN---YN | 0 / 0 | no |
mirror.prepare-and-open | implemented | F2, M-F | YYYYYYPPYYNPN | 0 / 0 | no |
mirror.resolve | implemented | F2, M-F | YYYYYYYPYYNPN | 0 / 0 | no |
mirror.halt | implemented | F2, M-F | YYYYYYYPYYNPN | 0 / 0 | no |
mirror.extend-close | implemented | F2, M-F | YYYYYYYPYYNPN | 0 / 0 | no |
mirror.finalize | implemented | F2, M-F | YYYYYYYPYYNPN | 0 / 0 | no |
mirror.expire | implemented | F2, M-F | YYYYYYYPYYNYN | 0 / 0 | no |
mirror.cleanup | implemented | F2, M-F | YYYYYYYPYYNYN | 0 / 0 | no |
mirror.preallocation-reclaim | implemented | F2, M-F | YYYYYYPNYYNYN | 0 / 0 | no |
mirror.progress-reserve-top-up | implemented | F2, M-F | YYYYYYNNYYNYN | 0 / 0 | no |
mirror.source-control | implemented | F2, M-F | YYYYYYPNYYNYN | 0 / 0 | no |
mirror.trust-root | implemented | F2, M-F | YYYYYYPNYYNYN | 0 / 0 | no |
mirror.source-discovery | implemented | F2, M-F | --YYYY-YYYNYN | 0 / 0 | no |
mirror.reads | implemented | F2, M-F | --YPPYYYYYNPN | 0 / 0 | no |
governance.config-init | implemented | unplaced | YYYYYYYPYYNYN | 0 / 0 | no |
governance.authority-rotation | implemented | unplaced | YYYYYYPPYYNYN | 0 / 0 | no |
governance.pause | implemented | unplaced | YYYYYYPPYYNYN | 0 / 0 | no |
governance.pauser | implemented | unplaced | YYYYYYYPYYNYN | 0 / 0 | no |
governance.post-only-mode | implemented | unplaced | YYYYYYPPYYNYN | 0 / 0 | no |
governance.tick-size | implemented | unplaced | YYYYYYYPYYNYN | 0 / 0 | no |
governance.min-resting-notional | implemented | unplaced | YYYYYYYPYYNYN | 0 / 0 | no |
governance.fee-config | implemented | unplaced | YYYYYYYPYYNYN | 0 / 0 | no |
governance.market-cap | implemented | unplaced | YYYYYYYPYYNYN | 0 / 0 | no |
governance.market-emergency | implemented | unplaced | YYYYYYPPYYNYN | 0 / 0 | no |
governance.operational-params | implemented | unplaced | YYYYYYPPYYNYN | 0 / 0 | no |
governance.admin-console | implemented | unplaced | -----YYYYYNYN | 0 / 0 | no |
compliance.geo-policy | implemented | unplaced | --YYYY-YYYN-N | 0 / 0 | no |
app.localization | implemented | unplaced | --------YYN-N | 0 / 0 | no |
discovery.market-listing | implemented | M-H | --YYYYYYYYNYN | 0 / 0 | no |
discovery.watchlist | implemented | unplaced | --YYYY-YYYNYN | 0 / 0 | no |
engagement.leaderboard | implemented | unplaced | --YPPYYYYYNYN | 0 / 0 | no |
engagement.achievements | implemented | unplaced | --YNNYYYYPNPN | 0 / 0 | no |
notifications.alerts | implemented | unplaced | --YYYYYYYYNYN | 2 / 0 | no |
social.profile-and-share | implemented | unplaced | --YYYY-YYYNYN | 0 / 0 | no |
analytics.portfolio | implemented | M-J | --YYYYYYYYNYN | 0 / 0 | no |
embed.widget | implemented | M-J | --YYYY--Y-NYN | 0 / 1 | no |
adapters.exchange-api | implemented | M-J | --YYYY-Y--NYN | 0 / 0 | no |
adapters.ccxt-read | implemented | M-J | ----------NPN | 0 / 0 | no |
tooling.starter-bot | implemented | M-J | ----------NNN | 0 / 0 | no |
onboarding.tour | implemented | M-J | --------YYN-N | 1 / 0 | no |
app.shell | implemented | F12 | --------YYN-N | 0 / 0 | no |
docs.site | implemented | unplaced | --------YYN-N | 0 / 0 | no |
ops.status | implemented | unplaced | --YYYYYYYYN-N | 0 / 0 | no |
app.static-pages | implemented | unplaced | --------YYN-N | 0 / 0 | no |
cli.configuration | implemented | unplaced | -----Y----N-N | 0 / 0 | no |
independence.rpc-escape-hatch | implemented | M-E | --YYY---YYNYN | 0 / 0 | no |
registry.capability-registry | implemented | S5 | --------Y-N-N | 0 / 0 | no |
idl.executable-route-models | implemented | F9, S4 | -YYPP-----N-N | 0 / 0 | no |
order.take-profit-limit | implemented | M-C | YYYYYYYYYYNYN | 0 / 0 | no |
conditional.gateway-take-profit | implemented | M-C | --YYYY-YYYNYN | 0 / 0 | no |
conditional.stop-loss-keeper | implemented | M-C | --YYYY-YYYNYN | 0 / 0 | no |
conditional.stop-orders | implemented | M-C | --YYYY-YYYNYN | 0 / 0 | no |
conditional.parent-linked | implemented | M-C | --YYYY-YYYNYN | 0 / 0 | no |
algo.iceberg | implemented | M-C | --YYYY-YYYNYN | 0 / 0 | no |
algo.pegged | implemented | M-C | --YYYY-YYYNYN | 0 / 0 | no |
algo.smart-taker | implemented | M-C | --YYYY-YYYNYN | 0 / 0 | no |
algo.durable-execution-recovery | implemented | M-C | -------Y--N-N | 0 / 0 | no |
mirror.enableable-source-profile | planned | F2, M-E | NNNNNNNNNNNNN | 0 / 0 | no |
spline.no-taker-fills | implemented | F5, M-G | YYYYYYYPPP-YN | 0 / 0 | no |
app.parity-and-release | planned | F12 | NNNNNNNNNNNNN | 0 / 0 | no |
market.mirror-settlement-semantics | implemented | M-F | Y---------NNN | 0 / 0 | no |
witness.nitro-attestation | implemented | F6 | YYYYYYNNYYNYN | 0 / 0 | no |
currency.decimal-generalization | implemented | P-E, F3 | YYYYYYYYYYNPN | 5 / 5 | no |
orderbook.bounded-indexes | implemented | S2, F7 | Y----Y--YYNYN | 0 / 0 | no |
order.resumable-mass-cancel | implemented | S2, F7 | YYYYYYPYYYNYN | 0 / 0 | no |
orderbook.market-tick | implemented | S2 | YYYYYY-PPPNYN | 0 / 0 | no |
strategy.limits | implemented | P-A | YYYYYYYYYYNYN | 0 / 0 | no |
order.cancel-by-client-id | implemented | F7, M-B, S2 | YYYYYYYYYYNYN | 0 / 0 | no |
liquidity.multi-maker | implemented | M-G, S1, F5 | YYYYYYYPPP-PN | 0 / 0 | no |
routing.outcome-aware | implemented | P-C | YYYYYY--YY-YN | 0 / 0 | no |
ace.provider-integration | implemented | F10 | YYYYYYPPPPNYN | 0 / 0 | no |
discovery.reproducible-ranking | implemented | M-H, S1 | --YYYYYYYYNYY | 1 / 1 | no |
independence.third-party-stack | planned | M-E, S3 | NNNNNNPPNNNNN | 0 / 0 | no |
agent.tool-interface | implemented | F13, P-B | ----------NNY | 1 / 1 | no |
agent.program-authority | implemented | F13, P-A | ----------NNY | 0 / 0 | no |
tooling.replay-simulation | implemented | P-D, M-J | --YPPY-Y--NYN | 0 / 0 | no |
sdk.publication | planned | F9 | NNNNNNNNNNNNN | 0 / 0 | no |
verification.traceability-chain | planned | S4, F8 | NNNNNNNNNNNNN | 0 / 0 | no |
gateway.order-entry | implemented | M-J | --YYYY-Y--NYN | 0 / 0 | no |
gateway.market-data | implemented | M-J | --YYYY-Y--NYN | 0 / 0 | no |
gateway.accounts-and-fees | implemented | M-J | --YYYY-Y--NYN | 0 / 0 | no |
keeper.pyth-lifecycle | implemented | M-D, F1 | -------P--NNN | 0 / 0 | no |
relay.pyth-updates | implemented | F1, M-E | --YYYY-YYNNYN | 0 / 0 | no |
keeper.mirror-claims | implemented | F2 | --Y----P---YN | 0 / 0 | no |
runner.mirror-sources | implemented | F2 | -----YPP---NN | 0 / 0 | no |
tooling.swarm-simulation | implemented | unplaced | ----------N-N | 0 / 0 | no |
funding.bridge-deposit | implemented | M-J | --YYYY--YYNYN | 0 / 0 | no |
wallet.embedded | implemented | M-J | --------YPN-N | 0 / 0 | no |
indexer.ingestion | implemented | M-E | ------Y---N-N | 0 / 0 | no |
confidential.market-establishment Establish a confidential market account#
- Status: implemented. Last verified at
55dd41558a63b51697a33958cfa4d6fe1ac15914. - Roadmap items: unplaced (B05 establishes the public account and native terminal foundation before any C01–C32 confidential trading or privacy capability is delivered.). Owning phase: 12.
- References: #741.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 missing (sdkRust is no); 5 missing (examples is no); 6 missing (cli is no); 7 missing (indexer is no; api is no); 8 missing (web is no; android is no); 9 missing (no normal-mode journey; no independent-mode journey); 10 missing (no formal obligation listed); 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
CreateConfidentialMarket (0x6B) binds a 248-byte policy and a 47-byte native definition opening to a 616-byte CONFMRKT PDA. The public B05 path admits only identity mode 1, native terminal adapter 1 version 1, an active currency, an inline cap and an authenticated Pyth Pull opening; the payer and bound creator sign.
- Source:
program/src/processor/mod.rs,program/src/state/confidential_market.rs,program/src/abi_compaction.rs - Routes:
CreateConfidentialMarket(0x6B),OpenConfidentialJob(0x70),AppendConfidentialJobPage(0x71),SealConfidentialJob(0x72),CommitConfidentialJob(0x73),AbortConfidentialJob(0x74),TopUpConfidentialWorkBudget(0x75),IncreaseConfidentialCap(0x76),CloseConfidentialMarket(0x77),FundConfidentialEscrow(0x78),PrepareConfidentialStep(0x79),RefundConfidentialObject(0x7A),CreateConfidentialClaims(0x7B),MaterializeConfidentialClaim(0x7C),RefundConfidentialClaim(0x7D),UploadConfidentialCapsule(0x7E),ReclaimConfidentialCapsuleSlot(0x7F),ActivateConfidentialRfq(0x80),SettleConfidentialCell(0x81),SettleConfidentialPublicCell(0x82),ClaimConfidentialRole(0x83),CloseConfidentialCellByAgreement(0x84),NovateConfidentialCell(0x85),AssignConfidentialCell(0x86),ReassignConfidentialClaim(0x87),RekeyConfidentialCell(0x88),PostConfidentialRemainingOrder(0x89),FillConfidentialOrder(0x8A),RefundConfidentialRemainder(0x8B),SplitConfidentialCountedRun(0x8C),ReplaceConfidentialCellDyadic(0x8D),SplitConfidentialCell(0x8E),RekeyConfidentialSplitRole(0x8F),MergeConfidentialCells(0x90),CertifyConfidentialClosure(0x91),ReclaimConfidentialStorage(0x92),CommitConfidentialOrder(0x93),CancelConfidentialOrder(0x94),SealConfidentialEpochCutoff(0x95),RevealConfidentialOrder(0x96),ActivateConfidentialStanding(0x97),FinalizeConfidentialEpoch(0x98),SubmitConfidentialClearingPage(0x99),VerifyConfidentialPlan(0x9A),ExecuteConfidentialBatchAtomic(0x9B),CompleteConfidentialBatch(0x9C),CommitConfidentialStanding(0x9D),CancelConfidentialStanding(0x9E),ReleaseConfidentialStanding(0x9F),AmendConfidentialStanding(0xA0),LockConfidentialSource(0xA1),NormalizeConfidentialSource(0xA2),ReleaseConfidentialSourceLock(0xA3),CreateShieldedOutcomeMints(0xA4),MintShieldedPair(0xA5),MergeShieldedSet(0xA6),RedeemShieldedTerminal(0xA7),BridgeConfidentialCellToTokens(0xA8),BridgeTokensToConfidentialCell(0xA9),OpenConfidentialRoute(0xAA),RefundConfidentialRouteLeg(0xAB),ActivateConfidentialFinancedCell(0xAC),RepayConfidentialFinancing(0xAD),SettleConfidentialFinancedRole(0xAE),ExchangeConfidentialCellPartForTokens(0xAF),ExchangeTokensForConfidentialCellPart(0xB0),AdmitContinuousAction(0xB1),ProcessContinuousAction(0xB2),FillContinuousStep(0xB3),TriggerContinuousRecoveryBarrier(0xB4),PublishSplineOffer(0xB5),FillSplineOffer(0xB6),ExpireSplineOffer(0xB7),GrantSplineDelegate(0xB8),RevokeSplineDelegate(0xB9),VerifyContinuousTreeParity(0xBA),RebuildContinuousTree(0xBB),DepositConfidentialReservePool(0xBC),WithdrawConfidentialReservePool(0xBD),RefreshReservePoolOffer(0xBE) - Events:
ConfidentialMarketCreated,ConfidentialJobAdmissionRecorded,ConfidentialJobSealed,ConfidentialJobCommitted,ConfidentialJobAborted,ConfidentialWorkBudgetToppedUp,ConfidentialCapIncreased,ConfidentialMarketClosed,ConfidentialEscrowFunded,ConfidentialStepPrepared,ConfidentialObjectRefunded,ConfidentialClaimsCreated,ConfidentialClaimMaterialized,ConfidentialClaimRefunded,ConfidentialCapsuleUploaded,ConfidentialCapsuleSlotReclaimed,ConfidentialRfqActivated,ConfidentialCellSettled,ConfidentialPublicCellSettled,ConfidentialRoleClaimed,ConfidentialMirrorTerminalRecorded,ConfidentialCellClosedByAgreement,ConfidentialCellNovated,ConfidentialCellAssigned,ConfidentialClaimReassigned,ConfidentialCellRekeyed,ConfidentialRemainingOrderPosted,ConfidentialOrderFilled,ConfidentialRemainderRefunded,ConfidentialCountedRunSplit,ConfidentialCellReplacedDyadic,ConfidentialCellSplit,ConfidentialSplitRoleRekeyed,ConfidentialCellsMerged,ConfidentialFeeAssessed,ConfidentialClosureCertified,ConfidentialStorageReclaimed,ConfidentialOrderCommitted,ConfidentialOrderCancelled,ConfidentialEpochCutoffSealed,ConfidentialOrderRevealed,ConfidentialStandingActivated,ConfidentialEpochFinalized,ConfidentialClearingPageSubmitted,ConfidentialPlanVerified,ConfidentialBatchExecutedAtomic,ConfidentialBatchManifestFrozen,ConfidentialBatchReady,ConfidentialBatchCompleted,ConfidentialStandingCommitted,ConfidentialStandingCancelled,ConfidentialStandingReleased,ConfidentialStandingAmended,ConfidentialSourceLocked,ConfidentialSourceNormalized,ConfidentialSourceLockReleased,ShieldedOutcomeMintsCreated,ShieldedPairMinted,ShieldedSetMerged,ShieldedTerminalRedeemed,ConfidentialCellBridgedToTokens,TokensBridgedToConfidentialCell,ConfidentialRouteOpened,ConfidentialRouteLegRefunded,ConfidentialFinancedCellActivated,ConfidentialFinancingRepaid,ConfidentialFinancedRoleSettled,ConfidentialCellPartExchangedForTokens,TokensExchangedForConfidentialCellPart,ContinuousActionAdmitted,ContinuousActionProcessed,ContinuousStepFilled,ContinuousRecoveryBarrierTriggered,SplineOfferPublished,SplineOfferFilled,SplineOfferExpired,SplineDelegateGranted,SplineDelegateRevoked,ContinuousTreeParityFailed,ConfidentialReservePoolDeposited,ConfidentialReservePoolWithdrawn,ReservePoolOfferRefreshed,ConfidentialCollectorFeesAggregated - Error categories:
Confidential markets - CLI commands:
market create-confidential - Boundaries: callers A funded payer and the policy-bound public creator submit a valid Pyth opening.; signers payer, policy-bound creator; services Solana RPC, Pyth Pull Receiver.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/mod.rs, program/src/state/confidential_market.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/instructions.ts, packages/core/src/confidentialExtensionInstructions.ts | buildCreateConfidentialMarketIx and confidentialExtensionInstructions build all confidential market routes. |
| Rust SDK | no | none | The Rust SDK has confidential_extension builders for 0x70-0xBE; CreateConfidentialMarket builder is pending. |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py, packages/sdk-python/seesaw/confidential_extension_instructions.py | create_confidential_market and confidential_extension_instructions build all confidential market routes. |
| CLI | no | none | market create-confidential builds and sends the instruction (registerConfidentialMarketCommands, packages/cli/src/commands/market/confidential.ts). |
| Indexer | no | none | No indexed read model: the parser treats the route as recorder-projected and returns no instruction for it (apps/indexer/src/indexer/parser.ts). |
| API | no | none | No confidential-market creation API route exists. |
| Web | no | none | No confidential-market creation flow exists. |
| Android | no | none | No confidential-market creation flow exists. |
| iOS | no | none | No iOS confidential-market flow exists. |
| Examples | no | none | No B05 client example exists. |
- Journeys, normal mode: none. No journey for this route is defined or run. The TypeScript and Python SDKs and the CLI build it, and no journey runner maps it.
- Journeys, independent mode: none. No independent journey for this route is defined or run. The TypeScript and Python SDKs and the CLI build it, and no journey runner maps it.
- Formal obligations: none listed.
- Known limits:
- Only the public identity base/native profile is admitted. Private creator proofs, trading, claims, a Rust builder, API and app flows remain unimplemented.
- Runtime journey validation is deferred; this registry edit does not assert a passed B05 run.
confidential.terminal-record Record a confidential market terminal result#
- Status: implemented. Last verified at
55dd41558a63b51697a33958cfa4d6fe1ac15914. - Roadmap items: unplaced (B05 records a terminal commitment for its base/native account; it does not deliver confidential settlement, claims or any C01–C32 trading/privacy outcome.). Owning phase: 12.
- References: #741.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 missing (sdkRust is no); 5 missing (examples is no); 6 missing (cli is no); 7 missing (indexer is no; api is no); 8 missing (web is no; android is no); 9 missing (no normal-mode journey; no independent-mode journey); 10 missing (no formal obligation listed); 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
RecordConfidentialTerminal (0x6C) lets any signer record one terminal branch on a B05 market. Before timeout, native resolution authenticates closing Pyth Pull evidence and its predecessor; at or after timeout, the route records the committed refund-at-face result without oracle evidence. Global pause does not block terminal recording.
- Source:
program/src/processor/mod.rs,program/src/state/confidential_market.rs,program/src/abi_compaction.rs - Routes:
RecordConfidentialTerminal(0x6C) - Events:
ConfidentialTerminalRecorded - Error categories:
Confidential markets - CLI commands:
market record-confidential-terminal - Boundaries: callers Any signer may submit authenticated closing evidence before timeout or invoke the committed timeout branch once eligible.; signers permissionless caller; services Solana RPC, Pyth Pull Receiver for the resolved branch.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/mod.rs, program/src/state/confidential_market.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | buildRecordConfidentialTerminalIx builds the instruction; there is no sample. |
| Rust SDK | no | none | The Rust SDK has no builder for this route. |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | record_confidential_terminal builds the instruction; there is no sample. |
| CLI | no | none | market record-confidential-terminal builds and sends the instruction (registerConfidentialMarketCommands, packages/cli/src/commands/market/confidential.ts). |
| Indexer | no | none | No indexed read model: the parser treats the route as recorder-projected and returns no instruction for it (apps/indexer/src/indexer/parser.ts). |
| API | no | none | No confidential terminal API route exists. |
| Web | no | none | No confidential terminal flow exists. |
| Android | no | none | No confidential terminal flow exists. |
| iOS | no | none | No iOS confidential terminal flow exists. |
| Examples | no | none | No B05 client example exists. |
- Journeys, normal mode: none. No journey for this route is defined or run. The TypeScript and Python SDKs and the CLI build it, and no journey runner maps it.
- Journeys, independent mode: none. No independent journey for this route is defined or run. The TypeScript and Python SDKs and the CLI build it, and no journey runner maps it.
- Formal obligations: none listed.
- Known limits:
- The route records a terminal commitment only; settlement, payouts and confidential claims are outside B05.
- Runtime journey validation is deferred; this registry edit does not assert a passed B05 run.
confidential.wallet-vault Open and manage a local confidential wallet vault#
- Status: implemented. Last verified at
83d636e7209368ad181bc6a0744d631f4d9cb553. - Roadmap items: unplaced (B08 owns the isolated local vault surfaces. C29 remains scoped to confidential market parity across clients.). Owning phase: 12.
- References: #741.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 missing (sdkRust is partial; sdkPython is partial); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 missing (web is partial; android is partial); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
B08 provides an account-scoped encrypted vault. Web and Android expose local unlock and lock settings. The desktop CLI exposes vault initialization and reconciliation, dependency disclosure, key qualification and rotation, encrypted backup staging and local proof preparation.
- Source:
packages/core/src/confidential/vault/vault.ts,packages/cli/src/commands/confidential/index.ts,apps/web/app/[locale]/settings/confidential/page.tsx,apps/mobile/src/screens/ConfidentialVaultScreen.tsx - CLI commands:
confidential archive verify,confidential backup create,confidential backup restore,confidential crank plan,confidential crank status,confidential dependencies,confidential export verify,confidential import,confidential keys qualify,confidential keys rotate,confidential materialize,confidential prove,confidential replay,confidential reprove,confidential rfq disclosure,confidential rfq status,confidential vault init,confidential vault reconcile,confidential vault unlock - Web routes:
/[locale]/settings/confidential - Android screens:
ConfidentialVault - Boundaries: callers The wallet owner opens a vault scoped to the connected account.; signers The wallet owner supplies and controls the derivation signature.; services Local platform storage, Configured SPP indexer and Solana RPC for reconciliation, Pinned local proof backend.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | The vault is a local client capability. |
| IDL | not-applicable | none | The vault introduces no wire routes. |
| TypeScript SDK | yes | packages/core/src/confidential/vault/vault.ts, packages/core/src/confidential/vault/reconcile.ts | |
| Rust SDK | partial | packages/sdk-rust/src/confidential_vault.rs | Wallet vault envelope and key support. |
| Python SDK | partial | packages/sdk-python/seesaw/confidential_vault.py | Wallet vault envelope and key support. |
| CLI | yes | packages/cli/src/commands/confidential/index.ts | |
| Indexer | not-applicable | none | Reconciliation consumes the configured SPP indexer. |
| API | not-applicable | none | The vault stores keys locally and has no first-party API. |
| Web | partial | apps/web/app/[locale]/settings/confidential/page.tsx | Local settings and an account-scoped vault session. |
| Android | partial | apps/mobile/src/screens/ConfidentialVaultScreen.tsx | Local settings and an account-scoped vault session. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. |
| Examples | yes | packages/core/examples/confidential-vault.ts, packages/sdk-rust/examples/confidential_vault.rs, packages/sdk-python/examples/confidential_vault.py | The SDK examples authenticate a synthetic vault record offline. |
- Journeys, normal mode: none. The local vault and device interruption sources are authored. Runtime and recovery qualification are deferred.
- Journeys, independent mode: none. The standalone device and recovery drills remain open.
- Formal obligations:
- A wallet change or app lock discards stale vault open results and restricts subsequent use to the current account. Evidence:
packages/core/src/confidential/vault/session.test.ts.
- A wallet change or app lock discards stale vault open results and restricts subsequent use to the current account. Evidence:
- Known limits:
- The apps expose the local vault session. Hardware-wallet qualification, funded recovery, device interruption runs and authenticated custody integration remain open.
market.create Create a Pyth market#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F1,M-F. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
CreateMarket (30-byte payload: confidence guard, duration 60 s to 7 d, jump guard, max_total_shares, preparation_timestamp_us) creates a binary market against a Pyth Pull price update posted in the same bundle, after EnsureTraderLedgerSpace and EnsureDeepOrderbookSpace have grown the canonical ledger (8,193 seats) and book (two 4,096-order arenas); the market PDA is derived from the creator-chosen preparation timestamp, the start snapshot needs publish_time > 0, not in the future and at most 60 s old, and MarketCreated is emitted.
- Source:
program/src/processor/create_market.rs,program/src/processor/ensure_trader_ledger_space.rs,program/src/processor/ensure_deep_orderbook_space.rs,program/src/state/canonical_market.rs,packages/pyth-pull/src/seesawCreateMarket.ts,packages/pyth-pull/src/pullBundlesKit.ts - Routes:
CreateMarket(0x03),EnsureTraderLedgerSpace(0x2B),EnsureDeepOrderbookSpace(0x2C) - Events:
MarketCreated,TraderLedgerResized - Error categories:
Market,Account,Oracle - CLI commands:
market close-preparation,market create - API routes:
POST /api/v1/tx/create-market-pull,POST /api/v1/pyth/pull/land,GET /api/v1/pyth/pull/land/{attemptId},GET /api/v1/pyth/pull/land/providers - Web routes:
/[locale]/markets/create,/api/pyth/pull/create-market,/api/pyth/pull/land,/api/pyth/pull/land/[attemptId],/api/pyth/pull/providers,/api/pyth/[...path] - Android screens:
CreateMarket - Boundaries: callers creator (any signer); signers creator wallet; services Solana RPC, Pyth Hermes (the creator key), Pyth Receiver program.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/create_market.rs, program/src/processor/ensure_trader_ledger_space.rs, program/src/processor/ensure_deep_orderbook_space.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/market/index.ts | |
| Indexer | yes | apps/indexer/src/folds/markets.ts, apps/indexer/src/indexer/parser.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/processors/createMarket.ts | |
| API | partial | apps/indexer/src/api/routes/txBuilder.ts | POST /api/v1/tx/create-market-pull builds the create bundle (txBuilder.ts) only when the deployment enables keeper routes (txBuilder.ts); GET /api/v1/markets lists the created market (markets.ts). |
| Web | yes | apps/web/lib/pullBundleClient.ts | |
| Android | yes | apps/mobile/src/screens/CreateMarketScreen.tsx, apps/mobile/src/hooks/useCreateMarket.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/create_market_bundle.rs, packages/sdk-python/examples/create_market_bundle.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode:
web-market-create(web: 1 of 1 action steps return a client value; stepmarket.create; no passed cell of a client of this capability in normal mode; partial evidence, does not count),pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; stepmarket.create; no passed cell of a client of this capability in normal mode; partial evidence, does not count) - Journeys, independent mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; stepmarket.create; no passed cell of a client of this capability in independent mode; partial evidence, does not count) - Formal obligations:
- Market creation writes the canonical sizes and rejects any other account length. Evidence:
program/tests/agentflow_fresh_2_market_creation.rs,program/tests/funds_12_ensure_space_parity.rs. - The start snapshot accepts only a fresh, non-future Pyth price. Evidence:
program/tests/agentflow_fresh_8_pyth_freshness.rs.
- Market creation writes the canonical sizes and rejects any other account length. Evidence:
- Known limits:
- Native markets are created against Pyth Pull only; the Receiver owner is a compile-time constant.
oracle.byo-pyth-key Bring-your-own Pyth key#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F1. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 missing (sdkRust is partial; sdkPython is partial); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client; chain left out: Storing a key lands nothing on chain.; record left out: Storing a key writes no indexer or API record (its indexer and api surfaces are not-applicable)..
A personal Pyth Hermes key authorizes fetching fresh Pull evidence for market creation and end-price capture. Web and Android read the key from the device vault. The CLI supports both a personal key and a posted update account. Native resolution uses the stored snapshots, and timeout expiry uses on-chain state.
- Source:
packages/key-vault/src/index.ts,apps/web/lib/pullBundleClient.ts,apps/mobile/src/screens/OracleKeysScreen.tsx - Web routes:
/[locale]/settings/oracle-keys - Android screens:
OracleKeys - Boundaries: callers trader, creator; signers none (the key is a service credential, not a signer); services Pyth Hermes.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | A client credential; the program verifies the posted Pyth update, not the key. |
| IDL | not-applicable | none | No instruction. |
| TypeScript SDK | yes | packages/key-vault/src/index.ts, packages/pyth-pull/src/pullBundlesKit.ts | |
| Rust SDK | partial | packages/sdk-rust/src/pyth_pull.rs, packages/sdk-rust/README.md | Direct authenticated Hermes requests and unsigned Pyth Receiver posting, consumption, and rent-recovery groups. Live Rust BYOK journey qualification is pending. |
| Python SDK | partial | packages/sdk-python/seesaw/pyth_pull.py, packages/sdk-python/seesaw/pyth_receiver.py, packages/sdk-python/README.md | Direct authenticated Hermes requests and unsigned Pyth Receiver posting, consumption, and rent-recovery groups. Live Python BYOK journey qualification is pending. |
| CLI | yes | packages/cli/src/commands/market/index.ts | |
| Indexer | not-applicable | none | The key never reaches the indexer. |
| API | not-applicable | none | The key never reaches the API. |
| Web | yes | apps/web/app/[locale]/settings/oracle-keys/page.tsx, apps/web/lib/pullBundleClient.ts | |
| Android | yes | apps/mobile/src/screens/OracleKeysScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-python/examples/byo_pyth_key.py, packages/pyth-pull/examples/byo-pyth-key.ts, packages/sdk-rust/examples/plan_pyth_market_end.rs | byo-pyth-key.ts builds the TypeScript Pull creation bundle and byo_pyth_key.py plans a Pull post with a Hermes key from PYTH_API_KEY or PYTH_API_KEY_FILE; plan_pyth_market_end.rs uses PYTH_API_KEY for the end snapshot. All need network and a key; typechecked and compiled, not executed. |
- Journeys, normal mode: none. Partial evidence:
suite-android-pyth-personal-key(android; UI read; suite source matchesgetByText\('That Hermes endpoint is not allowed\.'\)\)\.toBeVisible\(\); pins assertion; partial evidence, does not count). suite-android-pyth-personal-key (Android, client) rejects an unapproved Hermes origin and keeps the create guard; qa/e2e/journeys/suite-runs.json records no run of it. It fetches no live evidence, and the native lifecycle journeys use fixture price-update accounts. No qualified run covers a personal Hermes key. - Journeys, independent mode: none. The independent native lifecycle journeys use fixture price-update accounts. Personal Hermes key retrieval and live provider acceptance remain unverified.
- Formal obligations:
- The personal Hermes key is sent only to an allowlisted https Hermes origin with no userinfo, port, query or hash, and foreign endpoints are refused before any network call (validate.test.ts: rejects foreign endpoints before network, rejects userinfo, explicit ports, http, query and hash on the endpoint). Evidence:
packages/key-vault/src/__tests__/validate.test.ts,packages/key-vault/src/validate.ts. - The key lives only in the device vault (IndexedDB with per-record IVs on web, namespaced secure store on mobile), never in localStorage, and its decrypted cache is cleared on disconnect or idle (web.test.ts: round-trips through IndexedDB without localStorage, clears decrypted cache on page events, wallet changes and idle timeout; oracleKeys.test.ts: never writes to localStorage; secureStore.test.ts: writes namespaced strict JSON with accessibility; OracleKeysScreen.test.tsx: saves a Pyth key through the vault with masked, uncontrolled input). Evidence:
packages/key-vault/src/__tests__/web.test.ts,packages/key-vault/src/__tests__/secureStore.test.ts,apps/web/lib/__tests__/oracleKeys.test.ts,apps/mobile/src/__tests__/screens/OracleKeysScreen.test.tsx. - The key never appears in errors, UI copy or logs (validate.test.ts: maps auth errors without echoing the key; redact.test.ts: also redacts URL-encoded and base64 forms of the secret; OracleKeysScreen.test.tsx: shows validation copy without echoing the secret). Evidence:
packages/key-vault/src/__tests__/validate.test.ts,packages/key-vault/src/__tests__/redact.test.ts,apps/mobile/src/__tests__/screens/OracleKeysScreen.test.tsx. - Fresh Pull evidence for creation and end capture needs the key, while timeout expiry builds from on-chain state with no Hermes relay or key (pullBundleClient.test.ts: builds expire without a Hermes relay or key, reads the cluster context, builds with a direct relay, and forces v0). Evidence:
apps/web/lib/__tests__/pullBundleClient.test.ts,apps/web/lib/pullBundleClient.ts. - The CLI takes the key from the flag, then PYTH_API_KEY, then nothing, and with a posted update account it refuses a stale update before allocating capacity (pyth-api-key.test.ts: prefers the flag, then PYTH_API_KEY, then null; market-byo-key.test.ts: refuses a stale update before allocating capacity, submits preallocation and create groups directly with the posted update). Evidence:
packages/cli/src/__tests__/lib/pyth-api-key.test.ts,packages/cli/src/__tests__/commands/market-byo-key.test.ts. - Native resolution reads only the stored end snapshot, and resolve before snapshot fails with no state change (same_transaction_snapshot_then_resolve_observes_end_snapshot_and_resolves, same_transaction_resolve_before_snapshot_rejects_and_leaves_market_unsettled in agentflow_fresh_30_interleaving_runtime.rs). Evidence:
program/tests/agentflow_fresh_30_interleaving_runtime.rs.
- The personal Hermes key is sent only to an allowlisted https Hermes origin with no userinfo, port, query or hash, and foreign endpoints are refused before any network call (validate.test.ts: rejects foreign endpoints before network, rejects userinfo, explicit ports, http, query and hash on the endpoint). Evidence:
- Known limits:
- Fetching fresh Pyth evidence requires the user's provider key. Stored-snapshot resolution and timeout expiry require no Hermes call.
lifecycle.end-price-capture End-price capture#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D,F1. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
SnapshotEnd records the end price of a market from a Pyth Pull update posted in the same bundle; it requires strict predecessor evidence 0 < prev_publish_time < boundary, is permissionless, and emits SnapshotCaptured.
- Source:
program/src/processor/snapshot.rs - Routes:
SnapshotEnd(0x04) - Events:
SnapshotCaptured - Error categories:
Oracle - CLI commands:
market snapshot - API routes:
GET /api/v1/markets/{marketId} - Web routes:
/api/pyth/pull/lifecycle - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC, Pyth Hermes (the caller key), Pyth Receiver program.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/snapshot.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/market/index.ts | |
| Indexer | yes | apps/indexer/src/processors/snapshotEnd.ts | |
| API | partial | apps/indexer/src/api/routes/markets.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets returns endPrice, endPriceConf and endPriceExpo (markets.ts). |
| Web | yes | apps/web/lib/pullBundleClient.ts | |
| Android | yes | apps/mobile/src/hooks/useMarketLifecycleActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/market_lifecycle.rs, packages/sdk-python/examples/market_lifecycle.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepmarket.snapshot-end; passed on a real stack for sdk-typescript, sdk-python, sdk-rust) - Journeys, independent mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepmarket.snapshot-end; passed on a real stack for sdk-typescript, sdk-python, sdk-rust) - Formal obligations:
- The end snapshot accepts only a price with strict predecessor evidence across the boundary. Evidence:
program/tests/agentflow_fresh_8_snapshot_contract.rs,program/tests/agentflow_fresh_7_oracle_lifecycle.rs.
- The end snapshot accepts only a price with strict predecessor evidence across the boundary. Evidence:
lifecycle.resolution Resolution#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D,F1. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ResolveMarket permissionlessly writes the outcome from the start and end snapshots (a confidence ratio above max_confidence_ratio_bps gives the neutral outcome; 0 turns the guard off), pays the closer reward, sweeps accrued creator fees to the creator token account or emits CreatorFeesDeferred, and emits MarketResolved and NativeResolutionRecorded.
- Source:
program/src/processor/resolve.rs - Routes:
ResolveMarket(0x05) - Events:
MarketResolved,NativeResolutionRecorded,CreatorFeesDeferred - Error categories:
Market - CLI commands:
market resolve - Web routes:
/[locale]/markets/[marketId]/resolution - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/resolve.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/market/index.ts | |
| Indexer | yes | apps/indexer/src/processors/resolveMarket.ts, apps/indexer/src/folds/markets.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/jobs/economicEventProjection.ts | |
| API | partial | apps/indexer/src/api/routes/markets.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets returns state and outcome (markets.ts). |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketLifecycleActions.ts | |
| Android | yes | apps/mobile/src/hooks/useMarketLifecycleActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/market_lifecycle.rs, packages/sdk-python/examples/market_lifecycle.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepmarket.resolve; passed on a real stack for sdk-typescript, sdk-python, sdk-rust) - Journeys, independent mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepmarket.resolve; passed on a real stack for sdk-typescript, sdk-python, sdk-rust) - Formal obligations:
- Resolution writes exactly one outcome and treats a zero confidence bound as guard off. Evidence:
program/tests/agentflow_fresh_8_resolve_expire.rs,program/tests/coverage_gap_resolution_lifecycle.rs.
- Resolution writes exactly one outcome and treats a zero confidence bound as guard off. Evidence:
lifecycle.expiry Expiry#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D,F1. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ExpireMarket permissionlessly late-resolves a market after the config market_expiration_window_seconds when no end snapshot resolved it, and emits MarketExpired (plus MarketResolved and NativeResolutionRecorded); positions then redeem at the expired outcome.
- Source:
program/src/processor/expire_market.rs - Routes:
ExpireMarket(0x06) - Events:
MarketExpired - CLI commands:
market expire - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC, Pyth Hermes (the caller key), Pyth Receiver program.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/expire_market.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/market/index.ts | |
| Indexer | yes | apps/indexer/src/processors/expireMarket.ts, apps/indexer/src/folds/markets.ts, apps/indexer/src/indexer/binaryEventProjection.ts | processExpireMarket writes the terminal outcome and, in the same transaction, queues the market_resolved and claim_available holder notifications (expireMarket.ts:159). Their outbox keys are shared with resolution, so each holder is notified once. The market_expired broadcast follows the commit. |
| API | partial | apps/indexer/src/api/routes/markets.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets returns the market state that ExpireMarket writes (markets.ts; processors/expireMarket.ts). |
| Web | yes | apps/web/app/api/pyth/pull/lifecycle/route.ts | |
| Android | yes | apps/mobile/src/hooks/useMarketLifecycleActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/market_lifecycle.rs, packages/sdk-python/examples/market_lifecycle.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode: none. Partial evidence:
pyth-market-timeout(cli: 1 of 5 action steps return a client value; sdk-typescript: 1 of 5 action steps return a client value; sdk-python: 1 of 5 action steps return a client value; sdk-rust: 1 of 5 action steps return a client value; stepmarket.expire; no passed cell of a client of this capability in normal mode; partial evidence, does not count),pyth-market-funded-timeout(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepmarket.expire; no passed cell of a client of this capability in normal mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepmarket.expire; no passed cell of a client of this capability in normal mode; partial evidence, does not count). pyth-market-timeout exercises it and fails at its later redeem-yes step with JF-05 (Redeem refuses a wallet-token holder without a position account); every CLI cell cannot run (JF-03, JF-04). pyth-market-funded-timeout also expires a market; it has no passed cell. Runtime reruns are deferred by owner decision of 2026-11-17. pyth-expiry-recovery-closure expires a market after a third-party bid recovery; it has no passed cell. - Journeys, independent mode: none. Partial evidence:
pyth-market-timeout(cli: 1 of 5 action steps return a client value; sdk-typescript: 1 of 5 action steps return a client value; sdk-python: 1 of 5 action steps return a client value; sdk-rust: 1 of 5 action steps return a client value; stepmarket.expire; no passed cell of a client of this capability in independent mode; partial evidence, does not count),pyth-market-funded-timeout(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepmarket.expire; no passed cell of a client of this capability in independent mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepmarket.expire; no passed cell of a client of this capability in independent mode; partial evidence, does not count). pyth-market-timeout exercises it and fails at its later redeem-yes step with JF-05 (Redeem refuses a wallet-token holder without a position account); every CLI cell cannot run (JF-03, JF-04). pyth-market-funded-timeout also expires a market; it has no passed cell. Runtime reruns are deferred by owner decision of 2026-11-17. pyth-expiry-recovery-closure expires a market after a third-party bid recovery; it has no passed cell. - Formal obligations:
- Expiry runs only after the expiration window and yields the expired outcome. Evidence:
program/tests/agentflow_fresh_8_resolve_expire.rs,program/tests/expiration_window_sentinel.rs.
- Expiry runs only after the expiration window and yields the expired outcome. Evidence:
lifecycle.expired-order-reclaim Expired-order reclaim#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ReclaimExpiredOrder lets anyone clear an expired resting order or reclaim a covered order after its market seat's strategy epoch changes. The refund goes to the maker's verified token account or ledger. Supplying the live strategy account lets the program return committed capital for a matching capital epoch. The route emits OrderReclaimedWithReason.
- Source:
program/src/processor/reclaim_expired.rs - Routes:
ReclaimExpiredOrder(0x16) - Events:
OrderReclaimedWithReason,OrderReclaimBatchProgressed - CLI commands:
order reclaim-expired,order reclaim-expired-sweep - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/reclaim_expired.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/cancelFamily.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts | |
| API | partial | apps/indexer/src/api/routes/orders.ts | GET /api/v1/orders returns the updated order status. Wallet clients build the reclaim instruction directly. |
| Web | yes | apps/web/app/[locale]/portfolio/usePortfolioOrderActions.ts | |
| Android | yes | apps/mobile/src/hooks/useLifecycleActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/position_cleanup.rs, packages/sdk-python/examples/position_cleanup.py |
- Journeys, normal mode: none. Partial evidence:
expired-order-reclaim(cli: 2 of 4 action steps return a client value; steporder.reclaim-expired; no passed cell of a client of this capability in normal mode; partial evidence, does not count),stopped-strategy-order-reclaim(cli: 5 of 6 action steps return a client value; sdk-python: 5 of 6 action steps return a client value; sdk-rust: 5 of 6 action steps return a client value; sdk-typescript: 5 of 6 action steps return a client value; steporder.reclaim-expired; no passed cell of a client of this capability in normal mode; partial evidence, does not count),web-expired-order-reclaim(web: 1 of 4 action steps return a client value; steporder.reclaim-expired; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The expired-order and stopped-strategy reclaim journeys await deferred runtime validation. - Journeys, independent mode: none. Partial evidence:
expired-order-reclaim(cli: 2 of 4 action steps return a client value; steporder.reclaim-expired; no passed cell of a client of this capability in independent mode; partial evidence, does not count),stopped-strategy-order-reclaim(cli: 5 of 6 action steps return a client value; sdk-python: 5 of 6 action steps return a client value; sdk-rust: 5 of 6 action steps return a client value; sdk-typescript: 5 of 6 action steps return a client value; steporder.reclaim-expired; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The expired-order and stopped-strategy reclaim journeys await deferred runtime validation. - Formal obligations:
- An open-market reclaim requires the order to be expired or stopped and routes the refund to the maker. Evidence:
program/tests/agentflow_fresh_4_reclaim_permissionless.rs.
- An open-market reclaim requires the order to be expired or stopped and routes the refund to the maker. Evidence:
lifecycle.force-close Force-close an expired unresolved position#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is partial); 6 met; 7 missing (api is partial); 8 missing (web is partial; android is partial); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ForceClose permissionlessly refunds the outstanding unfilled bid collateral of one position in an expired, unresolved market and pays the caller the closer reward; positions with ask-side share locks must be cancelled first. It emits ForceClosed, ForceCloseOrderRemoved and ForceCloseProgress.
- Source:
program/src/processor/force_close.rs - Routes:
ForceClose(0x18),ClaimOwnerPayoutEscrow(0x6D) - Events:
ForceClosed,ForceCloseOrderRemoved,ForceCloseProgress,OwnerPayoutEscrowed,OwnerPayoutEscrowClaimed - CLI commands:
market force-close,position claim-payout-escrow - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/force_close.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/market/index.ts | |
| Indexer | yes | apps/indexer/src/processors/forceClose.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts | |
| API | partial | apps/indexer/src/api/routes/positions.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/positions returns the payout that ForceClose adds to the position (positions.ts; processors/forceClose.ts); no route reads the force_closes table. |
| Web | partial | apps/web/app/[locale]/markets/[marketId]/forceClosePosition.ts | Web calls ForceClose; ClaimOwnerPayoutEscrow is a tracked app gap not yet wired into the web UI. |
| Android | partial | apps/mobile/src/hooks/useMarketLifecycleActions.ts | Android calls ForceClose; ClaimOwnerPayoutEscrow is a tracked app gap not yet wired into the mobile UI. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | partial | packages/sdk-rust/examples/market_lifecycle.rs, packages/sdk-python/examples/market_lifecycle.py, packages/core/examples/07-build-all-high-level-instructions.ts | Examples cover ForceClose; ClaimOwnerPayoutEscrow is not yet in the offline example scripts. |
- Journeys, normal mode: none. Partial evidence:
pyth-force-close-recovery(sdk-typescript: 5 of 9 action steps return a client value; cli: 5 of 9 action steps return a client value; sdk-python: 5 of 9 action steps return a client value; stepposition.force-close; no passed cell of a client of this capability in normal mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepposition.force-close; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-owner-position-recovery(web: 2 of 8 action steps return a client value; android: 2 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value; sdk-typescript: 4 of 8 action steps return a client value; sdk-python: 3 of 8 action steps return a client value; stepposition.force-close-own; no passed cell of a client of this capability in normal mode; partial evidence, does not count). pyth-force-close-recovery (TypeScript SDK, CLI and Python SDK) refunds bid collateral by ForceClose and checks the refusals; pyth-expiry-recovery-closure recovers the bid through the CLI and the TypeScript and Python SDKs before neutral expiry, settlement and closure. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. app-owner-position-recovery covers the owner's own action from the web and Android apps (normal mode), the CLI and the TypeScript and Python SDKs. - Journeys, independent mode: none. Partial evidence:
pyth-force-close-recovery(sdk-typescript: 5 of 9 action steps return a client value; cli: 5 of 9 action steps return a client value; sdk-python: 5 of 9 action steps return a client value; stepposition.force-close; no passed cell of a client of this capability in independent mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepposition.force-close; no passed cell of a client of this capability in independent mode; partial evidence, does not count),app-owner-position-recovery(web: 2 of 8 action steps return a client value; android: 2 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value; sdk-typescript: 4 of 8 action steps return a client value; sdk-python: 3 of 8 action steps return a client value; stepposition.force-close-own; no passed cell of a client of this capability in independent mode; partial evidence, does not count). pyth-force-close-recovery (TypeScript SDK, CLI and Python SDK) refunds bid collateral by ForceClose and checks the refusals; pyth-expiry-recovery-closure recovers the bid through the CLI and the TypeScript and Python SDKs before neutral expiry, settlement and closure. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. app-owner-position-recovery covers the owner's own action from the web and Android apps (normal mode), the CLI and the TypeScript and Python SDKs. - Formal obligations:
- ForceClose refunds exactly the unfilled bid collateral. Evidence:
program/tests/force_close_partial_accounting_runtime.rs,program/tests/agentflow_fresh_19_force_close_terminal.rs.
- ForceClose refunds exactly the unfilled bid collateral. Evidence:
lifecycle.position-settlement Position settlement#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
MarkPositionSettled permissionlessly settles an abandoned position after the post-close timeout, pays its owner what is owed, and advances market.settled_positions so that CloseMarket cannot be stranded; it emits MarkPositionSettled.
- Source:
program/src/processor/mark_position_settled.rs - Routes:
MarkPositionSettled(0x19) - Events:
MarkPositionSettled - CLI commands:
position mark-settled - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/mark_position_settled.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/position/index.ts | |
| Indexer | partial | apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/jobs/economicEventProjection.ts | The dispatch sends MarkPositionSettled to skipInstruction (apps/indexer/src/processors/dispatch.ts:187), so no instruction projection exists. The recorder reconciliation folds the MarkPositionSettled event into the expected position (settled, payout; apps/indexer/src/jobs/recorderExpectedState.ts:585-591) and repairExpectedMutableProjectionState rewrites positions.settled and payout from it (apps/indexer/src/jobs/reconcileRecorderEvents.ts:2377,2522-2531); the EconomicDeltaApplied post-state is projected separately (apps/indexer/src/jobs/economicEventProjection.ts:188). The MarkPositionSettled text-log projection (apps/indexer/src/indexer/subscriberImpl.ts:5588) reads a log prefix that the program no longer emits (program/tests/litesvm_mark_position_settled_cpi.rs:158). |
| API | partial | apps/indexer/src/api/routes/positions.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/positions filters on and returns settled and payout (positions.ts), which the recorder reconciliation repairs from the MarkPositionSettled event (apps/indexer/src/jobs/reconcileRecorderEvents.ts). |
| Web | yes | apps/web/app/[locale]/portfolio/usePortfolioPositionActions.ts | |
| Android | yes | apps/mobile/src/hooks/useLifecycleActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/position_cleanup.rs, packages/sdk-python/examples/position_cleanup.py |
- Journeys, normal mode: none. Partial evidence:
third-party-position-cleanup(cli: 6 of 18 action steps return a client value; sdk-typescript: 6 of 18 action steps return a client value; sdk-python: 4 of 18 action steps return a client value; stepposition.mark-settled; no passed cell of a client of this capability in normal mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepposition.mark-settled; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-owner-position-recovery(web: 2 of 8 action steps return a client value; android: 2 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value; sdk-typescript: 4 of 8 action steps return a client value; sdk-python: 3 of 8 action steps return a client value; stepposition.settle-own; no passed cell of a client of this capability in normal mode; partial evidence, does not count). third-party-position-cleanup (CLI, TypeScript and Python SDKs) settles resolved positions; pyth-expiry-recovery-closure settles the ledger balance left after a neutral expiry. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. app-owner-position-recovery covers the owner's own action from the web and Android apps (normal mode), the CLI and the TypeScript and Python SDKs. - Journeys, independent mode: none. Partial evidence:
third-party-position-cleanup(cli: 6 of 18 action steps return a client value; sdk-typescript: 6 of 18 action steps return a client value; sdk-python: 4 of 18 action steps return a client value; stepposition.mark-settled; no passed cell of a client of this capability in independent mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepposition.mark-settled; no passed cell of a client of this capability in independent mode; partial evidence, does not count),app-owner-position-recovery(web: 2 of 8 action steps return a client value; android: 2 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value; sdk-typescript: 4 of 8 action steps return a client value; sdk-python: 3 of 8 action steps return a client value; stepposition.settle-own; no passed cell of a client of this capability in independent mode; partial evidence, does not count). third-party-position-cleanup (CLI, TypeScript and Python SDKs) settles resolved positions; pyth-expiry-recovery-closure settles the ledger balance left after a neutral expiry. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. app-owner-position-recovery covers the owner's own action from the web and Android apps (normal mode), the CLI and the TypeScript and Python SDKs. - Formal obligations:
- Settlement pays the owner exactly once and advances the settled count. Evidence:
program/tests/agentflow_fresh_19_mark_settled.rs.
- Settlement pays the owner exactly once and advances the settled count. Evidence:
lifecycle.position-closure Position closure#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ClosePosition permissionlessly closes a fully settled UserPositionAccount and returns its rent to the recorded owner; pending referral fees are forfeited with ReferralPendingForfeited, and PositionClosed is emitted.
- Source:
program/src/processor/close_position.rs - Routes:
ClosePosition(0x1A) - Events:
PositionClosed,ReferralPendingForfeited - CLI commands:
position close - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/close_position.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/position/index.ts | |
| Indexer | partial | apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/replay/projectionRepair.ts | The dispatch sends ClosePosition to skipInstruction (apps/indexer/src/processors/dispatch.ts:188), so no instruction projection exists. The recorder reconciliation binds the ReferralPendingForfeited event to its PositionClosed sibling and folds the forfeited referral flow (apps/indexer/src/jobs/recorderExpectedState.ts:152-177; apps/indexer/src/jobs/reconcileRecorderEvents.ts:937-949), the replay repair uses the same binding (apps/indexer/src/replay/projectionRepair.ts:449,536), and the EconomicDeltaApplied post-state is projected (apps/indexer/src/jobs/economicEventProjection.ts:188). No projection marks the position closed; the PositionClosed text-log projection (apps/indexer/src/indexer/subscriberImpl.ts:5589) reads a prefix that program/src does not emit. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). The closure is projected only as an EconomicDeltaApplied post-state into market_economic_event_projection, which no API route reads; positions.ts returns no closed field. |
| Web | yes | apps/web/app/[locale]/portfolio/usePortfolioPositionActions.ts | |
| Android | yes | apps/mobile/src/hooks/useLifecycleActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/position_cleanup.rs, packages/sdk-python/examples/position_cleanup.py |
- Journeys, normal mode: none. Partial evidence:
third-party-position-cleanup(cli: 6 of 18 action steps return a client value; sdk-typescript: 6 of 18 action steps return a client value; sdk-python: 4 of 18 action steps return a client value; stepposition.close; no passed cell of a client of this capability in normal mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepposition.close; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-owner-position-recovery(web: 2 of 8 action steps return a client value; android: 2 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value; sdk-typescript: 4 of 8 action steps return a client value; sdk-python: 3 of 8 action steps return a client value; stepposition.close-own; no passed cell of a client of this capability in normal mode; partial evidence, does not count). third-party-position-cleanup and pyth-expiry-recovery-closure close settled positions from the CLI and the TypeScript and Python SDKs. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. app-owner-position-recovery covers the owner's own action from the web and Android apps (normal mode), the CLI and the TypeScript and Python SDKs. - Journeys, independent mode: none. Partial evidence:
third-party-position-cleanup(cli: 6 of 18 action steps return a client value; sdk-typescript: 6 of 18 action steps return a client value; sdk-python: 4 of 18 action steps return a client value; stepposition.close; no passed cell of a client of this capability in independent mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepposition.close; no passed cell of a client of this capability in independent mode; partial evidence, does not count),app-owner-position-recovery(web: 2 of 8 action steps return a client value; android: 2 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value; sdk-typescript: 4 of 8 action steps return a client value; sdk-python: 3 of 8 action steps return a client value; stepposition.close-own; no passed cell of a client of this capability in independent mode; partial evidence, does not count). third-party-position-cleanup and pyth-expiry-recovery-closure close settled positions from the CLI and the TypeScript and Python SDKs. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. app-owner-position-recovery covers the owner's own action from the web and Android apps (normal mode), the CLI and the TypeScript and Python SDKs. - Formal obligations:
- A position closes only when fully settled and its rent goes to its owner. Evidence:
program/tests/agentflow_fresh_19_close_position.rs.
- A position closes only when fully settled and its rent goes to its owner. Evidence:
lifecycle.abandoned-preparation-recovery Abandoned preparation recovery#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ClosePreallocatedChild returns to the funding creator the rent of a native orderbook or trader-ledger child that Ensure*Space grew for a market that was never created; the creator signs, the in-child NativePreallocationMarker must bind the creator, market and child kind, and the child must be zero outside the marker.
- Source:
program/src/processor/close_preallocated_child.rs,program/src/processor/native_preallocation_marker.rs,packages/cli/src/commands/market/index.ts,services/pyth-keeper/src/nativePreallocation.ts - Routes:
ClosePreallocatedChild(0x3A) - CLI commands:
market close-preallocated-child - Boundaries: callers creator; signers creator wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/close_preallocated_child.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/market/index.ts | The funding creator can build, simulate or send the close for the native orderbook or trader-ledger child. |
| Indexer | not-applicable | none | The capability emits no event of its own for the indexer to ingest. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). No API route reads mirror_preallocations or the native preallocation children. |
| Web | yes | apps/web/app/[locale]/admin/operations/OperationsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/preallocation_maintenance.rs, packages/sdk-python/examples/preallocation_maintenance.py |
- Journeys, normal mode: none. Partial evidence:
native-preallocation-recovery(cli: 3 of 3 action steps return a client value; sdk-typescript: 0 of 3 action steps return a client value; stepmarket.close-preallocated-child; no passed cell of a client of this capability in normal mode; partial evidence, does not count). native-preallocation-recovery closes an abandoned orderbook and trader-ledger child and checks the foreign-funder refusal. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
native-preallocation-recovery(cli: 3 of 3 action steps return a client value; sdk-typescript: 0 of 3 action steps return a client value; stepmarket.close-preallocated-child; no passed cell of a client of this capability in independent mode; partial evidence, does not count). native-preallocation-recovery closes an abandoned orderbook and trader-ledger child and checks the foreign-funder refusal. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- ClosePreallocatedChild succeeds only when the funding creator signs and the in-child NativePreallocationMarker binds that creator, the market and the child kind (marker_binds_market_creator_and_kind in native_preallocation_marker.rs; ensure_marker_constructor_and_require_exact_fields proof; live_marker_continues_only_for_its_kind_market_and_creator in fv_prec03_native_marker_auth.rs; close_preallocated_child_signer_matrix_is_native_creator_only in signer_coverage.rs). Evidence:
program/src/processor/native_preallocation_marker.rs,formal/verification/goal_g_prec_03.rs,program/tests/fv_prec03_native_marker_auth.rs,program/tests/signer_coverage.rs. - The child must be the canonical program-owned orderbook or trader-ledger PDA of the market, and system-owned or foreign-owned data is refused (matching_native_marker_cannot_authorize_system_or_foreign_owned_data in fv_prec03_native_marker_auth.rs). Evidence:
program/tests/fv_prec03_native_marker_auth.rs,program/src/processor/close_preallocated_child.rs. - A child with any nonzero byte outside the marker is never closed, so live book or ledger state cannot be discarded (native_marker_round_trip_requires_zero_tail, native_marker_load_exact_first_error proofs; marker_rejects_nonzero_tail_reserved_bytes_and_bad_version; dirty_native_suffix_blocks_growth_and_close_without_mutation). Evidence:
formal/verification/preallocation_codecs.rs,program/src/processor/native_preallocation_marker.rs,program/tests/fv_prec03_native_marker_auth.rs. - Success refunds every lamport of the child to the creator exactly once, and a malformed payload leaves child and creator untouched (close_preallocated_child_creator_reclaims_native_child_rent, close_preallocated_child_boundary_payload_is_exactly_one_kind_byte in adversarial_lifecycle.rs; native_close_refunds_surplus_and_same_pda_can_restart, duplicate_native_close_rolls_back_all_close_effects_before_retry in fv_prec03_native_marker_auth.rs). Evidence:
program/tests/adversarial_lifecycle.rs,program/tests/fv_prec03_native_marker_auth.rs. - Off-chain planners build only the creator-signed close for both child kinds and refuse children with foreign or nonzero data (market close-preallocated-child builds the creator-signed recovery in market-byo-key.test.ts; nativePreallocation.test.ts: preserves initialized markets and refuses children with foreign or nonzero data). Evidence:
packages/cli/src/__tests__/commands/market-byo-key.test.ts,services/pyth-keeper/tests/nativePreallocation.test.ts.
- ClosePreallocatedChild succeeds only when the funding creator signs and the in-child NativePreallocationMarker binds that creator, the market and the child kind (marker_binds_market_creator_and_kind in native_preallocation_marker.rs; ensure_marker_constructor_and_require_exact_fields proof; live_marker_continues_only_for_its_kind_market_and_creator in fv_prec03_native_marker_auth.rs; close_preallocated_child_signer_matrix_is_native_creator_only in signer_coverage.rs). Evidence:
- Known limits:
- Recovery is creator-signed, not permissionless; the roadmap lists it among permissionless operations.
- Document disagreements (the code wins):
docs/internal/fable-prompts/ROADMAP.mdsays: Section 4, phase 9, lists abandoned preparation recovery among the permissionless lifecycle and recovery operations. The code: program/src/processor/close_preallocated_child.rs requires the funding creator to sign. ReclaimExternalMarketPreallocation admits any payer after the external draft deadline.
lifecycle.idle-seat-evacuation Idle-seat evacuation#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
EvacuateIdleSeat permissionlessly moves the full balance of an idle trader-ledger seat into fresh SPL token accounts with owner authority and frees the seat; it emits IdleSeatEvacuated. The apps add owner recovery that sweeps the tokens back to the owner wallet.
- Source:
program/src/processor/evacuate_idle_seat.rs,apps/shared/useIdleRecovery.ts,apps/shared/idleSeatSdk.ts - Routes:
EvacuateIdleSeat(0x3D) - Events:
IdleSeatEvacuated - CLI commands:
position evacuate-idle-seat,position idle-seat-destinations,position sweep-idle-seat - Boundaries: callers anyone (keeper), owner; signers caller wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/evacuate_idle_seat.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/position/index.ts | |
| Indexer | partial | apps/indexer/src/jobs/economicEventProjection.ts | The dispatch sends the route to skipInstruction or to an arm without a handler (apps/indexer/src/processors/dispatch.ts:271), so no instruction projection exists; the indexer projects only the EconomicDeltaApplied post-state that the program records with it (apps/indexer/src/jobs/economicEventProjection.ts:188). The IdleSeatEvacuated event is journalled as informational (apps/indexer/src/indexer/subscriberImpl.ts:260). |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). The evacuation is projected only as an EconomicDeltaApplied post-state, which no API route reads. |
| Web | yes | apps/web/app/[locale]/portfolio/IdleSeatRecovery.tsx | |
| Android | yes | apps/mobile/src/components/IdleSeatRecovery.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/idle_seat_recovery.rs, packages/sdk-python/examples/idle_seat_recovery.py |
- Journeys, normal mode: none. Partial evidence:
idle-seat-evacuation(cli: 3 of 4 action steps return a client value; stepposition.evacuate-idle-seat; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The full-ledger CLI evacuation journey awaits the deferred Surfpool run. - Journeys, independent mode: none. Partial evidence:
idle-seat-evacuation(cli: 3 of 4 action steps return a client value; stepposition.evacuate-idle-seat; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The same journey uses a self-run indexer and awaits the deferred Surfpool run. - Formal obligations:
- Evacuation moves the complete seat balance to owner-authority accounts. Evidence: none.
- Known limits:
- The CLI journey uses zero-balance Surfpool fixture occupants to fill the ledger. The funded seat, its payout, and the owner's subsequent partial redeposit use program transactions. A separate token transaction sweeps the fresh account and reclaims its rent.
- Staging browser and device flows of owner recovery remain an external signoff; an imported signature alone never proves that a recovery landed (superseded feature-support inventory).
lifecycle.market-close Market close#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
CloseMarket closes a resolved market at least 7 days after resolved_at once no unsettled position or redeemable supply remains (PositionsRemaining otherwise), zeroes the market data, transfers the lamports of the market account and of the accounts it closes (including any unused closer-reward budget) to the market creator, and emits MarketClosed.
- Source:
program/src/processor/close_market.rs - Routes:
CloseMarket(0x1B) - Events:
MarketClosed,CloserRewardPaid - CLI commands:
market close - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/close_market.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/market/index.ts | |
| Indexer | yes | apps/indexer/src/processors/closeMarket.ts, apps/indexer/src/folds/markets.ts, apps/indexer/src/processors/resolveMarket.ts | |
| API | partial | apps/indexer/src/api/routes/markets.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets returns the Closed state that CloseMarket writes (markets.ts; processors/closeMarket.ts); no route reads market_closures. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketLifecycleActions.ts | |
| Android | yes | apps/mobile/src/hooks/useMarketLifecycleActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/market_lifecycle.rs, packages/sdk-python/examples/market_lifecycle.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode: none. Partial evidence:
third-party-position-cleanup(cli: 6 of 18 action steps return a client value; sdk-typescript: 6 of 18 action steps return a client value; sdk-python: 4 of 18 action steps return a client value; stepmarket.close; no passed cell of a client of this capability in normal mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepmarket.close; no passed cell of a client of this capability in normal mode; partial evidence, does not count). third-party-position-cleanup and pyth-expiry-recovery-closure close fully settled markets from the CLI and the TypeScript and Python SDKs. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
third-party-position-cleanup(cli: 6 of 18 action steps return a client value; sdk-typescript: 6 of 18 action steps return a client value; sdk-python: 4 of 18 action steps return a client value; stepmarket.close; no passed cell of a client of this capability in independent mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepmarket.close; no passed cell of a client of this capability in independent mode; partial evidence, does not count). third-party-position-cleanup and pyth-expiry-recovery-closure close fully settled markets from the CLI and the TypeScript and Python SDKs. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- A market closes only after the timeout with no remaining positions. Evidence:
program/tests/agentflow_fresh_19_close_market_guards.rs,program/tests/close_market_direct_burn_runtime.rs.
- A market closes only after the timeout with no remaining positions. Evidence:
lifecycle.rent-recovery Rent recovery#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
CloseMarket returns market and funded child rent to the creator. ClosePosition returns position rent to its owner. ClosePreallocatedChild returns unused native preparation rent to its funding creator. The authority of an abandoned Pyth update or Wormhole encoded VAA can use its owning program to recover that account's rent.
- Source:
program/src/processor/close_market.rs,program/src/processor/close_position.rs,program/src/processor/close_preallocated_child.rs - Routes:
CloseMarket(0x1B),ClosePosition(0x1A),ClosePreallocatedChild(0x3A) - CLI commands:
market close,position close,market recover-pyth-rent,market close-preallocated-child,source close - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/close_market.rs, program/src/processor/close_position.rs, program/src/processor/close_preallocated_child.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/market/index.ts, packages/cli/src/commands/position/index.ts, packages/cli/src/commands/source.ts | Every rent-recovery path has a command: market close (native markets), source close (signed-source markets; market close redirects there), position close, market close-preallocated-child (unused native preparation) and market recover-pyth-rent (abandoned Pyth update or Wormhole VAA, validated against the wallet authority). |
| Indexer | not-applicable | none | The capability emits no event of its own for the indexer to ingest. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). No API route reports recovered rent (market_closures is not read by any route). |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketLifecycleActions.ts, apps/web/app/[locale]/portfolio/usePortfolioPositionActions.ts, apps/web/app/[locale]/admin/operations/OperationsAdminContent.tsx | |
| Android | yes | apps/mobile/src/hooks/useMarketLifecycleActions.ts, apps/mobile/src/hooks/useLifecycleActions.ts, apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/market_lifecycle.rs, packages/sdk-python/examples/market_lifecycle.py, packages/sdk-rust/examples/position_cleanup.rs, packages/sdk-python/examples/position_cleanup.py, packages/sdk-rust/examples/preallocation_maintenance.rs, packages/sdk-python/examples/preallocation_maintenance.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode: none. Partial evidence:
third-party-position-cleanup(cli: 6 of 18 action steps return a client value; sdk-typescript: 6 of 18 action steps return a client value; sdk-python: 4 of 18 action steps return a client value; stepposition.close; no passed cell of a client of this capability in normal mode; partial evidence, does not count),native-preallocation-recovery(cli: 3 of 3 action steps return a client value; sdk-typescript: 0 of 3 action steps return a client value; stepmarket.close-preallocated-child; no passed cell of a client of this capability in normal mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepposition.close; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-owner-position-recovery(web: 2 of 8 action steps return a client value; android: 2 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value; sdk-typescript: 4 of 8 action steps return a client value; sdk-python: 3 of 8 action steps return a client value; stepposition.close-own; no passed cell of a client of this capability in normal mode; partial evidence, does not count). third-party-position-cleanup and pyth-expiry-recovery-closure close positions and the market; native-preallocation-recovery closes abandoned preparation children. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. app-owner-position-recovery covers the owner's own action from the web and Android apps (normal mode), the CLI and the TypeScript and Python SDKs. - Journeys, independent mode: none. Partial evidence:
third-party-position-cleanup(cli: 6 of 18 action steps return a client value; sdk-typescript: 6 of 18 action steps return a client value; sdk-python: 4 of 18 action steps return a client value; stepposition.close; no passed cell of a client of this capability in independent mode; partial evidence, does not count),native-preallocation-recovery(cli: 3 of 3 action steps return a client value; sdk-typescript: 0 of 3 action steps return a client value; stepmarket.close-preallocated-child; no passed cell of a client of this capability in independent mode; partial evidence, does not count),pyth-expiry-recovery-closure(cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; stepposition.close; no passed cell of a client of this capability in independent mode; partial evidence, does not count),app-owner-position-recovery(web: 2 of 8 action steps return a client value; android: 2 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value; sdk-typescript: 4 of 8 action steps return a client value; sdk-python: 3 of 8 action steps return a client value; stepposition.close-own; no passed cell of a client of this capability in independent mode; partial evidence, does not count). third-party-position-cleanup and pyth-expiry-recovery-closure close positions and the market; native-preallocation-recovery closes abandoned preparation children. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. app-owner-position-recovery covers the owner's own action from the web and Android apps (normal mode), the CLI and the TypeScript and Python SDKs. - Formal obligations:
- CloseMarket succeeds only for a resolved market past grace with all positions settled, no outstanding share supply and no unclaimed creator fees (close_market_gate_ok_implies_all_guards_pass, close_market_gate_rejects_unresolved, close_market_gate_rejects_unsettled_positions, close_market_gate_rejects_outstanding_spl_supply, close_market_gate_rejects_unclaimed_creator_fees proofs). Evidence:
formal/verification/close_market_gate.rs,program/src/processor/close_market.rs. - CloseMarket returns the market and funded child rent, including donated token-account and policy rent, to the creator, and a re-close cannot move rent twice (close_market_then_reclose_errors_and_recreate_starts_zero in adversarial_lifecycle.rs; close_market_full_surface_sweeps_dust_recovers_rent_and_erases_accounts, close_market_returns_donated_token_account_rent_to_creator in litesvm_close_market_full_wrapper.rs; native_close_reclaims_resolution_policy_rent_to_creator). Evidence:
program/tests/adversarial_lifecycle.rs,program/tests/litesvm_close_market_full_wrapper.rs,program/tests/native_policy_close_runtime.rs. - ClosePosition closes only a settled position in a resolved market or a position whose exact parent market was erased, and pays its rent exactly once to the recorded owner (close_position_process_rejects_unsettled_position_under_live_resolved_market, close_position_process_allows_unsettled_close_when_exact_parent_market_is_erased, close_position_process_is_idempotent_after_position_is_system_owned in agentflow_fresh_19_close_position.rs; close_position_then_reclose_is_noop_and_moves_no_rent_twice in adversarial_lifecycle.rs). Evidence:
program/tests/agentflow_fresh_19_close_position.rs,program/tests/adversarial_lifecycle.rs,program/src/processor/close_position.rs. - ClosePreallocatedChild refunds unused native preparation rent only to its marker-bound funding creator (close_preallocated_child_creator_reclaims_native_child_rent in adversarial_lifecycle.rs; interrupted_preallocation_identity_is_stable_and_creator_can_recover_rent in fv_prec03_native_marker_auth.rs). Evidence:
program/tests/adversarial_lifecycle.rs,program/tests/fv_prec03_native_marker_auth.rs. - Recovery of an abandoned Pyth price update or Wormhole encoded VAA is planned only through its owning program and only for the recorded write authority (receiverRentRecovery.test.ts: recovers a price update with verification kind %d using only the payer, uses the authority in the Wormhole header and refuses a different wallet). Evidence:
packages/pyth-pull/src/__tests__/receiverRentRecovery.test.ts,packages/pyth-pull/src/receiver/rentRecovery.ts.
- CloseMarket succeeds only for a resolved market past grace with all positions settled, no outstanding share supply and no unclaimed creator fees (close_market_gate_ok_implies_all_guards_pass, close_market_gate_rejects_unresolved, close_market_gate_rejects_unsettled_positions, close_market_gate_rejects_outstanding_spl_supply, close_market_gate_rejects_unclaimed_creator_fees proofs). Evidence:
- Known limits:
- YES and NO mint rent is not recoverable because Tokenkeg has no close-mint instruction (spec/SPEC.md section 7.7).
lifecycle.closer-reward-top-up Closer-reward top-up#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
TopUpCloserRewards permissionlessly tops up the rent-safe closer-reward budget of a market PDA to the current config rate, so permissionless closers stay paid; it emits CloserRewardsToppedUp.
- Source:
program/src/processor/top_up_closer_rewards.rs - Routes:
TopUpCloserRewards(0x2D) - Events:
CloserRewardsToppedUp - CLI commands:
market top-up-closer-rewards - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/top_up_closer_rewards.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/market/index.ts | |
| Indexer | partial | apps/indexer/src/processors/adminConfig.ts, apps/indexer/src/processors/adminEvent.ts | processAdminConfigInstruction handles topUpCloserRewards (apps/indexer/src/processors/adminConfig.ts:186-192) by writing one admin_events row through persistAdminEvent (apps/indexer/src/processors/adminEvent.ts:14); it projects no state column of the config or the market. |
| API | partial | apps/indexer/src/api/routes/admin.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/admin/events (admin-authorized, admin.ts) returns the admin_events rows that processAdminConfigInstruction writes for top_up_closer_rewards (admin.ts); no route reports the resulting state. |
| Web | yes | apps/web/app/[locale]/admin/operations/OperationsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/reward_maintenance.rs, packages/sdk-python/examples/reward_maintenance.py |
- Journeys, normal mode: none. Partial evidence:
pyth-closer-reward-sponsorship(cli: 2 of 3 action steps return a client value; sdk-typescript: 1 of 3 action steps return a client value; web: 1 of 3 action steps return a client value; stepmarket.top-up-closer-rewards; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The sponsorship journey pyth-closer-reward-sponsorship (CLI, TypeScript SDK, and the web operations page in normal mode) awaits deferred runtime validation. - Journeys, independent mode: none. Partial evidence:
pyth-closer-reward-sponsorship(cli: 2 of 3 action steps return a client value; sdk-typescript: 1 of 3 action steps return a client value; web: 1 of 3 action steps return a client value; stepmarket.top-up-closer-rewards; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The sponsorship journey pyth-closer-reward-sponsorship (CLI, TypeScript SDK, and the web operations page in normal mode) awaits deferred runtime validation. - Formal obligations:
- Top-up is permissionless for any signing payer, never an admin-gated route (TopUpCloserRewards must remain permissionless assertion in security_set_pauser_matrix.rs; init_spline_and_top_up_closer_rewards_accept_a_second_currency). Evidence:
program/tests/security_set_pauser_matrix.rs,program/tests/currency_protocol_treasury_paths.rs. - Top-up moves exactly the deficit between the rent-safe budget and config closer_reward_lamports times CLOSER_REWARDS_PER_MARKET, and is a no-op at or above target (top_up_closer_rewards_budget_boundary_one_below_target_moves_one_lamport_at_or_above_noop in boundary_instruction_behavior.rs; top_up_closer_rewards_funds_underfunded_market_and_then_noops; top_up_checks_reserve_before_idempotent_return_and_transfers_only_the_deficit). Evidence:
program/tests/boundary_instruction_behavior.rs,program/tests/integration_top_up_closer_rewards.rs,program/tests/fv_tr_force_reward_payout_census.rs. - Lamports move only through a System Program transfer whose payer and market deltas equal the top-up, and a short payer or a failed transfer aborts with no change (top_up_closer_rewards_payer_balance_boundary_one_lamport_short_rejected_exact_accepted; system_transfer_rejection_aborts_top_up in goal_g_dc_02.rs). Evidence:
program/tests/boundary_instruction_behavior.rs,program/tests/goal_g_dc_02.rs,program/src/processor/top_up_closer_rewards.rs. - The market quote reserve is authenticated against its canonical vault both before the idempotent return and after the transfer (top_up_checks_reserve_before_idempotent_return_and_transfers_only_the_deficit in fv_tr_force_reward_payout_census.rs). Evidence:
program/tests/fv_tr_force_reward_payout_census.rs. - The closer-reward payout that this budget funds floors at rent exemption and moves lamports only (closer_reward_actual_helper_full_u64_result_and_frame proof; pay_closer_reward_floors_to_rent_and_moves_lamports_only). Evidence:
formal/verification/closer_reward_refinement.rs,program/tests/fv_tr_force_reward_payout_census.rs.
- Top-up is permissionless for any signing payer, never an admin-gated route (TopUpCloserRewards must remain permissionless assertion in security_set_pauser_matrix.rs; init_spline_and_top_up_closer_rewards_accept_a_second_currency). Evidence:
funding.deposit Deposit funds#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
DepositFunds moves settlement tokens from a user token account into the market vault and credits the trader-ledger quote_free bucket by the same amount, emitting FundsDeposited.
- Source:
program/src/processor/deposit_funds.rs - Routes:
DepositFunds(0x08) - Events:
FundsDeposited - Error categories:
Token - CLI commands:
order deposit-funds - API routes:
GET /api/v1/user/balance - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/deposit_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/funds.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts | |
| API | partial | apps/indexer/src/api/routes/positions.ts, apps/indexer/src/api/routes/user.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/positions returns collateralDeposited, which the funds processor raises and lowers (positions.ts; processors/funds.ts). GET /api/v1/user/balance reports no ledger balance: protocolQuoteFree is null because no trader-ledger mirror exists (user.ts). |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketFundingActions.ts | |
| Android | yes | apps/mobile/src/hooks/useFundsTransfer.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/funding_lifecycle.rs, packages/sdk-python/examples/funding_lifecycle.py, packages/core/examples/09-advanced-order-management.ts |
- Journeys, normal mode:
suite-web-funding(web; UI read; suite source matcheseventName: 'FundsDeposited'; pins expected-event; partial evidence, does not count),suite-web-indexer-outage(web; UI read; suite source matchesexpectedEventName: 'FundsDeposited'; pins expected-event; partial evidence, does not count),suite-android-funding(android; UI read; suite source matchesexpectedEventName: 'FundsDeposited'; pins expected-event; partial evidence, does not count),suite-web-orders(web; UI read; suite source matchesconfirmed UI deposit to trader ledger; pins assertion; asserts client, chain for this capability; partial evidence, does not count),pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepfunding.deposit; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; stepfunding.deposit; no passed cell of a client of this capability in normal mode; partial evidence, does not count) - Journeys, independent mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepfunding.deposit; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; stepfunding.deposit; no passed cell of a client of this capability in independent mode; partial evidence, does not count) - Formal obligations:
- A deposit credits the ledger by exactly the transferred amount. Evidence: none.
funding.withdraw Withdraw funds#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
WithdrawFunds moves settlement tokens from the market vault to a user token account and debits the trader-ledger quote_free bucket; only the free portion is withdrawable, and FundsWithdrawn is emitted.
- Source:
program/src/processor/withdraw_funds.rs - Routes:
WithdrawFunds(0x09) - Events:
FundsWithdrawn - CLI commands:
order withdraw-funds - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/withdraw_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/funds.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts | |
| API | partial | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/positions.ts, apps/indexer/src/api/routes/user.ts | POST /api/v1/tx/strategy-ledger builds WithdrawFunds only for a registered strategy (the withdraw-quote operation, planStrategyLedgerOperation in packages/core/src/strategyAccounts.ts); no /tx route builds a withdrawal outside a strategy. GET /api/v1/positions returns collateralDeposited, which the funds processor raises and lowers (positions.ts; processors/funds.ts). GET /api/v1/user/balance reports no ledger balance: protocolQuoteFree is null because no trader-ledger mirror exists (user.ts). |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketFundingActions.ts | |
| Android | yes | apps/mobile/src/hooks/useFundsTransfer.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/funding_lifecycle.rs, packages/sdk-python/examples/funding_lifecycle.py, packages/core/examples/09-advanced-order-management.ts, packages/core/examples/native-tutorial.ts |
- Journeys, normal mode: none. Partial evidence:
suite-web-withdrawal(web; UI read; suite source matcheseventName: 'FundsWithdrawn'; pins expected-event; partial evidence, does not count),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; stepfunding.withdraw; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; stepfunding.withdraw; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- A withdrawal never exceeds quote_free. Evidence: none.
outcome.mint Mint complete sets#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-A. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
MintShares deposits settlement tokens and mints equal YES and NO shares (one complete set per unit), raising total_yes_shares and total_no_shares within max_total_shares; it emits SharesMinted.
- Source:
program/src/processor/mint_shares.rs - Routes:
MintShares(0x07) - Events:
SharesMinted - CLI commands:
position mint - API routes:
POST /api/v1/tx/mint-shares,GET /api/v1/positions,GET /api/v1/user/positions - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/mint_shares.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/position/index.ts | |
| Indexer | yes | apps/indexer/src/processors/mintShares.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/positions.ts | The authenticated builder returns an unsigned MintShares instruction. Position reads return the indexed YES and NO balances. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketMintAction.ts | |
| Android | yes | apps/mobile/src/hooks/useMintShares.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/instruction_cookbook.rs, packages/sdk-python/examples/instruction_cookbook.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepposition.mint; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; stepposition.mint; no passed cell of a client of this capability in normal mode; partial evidence, does not count) - Journeys, independent mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepposition.mint; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; stepposition.mint; no passed cell of a client of this capability in independent mode; partial evidence, does not count) - Formal obligations:
- Minting keeps YES supply equal to NO supply and within the market cap. Evidence:
program/tests/agentflow_fresh_12_mint_market_updates.rs.
- Minting keeps YES supply equal to NO supply and within the market cap. Evidence:
outcome.withdraw-shares Withdraw shares#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-A. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
WithdrawShares converts trader-ledger free YES or NO shares into SPL outcome tokens in the user wallet, so they can be transferred or traded elsewhere; it emits SharesWithdrawn.
- Source:
program/src/processor/withdraw_shares.rs - Routes:
WithdrawShares(0x0A) - Events:
SharesWithdrawn - CLI commands:
position withdraw - API routes:
POST /api/v1/tx/withdraw-shares - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/withdraw_shares.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/position/index.ts | |
| Indexer | yes | apps/indexer/src/processors/withdrawShares.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/positions.ts | The authenticated builder derives the selected outcome mint from the market and validates the wallet destination. |
| Web | yes | apps/web/app/[locale]/portfolio/usePortfolioPositionActions.ts | |
| Android | yes | apps/mobile/src/hooks/useWithdrawShares.ts, apps/mobile/src/screens/PortfolioScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/funding_lifecycle.rs, packages/sdk-python/examples/funding_lifecycle.py, packages/core/examples/07-build-all-high-level-instructions.ts, packages/core/examples/native-tutorial.ts |
- Journeys, normal mode: none. Partial evidence:
outcome-tokens(cli: 1 of 15 action steps return a client value; sdk-typescript: 1 of 15 action steps return a client value; sdk-python: 1 of 15 action steps return a client value; sdk-rust: 1 of 15 action steps return a client value; web: 2 of 15 action steps return a client value; android: 2 of 15 action steps return a client value; stepposition.withdraw-shares; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The outcome-tokens journey exercises this capability. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
outcome-tokens(cli: 1 of 15 action steps return a client value; sdk-typescript: 1 of 15 action steps return a client value; sdk-python: 1 of 15 action steps return a client value; sdk-rust: 1 of 15 action steps return a client value; web: 2 of 15 action steps return a client value; android: 2 of 15 action steps return a client value; stepposition.withdraw-shares; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The outcome-tokens journey exercises this capability. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Withdrawn shares leave the ledger and appear as SPL tokens one to one. Evidence:
program/tests/agentflow_fresh_12_withdraw_share_promotion.rs.
- Withdrawn shares leave the ledger and appear as SPL tokens one to one. Evidence:
outcome.merge Merge before resolution#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-A,P-C. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
MergeCompleteSet burns owned YES and NO pairs from caller-stated wallet and trader-ledger portions and returns one settlement unit per pair; it runs any time before resolution (including before start, after close and while paused) and emits CompleteSetMerged. The apps take wallet tokens first.
- Source:
program/src/processor/merge_complete_set.rs,packages/core/src/completeSetMerge.ts - Routes:
MergeCompleteSet(0x0B) - Events:
CompleteSetMerged - CLI commands:
position merge-complete-set - API routes:
POST /api/v1/tx/merge-complete-set - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/merge_complete_set.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/position/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/processors/mergeCompleteSet.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/positions.ts | The authenticated builder returns an unsigned MergeCompleteSet instruction with explicit wallet portions for both outcomes. |
| Web | yes | apps/web/app/[locale]/portfolio/portfolioMerge.ts | |
| Android | yes | apps/mobile/src/hooks/useMergeCompleteSet.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/complete_set_merge.rs, packages/sdk-python/examples/complete_set_merge.py |
- Journeys, normal mode: none. Partial evidence:
outcome-tokens(cli: 1 of 15 action steps return a client value; sdk-typescript: 1 of 15 action steps return a client value; sdk-python: 1 of 15 action steps return a client value; sdk-rust: 1 of 15 action steps return a client value; web: 2 of 15 action steps return a client value; android: 2 of 15 action steps return a client value; stepposition.mergewith{"walletYes":"0","walletNo":"1000000"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The outcome-tokens journey exercises this capability. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
outcome-tokens(cli: 1 of 15 action steps return a client value; sdk-typescript: 1 of 15 action steps return a client value; sdk-python: 1 of 15 action steps return a client value; sdk-rust: 1 of 15 action steps return a client value; web: 2 of 15 action steps return a client value; android: 2 of 15 action steps return a client value; stepposition.mergewith{"walletYes":"0","walletNo":"1000000"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The outcome-tokens journey exercises this capability. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- MergeCompleteSet is admitted only while the market is unresolved; the outcome gate has no clock or pause condition (unresolved_merge_has_no_clock_or_pause_gate in merge_complete_set.rs; merge_complete_set_resolution_boundary_unresolved_accepted_resolved_rejected in boundary_instruction_behavior.rs). Evidence:
program/src/processor/merge_complete_set.rs,program/tests/boundary_instruction_behavior.rs. - The 24-byte payload parses iff quantity > 0 and both wallet portions <= quantity; the ledger portions are exactly quantity minus each wallet portion (disp03_merge_full_content_iff_literal_ix51, disp03_merge_all_short_contents_refuse, disp03_merge_all_long_packet_contents_refuse, disp03_merge_tagged_exact_literal_fields_and_frame; portions_preserve_each_leg_exactly, portions_reject_zero_and_overallocation, wallet_only_merge_has_no_ledger_portion_to_resolve). Evidence:
formal/verification/goal_g_disp_03_merge.rs,formal/verification/goal_g_disp_03_merge_composition.rs,program/src/processor/merge_complete_set.rs. - Each portion is bounded by the caller's own wallet balance or free ledger bucket; locked shares are never debited (merge_complete_set_wallet_balance_boundary_one_above_rejected_max_minus_one_and_max_accepted, merge_complete_set_ledger_free_boundary_one_above_rejected_max_minus_one_and_max_accepted, position_mirror_debits_free_only_and_preserves_locked). Evidence:
program/tests/boundary_instruction_behavior.rs,program/src/processor/merge_complete_set.rs. - Conservation: each merged YES+NO pair retires exactly one claim per side and pays exactly one settlement unit; observed burn and payout deltas must match, or the whole merge rolls back (projection_retires_exactly_one_complete_set_and_rejects_repeat, merge_burn_and_payout_observation_rejects_short_account_or_supply_delta, real_merge_payout_guard_rolls_back_prior_burns_and_authoritative_ledger_debits, complete_set_merge_retires_claims_and_restores_issuance_headroom). Evidence:
program/src/processor/merge_complete_set.rs,program/tests/fv_merge_complete_set_observed_payout_rollback.rs,program/tests/pr675_economic_capacity_runtime.rs. - The apps cap a merge at min(YES, NO) across both sources, take wallet tokens first and refuse unknown or one-sided holdings (completeSetMerge.test.ts: planCompleteSetMerge draws wallet first, maxMergeableCompleteSets, completeSetMergeEligibility). Evidence:
packages/core/src/completeSetMerge.ts,packages/core/src/__tests__/completeSetMerge.test.ts. - Runtime admission while paused, before start and after close, and emission of CompleteSetMerged by the handler, are untested; only the pure gate and the event encoder (every_variant_round_trips_through_real_encoder in fv_dc08_event_roundtrip.rs) are tested; uncovered; phase 15. Evidence:
program/src/processor/merge_complete_set.rs,program/tests/fv_dc08_event_roundtrip.rs.
- MergeCompleteSet is admitted only while the market is unresolved; the outcome gate has no clock or pause condition (unresolved_merge_has_no_clock_or_pause_gate in merge_complete_set.rs; merge_complete_set_resolution_boundary_unresolved_accepted_resolved_rejected in boundary_instruction_behavior.rs). Evidence:
outcome.redeem Redeem after resolution#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-A. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Redeem pays the kind-aware settlement payout for shares after resolution, drawing ledger free shares first and then SPL tokens, and emits SharesRedeemed; a provided position account is a settlement mirror, not the share authority.
- Source:
program/src/processor/redeem.rs,packages/core/src/resumableRedeem.ts - Routes:
Redeem(0x17) - Events:
SharesRedeemed,EconomicDeltaApplied - CLI commands:
position redeem - API routes:
POST /api/v1/tx/redeem - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/redeem.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/position/index.ts | |
| Indexer | yes | apps/indexer/src/processors/redeem.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/parser.ts, apps/indexer/src/indexer/recorderReconciliationEnrichment.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/processors/redeemProjectionSource.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/processors/dispatch.ts, apps/indexer/src/processors/mergeCompleteSet.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/positions.ts | POST /api/v1/tx/redeem builds Redeem (txBuilder.ts); GET /api/v1/positions returns settled and payout (positions.ts). |
| Web | yes | apps/web/app/[locale]/portfolio/usePortfolioClaims.ts | |
| Android | yes | apps/mobile/src/hooks/useRedeem.ts, apps/mobile/src/screens/PortfolioScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/instruction_cookbook.rs, packages/sdk-python/examples/instruction_cookbook.py, packages/core/examples/07-build-all-high-level-instructions.ts, packages/core/examples/14-resumable-redemption.ts, packages/core/examples/native-tutorial.ts, packages/core/examples/tutorial-session.ts |
- Journeys, normal mode:
suite-web-claim(web; UI read; suite source matchesindexer did not observe exact SharesRedeemed signature; pins assertion; partial evidence, does not count),pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepposition.redeem; passed on a real stack for sdk-typescript, sdk-python, sdk-rust) - Journeys, independent mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; stepposition.redeem; passed on a real stack for sdk-typescript, sdk-python, sdk-rust) - Formal obligations:
- Redemption pays exactly the resolved payout and burns the redeemed shares. Evidence:
program/tests/agentflow_fresh_19_redeem_terminal.rs,program/tests/agentflow_fresh_5_redeem_position.rs.
- Redemption pays exactly the resolved payout and burns the redeemed shares. Evidence:
order.limit Limit order#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterorderType="limit". web:apps/web/app/components/trading/OrderForm.tsxmatchesOrderType\.Limit, OrderType\.PostOnly, OrderType\.ImmediateOrCancel. android:apps/mobile/src/screens/marketDetail/useMarketDetailTrading.tsmatchesuseState<OrderSelection>\(OrderType\.Limit\).
PlaceOrder with order_type 0 (Limit) matches the order against the opposite side of the deep orderbook up to the limit price in the named outcome price space [1, 9999] bps, then rests any remainder on the book until it is cancelled, filled, or expires. Fills emit OrderFilled and OrderFilledMaker; a resting remainder emits OrderPlaced.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs,program/src/processor/place_order_trait/mod.rs,program/src/processor/place_order/event_projection.rs - Routes:
PlaceOrder(0x0C),PlaceLimitWithFreeFunds(0x0F) - Events:
OrderPlaced,OrderFilled,OrderFilledMaker,MakerFillApplied,OrderEvicted,OrderRemainderDiscarded - Error categories:
Order,Math - CLI commands:
order place - API routes:
GET /api/v1/orders,GET /api/v1/orders?tx={signature},GET /api/v1/user/orders,POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/orderPlacedHintMatching.ts, apps/indexer/src/indexer/orderSides.ts, apps/indexer/src/indexer/parser.ts, apps/indexer/src/indexer/recorderReconciliationEnrichment.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/processors/mergeCompleteSet.ts, apps/indexer/src/processors/placeOrder.ts, apps/indexer/src/indexer/appliedFillLedger.ts, apps/indexer/src/indexer/tradeFillProjection.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) with orderType (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/app/components/trading/OrderForm.tsx, apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts | |
| Android | yes | apps/mobile/src/screens/marketDetail/useMarketDetailTrading.ts, apps/mobile/src/hooks/usePlaceOrder.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/03-build-place-order-ix.ts |
- Journeys, normal mode: none. Partial evidence:
suite-web-orders(web; UI read; suite source matchessignedDetail: 'actor-signed-place-limit-order'; pins proof-label; partial evidence, does not count),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"limit"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"orderType":"limit"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"limit"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- Matching moves collateral and shares so that maker, taker and vault balances are conserved, including fee dust. Evidence:
program/tests/agentflow_fresh_4_matching_fee_accounting.rs,program/tests/agentflow_fresh_5_maker_fill_settlement.rs. - A limit order never fills at a price worse than its limit. Evidence:
program/tests/agentflow_fresh_24_matching_accounting.rs.
- Matching moves collateral and shares so that maker, taker and vault balances are conserved, including fee dust. Evidence:
- Known limits:
- Trader lookup validates seat hints against the owner and generation and falls back to the bounded owner index.
order.post-only Post-only order#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterorderType="post-only". web:apps/web/app/components/trading/OrderForm.tsxmatchessetOrderType\(OrderType\.PostOnly\). android:apps/mobile/src/screens/MarketDetailScreen.tsxmatchessetOrderType\(OrderType\.PostOnly\).
PlaceOrder with order_type 1 (PostOnly) never takes liquidity: an order that would cross is handled by its post-only cross policy (reject or slide) and otherwise rests on the book as a maker order.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),PlaceLimitWithFreeFunds(0x0F) - Events:
OrderPlaced - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/orderPlacedHintMatching.ts, apps/indexer/src/indexer/orderSides.ts, apps/indexer/src/indexer/parser.ts, apps/indexer/src/indexer/recorderReconciliationEnrichment.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/processors/mergeCompleteSet.ts, apps/indexer/src/processors/placeOrder.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) with orderType (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/app/components/trading/OrderForm.tsx | |
| Android | yes | apps/mobile/src/screens/MarketDetailScreen.tsx, apps/mobile/src/screens/marketDetail/useMarketDetailTrading.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; steporder.placewith{"orderType":"post-only"}; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"post-only"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"orderType":"post-only"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count) - Journeys, independent mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; steporder.placewith{"orderType":"post-only"}; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"post-only"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count) - Formal obligations:
- A post-only order never removes resting liquidity. Evidence:
program/tests/agentflow_fresh_24_post_only_slide.rs.
- A post-only order never removes resting liquidity. Evidence:
order.immediate-or-cancel Immediate-or-cancel order#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterorderType="ioc". web:apps/web/lib/quickTrade.tsmatchesorderType: OrderType\.ImmediateOrCancel. android:apps/mobile/src/utils/portfolioExit.tsmatchesorderType: OrderType\.ImmediateOrCancel.
PlaceOrder or SwapWithFreeFunds with order_type 2 (ImmediateOrCancel) matches against the book and discards any unfilled remainder instead of resting it; a partial IOC succeeds with a structured stop reason and a zero-fill stop fails.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E) - Events:
OrderFilled,OrderFilledMaker,OrderRemainderDiscarded,ExactInputExecuted - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/placeOrder.ts, apps/indexer/src/indexer/appliedFillLedger.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/recorderReconciliationEnrichment.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/indexer/tradeFillProjection.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/processors/mergeCompleteSet.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) with orderType (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/lib/quickTrade.ts, apps/web/app/components/trading/QuickTradeModal.tsx, apps/web/app/components/trading/OrderForm.tsx | |
| Android | yes | apps/mobile/src/screens/marketDetail/useMarketDetailTrading.ts, apps/mobile/src/utils/portfolioExit.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode:
suite-web-fill(web; UI read; suite source matchesvariantId: 'variant:case:ORDER-04:web:matched-ioc-full-fill'; pins proof-label; partial evidence, does not count),pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; steporder.placewith{"orderType":"ioc"}; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count) - Journeys, independent mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; steporder.placewith{"orderType":"ioc"}; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count) - Formal obligations:
- An IOC order never rests and respects its slippage bound. Evidence:
program/tests/agentflow_fresh_24_ioc_bounds.rs.
- An IOC order never rests and respects its slippage bound. Evidence:
order.fill-or-kill Fill-or-kill through immediate-or-cancel#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterminFillQuantityset. android:apps/mobile/src/screens/marketDetail/useMarketDetailTrading.tsmatchesconst fillOrKill = orderSelection. web:apps/web/app/components/trading/OrderForm.tsxmatchesfillOrKill\s+\? \{ \.\.\.preflight, minFillQuantity: currentQuantity.
An IOC order whose min_fill equals its quantity either fills completely or fails atomically; the program has no separate fill-or-kill order type, the behavior is IOC plus an atomic minimum fill.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E) - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | order place --fok applies IOC with the parsed full quantity as minimum fill. |
| Indexer | not-applicable | none | An execution guard with no indexed state: the indexer stores no value of this parameter; its effect appears as fills or as a failed transaction. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) with orderType and minFillQuantity (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/app/components/trading/OrderForm.tsx | The order forms set the IOC minimum fill to the full quantity when the trader selects Fill or Kill. |
| Android | yes | apps/mobile/src/screens/marketDetail/useMarketDetailTrading.ts | The order forms set the IOC minimum fill to the full quantity when the trader selects Fill or Kill. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc","quantity":"500000","minFillQuantity":"500000"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc","quantity":"500000","minFillQuantity":"500000"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"orderType":"ioc","quantity":"1250000","minFillQuantity":"1250000"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc","quantity":"500000","minFillQuantity":"500000"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count),order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"orderType":"ioc","quantity":"1250000","minFillQuantity":"1250000"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- An IOC with min_fill equal to quantity fills fully or changes no state. Evidence:
program/tests/agentflow_fresh_24_ioc_bounds.rs.
- An IOC with min_fill equal to quantity fills fully or changes no state. Evidence:
- Known limits:
- Fill-or-kill is not an order type; a client must set min_fill to the full quantity on an IOC order.
order.partial-fills Partial fills#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
A taker order that meets less resting quantity than it asks for fills that quantity, and its remainder rests (Limit), is discarded (IOC) or is refused by min_fill; a maker order that is partly filled keeps its remaining quantity on the book.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E),PlaceLimitWithFreeFunds(0x0F) - Events:
OrderFilled,OrderFilledMaker,MakerFillApplied - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/placeOrder.ts, apps/indexer/src/indexer/appliedFillLedger.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/recorderReconciliationEnrichment.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/indexer/tradeFillProjection.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/processors/mergeCompleteSet.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) with any order type (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/app/components/trading/OrderForm.tsx, apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts | |
| Android | yes | apps/mobile/src/screens/marketDetail/useMarketDetailTrading.ts, apps/mobile/src/hooks/usePlaceOrder.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py |
- Journeys, normal mode: none. Partial evidence:
suite-web-fill-cancel(web; UI read; suite source matchesremaining quantity plus fills must preserve the original placed size; pins assertion; partial evidence, does not count),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc","matchLimit":2}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc","matchLimit":2}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc","matchLimit":2}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- A partial maker fill keeps the exact remaining quantity and lock. Evidence:
program/tests/agentflow_fresh_7_maker_fill_delta.rs.
- A partial maker fill keeps the exact remaining quantity and lock. Evidence:
order.minimum-fill Minimum fill#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterminFillQuantityset. web:apps/web/app/components/trading/OrderForm.tsxmatchesminFillQuantity:. android:apps/mobile/src/screens/marketDetail/useMarketDetailTrading.tsmatchesminFillQuantity: fillOrKill.
PlaceOrder carries min_fill (shares); on an IOC order the order fails atomically when it would fill less than min_fill. Zero disables the bound; Limit and PostOnly orders ignore it.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E) - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | not-applicable | none | An execution guard with no indexed state: the indexer stores no value of this parameter; its effect appears as fills or as a failed transaction. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) with minFillQuantity (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/app/components/trading/OrderForm.tsx | |
| Android | yes | apps/mobile/src/screens/marketDetail/useMarketDetailTrading.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc","minFillQuantity":"500000"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc","minFillQuantity":"500000"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"ioc","minFillQuantity":"500000"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- min_fill is enforced atomically on IOC orders. Evidence:
program/tests/agentflow_fresh_24_ioc_bounds.rs.
- min_fill is enforced atomically on IOC orders. Evidence:
order.post-only-cross.reject Post-only cross policy: reject#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
With reject_post_only = 1 (the default) a PostOnly order that would cross the book fails with WouldCross and changes no state.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),PlaceLimitWithFreeFunds(0x0F) - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | not-applicable | none | An execution guard with no indexed state: the indexer stores no value of this parameter; its effect appears as fills or as a failed transaction. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) with rejectPostOnlyWouldCross (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/app/components/trading/OrderForm.tsx | The order forms expose slide as an opt-in and use the reject default otherwise. |
| Android | yes | apps/mobile/src/screens/marketDetail/useMarketDetailTrading.ts | The order forms expose slide as an opt-in and use the reject default otherwise. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"rejectPostOnlyWouldCross":1}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"verifyPostOnlyRejection":true}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"rejectPostOnlyWouldCross":1}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- A crossing post-only order with the reject policy fails without a state change. Evidence:
program/tests/agentflow_fresh_24_post_only_slide.rs.
- A crossing post-only order with the reject policy fails without a state change. Evidence:
order.post-only-cross.slide Post-only cross policy: slide#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterrejectPostOnlyWouldCross=0. web:apps/web/app/components/trading/OrderForm.tsxmatchesrejectPostOnlyWouldCross: slidePostOnly \? 0 : undefined. android:apps/mobile/src/screens/marketDetail/useMarketDetailTrading.tsmatchesrejectPostOnlyWouldCross: slidePostOnly \? 0 : undefined.
With reject_post_only = 0 a PostOnly order that would cross slides one tick beyond the best crossing maker price and rests there instead of failing.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),PlaceLimitWithFreeFunds(0x0F) - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | not-applicable | none | An execution guard with no indexed state: the indexer stores no value of this parameter; its effect appears as fills or as a failed transaction. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) with rejectPostOnlyWouldCross (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/app/components/trading/OrderForm.tsx | The order forms expose slide as an opt-in and use the reject default otherwise. |
| Android | yes | apps/mobile/src/screens/marketDetail/useMarketDetailTrading.ts | The order forms expose slide as an opt-in and use the reject default otherwise. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"rejectPostOnlyWouldCross":0}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"rejectPostOnlyWouldCross":0}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"rejectPostOnlyWouldCross":0}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- The slide price is one tick beyond the best crossing maker and never crosses. Evidence:
program/tests/agentflow_fresh_24_post_only_slide.rs.
- The slide price is one tick beyond the best crossing maker and never crosses. Evidence:
order.self-trade-prevention Self-trade prevention#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
PlaceOrder carries self_trade: 0 Abort fails the order on a self match, 1 CancelProvide cancels the resting self order, 2 DecrementTake reduces both sides without a fill; a prevented match emits SelfTradePrevented.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E),PlaceLimitWithFreeFunds(0x0F) - Events:
SelfTradePrevented - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/placeOrder.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/tradeFillProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) with selfTradeBehavior (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/app/components/trading/OrderForm.tsx | The matching controls offer Abort, Cancel Provide and Decrement Take when applicable. |
| Android | yes | apps/mobile/src/screens/marketDetail/OrderFormSection.tsx | The matching controls offer Abort, Cancel Provide and Decrement Take when applicable. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"selfTradeBehavior":2}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"selfTradeBehavior":0}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"selfTradeBehavior":2}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"selfTradeBehavior":2}; no passed cell of a client of this capability in independent mode; partial evidence, does not count),order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"selfTradeBehavior":0}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- Each self-trade behavior leaves balances conserved and never fills an owner against itself. Evidence:
program/tests/agentflow_fresh_24_self_trade.rs,program/tests/continuation_p02_decrement_take_two_owner.rs.
- Each self-trade behavior leaves balances conserved and never fills an owner against itself. Evidence:
order.execution-deadline Execution deadline#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterexecutionValidUntilset. web:apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.tsmatchesplaceOrderParamsFromReviewedIntent\(\s*reviewed. android:apps/mobile/src/screens/marketDetail/useMarketDetailConfirm.tsmatchesexecutionValidUntil: reviewed\.executionValidUntil.
PlaceOrder carries execution_valid_until (unix seconds); a non-zero value makes the program reject the order when it lands at or after that time. Zero disables the deadline.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E),PlaceLimitWithFreeFunds(0x0F) - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | not-applicable | none | An execution guard with no indexed state: the indexer stores no value of this parameter; its effect appears as fills or as a failed transaction. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The builder accepts executionValidUntil and retains expiresAt as a fallback. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts, apps/web/app/[locale]/markets/[marketId]/reviewedOrderGate.ts, apps/web/app/[locale]/markets/[marketId]/quoteLadderSubmit.ts | |
| Android | yes | apps/mobile/src/hooks/usePlaceOrder.ts, apps/mobile/src/screens/marketDetail/useMarketDetailConfirm.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"executionValidUntil":{"fixture":"orderExecutionDeadline"}}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"executionValidUntil":"1"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"executionValidUntil":{"fixture":"orderExecutionDeadline"}}; no passed cell of a client of this capability in independent mode; partial evidence, does not count),order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"executionValidUntil":"1"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- The 83-byte PlaceOrder parser rejects a negative execution_valid_until and otherwise keeps it verbatim (place_order_deadline_parser_full_i64; place_rejects_negative_deadlines_and_maps_outcome_intent in instruction.rs). Evidence:
formal/verification/place_order_deadline_refinement.rs,program/src/instruction.rs. - The handler preflight rejects when execution_valid_until != 0 and now >= execution_valid_until, before any matching or mutation; zero disables the check (execution_contract_routing_preflight_deadline_now_and_fee_epoch_rollback, execution_contract_ioc_deadline_and_market_close_are_independent_boundaries in place_order/tests.rs). Evidence:
program/src/processor/place_order.rs,program/src/processor/place_order/tests.rs. - The execution deadline is independent of the resting expiry and the market close: it never becomes a resting expiry, and an IOC at or after close fails with TradingEnded (execution_contract_ioc_deadline_and_market_close_are_independent_boundaries; disp03_place_direct_execution_request_and_optional_fields). Evidence:
program/src/processor/place_order/tests.rs,formal/verification/goal_g_disp_03_place_semantic_domains.rs. - PlaceOrder, SwapWithFreeFunds and PlaceLimitWithFreeFunds (tags 0x0C, 0x0E, 0x0F) forward every parsed field, including the deadline, to the same execution request (disp04_place_tagged_forwarding_optional_id_and_expiry, disp04_place_limit_free_funds_full_packet_actual_args_forwarding; every_scalar_bit_and_client_id_byte_survives_all_three_producers). Evidence:
formal/verification/goal_g_disp_04_place_forwarding.rs,program/tests/fv_tr_single_placement_sdk_parser_bridge.rs. - The handler gate validate_execution_contract_preflight equals the Kani-proven DTO predicate (disp03_place_complete_execution_contract_mathematical_time_iff proves only the uncalled PlaceOrderArgs::validate_execution_contract), and a runtime deadline rejection on the free-funds routes is untested; uncovered; phase 15. Evidence:
program/src/processor/place_order.rs,formal/verification/goal_g_disp_03_place_semantic_domains.rs.
- The 83-byte PlaceOrder parser rejects a negative execution_valid_until and otherwise keeps it verbatim (place_order_deadline_parser_full_i64; place_rejects_negative_deadlines_and_maps_outcome_intent in instruction.rs). Evidence:
- Known limits:
- The apps derive the deadline from the reviewed intent; the user does not choose it.
order.resting-expiry Resting expiry and time to live#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterrestingExpiresAtset. web:apps/web/app/components/trading/OrderForm.tsxmatchesrestingExpiresAt: restingExpiresAt. android:apps/mobile/src/screens/marketDetail/OrderFormSection.tsxmatchesmarketDetail\.restingExpiryOptional.
PlaceOrder carries resting_expires_at (absolute) and max_resting_age (TTL in seconds, zero selects the market close); a resting order past its expiry no longer matches and can be removed by ReclaimExpiredOrder.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),PlaceLimitWithFreeFunds(0x0F) - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/placeOrder.ts, apps/indexer/src/indexer/binaryEventProjection.ts | PlaceOrder reaches processPlaceOrder (placeOrder.ts:58); orders.expires_at is projected from max_age_seconds and the explicit resting expiry of the placing instruction (binaryEventProjection.ts:695-836; column at apps/indexer/migrations/001_canonical_schema.sql:1124). |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The builder accepts restingExpiresAt and maxAgeSeconds and retains expiresAt as a fallback. |
| Web | yes | apps/web/app/components/trading/OrderForm.tsx | |
| Android | yes | apps/mobile/src/screens/marketDetail/OrderFormSection.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"restingExpiresAt":{"fixture":"orderRestingDeadline"}}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"restingExpiresAt":{"fixture":"orderRestingDeadline"}}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"restingExpiresAt":{"fixture":"orderRestingDeadline"}}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- An order past its TTL is ineligible to match and reclaimable. Evidence:
program/tests/agentflow_fresh_4_reclaim_permissionless.rs.
- An order past its TTL is ineligible to match and reclaimable. Evidence:
order.quote-bounds Quote bounds#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parametermaxQuoteInputset. web:apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.tsmatchesplaceOrderParamsFromReviewedIntent\(\s*reviewed. android:apps/mobile/src/screens/marketDetail/useMarketDetailConfirm.tsmatchesmaxQuoteInput: reviewed\.economics\.maxQuoteInput.
PlaceOrder carries max_quote_input and min_quote_output (settlement units); the program fails a taker execution whose quote paid exceeds the first or whose quote received falls below the second. The defaults (u64 max and zero) disable them.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E),PlaceLimitWithFreeFunds(0x0F) - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/sdk.ts, packages/core/src/instructions.ts | The high-level placement API and instruction builder accept this control. |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | The high-level placement controls and instruction builder accept this control. |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | not-applicable | none | An execution guard with no indexed state: the indexer stores no value of this parameter; its effect appears as fills or as a failed transaction. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The transaction builder accepts the maximum quote input and minimum quote output. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts, apps/web/app/[locale]/markets/[marketId]/reviewedOrderGate.ts, apps/web/app/[locale]/markets/[marketId]/reviewedFlatten.ts | |
| Android | yes | apps/mobile/src/hooks/usePlaceOrder.ts, apps/mobile/src/screens/marketDetail/useMarketDetailConfirm.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"maxQuoteInput":"100000"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"maxQuoteInput":"600000"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"maxQuoteInput":"100000"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"maxQuoteInput":"600000"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- A buy fails when the user's total debit collateral_in (fill spend including taker fee, plus any resting lock) exceeds max_quote_input; u64::MAX disables it, and rejection rolls back (execution_contract_production_buy_exact_debit_bound_and_rollback, execution_contract_production_buy_maker_fee_bound_uses_actual_debit in guard.rs). Evidence:
program/src/processor/place_order_trait/mod.rs,program/src/processor/place_order_trait/guard.rs. - For sells only, a nonzero min_quote_output requires net trade proceeds (gross sold minus taker fees) >= ceil(min_quote_output * executed / quantity); a sell that fills nothing is rejected, and refunds of the user's own earlier bids cannot satisfy the bound (execution_contract_production_partial_sell_ceil_bound_uses_executed_quantity, execution_contract_sell_bound_excludes_funded_self_bid_refund). Evidence:
program/src/processor/place_order_trait/mod.rs,program/src/processor/place_order_trait/guard.rs. - The DTO quote-bound predicates are exact iff relations with MAX and zero sentinels, and the proportional floor equals the cross-product relation (disp03_place_aggregate_quote_bounds_full_type_iff, disp03_place_proportional_sell_floor_cross_product_iff; quote_bounds_apply_to_aggregate_result_before_commit in instruction.rs). Evidence:
formal/verification/goal_g_disp_03_place_semantic_domains.rs,program/src/instruction.rs. - All three single-placement routes forward max_quote_input and min_quote_output unchanged into the execution request (disp03_place_direct_execution_request_and_optional_fields, disp04_place_tagged_forwarding_optional_id_and_expiry, disp04_place_limit_free_funds_full_packet_actual_args_forwarding). Evidence:
formal/verification/goal_g_disp_03_place_semantic_domains.rs,formal/verification/goal_g_disp_04_place_forwarding.rs. - The production check validate_execution_transfers is not Kani-proven: the proofs bind the uncalled PlaceOrderArgs::validate_quote_bounds and validate_sell_quote_bound, and the flat min check in validate_quote_bounds differs from the pro-rated production check; uncovered; phase 15. Evidence:
program/src/processor/place_order.rs,formal/verification/goal_g_disp_03_place_semantic_domains.rs,program/src/processor/place_order_trait/mod.rs.
- A buy fails when the user's total debit collateral_in (fill spend including taker fee, plus any resting lock) exceeds max_quote_input; u64::MAX disables it, and rejection rolls back (execution_contract_production_buy_exact_debit_bound_and_rollback, execution_contract_production_buy_maker_fee_bound_uses_actual_debit in guard.rs). Evidence:
- Known limits:
- The apps derive the bounds from the reviewed intent; the user does not choose them.
order.slippage-bound IOC worst-price bound#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterworstPriceBpsset. web:apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.tsmatchesworstPriceBps: orderParams\.worstAcceptablePriceBps. android:apps/mobile/src/screens/marketDetail/useMarketDetailConfirm.tsmatchesworstAcceptablePriceBps:.
PlaceOrder carries worst_price for IOC orders: a buy stops matching at the first ask above it and a sell at the first bid below it; 0 on a buy and 10000 on a sell disable it.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E) - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | not-applicable | none | An execution guard with no indexed state: the indexer stores no value of this parameter; its effect appears as fills or as a failed transaction. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) with worstAcceptablePriceBps (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts, apps/web/app/components/trading/OrderForm.tsx, apps/web/lib/quickTradePreview.ts | |
| Android | yes | apps/mobile/src/screens/marketDetail/useMarketDetailConfirm.ts, apps/mobile/src/hooks/usePlaceOrder.ts, apps/mobile/src/screens/marketDetail/useMarketDetailTrading.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"worstPriceBps":6000}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"worstPriceBps":6000}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"worstPriceBps":6000}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- An IOC never fills beyond its worst price. Evidence:
program/tests/agentflow_fresh_24_ioc_bounds.rs.
- An IOC never fills beyond its worst price. Evidence:
order.match-limit Match limit#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parametermatchLimitset. web:apps/web/app/components/trading/OrderForm.tsxmatchesmatching\.matchLimitInput. android:apps/mobile/src/screens/marketDetail/OrderFormSection.tsxmatchesmatching\.matchLimitInput.
PlaceOrder carries match_limit in 0..=12, the number of resting makers the order may consume; zero selects the protocol default.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E),PlaceLimitWithFreeFunds(0x0F) - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | not-applicable | none | An execution guard with no indexed state: the indexer stores no value of this parameter; its effect appears as fills or as a failed transaction. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) with matchLimit (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/app/components/trading/OrderForm.tsx | |
| Android | yes | apps/mobile/src/screens/marketDetail/OrderFormSection.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"matchLimit":2}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"matchLimit":2}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"matchLimit":2}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- A match_limit above MAX_MATCH_LIMIT (12) is rejected with InvalidInstructionData before any mutation (explicit_match_limit_above_proven_heap_bound_is_rejected in logic tests.rs; explicit_match_limit_above_bound_rejects_atomically in security_max_fills_dos.rs; invalid_match_limit_maps_to_invalid_instruction_data in place_order_trait/mod.rs). Evidence:
program/src/logic/place_order_processor/orchestration.rs,program/src/logic/place_order_processor/tests.rs,program/tests/security_max_fills_dos.rs,program/src/processor/place_order_trait/mod.rs. - Zero selects DEFAULT_MATCH_LIMIT, which equals MAX_MATCH_LIMIT = 12 (test_match_limit_zero_uses_default, default_match_limit_matches_spec, max_match_limit_matches_spec, kill_mutation_match_limit_heap_bound_is_exact). Evidence:
program/src/logic/place_order_processor/tests.rs,program/src/constants_match_spec.rs,program/tests/mutation_killers.rs. - Matching visits at most match_limit resting makers, and expired-node skips count toward the budget (test_match_limit_caps_fills, test_match_limit_one_allows_single_fill, test_expired_skip_counts_toward_match_limit; probe_05_match_limit_one_keeps_residual_ioc_from_touching_second_maker in security_shard1_stage4_order_matching.rs). Evidence:
program/src/logic/place_order_processor/tests.rs,program/tests/security_shard1_stage4_order_matching.rs. - When the budget runs out, a remainder that would still cross is discarded, not rested; a non-crossing remainder rests (match_limit_exhaustion_never_rests_crossing_bid_remainder, match_limit_exhaustion_never_rests_crossing_ask_remainder, match_limit_exact_crossing_liquidity_rests_noncrossing_remainder). Evidence:
program/src/logic/place_order_processor/tests.rs. - No Kani harness proves the match-limit iteration bound or the rejection above 12 over the full u8 domain; uncovered; phase 15. Evidence:
program/src/processor/place_order.rs.
- A match_limit above MAX_MATCH_LIMIT (12) is rejected with InvalidInstructionData before any mutation (explicit_match_limit_above_proven_heap_bound_is_rejected in logic tests.rs; explicit_match_limit_above_bound_rejects_atomically in security_max_fills_dos.rs; invalid_match_limit_maps_to_invalid_instruction_data in place_order_trait/mod.rs). Evidence:
order.expected-fee-epoch Expected fee epoch#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterexpectedFeeEpochset. web:apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.tsmatchesplaceOrderParamsFromReviewedIntent\(\s*reviewed. android:apps/mobile/src/screens/marketDetail/useMarketDetailConfirm.tsmatchesexpectedFeeEpoch: reviewed\.fee\.epoch.
PlaceOrder carries expected_fee_epoch; a non-zero value makes the program reject the order when the fee policy epoch of the config differs, so a fee change between review and landing cannot apply silently. Zero leaves it unpinned.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E),PlaceLimitWithFreeFunds(0x0F) - Error categories:
Fees and bounded operations - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/sdk.ts, packages/core/src/instructions.ts | The high-level placement API and instruction builder accept this control. |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | The high-level placement controls and instruction builder accept this control. |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | not-applicable | none | An execution guard with no indexed state: the indexer stores no value of this parameter; its effect appears as fills or as a failed transaction. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The transaction builder accepts the expected fee epoch. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts, apps/web/app/[locale]/markets/[marketId]/reviewedOrderGate.ts | |
| Android | yes | apps/mobile/src/screens/marketDetail/useMarketDetailConfirm.ts, apps/mobile/src/hooks/usePlaceOrder.ts, apps/mobile/src/utils/reviewedExit.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"expectedFeeEpoch":"4294967295"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"expectedFeeEpoch":{"fixture":"orderFeeEpoch"}}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-control-rejections(cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value; steporder.placewith{"expectedFeeEpoch":"4294967295"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"expectedFeeEpoch":{"fixture":"orderFeeEpoch"}}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- The handler preflight rejects when expected_fee_epoch != 0 and differs from the config fee_epoch; zero is unpinned (execution_contract_routing_preflight_deadline_now_and_fee_epoch_rollback in place_order/tests.rs; fee_epoch_update_rejects_stale_pinned_place_order_without_state_change in security_shard2_stage7_fee_config_boundaries.rs). Evidence:
program/src/processor/place_order.rs,program/src/processor/place_order/tests.rs,program/tests/security_shard2_stage7_fee_config_boundaries.rs. - A fee-config update increments the epoch by a checked +1, which makes earlier pins stale; a treasury-recipient rotation leaves the epoch unchanged (increment_fee_epoch_is_checked_plus_one, fee_update_stales_previous_pins_only, treasury_rotation_changes_only_recipients, fee_epoch_cas_rejects_iff_pinned_and_stale; fee_epoch_rotation_is_checked_and_wrap_free in config.rs; fee_epoch_pinned_fill_survives_recipient_rotation_and_pays_current_treasury). Evidence:
formal/verification/goal_tr_recipients.rs,program/src/state/config.rs,program/tests/agentflow_fresh_30_interleaving_runtime.rs. - The config loader rejects a zero fee_epoch, so a zero pin can never match a live epoch (zero_fee_epoch_is_rejected_by_the_config_loader, a_raised_fee_epoch_still_loads in config_tail_validation.rs). Evidence:
program/tests/config_tail_validation.rs. - The handler gate validate_execution_contract_preflight equals the Kani-proven fee-epoch check (fee_epoch_cas_rejects_iff_pinned_and_stale proves only the uncalled PlaceOrderArgs::validate_execution_contract), and a stale-pin rejection on the free-funds routes is untested; uncovered; phase 15. Evidence:
program/src/processor/place_order.rs,formal/verification/goal_tr_recipients.rs.
- The handler preflight rejects when expected_fee_epoch != 0 and differs from the config fee_epoch; zero is unpinned (execution_contract_routing_preflight_deadline_now_and_fee_epoch_rollback in place_order/tests.rs; fee_epoch_update_rejects_stale_pinned_place_order_without_state_change in security_shard2_stage7_fee_config_boundaries.rs). Evidence:
order.client-order-id Client order identifier#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterclientOrderIdset. web:apps/web/app/components/trading/OrderForm.tsxmatchesclientOrderIdInput. android:apps/mobile/src/screens/marketDetail/OrderFormSection.tsxmatchesmarketDetail\.clientOrderIdOptional.
PlaceOrder carries a 16-byte client_order_id that the program records with the order for caller correlation; all zeros means absent.
- Source:
program/src/processor/place_order.rs,program/src/instruction.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E),PlaceLimitWithFreeFunds(0x0F) - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/types.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | order place accepts --client-order-id. order list-open can filter by that identifier. |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/processors/placeOrder.ts | The order placement projection persists client_order_id for lookup. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The builder accepts clientOrderId and wallet order reads return the persisted identifier. |
| Web | yes | apps/web/app/components/trading/OrderForm.tsx | |
| Android | yes | apps/mobile/src/screens/marketDetail/OrderFormSection.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/35-order-controls.ts, packages/sdk-python/examples/order_controls.py | 35-order-controls.ts and order_controls.py set this control explicitly. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
cancel-by-client-id(android: 2 of 6 action steps return a client value; cli: 1 of 6 action steps return a client value; sdk-python: 1 of 6 action steps return a client value; sdk-rust: 1 of 6 action steps return a client value; sdk-typescript: 1 of 6 action steps return a client value; web: 3 of 6 action steps return a client value; steporder.place-prefundedwith{"clientOrderId":"18181818181818181818181818181818"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"clientOrderId":"1abc0000000000000000000000000002"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
cancel-by-client-id(android: 2 of 6 action steps return a client value; cli: 1 of 6 action steps return a client value; sdk-python: 1 of 6 action steps return a client value; sdk-rust: 1 of 6 action steps return a client value; sdk-typescript: 1 of 6 action steps return a client value; web: 3 of 6 action steps return a client value; steporder.place-prefundedwith{"clientOrderId":"18181818181818181818181818181818"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- An all-zero client_order_id means absent; any nonzero id is kept byte-exact through the parser and all three single-placement routes (disp03_place_direct_execution_request_and_optional_fields, disp04_place_tagged_forwarding_optional_id_and_expiry; every_scalar_bit_and_client_id_byte_survives_all_three_producers). Evidence:
formal/verification/goal_g_disp_03_place_semantic_domains.rs,formal/verification/goal_g_disp_04_place_forwarding.rs,program/tests/fv_tr_single_placement_sdk_parser_bridge.rs. - A resting remainder records the caller's id, and the per-owner client-id index stays consistent on both sides through removal, rotation and slot reuse (client_id_tree_covers_both_sides_and_ignores_removed_slots, client_id_rotations_and_slot_reuse_roll_back_with_price_mutations in deep_orderbook/tree.rs). Evidence:
program/src/processor/place_order.rs,program/src/logic/deep_orderbook/tree.rs. - A nonzero id already held by an active order of the same owner is rejected, with no change to the book, ledger, position, vault, token or mint accounts, even at the last scan position of a full 2048-order book (public_t2048_dense_client_id_scan_both_trees in pr675_client_id_dense_runtime.rs). Evidence:
program/tests/pr675_client_id_dense_runtime.rs,program/src/processor/place_order.rs. - No Kani harness proves that ensure_client_order_id_available rejects exactly the owner-scoped duplicates; uncovered; phase 15. Evidence:
program/src/processor/place_order.rs.
- An all-zero client_order_id means absent; any nonzero id is kept byte-exact through the parser and all three single-placement routes (disp03_place_direct_execution_request_and_optional_fields, disp04_place_tagged_forwarding_optional_id_and_expiry; every_scalar_bit_and_client_id_byte_survives_all_three_producers). Evidence:
- Known limits:
- Client order identifiers are unique among resting orders for the same market and owner. CancelOrderByClientId uses that scope.
order.batch-post-only Batch post-only#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
PlaceMultiplePostOnly (wallet-funded) and BatchPostOnlyWithFreeFunds (ledger-funded) atomically place up to MAX_BATCH_POST_ONLY = 4 post-only orders per side for one outcome, bids then asks, with strict no-cross, header deadlines and an aggregate bid quote budget; each entry follows the single-order contract.
- Source:
program/src/processor/place_multiple_post_only_orders.rs,program/src/processor/place_multiple_post_only_orders_with_free_funds.rs - Routes:
PlaceMultiplePostOnly(0x0D),BatchPostOnlyWithFreeFunds(0x10) - Events:
OrderPlaced - Error categories:
Order - CLI commands:
order place-ladder - API routes:
POST /api/v1/tx/place-post-only-batch - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_multiple_post_only_orders.rs, program/src/processor/place_multiple_post_only_orders_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts | The dispatch sends the route to skipInstruction (apps/indexer/src/processors/dispatch.ts:184); the resting orders are projected from OrderPlaced into orders (binaryEventProjection.ts:845). |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The wallet-authenticated batch builder supports both funding modes and accepts per-entry client order identifiers. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketMakerActions.ts | |
| Android | yes | apps/mobile/src/hooks/useQuoteLadder.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.place-prefunded-ladder; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.place-prefunded-ladder; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The batch journeys await deferred runtime validation. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.place-prefunded-ladder; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The direct-client batch journeys await deferred runtime validation. - Formal obligations:
- A batch either places every entry or none. Evidence:
program/tests/agentflow_fresh_15_batch_post_only.rs.
- A batch either places every entry or none. Evidence:
- Known limits:
- Wallet-funded and prefunded batches accept up to four bids and four asks. Both reject crossing entries and accept optional per-entry client order identifiers.
order.reduce Reduce order#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ReduceOrder and ReduceOrderWithFreeFunds partially reduce a resting order owned by the signer, release the proportional quote or share lock, and refund it to the wallet or to the trader ledger; OrderReduced records the change.
- Source:
program/src/processor/reduce_order.rs,program/src/processor/reduce_order_with_free_funds.rs - Routes:
ReduceOrder(0x13),ReduceOrderWithFreeFunds(0x15) - Events:
OrderReduced - Error categories:
Order - CLI commands:
order reduce - API routes:
POST /api/v1/tx/reduce-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/reduce_order.rs, program/src/processor/reduce_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/cancelFamily.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/indexer/tradeFillProjection.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The wallet-authenticated builder routes refunds to the wallet or the ledger. POST /api/v1/tx/strategy-ledger supports a scoped reduction. |
| Web | yes | apps/web/app/[locale]/portfolio/usePortfolioOrderActions.ts | |
| Android | yes | apps/mobile/src/hooks/usePendingOrders.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/order_maintenance.rs, packages/sdk-python/examples/order_maintenance.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/09-advanced-order-management.ts |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.reduce; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.reduce; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.reduce; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- A reduction releases exactly the lock of the removed quantity. Evidence:
program/tests/agentflow_fresh_16_reduce_release_math.rs.
- A reduction releases exactly the lock of the removed quantity. Evidence:
order.cancel-by-id Cancel by order identifier#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
CancelOrder removes one resting order of the signer; CancelMultipleOrdersById and its free-funds twin cancel up to MAX_BULK_CANCEL = 6 listed order ids in one transaction. Locked collateral or shares return to the wallet or the trader ledger and OrderCancelled is emitted per order.
- Source:
program/src/processor/cancel_order.rs,program/src/processor/cancel_multiple_orders_by_id.rs,program/src/processor/cancel_multiple_orders_by_id_with_free_funds.rs - Routes:
CancelOrder(0x11),CancelMultipleOrdersById(0x12),CancelMultipleOrdersByIdWithFreeFunds(0x14) - Events:
OrderCancelled - Error categories:
Order - CLI commands:
order cancel,order cancel-multi,order cancel-all-by-id - API routes:
DELETE /api/v1/orders/{orderId},POST /api/v1/orders/{orderId}/cancel,POST /api/v1/tx/cancel-order - Android screens:
PendingOrders - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/cancel_order.rs, program/src/processor/cancel_multiple_orders_by_id.rs, program/src/processor/cancel_multiple_orders_by_id_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/http.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/cancelFamily.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/processors/cancelOrder.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The wallet-authenticated builder accepts one numeric ID or a set of up to six IDs. The selected refund destination can be the wallet or ledger. POST /api/v1/tx/strategy-ledger handles strategy-scoped sets. |
| Web | yes | apps/web/app/[locale]/portfolio/usePortfolioOrderActions.ts, apps/web/app/[locale]/markets/[marketId]/useCancelAllOrders.ts | |
| Android | yes | apps/mobile/src/hooks/usePendingOrders.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/order_maintenance.rs, packages/sdk-python/examples/order_maintenance.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/07-build-all-high-level-instructions.ts, packages/core/examples/09-advanced-order-management.ts |
- Journeys, normal mode:
suite-web-fill-cancel(web; UI read; suite source matcheslacks the CancelMultipleOrdersById instruction; pins assertion; partial evidence, does not count),suite-web-orders(web; UI read; suite source matchessignedDetail: 'actor-signed-cancel-single-resting-order'; pins proof-label; partial evidence, does not count),pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; steporder.cancel; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),cancel-by-order-id-set(cli: 3 of 11 action steps return a client value; sdk-python: 3 of 11 action steps return a client value; sdk-rust: 3 of 11 action steps return a client value; sdk-typescript: 3 of 11 action steps return a client value; steporder.cancel-by-idswith{"prefunded":true}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.cancel; no passed cell of a client of this capability in normal mode; partial evidence, does not count) - Journeys, independent mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; steporder.cancel; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),cancel-by-order-id-set(cli: 3 of 11 action steps return a client value; sdk-python: 3 of 11 action steps return a client value; sdk-rust: 3 of 11 action steps return a client value; sdk-typescript: 3 of 11 action steps return a client value; steporder.cancel-by-idswith{"prefunded":true}; no passed cell of a client of this capability in independent mode; partial evidence, does not count) - Formal obligations:
- A cancel returns exactly the lock of the cancelled order and never pays twice. Evidence:
program/tests/agentflow_fresh_9_cancel_iter3_no_double_pay.rs,program/tests/agentflow_fresh_17_bulk_cancel_by_id.rs.
- A cancel returns exactly the lock of the cancelled order and never pays twice. Evidence:
order.cancel-all Cancel all#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7,S2. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
CancelOwnerOrders captures the owner and insertion cutoff, then cancels resting orders in bounded pages. The owner can continue by nonce or abort. Refunds go to the trader ledger.
- Source:
program/src/processor/cancel_owner_orders.rs - Routes:
CancelOwnerOrders(0x55) - Events:
OrderCancelled,CancelSessionProgressed - Error categories:
Order - CLI commands:
order cancel-all,order cancel-session,order abort-cancel - API routes:
POST /api/v1/tx/cancel-owner-orders,GET /api/v1/user/orders/cancel-session - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/cancel_owner_orders.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/strategyAccounts.ts | |
| Rust SDK | yes | packages/sdk-rust/src/strategy.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/strategy.py | |
| CLI | yes | packages/cli/src/commands/order/cancellation.ts | |
| Indexer | yes | apps/indexer/src/processors/cancelFamily.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/processors/cancelOrder.ts | The OrderCancelled recorder event updates the order at binaryEventProjection.ts:2484. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The builder supports bounded cancellation. The wallet order API exposes the active session. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/BoundedCancelPanel.tsx | |
| Android | yes | apps/mobile/src/screens/marketDetail/OwnerCancellationSection.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/09-advanced-order-management.ts, packages/core/examples/native-tutorial.ts |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.cancel-all; no passed cell of a client of this capability in normal mode; partial evidence, does not count),resumable-cancel(cli: 17 of 23 action steps return a client value; sdk-python: 3 of 23 action steps return a client value; sdk-rust: 3 of 23 action steps return a client value; sdk-typescript: 3 of 23 action steps return a client value; web: 6 of 23 action steps return a client value; android: 6 of 23 action steps return a client value; steporder.cancel-all; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.cancel-all; no passed cell of a client of this capability in independent mode; partial evidence, does not count),resumable-cancel(cli: 17 of 23 action steps return a client value; sdk-python: 3 of 23 action steps return a client value; sdk-rust: 3 of 23 action steps return a client value; sdk-typescript: 3 of 23 action steps return a client value; web: 6 of 23 action steps return a client value; android: 6 of 23 action steps return a client value; steporder.cancel-all; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- An owner cancellation session drains resting orders across both outcomes and conserves the owner's quote balance. Evidence:
program/tests/integration_clob_bulk_ops.rs.
- An owner cancellation session drains resting orders across both outcomes and conserves the owner's quote balance. Evidence:
- Known limits:
- Each transaction examines at most 64 owner records and removes at most 32. Orders placed after the session begins are outside its cutoff.
order.price-bounded-cancel Price-bounded cancel#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
CancelOwnerOrders can limit a session to a named outcome and side. It cancels eligible owner orders at or more aggressive than the inclusive tick bound in that outcome’s price space.
- Source:
program/src/processor/cancel_owner_orders.rs - Routes:
CancelOwnerOrders(0x55) - Events:
OrderCancelled,CancelSessionProgressed - Error categories:
Order - CLI commands:
order cancel-up-to - API routes:
POST /api/v1/tx/cancel-owner-orders,GET /api/v1/user/orders/cancel-session - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/cancel_owner_orders.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/strategyAccounts.ts | |
| Rust SDK | yes | packages/sdk-rust/src/strategy.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/strategy.py | |
| CLI | yes | packages/cli/src/commands/order/cancellation.ts | |
| Indexer | yes | apps/indexer/src/processors/cancelFamily.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/processors/cancelOrder.ts | The OrderCancelled recorder event updates the order at binaryEventProjection.ts:2484. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The builder supports bounded cancellation. The wallet order API exposes the active session. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/BoundedCancelPanel.tsx | |
| Android | yes | apps/mobile/src/screens/marketDetail/OwnerCancellationSection.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/09-advanced-order-management.ts |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.cancel-up-to; no passed cell of a client of this capability in normal mode; partial evidence, does not count),resumable-cancel(cli: 17 of 23 action steps return a client value; sdk-python: 3 of 23 action steps return a client value; sdk-rust: 3 of 23 action steps return a client value; sdk-typescript: 3 of 23 action steps return a client value; web: 6 of 23 action steps return a client value; android: 6 of 23 action steps return a client value; steporder.cancel-up-to; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.cancel-up-to; no passed cell of a client of this capability in independent mode; partial evidence, does not count),resumable-cancel(cli: 17 of 23 action steps return a client value; sdk-python: 3 of 23 action steps return a client value; sdk-rust: 3 of 23 action steps return a client value; sdk-typescript: 3 of 23 action steps return a client value; web: 6 of 23 action steps return a client value; android: 6 of 23 action steps return a client value; steporder.cancel-up-to; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- Price-bounded owner cancellation preserves orders outside the inclusive bound. Evidence:
program/tests/integration_clob_bulk_ops.rs.
- Price-bounded owner cancellation preserves orders outside the inclusive bound. Evidence:
- Known limits:
- Each transaction examines at most 64 owner records and removes at most 32. Orders placed after the session begins are outside its cutoff.
order.wallet-funded Wallet-funded execution#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
PlaceOrder moves the taker collateral or shares from the trader SPL token accounts into the market vault or escrow and pays fills back to them, with no prior deposit into the trader ledger.
- Source:
program/src/processor/place_order.rs - Routes:
PlaceOrder(0x0C) - Events:
OrderPlaced,OrderFilled - Error categories:
Order,Token - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/orderPlacedHintMatching.ts, apps/indexer/src/indexer/orderSides.ts, apps/indexer/src/indexer/parser.ts, apps/indexer/src/indexer/recorderReconciliationEnrichment.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/processors/mergeCompleteSet.ts, apps/indexer/src/processors/placeOrder.ts, apps/indexer/src/indexer/appliedFillLedger.ts, apps/indexer/src/indexer/tradeFillProjection.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) from the wallet token account (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/lib/orderInstruction.ts, apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts | |
| Android | yes | apps/mobile/src/hooks/usePlaceOrder.ts, apps/mobile/src/screens/marketDetail/useMarketDetailSubmit.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/core/examples/03-build-place-order-ix.ts, packages/core/examples/07-build-all-high-level-instructions.ts, packages/core/examples/09-advanced-order-management.ts, packages/core/examples/native-tutorial.ts |
- Journeys, normal mode: none. Partial evidence:
suite-web-fill(web; UI read; suite source matchesassert\.equal\(await walletFunding\.getAttribute\('aria-pressed'\), 'true'\); pins assertion; partial evidence, does not count),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"limit"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.placewith{"orderType":"limit"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.placewith{"orderType":"limit"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- A wallet-funded fill transfers exactly the computed quote and shares. Evidence:
program/tests/agentflow_fresh_27_direct_place_runtime.rs.
- A wallet-funded fill transfers exactly the computed quote and shares. Evidence:
order.prefunded Prefunded (free-funds) execution#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
SwapWithFreeFunds (IOC) and PlaceLimitWithFreeFunds (Limit or PostOnly) take collateral or shares from the trader-ledger free buckets and credit fills there, with no SPL transfer per trade.
- Source:
program/src/processor/swap_with_free_funds.rs,program/src/processor/place_limit_order_with_free_funds.rs - Routes:
SwapWithFreeFunds(0x0E),PlaceLimitWithFreeFunds(0x0F) - Events:
OrderPlaced,OrderFilled - Error categories:
Order - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/swap_with_free_funds.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/tradeFillProjection.ts | The dispatch sends the route to skipInstruction (apps/indexer/src/processors/dispatch.ts:185-186); orders and fills are projected from OrderPlaced and OrderFilled (binaryEventProjection.ts:845; tradeFillProjection.ts:473). |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | fundingSource freeFunds selects the prefunded IOC or resting-order instruction. |
| Web | yes | apps/web/lib/orderInstruction.ts, apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts | |
| Android | yes | apps/mobile/src/hooks/usePlaceOrder.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/09-advanced-order-management.ts |
- Journeys, normal mode: none. Partial evidence:
suite-web-orders(web; UI read; suite source matchessignedDetail: 'actor-signed-place-limit-order-from-free-funds'; pins proof-label; partial evidence, does not count),order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.place-prefunded; no passed cell of a client of this capability in normal mode; partial evidence, does not count),outcome-tokens(cli: 1 of 15 action steps return a client value; sdk-typescript: 1 of 15 action steps return a client value; sdk-python: 1 of 15 action steps return a client value; sdk-rust: 1 of 15 action steps return a client value; web: 2 of 15 action steps return a client value; android: 2 of 15 action steps return a client value; steporder.swap-prefunded; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.swap-prefunded; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.place-prefunded; no passed cell of a client of this capability in independent mode; partial evidence, does not count),outcome-tokens(cli: 1 of 15 action steps return a client value; sdk-typescript: 1 of 15 action steps return a client value; sdk-python: 1 of 15 action steps return a client value; sdk-rust: 1 of 15 action steps return a client value; web: 2 of 15 action steps return a client value; android: 2 of 15 action steps return a client value; steporder.swap-prefunded; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- Free-funds routes debit and credit the ledger buckets by the exact fill. Evidence:
program/tests/agentflow_fresh_25_free_funds_routes.rs,program/tests/agentflow_fresh_5_trader_ledger_free_funds.rs.
- Free-funds routes debit and credit the ledger buckets by the exact fill. Evidence:
order.ladder Quote ladder#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The CLI command order place-ladder and the app quote-ladder flows place a multi-level post-only quote through PlaceMultiplePostOnly or BatchPostOnlyWithFreeFunds, chosen by the funding source.
- Source:
packages/cli/src/commands/order/index.ts,apps/web/app/[locale]/markets/[marketId]/useMarketMakerActions.ts,apps/mobile/src/hooks/useQuoteLadder.ts - Routes:
PlaceMultiplePostOnly(0x0D),BatchPostOnlyWithFreeFunds(0x10) - Events:
OrderPlaced - CLI commands:
order place-ladder - API routes:
POST /api/v1/tx/place-post-only-batch - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_multiple_post_only_orders.rs, program/src/processor/place_multiple_post_only_orders_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts | Each accepted ladder entry is projected from OrderPlaced (binaryEventProjection.ts:846). |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The wallet-authenticated batch builder supports both funding modes and accepts per-entry client order identifiers. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketMakerActions.ts | |
| Android | yes | apps/mobile/src/hooks/useQuoteLadder.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py |
- Journeys, normal mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.place-prefunded-ladder; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-order-controls(android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value; steporder.place-prefunded-ladder; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The quote ladder journeys await deferred runtime validation. - Journeys, independent mode: none. Partial evidence:
order-controls(cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value; steporder.place-prefunded-ladder; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The direct-client quote ladder journeys await deferred runtime validation. - Formal obligations:
- The funding source picks the route: wallet builds PlaceMultiplePostOnly and freeFunds builds the free-funds batch twin, with the same rule in core, mobile and CLI (selectQuoteLadderBuilder test in orderFunding.test.ts; useQuoteLadder fundingSource routing tests; CLI test expecting BatchPostOnlyWithFreeFunds in order.test.ts). Evidence:
packages/core/src/orderFunding.ts,packages/core/src/__tests__/orderFunding.test.ts,apps/mobile/src/__tests__/hooks/useQuoteLadder.fundingSource.test.tsx,packages/cli/src/__tests__/commands/order.test.ts. - The batch payload grammar accepts only 1..=8 entries per side with exact lengths and rejects everything else with InvalidInstructionData (disp03_var_post_only_batch_count_1 through 8, disp03_var_post_only_batch_count_out_of_range, disp03_pmpo_count*_len_exact/short/long). Evidence:
formal/verification/goal_g_disp_03_variable.rs,program/src/processor/place_multiple_post_only_orders.rs. - Every level is post-only with reject-on-cross; one crossing level or the retired slide flag rejects the whole batch on both the wallet and free-funds routes, with no fill or fee (slide_mode_flag_is_rejected_atomically_on_wallet_batch, free_funds_batch_rejects_slide_flag_and_crossing_entry_identically in litesvm_post_only_batch_slide.rs). Evidence:
program/tests/litesvm_post_only_batch_slide.rs,program/src/processor/place_multiple_post_only_orders.rs. - The batch header max_quote_input (total bid lock) and execution deadline are enforced atomically before any level rests (batch_post_only_no_outcome_places_no_lanes_and_enforces_header in launch_economic_regressions.rs; public_buy_no_batch_late_overbudget_rolls_back_byte_exact). Evidence:
program/tests/launch_economic_regressions.rs,program/tests/litesvm_post_only_batch_slide.rs. - The on-chain rejection of client ids duplicated within a batch (validate_batch_shape) or already resting for the owner (ensure_batch_client_ids_available) has no test; only the CLI-side check is tested ('rejects a client ID reused across bid and ask ladder entries'); uncovered; phase 15. Evidence:
packages/cli/src/commands/order/index.ts,program/src/processor/place_multiple_post_only_orders_with_free_funds.rs.
- The funding source picks the route: wallet builds PlaceMultiplePostOnly and freeFunds builds the free-funds batch twin, with the same rule in core, mobile and CLI (selectQuoteLadderBuilder test in orderFunding.test.ts; useQuoteLadder fundingSource routing tests; CLI test expecting BatchPostOnlyWithFreeFunds in order.test.ts). Evidence:
- Known limits:
- The batch route rejects entries that would cross the book.
order.read Order and book reads#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-B. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Clients read open orders and the book. The CLI filters open orders by client ID, strategy group or strategy ID. The indexer serves wallet orders, top of book and market depth.
- Source:
packages/cli/src/commands/order/index.ts,apps/indexer/src/api/routes/orderbook.ts,apps/indexer/src/api/routes/markets.ts,packages/core/src/orderbook.ts,apps/indexer/src/websocket/server.ts - CLI commands:
order list,order list-open - API routes:
GET /api/v1/orderbook/top,GET /api/v1/markets/{marketId}/book-depth,GET /api/v1/user/orders - Indexer WebSocket channels:
orderbook - Boundaries: callers anyone; signers none; services Solana RPC, indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | A read; the deep orderbook account is the on-chain state it reads. |
| IDL | not-applicable | none | A read; no instruction to model. |
| TypeScript SDK | yes | packages/core/src/orderbook.ts | |
| Rust SDK | yes | packages/sdk-rust/src/codecs.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/codecs.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts | |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/orderbook.ts, apps/indexer/src/api/routes/markets.ts | |
| Web | yes | apps/web/app/components/trading/Orderbook.tsx | |
| Android | yes | apps/mobile/src/screens/PendingOrdersScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/02-ws-orderbook.ts, packages/sdk-rust/examples/cancel_and_withdraw.rs, packages/sdk-rust/examples/rpc_escape_hatch.rs, packages/sdk-python/examples/cancel_and_withdraw.py, packages/sdk-python/examples/rpc_escape_hatch.py |
- Journeys, normal mode: none. The capability lands no route, so no journey index entry can count for it.
- Journeys, independent mode: none. The capability lands no route, so no journey index entry can count for it.
- Formal obligations:
- The indexer top of book reports each outcome lane separately, filtered by its owning stored side, never derived from the complement, and null when a lane is empty (orderbook.test.ts: reports each outcome lane its own top of book, reports an empty lane as null, filters each lane by the stored side that owns it). Evidence:
apps/indexer/src/api/routes/orderbook.ts,apps/indexer/src/api/routes/__tests__/orderbook.test.ts. - Market depth is aggregated per side over the untruncated book, and per-side resting totals are kept on cached snapshots (markets.test.ts: queries deep orderbook levels per side, serves per-side resting-order totals counted over the untruncated book, serves each outcome lane its own levels and top of book). Evidence:
apps/indexer/src/api/routes/markets.ts,apps/indexer/src/api/routes/__tests__/markets.test.ts. - Core book aggregation excludes inactive and expired-claimable orders, and best bid, best ask, spread and mid are null-safe (orderbook.test.ts: excludes inactive orders, excludes expired-claimable orders that remain active on-chain, getBestBid/getBestAsk/getSpread/getMidPrice). Evidence:
packages/core/src/orderbook.ts,packages/core/src/__tests__/orderbook.test.ts. - Wallet order listings require wallet auth except the public tx lookup, and inputs are validated (orders.test.ts: handleOrdersRoutes auth enforcement and input validation); the CLI list-open forwards strategy and group filters (order.test.ts: passes the strategy and group filters while requesting signed controls). Evidence:
apps/indexer/src/api/routes/__tests__/orders.test.ts,packages/cli/src/__tests__/commands/order.test.ts. - The websocket delivers each update to every open subscriber of a channel, drops or disconnects slow clients by the skip cap and forces snapshot recovery after a gap (server.test.ts: SeesawWebSocketServer.broadcast). Evidence:
apps/indexer/src/websocket/server.ts,apps/indexer/src/websocket/__tests__/server.test.ts. - The CLI list-open --client-order-id filter (parse and forward to the indexer) has no test; uncovered; phase 15. Evidence:
packages/cli/src/commands/order/index.ts.
- The indexer top of book reports each outcome lane separately, filtered by its owning stored side, never derived from the complement, and null when a lane is empty (orderbook.test.ts: reports each outcome lane its own top of book, reports an empty lane as null, filters each lane by the stored side that owns it). Evidence:
fees.schedule Taker fee schedule#
- Status: implemented. Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b. - Roadmap items:
F4. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Every taker fill pays a fee from the config fee curve (cap and decay by price) and splits it between the protocol, the creator, the referrer, an approved builder and eligible makers; protocol, creator, referral, builder and maker allocations sum to the collected fee and the protocol receives the rounding dust and any unpaid builder share. Clients preview the fee before signing.
- Source:
program/src/logic/fee.rs,packages/core/src/fee.ts,packages/cli/src/commands/fee/index.ts,apps/indexer/src/api/routes/feeConfig.ts - Error categories:
Fees and bounded operations - CLI commands:
fee preview - API routes:
GET /api/v1/fee-config - Web routes:
/[locale]/fees - Android screens:
Fees - Boundaries: callers trader (pays), anyone (reads); signers trader wallet; services Solana RPC, indexer API (fee preview reads).
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/logic/fee.rs, program/src/processor/place_order.rs | |
| IDL | not-applicable | none | The fee schedule is config state and fill accounting, not an instruction; UpdateFeeConfig is modeled under governance.fee-config. |
| TypeScript SDK | yes | packages/core/src/fee.ts | |
| Rust SDK | yes | packages/sdk-rust/src/pricing.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/pricing.py | |
| CLI | yes | packages/cli/src/commands/fee/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts | |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/feeConfig.ts | |
| Web | yes | apps/web/app/[locale]/fees/page.tsx | |
| Android | yes | apps/mobile/src/screens/FeesScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/05-referral-and-fees.ts, packages/sdk-python/examples/http_client.py, packages/sdk-rust/examples/fee_schedule.rs |
- Journeys, normal mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; steporder.placewith{"orderType":"ioc"}; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),builder-fee-approval(sdk-typescript: 1 of 12 action steps return a client value; steporder.place-builder-observed; no passed cell of a client of this capability in normal mode; partial evidence, does not count),fees-every-leg(sdk-typescript: 3 of 5 action steps return a client value; steporder.place-referredwith{"checkFeeLegs":true}; no passed cell of a client of this capability in normal mode; partial evidence, does not count) - Journeys, independent mode:
pyth-market-lifecycle(cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value; steporder.placewith{"orderType":"ioc"}; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),builder-fee-approval(sdk-typescript: 1 of 12 action steps return a client value; steporder.place-builder-observed; no passed cell of a client of this capability in independent mode; partial evidence, does not count),fees-every-leg(sdk-typescript: 3 of 5 action steps return a client value; steporder.place-referredwith{"checkFeeLegs":true}; no passed cell of a client of this capability in independent mode; partial evidence, does not count) - Formal obligations:
- Protocol, creator, referral, builder and maker allocations equal the collected fee, including dust. Evidence:
program/tests/agentflow_fresh_6_fee_curve_split.rs,program/tests/economic_referral_conservation.rs,program/tests/agentflow_fresh_11_fee_split_curve.rs.
- Protocol, creator, referral, builder and maker allocations equal the collected fee, including dust. Evidence:
fees.creator-fee Creator fees#
- Status: implemented. Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b. - Roadmap items:
F4. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The creator leg of each taker fee accrues in the market; ResolveMarket and ExpireMarket sweep it to the creator token account, or emit CreatorFeesDeferred when that account cannot be paid. ClaimCreatorFees is the recovery path and runs only when the outcome is written and a deferred balance remains, emitting CreatorFeesClaimed.
- Source:
program/src/processor/claim_creator_fees.rs,program/src/processor/shared/settlement.rs - Routes:
ClaimCreatorFees(0x1F) - Events:
CreatorFeesDeferred,CreatorFeesClaimed - CLI commands:
market claim-creator-fees,creator claim,creator list,creator claim-all - API routes:
GET /api/v1/creators,GET /api/v1/creators/{address},GET /api/v1/markets/{marketId}/creator-fee-claims,POST /api/v1/tx/claim-creator-fees - Web routes:
/[locale]/creator,/[locale]/claims - Android screens:
Creator,Earnings - Boundaries: callers creator, anyone (resolution sweep); signers creator wallet (claim); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/claim_creator_fees.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/market/index.ts, packages/cli/src/commands/creator/index.ts | |
| Indexer | yes | apps/indexer/src/processors/creatorFees.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/creators.ts | POST /api/v1/tx/claim-creator-fees builds ClaimCreatorFees (txBuilder.ts); the creators route reports creator earnings (creators.ts). |
| Web | yes | apps/web/app/[locale]/claims/ClaimsContent.tsx, apps/web/app/[locale]/creator/CreatorContent.tsx, apps/web/app/[locale]/portfolio/usePortfolioCreatorFeeClaim.ts | |
| Android | yes | apps/mobile/src/hooks/useClaimCreatorFees.ts, apps/mobile/src/screens/CreatorScreen.tsx, apps/mobile/src/screens/PortfolioScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/creator_claim_all.rs, packages/sdk-python/examples/creator_claim_all.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode: none. Partial evidence:
pyth-deferred-creator-fees(sdk-typescript: 1 of 10 action steps return a client value; stepcreator.claim-fees; no passed cell of a client of this capability in normal mode; partial evidence, does not count),pyth-deferred-creator-fees-web(web: 2 of 7 action steps return a client value; stepcreator.claim-fees; no passed cell of a client of this capability in normal mode; partial evidence, does not count). pyth-deferred-creator-fees (TypeScript SDK) and pyth-deferred-creator-fees-web claim a deferred creator fee for the creator and check the refusals. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
pyth-deferred-creator-fees(sdk-typescript: 1 of 10 action steps return a client value; stepcreator.claim-fees; no passed cell of a client of this capability in independent mode; partial evidence, does not count). pyth-deferred-creator-fees (TypeScript SDK) runs in independent mode; the web journey runs in normal mode only. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- A creator claim pays exactly the deferred balance once. Evidence:
program/tests/agentflow_fresh_29_fee_claim_runtime.rs,program/tests/external_market_claim_creator_fees.rs.
- A creator claim pays exactly the deferred balance once. Evidence:
referral.set-referrer Set referrer#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F4. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
SetReferrer creates the immutable ReferralAccount of the signing referee with first-touch semantics (never overwritten, no close or rebind after the 365-day active window) and emits ReferrerSet; self-referral is rejected. Clients pick the referrer by precedence: indexed on-chain referrer, pending or cookie referrer, protocol fallback, then none.
- Source:
program/src/processor/set_referrer.rs,packages/core/src/referral/setReferrerWizard.ts - Routes:
SetReferrer(0x1E) - Events:
ReferrerSet - CLI commands:
fee set-referrer - API routes:
POST /api/v1/tx/set-referrer,GET /api/v1/referral/{address} - Boundaries: callers trader (referee); signers referee wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/set_referrer.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/fee/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts | The dispatch sends the route to skipInstruction (apps/indexer/src/processors/dispatch.ts:189); ReferrerSet is projected into referrals (binaryEventProjection.ts:1235-1247,1356). |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/feeConfig.ts | POST /api/v1/tx/set-referrer builds SetReferrer and refuses self-referral (txBuilder.ts); GET /api/v1/referral/{address} returns the referral record (feeConfig.ts). |
| Web | yes | apps/web/app/[locale]/referral/ReferralContent.tsx | |
| Android | yes | apps/mobile/src/screens/ReferralScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/instruction_cookbook.rs, packages/sdk-python/examples/instruction_cookbook.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode: none. Partial evidence:
currency-referral-claim(sdk-typescript: 7 of 9 action steps return a client value; stepreferral.set-referrer; no passed cell of a client of this capability in normal mode; partial evidence, does not count). currency-referral-claim (TypeScript SDK) binds a referrer before the referred fill. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
currency-referral-claim(sdk-typescript: 7 of 9 action steps return a client value; stepreferral.set-referrer; no passed cell of a client of this capability in independent mode; partial evidence, does not count). currency-referral-claim (TypeScript SDK) runs in independent mode. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- A referral binding is written once and never to the referee itself. Evidence: none.
- Known limits:
- The ReferralAccount rent stays locked: no close or rebind path exists after the active window.
referral.currency-treasury Currency referral treasury#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F4,F3. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
InitializeCurrencyReferralTreasury provisions the referral treasury shard of one registered settlement currency under a screened token program and emits CurrencyReferralTreasuryInitialized.
- Source:
program/src/processor/initialize_currency_referral_treasury.rs - Routes:
InitializeCurrencyReferralTreasury(0x4E) - Events:
CurrencyReferralTreasuryInitialized - CLI commands:
treasury init-referrer-shard - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/initialize_currency_referral_treasury.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/currency.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/currency.py | |
| CLI | yes | packages/cli/src/commands/treasury/index.ts, packages/cli/src/__tests__/commands/coverage.test.ts | |
| Indexer | partial | apps/indexer/src/indexer/currencyRegistrationEvents.ts | The dispatch sends the route to skipInstruction (apps/indexer/src/processors/dispatch.ts:198); the CurrencyReferralTreasuryInitialized event is only validated (currencyRegistrationEvents.ts:81-95) and stored in no table. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). No API route reads the currency referral treasury shards; feeConfig.ts reads currency_registry and currency_referral_ledger for per-currency earnings only. |
| Web | yes | apps/web/app/[locale]/admin/operations/OperationsAdminContent.tsx, apps/web/app/[locale]/admin/operations/currencyReferral.ts, apps/web/app/[locale]/admin/operations/__tests__/currencyReferral.test.ts, apps/web/app/[locale]/admin/operations/__tests__/OperationsAdminContent.test.tsx | Permissionless form in the operations panel; the token program and freeze exception are read from the mint. Component tests are written, not run. |
| Android | yes | apps/mobile/src/admin/adminControls.ts, apps/mobile/src/__tests__/admin/adminControls.test.ts | Permissionless admin control (initCurrencyReferralShard); the token program and freeze exception are read from the mint. Tests are written, not run. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/38-currency-treasuries.ts, packages/sdk-rust/examples/currency_treasuries.rs, packages/sdk-python/examples/currency_treasuries.py | The offline currency treasury samples build each route of this row in TypeScript, Rust and Python. |
- Journeys, normal mode: none. Partial evidence:
currency-referral-provisioning(sdk-typescript: 2 of 3 action steps return a client value; cli: 3 of 3 action steps return a client value; stepreferral.init-currency-treasury; no passed cell of a client of this capability in normal mode; partial evidence, does not count). currency-referral-provisioning (TypeScript SDK, CLI) registers a fresh mint and creates its referral treasury shard 3. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
currency-referral-provisioning(sdk-typescript: 2 of 3 action steps return a client value; cli: 3 of 3 action steps return a client value; stepreferral.init-currency-treasury; no passed cell of a client of this capability in independent mode; partial evidence, does not count). currency-referral-provisioning (TypeScript SDK, CLI) runs in independent mode too. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- A currency treasury binds exactly one currency and shard. Evidence:
program/tests/currency_referral_treasury.rs.
- A currency treasury binds exactly one currency and shard. Evidence:
- Known limits:
- No app builds InitializeCurrencyReferralTreasury (0x4E): a tracked app gap of both apps (TRACKED_APP_GAPS in packages/test-vectors/src/tests/feature-support-matrix.test.ts).
- No CLI command builds it (TRACKED_GAPS_WITHOUT_COMMAND in packages/cli/src/tests/commands/coverage.test.ts).
treasury.currency-protocol Currency protocol treasury#
- Status: implemented. Last verified at
599c703662f7f329d3cf87b114e174053316dacf. - Roadmap items:
F3. Owning phase: 4. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
InitializeCurrencyProtocolTreasury permissionlessly provisions a protocol treasury shard of one registered classic SPL Token settlement currency and emits CurrencyProtocolTreasuryInitialized; a market in that currency sends its protocol fee leg to the shard of the order's treasury index (PlaceOrder account 7). Registering a currency (CLI, web and Android) creates its missing shards in the same transaction. WithdrawCurrencyProtocolTreasury lets the config authority move a shard balance to a token account of the same mint and emits CurrencyProtocolTreasuryWithdrawn.
- Source:
program/src/processor/initialize_currency_protocol_treasury.rs,program/src/processor/withdraw_currency_protocol_treasury.rs - Routes:
InitializeCurrencyProtocolTreasury(0x52),WithdrawCurrencyProtocolTreasury(0x53) - Events:
CurrencyProtocolTreasuryInitialized,CurrencyProtocolTreasuryWithdrawn - CLI commands:
currency register,treasury init-currency-shard,treasury withdraw-currency-shard - Web routes:
/[locale]/settings/currencies - Android screens:
Settings - Boundaries: callers anyone, config authority; signers caller wallet (fee payer), config authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/initialize_currency_protocol_treasury.rs, program/src/processor/withdraw_currency_protocol_treasury.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts, packages/core/src/treasury.ts | |
| Rust SDK | yes | packages/sdk-rust/src/currency.rs, packages/sdk-rust/src/log_recorder.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/currency.py, packages/sdk-python/seesaw/events.py | |
| CLI | yes | packages/cli/src/commands/currency/index.ts, packages/cli/src/commands/treasury/index.ts | currency register creates the missing shards (0x61) after RegisterCurrency in one transaction; treasury init-currency-shard creates one shard and treasury withdraw-currency-shard is the only withdrawal (0x62) surface. |
| Indexer | partial | apps/indexer/src/indexer/parser.ts, apps/indexer/src/indexer/currencyRegistrationEvents.ts | The dispatch sends both routes to skipInstruction (apps/indexer/src/processors/dispatch.ts); the two events are validated in currencyRegistrationEvents.ts and kept in chain_events (migration 021), and no table projects shard balances (spec/IX.md 59 asks for none). |
| API | no | none | No transaction-builder route builds either instruction and no API route reads the shards; the place-order builder (txBuilder.ts) sends account 7 to the currency shard of a non-default market and refuses a missing shard. |
| Web | yes | apps/web/lib/currencyRegistry.ts, apps/web/app/[locale]/settings/currencies/CurrencyRegistrationContent.tsx, apps/web/app/[locale]/admin/operations/OperationsAdminContent.tsx, apps/shared/operatorActions.ts, apps/web/lib/__tests__/operatorActions.test.ts, apps/web/app/[locale]/admin/operations/__tests__/OperationsAdminContent.test.tsx | /[locale]/settings/currencies creates the missing shards with RegisterCurrency in one transaction. The operations panel withdraws from a shard for the config authority (owner ruling 2026-11-24 (docs/internal/decisions/2026-11-24-client-parity-rulings.md), reversing the 2026-11-17 CLI-only decision). Tests are written, not run. |
| Android | yes | apps/mobile/src/utils/currencyRegistry.ts, apps/mobile/src/components/CurrencyRegistration.tsx, apps/mobile/src/admin/adminControls.ts, apps/shared/operatorActions.ts, apps/mobile/src/__tests__/admin/adminControls.test.ts | The Settings registration creates the missing shards. The admin control withdrawCurrencyProtocolTreasury withdraws for the config authority (owner ruling 2026-11-24 (docs/internal/decisions/2026-11-24-client-parity-rulings.md)). Tests are written, not run. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/38-currency-treasuries.ts, packages/sdk-rust/examples/currency_treasuries.rs, packages/sdk-python/examples/currency_treasuries.py | The offline currency treasury samples build each route of this row in TypeScript, Rust and Python. |
- Journeys, normal mode: none. Partial evidence:
currency-protocol-treasury-shard(sdk-typescript: 1 of 2 action steps return a client value; steptreasury.init-currency-protocol; no passed cell of a client of this capability in normal mode; partial evidence, does not count),currency-protocol-treasury-withdraw-d6(sdk-typescript: 2 of 5 action steps return a client value; cli: 2 of 5 action steps return a client value; web: 1 of 5 action steps return a client value; steptreasury.withdraw-currency-protocol; no passed cell of a client of this capability in normal mode; partial evidence, does not count). currency-protocol-treasury-shard (TypeScript SDK only: CLI currency register creates all 8 shards, so a separate shard step cannot land) creates one shard; currency-protocol-treasury-withdraw-d6 (TypeScript SDK, CLI, and web through the operations panel) withdraws the protocol leg of a taker fill. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
currency-protocol-treasury-shard(sdk-typescript: 1 of 2 action steps return a client value; steptreasury.init-currency-protocol; no passed cell of a client of this capability in independent mode; partial evidence, does not count),currency-protocol-treasury-withdraw-d6(sdk-typescript: 2 of 5 action steps return a client value; cli: 2 of 5 action steps return a client value; web: 1 of 5 action steps return a client value; steptreasury.withdraw-currency-protocol; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Both journeys run in independent mode too. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- A non-default-currency fill sends its protocol leg only to the shard of its own mint, and the shard is withdrawn only by the config authority. Evidence:
program/tests/currency_protocol_treasury.rs,program/tests/currency_protocol_treasury_paths.rs.
- A non-default-currency fill sends its protocol leg only to the shard of its own mint, and the shard is withdrawn only by the config authority. Evidence:
- Known limits:
- Web and Android expose WithdrawCurrencyProtocolTreasury (0x53) to the config authority under the owner ruling of 2026-11-24. Their runtime journey evidence is pending.
- A non-default-currency order fails until the shard for its treasury index exists (no slot fallback); clients report CurrencyProtocolTreasuryMissingError before signing. Registration creates all eight shards, so only a currency registered before that change can lack one.
- Classic SPL Token and Token-2022 shards use the admitted mint's token program. Token-2022 shard allocation includes the ImmutableOwner extension.
referral.currency-earnings Currency referrer earnings account#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F4,F3. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
InitializeCurrencyReferrerEarnings creates the earnings account of a referrer for one settlement currency, bound to that currency treasury shard, and emits CurrencyReferrerEarningsInitialized.
- Source:
program/src/processor/initialize_currency_referrer_earnings.rs - Routes:
InitializeCurrencyReferrerEarnings(0x4F) - Events:
CurrencyReferrerEarningsInitialized - CLI commands:
fee init-referral-account - API routes:
GET /api/v1/referrer/{address}/earnings - Web routes:
/[locale]/referral - Android screens:
Referral - Boundaries: callers referrer; signers referrer wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/initialize_currency_referrer_earnings.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/currency.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/currency.py | |
| CLI | yes | packages/cli/src/commands/fee/index.ts, packages/cli/src/__tests__/commands/coverage.test.ts | |
| Indexer | partial | apps/indexer/src/indexer/currencyRegistrationEvents.ts | The dispatch sends the route to skipInstruction (apps/indexer/src/processors/dispatch.ts:198); the CurrencyReferrerEarningsInitialized event is only validated (currencyRegistrationEvents.ts:56-80) and stored in no table. |
| API | partial | apps/indexer/src/api/routes/feeConfig.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/referrer/{address}/earnings returns per-currency currencies from currency_referral_ledger joined with currency_registry, covering claims and rollups (feeConfig.ts). |
| Web | yes | apps/web/app/[locale]/referral/ReferralContent.tsx | |
| Android | yes | apps/mobile/src/utils/mobileParity.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/38-currency-treasuries.ts, packages/sdk-rust/examples/currency_treasuries.rs, packages/sdk-python/examples/currency_treasuries.py | The offline currency treasury samples build each route of this row in TypeScript, Rust and Python. |
- Journeys, normal mode: none. Partial evidence:
currency-referral-provisioning(sdk-typescript: 2 of 3 action steps return a client value; cli: 3 of 3 action steps return a client value; stepreferral.init-currency-earnings; no passed cell of a client of this capability in normal mode; partial evidence, does not count). currency-referral-provisioning (TypeScript SDK, CLI) binds a referrer's earnings account in a fresh currency to referral shard 3. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
currency-referral-provisioning(sdk-typescript: 2 of 3 action steps return a client value; cli: 3 of 3 action steps return a client value; stepreferral.init-currency-earnings; no passed cell of a client of this capability in independent mode; partial evidence, does not count). currency-referral-provisioning (TypeScript SDK, CLI) runs in independent mode too. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- InitializeCurrencyReferrerEarnings creates the earnings PDA for exactly one registered currency record and referrer, writes the record, referrer, bump and treasury index, and binds it to the named currency treasury shard; a mismatched shard is refused without creating the account (initializes_currency_referrer_earnings_on_the_live_route in currency_referral_treasury.rs). Evidence:
program/tests/currency_referral_treasury.rs,program/src/processor/initialize_currency_referrer_earnings.rs. - A second initialization fails with AccountAlreadyInitialized and leaves the account byte-identical (initializes_currency_referrer_earnings_on_the_live_route). Evidence:
program/tests/currency_referral_treasury.rs. - Revoking a currency freeze exception blocks new exposure but does not stop referral accounts for an already registered currency (initializes_currency_referrer_earnings_on_the_live_route revocation leg). Evidence:
program/tests/currency_referral_treasury.rs. - All accounts are pairwise distinct, and a self-program and log-authority recorder tail is required before CurrencyReferrerEarningsInitialized is emitted; uncovered; phase 15. Evidence:
program/src/processor/initialize_currency_referrer_earnings.rs.
- InitializeCurrencyReferrerEarnings creates the earnings PDA for exactly one registered currency record and referrer, writes the record, referrer, bump and treasury index, and binds it to the named currency treasury shard; a mismatched shard is refused without creating the account (initializes_currency_referrer_earnings_on_the_live_route in currency_referral_treasury.rs). Evidence:
- Known limits:
- No CLI command builds InitializeCurrencyReferrerEarnings (TRACKED_GAPS_WITHOUT_COMMAND in packages/cli/src/tests/commands/coverage.test.ts).
referral.currency-claim Currency referral claim#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F4,F3. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ClaimCurrencyReferrerEarnings pays a referrer the earnings of one currency from the recorded currency treasury shard and emits CurrencyReferrerEarningsClaimed.
- Source:
program/src/processor/claim_currency_referrer_earnings.rs - Routes:
ClaimCurrencyReferrerEarnings(0x50) - Events:
CurrencyReferrerEarningsClaimed - CLI commands:
fee claim-referral - API routes:
POST /api/v1/tx/claim-referrer-earnings - Web routes:
/[locale]/claims - Android screens:
Earnings - Boundaries: callers referrer; signers referrer wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/claim_currency_referrer_earnings.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/currency.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/currency.py | |
| CLI | yes | packages/cli/src/commands/fee/index.ts, packages/cli/src/__tests__/commands/coverage.test.ts | |
| Indexer | yes | apps/indexer/src/indexer/currencyReferralLedger.ts | The dispatch sends the route to skipInstruction (apps/indexer/src/processors/dispatch.ts:198); CurrencyReferrerEarningsClaimed is projected into currency_referral_ledger (currencyReferralLedger.ts:33,41,61). |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/feeConfig.ts | POST /api/v1/tx/claim-referrer-earnings builds ClaimCurrencyReferrerEarnings after it reads the referrer's currency earnings account and checks the treasury shard (apps/indexer/src/api/routes/txBuilder.ts). GET /api/v1/referrer/{address}/earnings returns per-currency currencies from currency_referral_ledger joined with currency_registry, covering claims and rollups (feeConfig.ts). |
| Web | yes | apps/web/app/[locale]/claims/ClaimsContent.tsx | |
| Android | yes | apps/mobile/src/utils/currencyReferralClaim.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/38-currency-treasuries.ts, packages/sdk-rust/examples/currency_treasuries.rs, packages/sdk-python/examples/currency_treasuries.py | The offline currency treasury samples build each route of this row in TypeScript, Rust and Python. |
- Journeys, normal mode: none. Partial evidence:
currency-referral-claim(sdk-typescript: 7 of 9 action steps return a client value; stepreferral.claim; no passed cell of a client of this capability in normal mode; partial evidence, does not count). currency-referral-claim (TypeScript SDK) claims the rolled-up referral fee once and checks the wrong-shard and repeat refusals. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
currency-referral-claim(sdk-typescript: 7 of 9 action steps return a client value; stepreferral.claim; no passed cell of a client of this capability in independent mode; partial evidence, does not count). currency-referral-claim (TypeScript SDK) runs in independent mode. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Only the signing referrer recorded in the earnings account can claim, and only to a destination token account it owns (stage20_s3_3_claim_with_wrong_destination_authority_rejected; pr245_claim_against_system_owned_earnings_account_rejects_illegal_owner; recipient-is-signer-referrer row in referral_recipient_derivation_sites_match_pinned_table). Evidence:
program/tests/security_shard3_stage20_lesser_paths.rs,program/tests/security_referral_shard1_pr245.rs,program/tests/fv_tr_referral_transfer_recipient_census.rs. - The payout comes only from the treasury shard recorded at initialization, with the currency's own mint (shard-bind row in referral_recipient_derivation_sites_match_pinned_table; stage20_s3_2_claim_with_wrong_settlement_mint_rejected; all_eight_shards_preserve_named_liability_and_once_only_claim_under_every_gate). Evidence:
program/tests/fv_tr_referral_transfer_recipient_census.rs,program/tests/security_shard3_stage20_lesser_paths.rs,program/tests/fv_referral_lifecycle_runtime.rs. - A claim pays the full accrued balance once, zeroes accumulated, adds it to total_claimed, rejects a zero balance, and rejects a concurrent liability change (claim-once-zero-reject and claim-reconcile-cas rows in referral_failure_sites_match_pinned_table; all_eight_shards_preserve_named_liability_and_once_only_claim_under_every_gate). Evidence:
program/tests/fv_tr_referral_transfer_recipient_census.rs,program/tests/fv_referral_lifecycle_runtime.rs,program/src/processor/shared/currency_referral_claim.rs. - Referral accrual, rollup and claim conserve the shared treasury and market-local liability, including Token-2022 currencies (referral_accrual_and_claim_preserve_shared_treasury_conservation in economic_gap_closure.rs; bind_trade_partial_rollup_then_claim_preserves_exact_market_local_equality; token_2022_currency_referral_rollup_and_claim). Evidence:
program/tests/economic_gap_closure.rs,program/tests/integration_market_local_referral.rs,program/tests/litesvm_native_full_lifecycle.rs.
- Only the signing referrer recorded in the earnings account can claim, and only to a destination token account it owns (stage20_s3_3_claim_with_wrong_destination_authority_rejected; pr245_claim_against_system_owned_earnings_account_rejects_illegal_owner; recipient-is-signer-referrer row in referral_recipient_derivation_sites_match_pinned_table). Evidence:
- Known limits:
- No CLI command builds ClaimCurrencyReferrerEarnings (TRACKED_GAPS_WITHOUT_COMMAND in packages/cli/src/tests/commands/coverage.test.ts).
referral.currency-rollup Currency referral rollup#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F4,F3. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
RollupCurrencyReferralFees permissionlessly rolls the market-local referral fees of a set of positions into the currency-bound treasury shard, emitting ReferralAccrued and ReferralRollupCompleted.
- Source:
program/src/processor/rollup_currency_referral_fees.rs - Routes:
RollupCurrencyReferralFees(0x51) - Events:
ReferralAccrued,ReferralRollupCompleted,ReferralFeeDeferred,ReferralForfeited - CLI commands:
fee rollup-referral - API routes:
GET /api/v1/referrals/diagnostics - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/rollup_currency_referral_fees.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/currency.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/currency.py | |
| CLI | yes | packages/cli/src/commands/fee/index.ts, packages/cli/src/__tests__/commands/coverage.test.ts | |
| Indexer | yes | apps/indexer/src/indexer/currencyReferralLedger.ts | The dispatch sends the route to skipInstruction (apps/indexer/src/processors/dispatch.ts:198); the ReferralRollupCompleted of a currency rollup is projected into currency_referral_ledger (currencyReferralLedger.ts:34,61). |
| API | partial | apps/indexer/src/api/routes/feeConfig.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/referrer/{address}/earnings returns per-currency currencies from currency_referral_ledger joined with currency_registry, covering claims and rollups (feeConfig.ts). |
| Web | yes | apps/web/app/[locale]/admin/operations/OperationsAdminContent.tsx, apps/web/app/[locale]/admin/operations/currencyReferral.ts, apps/web/app/[locale]/admin/operations/__tests__/OperationsAdminContent.test.tsx | Permissionless form in the operations panel; positions are sorted into the ascending byte order the route requires, and MarketMeta is added for external markets. Component tests are written, not run. |
| Android | yes | apps/mobile/src/admin/adminControls.ts, apps/mobile/src/__tests__/admin/adminControls.test.ts | Permissionless admin control (rollupCurrencyReferralFees); positions are sorted before building. Tests are written, not run. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/38-currency-treasuries.ts, packages/sdk-rust/examples/currency_treasuries.rs, packages/sdk-python/examples/currency_treasuries.py | The offline currency treasury samples build each route of this row in TypeScript, Rust and Python. |
- Journeys, normal mode: none. Partial evidence:
currency-referral-claim(sdk-typescript: 7 of 9 action steps return a client value; stepreferral.rollup; no passed cell of a client of this capability in normal mode; partial evidence, does not count). currency-referral-claim (TypeScript SDK) rolls the deferred referral fee into the referrer's currency shard. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
currency-referral-claim(sdk-typescript: 7 of 9 action steps return a client value; stepreferral.rollup; no passed cell of a client of this capability in independent mode; partial evidence, does not count). currency-referral-claim (TypeScript SDK) runs in independent mode. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- A currency rollup conserves the referral fees it moves. Evidence:
program/tests/currency_referral_rollup.rs.
- A currency rollup conserves the referral fees it moves. Evidence:
- Known limits:
- No app builds RollupCurrencyReferralFees (0x51): a tracked app gap of both apps (TRACKED_APP_GAPS in packages/test-vectors/src/tests/feature-support-matrix.test.ts).
- No CLI command builds it (TRACKED_GAPS_WITHOUT_COMMAND in packages/cli/src/tests/commands/coverage.test.ts).
fees.maker-rebate Maker rebate#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F4. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
When a taker fill meets an eligible resting maker, the maker share of the taker fee is credited to that maker and MakerRebateCredited is emitted; the credit is part of the fill accounting of PlaceOrder and its free-funds twins.
- Source:
program/src/processor/place_order/event_projection.rs,program/src/logic/fee.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E),PlaceLimitWithFreeFunds(0x0F) - Events:
MakerRebateCredited - CLI commands:
order place - Boundaries: callers trader (maker); signers taker wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs, program/src/processor/place_limit_order_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/placeOrder.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/indexer/tradeFillProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts | |
| API | partial | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/externalMarkets.ts | POST /api/v1/tx/place-order builds the taker order that pays the rebate; no route reports the maker rebate of a native market. GET /api/v1/external-markets/{marketAddress}/maker-credit/{address} sums maker_rebate_events for external markets (signed-source or historical) only (externalMarkets.ts). |
| Web | yes | apps/web/lib/orderInstruction.ts, apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts | |
| Android | yes | apps/mobile/src/hooks/usePlaceOrder.ts, apps/mobile/src/screens/marketDetail/useMarketDetailSubmit.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/03-build-place-order-ix.ts, packages/core/examples/07-build-all-high-level-instructions.ts, packages/core/examples/09-advanced-order-management.ts, packages/core/examples/native-tutorial.ts |
- Journeys, normal mode: none. Partial evidence:
fees-maker-rebate(sdk-typescript: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; steporder.placewith{"makerRebateEligible":true}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),fees-every-leg(sdk-typescript: 3 of 5 action steps return a client value; steporder.place-referredwith{"makerRebateEligible":true}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). fees-maker-rebate (TypeScript SDK, CLI) and fees-every-leg (TypeScript SDK) rest a maker past the configured minimum rest time and check the rebate from the config. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
fees-maker-rebate(sdk-typescript: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; steporder.placewith{"makerRebateEligible":true}; no passed cell of a client of this capability in independent mode; partial evidence, does not count),fees-every-leg(sdk-typescript: 3 of 5 action steps return a client value; steporder.place-referredwith{"makerRebateEligible":true}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Both journeys run in independent mode too. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- The maker rebate is part of a fee split that conserves the collected fee. Evidence: none.
builder.approval Builder approval and revocation#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F4. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ApproveBuilder, signed by the trader, creates or updates the [seesaw, builder_approval, trader, builder] PDA with a share cap and an inclusive expiry, usable from a later slot; RevokeBuilder closes it and returns the rent to the trader. Anyone except the trader may be a builder. Events: BuilderApproved, BuilderApprovalRevoked.
- Source:
program/src/processor/approve_builder.rs - Routes:
ApproveBuilder(0x4A),RevokeBuilder(0x4B) - Events:
BuilderApproved,BuilderApprovalRevoked - CLI commands:
builder approve,builder revoke,builder status - API routes:
GET /api/v1/builders/{pubkey}/approvals - Web routes:
/[locale]/settings/builders - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/approve_builder.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/builder.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/builder/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts | The dispatch sends the route to skipInstruction (apps/indexer/src/processors/dispatch.ts:190); BuilderApproved and BuilderApprovalRevoked are projected into builder_approval_events and builder_approvals (binaryEventProjection.ts:1002-1159). |
| API | partial | apps/indexer/src/api/routes/builders.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/builders/{pubkey}/approvals reads builder_approvals (builders.ts). |
| Web | yes | apps/web/lib/builderApproval.ts | |
| Android | yes | apps/mobile/src/utils/builderApproval.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/builder_consent.rs, packages/sdk-python/examples/builder_consent.py |
- Journeys, normal mode: none. Partial evidence:
builder-approval-lifecycle(web: 0 of 3 action steps return a client value; android: 0 of 3 action steps return a client value; cli: 3 of 3 action steps return a client value; sdk-typescript: 0 of 3 action steps return a client value; sdk-python: 0 of 3 action steps return a client value; sdk-rust: 0 of 3 action steps return a client value; stepbuilder.approve; no passed cell of a client of this capability in normal mode; partial evidence, does not count),builder-fee-approval(sdk-typescript: 1 of 12 action steps return a client value; stepbuilder.approve; no passed cell of a client of this capability in normal mode; partial evidence, does not count). builder-approval-lifecycle approves, updates after an indexer restart and revokes a builder from the web and Android apps, the CLI and the three SDKs (the apps in normal mode only); builder-fee-approval covers builder-paid fills from the TypeScript SDK. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
builder-approval-lifecycle(web: 0 of 3 action steps return a client value; android: 0 of 3 action steps return a client value; cli: 3 of 3 action steps return a client value; sdk-typescript: 0 of 3 action steps return a client value; sdk-python: 0 of 3 action steps return a client value; sdk-rust: 0 of 3 action steps return a client value; stepbuilder.approve; no passed cell of a client of this capability in independent mode; partial evidence, does not count),builder-fee-approval(sdk-typescript: 1 of 12 action steps return a client value; stepbuilder.approve; no passed cell of a client of this capability in independent mode; partial evidence, does not count). builder-approval-lifecycle (CLI and the three SDKs) and builder-fee-approval (TypeScript SDK) run in independent mode. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- A builder approval is trader-signed, never names the trader, and is usable only inside its slot window. Evidence:
program/tests/builder_approval_runtime.rs.
- A builder approval is trader-signed, never names the trader, and is usable only inside its slot window. Evidence:
- Known limits:
- Live wallet, browser and device validation of the approval flows remain external signoffs; new locale copy uses English backfill pending translation review (superseded feature-support inventory).
builder.payout Builder payout#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F4. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Variant of
PlaceOrder: parameterbuilderApprovalset.
A taker fill that appends [builder_approval, builder_token_account] pays the builder min(builder_share_bps, trader cap) of the fee, with governed builder_share_bps in 0..=1000, out of the protocol leg; the fill path re-authenticates the approval each time and the protocol keeps any unpaid builder share.
- Source:
program/src/logic/fee.rs,program/src/processor/approve_builder.rs,program/src/processor/place_order.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E) - CLI commands:
order place - API routes:
GET /api/v1/builders/{pubkey}/earnings - Boundaries: callers trader (taker), builder (paid); signers taker wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/placeOrder.ts, apps/indexer/src/indexer/tradeFillProjection.ts | PlaceOrder reaches processPlaceOrder (placeOrder.ts:58); each fill writes builder, fee_builder and builder_bps_effective (tradeFillProjection.ts:473). |
| API | partial | apps/indexer/src/api/routes/builders.ts | No transaction-builder route appends a builder pair; GET /api/v1/builders/{pubkey}/earnings sums the fee_builder of OrderFilled events (builders.ts:5-10,83). |
| Web | not-applicable | none | Owner ruling 2026-11-24 ("No, third-party only", docs/internal/decisions/2026-11-24-client-parity-rulings.md): the first-party apps attach no builder fee leg. Builder payout is a third-party surface (SDKs and CLI). |
| Android | not-applicable | none | Owner ruling 2026-11-24 ("No, third-party only", docs/internal/decisions/2026-11-24-client-parity-rulings.md): the first-party apps attach no builder fee leg. Builder payout is a third-party surface (SDKs and CLI). |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/03-build-place-order-ix.ts, packages/core/examples/07-build-all-high-level-instructions.ts, packages/core/examples/09-advanced-order-management.ts, packages/core/examples/native-tutorial.ts |
- Journeys, normal mode: none. No journey exercises it: pyth-market-lifecycle and order-controls pass and place orders, but no step sets or asserts this capability. fee-sharing approves a builder, but its crossing step names no builder and asserts no payout, and it fails before that step (see referral.set-referrer). suite-web-fill, suite-web-fill-cancel and suite-web-orders land a route of it but do not exercise it.
- Journeys, independent mode: none. No journey exercises it: pyth-market-lifecycle and order-controls pass and place orders, but no step sets or asserts this capability. fee-sharing approves a builder, but its crossing step names no builder and asserts no payout, and it fails before that step (see referral.set-referrer). The web suites run in normal mode only.
- Formal obligations:
- The builder is paid at most the governed share and the trader cap, out of the protocol leg. Evidence:
program/tests/builder_approval_runtime.rs.
- The builder is paid at most the governed share and the trader cap, out of the protocol leg. Evidence:
treasury.recipients Treasury recipients and shards#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F4. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 missing (cli is partial); 7 missing (indexer is partial; api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
UpdateTreasuryRecipients, signed by the authority and rate limited, atomically replaces the 8 protocol treasury token accounts of the config (TreasuryRecipientsUpdated). Referral treasury shards are per currency (referral.currency-treasury). A taker names protocol_treasury_index as a preference; the supplied approved slot receives the fee.
- Source:
program/src/processor/update_treasury_recipients.rs - Routes:
UpdateTreasuryRecipients(0x1D) - Events:
TreasuryRecipientsUpdated - CLI commands:
admin update-treasury-recipients,treasury update-recipients,treasury list - API routes:
GET /api/v1/markets/{marketId}/protocol-fees,GET /api/v1/admin/protocol-fees,GET /api/v1/admin/fee-totals,GET /api/v1/admin/referrer-treasury/{shard} - Web routes:
/[locale]/admin/treasury,/[locale]/admin/fees,/[locale]/admin/observability - Indexer jobs:
reconcileTreasuryShards - Boundaries: callers authority (recipients), anyone (shard); signers config authority, caller wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/update_treasury_recipients.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | partial | packages/cli/src/commands/admin/index.ts, packages/cli/src/commands/treasury/index.ts | UpdateTreasuryRecipients has CLI commands. treasury init-referrer-shard builds the currency-scoped InitializeCurrencyReferralTreasury (referral.currency-treasury). |
| Indexer | partial | apps/indexer/src/processors/adminConfig.ts, apps/indexer/src/processors/adminEvent.ts, apps/indexer/src/jobs/reconcileTreasuryShards.ts | UpdateTreasuryRecipients reaches processAdminConfigInstruction, which writes one admin_events row with the recipient list (apps/indexer/src/processors/adminConfig.ts:194-210, adminEvent.ts:14). The reconcileTreasuryShards job reads the shard accounts and records treasury_shard_reconciliation and treasury_skew_events (apps/indexer/src/jobs/reconcileTreasuryShards.ts:106). |
| API | partial | apps/indexer/src/api/routes/config.ts, apps/indexer/src/api/routes/admin.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/config returns treasury_recipients read from the config account (config.ts); the admin-authorized GET /api/v1/admin/referrer-treasury/{shard} reads the shard account over RPC (admin.ts). |
| Web | yes | apps/web/app/[locale]/admin/treasury/TreasuryAdminContent.tsx, apps/web/app/[locale]/admin/operations/OperationsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/operator_controls.rs, packages/sdk-python/examples/operator_controls.py, packages/sdk-rust/examples/reward_maintenance.rs, packages/sdk-python/examples/reward_maintenance.py |
- Journeys, normal mode: none. Partial evidence:
governance-treasury-recipients(sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value; stepconfig.update-treasury-recipients; no passed cell of a client of this capability in normal mode; partial evidence, does not count). governance-treasury-recipients (TypeScript SDK, CLI) rotates the 8 recipients after a cooldown warp and puts them back in cleanup; it runs exclusively. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
governance-treasury-recipients(sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value; stepconfig.update-treasury-recipients; no passed cell of a client of this capability in independent mode; partial evidence, does not count). governance-treasury-recipients (TypeScript SDK, CLI) runs in independent mode too. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Recipient replacement is atomic and the fee always reaches an approved recipient. Evidence:
program/tests/agentflow_fresh_9_multi_fee_recipients_atomicity.rs,program/tests/agentflow_fresh_6_treasury_health.rs.
- Recipient replacement is atomic and the fee always reaches an approved recipient. Evidence:
currency.register Currency registration#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F3. Owning phase: 4. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
RegisterCurrency permissionlessly creates the currency record of a currently admissible mint, optionally naming its freeze exception, and emits CurrencyRegistered; the CLI, web and Android registration flows send the currency's missing protocol treasury shards (0x61) in the same transaction; market admission stays gated, and the program admits only mints with SETTLEMENT_MINT_DECIMALS = 6.
- Source:
program/src/processor/register_currency.rs,program/src/constants.rs - Routes:
RegisterCurrency(0x4D) - Events:
CurrencyRegistered - CLI commands:
currency register - API routes:
GET /api/v1/currency-metadata,GET /api/v1/currencies - Web routes:
/[locale]/settings/currencies - Android screens:
Settings - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/register_currency.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/currency.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/currency.py | |
| CLI | yes | packages/cli/src/commands/currency/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/currencyRegistrationEvents.ts | The dispatch sends the route to skipInstruction (apps/indexer/src/processors/dispatch.ts:198); CurrencyRegistered is projected into currency_registry (currencyRegistrationEvents.ts:146,152). |
| API | partial | apps/indexer/src/api/routes/currencies.ts, apps/indexer/src/api/routes/currencyMetadata.ts, apps/indexer/src/api/routes/feeConfig.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/currencies lists the registered currencies from currency_registry (currencies.ts). GET /api/v1/currency-metadata serves display metadata of settlement-currency mints from tokens.xyz (currencyMetadata.ts), and the per-currency referral earnings read currency_registry to label each currency (feeConfig.ts). |
| Web | yes | apps/web/app/[locale]/settings/currencies/CurrencyRegistrationContent.tsx, apps/web/lib/currencyRegistry.ts | Any connected wallet registers a mint from /[locale]/settings/currencies (linked from the More menu next to builder approvals); the builder reads the live mint account and names the freeze exception of a freeze-enabled mint. |
| Android | yes | apps/mobile/src/components/CurrencyRegistration.tsx, apps/mobile/src/utils/currencyRegistry.ts | The Settings screen lists the registered currencies and registers a mint, next to builder approvals. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/16-currency-governance.ts, packages/sdk-rust/examples/currency_governance.rs, packages/sdk-python/examples/currency_governance.py | Each example builds the registration offline and, against a loopback validator, sends it and decodes the CurrencyRecord it reads back. |
- Journeys, normal mode:
currency-admission(cli: 5 of 5 action steps return a client value; sdk-typescript: 0 of 5 action steps return a client value; sdk-python: 0 of 5 action steps return a client value; sdk-rust: 0 of 5 action steps return a client value; stepcurrency.register; passed on a real stack for cli, sdk-typescript, sdk-python, sdk-rust),app-currency-registration(web: 0 of 1 action steps return a client value; android: 0 of 1 action steps return a client value; stepcurrency.register; no passed cell of a client of this capability in normal mode; partial evidence, does not count) - Journeys, independent mode:
currency-admission(cli: 5 of 5 action steps return a client value; sdk-typescript: 0 of 5 action steps return a client value; sdk-python: 0 of 5 action steps return a client value; sdk-rust: 0 of 5 action steps return a client value; stepcurrency.register; passed on a real stack for cli, sdk-typescript, sdk-python, sdk-rust) - Formal obligations:
- Registration records one identity per mint and does not admit a market by itself. Evidence:
program/tests/currency_registration.rs.
- Registration records one identity per mint and does not admit a market by itself. Evidence:
- Known limits:
- Only six-decimal settlement mints are admitted (SETTLEMENT_MINT_DECIMALS = 6); decimal generalization is roadmap item P-E (phase 4).
currency.freeze-exception Freeze-authority exception#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F3. Owning phase: 4. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
SetCurrencyFreezeException, under governance, initializes, approves or revokes an exact-mint exception that lets a mint with a freeze authority be admitted, and emits CurrencyFreezeExceptionChanged; the indexer watches issuer freezes.
- Source:
program/src/processor/currency_freeze_exception.rs - Routes:
SetCurrencyFreezeException(0x4C) - Events:
CurrencyFreezeExceptionChanged - CLI commands:
currency set-freeze-exception,currency show-freeze-exception - API routes:
GET /api/v1/currency-freeze-exceptions - Web routes:
/[locale]/admin/currencies - Android screens:
Admin - Indexer jobs:
issuerFreezeWatcher - Boundaries: callers authority; signers config authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/currency_freeze_exception.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/currency.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/currency.py | |
| CLI | yes | packages/cli/src/commands/currency/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/currencyFreezeEvents.ts | The dispatch sends the route to skipInstruction (apps/indexer/src/processors/dispatch.ts:198); CurrencyFreezeExceptionChanged is projected into currency_freeze_exception_events (currencyFreezeEvents.ts:22,46). |
| API | partial | apps/indexer/src/api/routes/currencies.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/currency-freeze-exceptions reads the latest currency_freeze_exception_events row per token program and mint (currencies.ts); events of one exception in two transactions of the same slot are ordered by signature, because the projection stores no transaction index. |
| Web | yes | apps/web/app/[locale]/admin/currencies/CurrencyFreezeExceptionsContent.tsx, apps/web/lib/currencyRegistry.ts | The config authority sets (initializes if missing, then approves) or clears (revokes) an exception from /[locale]/admin/currencies, which lists the current exceptions; set is blocked while the live mint has no freeze authority. |
| Android | yes | apps/mobile/src/components/CurrencyFreezeExceptionList.tsx, apps/mobile/src/utils/currencyRegistry.ts | The Admin screen panel lists the current exceptions and lets the config authority approve (initializing a missing exception) or revoke one; approve is blocked while the live mint has no freeze authority. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/16-currency-governance.ts, packages/sdk-rust/examples/currency_governance.rs, packages/sdk-python/examples/currency_governance.py | Each example builds initialize, approve and revoke offline and, with a config authority keypair against a loopback validator, sets and then clears the exception. |
- Journeys, normal mode:
currency-admission(cli: 5 of 5 action steps return a client value; sdk-typescript: 0 of 5 action steps return a client value; sdk-python: 0 of 5 action steps return a client value; sdk-rust: 0 of 5 action steps return a client value; stepcurrency.set-freeze-exception; passed on a real stack for cli, sdk-typescript, sdk-python, sdk-rust) - Journeys, independent mode:
currency-admission(cli: 5 of 5 action steps return a client value; sdk-typescript: 0 of 5 action steps return a client value; sdk-python: 0 of 5 action steps return a client value; sdk-rust: 0 of 5 action steps return a client value; stepcurrency.set-freeze-exception; passed on a real stack for cli, sdk-typescript, sdk-python, sdk-rust) - Formal obligations:
- A freeze exception applies to exactly one mint and only under governance. Evidence:
program/tests/currency_freeze_exception.rs.
- A freeze exception applies to exactly one mint and only under governance. Evidence:
spline.init Initialize a spline#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
A maker initializes a series for a feed, duration, and registered settlement currency, with compiled quote curves and a series vault. A recorder tail enables the initialization event.
- Source:
program/src/processor/init_spline_series.rs - Routes:
InitSplineSeries(0x2E) - Events:
SplineSeriesInitialized - CLI commands:
spline series init,spline init - Boundaries: callers creator (spline maker); signers creator wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/init_spline_series.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/spline/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/processors/spline.ts | Lifecycle receipts are written by binaryEventProjection.ts:4021. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId}/spline-seats (apps/indexer/src/api/routes/marketSplineSeats.ts) reads attached seats over RPC (attachment, mid, quote window, available lots); it is owned by spline.fill and orderbook.market-tick and does not perform this operation. |
| Web | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| Android | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | yes | packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/core/examples/26-spline-lifecycle.ts |
- Journeys, normal mode: none. Partial evidence:
spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepspline.init-series; no passed cell of a client of this capability in normal mode; partial evidence, does not count),spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.init-series; no passed cell of a client of this capability in normal mode; partial evidence, does not count),spline-seat-recovery(sdk-typescript: 5 of 6 action steps return a client value; cli: 5 of 6 action steps return a client value; stepspline.init-series; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-series-bootstrap-d6, spline-no-competition-d6 and spline-seat-recovery initialize series. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepspline.init-series; no passed cell of a client of this capability in independent mode; partial evidence, does not count),spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.init-series; no passed cell of a client of this capability in independent mode; partial evidence, does not count),spline-seat-recovery(sdk-typescript: 5 of 6 action steps return a client value; cli: 5 of 6 action steps return a client value; stepspline.init-series; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-series-bootstrap-d6, spline-no-competition-d6 and spline-seat-recovery initialize series. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- A spline initializes only with a valid shape. Evidence:
program/tests/authorized_spline_lifecycle.rs.
- A spline initializes only with a valid shape. Evidence:
spline.update-shape Update spline shape#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is partial); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The maker can replace its series template or update the shape of a specific attached seat. A seat shape update advances its generation and requires a fresh quote.
- Source:
program/src/processor/update_series_template.rs,program/src/processor/update_seat_tables.rs - Routes:
UpdateSeriesTemplate(0x2F),UpdateSeatTables(0x5B),UpdateSeatParams(0x6E),UpdateSeatProgram(0x6F) - Events:
SeriesTemplateUpdated,SeatShapeUpdated,SeatProgramInstalled - CLI commands:
spline series update-template,spline seat update-shape,spline update-shape,spline install-program,spline pause,spline seat install-program,spline seat pause,spline seat update-params,spline update-params - Boundaries: callers creator (spline maker); signers creator wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/update_series_template.rs, program/src/processor/update_seat_tables.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts, packages/core/src/seatInstructions.ts, packages/core/src/generated/program/index.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/spline/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/processors/spline.ts | Lifecycle receipts are written by binaryEventProjection.ts:4021. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId}/spline-seats (apps/indexer/src/api/routes/marketSplineSeats.ts) reads attached seats over RPC (attachment, mid, quote window, available lots); it is owned by spline.fill and orderbook.market-tick and does not perform this operation. |
| Web | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| Android | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | partial | packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/core/examples/26-spline-lifecycle.ts | Examples cover UpdateSeriesTemplate and UpdateSeatTables; UpdateSeatParams and UpdateSeatProgram are not yet in the offline example scripts. |
- Journeys, normal mode: none. Partial evidence:
spline-seat-maintenance(cli: 8 of 8 action steps return a client value; sdk-typescript: 8 of 8 action steps return a client value; stepspline.update-seat-shape; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-seat-maintenance (CLI and TypeScript SDK) replaces an attached seat curve with UpdateSeatShape; no journey updates a series template yet. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
spline-seat-maintenance(cli: 8 of 8 action steps return a client value; sdk-typescript: 8 of 8 action steps return a client value; stepspline.update-seat-shape; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-seat-maintenance (CLI and TypeScript SDK) replaces an attached seat curve with UpdateSeatShape; no journey updates a series template yet. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Only the seat's maker (signer) can update an attached seat's shape, and only the series maker can replace the series template (signer_matrix_enforcement_snippets_exist in signer_coverage.rs; shape_payload_334_bytes_and_cannot_change_authority in spline_publication_v2.rs). Evidence:
program/tests/signer_coverage.rs,program/tests/spline_publication_v2.rs,program/src/processor/update_seat_tables.rs. - A seat shape update advances the seat generation and uninstalls the current publication while keeping authority, epoch, sequence and profile, so a fresh generation-bound quote is required (shape_update_invalidates_until_new_generation_publication in spline_publication_v2.rs; shape_update_invalidates_protected_publication_until_republished in fv_quote_authority_lifetime_runtime.rs). Evidence:
program/tests/spline_publication_v2.rs,program/tests/fv_quote_authority_lifetime_runtime.rs. - Replacing a shape keeps the seat's attachment entitlement and consumed-counter frame for every successful replacement (spline_shape_actual_writer_preserves_entitlement_for_every_successful_replacement). Evidence:
formal/verification/goal_tr_spline_shape_entitlement_frame.rs. - An attached shape update fails closed unless the canonical market vault covers the required reserve and the seat commitment matches the market aggregate (attached_shape_accepts_exact_reserve_and_three_atom_surplus, attached_shape_rejects_one_atom_quote_deficit_without_state_mutation, attached_shape_rejects_solvent_market_spline_commitment_drift, external_attached_shape_requires_meta_and_canonical_reserve in litesvm_update_spline_shape_reserve.rs). Evidence:
program/tests/litesvm_update_spline_shape_reserve.rs,program/src/processor/update_seat_tables.rs. - Shape payloads parse exactly: level counts, booleans and all sixteen levels pack and decode with no slack bytes (disp03_spline_curve_full_packet_grammar_tagged_fields_and_frame; every_admitted_count_pair_packs_all_sixteen_levels_and_every_attachment_shape_exactly, all_wire_count_bytes_and_boolean_bytes_have_exact_parser_grammar in fv_tr_spline_shape_sdk_bridge.rs). Evidence:
formal/verification/goal_g_disp_03_spline_curve_parsers.rs,program/tests/fv_tr_spline_shape_sdk_bridge.rs. - The new attached shape must meet the governed band-depth liquidity floor for the seat's committed collateral, and max_quote_age_seconds = 0 is refused (SeatBelowLiquidityFloor, SeatStalenessOff); uncovered; phase 15. Evidence:
program/src/processor/update_seat_tables.rs.
- Only the seat's maker (signer) can update an attached seat's shape, and only the series maker can replace the series template (signer_matrix_enforcement_snippets_exist in signer_coverage.rs; shape_payload_334_bytes_and_cannot_change_authority in spline_publication_v2.rs). Evidence:
spline.update-mid Update spline mid#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5,F10. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The maker or its delegate publishes a generation-bound seat quote using the authenticated market and vault. Protected publication checks its slot and sequence and can bind a Market Tick window.
- Source:
program/src/processor/update_seat_quote.rs,program/src/logic/quote_validity.rs - Routes:
UpdateSeatQuote(0x30) - CLI commands:
spline seat update-mid,spline update-mid - Boundaries: callers creator or its delegated quote authority; signers quote authority key; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/update_seat_quote.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/spline/index.ts | |
| Indexer | not-applicable | none | The capability emits no event of its own for the indexer to ingest. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId}/spline-seats (apps/indexer/src/api/routes/marketSplineSeats.ts) reads attached seats over RPC (attachment, mid, quote window, available lots); it is owned by spline.fill and orderbook.market-tick and does not perform this operation. |
| Web | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| Android | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | yes | packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/core/examples/26-spline-lifecycle.ts |
- Journeys, normal mode: none. Partial evidence:
spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepspline.publish; no passed cell of a client of this capability in normal mode; partial evidence, does not count),spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.attach-and-publish; no passed cell of a client of this capability in normal mode; partial evidence, does not count),spline-seat-recovery(sdk-typescript: 5 of 6 action steps return a client value; cli: 5 of 6 action steps return a client value; stepspline.attach-and-publish; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-series-bootstrap-d6 publishes a seat quote; spline-no-competition-d6 and spline-seat-recovery attach and publish. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepspline.publish; no passed cell of a client of this capability in independent mode; partial evidence, does not count),spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.attach-and-publish; no passed cell of a client of this capability in independent mode; partial evidence, does not count),spline-seat-recovery(sdk-typescript: 5 of 6 action steps return a client value; cli: 5 of 6 action steps return a client value; stepspline.attach-and-publish; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-series-bootstrap-d6 publishes a seat quote; spline-no-competition-d6 and spline-seat-recovery attach and publish. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Only the maker or its current, unexpired delegate can publish, with the authority epoch and the shape and trading generations checked in that order (spline_detached_actual_hot_path_checks_authority_then_epoch_then_generations; delegate_after_session_expiry_rejected, rejects_wrong_shape_or_trading_generation in spline_publication_v2.rs). Evidence:
formal/verification/goal_tr_spline_detached_publication_authorization.rs,program/tests/spline_publication_v2.rs,program/src/processor/update_seat_quote.rs. - Protected publication accepts only a strictly increasing sequence whose slot anchor is not in the future, so replays, duplicates and lower sequences are rejected (ace_publication_full_domain_contract, ace_sequence_anchor_full_u64 in quote_publication.rs; publication_replay_and_session_errors_exact; duplicate_and_lower_rejected, future_anchor_rejected in quote_validity.rs unit tests; sequence_replay_and_regression_rejected in fv_quote_authority_lifetime_runtime.rs). Evidence:
formal/verification/quote_publication.rs,formal/verification/goal_tr_quote_auth.rs,program/src/logic/quote_validity.rs,program/tests/fv_quote_authority_lifetime_runtime.rs. - A Market Tick-bound publication is live only inside its inclusive slot window and up to the maximum span, and liveness is never resurrected (update_spline_mid_window_inclusive_boundary_and_max_span in spline_publication_v2.rs; ace_quote_liveness_full_domain; all_counter_bits_and_protected_window_edges_include_full_width_slots in fv_tr_quote_auth_validity_domains.rs). Evidence:
program/tests/spline_publication_v2.rs,formal/verification/quote_publication.rs,program/tests/fv_tr_quote_auth_validity_domains.rs. - The market and vault must be the authenticated read-only accounts, and an attached mid update fails closed on any reserve deficit or commitment drift without writing the quote (writable_market_vault_or_meta_rejected in spline_publication_v2.rs; attached_one_atom_deficit_rejects_mid_update_and_rolls_back, attached_mid_rejects_solvent_market_spline_commitment_drift in security_update_spline_mid_canonical_reserve.rs). Evidence:
program/tests/spline_publication_v2.rs,program/tests/security_update_spline_mid_canonical_reserve.rs. - A mid write touches only the quote fields and leaves entitlement unchanged on every success or refusal, and every price and threshold boundary is guarded (spline_detached_actual_writer_frames_entitlement_on_every_success_or_refusal; update_spline_mid_touches_only_intended_fields in spline_lifecycle.rs; every_raw_mid_price_and_threshold_boundary_has_exact_curve_guard_and_reset in fv_tr_spline_mid_transition_domains.rs). Evidence:
formal/verification/goal_tr_spline_detached_publication_writer.rs,program/tests/spline_lifecycle.rs,program/tests/fv_tr_spline_mid_transition_domains.rs.
- Only the maker or its current, unexpired delegate can publish, with the authority epoch and the shape and trading generations checked in that order (spline_detached_actual_hot_path_checks_authority_then_epoch_then_generations; delegate_after_session_expiry_rejected, rejects_wrong_shape_or_trading_generation in spline_publication_v2.rs). Evidence:
spline.rotate-quote-authority Rotate spline quote authority#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5,F10. Owning phase: 7. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The maker rotates or revokes its seat's quote delegate using the expected authority epoch. A rotation can shorten the validity of an already-published delegated quote.
- Source:
program/src/processor/rotate_seat_quote_authority.rs - Routes:
RotateSeatQuoteAuthority(0x49) - CLI commands:
spline seat rotate-authority,spline rotate-authority - Boundaries: callers creator; signers creator wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/rotate_seat_quote_authority.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/spline/index.ts | |
| Indexer | not-applicable | none | The capability emits no event of its own for the indexer to ingest. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId}/spline-seats (apps/indexer/src/api/routes/marketSplineSeats.ts) reads attached seats over RPC (attachment, mid, quote window, available lots); it is owned by spline.fill and orderbook.market-tick and does not perform this operation. |
| Web | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| Android | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | yes | packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/core/examples/26-spline-lifecycle.ts |
- Journeys, normal mode: none. Partial evidence:
spline-seat-maintenance(cli: 8 of 8 action steps return a client value; sdk-typescript: 8 of 8 action steps return a client value; stepspline.rotate-quote-authority; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-seat-maintenance (CLI and TypeScript SDK) rotates the seat publication delegate. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
spline-seat-maintenance(cli: 8 of 8 action steps return a client value; sdk-typescript: 8 of 8 action steps return a client value; stepspline.rotate-quote-authority; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-seat-maintenance (CLI and TypeScript SDK) rotates the seat publication delegate. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Only the seat maker (signer) can rotate, and only with the current authority epoch; the epoch then advances by exactly one, with overflow being atomic (rotation_requires_creator_signer, rotation_wrong_epoch_rejected, rotation_epoch_overflow_is_atomic in spline_publication_v2.rs; stale_authority_epoch_rejected_for_rotation_and_publication in fv_quote_authority_lifetime_runtime.rs). Evidence:
program/tests/spline_publication_v2.rs,program/tests/fv_quote_authority_lifetime_runtime.rs,program/src/processor/rotate_seat_quote_authority.rs. - Rotation never extends valid_until: a delegate-origin quote is clamped to the new session expiry, while a creator-origin quote is unchanged (rotation_never_extends_valid_until, rotation_clamps_delegate_origin_not_creator_origin in spline_publication_v2.rs; rotation_clamp_bounds_real_consumption_of_delegate_publication, creator_publication_survives_rotation_and_revocation in fv_quote_authority_lifetime_runtime.rs). Evidence:
program/tests/spline_publication_v2.rs,program/tests/fv_quote_authority_lifetime_runtime.rs. - Revocation ends a delegate-origin quote immediately, and a revoked or rotated-out delegate's publication is never live again (revoke_ends_delegate_origin_quote_immediately, rotation_lifecycle_rejects_old_delegate_and_accepts_replacement in spline_publication_v2.rs; revoked_delegate_publication_is_never_resurrected in fv_quote_authority_lifetime_runtime.rs; publication_replay_and_session_errors_exact over a copied model of the rotation). Evidence:
program/tests/spline_publication_v2.rs,program/tests/fv_quote_authority_lifetime_runtime.rs,formal/verification/goal_tr_quote_auth.rs. - Rotation changes only the authority fields and parses exactly, rejecting extra accounts, wrong lengths and an unauthenticated or read-only seat (rotation_changes_only_authority_fields, rotation_rejects_extra_accounts_and_wrong_payload_lengths, rotation_rejects_unauthenticated_spline_and_readonly_destination in spline_publication_v2.rs; parser_grammar_spline_rotate_offsets). Evidence:
program/tests/spline_publication_v2.rs,formal/verification/parser_grammar.rs.
- Only the seat maker (signer) can rotate, and only with the current authority epoch; the epoch then advances by exactly one, with overflow being atomic (rotation_requires_creator_signer, rotation_wrong_epoch_rejected, rotation_epoch_overflow_is_atomic in spline_publication_v2.rs; stale_authority_epoch_rejected_for_rotation_and_publication in fv_quote_authority_lifetime_runtime.rs). Evidence:
spline.attach Attach a spline#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is partial); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The maker can attach a seat with a chosen commitment, or a keeper can attach to an eligible native market under the maker's funded subscription. Both move quote collateral from the series vault into the market vault.
- Source:
program/src/processor/attach_seat.rs,program/src/processor/update_series_subscription.rs,program/src/processor/top_up_series_lamports.rs,program/src/logic/spline/series_crank.rs,program/src/processor/top_up_seat_commitment.rs - Routes:
AttachSeat(0x31),AttachSeatFromSeries(0x5D),UpdateSeriesSubscription(0x5E),TopUpSeriesLamports(0x5F),TopUpSeatCommitment(0x5C) - Events:
SeatAttached,SeriesSubscriptionUpdated,SeriesLamportsToppedUp,SeatCommitmentToppedUp,EconomicDeltaApplied - CLI commands:
spline seat attach,spline series attach-next,spline series update-subscription,spline series top-up-lamports,spline attach,spline attach-from-series,spline update-subscription,spline top-up-series-lamports,spline seat top-up,spline top-up-seat - Boundaries: callers series maker, permissionless keeper, series budget funder; signers maker, keeper, or funder wallet as required by the route; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/attach_seat.rs, program/src/processor/update_series_subscription.rs, program/src/processor/top_up_series_lamports.rs, program/src/processor/top_up_seat_commitment.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts, packages/core/src/seatInstructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/spline/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/processors/spline.ts | Lifecycle receipts are written by binaryEventProjection.ts:4021. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId}/spline-seats (apps/indexer/src/api/routes/marketSplineSeats.ts) reads attached seats over RPC (attachment, mid, quote window, available lots); it is owned by spline.fill and orderbook.market-tick and does not perform this operation. |
| Web | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| Android | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | partial | packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/core/examples/26-spline-lifecycle.ts, packages/core/examples/39-seat-maintenance.ts, packages/sdk-rust/examples/seat_maintenance.rs, packages/sdk-python/examples/seat_maintenance.py | The spline lifecycle samples build attachment, subscription and crank funding; the seat maintenance samples build TopUpSeatCommitment in TypeScript, Rust and Python. |
- Journeys, normal mode: none. Partial evidence:
spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepspline.crank-attach; no passed cell of a client of this capability in normal mode; partial evidence, does not count),spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.attach-and-publish; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-series-bootstrap-d6 subscribes, funds the crank and attaches through the crank; spline-no-competition-d6 attaches two makers. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepspline.crank-attach; no passed cell of a client of this capability in independent mode; partial evidence, does not count),spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.attach-and-publish; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-series-bootstrap-d6 subscribes, funds the crank and attaches through the crank; spline-no-competition-d6 attaches two makers. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- A maker attach needs the maker's signature and a matching series, config and live window; a crank attach reaches only enabled subscriptions on eligible native markets (attach_spline_rejects_authorization_abi_series_config_and_live_window_violations, attach_spline_rejects_duration_only_series_mismatch in spline_lifecycle.rs; subscribed_crank_requires_market_opt_in_and_first_seat_publication in spline_matching_integration.rs; spline_unsigned_owner_asset_routes_refuse_with_complete_account_frames). Evidence:
program/tests/spline_lifecycle.rs,program/tests/spline_matching_integration.rs,formal/verification/goal_tr_spline_owner_signature_prefix.rs,program/src/processor/attach_seat.rs. - Attach moves exactly the commitment from the series vault into the market vault, fails closed on any reserve deficit or physical supply above economic claims, and rolls back fully on late failure (attach_spline_uses_canonical_eight_accounts_and_commits_collateral in spline_lifecycle.rs; attach_accepts_exact_reserve_and_three_atom_surplus, attach_rejects_aggregate_only_deficit_without_moving_tokens_or_state, attach_rejects_physical_supply_above_economic_claims_even_with_extra_vault_quote, attach_partial_commitment_late_recorder_failure_rolls_back_every_account in litesvm_attach_spline_reserve_surface.rs). Evidence:
program/tests/spline_lifecycle.rs,program/tests/litesvm_attach_spline_reserve_surface.rs. - Attach sets up a fresh seat binding, starting from unbound or settled, and invalidates any earlier protected publication (spline_attach_actual_writer_establishes_binding_from_unbound_or_settled, spline_initial_writer_clears_all_previous_entitlement_and_preserves_suffix; attach_invalidates_publication in spline_lifecycle.rs; attach_invalidates_protected_detached_publication in fv_quote_authority_lifetime_runtime.rs). Evidence:
formal/verification/goal_tr_spline_attachment_binding.rs,formal/verification/goal_tr_spline_initialization_byte_bridge.rs,program/tests/fv_quote_authority_lifetime_runtime.rs,program/tests/spline_lifecycle.rs. - The crank reward is floor-rounded linear up to the cap and is paid from the series lamport budget together with seat rent and settle bounty, exactly (reward_rounds_down_then_stays_at_the_cap, wide_intermediate_is_bounded_even_at_maximum_cap in series_crank.rs unit tests; subscribed_crank_requires_market_opt_in_and_first_seat_publication lamport asserts in spline_matching_integration.rs). Evidence:
program/src/logic/spline/series_crank.rs,program/tests/spline_matching_integration.rs. - Subscription updates enforce the governed bounds (minimum commitment, rounded-up spacing, maximum attach age, reward ramp versus cap); TopUpSeatCommitment moves exactly the amount from the series vault to an attached seat of the same maker and series; TopUpSeriesLamports credits exactly the transferred lamports; uncovered; phase 15. Evidence:
program/src/processor/update_series_subscription.rs,program/src/processor/top_up_seat_commitment.rs,program/src/processor/top_up_series_lamports.rs.
- A maker attach needs the maker's signature and a matching series, config and live window; a crank attach reaches only enabled subscriptions on eligible native markets (attach_spline_rejects_authorization_abi_series_config_and_live_window_violations, attach_spline_rejects_duration_only_series_mismatch in spline_lifecycle.rs; subscribed_crank_requires_market_opt_in_and_first_seat_publication in spline_matching_integration.rs; spline_unsigned_owner_asset_routes_refuse_with_complete_account_frames). Evidence:
- Known limits:
- Permissionless attachment is limited to eligible native markets with a matching funded subscription.
- TopUpSeatCommitment is reached through the SDKs and the CLI only; neither app builds it.
spline.fill Spline fills#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
A YES or NO taker can fill against supplied, eligible spline seats as well as the book. Matching accounts for each seat's collateral, acquired inventory, and rebate and emits SplineFill.
- Source:
program/src/processor/place_order.rs,program/src/processor/place_order/accounting.rs,program/src/logic/place_order_processor/spline_integration.rs,program/src/logic/spline/snapshot.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E) - Events:
SplineFill - CLI commands:
order place - API routes:
GET /api/v1/markets/{marketId}/spline-seats - Boundaries: callers trader (taker); signers taker wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/placeOrder.ts, apps/indexer/src/indexer/appliedFillLedger.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/recorderReconciliationEnrichment.ts | |
| API | partial | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/marketSplineSeats.ts | The API serves current seat data and constructs orders. Dedicated spline execution coverage remains partial. |
| Web | yes | apps/web/lib/orderInstruction.ts, apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts | |
| Android | yes | apps/mobile/src/hooks/usePlaceOrder.ts, apps/mobile/src/screens/marketDetail/useMarketDetailSubmit.ts | |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/03-build-place-order-ix.ts, packages/core/examples/07-build-all-high-level-instructions.ts, packages/core/examples/09-advanced-order-management.ts, packages/core/examples/native-tutorial.ts |
- Journeys, normal mode: none. Partial evidence:
spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.fill-no; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-no-competition-d6 fills a taker against two spline seats. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.fill-no; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-no-competition-d6 fills a taker against two spline seats. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Spline fills conserve collateral and inventory per slot. Evidence:
program/tests/spline_matching_integration.rs.
- Spline fills conserve collateral and inventory per slot. Evidence:
- Known limits:
- Spline matching uses the authenticated seat accounts supplied with the order.
spline.settle Settle a spline#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Anyone can settle an eligible seat after market resolution. Settlement retires its internal outcome inventory and returns the remaining collateral and payout to its authenticated series vault.
- Source:
program/src/processor/settle_seat.rs,services/pyth-keeper/src/index.ts - Routes:
SettleSeat(0x32) - Events:
SeatSettled,EconomicDeltaApplied - CLI commands:
spline seat settle,spline settle,spline seat settle-and-close,spline settle-and-close - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/settle_seat.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/spline/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/processors/spline.ts | Lifecycle receipts are written by binaryEventProjection.ts:4021. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId}/spline-seats (apps/indexer/src/api/routes/marketSplineSeats.ts) reads attached seats over RPC (attachment, mid, quote window, available lots); it is owned by spline.fill and orderbook.market-tick and does not perform this operation. |
| Web | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| Android | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | yes | packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/core/examples/26-spline-lifecycle.ts |
- Journeys, normal mode: none. Partial evidence:
spline-seat-recovery(sdk-typescript: 5 of 6 action steps return a client value; cli: 5 of 6 action steps return a client value; stepspline.settle-and-close-seat; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The SDK journey uses the keeper's settlement plan. Runtime execution is deferred. spline-seat-recovery now also runs from the CLI through spline seat settle-and-close. - Journeys, independent mode: none. Partial evidence:
spline-seat-recovery(sdk-typescript: 5 of 6 action steps return a client value; cli: 5 of 6 action steps return a client value; stepspline.settle-and-close-seat; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The SDK journey uses the keeper's settlement plan. Runtime execution is deferred. spline-seat-recovery now also runs from the CLI through spline seat settle-and-close. - Formal obligations:
- Settlement is refused until the market is resolved and is idempotent: a retry moves no value and records no event (settle_spline_rejects_before_market_resolution, settle_spline_is_exact_dual_rate_and_idempotent, settle_spline_recorder_emits_once_and_idempotent_retry_is_silent in spline_lifecycle.rs; spline_finish replay check in random_public_histories_preserve_conservation_and_roll_back_late_failures in conservation_route_induction.rs). Evidence:
program/tests/spline_lifecycle.rs,program/tests/conservation_route_induction.rs,program/src/processor/settle_seat.rs. - Payout and remaining collateral go only to the seat's authenticated series vault with the correct mint, atomically (detached_settle_spline_replay_authenticates_series_vault_and_terminal_reserve, settle_spline_rejects_wrong_vault_mint_atomically, detached_external_settle_spline_replay_authenticates_market_meta in spline_lifecycle.rs). Evidence:
program/tests/spline_lifecycle.rs. - The settlement plan equals the actual writer over the full market frame, retires internal inventory, and leaves the seat with identity but no live economics (spline_settlement_successful_native_plan_matches_actual_writer_full_market_frame, spline_settlement_successful_exact_plan_matches_actual_writer_full_market_frame, spline_exit_settled_writer_retains_identity_but_has_no_live_economics, spline_exact_extraction_preserves_remaining_complete_reserve). Evidence:
formal/verification/goal_tr_spline_settlement_composition.rs,formal/verification/goal_tr_spline_exact_settlement_composition.rs,formal/verification/goal_tr_spline_exit_linkage.rs,formal/verification/goal_tr_spline_settlement_reserve.rs. - Settlement keeps the market solvent for the remaining holders at the exact graded liability, never touches another market, and floors each graded leg (external_settle_spline_returns_commitment_at_exact_graded_liability, external_settle_spline_rejects_one_atom_under_the_graded_liability, external_settle_spline_floors_each_graded_leg_independently in spline_lifecycle.rs; native_spline_exits_never_touch_another_market_pair in fv_spline_exit_isolation_runtime.rs; settle_rejects_post_delta_physical_supply_without_economic_claim_atomically in litesvm_attach_spline_reserve_surface.rs). Evidence:
program/tests/spline_lifecycle.rs,program/tests/fv_spline_exit_isolation_runtime.rs,program/tests/litesvm_attach_spline_reserve_surface.rs. - The keeper settles only attached seats on resolved, canonical markets and drops a seat whose canonical seat or series PDA does not match ('finds dormant seats to settle and settled seats to close without reading the market' in scanner.test.ts covers the scan only; the index.ts canonical-match guard is uncovered); uncovered; phase 15. Evidence:
services/pyth-keeper/src/index.ts,services/pyth-keeper/tests/scanner.test.ts.
- Settlement is refused until the market is resolved and is idempotent: a retry moves no value and records no event (settle_spline_rejects_before_market_resolution, settle_spline_is_exact_dual_rate_and_idempotent, settle_spline_recorder_emits_once_and_idempotent_retry_is_silent in spline_lifecycle.rs; spline_finish replay check in random_public_histories_preserve_conservation_and_roll_back_late_failures in conservation_route_induction.rs). Evidence:
spline.recover Recover a spline#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The maker can recover an eligible unresolved seat. Its remaining backing returns to the series vault and its internal YES and NO inventory is materialized into the maker's outcome token accounts.
- Source:
program/src/processor/recover_seat.rs - Routes:
RecoverSeat(0x33) - Events:
SeatRecovered,EconomicDeltaApplied - CLI commands:
spline seat recover,spline recover - Boundaries: callers creator (spline maker); signers creator wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/recover_seat.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/spline/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/processors/spline.ts | Lifecycle receipts are written by binaryEventProjection.ts:4021. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId}/spline-seats (apps/indexer/src/api/routes/marketSplineSeats.ts) reads attached seats over RPC (attachment, mid, quote window, available lots); it is owned by spline.fill and orderbook.market-tick and does not perform this operation. |
| Web | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| Android | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | yes | packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/core/examples/26-spline-lifecycle.ts |
- Journeys, normal mode: none. Partial evidence:
spline-seat-maintenance(cli: 8 of 8 action steps return a client value; sdk-typescript: 8 of 8 action steps return a client value; stepspline.recover-seat; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-seat-maintenance (CLI and TypeScript SDK) recovers an untraded seat on an unresolved market. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
spline-seat-maintenance(cli: 8 of 8 action steps return a client value; sdk-typescript: 8 of 8 action steps return a client value; stepspline.recover-seat; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-seat-maintenance (CLI and TypeScript SDK) recovers an untraded seat on an unresolved market. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Only the seat maker can recover, and only an attached seat on an unresolved market whose creator, feed, duration and market id match exactly (spline_exit_recover_full_scalar_guard_and_plan_contract, spline_exit_recover_requires_exact_creator_feed_duration_market_id, spline_unsigned_owner_asset_routes_refuse_with_complete_account_frames). Evidence:
formal/verification/goal_tr_spline_exit_linkage.rs,formal/verification/goal_tr_spline_owner_signature_prefix.rs,program/src/processor/recover_seat.rs. - Recovery returns the remaining backing to the series vault and turns internal YES and NO inventory into the maker's outcome token accounts without changing market totals (recover_spline_runtime_returns_unresolved_commitment_and_records_the_transition, recover_spline_materializes_no_only_yes_only_and_both_inventory, recover_spline_materializes_compiled_fill_inventory_without_changing_market_totals in spline_lifecycle.rs). Evidence:
program/tests/spline_lifecycle.rs. - Recovery fails closed and atomically on hostile or frozen destinations, canonical-only deficits, a commitment above the market mirror, or a failing second mint (recover_spline_rejects_malformed_destination_before_any_inventory_or_collateral_mutation, recover_spline_rejects_hostile_destinations_and_malformed_recorder_tail_without_mutation, recover_spline_rejects_canonical_only_deficit_without_mutating_accounts, recover_spline_rolls_back_when_the_second_mint_fails_inside_token_batch in spline_lifecycle.rs). Evidence:
program/tests/spline_lifecycle.rs. - Recovery cannot be replayed, retires only the commitment, and an old signed publication is rejected for the recovered seat incarnation (spline_exit_actual_recovery_writers_disable_replay_and_retire_only_commitment; spline_recovered_incarnation_rejects_old_signed_publication_before_clock_and_without_writes; recover_spline_replay_is_rejected_after_yes_only_recovery_without_mutation in spline_lifecycle.rs). Evidence:
formal/verification/goal_tr_spline_exit_linkage.rs,formal/verification/goal_tr_spline_recovery_publication_handoff.rs,program/tests/spline_lifecycle.rs.
- Only the seat maker can recover, and only an attached seat on an unresolved market whose creator, feed, duration and market id match exactly (spline_exit_recover_full_scalar_guard_and_plan_contract, spline_exit_recover_requires_exact_creator_feed_duration_market_id, spline_unsigned_owner_asset_routes_refuse_with_complete_account_frames). Evidence:
spline.vault-deposit Spline vault deposit#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The maker deposits settlement tokens from its token account into the series vault.
- Source:
program/src/processor/series_vault.rs - Routes:
DepositSeriesVault(0x34) - Events:
SeriesVaultDeposited - CLI commands:
spline series deposit-vault,spline deposit-vault - Boundaries: callers creator (spline maker); signers creator wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/series_vault.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/spline/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/processors/spline.ts | Lifecycle receipts are written by binaryEventProjection.ts:4021. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId}/spline-seats (apps/indexer/src/api/routes/marketSplineSeats.ts) reads attached seats over RPC (attachment, mid, quote window, available lots); it is owned by spline.fill and orderbook.market-tick and does not perform this operation. |
| Web | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| Android | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | yes | packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/core/examples/26-spline-lifecycle.ts |
- Journeys, normal mode: none. Partial evidence:
spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepspline.deposit-series-vault; no passed cell of a client of this capability in normal mode; partial evidence, does not count),spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.deposit-series-vault; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-series-bootstrap-d6 and spline-no-competition-d6 fund series vaults. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepspline.deposit-series-vault; no passed cell of a client of this capability in independent mode; partial evidence, does not count),spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.deposit-series-vault; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-series-bootstrap-d6 and spline-no-competition-d6 fund series vaults. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Only the series maker (signer) can deposit, and deposits are refused while the protocol is paused (deposit_spline_vault_signer_boundary_non_maker_rejected_maker_accepted, deposit_spline_vault_pause_boundary_paused_rejected_unpaused_accepted_withdraw_unaffected in spline_vault_instruction_behavior.rs; spline_vault_deposit_withdraw_and_authorization_are_enforced in spline_lifecycle.rs). Evidence:
program/tests/spline_vault_instruction_behavior.rs,program/tests/spline_lifecycle.rs,program/src/processor/series_vault.rs. - A deposit moves exactly the requested amount from the maker's token account into the canonical series vault, bounded by the wallet balance, and records one event (deposit_spline_vault_moves_exact_amount_into_vault_and_records_one_event, deposit_spline_vault_wallet_balance_boundary_one_above_rejected_max_minus_one_and_max_accepted in spline_vault_instruction_behavior.rs). Evidence:
program/tests/spline_vault_instruction_behavior.rs. - The amount argument parses as an exact u64 (parser_grammar_spline_vault_amount_u64; attach_and_vault_amounts_preserve_full_width_values_and_distinct_tail_rules in fv_tr_spline_exit_sdk_bridge.rs). Evidence:
formal/verification/parser_grammar.rs,program/tests/fv_tr_spline_exit_sdk_bridge.rs.
- Only the series maker (signer) can deposit, and deposits are refused while the protocol is paused (deposit_spline_vault_signer_boundary_non_maker_rejected_maker_accepted, deposit_spline_vault_pause_boundary_paused_rejected_unpaused_accepted_withdraw_unaffected in spline_vault_instruction_behavior.rs; spline_vault_deposit_withdraw_and_authorization_are_enforced in spline_lifecycle.rs). Evidence:
spline.vault-withdraw Spline vault withdrawal#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The maker withdraws available settlement tokens from the series vault to its token account.
- Source:
program/src/processor/series_vault.rs - Routes:
WithdrawSeriesVault(0x35) - Events:
SeriesVaultWithdrawn - CLI commands:
spline series withdraw-vault,spline withdraw-vault - Boundaries: callers creator (spline maker); signers creator wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/series_vault.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/spline/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/processors/spline.ts | Lifecycle receipts are written by binaryEventProjection.ts:4021. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId}/spline-seats (apps/indexer/src/api/routes/marketSplineSeats.ts) reads attached seats over RPC (attachment, mid, quote window, available lots); it is owned by spline.fill and orderbook.market-tick and does not perform this operation. |
| Web | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| Android | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | yes | packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/core/examples/26-spline-lifecycle.ts |
- Journeys, normal mode: none. Partial evidence:
spline-seat-maintenance(cli: 8 of 8 action steps return a client value; sdk-typescript: 8 of 8 action steps return a client value; stepspline.withdraw-series-vault; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-seat-maintenance (CLI and TypeScript SDK) withdraws the idle series quote. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
spline-seat-maintenance(cli: 8 of 8 action steps return a client value; sdk-typescript: 8 of 8 action steps return a client value; stepspline.withdraw-series-vault; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-seat-maintenance (CLI and TypeScript SDK) withdraws the idle series quote. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Only the series maker (signer) can withdraw, and an unsigned caller is refused before any effect (spline_unsigned_owner_asset_routes_refuse_with_complete_account_frames; spline_vault_deposit_withdraw_and_authorization_are_enforced in spline_lifecycle.rs). Evidence:
formal/verification/goal_tr_spline_owner_signature_prefix.rs,program/tests/spline_lifecycle.rs,program/src/processor/series_vault.rs. - A withdrawal moves exactly the requested amount from the series vault to the maker, never more than the vault balance, and records one event (withdraw_spline_vault_vault_balance_boundary_one_above_rejected_max_minus_one_and_max_accepted, withdraw_spline_vault_returns_exact_amount_to_maker_and_records_one_event in spline_vault_instruction_behavior.rs). Evidence:
program/tests/spline_vault_instruction_behavior.rs. - Withdrawal reaches only idle series-vault funds, never collateral committed to attached seats, and stays available while paused (paused_attached_spline_withdraws_only_idle_spline_vault_surplus, paused_attached_spline_withdraws_only_idle_spline_vault_surplus_plus_three in spline_lifecycle.rs; parser_grammar_spline_vault_amount_u64). Evidence:
program/tests/spline_lifecycle.rs,formal/verification/parser_grammar.rs.
- Only the series maker (signer) can withdraw, and an unsigned caller is refused before any effect (spline_unsigned_owner_asset_routes_refuse_with_complete_account_frames; spline_vault_deposit_withdraw_and_authorization_are_enforced in spline_lifecycle.rs). Evidence:
spline.close Close a spline#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Closing an eligible detached seat returns its account rent to the series. The maker can close a series after its seat and vault obligations are clear, recovering the remaining lamports.
- Source:
program/src/processor/close_seat.rs,program/src/processor/close_spline_series.rs - Routes:
CloseSeat(0x62),CloseSplineSeries(0x36) - Events:
SeatClosed,SplineSeriesClosed - CLI commands:
spline series close,spline seat close,spline close,spline close-seat - Boundaries: callers series maker, permissionless closer of a settled seat; signers maker or closer wallet as required by the route; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/close_seat.rs, program/src/processor/close_spline_series.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts, packages/core/src/seatInstructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/spline/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/processors/spline.ts | Lifecycle receipts are written by binaryEventProjection.ts:4021. |
| API | no | none | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId}/spline-seats (apps/indexer/src/api/routes/marketSplineSeats.ts) reads attached seats over RPC (attachment, mid, quote window, available lots); it is owned by spline.fill and orderbook.market-tick and does not perform this operation. |
| Web | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| Android | not-applicable | none | Spline flows are exempt from the apps by the parity policy (APP_EXEMPT_SPLINE in feature-support-matrix.test.ts); no app call site exists. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | yes | packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/core/examples/26-spline-lifecycle.ts |
- Journeys, normal mode: none. Partial evidence:
spline-seat-recovery(sdk-typescript: 5 of 6 action steps return a client value; cli: 5 of 6 action steps return a client value; stepspline.settle-and-close-seat; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-seat-recovery settles and closes the seat after expiry. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. spline-seat-recovery now also runs from the CLI through spline seat settle-and-close. - Journeys, independent mode: none. Partial evidence:
spline-seat-recovery(sdk-typescript: 5 of 6 action steps return a client value; cli: 5 of 6 action steps return a client value; stepspline.settle-and-close-seat; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-seat-recovery settles and closes the seat after expiry. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. spline-seat-recovery now also runs from the CLI through spline seat settle-and-close. - Formal obligations:
- A series closes only after every seat is detached and the vault is empty, with all lamports returned to the maker, and malformed detached state is refused (close_spline_requires_detached_empty_vault_and_returns_all_lamports_to_maker, close_spline_returns_three_lamport_vault_surplus_to_maker, close_spline_rejects_detached_marker_with_orphaned_economic_state in spline_lifecycle.rs; authorized_spline_close_prefund_and_initialize_again in authorized_spline_lifecycle.rs). Evidence:
program/tests/spline_lifecycle.rs,program/tests/authorized_spline_lifecycle.rs,program/src/processor/close_spline_series.rs. - An unsigned caller cannot close a series (spline_unsigned_owner_asset_routes_refuse_with_complete_account_frames), and the seat and series close routes conserve quote and lamports in public histories (spline_finish in random_public_histories_preserve_conservation_and_roll_back_late_failures in conservation_route_induction.rs). Evidence:
formal/verification/goal_tr_spline_owner_signature_prefix.rs,program/tests/conservation_route_induction.rs. - CloseSeat refuses an attached seat, requires the maker unless the seat is settled, requires the seat's own series with the same maker, and returns all seat rent to that series; uncovered; phase 15. Evidence:
program/src/processor/close_seat.rs.
- A series closes only after every seat is detached and the vault is empty, with all lamports returned to the maker, and malformed detached state is refused (close_spline_requires_detached_empty_vault_and_returns_all_lamports_to_maker, close_spline_returns_three_lamport_vault_surplus_to_maker, close_spline_rejects_detached_marker_with_orphaned_economic_state in spline_lifecycle.rs; authorized_spline_close_prefund_and_initialize_again in authorized_spline_lifecycle.rs). Evidence:
mirror.prepare-and-open Signed-source preparation and opening#
- Status: implemented. Last verified at
72694fd7511983fef6008ede122d1b193cec01b0. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is partial); 6 met; 7 missing (indexer is partial; api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
BeginSourceMarket funds a draft and binds its canonical definition. The apps can build a package locally from the selected profile and source identifiers. OpenSourceMarket verifies the opening witness result and consumes the draft.
- Source:
program/src/processor/source_market/begin.rs,program/src/processor/source_market/open.rs,program/src/events/source_result.rs - Routes:
BeginSourceMarket(0x37),OpenSourceMarket(0x38) - Events:
SourceMarketPrepared,SourceMarketOpened,SourceResultAccepted,SourceMarketOpeningSnapshot,ExternalMarketPreallocationBegun,ExternalMarketPreallocationConsumed,ExternalMarketOpened - Error categories:
External and native markets - CLI commands:
source definition,source begin,source allocate,source open - API routes:
GET /api/v1/external-markets/{marketAddress} - Web routes:
/[locale]/markets/source - Android screens:
SubmitExternalMarket - Boundaries: callers A funded creator submits the opening result from the admitted witnesses.; signers submitting wallet; services Solana RPC, Admitted source witnesses.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/source_market/begin.rs, program/src/processor/source_market/open.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts, packages/core/src/sourceResult/client.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/source.ts | |
| Indexer | partial | apps/indexer/src/indexer/sourceMarketProjection.ts, apps/indexer/src/indexer/sourceResultEvidence.ts | The indexer projects the opened market and announces it with the market_created lifecycle broadcast. The draft is read directly from chain accounts. ExternalMarketPreallocationBegun and ExternalMarketPreallocationConsumed are archived with the other recorder events and are not projected: no indexer read route, API contract or web or Android source view reads them. |
| API | partial | apps/indexer/src/api/routes/signedSourceMarkets.ts | The signed-source detail response exposes close time and market state. The transaction is built from the SDK. |
| Web | yes | apps/web/app/[locale]/markets/source/SourceMarketForm.tsx, apps/shared/sourceDefinitionForm.ts, apps/shared/sourceMarketActions.ts | |
| Android | yes | apps/mobile/src/screens/SubmitExternalMarketScreen.tsx, apps/shared/sourceDefinitionForm.ts, apps/shared/sourceMarketActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | partial | packages/sdk-python/examples/source_result.py, packages/sdk-rust/examples/mirror_creation.rs, packages/sdk-python/examples/mirror_creation.py, packages/sdk-rust/examples/source_result.rs | The Rust and Python examples build unsigned instructions offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Partial evidence:
source-control-draft-recovery(cli: 6 of 6 action steps return a client value; stepsource.begin; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Journey source-control-draft-recovery prepares a draft with the CLI; opening needs a witness-signed result. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result. Journey runs are deferred, so qa/e2e/journeys/matrix.json has no passed cell for it. The standalone signed-source localnet gate (scripts/e2e/source-keeper-localnet.sh) covers this operation outside the journey matrix. - Journeys, independent mode: none. Partial evidence:
source-control-draft-recovery(cli: 6 of 6 action steps return a client value; stepsource.begin; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Journey source-control-draft-recovery runs in independent mode with the CLI; Journey runs are deferred, so qa/e2e/journeys/matrix.json has no passed cell for it. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result. - Formal obligations:
- Begin and open payload frames parse exactly or fail with the mapped error, and only two or three witness items are accepted (frame.rs unit tests). Evidence:
program/src/processor/source_market/frame.rs. - Opening verification accepts only a result signed for this deployment, market and submitter accounts (verify.rs unit tests). Evidence:
program/src/processor/source_market/verify.rs. - The signed statement digest changes with every statement field and excludes the witness count and items (statement.rs unit tests). Evidence:
program/src/processor/source_market/statement.rs. - SourceState initializes a draft and preserves its definition package across observation updates (source_state.rs unit tests). Evidence:
program/src/state/source_state.rs.
- Begin and open payload frames parse exactly or fail with the mapped error, and only two or three witness items are accepted (frame.rs unit tests). Evidence:
- Known limits:
- Genuine source and Nitro qualification remain external signoffs. The disposable fixtures use the test witness registry.
- Distribution and runtime validation remain deferred.
- The localnet fixture is implemented in scripts/e2e/source-keeper-localnet.sh.
mirror.resolve Signed-source resolution observation#
- Status: implemented. Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is partial); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ResolveSourceMarket accepts an authenticated terminal observation and records the candidate, its review deadline, and any conflict. FinalizeSourceMarket commits the reviewed payout.
- Source:
program/src/processor/source_market/resolve.rs,program/src/processor/source_market/reducer.rs,program/src/events/source_result.rs - Routes:
ResolveSourceMarket(0x3E) - Events:
SourceResultAccepted,SourceObservationAccepted,SourceConflictDetected - Error categories:
Source markets and signed results - CLI commands:
source resolve - API routes:
GET /api/v1/external-markets/{marketAddress} - Web routes:
/[locale]/markets/source - Android screens:
SubmitExternalMarket - Boundaries: callers The wallet must hold a resolution payload bound to this deployment, market, and submitter.; signers submitting wallet; services Solana RPC, Admitted source witnesses.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/source_market/resolve.rs, program/src/processor/source_market/reducer.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts, packages/core/src/sourceResult/client.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/source.ts | |
| Indexer | yes | apps/indexer/src/indexer/sourceMarketProjection.ts, apps/indexer/src/indexer/sourceResultEvidence.ts | The indexer projects the SourceObservationAccepted recorder event of the accepted result (sourceMarketProjection.ts:350). A resolution that halts trading for review is also announced with one market_halted broadcast after commit (sourceMarketProjection.ts:341). The instruction itself has no parser case. |
| API | partial | apps/indexer/src/api/routes/signedSourceMarkets.ts | The signed-source detail response exposes close time and market state. The transaction is built from the SDK. |
| Web | yes | apps/web/app/[locale]/markets/source/SourceMarketForm.tsx, apps/shared/sourceMarketActions.ts | |
| Android | yes | apps/mobile/src/screens/SubmitExternalMarketScreen.tsx, apps/shared/sourceMarketActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | partial | packages/sdk-python/examples/source_result.py, packages/sdk-rust/examples/source_result.rs | The Rust and Python examples build unsigned instructions from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result. The standalone signed-source localnet gate (scripts/e2e/source-keeper-localnet.sh) covers this operation outside the journey matrix.
- Journeys, independent mode: none. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result.
- Formal obligations:
- Resolve verification accepts two-of-three and three-of-three witness results and rejects a result signed for other accounts (verify.rs unit tests). Evidence:
program/src/processor/source_market/verify.rs. - The signed statement digest binds every statement field (statement.rs unit tests). Evidence:
program/src/processor/source_market/statement.rs.
- Resolve verification accepts two-of-three and three-of-three witness results and rejects a result signed for other accounts (verify.rs unit tests). Evidence:
- Known limits:
- Genuine source and Nitro qualification remain external signoffs. The disposable fixtures use the test witness registry.
- Distribution and runtime validation remain deferred.
- The localnet fixture is implemented in scripts/e2e/source-keeper-localnet.sh.
mirror.halt Signed-source halt#
- Status: implemented. Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is partial); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
HaltSourceMarket checks an admitted halt observation, stops trading, and updates the source market review state.
- Source:
program/src/processor/source_market/halt.rs,program/src/processor/source_market/reducer.rs,program/src/events/source_result.rs - Routes:
HaltSourceMarket(0x3F) - Events:
SourceResultAccepted,SourceObservationAccepted,SourceConflictDetected - CLI commands:
source halt - API routes:
GET /api/v1/external-markets/{marketAddress} - Web routes:
/[locale]/markets/source - Android screens:
SubmitExternalMarket - Boundaries: callers The wallet must hold a halt payload bound to this deployment, market, and submitter.; signers submitting wallet; services Solana RPC, Admitted source witnesses.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/source_market/halt.rs, program/src/processor/source_market/reducer.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts, packages/core/src/sourceResult/client.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/source.ts | |
| Indexer | yes | apps/indexer/src/indexer/sourceMarketProjection.ts, apps/indexer/src/indexer/sourceResultEvidence.ts | The indexer projects the SourceObservationAccepted recorder event of the halt (sourceMarketProjection.ts:350). After commit it sends one market_halted broadcast per transition from trading to halted (sourceMarketProjection.ts:341); a replay or a halt of a halted market sends none. The instruction itself has no parser case. |
| API | partial | apps/indexer/src/api/routes/signedSourceMarkets.ts | The signed-source detail response exposes close time and market state. The transaction is built from the SDK. |
| Web | yes | apps/web/app/[locale]/markets/source/SourceMarketForm.tsx, apps/shared/sourceMarketActions.ts | |
| Android | yes | apps/mobile/src/screens/SubmitExternalMarketScreen.tsx, apps/shared/sourceMarketActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | partial | packages/sdk-python/examples/source_result.py, packages/sdk-rust/examples/source_result.rs | The Rust and Python examples build unsigned instructions offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Journey source-market-halt-timeout (qa/e2e/journeys/definitions/source-market-halt-timeout.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result. The localnet gate checks that a finalized resolve halts trading.
- Journeys, independent mode: none. Journey source-market-halt-timeout (qa/e2e/journeys/definitions/source-market-halt-timeout.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result.
- Formal obligations:
- Lifecycle verification, halt included, accepts each operation's admitted witness result and rejects results signed for other accounts (verify.rs unit tests). Evidence:
program/src/processor/source_market/verify.rs.
- Lifecycle verification, halt included, accepts each operation's admitted witness result and rejects results signed for other accounts (verify.rs unit tests). Evidence:
- Known limits:
- Genuine source and Nitro qualification remain external signoffs. The disposable fixtures use the test witness registry.
- Distribution and runtime validation remain deferred.
mirror.extend-close Signed-source close update#
- Status: implemented. Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is partial); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
UpdateSourceClose checks a source observation and applies the permitted close-time update under the profile policy.
- Source:
program/src/processor/source_market/update_close.rs,program/src/processor/source_market/reducer.rs,program/src/events/source_result.rs - Routes:
UpdateSourceClose(0x40) - Events:
SourceResultAccepted,SourceObservationAccepted - CLI commands:
source update-close - API routes:
GET /api/v1/external-markets/{marketAddress} - Web routes:
/[locale]/markets/source - Android screens:
SubmitExternalMarket - Boundaries: callers The wallet must hold a close-update payload bound to this deployment, market, and submitter.; signers submitting wallet; services Solana RPC, Admitted source witnesses.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/source_market/update_close.rs, program/src/processor/source_market/reducer.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts, packages/core/src/sourceResult/client.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/source.ts | |
| Indexer | yes | apps/indexer/src/indexer/sourceMarketProjection.ts, apps/indexer/src/indexer/sourceResultEvidence.ts | The indexer projects the SourceObservationAccepted recorder event of the close-time update (sourceMarketProjection.ts:350); the instruction itself has no parser case. |
| API | partial | apps/indexer/src/api/routes/signedSourceMarkets.ts | The signed-source detail response exposes close time and market state. The transaction is built from the SDK. |
| Web | yes | apps/web/app/[locale]/markets/source/SourceMarketForm.tsx, apps/shared/sourceMarketActions.ts | |
| Android | yes | apps/mobile/src/screens/SubmitExternalMarketScreen.tsx, apps/shared/sourceMarketActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | partial | packages/sdk-python/examples/source_result.py, packages/sdk-rust/examples/source_result.rs | The Rust and Python examples build unsigned instructions offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result. No other harness lands UpdateSourceClose.
- Journeys, independent mode: none. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result.
- Formal obligations:
- Lifecycle verification, close update included, accepts each operation's admitted witness result (verify.rs unit tests). Evidence:
program/src/processor/source_market/verify.rs. - An observation update preserves the stored definition package (source_state.rs unit tests). Evidence:
program/src/state/source_state.rs.
- Lifecycle verification, close update included, accepts each operation's admitted witness result (verify.rs unit tests). Evidence:
- Known limits:
- Genuine source and Nitro qualification remain external signoffs. The disposable fixtures use the test witness registry.
- Distribution and runtime validation remain deferred.
mirror.finalize Signed-source finalization#
- Status: implemented. Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is partial); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
FinalizeSourceMarket is permissionless once the recorded source observation finishes its review window. It commits the exact terminal payout and its provenance.
- Source:
program/src/processor/source_market/finalize.rs,program/src/processor/source_market/reducer.rs,program/src/events/source_result.rs - Routes:
FinalizeSourceMarket(0x41) - Events:
SourceMarketFinalized - CLI commands:
source finalize - API routes:
GET /api/v1/external-markets/{marketAddress} - Web routes:
/[locale]/markets/source - Android screens:
SubmitExternalMarket - Boundaries: callers A caller funds finalization after the applicable review gate.; signers submitting wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/source_market/finalize.rs, program/src/processor/source_market/reducer.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts, packages/core/src/sourceResult/client.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/source.ts | |
| Indexer | yes | apps/indexer/src/indexer/sourceMarketProjection.ts | The indexer projects the SourceMarketFinalized recorder event (sourceMarketProjection.ts:360). The same transaction queues the market_resolved and claim_available holder notifications, and the commit is followed by the market_resolved broadcast, once per projected transition. The instruction itself has no parser case. |
| API | partial | apps/indexer/src/api/routes/signedSourceMarkets.ts | The signed-source detail response exposes close time and market state. The transaction is built from the SDK. |
| Web | yes | apps/web/app/[locale]/markets/source/SourceMarketForm.tsx, apps/shared/sourceMarketActions.ts | |
| Android | yes | apps/mobile/src/screens/SubmitExternalMarketScreen.tsx, apps/shared/sourceMarketActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | partial | packages/sdk-python/examples/source_result.py, packages/sdk-rust/examples/external_lifecycle.rs, packages/sdk-python/examples/external_lifecycle.py | The Rust and Python examples build unsigned instructions offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result. The standalone signed-source localnet gate (scripts/e2e/source-keeper-localnet.sh) covers this operation outside the journey matrix.
- Journeys, independent mode: none. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result.
- Formal obligations:
- Scalar terminal payouts committed for an external market keep fee and claim solvency (scalar_terminal_fee_solvency.rs). Evidence:
program/tests/scalar_terminal_fee_solvency.rs.
- Scalar terminal payouts committed for an external market keep fee and claim solvency (scalar_terminal_fee_solvency.rs). Evidence:
- Known limits:
- Genuine source and Nitro qualification remain external signoffs. The disposable fixtures use the test witness registry.
- Distribution and runtime validation remain deferred.
- The localnet fixture is implemented in scripts/e2e/source-keeper-localnet.sh.
mirror.expire Signed-source timeout#
- Status: implemented. Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ExpireExternalMarket lets a caller commit the source market timeout payout when the protocol clock satisfies the market deadline and timeout conditions.
- Source:
program/src/processor/source_market/reducer.rs,program/src/events/source_result.rs - Routes:
ExpireExternalMarket(0x39) - Events:
SourceMarketExpired - CLI commands:
source expire - API routes:
GET /api/v1/external-markets/{marketAddress} - Web routes:
/[locale]/markets/source - Android screens:
SubmitExternalMarket - Boundaries: callers A caller funds expiration when the on-chain timeout gate permits it.; signers submitting wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/source_market/reducer.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts, packages/core/src/sourceResult/client.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/source.ts | |
| Indexer | yes | apps/indexer/src/indexer/sourceMarketProjection.ts | The indexer projects the SourceMarketExpired recorder event (sourceMarketProjection.ts:361). The same transaction queues the market_resolved and claim_available holder notifications, and the commit is followed by the market_expired broadcast, once per projected transition. The subscriber journals the instruction itself. |
| API | partial | apps/indexer/src/api/routes/signedSourceMarkets.ts | The signed-source detail response exposes close time and market state. The transaction is built from the SDK. |
| Web | yes | apps/web/app/[locale]/markets/source/SourceMarketForm.tsx, apps/shared/sourceMarketActions.ts | |
| Android | yes | apps/mobile/src/screens/SubmitExternalMarketScreen.tsx, apps/shared/sourceMarketActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/external_lifecycle.rs, packages/sdk-python/examples/external_lifecycle.py | The SDK examples build unsigned instructions offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Journey source-market-halt-timeout (qa/e2e/journeys/definitions/source-market-halt-timeout.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result. The standalone signed-source localnet gate (scripts/e2e/source-keeper-localnet.sh) covers this operation outside the journey matrix.
- Journeys, independent mode: none. Journey source-market-halt-timeout (qa/e2e/journeys/definitions/source-market-halt-timeout.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result.
- Formal obligations:
- Lifecycle field edges and account close edges, expiry included, are reachable only through the public recovery recipes (fv_sys02_lifecycle_writer_census.rs, bounded census). Evidence:
program/tests/fv_sys02_lifecycle_writer_census.rs.
- Lifecycle field edges and account close edges, expiry included, are reachable only through the public recovery recipes (fv_sys02_lifecycle_writer_census.rs, bounded census). Evidence:
- Known limits:
- Genuine source and Nitro qualification remain external signoffs. The disposable fixtures use the test witness registry.
- Distribution and runtime validation remain deferred.
mirror.cleanup Signed-source account closure#
- Status: implemented. Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
CloseSourceAccounts closes an eligible terminal market and its source state. Draft recovery uses the separate ReclaimExternalMarketPreallocation route.
- Source:
program/src/processor/source_market/close.rs,program/src/events/source_result.rs - Routes:
CloseSourceAccounts(0x42) - Events:
MarketClosed,SourceAccountsClosed - CLI commands:
source close - API routes:
GET /api/v1/external-markets/{marketAddress} - Web routes:
/[locale]/markets/source - Android screens:
SubmitExternalMarket - Boundaries: callers A caller funds terminal closure. Residual quote goes to the creator-controlled recipient.; signers submitting wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/source_market/close.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts, packages/core/src/sourceResult/client.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/source.ts | |
| Indexer | yes | apps/indexer/src/indexer/sourceMarketProjection.ts | The indexer projects the SourceAccountsClosed recorder event (sourceMarketProjection.ts:404) and then sends the market_closed broadcast; the instruction itself has no parser case. |
| API | partial | apps/indexer/src/api/routes/signedSourceMarkets.ts | The signed-source detail response exposes close time and market state. The transaction is built from the SDK. |
| Web | yes | apps/web/app/[locale]/markets/source/SourceMarketForm.tsx, apps/shared/sourceMarketActions.ts | |
| Android | yes | apps/mobile/src/screens/SubmitExternalMarketScreen.tsx, apps/shared/sourceMarketActions.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/source_cleanup.rs, packages/sdk-python/examples/source_cleanup.py | The SDK examples build unsigned instructions offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result. The standalone signed-source localnet gate (scripts/e2e/source-keeper-localnet.sh) covers this operation outside the journey matrix.
- Journeys, independent mode: none. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result.
- Formal obligations:
- Runtime closure cannot revive a closed account or pay twice (adversarial_lifecycle.rs SBF matrix). Evidence:
program/tests/adversarial_lifecycle.rs.
- Runtime closure cannot revive a closed account or pay twice (adversarial_lifecycle.rs SBF matrix). Evidence:
- Known limits:
- Genuine source and Nitro qualification remain external signoffs. The disposable fixtures use the test witness registry.
- Distribution and runtime validation remain deferred.
- The localnet fixture is implemented in scripts/e2e/source-keeper-localnet.sh.
mirror.preallocation-reclaim Abandoned signed-source draft recovery#
- Status: implemented. Last verified at
72694fd7511983fef6008ede122d1b193cec01b0. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
ReclaimExternalMarketPreallocation closes a prepared signed-source draft and its funded child accounts. Before the draft deadline the creator authorizes recovery. Once the window elapses any payer can return recoverable rent to the creator.
- Source:
program/src/processor/external_preallocation.rs,program/src/processor/source_market/close.rs - Routes:
ReclaimExternalMarketPreallocation(0x3B) - Events:
SourceAccountsClosed,ExternalMarketPreallocationReclaimed - CLI commands:
source reclaim-draft - Web routes:
/[locale]/markets/source - Android screens:
SubmitExternalMarket - Boundaries: callers creator or permissionless caller as allowed by the route; signers caller wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/external_preallocation.rs, program/src/processor/source_market/close.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts, packages/core/src/sourceResult/client.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/source.ts | |
| Indexer | partial | apps/indexer/src/indexer/subscriberImpl.ts | The recorder events are journaled. ExternalMarketPreallocationReclaimed is not projected: no indexer read route, API contract or web or Android source view reads it. The CLI and apps read the current draft state over RPC. |
| API | no | none | Operators use their own RPC and the signed-source CLI or SDK. |
| Web | yes | apps/web/app/[locale]/markets/source/SourceMarketForm.tsx | |
| Android | yes | apps/mobile/src/screens/SubmitExternalMarketScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/preallocation_maintenance.rs, packages/sdk-python/examples/preallocation_maintenance.py | The SDK examples build unsigned instructions offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Partial evidence:
source-control-draft-recovery(cli: 6 of 6 action steps return a client value; stepsource.reclaim-draft; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Journey source-control-draft-recovery recovers a prepared draft with the CLI; Journey runs are deferred, so qa/e2e/journeys/matrix.json has no passed cell for it. The standalone signed-source localnet gate (scripts/e2e/source-keeper-localnet.sh) covers this operation outside the journey matrix. - Journeys, independent mode: none. Partial evidence:
source-control-draft-recovery(cli: 6 of 6 action steps return a client value; stepsource.reclaim-draft; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Journey source-control-draft-recovery runs in independent mode with the CLI; Journey runs are deferred, so qa/e2e/journeys/matrix.json has no passed cell for it. - Formal obligations:
- Preallocation receipts and unused children are written only by the census-listed writers, including the 0x43 reclaim body (fv_nopen11_receipt_writer_census.rs, bounded census). Evidence:
program/tests/fv_nopen11_receipt_writer_census.rs. - The receipt due time gates permissionless reclaim (fv_sys02_lifecycle_writer_census.rs, bounded census). Evidence:
program/tests/fv_sys02_lifecycle_writer_census.rs. - Reclaim closes the orderbook and ledger children without revival or double payout (adversarial_lifecycle.rs SBF matrix). Evidence:
program/tests/adversarial_lifecycle.rs.
- Preallocation receipts and unused children are written only by the census-listed writers, including the 0x43 reclaim body (fv_nopen11_receipt_writer_census.rs, bounded census). Evidence:
- Known limits:
- The disposable localnet fixture includes both the creator-only window and permissionless recovery after expiry. Runtime validation is deferred.
mirror.progress-reserve-top-up Signed-source progress reserve top-up#
- Status: implemented. Last verified at
72694fd7511983fef6008ede122d1b193cec01b0. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is no; api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
TopUpExternalProgressReserve lets a third party restore the lamport reserve for unpaid progress rewards in the market's metadata account.
- Source:
program/src/processor/top_up_external_progress_reserve.rs - Routes:
TopUpExternalProgressReserve(0x3C) - CLI commands:
source top-up-progress-reserve - Web routes:
/[locale]/markets/source - Android screens:
SubmitExternalMarket - Boundaries: callers creator or permissionless caller as allowed by the route; signers caller wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/top_up_external_progress_reserve.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts, packages/core/src/sourceResult/client.ts, packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/source.ts | |
| Indexer | no | none | The top-up emits no recorder event. The vault and reserve are inspected on chain. |
| API | no | none | Operators use their own RPC and the signed-source CLI or SDK. |
| Web | yes | apps/web/app/[locale]/markets/source/SourceMarketForm.tsx | |
| Android | yes | apps/mobile/src/screens/SubmitExternalMarketScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/reward_maintenance.rs, packages/sdk-python/examples/reward_maintenance.py | The SDK examples build unsigned instructions offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result. The route emits no recorder event, so the record boundary reads the external-market API detail.
- Journeys, independent mode: none. Journey source-market-lifecycle (qa/e2e/journeys/definitions/source-market-lifecycle.journey.json) is defined but blocked: the one-command stack runs and admits no source witness, so no runner can submit a witness-signed result.
- Formal obligations:
- The progress reward claim and the top-up amount follow the source-local reward accounting (formal/verification/external_progress_rewards.rs, Kani). Evidence:
formal/verification/external_progress_rewards.rs. - A progress payment moves exactly the claimed lamports and keeps the metadata rent floor (formal/verification/external_progress_payment_refinement.rs, Kani). Evidence:
formal/verification/external_progress_payment_refinement.rs. - A top-up never debits the payer when the settlement vault reserve is short, and rolls back on a failed transfer (top_up_external_progress_reserve_solvency.rs SBF). Evidence:
program/tests/top_up_external_progress_reserve_solvency.rs,program/tests/top_up_external_progress_reserve.rs.
- The progress reward claim and the top-up amount follow the source-local reward accounting (formal/verification/external_progress_rewards.rs, Kani). Evidence:
- Known limits:
- The route authenticates market metadata and checks the settlement vault before funding the reserve. Runtime validation is deferred.
mirror.source-control Signed-source profile control#
- Status: implemented. Last verified at
72694fd7511983fef6008ede122d1b193cec01b0. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
InitializeSourceControl installs disabled profile policies. SetSourceProfilePolicy governs allowed source operations, witness thresholds, and review constraints for the deployment.
- Source:
program/src/processor/source_market/policy_admin.rs - Routes:
InitializeSourceControl(0x43),SetSourceProfilePolicy(0x44) - Events:
SourceProfilePolicyChanged - CLI commands:
source init-control,source set-policy - Web routes:
/[locale]/admin/operations - Android screens:
Admin - Boundaries: callers deployment authority; signers transaction payer, authority or witness operator as required by the registry policy; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/source_market/policy_admin.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts, packages/core/src/sourceResult/client.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/sourceAdmin.ts | |
| Indexer | partial | apps/indexer/src/indexer/subscriberImpl.ts | The recorder event is journaled. The CLI reads the current account state over RPC. |
| API | no | none | Operators use their own RPC and the signed-source CLI or SDK. |
| Web | yes | apps/web/app/components/admin/AdminBootstrap.tsx, apps/shared/adminBootstrap.ts | |
| Android | yes | apps/mobile/src/components/AdminBootstrap.tsx, apps/shared/adminBootstrap.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/mirror_admin.rs, packages/sdk-python/examples/mirror_admin.py | The SDK examples build unsigned instructions offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Partial evidence:
source-control-draft-recovery(cli: 6 of 6 action steps return a client value; stepsource.set-policy; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Journey source-control-draft-recovery initializes source control, enables and pauses profile 102 with the CLI; Journey runs are deferred, so qa/e2e/journeys/matrix.json has no passed cell for it. - Journeys, independent mode: none. Partial evidence:
source-control-draft-recovery(cli: 6 of 6 action steps return a client value; stepsource.set-policy; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Journey source-control-draft-recovery runs in independent mode with the CLI; Journey runs are deferred, so qa/e2e/journeys/matrix.json has no passed cell for it. - Formal obligations:
- Only a status decrease takes effect without the activation delay, and the policy decoder accepts only the exact version (policy_admin.rs unit tests). Evidence:
program/src/processor/source_market/policy_admin.rs. - Release registry and policy changes activate with the recorded delay (signed_source_governance_runtime.rs SBF). Evidence:
program/tests/signed_source_governance_runtime.rs.
- Only a status decrease takes effect without the activation delay, and the policy decoder accepts only the exact version (policy_admin.rs unit tests). Evidence:
- Known limits:
- Each profile must be admitted before operators can submit its signed-source results.
mirror.trust-root Signed-source witness trust root#
- Status: implemented. Last verified at
72694fd7511983fef6008ede122d1b193cec01b0. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The deployment registry binds witness slots to approved measurements and public keys. RegisterAttestedWitness verifies Nitro attestation evidence through the pinned proof verifier before admitting the slot.
- Source:
program/src/processor/source_market/registry_admin.rs,program/src/processor/source_market/register_attested_witness.rs,program/src/processor/source_market/attestation_proof.rs - Routes:
InitializeWitnessRegistry(0x45),SetWitnessMeasurement(0x47),RegisterAttestedWitness(0x48),RevokeWitnessSlot(0x46) - Events:
WitnessRegistryInitialized,WitnessMeasurementSet,AttestedWitnessRegistered,WitnessSlotRevoked,WitnessSlotSet - CLI commands:
source init-registry,source set-measurement,source register-witness,source revoke-witness,source registry-status - Web routes:
/[locale]/admin/operations - Android screens:
Admin - Boundaries: callers deployment authority, witness operator; signers transaction payer, authority or witness operator as required by the registry policy; services Solana RPC, Nitro attestation and SP1 proof generation.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/source_market/registry_admin.rs, program/src/processor/source_market/register_attested_witness.rs, program/src/processor/source_market/attestation_proof.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts, packages/core/src/sourceResult/client.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/sourceAdmin.ts | |
| Indexer | partial | apps/indexer/src/indexer/subscriberImpl.ts | The recorder event is journaled. The CLI reads the current account state over RPC. |
| API | no | none | Operators use their own RPC and the signed-source CLI or SDK. |
| Web | yes | apps/web/app/components/admin/AdminBootstrap.tsx, apps/shared/adminBootstrap.ts, apps/web/app/[locale]/admin/operations/OperationsAdminContent.tsx, apps/shared/operatorActions.ts, apps/web/lib/__tests__/operatorActions.test.ts | The app initializes the registry; the operations panel approves or withdraws Nitro measurements, revokes witness slots and registers attested witnesses (owner ruling 2026-11-24 (docs/internal/decisions/2026-11-24-client-parity-rulings.md)). The witness routes are sent as version-1 transactions with the source resources. Tests are written, not run. |
| Android | yes | apps/mobile/src/components/AdminBootstrap.tsx, apps/shared/adminBootstrap.ts, apps/mobile/src/admin/adminControls.ts, apps/mobile/src/screens/AdminScreen.tsx, apps/shared/operatorActions.ts, apps/mobile/src/__tests__/admin/adminControls.test.ts | The app initializes the registry; the admin controls approve or withdraw measurements, revoke slots and register attested witnesses through the version-1 send path (owner ruling 2026-11-24 (docs/internal/decisions/2026-11-24-client-parity-rulings.md)). Tests are written, not run. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/mirror_admin.rs, packages/sdk-python/examples/mirror_admin.py, packages/sdk-rust/examples/register_attested_witness.rs, packages/sdk-python/examples/register_attested_witness.py | The SDK examples build unsigned instructions offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Partial evidence:
source-trust-root-admin(cli: 3 of 3 action steps return a client value; stepsource.set-measurement; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Journey source-trust-root-admin initializes a registry and approves then withdraws a measurement with the CLI; Journey runs are deferred, so qa/e2e/journeys/matrix.json has no passed cell for it. RegisterAttestedWitness and RevokeWitnessSlot have no journey: registration needs an SP1 proof bound to the run's deployment, and revocation needs an admitted slot. - Journeys, independent mode: none. Partial evidence:
source-trust-root-admin(cli: 3 of 3 action steps return a client value; stepsource.set-measurement; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Journey source-trust-root-admin runs in independent mode with the CLI; Journey runs are deferred, so qa/e2e/journeys/matrix.json has no passed cell for it. - Formal obligations:
- Registry initialization decodes an exact frame and rejects reserved flags; updates reject invalid indices and measurement statuses (registry_admin.rs unit tests). Evidence:
program/src/processor/source_market/registry_admin.rs. - The pinned verifier manifest matches the compiled constants, and a recorded proof verifies only for its committed claim (attestation_proof.rs unit tests). Evidence:
program/src/processor/source_market/attestation_proof.rs. - A spike attestation cannot admit a witness without the release binding (signed_source_governance_runtime.rs SBF). Evidence:
program/tests/signed_source_governance_runtime.rs. - The witness registry initializes empty and rejects a wrong length, discriminator or version (witness_registry.rs unit tests). Evidence:
program/src/state/witness_registry.rs.
- Registry initialization decodes an exact frame and rejects reserved flags; updates reject invalid indices and measurement statuses (registry_admin.rs unit tests). Evidence:
- Known limits:
- Production Nitro qualification and approved measurements remain external signoffs. The fixture witness writer is test-build-only.
mirror.source-discovery Source reference discovery#
- Status: implemented. Last verified at
94abeda5c452b77e66e23258c2209495e3e233c0. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 missing (no formal obligation listed); 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: Source discovery lands nothing on chain..
The indexer offers Kalshi catalog reads, Polymarket V2 catalog identifiers and analytics, and indexed mirror lookup. Signed-source creation starts from a canonical definition package and accepts an independently witnessed opening result.
- Source:
apps/indexer/src/api/routes/sourceCatalog.ts,apps/indexer/src/api/routes/sourceData.ts,apps/indexer/src/api/routes/externalMarkets.ts,packages/core/src/sourceResult/client.ts - CLI commands:
source catalog - API routes:
POST /api/v1/external-markets/source-catalog,POST /api/v1/external-markets/source-data,GET /api/v1/external-markets/lookup - Boundaries: callers anyone (reads), creator; signers none for reads; services indexer API, public source reference APIs.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Reference lookup is off chain. BeginSourceMarket and OpenSourceMarket govern creation. |
| IDL | not-applicable | none | No instruction of its own. |
| TypeScript SDK | yes | packages/core/src/sources/kalshiSourceCatalog.ts | |
| Rust SDK | yes | packages/sdk-rust/src/http/source.rs | The HTTP feature exposes Kalshi catalog, Polymarket V2 catalog identifiers and analytics, and indexed mirror lookup. |
| Python SDK | yes | packages/sdk-python/seesaw/http.py, packages/sdk-python/seesaw/source_discovery.py | The HTTP client exposes Kalshi catalog, Polymarket V2 catalog identifiers and analytics, and indexed mirror lookup. |
| CLI | yes | packages/cli/src/commands/source.ts, packages/cli/src/commands/sourceCatalog.ts | The source catalog command resolves exact identifiers and can save canonical definition bytes. |
| Indexer | not-applicable | none | Discovery reads the source APIs through indexer API routes; nothing is ingested from chain. |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/sourceCatalog.ts, apps/indexer/src/api/routes/sourceData.ts, apps/indexer/src/api/routes/externalMarkets.ts | |
| Web | yes | apps/web/app/[locale]/markets/source/SourceMarketForm.tsx | The draft form fills Kalshi identifiers from the catalog and looks up Polymarket V2 conditions. |
| Android | yes | apps/mobile/src/screens/SubmitExternalMarketScreen.tsx | The draft form fills Kalshi identifiers from the catalog and looks up Polymarket V2 conditions. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/source_discovery.rs, packages/sdk-python/examples/source_discovery.py, packages/core/examples/47-kalshi-source-catalog.ts | The Rust and Python loopback examples cover the four public HTTP methods with embedded fixtures; the TypeScript example pages the Kalshi catalog through a fixture reader. Execution evidence is deferred. |
- Journeys, normal mode: none. No journey index entry runs source discovery.
- Journeys, independent mode: none. No journey index entry runs source discovery.
- Formal obligations: none listed.
- Known limits:
- Source reference discovery is informational. OpticOdds needs a user-supplied credential and a source witness.
mirror.reads Signed-source market and evidence reads#
- Status: implemented. Last verified at
94abeda5c452b77e66e23258c2209495e3e233c0. - Roadmap items:
F2,M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 missing (sdkRust is partial; sdkPython is partial); 5 missing (examples is partial); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 missing (no formal obligation listed); 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The indexer serves the signed-source market list, the lookup of every market opened on a source identity, one market's indexed state and recent accepted public evidence digests by market. @seesaw/api-contracts gives a typed client over those routes. The SDKs and CLI read source state and recover accepted witness evidence digests from a known finalized transaction over RPC, and discover and verify public evidence downloads. Web and Android list source markets through the typed client, read source state over RPC and expose the evidence lookup on the market detail.
- Source:
apps/indexer/src/indexer/sourceMarketProjection.ts,apps/indexer/src/api/routes/signedSourceMarkets.ts,apps/indexer/src/api/routes/sourceEvidenceBundles.ts,packages/cli/src/commands/source.ts,packages/api-contracts/src/signedSourceMarketsClient.ts - CLI commands:
source status,source accepted-evidence,source list-evidence,source fetch-evidence,source publish-evidence - API routes:
GET /api/v1/external-markets,GET /api/v1/external-markets/lookup,GET /api/v1/external-markets/{marketAddress},GET /api/v1/external-markets/{marketAddress}/evidence,GET /api/v1/source-evidence-bundles/{digest},GET /api/v1/external-markets/{marketAddress}/fees,GET /api/v1/external-markets/{marketAddress}/maker-credit/{address} - Web routes:
/[locale]/markets/[marketId] - Android screens:
MarketDetail - Boundaries: callers anyone; signers none; services indexer API, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Reads only. |
| IDL | not-applicable | none | Reads only. |
| TypeScript SDK | yes | packages/api-contracts/src/signedSourceMarketsClient.ts, packages/api-contracts/src/__tests__/signedSourceMarketsClient.test.ts, packages/core/src/sourceResult/acceptedResult.ts, packages/core/src/sourceResult/sourceState.ts, packages/core/src/sourceResult/evidenceStore.ts | createSignedSourceMarketsClient (list, lookup with the unsupported-profile answer, detail and evidence, each bound to the requested market) parses with the signedSourceMarkets.ts schemas over an injected transport. @seesaw/core reads source state and acceptance over RPC and verifies downloaded bundles. Tests are written, not run. |
| Rust SDK | partial | packages/sdk-rust/src/http.rs, packages/sdk-rust/src/source_state.rs, packages/sdk-rust/src/source_acceptance.rs | The SDK reads source state and transaction acceptance over RPC, lists recent public evidence digests by market, and verifies downloaded bundles. |
| Python SDK | partial | packages/sdk-python/seesaw/http.py, packages/sdk-python/seesaw/source_state.py, packages/sdk-python/seesaw/source_acceptance.py | The SDK reads source state and transaction acceptance over RPC, lists recent public evidence digests by market, and verifies downloaded bundles. |
| CLI | yes | packages/cli/src/commands/source.ts | |
| Indexer | yes | apps/indexer/src/indexer/sourceMarketProjection.ts, apps/indexer/src/indexer/sourceResultEvidence.ts | |
| API | yes | apps/indexer/src/api/routes/signedSourceMarkets.ts, apps/indexer/src/api/routes/sourceEvidenceBundles.ts, apps/indexer/src/api/routes/externalMarkets.ts | |
| Web | yes | apps/web/lib/externalMarkets.ts, apps/web/app/components/market/ExternalMarketsRail.tsx, apps/web/app/components/market/ExternalMarketStrip.tsx, apps/web/lib/hooks/useExternalMarketBinding.ts, apps/web/app/components/market/SignedSourceEvidence.tsx | The rail lists source markets and the lookup reads every market on an identity through the typed client; the market view reads source state over RPC, lists recent accepted public digests and downloads verified bundles. |
| Android | yes | apps/mobile/src/hooks/useExternalMarkets.ts, apps/mobile/src/hooks/useSignedSourceMarket.ts, apps/mobile/src/screens/marketDetail/SignedSourceEvidence.tsx | The list and lookup go through the typed client over the pinned transport; the market view reads source state over RPC, lists recent accepted public digests and shares verified bundles. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | partial | packages/core/examples/27-source-status.ts, packages/core/examples/29-accepted-source-evidence.ts, packages/sdk-python/examples/read_source_acceptance.py, packages/sdk-rust/examples/read_source_acceptance.rs, packages/sdk-rust/examples/source_evidence.rs | All three SDKs have examples that read from finalized RPC. A separate Rust example reads and verifies a public evidence fixture through a loopback API. |
- Journeys, normal mode: none. The standalone signed-source localnet harness implements indexer restart and evidence readback. Product journey execution remains pending.
- Journeys, independent mode: none. The standalone signed-source localnet harness includes finalized source state and accepted evidence digest reads with the indexer stopped. Product journey execution remains pending.
- Formal obligations: none listed.
- Known limits:
- Market evidence discovery lists up to 24 recent public digests. A bundle can arrive after its digest is indexed. OpticOdds bundles remain private.
- apps/indexer/src/api/servedRoutes.ts and router.ts still declare GET /external-markets/{marketAddress}/observations and /source-export, but no handler serves them since the Reclaim cleanup; the row keeps owning them until that inventory drops them.
governance.config-init Protocol configuration#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
InitializeConfig creates the protocol ConfigAccount exactly once, before any market, with its fee, tick, treasury and operational parameters, and emits ConfigInitialized (and TreasuryRecipientsUpdated for the initial recipients); clients and the indexer read the config.
- Source:
program/src/processor/initialize_config.rs,program/src/processor/initialize_config_trait.rs,apps/indexer/src/api/routes/config.ts - Routes:
InitializeConfig(0x00) - Events:
ConfigInitialized - CLI commands:
admin init,config get - API routes:
GET /api/v1/config - Boundaries: callers deployer (first caller); signers initial authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/initialize_config.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/admin/index.ts, packages/cli/src/commands/config/index.ts | |
| Indexer | yes | apps/indexer/src/processors/adminConfig.ts | |
| API | partial | apps/indexer/src/api/routes/config.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/config returns treasury_recipients and pauser read from the config account (config.ts); no route returns the rest of the config. |
| Web | yes | apps/web/app/[locale]/admin/operations/OperationsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/operator_controls.rs, packages/sdk-python/examples/operator_controls.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode: none. No journey index entry lands a route of this capability.
- Journeys, independent mode: none. No journey index entry lands a route of this capability.
- Formal obligations:
- Only the program upgrade authority recorded in ProgramData can run InitializeConfig (bootstrap_actual_upgrade_authority_exact_joint_bytes_errors_and_frame proof; validate_program_data_upgrade_authority_rejects_invalid_owner_layout_and_authority in initialize_config.rs). Evidence:
formal/verification/bootstrap_upgrade_authority_refinement.rs,program/src/processor/initialize_config.rs. - Config is created exactly once, and a second initialization is refused (test_initialize_config_fails_already_initialized in initialize_config_trait.rs; config_is_initialized_matches_discriminator_presence in initialize_config.rs). Evidence:
program/src/processor/initialize_config_trait.rs,program/src/processor/initialize_config.rs. - The initial tick size is in range and divides 10000, and the eight treasury recipients are nonzero and distinct (test_validate_tick_size_exhaustive_u16_domain; initialize_config_tick_size_boundary_rejects_zero_and_above_max_accepts_min_and_max; write_initialized_config_rejects_zero_recipient, write_initialized_config_rejects_duplicate_recipient; InitializeConfig rejects a recipient list that is not exactly eight entries in OperationsAdminContent.test.tsx). Evidence:
program/src/processor/initialize_config_trait.rs,program/tests/boundary_instruction_behavior.rs,program/src/processor/initialize_config.rs,apps/web/app/[locale]/admin/operations/__tests__/OperationsAdminContent.test.tsx. - The initialized config is the exact canonical encoding with launch defaults: every byte written, padding and reserved zero, and paused until the launch unpause (gov01_constructor_full_typed_independent_576_byte_encoding, gov01_actual_initialized_writer_full_prior_bytes_and_ordered_errors proofs; write_initialized_config_overwrites_every_byte_of_a_dirty_buffer; new_config_is_paused_until_launch_unpause). Evidence:
formal/verification/goal_g_gov_01_bootstrap_encoding.rs,program/tests/fv_gov01_config_frames.rs,program/tests/layout_golden_tests.rs. - The indexer config route returns the current config fields in the canonical envelope and a non-retryable NOT_FOUND when the account is absent (config.test.ts: returns the current config fields in the canonical envelope, returns canonical non-retryable NOT_FOUND when the account is absent). Evidence:
apps/indexer/src/api/routes/__tests__/config.test.ts.
- Only the program upgrade authority recorded in ProgramData can run InitializeConfig (bootstrap_actual_upgrade_authority_exact_joint_bytes_errors_and_frame proof; validate_program_data_upgrade_authority_rejects_invalid_owner_layout_and_authority in initialize_config.rs). Evidence:
governance.authority-rotation Authority rotation#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
UpdateAuthority, signed by the current authority, names a successor (AuthoritySuccessorNamed); ClaimAuthority, signed by that successor, completes the handover (AuthorityClaimed). The old authority keeps power until the claim lands.
- Source:
program/src/processor/admin.rs - Routes:
UpdateAuthority(0x01),ClaimAuthority(0x02) - Events:
AuthoritySuccessorNamed,AuthorityClaimed - Error categories:
Governance - CLI commands:
admin propose-authority,admin claim-authority - Boundaries: callers authority; signers config authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/admin.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/admin/index.ts | |
| Indexer | partial | apps/indexer/src/processors/adminConfig.ts, apps/indexer/src/processors/adminEvent.ts | processAdminConfigInstruction handles updateAuthority and claimAuthority (apps/indexer/src/processors/adminConfig.ts:212-233) by writing one admin_events row through persistAdminEvent (apps/indexer/src/processors/adminEvent.ts:14); it projects no state column of the config or the market. |
| API | partial | apps/indexer/src/api/routes/admin.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/admin/events (admin-authorized, admin.ts) returns the admin_events rows that processAdminConfigInstruction writes for update_authority and claim_authority (admin.ts); no route reports the resulting state. |
| Web | yes | apps/web/app/[locale]/admin/controls/ControlsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/governance_lifecycle.rs, packages/sdk-python/examples/governance_lifecycle.py |
- Journeys, normal mode: none. Partial evidence:
governance-authority-rotation(sdk-typescript: 4 of 4 action steps return a client value; cli: 4 of 4 action steps return a client value; stepconfig.propose-authority; no passed cell of a client of this capability in normal mode; partial evidence, does not count). governance-authority-rotation (TypeScript SDK, CLI) names a successor, warps past the 48-hour timelock, has it claim, and hands the authority back in cleanup steps; it runs exclusively. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. - Journeys, independent mode: none. Partial evidence:
governance-authority-rotation(sdk-typescript: 4 of 4 action steps return a client value; cli: 4 of 4 action steps return a client value; stepconfig.propose-authority; no passed cell of a client of this capability in independent mode; partial evidence, does not count). governance-authority-rotation (TypeScript SDK, CLI) runs in independent mode too. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. - Formal obligations:
- Only the named successor can claim, and only after it is named. Evidence:
program/tests/agentflow_fresh_10_authority_state.rs,program/tests/agentflow_fresh_10_admin_authority_policy.rs.
- Only the named successor can claim, and only after it is named. Evidence:
governance.pause Protocol pause#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Pause, signed by the authority or the inline pauser guardian, stops the paused operations across the protocol (ProtocolPaused, error ProtocolPaused); Unpause, signed by the authority, resumes them (ProtocolUnpaused). MergeCompleteSet stays available while paused.
- Source:
program/src/processor/admin.rs - Routes:
Pause(0x20),Unpause(0x21) - Events:
ProtocolPaused,ProtocolUnpaused - Error categories:
Position - CLI commands:
admin pause,admin unpause - Boundaries: callers authority, pauser; signers config authority or pauser key; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/admin.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/admin/index.ts | |
| Indexer | partial | apps/indexer/src/processors/adminConfig.ts, apps/indexer/src/processors/adminEvent.ts | processAdminConfigInstruction handles pause and unpause (apps/indexer/src/processors/adminConfig.ts:99-116) by writing one admin_events row through persistAdminEvent (apps/indexer/src/processors/adminEvent.ts:14); it projects no state column of the config or the market. |
| API | partial | apps/indexer/src/api/routes/admin.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/admin/events (admin-authorized, admin.ts) returns the admin_events rows that processAdminConfigInstruction writes for pause and unpause (admin.ts); no route reports the resulting state. |
| Web | yes | apps/web/app/[locale]/admin/controls/ControlsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/operator_controls.rs, packages/sdk-python/examples/operator_controls.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode: none. Partial evidence:
app-protocol-pause(web: 4 of 8 action steps return a client value; android: 4 of 8 action steps return a client value; stepconfig.pause; no passed cell of a client of this capability in normal mode; partial evidence, does not count),protocol-pause-guard(sdk-typescript: 9 of 17 action steps return a client value; cli: 9 of 17 action steps return a client value; stepconfig.pause; no passed cell of a client of this capability in normal mode; partial evidence, does not count). app-protocol-pause pauses from the web and Android admin screens with the trader as pauser; protocol-pause-guard (TypeScript SDK and CLI) also checks the refusals. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
protocol-pause-guard(sdk-typescript: 9 of 17 action steps return a client value; cli: 9 of 17 action steps return a client value; stepconfig.pause; no passed cell of a client of this capability in independent mode; partial evidence, does not count). protocol-pause-guard (TypeScript SDK and CLI) lands these routes in independent mode; app-protocol-pause runs in normal mode only, because independent mode stops the web origin and the app API. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Pause succeeds only for the nonzero current authority or the nonzero inline pauser, Unpause only for the authority, and each writes only the paused byte (emergency_admin_family_exact_auth_errors_and_byte_frames proof; pause_sets_paused_byte, unpause_clears_paused_byte proofs; pause_by_authority_and_by_pauser_writes_only_paused, unpause_writes_only_paused in fv_gov01_config_frames.rs). Evidence:
formal/verification/admin_emergency_control_refinement.rs,formal/verification/config_accessors.rs,program/tests/fv_gov01_config_frames.rs. - The pauser can pause but cannot unpause, and rejected unpauses leave the protocol paused (pauser_can_pause_but_not_unpause in security_set_pauser_matrix.rs; unpause_rejects_non_authority_and_missing_signer_keeping_protocol_paused; unpause_transition_boundary_paused_to_live_idempotent_and_pauser_cannot). Evidence:
program/tests/security_set_pauser_matrix.rs,program/tests/admin_rejection_state_invariance.rs,program/tests/boundary_instruction_behavior.rs. - While paused, MintShares, DepositFunds and PlaceOrder fail with ProtocolPaused, while MergeCompleteSet and every exit, cancel and settle route stay available, and a corrupt pause byte fails closed (derived_enabling_precondition_facts_hold in fv_tr_progress_refusal_census.rs; pair_issuance_and_deposit_obey_risk_gates_while_merge_exits_in_every_state; gov05_matrix_config_paused, gov05_corrupt_pause_byte_fails_closed; paused_semantics proof). Evidence:
program/tests/fv_tr_progress_refusal_census.rs,program/tests/fv_gov05_pair_funds_gate_matrix.rs,program/tests/goal_gov_05.rs,formal/verification/config_validation.rs. - Pause and Unpause in the same transaction as a placement apply atomically in instruction order (same_transaction_pause_place_ordering_is_atomic_and_order_sensitive, same_transaction_unpause_place_ordering_is_atomic_and_order_sensitive). Evidence:
program/tests/agentflow_fresh_30_interleaving_runtime.rs.
- Pause succeeds only for the nonzero current authority or the nonzero inline pauser, Unpause only for the authority, and each writes only the paused byte (emergency_admin_family_exact_auth_errors_and_byte_frames proof; pause_sets_paused_byte, unpause_clears_paused_byte proofs; pause_by_authority_and_by_pauser_writes_only_paused, unpause_writes_only_paused in fv_gov01_config_frames.rs). Evidence:
governance.pauser Pauser guardian#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
SetPauser sets the inline ConfigAccount.pauser key; pauser = [0; 32] disables pauser access fail-closed. PauserUpdated is emitted.
- Source:
program/src/processor/admin.rs - Routes:
SetPauser(0x29) - Events:
PauserUpdated - CLI commands:
admin set-pauser - Boundaries: callers authority; signers config authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/admin.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/admin/index.ts | |
| Indexer | yes | apps/indexer/src/processors/adminConfig.ts | |
| API | partial | apps/indexer/src/api/routes/config.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/config returns pauser (config.ts). |
| Web | yes | apps/web/app/[locale]/admin/controls/ControlsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/operator_controls.rs, packages/sdk-python/examples/operator_controls.py |
- Journeys, normal mode: none. Partial evidence:
app-protocol-pause(web: 4 of 8 action steps return a client value; android: 4 of 8 action steps return a client value; stepconfig.set-pauser; no passed cell of a client of this capability in normal mode; partial evidence, does not count),protocol-pause-guard(sdk-typescript: 9 of 17 action steps return a client value; cli: 9 of 17 action steps return a client value; stepconfig.set-pauser; no passed cell of a client of this capability in normal mode; partial evidence, does not count). app-protocol-pause appoints and restores the pauser from the web admin console; protocol-pause-guard (TypeScript SDK and CLI) also checks the refusals. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
protocol-pause-guard(sdk-typescript: 9 of 17 action steps return a client value; cli: 9 of 17 action steps return a client value; stepconfig.set-pauser; no passed cell of a client of this capability in independent mode; partial evidence, does not count). protocol-pause-guard (TypeScript SDK and CLI) lands these routes in independent mode; app-protocol-pause runs in normal mode only. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Only the current authority can set the pauser, the pauser cannot rotate itself, and SetPauser writes only the 32-byte pauser field (emergency_admin_family_exact_auth_errors_and_byte_frames proof route 2; pauser_cannot_rotate_itself; set_pauser_writes_only_pauser). Evidence:
formal/verification/admin_emergency_control_refinement.rs,program/tests/security_set_pauser_matrix.rs,program/tests/fv_gov01_config_frames.rs. - pauser = [0; 32] grants nothing, because pauser rights need a nonzero exact key match (is_pauser_requires_nonzero_exact_key_match proof; zero_pauser_grants_nothing; set_pauser_zero_sentinel_boundary_guardian_pauses_until_cleared). Evidence:
formal/verification/config_accessors.rs,program/tests/security_set_pauser_matrix.rs,program/tests/boundary_instruction_behavior.rs. - The pauser cannot run any other admin family and can only escalate market emergency status (pauser_cannot_touch_admin_families; pauser_market_emergency_status_is_escalation_only). Evidence:
program/tests/security_set_pauser_matrix.rs,program/tests/security_pauser_emergency_escalation_only.rs. - A successful SetPauser emits PauserUpdated with the new key (authority_rotates_pauser_and_events_emitted; set_pauser_happy_path_exact_post_state_and_event). Evidence:
program/tests/security_set_pauser_matrix.rs,program/tests/lifecycle_instruction_behavior.rs.
- Only the current authority can set the pauser, the pauser cannot rotate itself, and SetPauser writes only the 32-byte pauser field (emergency_admin_family_exact_auth_errors_and_byte_frames proof route 2; pauser_cannot_rotate_itself; set_pauser_writes_only_pauser). Evidence:
governance.post-only-mode Post-only mode#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
EnablePostOnlyMode and DisablePostOnlyMode, signed by the authority, switch protocol-wide post-only mode, in which incoming Limit orders are coerced to PostOnly with the reject policy and IOC orders fail with PostOnlyModeActive; existing orders, cancellation and settlement are unaffected. Events: PostOnlyModeEnabled, PostOnlyModeDisabled.
- Source:
program/src/processor/admin.rs - Routes:
EnablePostOnlyMode(0x22),DisablePostOnlyMode(0x23) - Events:
PostOnlyModeEnabled,PostOnlyModeDisabled - CLI commands:
admin enable-post-only-mode,admin disable-post-only-mode - Boundaries: callers authority; signers config authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/admin.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/admin/index.ts | |
| Indexer | partial | apps/indexer/src/processors/adminConfig.ts, apps/indexer/src/processors/adminEvent.ts | processAdminConfigInstruction handles enablePostOnlyMode and disablePostOnlyMode (apps/indexer/src/processors/adminConfig.ts:308-319) by writing one admin_events row through persistAdminEvent (apps/indexer/src/processors/adminEvent.ts:14); it projects no state column of the config or the market. |
| API | partial | apps/indexer/src/api/routes/admin.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/admin/events (admin-authorized, admin.ts) returns the admin_events rows that processAdminConfigInstruction writes for enable_post_only_mode and disable_post_only_mode (admin.ts); no route reports the resulting state. |
| Web | yes | apps/web/app/[locale]/admin/controls/ControlsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/operator_controls.rs, packages/sdk-python/examples/operator_controls.py |
- Journeys, normal mode: none. Partial evidence:
protocol-post-only-mode(sdk-typescript: 3 of 7 action steps return a client value; cli: 3 of 7 action steps return a client value; stepconfig.enable-post-only; no passed cell of a client of this capability in normal mode; partial evidence, does not count). protocol-post-only-mode (TypeScript SDK, CLI) turns post-only mode on, rests a maker, refuses a taker with PostOnlyModeActive, and turns it off in a cleanup step that also runs after a failure; it runs exclusively. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
protocol-post-only-mode(sdk-typescript: 3 of 7 action steps return a client value; cli: 3 of 7 action steps return a client value; stepconfig.enable-post-only; no passed cell of a client of this capability in independent mode; partial evidence, does not count). protocol-post-only-mode (TypeScript SDK, CLI) runs in independent mode too. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Only the current authority can enable or disable post-only mode, each toggle writes only the post_only_mode byte, and both are idempotent (emergency_admin_family_exact_auth_errors_and_byte_frames proof routes 3-4; enable_post_only_mode_sets_and_predicate_true, disable_post_only_mode_clears_and_predicate_false proofs; post_only_toggles_write_only_post_only_mode; enable_post_only_mode_rejects_non_authority_and_missing_signer_keeping_mode_off; enable_post_only_mode_transition_boundary_off_to_on_then_idempotent). Evidence:
formal/verification/admin_emergency_control_refinement.rs,formal/verification/config_accessors.rs,program/tests/fv_gov01_config_frames.rs,program/tests/admin_rejection_state_invariance.rs,program/tests/boundary_instruction_behavior.rs. - With the mode active, Limit is coerced to PostOnly with the reject policy, PostOnly keeps its policy and IOC fails with PostOnlyModeActive (test_coerce_post_only_order_type_preserves_and_rejects_correctly in place_order/tests.rs; test_attack_pause_post_only_toggle_composition_per_market_state_preserved in security_state_toggles.rs). Evidence:
program/src/processor/place_order/tests.rs,program/tests/security_state_toggles.rs. - Post-only mode is independent of pause and does not gate cancel, exit or settlement routes (probe_03_post_only_mode_is_admin_only_idempotent_and_independent_from_pause; derived_enabling_precondition_facts_hold in fv_tr_progress_refusal_census.rs). Evidence:
program/tests/security_shard3_stage2_permissions.rs,program/tests/fv_tr_progress_refusal_census.rs. - A successful toggle emits PostOnlyModeEnabled or PostOnlyModeDisabled (disable_post_only_mode_happy_path_exact_post_state_and_event; every_binary_event_encodes_to_its_sdk_length_with_its_own_tag_byte). Evidence:
program/tests/lifecycle_instruction_behavior.rs,program/tests/fv_event_body_roundtrip.rs.
- Only the current authority can enable or disable post-only mode, each toggle writes only the post_only_mode byte, and both are idempotent (emergency_admin_family_exact_auth_errors_and_byte_frames proof routes 3-4; enable_post_only_mode_sets_and_predicate_true, disable_post_only_mode_clears_and_predicate_false proofs; post_only_toggles_write_only_post_only_mode; enable_post_only_mode_rejects_non_authority_and_missing_signer_keeping_mode_off; enable_post_only_mode_transition_boundary_off_to_on_then_idempotent). Evidence:
governance.tick-size Tick size#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
UpdateTickSize, signed by the authority, sets the protocol price tick in basis points and emits TickSizeUpdated.
- Source:
program/src/processor/admin.rs - Routes:
UpdateTickSize(0x24) - Events:
TickSizeUpdated - CLI commands:
admin update-tick-size - Boundaries: callers authority; signers config authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/admin.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/admin/index.ts | |
| Indexer | yes | apps/indexer/src/processors/adminConfig.ts | |
| API | partial | apps/indexer/src/api/routes/markets.ts, apps/indexer/src/api/routes/exchange.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId} and the exchange market routes return tickSizeBps (markets.ts; exchange.ts). |
| Web | yes | apps/web/app/[locale]/admin/controls/ControlsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/operator_controls.rs, packages/sdk-python/examples/operator_controls.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode: none. Partial evidence:
governance-tick-size(sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value; stepconfig.update-tick-size; no passed cell of a client of this capability in normal mode; partial evidence, does not count). governance-tick-size (TypeScript SDK, CLI) changes the tick after a microstructure cooldown warp and restores the prior tick in a cleanup step; it runs exclusively. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. - Journeys, independent mode: none. Partial evidence:
governance-tick-size(sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value; stepconfig.update-tick-size; no passed cell of a client of this capability in independent mode; partial evidence, does not count). governance-tick-size (TypeScript SDK, CLI) runs in independent mode too. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. - Formal obligations:
- UpdateTickSize accepts only the current authority and a tick in [1, 1000] bps that divides 10000, and writes only tick_size_bps and the microstructure stamp (tick_size_valid_range, tick_size_rejects_invalid proofs; admin_processors_update_tick_size_rejects_invalid_without_mutation, admin_processors_update_tick_size_accepts_valid_divisor; config_tick_size_accepts_exactly_bounded_divisors_of_ten_thousand; microstructure_updates_write_only_their_field_and_the_shared_stamp). Evidence:
formal/verification/config_validation.rs,program/tests/agentflow_fresh_10_admin_processors.rs,program/tests/agentflow_fresh_10_config_admin_setters.rs,program/tests/fv_gov01_config_frames.rs. - Tick updates share the 1-hour microstructure cooldown, with no emergency exemption (update_tick_size_cooldown_native, update_tick_size_not_exempt_from_cooldown_during_emergency). Evidence:
program/tests/agentflow_fresh_10_admin_processors.rs. - A tick change does not re-grid resting orders: cancels in the same transaction keep the old grid (same_transaction_tick_size_update_cancel_up_to_preserves_old_grid_threshold_equality). Evidence:
program/tests/agentflow_fresh_30_interleaving_runtime.rs. - The u16 payload parses exactly, and a successful update emits TickSizeUpdated (parser_grammar_tick_u16_families proof; every_binary_event_encodes_to_its_sdk_length_with_its_own_tag_byte). Evidence:
formal/verification/parser_grammar.rs,program/tests/fv_event_body_roundtrip.rs.
- UpdateTickSize accepts only the current authority and a tick in [1, 1000] bps that divides 10000, and writes only tick_size_bps and the microstructure stamp (tick_size_valid_range, tick_size_rejects_invalid proofs; admin_processors_update_tick_size_rejects_invalid_without_mutation, admin_processors_update_tick_size_accepts_valid_divisor; config_tick_size_accepts_exactly_bounded_divisors_of_ten_thousand; microstructure_updates_write_only_their_field_and_the_shared_stamp). Evidence:
governance.min-resting-notional Minimum resting notional#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
UpdateMinRestingNotional, signed by the authority, sets the minimum notional a resting order must carry and emits MinRestingNotionalUpdated.
- Source:
program/src/processor/admin.rs - Routes:
UpdateMinRestingNotional(0x25) - Events:
MinRestingNotionalUpdated - CLI commands:
admin update-min-resting-notional - Boundaries: callers authority; signers config authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/admin.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/admin/index.ts | |
| Indexer | yes | apps/indexer/src/processors/adminConfig.ts | |
| API | partial | apps/indexer/src/api/routes/exchange.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). The exchange market routes return minNotional from min_resting_notional (exchange.ts). |
| Web | yes | apps/web/app/[locale]/admin/controls/ControlsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/operator_controls.rs, packages/sdk-python/examples/operator_controls.py, packages/core/examples/07-build-all-high-level-instructions.ts, packages/core/examples/43-referral-shards-and-operations.ts |
- Journeys, normal mode: none. Partial evidence:
governance-min-resting-notional(sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value; stepconfig.update-min-resting-notional; no passed cell of a client of this capability in normal mode; partial evidence, does not count). governance-min-resting-notional (TypeScript SDK, CLI) changes the minimum resting notional after a cooldown warp and restores it in a cleanup step; it runs exclusively. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. - Journeys, independent mode: none. Partial evidence:
governance-min-resting-notional(sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value; stepconfig.update-min-resting-notional; no passed cell of a client of this capability in independent mode; partial evidence, does not count). governance-min-resting-notional (TypeScript SDK, CLI) runs in independent mode too. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. - Formal obligations:
- UpdateMinRestingNotional accepts only the current authority, and zero disables the floor (admin_processors_min_resting_notional_accepts_zero_and_max; update_min_resting_notional_rejects_wrong_authority_and_out_of_range_boundary; config_min_resting_notional_zero_disables_and_max_roundtrips; min_resting_notional_set_get_roundtrip proof). Evidence:
program/tests/agentflow_fresh_10_admin_processors.rs,program/tests/admin_rejection_state_invariance.rs,program/tests/agentflow_fresh_10_config_admin_setters.rs,formal/verification/config_accessors.rs. - The update writes only min_resting_notional and the shared microstructure stamp, under the shared 1-hour cooldown (microstructure_updates_write_only_their_field_and_the_shared_stamp in fv_gov01_config_frames.rs). Evidence:
program/tests/fv_gov01_config_frames.rs,program/src/processor/admin.rs. - Placement enforces the floor on resting orders and resting remainders (production_ioc_resting_floor_and_resting_draft proof). Evidence:
formal/verification/goal_tr_microstructure.rs. - The u64 payload parses exactly, and a successful update emits MinRestingNotionalUpdated (parser_grammar_update_min_resting_notional_u64 proof; every_binary_event_encodes_to_its_sdk_length_with_its_own_tag_byte). Evidence:
formal/verification/parser_grammar.rs,program/tests/fv_event_body_roundtrip.rs.
- UpdateMinRestingNotional accepts only the current authority, and zero disables the floor (admin_processors_min_resting_notional_accepts_zero_and_max; update_min_resting_notional_rejects_wrong_authority_and_out_of_range_boundary; config_min_resting_notional_zero_disables_and_max_roundtrips; min_resting_notional_set_get_roundtrip proof). Evidence:
governance.fee-config Fee configuration#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
UpdateFeeConfig, signed by the authority and rate limited, replaces the fee curve and split of the config and advances its fee policy epoch; FeeConfigUpdated is emitted.
- Source:
program/src/processor/admin.rs - Routes:
UpdateFeeConfig(0x1C) - Events:
FeeConfigUpdated - CLI commands:
admin update-fee-config - Boundaries: callers authority; signers config authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/admin.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/admin/index.ts | |
| Indexer | yes | apps/indexer/src/processors/adminConfig.ts | |
| API | partial | apps/indexer/src/api/routes/feeConfig.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/fee-config reads the fee curve from fee_config_events (feeConfig.ts). |
| Web | yes | apps/web/app/[locale]/admin/controls/ControlsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/operator_controls.rs, packages/sdk-python/examples/operator_controls.py, packages/core/examples/07-build-all-high-level-instructions.ts |
- Journeys, normal mode: none. Partial evidence:
governance-fee-config(sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value; stepconfig.update-fee-config; no passed cell of a client of this capability in normal mode; partial evidence, does not count). governance-fee-config (TypeScript SDK, CLI) changes the taker coefficient and five-way split after a fee-config cooldown warp and restores them in a cleanup step; it runs exclusively. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. - Journeys, independent mode: none. Partial evidence:
governance-fee-config(sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value; stepconfig.update-fee-config; no passed cell of a client of this capability in independent mode; partial evidence, does not count). governance-fee-config (TypeScript SDK, CLI) runs in independent mode too. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. - Formal obligations:
- Fee configuration changes are authority-gated and rate limited. Evidence:
program/tests/agentflow_fresh_6_config_fee_guards.rs.
- Fee configuration changes are authority-gated and rate limited. Evidence:
governance.market-cap Market supply cap#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
UpdateMarketCap rewrites MarketAccount.max_total_shares, the sole and market-local supply cap, over a [max_total_shares] payload with accounts [market, config, authority, vault], and emits SupplyCapUpdated (event tag 88), the only cap-change event.
- Source:
program/src/processor/update_market_cap.rs - Routes:
UpdateMarketCap(0x26) - Events:
SupplyCapUpdated - CLI commands:
admin update-market-cap - Boundaries: callers market creator or protocol authority; signers that authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/update_market_cap.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/admin/index.ts | |
| Indexer | yes | apps/indexer/src/processors/adminConfig.ts | |
| API | partial | apps/indexer/src/api/routes/markets.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets returns maxTotalShares (markets.ts). |
| Web | yes | apps/web/app/[locale]/creator/CreatorContent.tsx | |
| Android | yes | apps/mobile/src/screens/CreatorScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/governance_lifecycle.rs, packages/sdk-python/examples/governance_lifecycle.py |
- Journeys, normal mode: none. Partial evidence:
market-supply-cap(sdk-typescript: 6 of 14 action steps return a client value; cli: 6 of 14 action steps return a client value; stepmarket.update-cap; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-market-cap(web: 1 of 4 action steps return a client value; stepmarket.update-cap; no passed cell of a client of this capability in normal mode; partial evidence, does not count). market-supply-cap (TypeScript SDK and CLI) raises a market-local cap, checks the authority, exposure and cooldown refusals, and the sibling market's independent cap. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. app-market-cap raises the cap from the web creator dashboard (normal mode only). - Journeys, independent mode: none. Partial evidence:
market-supply-cap(sdk-typescript: 6 of 14 action steps return a client value; cli: 6 of 14 action steps return a client value; stepmarket.update-cap; no passed cell of a client of this capability in independent mode; partial evidence, does not count). market-supply-cap (TypeScript SDK and CLI) raises a market-local cap, checks the authority, exposure and cooldown refusals, and the sibling market's independent cap. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. - Formal obligations:
- The cap update is market-local and respects the economic-exposure floor. Evidence:
program/tests/agentflow_fresh_10_market_cap_policy.rs.
- The cap update is market-local and respects the economic-exposure floor. Evidence:
governance.market-emergency Market emergency controls#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
SetMarketEmergencyStatus rotates one market between emergency statuses (MarketEmergencyStatusChanged); ForceCancelMarketOrders removes resting orders of a market under emergency and refunds their makers (OrderForceCancelled).
- Source:
program/src/processor/admin_market_emergency.rs - Routes:
SetMarketEmergencyStatus(0x27),ForceCancelMarketOrders(0x28) - Events:
MarketEmergencyStatusChanged,OrderForceCancelled - CLI commands:
admin set-market-emergency-status,admin force-cancel-market-orders - Boundaries: callers authority; signers config authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/admin_market_emergency.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/admin/index.ts | |
| Indexer | partial | apps/indexer/src/processors/adminConfig.ts, apps/indexer/src/processors/adminEvent.ts | processAdminConfigInstruction handles setMarketEmergencyStatus and forceCancelMarketOrders (apps/indexer/src/processors/adminConfig.ts:355-390) by writing one admin_events row through persistAdminEvent (apps/indexer/src/processors/adminEvent.ts:14); it projects no state column of the config or the market. |
| API | partial | apps/indexer/src/api/routes/markets.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/markets/{marketId} returns emergencyStatus, read from the set_market_emergency_status admin events (markets.ts). |
| Web | yes | apps/web/app/[locale]/admin/controls/ControlsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/operator_controls.rs, packages/sdk-python/examples/operator_controls.py |
- Journeys, normal mode: none. Partial evidence:
app-market-emergency(web: 1 of 11 action steps return a client value; stepmarket.set-emergency-status; no passed cell of a client of this capability in normal mode; partial evidence, does not count),market-emergency-governance(sdk-typescript: 12 of 20 action steps return a client value; cli: 12 of 20 action steps return a client value; stepmarket.set-emergency-status; no passed cell of a client of this capability in normal mode; partial evidence, does not count). app-market-emergency drives the web admin console; market-emergency-governance (TypeScript SDK and CLI) also checks the creator and authority refusals. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
market-emergency-governance(sdk-typescript: 12 of 20 action steps return a client value; cli: 12 of 20 action steps return a client value; stepmarket.set-emergency-status; no passed cell of a client of this capability in independent mode; partial evidence, does not count). market-emergency-governance (TypeScript SDK and CLI) lands these routes in independent mode; app-market-emergency runs in normal mode only. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Emergency controls are authority-gated and force-cancel refunds every removed order. Evidence:
program/tests/agentflow_fresh_10_emergency_policy.rs,program/tests/agentflow_fresh_18_force_cancel_gates.rs.
- Emergency controls are authority-gated and force-cancel refunds every removed order. Evidence:
governance.operational-params Operational parameters#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
UpdateOperationalParams, signed by the authority, sets the lifecycle closer reward, the retained price-staleness metadata and the market expiration window of the config within their bounds, and emits UpdateOperationalParams.
- Source:
program/src/processor/admin.rs - Routes:
UpdateOperationalParams(0x2A) - Events:
UpdateOperationalParams - CLI commands:
admin operational-params - Boundaries: callers authority; signers config authority; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/admin.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/admin/index.ts | |
| Indexer | partial | apps/indexer/src/processors/adminConfig.ts, apps/indexer/src/processors/adminEvent.ts | processAdminConfigInstruction handles updateOperationalParams (apps/indexer/src/processors/adminConfig.ts:391-410) by writing one admin_events row through persistAdminEvent (apps/indexer/src/processors/adminEvent.ts:14); it projects no state column of the config or the market. |
| API | partial | apps/indexer/src/api/routes/admin.ts | No transaction-builder route builds it (apps/indexer/src/api/servedRoutes.ts lists the /tx routes). GET /api/v1/admin/events (admin-authorized, admin.ts) returns the admin_events rows that processAdminConfigInstruction writes for update_operational_params (admin.ts); no route reports the resulting state. |
| Web | yes | apps/web/app/[locale]/admin/controls/ControlsAdminContent.tsx | |
| Android | yes | apps/mobile/src/admin/adminControls.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/operator_controls.rs, packages/sdk-python/examples/operator_controls.py, packages/core/examples/43-referral-shards-and-operations.ts |
- Journeys, normal mode: none. Partial evidence:
governance-operational-params(sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value; stepconfig.update-operational-params; no passed cell of a client of this capability in normal mode; partial evidence, does not count). governance-operational-params (TypeScript SDK, CLI) changes the closer reward, keeping the other parameters, and restores it in a cleanup step; it runs exclusively. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. - Journeys, independent mode: none. Partial evidence:
governance-operational-params(sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value; stepconfig.update-operational-params; no passed cell of a client of this capability in independent mode; partial evidence, does not count). governance-operational-params (TypeScript SDK, CLI) runs in independent mode too. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of this journey has passed. - Formal obligations:
- UpdateOperationalParams accepts only the current authority, writes only operational fields, and a rejected call changes no config byte (update_operational_params_writes_only_operational_fields, rejected_admin_updates_leave_every_config_byte_unchanged in fv_gov01_config_frames.rs). Evidence:
program/tests/fv_gov01_config_frames.rs. - Every field is range-checked and the update is all-or-nothing: closer reward, staleness metadata, expiration window, coherent duration bounds, max order size and spline fields (update_closer_reward_lamports_matches_bound, update_max_price_staleness_seconds_matches_bound, update_market_expiration_window_seconds_matches_bound, update_market_duration_bounds_matches_predicate proofs; config_operational_params_reject_out_of_range_without_mutation; update_operational_params_litesvm_rejects_late_invalid_field_without_mutation; update_operational_params_rejects_unknown_spline_flags_and_out_of_range_jump_threshold). Evidence:
formal/verification/config_validation.rs,program/tests/agentflow_fresh_10_config_admin_setters.rs,program/tests/security_update_operational_params_litesvm.rs. - Window and staleness updates keep the expiry of launched markets and never tighten metadata a live market relies on (operational_window_setters_exact_full_domain_acceptance_and_whole_config_frames, operational_window_two_updates_preserve_post_launch_expiry_and_nontightening_metadata proofs; live_market_staleness_policy_rejects_reduction_and_preserves_last_admissible_end_print). Evidence:
formal/verification/config_operational_window_refinement.rs,program/tests/security_update_operational_params_litesvm.rs. - The 1-hour operational cooldown is checked with overflow-safe arithmetic over every i64 stamp (gov06_operational_params_cooldown_processor_full_i64 proof; update_operational_params_cooldown_boundary_one_second_early_rejected_exact_accepted). Evidence:
formal/verification/goal_g_gov_06.rs,program/tests/boundary_instruction_behavior.rs. - The payload offsets parse exactly, and a successful update commits all fields and emits UpdateOperationalParams (parser_grammar_operational_params_offsets proof; update_operational_params_litesvm_accepts_canonical_recorder_tail_and_commits_all_fields). Evidence:
formal/verification/parser_grammar.rs,program/tests/security_update_operational_params_litesvm.rs.
- UpdateOperationalParams accepts only the current authority, writes only operational fields, and a rejected call changes no config byte (update_operational_params_writes_only_operational_fields, rejected_admin_updates_leave_every_config_byte_unchanged in fv_gov01_config_frames.rs). Evidence:
governance.admin-console Admin console#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Governance and administration exist in the code and are in no item of roadmap section 9 (roadmap section 10, governance and operations).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Operators run governance and maintenance from the web admin pages (controls, operations) and the mobile Admin screen, which plan and sign the governance routes with the connected authority; the indexer serves admin alert and event reads to wallet-authenticated operators.
- Source:
apps/web/app/[locale]/admin/controls/page.tsx,apps/mobile/src/screens/AdminScreen.tsx,apps/mobile/src/admin/adminControls.ts,apps/indexer/src/api/routes/admin.ts - API routes:
GET /api/v1/admin/alerts,GET /api/v1/admin/events - Web routes:
/[locale]/admin/controls - Android screens:
Admin - Boundaries: callers authority, operator; signers config authority wallet; services Solana RPC, indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | The console composes the SDK builders of the governance rows; it is an app surface. |
| Rust SDK | not-applicable | none | An app surface. |
| Python SDK | not-applicable | none | An app surface. |
| CLI | yes | packages/cli/src/commands/admin/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/subscriberImpl.ts | |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/admin.ts | |
| Web | yes | apps/web/app/[locale]/admin/controls/page.tsx | |
| Android | yes | apps/mobile/src/screens/AdminScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/operator_controls.rs, packages/sdk-python/examples/operator_controls.py |
- Journeys, normal mode: none. The capability lands no route of its own; no journey index entry drives the admin console.
- Journeys, independent mode: none. The capability lands no route of its own; no journey index entry drives the admin console.
- Formal obligations:
- Each admin control builds the instruction with the right discriminator and account form for its governance route (adminControls.test.ts: $key builds an instruction tagged $discriminator; ControlsAdminContent.test.tsx: Pause button submits Pause (0x20), UpdateTickSize submits the config-global two-account form without a market; OperationsAdminContent.test.tsx: ClosePreallocatedChild submits the positional kind). Evidence:
apps/mobile/src/__tests__/admin/adminControls.test.ts,apps/web/app/[locale]/admin/controls/__tests__/ControlsAdminContent.test.tsx,apps/web/app/[locale]/admin/operations/__tests__/OperationsAdminContent.test.tsx. - Authority-gated controls are disabled for a non-authority wallet, emergency controls are open to the configured pauser, and permissionless controls stay enabled (AdminScreen.test.tsx: disables authority-gated controls but not permissionless ones when unauthorized, lets the configured pauser run the emergency controls; ControlsAdminContent.test.tsx: shows authorization state and disables submits for a non-authority wallet). Evidence:
apps/mobile/src/__tests__/screens/AdminScreen.test.tsx,apps/web/app/[locale]/admin/controls/__tests__/ControlsAdminContent.test.tsx. - Malformed inputs are refused before building or signing, and mobile asks for confirmation before running a control (adminControls.test.ts: rejects non-numeric and non-integer field values with the field name, rejects a treasury recipient list that is not exactly 8 entries; OperationsAdminContent.test.tsx: refuses a zero-lamport TopUpCloserRewards before signing; AdminScreen.test.tsx: asks for confirmation before running a control and does nothing until confirmed). Evidence:
apps/mobile/src/__tests__/admin/adminControls.test.ts,apps/web/app/[locale]/admin/operations/__tests__/OperationsAdminContent.test.tsx,apps/mobile/src/__tests__/screens/AdminScreen.test.tsx. - Indexer admin reads serve only allowlisted wallet-authenticated operators via GET, and report net protocol fee (admin.test.ts: rejects authenticated wallets that are not in the admin allowlist, rejects non-GET admin events before querying, uses net protocol fee, not gross taker fee, for /admin/fee-totals). Evidence:
apps/indexer/src/__tests__/api/routes/admin.test.ts.
- Each admin control builds the instruction with the right discriminator and account form for its governance route (adminControls.test.ts: $key builds an instruction tagged $discriminator; ControlsAdminContent.test.tsx: Pause button submits Pause (0x20), UpdateTickSize submits the config-global two-account form without a market; OperationsAdminContent.test.tsx: ClosePreallocatedChild submits the positional kind). Evidence:
- Known limits:
- Device and staging execution of the admin flows remain separate signoffs (superseded feature-support inventory).
compliance.geo-policy Geographic compliance and device integrity#
- Status: implemented. Last verified at
6cb0265aba3f7a3558b2b5c829b9a4974598db16. - Roadmap items: unplaced (Geographic compliance exists in the indexer and the apps and is in no item of roadmap section 9 (roadmap section 10).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: The geo policy lands nothing on chain..
The indexer applies a jurisdiction policy and records jurisdiction confirmations and device integrity checks (Play Integrity and attestation challenges); every geo decision of the API middleware, the WebSocket subscription check and the web RPC relay (through POST /internal/geo-audit) is written in batches to geo_compliance_audit, kept for GEO_AUDIT_RETENTION_DAYS by the geoAuditRetention job; verified-wallet country history is recorded in user_country_history; restricted users see the geo-restricted page or screen, and the web proxy also gates the builder, currency and admin transaction pages; responsible-trading limits are stored per wallet; the SDK and CLI read and confirm the jurisdiction attestation and read and set responsible-trading limits.
- Source:
apps/indexer/src/api/routes/compliance.ts,apps/indexer/src/api/routes/attestation.ts,apps/indexer/src/api/routes/responsibleTrading.ts,apps/indexer/src/middleware/geo.ts,apps/indexer/src/compliance/geoAuditRecorder.ts,apps/indexer/src/compliance/geoAuditIngest.ts,apps/web/lib/server/geoAuditForwarder.ts,apps/web/proxy.ts - CLI commands:
compliance attestation,compliance confirm,compliance limits,compliance set-limits - API routes:
GET /api/v1/compliance/jurisdiction-attestation,POST /api/v1/compliance/confirm-jurisdiction,POST /api/v1/compliance/verify-integrity,POST /api/v1/attestation/challenge,POST /api/v1/attestation/verify,GET /api/v1/responsible-trading,PUT /api/v1/responsible-trading - Web routes:
/[locale]/geo-restricted - Android screens:
GeoRestricted - Indexer jobs:
attestationChallengeCleanup,geoAuditRetention - Boundaries: callers anyone; signers wallet (signed API session); services indexer API, Google Play Integrity (Android).
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/api/compliance.ts, packages/core/src/api/__tests__/compliance.test.ts | getJurisdictionAttestation and confirmJurisdiction (explicit acceptance only), and getResponsibleTrading and updateResponsibleTrading (cool-off 24 to 8,760 hours, daily deposit limit), all wallet-signed. Device integrity checks (Play Integrity, attestation challenges) stay in the Android app by design. Tests are written, not run. |
| Rust SDK | yes | packages/sdk-rust/src/http/account.rs | SeesawHttpClient ports the TypeScript wallet account services under the http feature: wallet-signed routes take the wallet and an Ed25519 signer, and responses are checked against the signing wallet. |
| Python SDK | yes | packages/sdk-python/seesaw/http.py | SeesawHttpClient ports the TypeScript wallet account services: wallet-signed routes take the wallet and an Ed25519 signer, and responses are checked against the signing wallet. |
| CLI | yes | packages/cli/src/commands/accountServices.ts, packages/cli/src/__tests__/commands/account-services.test.ts | compliance attestation, confirm (requires --accept), limits and set-limits over @seesaw/core api/compliance.ts, wallet-signed. The old api compliance-check posted to a route the indexer does not serve and is deleted. Tests are written, not run. |
| Indexer | not-applicable | none | Compliance records come from API requests (confirmations, integrity checks), not from chain events. |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/compliance.ts, apps/indexer/src/api/routes/attestation.ts, apps/indexer/src/api/routes/responsibleTrading.ts | |
| Web | yes | apps/web/app/[locale]/geo-restricted/page.tsx | |
| Android | yes | apps/mobile/src/screens/GeoRestrictedScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | An operator policy, not an integration surface. |
- Journeys, normal mode: none. No journey index entry asserts the geo policy (suite-android-release-restricted asserts the client boundary only).
- Journeys, independent mode: none. No journey index entry asserts the geo policy (suite-android-release-restricted asserts the client boundary only).
- Formal obligations:
- Geo middleware fails closed: Cloudflare geo headers without trusted proxy provenance are rejected, and restricted countries, EU/EEA by default, TOR, VPN on sensitive endpoints and the global kill switch are all blocked (geoMiddleware.test.ts: fails closed when Cloudflare geo headers lack trusted proxy provenance, should block UK (GB) users, should block VPN on sensitive endpoints, should block all when global kill switch is on; mobile geoPolicy.test.ts isCountryRestricted). Evidence:
apps/indexer/src/middleware/geo.ts,apps/indexer/src/compliance/geoPolicy.ts,apps/indexer/src/__tests__/compliance/geoMiddleware.test.ts,apps/mobile/src/__tests__/compliance/geoPolicy.test.ts. - Device integrity is accepted only with a server-issued challenge bound to the authenticated wallet, consumed once, with a matching nonce and a fresh timestamp; basic-only device integrity, the client isEmulator flag and forged iOS results are refused (compliance.test.ts: requires a server-issued challenge bound to the authenticated wallet, atomically consumes a challenge so a replay is rejected before provider decode, rejects decoded Play Integrity verdicts whose nonce does not match the request nonce, does not accept basic-only device integrity, fails closed for forged iOS integrity results until App Attest verification exists). Evidence:
apps/indexer/src/api/routes/compliance.ts,apps/indexer/src/api/routes/attestation.ts,apps/indexer/src/api/routes/__tests__/compliance.test.ts,apps/mobile/src/__tests__/compliance/integrityCheck.test.ts. - Jurisdiction confirmation needs explicit consent and wallet auth; the web client clears a forged local cache when the server has no current attestation; responsible-trading cool-off is a wallet-authenticated monotonic upsert that cannot be cleared or shortened (compliance.test.ts: rejects with 400 when consent is not explicitly given; jurisdiction.test.ts: clears forged local cache and rejects when the server has no current attestation; responsibleTrading.test.ts: rejects attempts to clear or shorten cool-off through invalid durations, requires wallet authentication). Evidence:
apps/indexer/src/api/routes/responsibleTrading.ts,apps/indexer/src/api/routes/__tests__/responsibleTrading.test.ts,apps/web/lib/compliance/__tests__/jurisdiction.test.ts,apps/indexer/src/api/routes/__tests__/compliance.test.ts. - Geo decisions are persisted without blocking a request: rows are normalized to the geo_compliance_audit columns and rule-id CHECK, queued in a bounded buffer and written by multi-row inserts; a full queue or a failed insert drops and counts rows and never throws; country history is recorded only for verified wallets with a real country; the web relay forwards fire and forget, and the ingest route needs the bearer secret and refuses unknown fields (geoAuditRecorder.test.ts, geoAuditIngest.test.ts, geoAuditForwarder.test.ts, auditLog.test.ts cleanupOldAuditRecords, proxy.test.ts geo compliance). Evidence:
apps/indexer/src/compliance/geoAuditRecorder.ts,apps/indexer/src/compliance/geoAuditIngest.ts,apps/indexer/src/__tests__/compliance/geoAuditRecorder.test.ts,apps/indexer/src/__tests__/compliance/geoAuditIngest.test.ts,apps/web/lib/server/__tests__/geoAuditForwarder.test.ts,apps/web/proxy.test.ts.
- Geo middleware fails closed: Cloudflare geo headers without trusted proxy provenance are rejected, and restricted countries, EU/EEA by default, TOR, VPN on sensitive endpoints and the global kill switch are all blocked (geoMiddleware.test.ts: fails closed when Cloudflare geo headers lack trusted proxy provenance, should block UK (GB) users, should block VPN on sensitive endpoints, should block all when global kill switch is on; mobile geoPolicy.test.ts isCountryRestricted). Evidence:
- Known limits:
- Country-change flagging (docs/internal/GEO_COMPLIANCE.md, Country teleportation) records history only: the window, country count, review flow and user_country_history retention are open owner questions, so nothing writes compliance_flags yet.
- Web relay audit rows need GEO_AUDIT_INGEST_URL and GEO_AUDIT_INGEST_SECRET on the web app and the same secret on the indexer; without them the relay still blocks but stores no row (external signoff).
app.localization Localization#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Localization exists in both apps and is in no item of roadmap section 9 (roadmap section 10).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client; chain left out: Localization lands nothing on chain.; record left out: Localization writes no indexer or API record (its indexer and api surfaces are not-applicable)..
The web app routes every page under a locale prefix and keeps 29 message catalogs (apps/web/messages); the mobile app keeps 16 locale files (apps/mobile/src/i18n). New copy is translated into every kept locale or the locale is removed.
- Source:
apps/web/i18n/routing.ts,apps/web/i18n/locales.json,apps/mobile/src/i18n/index.ts,apps/web/app/[locale]/settings/page.tsx - Web routes:
/[locale]/settings - Android screens:
Settings - Boundaries: callers anyone; signers none; services none.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | Localization is an app concern. |
| Rust SDK | not-applicable | none | Localization is an app concern. |
| Python SDK | not-applicable | none | Localization is an app concern. |
| CLI | not-applicable | none | The CLI prints JSON envelopes and English help only. |
| Indexer | not-applicable | none | No localized indexer output. |
| API | not-applicable | none | No localized API output. |
| Web | yes | apps/web/i18n/routing.ts, apps/web/i18n/locales.json | |
| Android | yes | apps/mobile/src/i18n/index.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | No integration surface. |
- Journeys, normal mode: none. Partial evidence:
suite-web-preferences-discovery(web; UI read; suite source matchestoHaveAttribute\('lang', 'es'\); pins assertion; partial evidence, does not count),suite-android-preferences(android; UI read; suite source matchesexpect\(persistedSpanish\)\.toBeSelected\(\); pins assertion; partial evidence, does not count). Its suite suite-web-preferences-discovery fails on the one-command stack (the market title differs from the API marketName, JF-09), and suite-android-preferences has no recorded run (no Android device on this machine). - Journeys, independent mode: none. The suites that exercise it run in normal mode only; no entry runs in independent mode.
- Formal obligations:
- Every kept mobile locale contains every English translation key, and a locale with no reviewed safety-copy entry fails closed (i18nCoverage.test.ts: <locale> contains every English translation key, fails closed for a locale with no reviewed entry, even with English copy). Evidence:
apps/mobile/src/i18n/index.ts,apps/mobile/src/__tests__/i18nCoverage.test.ts. - Locales visible in the web switcher are fully covered; retired locales are dropped from routing, metadata, catalogues and the menu, and their prefixes permanently redirect to English (locales.test.ts: marks switcher-visible locales as fully covered outside English-only namespaces, drops retired locales from routing, metadata, catalogues and the language menu; proxy.test.ts: permanently redirects a retired locale prefix to the same path under English; LocaleSwitcher.test.tsx: only shows enabled locales in the menu). Evidence:
apps/web/i18n/routing.ts,apps/web/i18n/locales.json,apps/web/i18n/locales.test.ts,apps/web/proxy.test.ts. - Every namespace a web page reads is provided by that page, and every literal translation key read in code exists in en.json (namespaceCoverage.test.ts: every namespace a page tree reads is provided by that page, every literal key read through a resolvable translator exists in en.json). Evidence:
apps/web/i18n/__tests__/namespaceCoverage.test.ts,apps/web/i18n/__tests__/namespaces.test.ts.
- Every kept mobile locale contains every English translation key, and a locale with no reviewed safety-copy entry fails closed (i18nCoverage.test.ts: <locale> contains every English translation key, fails closed for a locale with no reviewed entry, even with English copy). Evidence:
discovery.market-listing Market listing and detail#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-H. Owning phase: 8. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: Listing markets lands nothing on chain..
Clients list markets and show one market with its book, trades and candles: the indexer serves markets, the current market, trades and candles; the web home, markets and market pages and the mobile Home, Search and MarketDetail screens render them; the CLI reads one market from chain or lists markets from the API.
- Source:
apps/indexer/src/api/routes/markets.ts,apps/indexer/src/api/routes/trades.ts,packages/core/src/marketDiscovery.ts,packages/core/src/marketSearch.ts,packages/pyth-price/src/stream.ts,packages/api-contracts/src/markets.ts,apps/indexer/src/websocket/server.ts - CLI commands:
market get,api markets,api market - API routes:
GET /api/v1/markets,GET /api/v1/markets/{marketId},GET /api/v1/markets/current,GET /api/v1/markets/{marketId}/candles,GET /api/v1/markets/{marketId}/trades,GET /api/v1/trades - Web routes:
/[locale],/[locale]/markets,/[locale]/markets/[marketId],/[locale]/markets/[marketId]/live - Android screens:
Home,Search,MarketDetail - Indexer WebSocket channels:
market - Boundaries: callers anyone; signers none; services indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/api/markets.ts, packages/core/src/marketDiscovery.ts | |
| Rust SDK | yes | packages/sdk-rust/src/http.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/http.py | |
| CLI | yes | packages/cli/src/commands/market/index.ts, packages/cli/src/commands/api/index.ts | |
| Indexer | yes | apps/indexer/src/processors/marketProjection.ts | |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/markets.ts, apps/indexer/src/api/routes/trades.ts | |
| Web | yes | apps/web/app/[locale]/markets/page.tsx, apps/web/app/[locale]/markets/[marketId]/page.tsx | |
| Android | yes | apps/mobile/src/screens/HomeScreen.tsx, apps/mobile/src/screens/MarketDetailScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/01-http-client.ts, packages/sdk-rust/examples/http_client.rs, packages/sdk-python/examples/http_client.py |
- Journeys, normal mode: none. suite-web-discovery, suite-android-discovery, suite-web-flows, suite-web-pagination, suite-web-quality and suite-web-outages assert the client boundary only; this row needs client and record.
- Journeys, independent mode: none. suite-web-discovery, suite-android-discovery, suite-web-flows, suite-web-pagination, suite-web-quality and suite-web-outages assert the client boundary only; this row needs client and record.
- Formal obligations:
- The market list is bounded and exact: limit above 100 is rejected, unknown search text never widens into an unfiltered catalogue, and the settlement-mint filter applies identically to rows and count (markets.test.ts: should reject limit above 100 with validation error, does not turn unknown search text into an unfiltered catalogue, applies the exact settlement mint to both paginated rows and count). Evidence:
apps/indexer/src/api/routes/markets.ts,apps/indexer/src/api/routes/__tests__/markets.test.ts,packages/core/src/__tests__/marketSearch.test.ts. - Trade money fields are served as lossless u64 strings, null fees are not coerced to 0, and malformed cursors or tx filters are rejected (trades.test.ts: returns trades with both treasury_index aliases and u64 money fields as strings, preserves null fee fields (does not coerce null to 0), rejects malformed trade pagination cursors). Evidence:
apps/indexer/src/api/routes/trades.ts,apps/indexer/src/api/routes/__tests__/trades.test.ts. - Discovery depth fails closed on missing, mismatched or duplicated spline state and stops new issuance at the market cap; public market WebSocket subscriptions are blocked from high-confidence blocked jurisdictions (marketDiscovery.test.ts: fails closed on missing, mismatched or duplicated mandatory spline state, excludes new issuance at the cap but retains existing resting shares; websocket-auth.test.ts: blocks public market subscriptions from high-confidence blocked jurisdictions). Evidence:
packages/core/src/marketDiscovery.ts,packages/core/src/__tests__/marketDiscovery.test.ts,apps/indexer/src/websocket/server.ts,apps/indexer/src/__tests__/websocket-auth.test.ts.
- The market list is bounded and exact: limit above 100 is rejected, unknown search text never widens into an unfiltered catalogue, and the settlement-mint filter applies identically to rows and count (markets.test.ts: should reject limit above 100 with validation error, does not turn unknown search text into an unfiltered catalogue, applies the exact settlement mint to both paginated rows and count). Evidence:
- Known limits:
- The app list and other indexed views require the API. The SDK and CLI can independently rebuild discovery rankings from public RPC accounts; see discovery.reproducible-ranking.
discovery.watchlist Watchlist#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (A watchlist is a product feature in no item of roadmap section 9.). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: A watchlist lands nothing on chain..
A wallet adds and removes markets on its watchlist through the indexer, and both apps show the watched markets.
- Source:
apps/indexer/src/api/routes/watchlist.ts - CLI commands:
watchlist list,watchlist add,watchlist remove - API routes:
GET /api/v1/watchlist,POST /api/v1/watchlist,DELETE /api/v1/watchlist/{marketId},GET /api/v1/watchlist/markets - Web routes:
/[locale]/watchlist - Android screens:
Watchlist - Boundaries: callers wallet owner; signers wallet (signed API session); services indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/api/walletServices.ts, packages/core/src/api/__tests__/walletServices.test.ts | listWatchlist, addToWatchlist and removeFromWatchlist sign with ApiClient.walletRequest and check the owner binding; getWatchlistMarkets hydrates up to 50 public market rows. Tests are written, not run. |
| Rust SDK | yes | packages/sdk-rust/src/http/account.rs | SeesawHttpClient ports the TypeScript wallet account services under the http feature: wallet-signed routes take the wallet and an Ed25519 signer, and responses are checked against the signing wallet. |
| Python SDK | yes | packages/sdk-python/seesaw/http.py | SeesawHttpClient ports the TypeScript wallet account services: wallet-signed routes take the wallet and an Ed25519 signer, and responses are checked against the signing wallet. |
| CLI | yes | packages/cli/src/commands/accountServices.ts, packages/cli/src/__tests__/commands/account-services.test.ts | watchlist list, add and remove sign with the configured keypair. Tests are written, not run. |
| Indexer | not-applicable | none | A watchlist is written through the API, not ingested from chain. |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/watchlist.ts | |
| Web | yes | apps/web/app/[locale]/watchlist/page.tsx | |
| Android | yes | apps/mobile/src/screens/WatchlistScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-python/examples/account_services.py, packages/sdk-rust/examples/account_services.rs, packages/core/examples/51-wallet-account-services.ts | 51-wallet-account-services.ts, account_services.py and account_services.rs drive the wallet routes of each SDK against a fixture indexer. |
- Journeys, normal mode: none. Partial evidence:
suite-android-watchlist(android; UI read; suite source matcheswaitForWatchlistRow\(database, target, marketAddress, true\); pins assertion; partial evidence, does not count). Its only suite, suite-android-watchlist, has no recorded run (no Android device on this machine). - Journeys, independent mode: none. The suites that exercise it run in normal mode only; no entry runs in independent mode.
- Formal obligations:
- Watchlist writes accept only a Solana market address; the removed marketId alias and deprecated UUID ids are rejected, and public listing hydrates only from Solana markets (watchlist.test.ts: rejects the removed marketId request alias even for a Solana address, rejects deprecated UUID market ids for watchlist writes, hydrates public watchlist markets from Solana markets only). Evidence:
apps/indexer/src/api/routes/watchlist.ts,apps/indexer/src/__tests__/api/routes/watchlist.test.ts. - Watchlist routes return 401 without an authenticated wallet and only read or write the caller's own rows; uncovered; phase 15. Evidence:
apps/indexer/src/api/routes/watchlist.ts.
- Watchlist writes accept only a Solana market address; the removed marketId alias and deprecated UUID ids are rejected, and public listing hydrates only from Solana markets (watchlist.test.ts: rejects the removed marketId request alias even for a Solana address, rejects deprecated UUID market ids for watchlist writes, hydrates public watchlist markets from Solana markets only). Evidence:
engagement.leaderboard Leaderboards#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Leaderboards are a product feature in no item of roadmap section 9.). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 missing (sdkRust is partial; sdkPython is partial); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: A leaderboard lands nothing on chain..
The indexer serves trader leaderboards for the daily, weekly, monthly and all-time periods (routes/leaderboard.ts) and a referral leaderboard; the creator leaderboard is GET /api/v1/creators (fees.creator-fee). Both apps and the CLI show them.
- Source:
apps/indexer/src/api/routes/leaderboard.ts,apps/indexer/src/jobs/scheduler.ts - CLI commands:
api leaderboard - API routes:
GET /api/v1/leaderboard,GET /api/v1/leaderboard/{period},GET /api/v1/referrals/leaderboard - Web routes:
/[locale]/leaderboard - Android screens:
Leaderboard - Indexer jobs:
leaderboardDaily,leaderboardWeekly - Boundaries: callers anyone; signers none; services indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/api/users.ts | |
| Rust SDK | partial | packages/sdk-rust/src/http.rs | The Rust HTTP client reads the referral leaderboard only. |
| Python SDK | partial | packages/sdk-python/seesaw/http.py | The Python HTTP client reads the referral leaderboard only. |
| CLI | yes | packages/cli/src/commands/api/index.ts | |
| Indexer | yes | apps/indexer/src/jobs/leaderboardSnapshot.ts | |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/leaderboard.ts | |
| Web | yes | apps/web/app/[locale]/leaderboard/page.tsx | |
| Android | yes | apps/mobile/src/screens/LeaderboardScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/48-leaderboards.ts, packages/sdk-python/examples/leaderboards.py, packages/sdk-rust/examples/leaderboards.rs |
- Journeys, normal mode: none. Partial evidence:
engagement-leaderboard(cli: 5 of 21 action steps return a client value; sdk-typescript: 5 of 21 action steps return a client value; stepengagement.leaderboard; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-engagement-leaderboard(web: 0 of 1 action steps return a client value; android: 0 of 1 action steps return a client value; stepengagement.leaderboard; no passed cell of a client of this capability in normal mode; partial evidence, does not count). engagement-leaderboard (CLI, TypeScript SDK) settles five positions of one trader, then reads the weekly leader as a record-only read; app-engagement-leaderboard reads the same leader from the web and Android apps and must run after a seeded journey. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
engagement-leaderboard(cli: 5 of 21 action steps return a client value; sdk-typescript: 5 of 21 action steps return a client value; stepengagement.leaderboard; no passed cell of a client of this capability in independent mode; partial evidence, does not count). engagement-leaderboard (CLI, TypeScript SDK) seeds five settled positions and reads the weekly leader as a record-only read; the apps run in normal mode only. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- An invalid period is rejected with 400, and wallets that opted into anonymity have their wallet and display name hidden (leaderboard.test.ts: rejects an invalid period with 400, anonymizes wallet + display name when is_anonymous=true). Evidence:
apps/indexer/src/api/routes/leaderboard.ts,apps/indexer/src/api/routes/__tests__/leaderboard.test.ts. - Pagination cursors are bound to their period, snapshot date and session; they expire instead of silently switching to a refreshed snapshot, and replays or out-of-range values are rejected (leaderboard.test.ts: binds snapshot cursors to the original UTC date across rollover, expires a snapshot cursor instead of silently switching to a refreshed snapshot or live mode, rejects a cursor replayed against another period or with hostile mode/filter fields, rejects cursor values outside PostgreSQL int4/int8 bounds before querying). Evidence:
apps/indexer/src/api/routes/leaderboard.ts,apps/indexer/src/api/routes/__tests__/leaderboard.test.ts. - Snapshot rankings break ties deterministically by trade count and owner (leaderboardSnapshot.test.ts: ranks all-time ties deterministically by trade count and owner, ranks period ties deterministically by trade count and owner). Evidence:
apps/indexer/src/jobs/scheduler.ts,apps/indexer/src/__tests__/jobs/leaderboardSnapshot.test.ts.
- An invalid period is rejected with 400, and wallets that opted into anonymity have their wallet and display name hidden (leaderboard.test.ts: rejects an invalid period with 400, anonymizes wallet + display name when is_anonymous=true). Evidence:
- Known limits:
- Search, discovery, charts, history, leaderboards and other indexed analytics stay API-dependent: the RPC fallback cannot rebuild them (superseded feature-support inventory, API/indexer outage boundary).
engagement.achievements Achievements, challenges and streaks#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Achievements are a product feature in no item of roadmap section 9.). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 missing (sdkRust is no; sdkPython is no); 5 missing (examples is partial); 6 met; 7 not evaluated (migrations are not checked); 8 missing (android is partial); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: Achievements lands nothing on chain..
The indexer awards achievements, daily challenges and trading streaks per wallet and serves them; both apps and the CLI show them.
- Source:
apps/indexer/src/api/routes/achievements.ts,apps/indexer/src/api/routes/challenges.ts,packages/core/src/challenges.ts - CLI commands:
api achievements - API routes:
GET /api/v1/achievements,GET /api/v1/achievements/all,GET /api/v1/challenges/today,GET /api/v1/challenges/progress,GET /api/v1/challenges/history,GET /api/v1/user/streak - Web routes:
/[locale]/achievements - Android screens:
Achievements - Indexer jobs:
streakUpdater - Boundaries: callers wallet owner; signers wallet (signed API session); services indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/api/users.ts, packages/core/src/challenges.ts | |
| Rust SDK | no | none | The Rust SDK has no achievements client. |
| Python SDK | no | none | The Python SDK has no achievements client. |
| CLI | yes | packages/cli/src/commands/api/index.ts | |
| Indexer | yes | apps/indexer/src/jobs/streakUpdater.ts, apps/indexer/src/jobs/achievementProcessor.ts, apps/indexer/src/jobs/statsAggregator.ts | |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/achievements.ts, apps/indexer/src/api/routes/challenges.ts | |
| Web | yes | apps/web/app/[locale]/achievements/page.tsx | |
| Android | partial | apps/mobile/src/screens/AchievementsScreen.tsx, apps/mobile/src/hooks/useAchievements.ts | Parity finding (2026-11-24): the Achievements screen shows a catalog defined in the app (apps/mobile/src/hooks/useAchievements.ts, 18 entries such as trades_10 and streak_3, with progress kept in AsyncStorage), not the indexer catalog that GET /api/v1/achievements/all serves (7 entries such as ten_trades, apps/indexer/src/api/routes/achievements.ts). The web app and the CLI show the served catalog, so Android disagrees with them on achievement ids, thresholds and progress. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | partial | packages/core/examples/53-daily-challenge-progress.ts, packages/core/examples/59-achievement-catalog.ts | TypeScript examples derive daily-challenge progress and read the public achievement catalog. Local catalog execution is pending. Rust and Python have no achievements client. |
- Journeys, normal mode: none. Partial evidence:
engagement-achievement-catalog(web: 0 of 1 action steps return a client value; cli: 0 of 1 action steps return a client value; sdk-typescript: 0 of 1 action steps return a client value; stepengagement.achievement-catalog; no passed cell of a client of this capability in normal mode; partial evidence, does not count). engagement-achievement-catalog reads the public catalog from the web app, the CLI (api achievements --all) and the TypeScript SDK (fetchAchievementCatalog) as a record-only read. Android shows an app-defined catalog, not the served one; signed-in achievements, challenges and streaks have no journey. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
engagement-achievement-catalog(web: 0 of 1 action steps return a client value; cli: 0 of 1 action steps return a client value; sdk-typescript: 0 of 1 action steps return a client value; stepengagement.achievement-catalog; no passed cell of a client of this capability in independent mode; partial evidence, does not count). engagement-achievement-catalog runs from the CLI and the TypeScript SDK in independent mode; the web app runs in normal mode only. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Achievements unlock exactly at their thresholds, already-unlocked achievements are skipped, and accuracy achievements need at least 20 trades (achievementProcessor.test.ts: should not unlock fifty_trades at 49 trades, should skip already unlocked achievements, should require minimum 20 trades for accuracy achievements, should use longestStreak, not currentStreak for achievement). Evidence:
apps/indexer/src/jobs/achievementProcessor.ts,apps/indexer/src/__tests__/jobs/achievementProcessor.test.ts. - Daily challenge metrics count only fills inside the current UTC day, ignore pending and unparseable fills, and compute the win streak only from resolved fills (challenges.test.ts: excludes fills from yesterday (day-boundary correctness), excludes fills from tomorrow (upper day-boundary), ignores pending fills when computing the streak). Evidence:
packages/core/src/challenges.ts,packages/core/src/__tests__/challenges.test.ts. - Achievement and challenge routes return 401 without an authenticated wallet and serve only the caller's progress; uncovered; phase 15. Evidence:
apps/indexer/src/api/routes/challenges.ts.
- Achievements unlock exactly at their thresholds, already-unlocked achievements are skipped, and accuracy achievements need at least 20 trades (achievementProcessor.test.ts: should not unlock fifty_trades at 49 trades, should skip already unlocked achievements, should require minimum 20 trades for accuracy achievements, should use longestStreak, not currentStreak for achievement). Evidence:
notifications.alerts Price alerts and notifications#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Alerts and notifications are a product feature in no item of roadmap section 9.). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: An alert or a notification preference lands nothing on chain..
A wallet creates price alerts, sets notification preferences, registers push tokens and reads its inbox; indexer jobs evaluate alerts and dispatch notifications.
- Source:
apps/indexer/src/api/routes/alerts.ts,apps/indexer/src/api/routes/notifications.ts - CLI commands:
alerts list,alerts create,alerts delete,notifications inbox,notifications read,notifications prefs,notifications set-prefs - API routes:
GET /api/v1/alerts,POST /api/v1/alerts,DELETE /api/v1/alerts/{alertId},GET /api/v1/notifications/inbox,GET /api/v1/notifications/prefs,PUT /api/v1/notifications/prefs,GET /api/v1/notifications/tokens,POST /api/v1/notifications/register,POST /api/v1/notifications/unregister,PUT /api/v1/notifications/inbox/{notificationId}/read - Web routes:
/[locale]/alerts - Android screens:
Alerts,AccountAlerts - Indexer jobs:
dlqProcessor,notificationDispatcher,priceAlerts - Boundaries: callers wallet owner; signers wallet (signed API session); services indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/api/walletServices.ts, packages/core/src/api/__tests__/walletServices.test.ts | Price alerts (list, create in basis points, delete), the notification inbox and read marks, preferences, and Expo push-token registration, all wallet-signed. Tests are written, not run. |
| Rust SDK | yes | packages/sdk-rust/src/http/account.rs | SeesawHttpClient ports the TypeScript wallet account services under the http feature: wallet-signed routes take the wallet and an Ed25519 signer, and responses are checked against the signing wallet. |
| Python SDK | yes | packages/sdk-python/seesaw/http.py | SeesawHttpClient ports the TypeScript wallet account services: wallet-signed routes take the wallet and an Ed25519 signer, and responses are checked against the signing wallet. |
| CLI | yes | packages/cli/src/commands/accountServices.ts, packages/cli/src/__tests__/commands/account-services.test.ts | alerts list, create and delete; notifications inbox, read, prefs and set-prefs, all wallet-signed. Push-token registration is a device concern with no command by design. Tests are written, not run. |
| Indexer | yes | apps/indexer/src/jobs/alertChecker.ts, apps/indexer/src/jobs/notificationDispatcher.ts, apps/indexer/src/services/deadLetterQueue.ts | |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/alerts.ts, apps/indexer/src/api/routes/notifications.ts | |
| Web | yes | apps/web/app/[locale]/alerts/page.tsx | |
| Android | yes | apps/mobile/src/screens/AlertsScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-python/examples/account_services.py, packages/sdk-rust/examples/account_services.rs, packages/core/examples/51-wallet-account-services.ts | 51-wallet-account-services.ts, account_services.py and account_services.rs drive the wallet routes of each SDK against a fixture indexer. |
- Journeys, normal mode:
suite-web-alerts(web; UI read; suite source matchesexpect\(dbCreated\.rows\)\.toEqual; pins assertion),suite-web-notification-preferences(web; UI read; suite source matchesexpected one persisted notification preference row; pins assertion) - Journeys, independent mode: none. The suites that exercise it run in normal mode only; no entry runs in independent mode.
- Formal obligations:
- Price alerts need wallet auth, take a target price within 0..10000 and a valid direction, and are capped at 20 active alerts per user (alerts.test.ts: should reject unauthenticated requests, should reject targetPrice below 0, should reject targetPrice above 10000, should enforce maximum 20 active alerts per user). Evidence:
apps/indexer/src/api/routes/alerts.ts,apps/indexer/src/__tests__/api/routes/alerts.test.ts. - Inbox and preferences are scoped to the authenticated wallet: another wallet's notification cannot be marked read, and quiet hours need a complete window (notifications.test.ts: does not mark another wallet notification as read, rejects enabling quiet hours without a complete window). Evidence:
apps/indexer/src/api/routes/notifications.ts,apps/indexer/src/__tests__/api/routes/notifications.test.ts. - Push dispatch sends only to valid Expo tokens of the target user, and triggered alerts stay committed when a best-effort notification fails (pushNotifications.test.ts: should filter out invalid tokens, should reject partial matches; alertChecker.test.ts: keeps triggered alerts committed when one best-effort notification fails; notificationDispatcher.test.ts: skips modeled channels without configured providers). Evidence:
apps/indexer/src/__tests__/services/pushNotifications.test.ts,apps/indexer/src/__tests__/jobs/alertChecker.test.ts,apps/indexer/src/__tests__/jobs/notificationDispatcher.test.ts.
- Price alerts need wallet auth, take a target price within 0..10000 and a valid direction, and are capped at 20 active alerts per user (alerts.test.ts: should reject unauthenticated requests, should reject targetPrice below 0, should reject targetPrice above 10000, should enforce maximum 20 active alerts per user). Evidence:
social.profile-and-share Profiles, handles and share cards#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Profiles and share cards are a product feature in no item of roadmap section 9.). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: A profile or share lands nothing on chain..
A wallet claims a referral handle (apps/indexer/src/api/routes/handles.ts:20) and reads or edits its profile (apps/indexer/src/api/routes/user.ts:121-128); users create PnL share snapshots (apps/indexer/src/api/routes/share.ts:41,122) whose share page, card image and market Open Graph image the web app renders. Both apps claim handles and create share snapshots; neither app calls the profile routes.
- Source:
apps/indexer/src/api/routes/handles.ts,apps/indexer/src/api/routes/share.ts,apps/indexer/src/api/routes/user.ts - CLI commands:
profile show,profile set,handle resolve,handle claim,share create,share show - API routes:
GET /api/v1/handles/{query},POST /api/v1/handles,GET /api/v1/user/profile,PUT /api/v1/user/profile,GET /api/v1/share/{id},POST /api/v1/share - Web routes:
/[locale]/share/[id],/[locale]/share/[id]/card.png,/[locale]/markets/[marketId]/opengraph-image - Boundaries: callers wallet owner; signers wallet (signed API session); services indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/api/social.ts, packages/core/src/api/__tests__/social.test.ts | getWalletProfile and updateWalletProfile (wallet-bound), resolveReferralHandle and claimReferralHandle, and createShareSnapshot and getShareSnapshot. Tests are written, not run. |
| Rust SDK | yes | packages/sdk-rust/src/http/account.rs | SeesawHttpClient ports the TypeScript wallet account services under the http feature: wallet-signed routes take the wallet and an Ed25519 signer, and responses are checked against the signing wallet. |
| Python SDK | yes | packages/sdk-python/seesaw/http.py | SeesawHttpClient ports the TypeScript wallet account services: wallet-signed routes take the wallet and an Ed25519 signer, and responses are checked against the signing wallet. |
| CLI | yes | packages/cli/src/commands/accountServices.ts, packages/cli/src/__tests__/commands/account-services.test.ts | profile show and set, handle resolve and claim, share create and show. Tests are written, not run. |
| Indexer | not-applicable | none | Profiles, handles and shares are written through the API, not ingested from chain. |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/handles.ts, apps/indexer/src/api/routes/share.ts, apps/indexer/src/api/routes/user.ts | |
| Web | yes | apps/web/app/[locale]/share/[id]/page.tsx, apps/web/app/components/sharing/ShareCardButton.tsx, apps/web/lib/api.ts, apps/web/app/[locale]/referral/ReferralContent.tsx, apps/web/app/[locale]/settings/ProfileSection.tsx, apps/shared/profileSettings.ts, apps/web/app/[locale]/settings/__tests__/ProfileSection.test.tsx | The web claims handles (apps/web/lib/api.ts:837, called from apps/web/app/[locale]/referral/ReferralContent.tsx), creates share snapshots (apps/web/app/components/sharing/ShareCardButton.tsx:32, apps/web/lib/api.ts:812) and renders the share page (apps/web/app/[locale]/share/[id]/page.tsx:37); no web source calls GET or PUT /api/v1/user/profile. Settings edits the display name and the leaderboard anonymity flag through the core social client; by owner ruling 2026-11-24 ("Name + anonymity only", docs/internal/decisions/2026-11-24-confidential-refunds-records-profiles.md) the app sends no avatar. Tests are written, not run. |
| Android | yes | apps/mobile/src/services/shareCard.ts, apps/mobile/src/screens/ReferralScreen.tsx, apps/mobile/src/components/ProfileSettingsSection.tsx, apps/shared/profileSettings.ts, apps/mobile/src/__tests__/components/ProfileSettingsSection.test.tsx | The app resolves and claims handles (apps/mobile/src/screens/ReferralScreen.tsx:143,220-226) and creates share snapshots (apps/mobile/src/services/shareCard.ts:44-53); no mobile source calls the profile routes. Settings edits the display name and the leaderboard anonymity flag through the core social client, after the app HTTPS and pinned-host checks; by owner ruling 2026-11-24 ("Name + anonymity only", docs/internal/decisions/2026-11-24-confidential-refunds-records-profiles.md) the app sends no avatar. Tests are written, not run. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-python/examples/account_services.py, packages/sdk-rust/examples/account_services.rs, packages/core/examples/51-wallet-account-services.ts | 51-wallet-account-services.ts, account_services.py and account_services.rs drive the wallet routes of each SDK against a fixture indexer. |
- Journeys, normal mode: none. No journey index entry creates a share or a handle.
- Journeys, independent mode: none. No journey index entry creates a share or a handle.
- Formal obligations:
- Handle claims need wallet auth, a valid non-reserved handle normalized to lowercase, and fail with 409 when another wallet holds the handle (handles.test.ts: 401 when not authenticated, 409 when handle taken by another wallet; handleValidation.test.ts: rejects reserved words (case-insensitive), normalizes to lowercase). Evidence:
apps/indexer/src/api/routes/handles.ts,apps/indexer/src/api/routes/__tests__/handles.test.ts,apps/indexer/src/services/__tests__/handleValidation.test.ts. - A share snapshot can be created only by the authenticated owner; USD amounts are stored only when the owner opts in, and identical live snapshots are deduplicated (share.test.ts: rejects creation for a wallet other than the authenticated owner, stores % only when usd is not requested by the authenticated owner, deduplicates identical live snapshots by returning the existing share id). Evidence:
apps/indexer/src/api/routes/share.ts,apps/indexer/src/api/routes/__tests__/share.test.ts. - Profile reads and writes need wallet auth, and profile input is validated before any database transaction (user.test.ts: returns 401 for PUT /profile without auth (writes blocked), rejects displayName with disallowed characters (regex enforcement), rejects a NUL-bearing avatar URL before opening a database transaction). Evidence:
apps/indexer/src/api/routes/user.ts,apps/indexer/src/api/routes/__tests__/user.test.ts.
- Handle claims need wallet auth, a valid non-reserved handle normalized to lowercase, and fail with 409 when another wallet holds the handle (handles.test.ts: 401 when not authenticated, 409 when handle taken by another wallet; handleValidation.test.ts: rejects reserved words (case-insensitive), normalizes to lowercase). Evidence:
analytics.portfolio Portfolio, history and analytics#
- Status: implemented. Last verified at
2a5660b2f4fdafe0236d43a8f9e7b7aaa870ba42. - Roadmap items:
M-J. Owning phase: 11. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: Reading a portfolio lands nothing on chain..
Clients show a wallet its positions, open orders, balances, trade history, activity, profit and loss and platform statistics, read from the indexer projections (and positions from chain in the CLI); these are analytics, not enforced limits. Phase 11 adds scenario exposure, concentration, fair-value references and depth bands computed once in @seesaw/core (packages/core/src/analytics/) and shown in the web and Android portfolio and market screens, each labeled "Analytics — not an enforced limit".
- Source:
apps/indexer/src/api/routes/positions.ts,apps/indexer/src/api/routes/stats.ts,apps/indexer/src/api/routes/activity.ts,packages/core/src/api/positions.ts,apps/indexer/src/websocket/server.ts,packages/core/src/analytics/index.ts - CLI commands:
position get,api stats,api stats-personal - API routes:
GET /api/v1/positions,POST /api/v1/positions/session,GET /api/v1/user/positions,GET /api/v1/user/balance,GET /api/v1/activity/{wallet},GET /api/v1/stats,GET /api/v1/stats/currencies,GET /api/v1/stats/history,GET /api/v1/stats/platform,GET /api/v1/stats/trades,GET /api/v1/stats/user/{wallet}/pnl-history,GET /api/v1/wallet/{address}/analytics - Web routes:
/[locale]/portfolio,/[locale]/portfolio/trades,/[locale]/history,/[locale]/stats,/[locale]/leaderboard/[address] - Android screens:
Portfolio,Activity,TradeHistory,Stats,WalletAnalytics - Indexer WebSocket channels:
positions - Indexer jobs:
statsAggregator - Boundaries: callers wallet owner; signers wallet (signed API session); services indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/api/positions.ts, packages/core/src/analytics/scenario.ts, packages/core/src/analytics/concentration.ts, packages/core/src/analytics/bookAnalytics.ts | |
| Rust SDK | yes | packages/sdk-rust/src/http.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/http.py | |
| CLI | yes | packages/cli/src/commands/position/index.ts, packages/cli/src/commands/api/index.ts | |
| Indexer | yes | apps/indexer/src/jobs/statsAggregator.ts | |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/positions.ts, apps/indexer/src/api/routes/stats.ts, apps/indexer/src/api/routes/activity.ts | |
| Web | yes | apps/web/app/[locale]/portfolio/page.tsx, apps/web/app/[locale]/stats/page.tsx, apps/web/app/[locale]/portfolio/PortfolioAnalyticsSection.tsx, apps/web/app/components/trading/MarketAnalyticsStrip.tsx | |
| Android | yes | apps/mobile/src/screens/PortfolioScreen.tsx, apps/mobile/src/screens/WalletAnalyticsScreen.tsx, apps/mobile/src/components/portfolio/PortfolioAnalyticsCard.tsx, apps/mobile/src/screens/marketDetail/MarketAnalyticsBlock.tsx | |
| iOS | no | none | No iOS app: owner decision R8 of 2026-11-17 keeps mobile Android-only (docs/internal/decisions/2026-11-17-ios-scope-r8.md). |
| Examples | yes | packages/core/examples/04-authenticated-positions.ts, packages/sdk-rust/examples/rpc_escape_hatch.rs, packages/sdk-python/examples/ws_positions.py, packages/sdk-python/examples/rpc_escape_hatch.py |
- Journeys, normal mode: none. Partial evidence:
suite-web-portfolio-read(web; UI read; suite source matchestoContainText\('Analytics — not an enforced limit'\); pins assertion; partial evidence, does not count). suite-web-portfolio-read (web, client and record) has not passed: qa/e2e/journeys/suite-runs.json records it as cannot-run. No Android suite reads the portfolio. - Journeys, independent mode: none. The web suites run in normal mode only; no SDK journey reads the portfolio.
- Formal obligations:
- Positions and activity are served only to the authenticated owner; asking for another wallet returns 404 or is rejected (positions.test.ts: returns 404 (NOT 200/403) when wallet A tries to read wallet B's positions via ?owner; activity.test.ts: requires wallet auth and rejects requests for another wallet; stats.test.ts: should reject unauthenticated requests). Evidence:
apps/indexer/src/api/routes/positions.ts,apps/indexer/src/api/routes/__tests__/positions.test.ts,apps/indexer/src/api/routes/__tests__/activity.test.ts,apps/indexer/src/api/routes/stats.ts. - Displayed amounts use the settlement mint: totals are kept per settlement mint and never add two currencies, share atoms are valued at the settlement currency's precision, stats fail closed on a missing or malformed mint, and no figures show while the mint's currency is unknown (activity.test.ts: returns one summary total per settlement mint and never adds two currencies; analytics.test.ts: values share atoms at the settlement currency precision; stats.test.ts: uses an explicit mint and fails closed for a missing default or malformed mint; PortfolioAnalyticsSection.test.tsx: shows no figures for a mint whose currency is still loading; PortfolioAnalyticsCard.test.tsx: shows no figures while the settlement currency is unknown). Evidence:
packages/core/src/analytics/index.ts,packages/core/src/__tests__/analytics.test.ts,apps/indexer/src/api/routes/activity.ts,apps/web/app/[locale]/portfolio/__tests__/PortfolioAnalyticsSection.test.tsx. - Scenario extremes equal the sums of per-market extremes, concentration shares never exceed 10000 bps, and the panel is labeled as analytics, not an enforced limit (analytics.test.ts: property: enumerated extremes equal the sums of per-market extremes, property: market shares never exceed 10000 bps in total; PortfolioAnalyticsSection.test.tsx: labels the panel as analytics, not an enforced limit). Evidence:
packages/core/src/analytics/index.ts,packages/core/src/__tests__/analytics.test.ts,apps/web/app/[locale]/portfolio/__tests__/PortfolioAnalyticsSection.test.tsx,apps/mobile/src/__tests__/components/portfolio/PortfolioAnalyticsCard.test.tsx.
- Positions and activity are served only to the authenticated owner; asking for another wallet returns 404 or is rejected (positions.test.ts: returns 404 (NOT 200/403) when wallet A tries to read wallet B's positions via ?owner; activity.test.ts: requires wallet auth and rejects requests for another wallet; stats.test.ts: should reject unauthenticated requests). Evidence:
- Known limits:
- Search, discovery, charts, history, leaderboards and other indexed analytics stay API-dependent: the RPC fallback cannot rebuild them (superseded feature-support inventory, API/indexer outage boundary).
- Analytics, not enforced limits: scenario P&L is measured from the current mark (not cost basis) and leaves open orders out.
- Concentration shares across settlement currencies are not shown (no common unit until a valuation policy exists).
- Resolution source is a coarse bucket (Pyth, external, unknown); spline fair value reads "—" until the apps fetch the spline for display; mobile has no last-trade price.
- The analytics copy in 28 web and 15 mobile locales is a machine draft awaiting human review.
embed.widget Embeddable market widget#
- Status: implemented. Last verified at
2a5660b2f4fdafe0236d43a8f9e7b7aaa870ba42. - Roadmap items:
M-J. Owning phase: 11. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client; chain left out: An embed lands nothing on chain.; record left out: An embed writes no indexer or API record (its indexer and api surfaces are not-applicable)..
The web app serves an embeddable, read-only page for one market (apps/web/app/embed/[marketId]/page.tsx) that reads theme, locale and a referral ref and carries the ref only on its first-party trade link. The TypeScript, Rust and Python SDKs build the embed URL, a sandboxed iframe snippet and a referral link (shared vectors test-vectors/embed-widget.json), and the CLI prints them; the optional PlaceOrder referral binding stays in the same widget modules.
- Source:
apps/web/app/embed/[marketId]/page.tsx,apps/web/lib/referralRef.ts,packages/core/src/widget/index.ts,packages/core/src/widget/embed.ts,packages/sdk-rust/src/widget.rs,packages/sdk-python/seesaw/widget.py,packages/cli/src/commands/embed/index.ts,test-vectors/embed-widget.json - CLI commands:
embed url,embed snippet,referral link - Web routes:
/embed/[marketId] - Boundaries: callers anyone; signers none; services indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/widget/embed.ts, packages/core/src/widget/index.ts | |
| Rust SDK | yes | packages/sdk-rust/src/widget.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/widget.py | |
| CLI | yes | packages/cli/src/commands/embed/index.ts | |
| Indexer | not-applicable | none | The embed reads market data through the existing market routes. |
| API | not-applicable | none | The embed reads market data through the existing market routes. |
| Web | yes | apps/web/app/embed/[marketId]/page.tsx, apps/web/lib/referralRef.ts | |
| Android | not-applicable | none | An embed is a web surface. |
| iOS | no | none | No iOS app: owner decision R8 of 2026-11-17 keeps mobile Android-only (docs/internal/decisions/2026-11-17-ios-scope-r8.md). |
| Examples | yes | packages/core/examples/17-embed-widget.ts, packages/sdk-rust/examples/embed_widget.rs, packages/sdk-python/examples/embed_widget.py |
- Journeys, normal mode: none. Partial evidence:
embed-referral(sdk-typescript: 5 of 5 action steps return a client value; steporder.place-referred; no passed cell of a client of this capability in normal mode; partial evidence, does not count),embed-referral-web(web: 1 of 5 action steps return a client value; steporder.place-referred; no passed cell of a client of this capability in normal mode; partial evidence, does not count). embed-referral has run only in independent mode (run tt08-202611180345). No normal-mode cell of embed-referral or embed-referral-web has passed; both are cannot-run in qa/e2e/journeys/matrix.json. - Journeys, independent mode:
embed-referral(sdk-typescript: 5 of 5 action steps return a client value; steporder.place-referred; passed on a real stack for sdk-typescript) - Formal obligations:
- The embed page is read-only and renders without auth cookies; it ignores an invalid theme, locale or ref, carries a valid ref only on its first-party trade link, and framing is allowed only on /embed/<marketId> (embed page.test.tsx: renders a read-only market widget without auth cookies, ignores an invalid theme, locale or ref; proxy.test.ts: allows framing only for embed routes, keeps the bare embed path and similar prefixes frame-denied, does not capture referral cookies on embed routes). Evidence:
apps/web/app/embed/[marketId]/page.tsx,apps/web/app/embed/[marketId]/__tests__/page.test.tsx,apps/web/proxy.test.ts,apps/web/lib/referralRef.ts. - The TypeScript, Rust, Python and CLI builders agree on the shared vectors for ref acceptance, embed URL, snippet and referral link; the snippet always carries sandbox, lazy loading and a referrer policy, with every attribute escaped (embed.test.ts: always carries the sandbox, lazy loading, a referrer policy and a title, escapes every attribute value; widget_vectors.rs: widget_ref_acceptance_matches_the_web_proxy, widget_embed_snippet_vectors; test_widget_embed.py: test_snippet_carries_sandbox_and_escapes_the_title; cli embed.test.ts: refuses an invalid ref with the invalid-input exit code; referralRef.test.ts: the proxy and the SDK agree). Evidence:
packages/core/src/widget/embed.ts,packages/sdk-rust/tests/widget_vectors.rs,packages/sdk-python/tests/test_widget_embed.py,test-vectors/embed-widget.json. - attachReferralBinding appends exactly the canonical taker referral PDA to a PlaceOrder, does not mutate its input, and rejects non-PlaceOrder instructions, malformed tails and a PDA derived for another trader (referral.test.ts: appends exactly REFERRAL_BINDING_SLOTS accounts to a bare PlaceOrder, does not mutate the input PlaceOrder, rejects a referral PDA derived for a different trader; parity.test.ts: matches the individual @seesaw/core PDA helpers). Evidence:
packages/core/src/widget/index.ts,packages/core/src/widget/__tests__/referral.test.ts,packages/core/src/widget/__tests__/parity.test.ts.
- The embed page is read-only and renders without auth cookies; it ignores an invalid theme, locale or ref, carries a valid ref only on its first-party trade link, and framing is allowed only on /embed/<marketId> (embed page.test.tsx: renders a read-only market widget without auth cookies, ignores an invalid theme, locale or ref; proxy.test.ts: allows framing only for embed routes, keeps the bare embed path and similar prefixes frame-denied, does not capture referral cookies on embed routes). Evidence:
- Known limits:
- The embed-referral journey stands in for loading the embed: the TypeScript runner reads the ref from the URL that buildEmbedUrl builds. embed-referral-web (web, normal mode) drives the embed page, its trade link and the referral cookie (qa/e2e/runners/web.ts) and has not run.
- The TypeScript SDK and web runners map order.place-referred. The self-referral case shows the client's refusal to bind, not a program refusal.
- The embed copy reads the embed namespace of the catalog that ?locale= selects (apps/web/messages/<locale>.json); the 28 non-English catalogs are unreviewed machine drafts (apps/web/messages/MACHINE_DRAFT_STATUS.md). The market label, the cents unit and the no-quote placeholder are not localized, and the embed renders under the root layout's lang="en" with no dir, so ar and he copy appears in an LTR document.
adapters.exchange-api Exchange-style read API and bot adapters#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-J. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: The exchange read API lands nothing on chain..
The indexer serves an exchange-style read API (symbols, markets, ticker, order book, trades, candles, quality, reconcile, account) over /api/v1/exchange (apps/indexer/src/api/routes/exchange.ts). The Python Hummingbot helper (packages/hummingbot-connector/seesaw_hummingbot/connector.py) maps that REST facade into Hummingbot-friendly primitives; it is not a Hummingbot ConnectorBase and submits no orders (packages/hummingbot-connector/README.md:1-12). The CCXT read adapter and the Rust bot have rows of their own.
- Source:
apps/indexer/src/api/routes/exchange.ts,packages/core/src/api/exchange.ts,packages/hummingbot-connector/seesaw_hummingbot/connector.py - CLI commands:
api exchange symbols,api exchange symbol,api exchange markets,api exchange market,api exchange orderbook,api exchange ticker,api exchange trades,api exchange candles,api exchange quality,api exchange reconcile,api exchange account - API routes:
GET /api/v1/exchange/account,GET /api/v1/exchange/candles/{symbol},GET /api/v1/exchange/markets,GET /api/v1/exchange/markets/{symbol},GET /api/v1/exchange/orderbook/{symbol},GET /api/v1/exchange/quality,GET /api/v1/exchange/quality/{symbol},GET /api/v1/exchange/reconcile/{symbol},GET /api/v1/exchange/symbols,GET /api/v1/exchange/symbols/{symbol},GET /api/v1/exchange/ticker/{symbol},GET /api/v1/exchange/trades/{symbol} - Boundaries: callers anyone (reads); signers none (reads); services indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/api/exchange.ts | |
| Rust SDK | yes | packages/sdk-rust/src/http/exchange.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/exchange.py | |
| CLI | yes | packages/cli/src/commands/api/index.ts | |
| Indexer | not-applicable | none | The exchange API reads the existing projections; it ingests nothing of its own. |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/exchange.ts | |
| Web | not-applicable | none | A machine API for bots. |
| Android | not-applicable | none | A machine API for bots. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/34-exchange-api.ts, packages/sdk-rust/examples/exchange_api.rs, packages/sdk-python/examples/exchange_api.py | The TypeScript example and the Rust and Python examples read instruments, a ticker, a book and freshness. |
- Journeys, normal mode: none. Partial evidence:
ccxt-indexed-trade(sdk-typescript: 2 of 4 action steps return a client value; steporder.place-ccxt-observed; no passed cell of a client of this capability in normal mode; partial evidence, does not count),hummingbot-order-intent(sdk-python: 2 of 4 action steps return a client value; steporder.place-hummingbot; asserts client for this capability; no passed cell of a client of this capability in normal mode; partial evidence, does not count). ccxt-indexed-trade reads its trade through GET /api/v1/exchange/trades/{symbol} (packages/ccxt-read-adapter/src/index.ts:263). Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
ccxt-indexed-trade(sdk-typescript: 2 of 4 action steps return a client value; steporder.place-ccxt-observed; no passed cell of a client of this capability in independent mode; partial evidence, does not count),hummingbot-order-intent(sdk-python: 2 of 4 action steps return a client value; steporder.place-hummingbot; asserts client for this capability; no passed cell of a client of this capability in independent mode; partial evidence, does not count). ccxt-indexed-trade reads its trade through GET /api/v1/exchange/trades/{symbol} (packages/ccxt-read-adapter/src/index.ts:263). Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- The exchange facade is read-only market data: mutation methods are rejected and every exchange route is registered as public market data, except the account summary, which stays wallet-authenticated (rejects mutation methods, marks every exchange facade route as public market data, keeps exchange account summaries wallet-authenticated, requires wallet authentication for account summaries in exchange.test.ts). Evidence:
apps/indexer/src/api/routes/__tests__/exchange.test.ts,apps/indexer/src/api/routes/exchange.ts. - Symbol resolution is exact: an ambiguous display symbol, a malformed symbol or a stable instrument id of another program is refused before any query, and an unknown valid symbol returns 404 (refuses ambiguous display symbols before reading a ticker, rejects malformed symbols before querying, rejects stable instrument ids for a different program before querying, returns 404 for a syntactically valid unknown symbol). Evidence:
apps/indexer/src/api/routes/__tests__/exchange.test.ts. - Each outcome is served in its own price space: a NO symbol gets the NO lane book, tape and ticker, never complemented or swapped, and no candles because the stored series is YES-priced (serves the NO lane at NO prices for a NO symbol, serves the NO tape from the NO lane only, serves no candles for a NO symbol in exchange.test.ts; test_no_book_is_not_complemented_or_swapped, test_rejects_a_lane_served_for_the_other_outcome in test_no_lane.py). Evidence:
apps/indexer/src/api/routes/__tests__/exchange.test.ts,packages/hummingbot-connector/tests/test_no_lane.py. - Clients fail closed on drifted payloads: malformed exchange payloads, a book without a sequence or an out-of-range price_bps are rejected rather than returned (rejects malformed exchange payloads instead of returning drifted data in core exchange.test.ts; test_order_book_requires_non_null_sequence, test_order_book_rejects_out_of_range_price_bps, test_order_book_checksum_matches_indexer_canonical_payload in test_connector.py). Evidence:
packages/core/src/api/__tests__/exchange.test.ts,packages/hummingbot-connector/tests/test_connector.py. - The Hummingbot helper submits no orders and its order intent carries no treasury or fee-party field, so no client-controlled fee recipient exists (test_builds_trustless_order_intent_without_posting_order, test_public_api_exports_only_the_integration_helper in test_connector.py; test_intent_has_no_treasury_or_fee_party_field in test_order_controls.py). Evidence:
packages/hummingbot-connector/tests/test_connector.py,packages/hummingbot-connector/tests/test_order_controls.py,packages/hummingbot-connector/seesaw_hummingbot/connector.py.
- The exchange facade is read-only market data: mutation methods are rejected and every exchange route is registered as public market data, except the account summary, which stays wallet-authenticated (rejects mutation methods, marks every exchange facade route as public market data, keeps exchange account summaries wallet-authenticated, requires wallet authentication for account summaries in exchange.test.ts). Evidence:
- Known limits:
- Journeys: ccxt-indexed-trade reads a trade through the exchange API. hummingbot-order-intent builds an order intent with the Hummingbot helper and submits it through the Python SDK without reading the exchange API, so it is partial client evidence. Runtime runs are deferred by owner decision of 2026-11-17.
- The adapters follow the current ABI; the ABI is frozen only in roadmap phase 13.
adapters.ccxt-read CCXT read-only adapter#
- Status: implemented. Last verified at
8980fa2bfb77cef2ebf04079c9b715694149d632. - Roadmap items:
M-J. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is partial); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
packages/ccxt-read-adapter exposes CCXT-style fetchMarkets, fetchTicker, fetchOrderBook, fetchTrades and fetchOHLCV over the indexer exchange routes /api/v1/exchange/markets, ticker, orderbook, trades and candles (packages/ccxt-read-adapter/src/index.ts:122-139,241-308); every write method throws SeesawCcxtReadOnlyError (index.ts:160).
- Source:
packages/ccxt-read-adapter/src/index.ts,qa/e2e/runners/sdk-typescript.ts - Boundaries: callers anyone; signers none; services indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | The adapter is a separate package; this surface does not implement or expose it. |
| IDL | not-applicable | none | The adapter is a separate package; this surface does not implement or expose it. |
| TypeScript SDK | not-applicable | none | The adapter is a separate package; this surface does not implement or expose it. |
| Rust SDK | not-applicable | none | The adapter is a separate package; this surface does not implement or expose it. |
| Python SDK | not-applicable | none | The adapter is a separate package; this surface does not implement or expose it. |
| CLI | not-applicable | none | The adapter is a separate package; this surface does not implement or expose it. |
| Indexer | not-applicable | none | The adapter is a separate package; this surface does not implement or expose it. |
| API | not-applicable | none | The adapter is a separate package; this surface does not implement or expose it. |
| Web | not-applicable | none | The adapter is a separate package; this surface does not implement or expose it. |
| Android | not-applicable | none | The adapter is a separate package; this surface does not implement or expose it. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | partial | packages/ccxt-read-adapter/examples/read-market.ts | The example reads a fixture outcome from the local exchange API and checks that every write rejects. Local execution is pending. |
- Journeys, normal mode: none. Partial evidence:
ccxt-indexed-trade(sdk-typescript: 2 of 4 action steps return a client value; steporder.place-ccxt-observed; asserts client for this capability; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The TypeScript runner observes a trade through the standalone CCXT adapter; this is partial client evidence. A counting adapter journey and a recorded pass remain open. - Journeys, independent mode: none. Partial evidence:
ccxt-indexed-trade(sdk-typescript: 2 of 4 action steps return a client value; steporder.place-ccxt-observed; asserts client for this capability; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The TypeScript runner can observe a trade through the adapter against a self-run indexer. A counting adapter journey and a recorded independent pass remain open. - Formal obligations:
- Every CCXT write verb throws SeesawCcxtReadOnlyError and the has map advertises createOrder and cancelOrder as unsupported (exposes the full standard CCXT write-verb surface, advertises createOrder/cancelOrder as unsupported in read-only.test.ts; rejects write methods because this adapter is read-only in adapter.test.ts). Evidence:
packages/ccxt-read-adapter/src/__tests__/read-only.test.ts,packages/ccxt-read-adapter/src/__tests__/adapter.test.ts. - Basis-point probabilities convert exactly, with no rounding away of exact bps (converts bps probabilities without rounding away exact basis points in adapter.test.ts). Evidence:
packages/ccxt-read-adapter/src/__tests__/adapter.test.ts. - Instrument identity is kept: a ticker from another market with the same display symbol is rejected and two instruments sharing a display symbol stay distinct (rejects a ticker from another market even when its display symbol matches, keeps both instruments when they share a display symbol in adapter.test.ts). Evidence:
packages/ccxt-read-adapter/src/__tests__/adapter.test.ts. - loadMarkets pagination is complete and unsupported since cursors are refused rather than sent (paginates loadMarkets using the facade row limit instead of returned instrument count, does not treat a prior fetchMarkets page as a complete loadMarkets cache, rejects unsupported since cursors instead of sending unsupported query parameters in adapter.test.ts). Evidence:
packages/ccxt-read-adapter/src/__tests__/adapter.test.ts.
- Every CCXT write verb throws SeesawCcxtReadOnlyError and the has map advertises createOrder and cancelOrder as unsupported (exposes the full standard CCXT write-verb surface, advertises createOrder/cancelOrder as unsupported in read-only.test.ts; rejects write methods because this adapter is read-only in adapter.test.ts). Evidence:
- Known limits:
- Read-only: no order method is implemented (packages/ccxt-read-adapter/src/index.ts:160).
tooling.starter-bot Starter trading bot (Rust)#
- Status: implemented. Last verified at
8980fa2bfb77cef2ebf04079c9b715694149d632. - Roadmap items:
M-J. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is no); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- No product surface: A standalone starter bot in packages/bot-rust; it uses the Rust SDK and the order routes that other rows own, and no product surface implements or exposes it.
The starter Rust bot offers market making, mean reversion and momentum. Its live executor signs wallet or ledger-funded placements and bounded CancelOwnerOrders steps with the bot wallet, then decodes finalized recorder evidence for accounting. Its dry-run executor simulates execution locally.
- Source:
packages/bot-rust/src/main.rs,packages/bot-rust/src/strategy/mod.rs,packages/bot-rust/src/strategy/market_making.rs,packages/bot-rust/src/strategy/mean_reversion.rs,packages/bot-rust/src/strategy/momentum.rs,packages/bot-rust/src/executor/live.rs,packages/bot-rust/src/executor/dry_run.rs,qa/e2e/runners/sdk-rust/src/bot.rs - Boundaries: callers bot operator; signers bot wallet; services Solana RPC, Pyth Hermes (price feed).
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | The bot is a standalone binary; this surface does not implement or expose it. |
| IDL | not-applicable | none | The bot is a standalone binary; this surface does not implement or expose it. |
| TypeScript SDK | not-applicable | none | The bot is a standalone binary; this surface does not implement or expose it. |
| Rust SDK | not-applicable | none | The bot depends on the Rust SDK (packages/bot-rust/Cargo.toml:10); the SDK does not provide the bot. |
| Python SDK | not-applicable | none | The bot is a standalone binary; this surface does not implement or expose it. |
| CLI | not-applicable | none | The bot is a standalone binary; this surface does not implement or expose it. |
| Indexer | not-applicable | none | The bot is a standalone binary; this surface does not implement or expose it. |
| API | not-applicable | none | The bot is a standalone binary; this surface does not implement or expose it. |
| Web | not-applicable | none | The bot is a standalone binary; this surface does not implement or expose it. |
| Android | not-applicable | none | The bot is a standalone binary; this surface does not implement or expose it. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | no | none | No checked-in example runs the bot. |
- Journeys, normal mode: none. Partial evidence:
rust-bot-execution(sdk-rust: 7 of 9 action steps return a client value; steporder.place-rust-bot; asserts client for this capability; no passed cell of a client of this capability in normal mode; partial evidence, does not count),rust-bot-currency-t22-d9(sdk-rust: 4 of 8 action steps return a client value; steporder.place-rust-bot; asserts client for this capability; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The Rust SDK runner drives the separate bot binary; this is partial client evidence. A counting bot journey and a recorded pass remain open. - Journeys, independent mode: none. Partial evidence:
rust-bot-execution(sdk-rust: 7 of 9 action steps return a client value; steporder.place-rust-bot; asserts client for this capability; no passed cell of a client of this capability in independent mode; partial evidence, does not count),rust-bot-currency-t22-d9(sdk-rust: 4 of 8 action steps return a client value; steporder.place-rust-bot; asserts client for this capability; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The wrapper can drive the bot against local RPC. A counting bot journey and a recorded independent pass remain open. - Formal obligations:
- Strategy quotes are never crossed, the spread stays positive and the inventory cap is honoured (test_crossed_quotes_impossible, test_max_inventory_cap, test_zero_max_inventory in market_making.rs; test_mm_spread_always_positive in economic.rs). Evidence:
packages/bot-rust/src/strategy/market_making.rs,packages/bot-rust/tests/economic.rs. - The risk layer only removes signals, halts monotonically and rejects a fresh sell without inventory; Kelly sizing stays bounded (prop_risk_never_adds_signals in property.rs; test_risk_halt_monotonic in economic.rs; test_market_making_risk_rejects_fresh_sell_without_inventory in integration.rs; proof_kelly_bounded in kani_proofs.rs). Evidence:
packages/bot-rust/tests/property.rs,packages/bot-rust/tests/economic.rs,packages/bot-rust/tests/integration.rs,packages/bot-rust/tests/kani_proofs.rs. - The live executor refuses a negative or stale deadline, or an IOC with a resting expiry, before signing, and passes on the configured bounds and fee epoch (live_executor_rejects_negative_deadline_before_signing, live_executor_rejects_stale_configured_deadline_before_signing, live_executor_rejects_ioc_with_resting_expiry_but_allows_execution_deadline, live_executor_propagates_configured_bounds_and_fee_epoch in live.rs). Evidence:
packages/bot-rust/src/executor/live.rs. - Live placements and cancels build the current SDK instructions (CancelOwnerOrders, ledger-funded routes, currency treasury shard), refuse missing or duplicate treasury shards, and treat a finalized-evidence decode failure as a quarantinable outcome (live_cancel_all_builds_current_sdk_instruction, live_ledger_orders_use_owner_funded_routes, live_executor_rejects_missing_treasury_shards, live_executor_rejects_duplicate_treasury_shards, immediate_finalized_decode_failure_returns_quarantinable_submitted_outcome in live.rs). Evidence:
packages/bot-rust/src/executor/live.rs. - The dry-run executor submits no transaction and never reports fills (place_order_never_reports_fills_regardless_of_requested_quantity, place_order_reports_confirmed_zero_fee_dry_run_outcome in dry_run.rs; test_dry_run_executor_accepts_without_tx_submission in integration.rs). Evidence:
packages/bot-rust/src/executor/dry_run.rs,packages/bot-rust/tests/integration.rs.
- Strategy quotes are never crossed, the spread stays positive and the inventory cap is honoured (test_crossed_quotes_impossible, test_max_inventory_cap, test_zero_max_inventory in market_making.rs; test_mm_spread_always_positive in economic.rs). Evidence:
- Known limits:
- The live executor trades its configured settlement mint and token program (classic SPL Token or Token-2022); a mint other than the program default needs its currency record on chain (packages/bot-rust/src/executor/live.rs:204-221). The rust-bot-currency-t22-d9 journey covers a nine-decimal Token-2022 currency; its runtime run is deferred by owner decision of 2026-11-17.
onboarding.tour Onboarding tour#
- Status: implemented. Last verified at
2a5660b2f4fdafe0236d43a8f9e7b7aaa870ba42. - Roadmap items:
M-J. Owning phase: 11. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client; chain left out: The tour lands nothing on chain.; record left out: The tour writes no indexer or API record (its indexer and api surfaces are not-applicable)..
Both apps show a first-run guided tour: the web TourProvider and TourOverlay (mounted in apps/web/app/components/providers.tsx) and the mobile vision narrative and coachmark tour.
- Source:
apps/mobile/src/navigation/index.tsx,apps/mobile/src/tour/TourProvider.tsx,apps/mobile/src/tour/VisionNarrativeScreen.tsx,apps/web/app/components/providers.tsx,apps/web/app/components/tour/TourProvider.tsx - Android screens:
VisionNarrative - Boundaries: callers anyone; signers none; services none.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | An app surface. |
| Rust SDK | not-applicable | none | An app surface. |
| Python SDK | not-applicable | none | An app surface. |
| CLI | not-applicable | none | An app surface. |
| Indexer | not-applicable | none | An app surface. |
| API | not-applicable | none | An app surface. |
| Web | yes | apps/web/app/components/tour/TourProvider.tsx, apps/web/app/components/tour/TourOverlay.tsx, apps/web/app/components/providers.tsx | |
| Android | yes | apps/mobile/src/navigation/index.tsx, apps/mobile/src/tour/VisionNarrativeScreen.tsx, apps/mobile/src/tour/TourProvider.tsx | |
| iOS | no | none | No iOS app: owner decision R8 of 2026-11-17 keeps mobile Android-only (docs/internal/decisions/2026-11-17-ios-scope-r8.md). |
| Examples | not-applicable | none | An app surface. |
- Journeys, normal mode:
suite-web-onboarding-tour(web; UI read; suite source matchesexpect\(tour\)\.toBeVisible\(\); pins assertion),suite-android-onboarding-tour(android; UI read; suite source matchesexpect\(screen\.getByTestId\('vision-narrative-screen'\)\)\.toBeVisible\(\); pins assertion; partial evidence, does not count) - Journeys, independent mode: none. The tour is an app surface; the app suites run in normal mode only.
- Formal obligations:
- The web tour does not auto-start while the jurisdiction gate is required or no wallet is connected (TourProvider.test.tsx: does not auto-start the tour while the jurisdiction gate is required, does not auto-start while no wallet is connected). Evidence:
apps/web/app/components/tour/TourProvider.tsx,apps/web/app/components/tour/__tests__/TourProvider.test.tsx. - The mobile tour persists completion and dismissal and then hides its banner; its steps have unique ids and reference only valid routes (mobile TourProvider.test.tsx: persists completion state on done, persists dismissal state on skip, hides banner after dismissal; steps.test.ts: has unique step IDs, references only valid routes). Evidence:
apps/mobile/src/tour/TourProvider.tsx,apps/mobile/src/__tests__/tour/TourProvider.test.tsx,apps/mobile/src/__tests__/tour/steps.test.ts.
- The web tour does not auto-start while the jurisdiction gate is required or no wallet is connected (TourProvider.test.tsx: does not auto-start the tour while the jurisdiction gate is required, does not auto-start while no wallet is connected). Evidence:
- Known limits:
- Android has no automatic first-run start: the web starts the tour on wallet connect and offers TourTrigger in the masthead More menu, while the Seesaw Quiet redesign (docs/internal/archive/superpowers/specs/2026-09-12-seesaw-quiet-redesign-design.md, docs/internal/guided-tour.md) removed the mobile Home banner, so the tour opens only from Settings ("Replay Guided Tour") or the vision deep link. TourBanner (apps/mobile/src/tour/TourBanner.tsx) stays exported and unmounted by that design decision.
- The mobile embedded wallet is out of phase 11 by owner decision of 2026-11-17; onboarding on Android connects through Seeker Connect only.
- The Seeker Connect v1 wallet matrix (docs/reference/wallet-matrix.md) has not been run on devices (external signoff).
app.shell App shells and transaction landing#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F12. Owning phase: 13. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client; chain left out: The shell lands nothing on chain.; record left out: The shell writes no indexer or API record (its indexer and api surfaces are not-applicable)..
The web app (Next.js, locale-prefixed routes, landing page) and the Android app (stack and tab navigation, a transaction confirming screen and settings) host every client flow; the settings page and screen link to oracle keys, builders and preferences.
- Source:
apps/web/app/[locale]/layout.tsx,apps/mobile/src/navigation/index.tsx,apps/mobile/src/navigation/tabs.ts - Web routes:
/landing,/[locale]/settings - Android screens:
MainTabs,TransactionConfirming,Settings - Boundaries: callers anyone; signers user wallet for actions; services Solana RPC, indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | An app surface. |
| Rust SDK | not-applicable | none | An app surface. |
| Python SDK | not-applicable | none | An app surface. |
| CLI | not-applicable | none | An app surface. |
| Indexer | not-applicable | none | An app surface. |
| API | not-applicable | none | An app surface. |
| Web | yes | apps/web/app/[locale]/layout.tsx, apps/web/app/landing/page.tsx, apps/web/app/[locale]/settings/page.tsx | |
| Android | yes | apps/mobile/src/navigation/index.tsx, apps/mobile/src/screens/TransactionConfirmingScreen.tsx, apps/mobile/src/screens/SettingsScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | An app surface. |
- Journeys, normal mode: none. The smoke suites (qa/e2e/suites/web/smoke.e2e.ts:9-10, qa/e2e/suites/android/smoke.e2e.ts:15) assert only that the home board is visible and the markets tab opens; no suite exercises the landing page, the settings screen or the transaction confirming screen that this row names.
- Journeys, independent mode: none. The suites that exercise it run in normal mode only; no entry runs in independent mode.
- Formal obligations:
- Mobile money-moving routes sit behind compliance checks and read-only discovery routes stay outside the gate (complianceRoutes.test.ts: protects money-moving routes behind compliance checks, keeps read-only discovery routes outside the compliance gate, classifies protected routes consistently). Evidence:
apps/mobile/src/navigation/complianceRoutes.ts,apps/mobile/src/__tests__/navigation/complianceRoutes.test.ts. - The transaction confirming screen keeps confirmed signatures non-terminal and shows Done only after finalization (TransactionConfirmingScreen.test.tsx: keeps confirmed signatures in a non-terminal finalizing state, shows Done only after finalization). Evidence:
apps/mobile/src/navigation/index.tsx,apps/mobile/src/__tests__/screens/TransactionConfirmingScreen.test.tsx. - The mobile tab bar has exactly four tabs, names no route twice across the tab bar and profile sheet, and titles every tab from an existing translation key; deep links advertise no unhosted universal links (mainTabs.test.ts: has exactly four tabs, in order, names no route twice across the tab bar and the profile sheet, titles every tab from a translation key that exists; linking.test.ts: should not advertise universal links without hosted app-link files). Evidence:
apps/mobile/src/navigation/tabs.ts,apps/mobile/src/__tests__/navigation/mainTabs.test.ts,apps/mobile/src/__tests__/navigation/linking.test.ts.
- Mobile money-moving routes sit behind compliance checks and read-only discovery routes stay outside the gate (complianceRoutes.test.ts: protects money-moving routes behind compliance checks, keeps read-only discovery routes outside the compliance gate, classifies protected routes consistently). Evidence:
- Known limits:
- The apps carry parity and release gaps that the other rows record surface by surface; store releases are external.
docs.site Documentation site#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (The public documentation site is in no item of roadmap section 9.). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client; chain left out: The documentation site lands nothing on chain.; record left out: The documentation site writes no indexer or API record (its indexer and api surfaces are not-applicable)..
The web app renders the public documentation under /docs, serves raw pages, downloads and a search index, and publishes llms.txt. The mobile Help screen is a separate in-app FAQ with collapsible sections and no link to the documentation site.
- Source:
apps/web/app/[locale]/docs/[[...slug]]/page.tsx,apps/web/app/llms.txt/route.ts,apps/mobile/src/screens/HelpScreen.tsx - Web routes:
/[locale]/docs/[[...slug]],/api/docs/downloads/[...slug],/api/docs/index,/api/docs/raw/[...slug],/llms.txt - Android screens:
Help - Boundaries: callers anyone; signers none; services none.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | A documentation surface. |
| Rust SDK | not-applicable | none | A documentation surface. |
| Python SDK | not-applicable | none | A documentation surface. |
| CLI | not-applicable | none | A documentation surface. |
| Indexer | not-applicable | none | A documentation surface. |
| API | not-applicable | none | A documentation surface. |
| Web | yes | apps/web/app/[locale]/docs/[[...slug]]/page.tsx, apps/web/app/llms.txt/route.ts | |
| Android | yes | apps/mobile/src/components/AboutLinksSection.tsx, apps/mobile/src/screens/SettingsScreen.tsx, apps/mobile/src/__tests__/components/AboutLinksSection.test.tsx | Settings > Help and legal opens the documentation site in the app locale (the web /[locale]/docs route) in the system browser; HelpScreen.tsx stays the in-app FAQ. Copy in all 16 mobile locales (aboutLinks, machine drafts). Tests are written, not run. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | A documentation surface. |
- Journeys, normal mode: none. No journey index entry reads the documentation site.
- Journeys, independent mode: none. No journey index entry reads the documentation site.
- Formal obligations:
- Only explicitly public docs roots are served; implementation records, handoff plans and draft ledgers stay private (docVisibility.test.ts: serves only explicitly public docs roots, keeps implementation records under the design root out of public navigation, keeps draft ACE and BYOK qualification ledgers private). Evidence:
apps/web/app/[locale]/docs/[[...slug]]/page.tsx,apps/web/app/[locale]/docs/[[...slug]]/docVisibility.test.ts. - Raw pages are Markdown, private or encoded paths cannot be retrieved, the route guard rejects unknown, private and symlinked routes, and the machine index (llms.txt) excludes draft, historical, translated and private records (docs-delivery.test.mjs: raw content is Markdown and private or encoded paths cannot be retrieved, pre-stream route guard agrees with the catalog and rejects unknown or private routes, current index excludes draft, historical, translated and private records, machine index retrieval URLs bind the represented bytes across deployments). Evidence:
apps/web/app/llms.txt/route.ts,scripts/__tests__/docs-delivery.test.mjs. - Docs frontmatter parsing preserves the full Markdown body and YAML metadata types (parseDoc.test.ts: reads a public SDK guide audience and preserves its complete Markdown body, preserves YAML metadata types and Markdown separators). Evidence:
apps/web/app/[locale]/docs/[[...slug]]/parseDoc.test.ts.
- Only explicitly public docs roots are served; implementation records, handoff plans and draft ledgers stay private (docVisibility.test.ts: serves only explicitly public docs roots, keeps implementation records under the design root out of public navigation, keeps draft ACE and BYOK qualification ledgers private). Evidence:
ops.status Service status and health#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Operations and monitoring exist in the code and are in no item of roadmap section 9 (roadmap section 10).). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: A status read lands nothing on chain..
The indexer serves its status and server time; the web app serves health and readiness probes and a status page.
- Source:
apps/indexer/src/api/routes/status.ts,apps/indexer/src/api/routes/time.ts,apps/web/app/api/health/route.ts,apps/web/app/api/ready/route.ts,apps/indexer/src/jobs/pullLifecycleMetrics.ts - CLI commands:
service status,service time - API routes:
GET /api/v1/status,GET /api/v1/time - Web routes:
/[locale]/status,/api/health,/api/ready - Indexer jobs:
pullLifecycleMetrics - Boundaries: callers anyone; signers none; services indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/api/walletServices.ts, packages/core/src/api/__tests__/walletServices.test.ts | getServiceStatus and getServerTime read the public indexer status and clock. Tests are written, not run. |
| Rust SDK | yes | packages/sdk-rust/src/http/account.rs | SeesawHttpClient ports the TypeScript wallet account services under the http feature: wallet-signed routes take the wallet and an Ed25519 signer, and responses are checked against the signing wallet. |
| Python SDK | yes | packages/sdk-python/seesaw/http.py | SeesawHttpClient ports the TypeScript wallet account services: wallet-signed routes take the wallet and an Ed25519 signer, and responses are checked against the signing wallet. |
| CLI | yes | packages/cli/src/commands/accountServices.ts, packages/cli/src/__tests__/commands/account-services.test.ts | service status and service time (with the local clock skew). Tests are written, not run. |
| Indexer | yes | apps/indexer/src/api/routes/status.ts | |
| API | yes | apps/indexer/src/api/servedRoutes.ts, apps/indexer/src/api/routes/status.ts, apps/indexer/src/api/routes/time.ts | |
| Web | yes | apps/web/app/[locale]/status/page.tsx, apps/web/app/api/health/route.ts | |
| Android | yes | apps/mobile/src/components/ServiceStatusSection.tsx, apps/mobile/src/screens/SettingsScreen.tsx, apps/mobile/src/__tests__/components/ServiceStatusSection.test.tsx | Settings shows the indexer status (GET /api/v1/status) with a recheck, and explains that trading reads fall back to Solana RPC when it is unreachable. Copy in all 16 mobile locales (serviceStatus, machine drafts). Tests are written, not run. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | An operations surface. |
- Journeys, normal mode: none. suite-web-outages asserts the client boundary only; this row needs client and record.
- Journeys, independent mode: none. suite-web-outages asserts the client boundary only; this row needs client and record.
- Formal obligations:
- Indexer status fails closed: synced is false under slot lag, RPC disconnect, startup backfill, failed pull-lifecycle readiness, a quarantined ingestion gap, or when failed-ingestion status cannot be checked (status.test.ts: reports synced=false when the indexer is behind (slot lag), reports synced=false when rpc is disconnected, reports synced=false when a quarantined ingestion gap exists, reports synced=false when failed-ingestion status cannot be checked). Evidence:
apps/indexer/src/api/routes/status.ts,apps/indexer/src/api/routes/__tests__/status.test.ts. - Web readiness returns 503 unless release and dependency identity are proven against the candidate API release over the private same-color alias (releaseReadiness.test.ts: uses only the private same-color API alias, proves release and dependency identity, requires the candidate API release rather than merely the active API). Evidence:
apps/web/app/api/ready/route.ts,apps/web/lib/server/releaseReadiness.ts,apps/web/lib/server/releaseReadiness.test.ts. - Server time returns one captured clock value with no-store and rejects non-GET; status web-vitals ingestion is capped to a fixed metric set; pull lifecycle metrics default missing rows to zero (time.test.ts: returns one captured clock value in the canonical no-store envelope, rejects non-GET requests with the canonical 405 envelope; status.test.ts: rejects unknown web-vitals metric names so status cardinality cannot grow; pullLifecycleMetrics.test.ts: defaults missing aggregate rows to zero). Evidence:
apps/indexer/src/api/routes/time.ts,apps/indexer/src/api/routes/__tests__/time.test.ts,apps/indexer/src/jobs/pullLifecycleMetrics.ts,apps/indexer/src/__tests__/pullLifecycleMetrics.test.ts.
- Indexer status fails closed: synced is false under slot lag, RPC disconnect, startup backfill, failed pull-lifecycle readiness, a quarantined ingestion gap, or when failed-ingestion status cannot be checked (status.test.ts: reports synced=false when the indexer is behind (slot lag), reports synced=false when rpc is disconnected, reports synced=false when a quarantined ingestion gap exists, reports synced=false when failed-ingestion status cannot be checked). Evidence:
app.static-pages Static and metadata pages#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Legal pages, security disclosure and crawler metadata are in no item of roadmap section 9.). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client; chain left out: A static page lands nothing on chain.; record left out: A static page writes no indexer or API record (its indexer and api surfaces are not-applicable)..
The web app serves privacy and terms pages, a security.txt and PGP key, robots and sitemap files, and a default Open Graph image.
- Source:
apps/web/app/[locale]/privacy/page.tsx,apps/web/app/[locale]/terms/page.tsx,apps/web/app/.well-known/security.txt/route.ts,apps/web/app/robots.ts,apps/web/app/sitemap.ts - Web routes:
/[locale]/privacy,/[locale]/terms,/.well-known/security.txt,/.well-known/pgp-key.asc,/robots,/sitemap,/og-image.png - Boundaries: callers anyone; signers none; services none.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | A web surface. |
| Rust SDK | not-applicable | none | A web surface. |
| Python SDK | not-applicable | none | A web surface. |
| CLI | not-applicable | none | A web surface. |
| Indexer | not-applicable | none | A web surface. |
| API | not-applicable | none | A web surface. |
| Web | yes | apps/web/app/[locale]/privacy/page.tsx, apps/web/app/[locale]/terms/page.tsx, apps/web/app/.well-known/security.txt/route.ts | |
| Android | yes | apps/mobile/src/components/AboutLinksSection.tsx, apps/mobile/src/screens/SettingsScreen.tsx, apps/mobile/src/__tests__/components/AboutLinksSection.test.tsx | Settings > Help and legal opens the terms of service and privacy policy pages (the web /[locale]/terms and /[locale]/privacy routes) in the system browser rather than rendering them in-app. Tests are written, not run. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | A web surface. |
- Journeys, normal mode: none. No journey index entry reads these pages.
- Journeys, independent mode: none. No journey index entry reads these pages.
- Formal obligations:
- security.txt carries contact, advisory, policy, encryption and expiry fields, and the PGP key route fails closed when the deployment has not provisioned a key (well-known-security.test.ts: serves security.txt with contact, advisory, policy, encryption, and expiry fields, fails closed when the deployment has not provisioned the PGP public key). Evidence:
apps/web/app/.well-known/security.txt/route.ts,apps/web/app/__tests__/well-known-security.test.ts. - The sitemap lists live market pages and resolved market resolution pages and rejects the removed unwrapped markets response shape (sitemap.test.ts: includes live market pages and resolved market resolution pages, rejects the removed unwrapped markets response shape). Evidence:
apps/web/app/sitemap.ts,apps/web/app/__tests__/sitemap.test.ts. - Terms copy does not name the removed governing-law jurisdiction, and robots.txt and .well-known paths are served on the landing host (locales.test.ts terms copy: does not name the removed governing-law jurisdiction; proxy.test.ts: serves framework, API, crawler and .well-known paths on the landing host). Evidence:
apps/web/app/[locale]/terms/page.tsx,apps/web/i18n/locales.test.ts,apps/web/proxy.test.ts,apps/web/app/robots.ts.
- security.txt carries contact, advisory, policy, encryption and expiry fields, and the PGP key route fails closed when the deployment has not provisioned a key (well-known-security.test.ts: serves security.txt with contact, advisory, policy, encryption, and expiry fields, fails closed when the deployment has not provisioned the PGP public key). Evidence:
cli.configuration CLI configuration#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (Local CLI configuration is tooling in no item of roadmap section 9.). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client; chain left out: CLI configuration lands nothing on chain.; record left out: CLI configuration writes no indexer or API record (its indexer and api surfaces are not-applicable)..
config init-file writes a local CLI configuration file and config show prints the effective configuration (RPC URL, keypair, API URL, program ID).
- Source:
packages/cli/src/commands/config/index.ts,packages/cli/src/config.ts - CLI commands:
config init-file,config show - Boundaries: callers CLI user; signers none; services none.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | CLI tooling. |
| Rust SDK | not-applicable | none | CLI tooling. |
| Python SDK | not-applicable | none | CLI tooling. |
| CLI | yes | packages/cli/src/commands/config/index.ts | |
| Indexer | not-applicable | none | CLI tooling. |
| API | not-applicable | none | CLI tooling. |
| Web | not-applicable | none | CLI tooling. |
| Android | not-applicable | none | CLI tooling. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | CLI tooling. |
- Journeys, normal mode: none. No journey index entry runs CLI configuration.
- Journeys, independent mode: none. No journey index entry runs CLI configuration.
- Formal obligations:
- config init-file writes the file with mode 0600 inside a 0700 directory, and loading refuses a config file with group or other permissions (creates config directory and writes file, rejects config files with group or other permissions in config.test.ts; creates default config file and outputs path in commands/config.test.ts). Evidence:
packages/cli/src/__tests__/config.test.ts,packages/cli/src/__tests__/commands/config.test.ts,packages/cli/src/config.ts. - The effective configuration follows a fixed order: defaults, then file, then environment, then flags (overrides defaults with config file values, overrides config file with env vars, overrides env vars with CLI flags, overrides SEESAW_PROGRAM_ID with --program-id in config.test.ts). Evidence:
packages/cli/src/__tests__/config.test.ts. - Invalid configuration fails closed: invalid YAML or an IO error exits with ConfigError, and a non-Solana or unsupported chain is rejected (exits with ConfigError (6) when the config file exists but contains invalid YAML, rejects non-Solana chain values from config files, rejects unsupported chain names in config.test.ts). Evidence:
packages/cli/src/__tests__/config.test.ts. - config show redacts RPC URL credentials and API keys (outputs resolved configuration in commands/config.test.ts). Evidence:
packages/cli/src/__tests__/commands/config.test.ts,packages/cli/src/commands/config/index.ts.
- config init-file writes the file with mode 0600 inside a 0700 directory, and loading refuses a config file with group or other permissions (creates config directory and writes file, rejects config files with group or other permissions in config.test.ts; creates default config file and outputs path in commands/config.test.ts). Evidence:
independence.rpc-escape-hatch RPC escape hatch#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-E. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, chain; record left out: The escape hatch replaces the indexer and API; its indexer and api surfaces are not-applicable..
The web app proxies RPC through /api/rpc and both apps read known markets, positions, and open orders from chain through @seesaw/core resilient data sources when the indexer is unavailable.
- Source:
apps/web/app/api/rpc/route.ts,packages/core/src/resilientData.ts,packages/core/src/rpcDataSource.ts,packages/sdk-python/seesaw/resilient_data.py,packages/sdk-python/seesaw/rpc_data_source.py - Web routes:
/api/rpc - Boundaries: callers anyone; signers none; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/resilientData.ts, packages/core/src/rpcDataSource.ts | |
| Rust SDK | yes | packages/sdk-rust/src/rpc_data_source.rs, packages/sdk-rust/src/resilient_data.rs | The Rust resilient facade takes caller-supplied API reads; it has no API-first positions snapshot reader. |
| Python SDK | yes | packages/sdk-python/seesaw/rpc_data_source.py, packages/sdk-python/seesaw/resilient_data.py, packages/sdk-python/tests/test_rpc_escape_hatch.py | Known-market, owner-position and open-order reads with RPC fallback; the Python tests use a fake transport and have not been run. |
| CLI | not-applicable | none | The CLI reads chain state directly for its chain commands. |
| Indexer | not-applicable | none | The capability replaces the indexer. |
| API | not-applicable | none | The capability replaces the API. |
| Web | yes | apps/web/app/api/rpc/route.ts | |
| Android | yes | apps/mobile/src/utils/productApi.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/30-rpc-escape-hatch.ts, packages/sdk-python/examples/rpc_escape_hatch.py, packages/sdk-rust/examples/rpc_escape_hatch.rs | The TypeScript and Python examples read a known market, positions, and open orders through the resilient data source; the Rust example reads them directly from finalized RPC. |
- Journeys, normal mode: none. The web outage suite stops the indexer and checks a known market, position PDA, and resting order through the SDK fallback before testing deposit recovery. Runtime validation is pending.
- Journeys, independent mode: none. The SDK example reads without an indexer. The dedicated independent product journey remains pending.
- Formal obligations:
- The /api/rpc relay forwards only Seesaw program transactions with approved setup instructions, and refuses non-Seesaw, non-invoked or extra top-level instructions (blocks transaction relay for non-Seesaw program transactions, blocks transaction relay when Seesaw is only a non-invoked account, blocks transaction relay with disallowed extra instructions, does not allow a top-level SPL Token instruction alongside Seesaw in route.test.ts). Evidence:
apps/web/app/api/rpc/route.test.ts,apps/web/app/api/rpc/route.ts. - The relay fails closed on missing quota, geo or attestation evidence and never falls back to the public RPC URL (fails closed with a stable backend code before calling RPC when shared limiting is required, does not fall back to NEXT_PUBLIC_SOLANA_RPC_URL for server-side RPC forwarding, requires wallet attestation for allowed-country sendTransaction in route.test.ts). Evidence:
apps/web/app/api/rpc/route.test.ts. - The resilient source returns a validated API result, falls back to RPC only on unavailable or malformed API data (not on 4xx semantics or caller cancellation), and returns typed unavailable when both fail (returns a validated API market without reading RPC, falls back to RPC when a successful API response is malformed, preserves API 4xx semantic errors without reading RPC, returns typed unavailable when both API and RPC reads fail in resilientData.test.ts). Evidence:
packages/core/src/__tests__/resilientData.test.ts,packages/core/src/resilientData.ts. - RPC reads accept only canonical program-owned PDAs, and bounded owner scans refuse truncation instead of presenting partial holdings (rejects an account owned by a different program, rejects valid market bytes served from a non-canonical PDA, rejects invalid limits before RPC and responses that exceed the requested bound in rpcDataSource.test.ts; rejects truncated owner scans instead of presenting partial holdings as complete, reports unavailable rather than empty positions when both sources fail in rpcEscapeHatch.test.ts). Evidence:
packages/core/src/__tests__/rpcDataSource.test.ts,apps/web/lib/__tests__/rpcEscapeHatch.test.ts,packages/core/src/rpcDataSource.ts.
- The /api/rpc relay forwards only Seesaw program transactions with approved setup instructions, and refuses non-Seesaw, non-invoked or extra top-level instructions (blocks transaction relay for non-Seesaw program transactions, blocks transaction relay when Seesaw is only a non-invoked account, blocks transaction relay with disallowed extra instructions, does not allow a top-level SPL Token instruction alongside Seesaw in route.test.ts). Evidence:
- Known limits:
- Discovery, charts, P&L, history and leaderboard services cannot be reconstructed from the RPC account reads (docs/reference/rpc-escape-hatch.md).
- Owner scans need a limit in 1..1000 and public RPC providers may deny scans (docs/reference/rpc-escape-hatch.md).
- Device wallet cancellation, ForceClose and referrer setup under an API outage remain external signoffs (docs/reference/rpc-escape-hatch.md).
registry.capability-registry Capability registry and gate#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
S5. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client; chain left out: A repository gate; nothing lands on chain.; record left out: A repository gate; no indexer or API record..
docs/reference/capabilities.json states every capability with its surfaces, journeys, boundaries and limits; scripts/check_capability_registry.mjs checks it against the code (routes, events, error categories, CLI commands, API and gateway routes, indexer channels and jobs, web routes, Android screens, workspace packages) and the journey index, and scripts/generate_capability_registry.mjs writes docs/reference/capabilities.md; make docs-check runs both.
- Source:
scripts/check_capability_registry.mjs,scripts/generate_capability_registry.mjs,scripts/capability_registry/registry.mjs,scripts/capability_registry/inventory.mjs,docs/reference/capabilities.schema.json - Boundaries: callers maintainers; signers none; services none.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | Repository tooling. |
| Rust SDK | not-applicable | none | Repository tooling. |
| Python SDK | not-applicable | none | Repository tooling. |
| CLI | not-applicable | none | Repository tooling, run by make docs-check. |
| Indexer | not-applicable | none | Repository tooling. |
| API | not-applicable | none | Repository tooling. |
| Web | yes | apps/web/app/[locale]/docs/[[...slug]]/page.tsx, apps/web/lib/docs/catalog.ts | The documentation site renders the generated page docs/reference/capabilities.md and serves the machine-readable docs/reference/capabilities.json as the capabilities download (/api/docs/downloads/capabilities), next to the IDL and the instruction manifest; the e2e delivery spec checks every catalog download by hash. |
| Android | not-applicable | none | Repository tooling. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | Repository tooling. |
- Journeys, normal mode: none. A repository gate; its own tests (scripts/tests/capability-registry.test.mjs) cover it, not a journey.
- Journeys, independent mode: none. A repository gate; its own tests (scripts/tests/capability-registry.test.mjs) cover it, not a journey.
- Formal obligations:
- Every rule of the gate has a negative test. Evidence:
scripts/__tests__/capability-registry.test.mjs.
- Every rule of the gate has a negative test. Evidence:
idl.executable-route-models Executable IDL route models#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F9,S4. Owning phase: 2. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 missing (sdkRust is partial; sdkPython is partial); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client; chain left out: A static artifact lands nothing on chain.; record left out: A static artifact writes no indexer or API record (its indexer and api surfaces are not-applicable)..
idl/seesaw.json holds one executable instruction model for each of the 191 public routes in tag order, with payload variants and authenticated account variants, 114 event layouts and 216 errors; idl/scripts/coverage.ts encodes the supported shared instruction vectors from the models alone.
- Source:
idl/seesaw.json,idl/scripts/generate.ts,idl/scripts/coverage.ts,idl/scripts/route_accounts.ts - Boundaries: callers anyone; signers none; services none.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain read or service; no instruction. |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/__tests__/idl-conformance.test.ts, packages/core/src/generated/abiFacts.ts, packages/core/src/instructions.ts, packages/core/src/__tests__/constants.test.ts | Not generated from the IDL, but held to it: idl-conformance.test.ts calls the SDK builder of every IDL route for every shared vector case and compares the data bytes and the account metas (order, signer, writable) with the route model and its account variants; CANNOT_BUILD is empty, so every route is mapped. The wire inventory, payload lengths, error catalog and event tags come from generated/abiFacts.ts, which idl/scripts/generate.ts writes from idl/seesaw.json. Event field decoders are hand-written and checked against shared vectors, not the IDL field lists. The tests are written; this lane did not run them. |
| Rust SDK | partial | packages/sdk-rust/src/instructions.rs | The Rust SDK is checked against shared vectors, not generated from the IDL. |
| Python SDK | partial | packages/sdk-python/seesaw/instructions.py | The Python SDK is checked against shared vectors, not generated from the IDL. |
| CLI | not-applicable | none | The CLI consumes the TypeScript SDK. |
| Indexer | not-applicable | none | The indexer consumes the event catalog through @seesaw/core. |
| API | not-applicable | none | No API surface. |
| Web | not-applicable | none | No app surface. |
| Android | not-applicable | none | No app surface. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | The IDL is checked by its own coverage script. |
- Journeys, normal mode: none. A static artifact; its own coverage script checks it, not a journey.
- Journeys, independent mode: none. A static artifact; its own coverage script checks it, not a journey.
- Formal obligations:
- The published IDL holds exactly one executable model per public route, and removing a model, account variant, argument field, payload variant, error or event fails the gate (the published IDL covers every route, case, event, and error; a removed model fails; a removed account variant fails; a removed argument field fails; a removed error fails; a removed event fails in coverage.test.ts; standard IDL publishes one executable model per route, each naming its account source in catalog.test.ts). Evidence:
idl/scripts/coverage.test.ts,idl/scripts/catalog.test.ts,idl/scripts/coverage.ts. - Route tags, discriminators and payload lengths match the live Rust wire ABI one-to-one and in order (route table wire discriminators are internally consistent, route payload lengths match the canonical argument structs, non-executable IDL metadata inventories the live wire ABI one-to-one in instruction-rs-parity.test.ts). Evidence:
idl/scripts/instruction-rs-parity.test.ts,idl/seesaw.json. - Account variants and signer flags match the processors: a processor that stops checking a signer, or changes its account count, fails the model (a flipped signer flag fails in coverage.test.ts; a processor that stops checking a signer fails the model that marks it, a processor count change fails the model in route_accounts.test.ts). Evidence:
idl/scripts/route_accounts.test.ts,idl/scripts/coverage.test.ts,idl/scripts/route_accounts.ts. - Any change to routes, event layouts, recorder kinds or error codes moves the wire digest and fails the compatibility gate (any route change moves the wire digest and fails the compatibility gate, event tags and field layouts, recorder kinds, and error codes move the wire digest in version.test.ts). Evidence:
idl/scripts/version.test.ts.
- The published IDL holds exactly one executable model per public route, and removing a model, account variant, argument field, payload variant, error or event fails the gate (the published IDL covers every route, case, event, and error; a removed model fails; a removed account variant fails; a removed argument field fails; a removed error fails; a removed event fails in coverage.test.ts; standard IDL publishes one executable model per route, each naming its account source in catalog.test.ts). Evidence:
- Known limits:
- accounts[] holds 6 contract-scoped account models and is not a complete account inventory.
- Document disagreements (the code wins):
docs/internal/fable-prompts/ROADMAP.mdsays: Sections 3.3 and 9 (F9) say idl/seesaw.json models 26 of the 97 routes as executable instructions. The code: idl/seesaw.json metadata at this commit records generationStatus executable-models-for-every-route, instructionModelCount 97 and unmodeledWireInstructionCount 0.
order.take-profit-limit Take profit as a resting limit sell#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-C. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
A take profit is a post-only limit sell of shares the trader holds. The TypeScript, Rust and Python helpers build the order in the outcome's own price space. The apps and CLI place it through the ordinary PlaceOrder path. The signed cross guard refuses a price that would immediately cross the book.
- Source:
packages/core/src/ux/takeProfit.ts,packages/sdk-rust/src/take_profit.rs,packages/sdk-python/seesaw/take_profit.py,apps/web/app/components/trading/TakeProfitForm.tsx,apps/mobile/src/screens/marketDetail/TakeProfitControl.tsx,program/src/processor/place_order.rs - Routes:
PlaceOrder(0x0C) - Events:
OrderPlaced - CLI commands:
order place - API routes:
POST /api/v1/tx/place-order - Boundaries: callers trader; signers trader wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/place_order.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/ux/takeProfit.ts, packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/take_profit.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/take_profit.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/orderPlacedHintMatching.ts, apps/indexer/src/indexer/orderSides.ts, apps/indexer/src/indexer/parser.ts, apps/indexer/src/indexer/recorderReconciliationEnrichment.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/recorderExpectedState.ts, apps/indexer/src/processors/mergeCompleteSet.ts, apps/indexer/src/processors/placeOrder.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | POST /api/v1/tx/place-order builds PlaceOrder (txBuilder.ts) as a limit or post-only sell (txBuilder.ts). GET /api/v1/orders returns order_type, quantity, filled and status (orders.ts). |
| Web | yes | apps/web/app/components/trading/TakeProfitForm.tsx | |
| Android | yes | apps/mobile/src/screens/marketDetail/TakeProfitControl.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/03-build-place-order-ix.ts, packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py | All three SDK examples build an unsigned NO take-profit sell and check the encoded cross guard. |
- Journeys, normal mode: none. Partial evidence:
take-profit(sdk-typescript: 4 of 8 action steps return a client value; sdk-rust: 4 of 8 action steps return a client value; sdk-python: 4 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value; steporder.take-profit; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The three SDK and CLI take-profit cells await runtime runs. The app controls still need their own journey evidence. - Journeys, independent mode: none. Partial evidence:
take-profit(sdk-typescript: 4 of 8 action steps return a client value; sdk-rust: 4 of 8 action steps return a client value; sdk-python: 4 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value; steporder.take-profit; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The three SDK and CLI take-profit cells await runtime runs. - Formal obligations:
- takeProfitOrderParams builds a PostOnly SELL of the outcome with rejectPostOnlyWouldCross = 1, and rejects prices outside integer 1..=9999 and non-positive shares (ux-helpers.test.ts: takeProfitOrderParams builds a post-only sell and its throw cases). Evidence:
packages/core/src/ux/takeProfit.ts,packages/core/src/__tests__/ux-helpers.test.ts,packages/sdk-rust/src/take_profit.rs,packages/sdk-python/tests/test_take_profit.py. - On chain, a PostOnly order that would cross is rejected with WouldCross and never fills at market (test_validate_place_order_post_only_would_cross, test_post_only_buyno_rejects_when_sellno_ask_would_cross; test_post_only_fails_if_would_cross in guard.rs; probe_02_market_post_only_coerces_limit_cross_to_would_cross_without_fill). Evidence:
program/src/logic/place_order_processor/tests.rs,program/src/processor/place_order_trait/guard.rs,program/tests/security_shard1_stage6_order_matching.rs. - A sell larger than the shares held is rejected (test_fails_if_insufficient_shares_for_sell in guard.rs; test_sell_insufficient_shares in security_error_paths.rs). Evidence:
program/src/processor/place_order_trait/guard.rs,program/tests/security_error_paths.rs. - The mobile TakeProfitControl places a post-only sell of held shares and refuses a price at or below the best bid (sheetFill.test.tsx: TakeProfitControl (F5)). Evidence:
apps/mobile/src/screens/marketDetail/TakeProfitControl.tsx,apps/mobile/src/__tests__/screens/marketDetail/sheetFill.test.tsx. - The web TakeProfitForm check that refuses a price at or under the best bid has no test; uncovered; phase 15. Evidence:
packages/core/src/ux/takeProfit.ts.
- takeProfitOrderParams builds a PostOnly SELL of the outcome with rejectPostOnlyWouldCross = 1, and rejects prices outside integer 1..=9999 and non-positive shares (ux-helpers.test.ts: takeProfitOrderParams builds a post-only sell and its throw cases). Evidence:
conditional.gateway-take-profit Gateway take-profit conditional#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-C. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
A TP conditional sent to the River gateway (POST /v1/complex-orders with conditional_order_params, validated by validateConditionalOrder) activates a LIMIT or MARKET child order when the outcome price reaches the trigger; the gateway enforces the condition, and the child order uses the ordinary order path.
- Source:
packages/core/src/riverClient.ts,packages/sdk-python/seesaw/river.py,packages/sdk-rust/src/river.rs,packages/cli/src/commands/river.ts,apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx,apps/mobile/src/screens/RiverOrdersScreen.tsx,services/river-gateway/src/conditional.ts,services/river-gateway/src/conditional-http.ts,services/river-gateway/src/conditional-runtime.ts,services/river-gateway/src/server.ts - CLI commands:
river create,river get,river list,river cancel - Web routes:
/[locale]/markets/river-orders - Android screens:
RiverOrders - River gateway routes:
/v1/complex-orders,/v1/complex-orders/{id} - Boundaries: callers trader; signers customer signer module (RIVER_CUSTOMER_SIGNER_MODULE) loaded into the gateway process, which signs each child order when the worker places it; the gateway receives sign-only wallets and does not read private keys; services River gateway, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Enforced in the River gateway; the child order uses PlaceOrder. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/riverClient.ts | |
| Rust SDK | yes | packages/sdk-rust/src/river.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/river.py | |
| CLI | yes | packages/cli/src/commands/river.ts | |
| Indexer | not-applicable | none | Conditionals live in the gateway store. |
| API | yes | services/river-gateway/src/server.ts, services/river-gateway/src/conditional-http.ts | |
| Web | yes | apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx | |
| Android | yes | apps/mobile/src/screens/RiverOrdersScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/44-river-complex-orders.ts, packages/sdk-python/examples/river_complex_orders.py, packages/sdk-rust/examples/river_complex_orders.rs | The TypeScript, Python and Rust examples place every River parent kind on a fixture gateway that verifies each request signature. |
- Journeys, normal mode: none. river-parent-exits registers a parent-linked TP, whose child follows the fill of its parent (qa/e2e/runners/river-conditional.ts); no journey step covers a price-triggered TP without a parent.
- Journeys, independent mode: none. river-parent-exits registers a parent-linked TP, whose child follows the fill of its parent (qa/e2e/runners/river-conditional.ts); no journey step covers a price-triggered TP without a parent.
- Formal obligations:
- Request validation normalizes a TP conditional, requires exactly one TP/SL parent and an inner stop price for TP market, allows TP LIMIT without one, and rejects RFQ and invalid price bounds (requires exactly one TP/SL parent, requires inner stop price for TP/SL market and normalizes SL limit, allows TP LIMIT without an inner stop price, rejects RFQ and invalid price bounds in conditional-http.test.ts). Evidence:
services/river-gateway/tests/conditional-http.test.ts,services/river-gateway/src/conditional-http.ts. - A TP activates only on a fresh, identity-matched price observation that reaches the trigger, and TP limit is told apart from TP market reverse-stop triggering (requires fresh identity and full TP/SL parent fill, distinguishes TP limit activation from TP market reverse-stop triggering, allows direct TP limit activation without a fresh price observation in conditional.test.ts). Evidence:
services/river-gateway/tests/conditional.test.ts,services/river-gateway/src/conditional.ts. - The activated child goes through the ordinary durable native order path, and its intent is persisted before submission (creates one durable native child and restores its mapping after restart, fails closed when immutable listing identity is malformed in conditional-native-adapter.test.ts; scans pending conditionals and persists child intent before adapter submit in conditional-runtime.test.ts). Evidence:
services/river-gateway/tests/conditional-native-adapter.test.ts,services/river-gateway/tests/conditional-runtime.test.ts,services/river-gateway/src/conditional-runtime.ts. - Clients sign the exact body and bind it to the configured subaccount (signs the exact JSON body and binds it to the configured subaccount in riverClient.test.ts; test_create_signs_the_exact_body_sent_to_the_registered_subaccount in test_river_client.py; serializes_one_order_block_and_preserves_decimal_text in river.rs). Evidence:
packages/core/src/__tests__/riverClient.test.ts,packages/sdk-python/tests/test_river_client.py,packages/sdk-rust/src/river.rs.
- Request validation normalizes a TP conditional, requires exactly one TP/SL parent and an inner stop price for TP market, allows TP LIMIT without one, and rejects RFQ and invalid price bounds (requires exactly one TP/SL parent, requires inner stop price for TP/SL market and normalizes SL limit, allows TP LIMIT without an inner stop price, rejects RFQ and invalid price bounds in conditional-http.test.ts). Evidence:
conditional.stop-loss-keeper Stop-loss keeper#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-C. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The keeper holds a trader-signed durable-nonce sell and submits it when the book's best bid enters the trigger band. The program enforces the sell's signed bounds. The keeper uses Solana Clock for expiry and persists the wire signature before sending. Both apps expose stop loss when enabled and configured with a keeper URL.
- Source:
packages/core/src/stopLoss/client.ts,packages/sdk-rust/src/stop_loss/keeper.rs,packages/sdk-python/seesaw/stop_loss_keeper.py,packages/cli/src/commands/stopLoss.ts,services/stop-loss-keeper/src/watcher.ts,services/stop-loss-keeper/src/api.ts,packages/core/src/stopLoss/trigger.ts,packages/core/src/stopLoss/compile.ts,apps/mobile/src/components/trading/stopLoss/StopLossControl.tsx,apps/web/app/components/trading/stopLoss/StopLossControl.tsx,qa/e2e/runners/stop-loss.ts,qa/e2e/runners/sdk-rust/src/stop_loss.rs,qa/e2e/runners/sdk_python/runner.py,qa/e2e/runners/cli.ts - CLI commands:
stop-loss create,stop-loss list,stop-loss cancel - Service HTTP routes:
stop-loss-keeper /v1/session,stop-loss-keeper /v1/stops,stop-loss-keeper /v1/stops/{id} - Boundaries: callers trader; signers trader-signed transaction held by the keeper (durable nonce); services stop-loss keeper, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Enforced by the keeper; the exit uses existing order routes. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/stopLoss/trigger.ts, packages/core/src/stopLoss/compile.ts, packages/core/src/stopLoss/client.ts | |
| Rust SDK | yes | packages/sdk-rust/src/stop_loss.rs, packages/sdk-rust/src/stop_loss/keeper.rs | Trigger, nonce and sell compilation plus owner-scoped keeper HTTP operations. |
| Python SDK | yes | packages/sdk-python/seesaw/stop_loss.py, packages/sdk-python/seesaw/stop_loss_keeper.py | Trigger, nonce and sell compilation plus owner-scoped keeper HTTP operations. |
| CLI | yes | packages/cli/src/commands/stopLoss.ts | |
| Indexer | not-applicable | none | The keeper keeps its own store. |
| API | yes | services/stop-loss-keeper/src/api.ts | |
| Web | yes | apps/web/app/components/trading/stopLoss/StopLossControl.tsx, apps/web/app/components/trading/stopLoss/stopLossClient.ts | |
| Android | yes | apps/mobile/src/components/trading/stopLoss/StopLossControl.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/33-stop-loss-keeper.ts, packages/sdk-rust/examples/stop_loss.rs, packages/sdk-rust/examples/stop_loss_keeper_list.rs, packages/sdk-python/examples/stop_loss.py, packages/sdk-python/examples/stop_loss_keeper_list.py | Rust and Python demonstrate offline sell preparation and message review. Keeper examples list by default and expose explicit registration and keeper-copy deletion after nonce closure. |
- Journeys, normal mode: none. Partial evidence:
stop-loss-keeper(sdk-typescript: 2 of 4 action steps return a client value; sdk-rust: 2 of 4 action steps return a client value; sdk-python: 2 of 4 action steps return a client value; cli: 2 of 4 action steps return a client value; steporder.execute-stop-loss; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The three SDK and CLI signed stop-loss fill journeys await runtime runs. - Journeys, independent mode: none. Partial evidence:
stop-loss-keeper(sdk-typescript: 2 of 4 action steps return a client value; sdk-rust: 2 of 4 action steps return a client value; sdk-python: 2 of 4 action steps return a client value; cli: 2 of 4 action steps return a client value; steporder.execute-stop-loss; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The three SDK and CLI self-operated keeper journeys await runtime runs. - Formal obligations:
- The keeper accepts only a stop whose signed sell exactly matches the reviewed message: owner, floor, nonce and owner proceeds account; a BUY, a resting order, extra instructions or a sell outliving the round is refused (refuses another owners transaction, a floor mismatch, a stale nonce and redirected proceeds in keeper.test.ts; matches the whole reviewed message, including its price and quote bounds, refuses a BUY, a resting order or a mismatched floor, refuses proceeds routed to an account that is not the owners, refuses any extra instruction, refuses a sell that outlives the round and a bad signature in stopLoss.test.ts). Evidence:
services/stop-loss-keeper/tests/keeper.test.ts,packages/core/src/__tests__/stopLoss.test.ts,packages/core/src/stopLoss/compile.ts. - The keeper submits only when the best bid is inside the trigger band; it waits above the trigger and in a gap below the floor, and fillable quantity is capped at the stop quantity (waits above the trigger and in a gap, submits inside the band in keeper.test.ts; waits while the bid is above the trigger, triggers at the trigger and inside the band, capping fillable at quantity, reports a gap below the floor and no bids in stopLoss.test.ts). Evidence:
services/stop-loss-keeper/tests/keeper.test.ts,packages/core/src/__tests__/stopLoss.test.ts,packages/core/src/stopLoss/trigger.ts. - Expiry uses the Solana Clock, not wall clock, and nothing is sent after a failed simulation, an advanced nonce or the round end (uses the validator clock for the signed deadline and remaining market time, expires the signed deadline before the market closes and ignores wall-clock skew, never sends after a failed simulation, an advanced nonce, or the round end in keeper.test.ts). Evidence:
services/stop-loss-keeper/tests/keeper.test.ts,services/stop-loss-keeper/src/watcher.ts. - The wire signature is persisted atomically before sending and reloaded after a lost send response; stops are stored idempotently, one open stop per outcome, owner-only cancel, and signed bytes are never returned (reloads a pending signature after losing the send response, persists atomically and reloads, stores a valid stop idempotently and never returns the signed bytes, allows one open stop per outcome and cancels only the owners in keeper.test.ts). Evidence:
services/stop-loss-keeper/tests/keeper.test.ts,services/stop-loss-keeper/src/api.ts. - Keeper sessions need a valid domain-bound signature, and the apps hide stop loss while the feature is off (issues a token only for a valid signature on the keeper domain, rejects forged and expired tokens in keeper.test.ts; refuses credentials in the keeper URL in stopLossKeeperClient.test.ts; renders nothing while the feature is off in web and mobile StopLossControl.test.tsx). Evidence:
services/stop-loss-keeper/tests/keeper.test.ts,packages/core/src/__tests__/stopLossKeeperClient.test.ts,apps/web/app/components/trading/stopLoss/__tests__/StopLossControl.test.tsx,apps/mobile/src/components/trading/stopLoss/__tests__/StopLossControl.test.tsx. - The program enforces the signed sell bounds (worst price, minimum quote, deadline) on landing, independent of the keeper; no on-chain harness is specific to the stop-loss sell; uncovered; phase 15. Evidence:
packages/core/src/stopLoss/compile.ts.
- The keeper accepts only a stop whose signed sell exactly matches the reviewed message: owner, floor, nonce and owner proceeds account; a BUY, a resting order, extra instructions or a sell outliving the round is refused (refuses another owners transaction, a floor mismatch, a stale nonce and redirected proceeds in keeper.test.ts; matches the whole reviewed message, including its price and quote bounds, refuses a BUY, a resting order or a mismatched floor, refuses proceeds routed to an account that is not the owners, refuses any extra instruction, refuses a sell that outlives the round and a bad signature in stopLoss.test.ts). Evidence:
- Known limits:
- The SDK example only lists stops; registering one is shown by the CLI command, which needs a durable nonce account and an owner-signed sell.
conditional.stop-orders Stop and reverse-stop orders#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-C. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
STOP and REVERSE_STOP conditionals in the River gateway activate a LIMIT or MARKET child order when the outcome price crosses the trigger in the configured direction; the gateway enforces the condition.
- Source:
packages/core/src/riverClient.ts,packages/sdk-python/seesaw/river.py,packages/sdk-rust/src/river.rs,packages/cli/src/commands/river.ts,apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx,apps/mobile/src/screens/RiverOrdersScreen.tsx,services/river-gateway/src/conditional.ts,services/river-gateway/src/conditional-store.ts,services/river-gateway/src/market-data.ts,qa/e2e/runners/river-conditional.ts - CLI commands:
river create,river get,river list,river cancel - Web routes:
/[locale]/markets/river-orders - Android screens:
RiverOrders - River gateway routes:
/v1/complex-orders,/v1/complex-orders/{id} - Boundaries: callers trader; signers customer signer module (RIVER_CUSTOMER_SIGNER_MODULE) loaded into the gateway process, which signs each child order when the worker places it; the gateway receives sign-only wallets and does not read private keys; services River gateway, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Enforced in the River gateway. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/riverClient.ts | |
| Rust SDK | yes | packages/sdk-rust/src/river.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/river.py | |
| CLI | yes | packages/cli/src/commands/river.ts | |
| Indexer | not-applicable | none | Gateway store. |
| API | yes | services/river-gateway/src/conditional-http.ts | |
| Web | yes | apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx | |
| Android | yes | apps/mobile/src/screens/RiverOrdersScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/44-river-complex-orders.ts, packages/sdk-python/examples/river_complex_orders.py, packages/sdk-rust/examples/river_complex_orders.rs | The TypeScript, Python and Rust examples place every River parent kind on a fixture gateway that verifies each request signature. |
- Journeys, normal mode: none. Partial evidence:
river-conditional(android: 1 of 8 action steps return a client value; cli: 1 of 8 action steps return a client value; sdk-python: 1 of 8 action steps return a client value; sdk-rust: 1 of 8 action steps return a client value; sdk-typescript: 3 of 8 action steps return a client value; web: 1 of 8 action steps return a client value; steporder.execute-river-conditional; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The indexed STOP and REVERSE_STOP journey awaits the deferred runtime run. - Journeys, independent mode: none. Partial evidence:
river-conditional(android: 1 of 8 action steps return a client value; cli: 1 of 8 action steps return a client value; sdk-python: 1 of 8 action steps return a client value; sdk-rust: 1 of 8 action steps return a client value; sdk-typescript: 3 of 8 action steps return a client value; web: 1 of 8 action steps return a client value; steporder.execute-river-conditional; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The gateway runs against the self-operated indexer and awaits the deferred runtime run. - Formal obligations:
- STOP activates a buy above and a sell below the trigger; REVERSE_STOP activates a buy below and a sell above (conditional planner it.each cases normal buy above, normal sell below, reverse buy below, reverse sell above in conditional.test.ts; normalizes a STOP trigger in conditional-http.test.ts). Evidence:
services/river-gateway/tests/conditional.test.ts,services/river-gateway/tests/conditional-http.test.ts,services/river-gateway/src/conditional.ts. - Activation needs a fresh observation whose listing identity matches; a stale, missing or other-market price never activates (requires fresh identity and full TP/SL parent fill in conditional.test.ts; fails closed for future observations and stale cursors, does not refresh an old trade merely because the indexer cursor is current in market-data.test.ts). Evidence:
services/river-gateway/tests/conditional.test.ts,services/river-gateway/tests/market-data.test.ts,services/river-gateway/src/market-data.ts. - Child intent is persisted durably before submission and the same child is retried after an executor failure, with no duplicate (persists child intent before submit and retries same child after executor failure in conditional-worker.test.ts; persists deterministic reservation and child intent across reopen, requires activation intent in conditional-store.test.ts). Evidence:
services/river-gateway/tests/conditional-worker.test.ts,services/river-gateway/tests/conditional-store.test.ts,services/river-gateway/src/conditional-store.ts. - End to end, an indexed trade activates only the matching STOP or REVERSE_STOP child (river-conditional journey). Evidence:
qa/e2e/journeys/definitions/river-conditional.journey.json,qa/e2e/runners/river-conditional.ts.
- STOP activates a buy above and a sell below the trigger; REVERSE_STOP activates a buy below and a sell above (conditional planner it.each cases normal buy above, normal sell below, reverse buy below, reverse sell above in conditional.test.ts; normalizes a STOP trigger in conditional-http.test.ts). Evidence:
conditional.parent-linked Parent-linked take-profit and stop-loss#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-C. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
TP and SL conditionals in the River gateway can be linked to a parent order: they size against its filled quantity, reserve inventory across siblings, and cancel their siblings when one activates.
- Source:
packages/core/src/riverClient.ts,packages/sdk-python/seesaw/river.py,packages/sdk-rust/src/river.rs,packages/cli/src/commands/river.ts,apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx,apps/mobile/src/screens/RiverOrdersScreen.tsx,services/river-gateway/src/conditional.ts,services/river-gateway/src/conditional-store.ts,qa/e2e/runners/river-conditional.ts - CLI commands:
river create,river get,river list,river cancel - Web routes:
/[locale]/markets/river-orders - Android screens:
RiverOrders - River gateway routes:
/v1/complex-orders,/v1/complex-orders/{id} - Boundaries: callers trader; signers customer signer module (RIVER_CUSTOMER_SIGNER_MODULE) loaded into the gateway process, which signs each child order when the worker places it; the gateway receives sign-only wallets and does not read private keys; services River gateway, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Enforced in the River gateway. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/riverClient.ts | |
| Rust SDK | yes | packages/sdk-rust/src/river.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/river.py | |
| CLI | yes | packages/cli/src/commands/river.ts | |
| Indexer | not-applicable | none | Gateway store. |
| API | yes | services/river-gateway/src/conditional-http.ts | |
| Web | yes | apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx | |
| Android | yes | apps/mobile/src/screens/RiverOrdersScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/44-river-complex-orders.ts, packages/sdk-python/examples/river_complex_orders.py, packages/sdk-rust/examples/river_complex_orders.rs | The TypeScript, Python and Rust examples place every River parent kind on a fixture gateway that verifies each request signature. |
- Journeys, normal mode: none. Partial evidence:
river-parent-exits(android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value; steporder.execute-river-conditional; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The parent-linked exit journey awaits the deferred runtime run. - Journeys, independent mode: none. Partial evidence:
river-parent-exits(android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value; steporder.execute-river-conditional; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The parent-linked exit journey against the self-operated indexer awaits the deferred runtime run. - Formal obligations:
- TP/SL children activate only after a full parent fill, and child exposure is bounded by the filled amount minus sibling reservations (requires fresh identity and full TP/SL parent fill, bounds child exposure by filled amount and siblings in conditional.test.ts). Evidence:
services/river-gateway/tests/conditional.test.ts,services/river-gateway/src/conditional.ts. - Inventory reservation across siblings is atomic and exact: over-reservation is rejected, release happens only after intent, consumed terminal exposure blocks a sibling, and amounts stay exact above 2^53 (atomically rejects over-reservation and releases only after intent, consumed terminal exposure blocks a sibling after reservation release, keeps reservations exact above JavaScript safe integer range, rejects repeated or oversized terminal fills in conditional-store.test.ts). Evidence:
services/river-gateway/tests/conditional-store.test.ts,services/river-gateway/src/conditional-store.ts. - Activating one sibling cancels the opposite one, and manual depletion that exhausts exposure prevents activation (cancels the opposite TP/SL sibling after activation, does not activate when manual depletion exhausts exposure in conditional-worker.test.ts; river-parent-exits journey). Evidence:
services/river-gateway/tests/conditional-worker.test.ts,qa/e2e/journeys/definitions/river-parent-exits.journey.json. - Conditional ids are immutable across tenants and markets, and child direction is never coerced (rejects immutable ID reuse across tenants or markets, rejects a non-boolean child direction rather than coercing it to buy in conditional-store.test.ts). Evidence:
services/river-gateway/tests/conditional-store.test.ts.
- TP/SL children activate only after a full parent fill, and child exposure is bounded by the filled amount minus sibling reservations (requires fresh identity and full TP/SL parent fill, bounds child exposure by filled amount and siblings in conditional.test.ts). Evidence:
algo.iceberg Iceberg orders#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-C. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The River gateway advanced worker splits a parent order into displayed child orders on the price and quantity grid until the total is filled; the worker enforces it.
- Source:
packages/core/src/riverClient.ts,packages/sdk-python/seesaw/river.py,packages/sdk-rust/src/river.rs,packages/cli/src/commands/river.ts,apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx,apps/mobile/src/screens/RiverOrdersScreen.tsx,services/river-gateway/src/algorithms.ts,services/river-gateway/src/advanced-worker.ts,qa/e2e/runners/river-conditional.ts - CLI commands:
river create,river get,river list,river cancel - Web routes:
/[locale]/markets/river-orders - Android screens:
RiverOrders - River gateway routes:
/v1/complex-orders,/v1/complex-orders/{id} - Boundaries: callers trader; signers customer signer module (RIVER_CUSTOMER_SIGNER_MODULE) loaded into the gateway process, which signs each child order when the worker places it; the gateway receives sign-only wallets and does not read private keys; services River gateway, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Enforced in the gateway worker. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/riverClient.ts | |
| Rust SDK | yes | packages/sdk-rust/src/river.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/river.py | |
| CLI | yes | packages/cli/src/commands/river.ts | |
| Indexer | not-applicable | none | Gateway store. |
| API | yes | services/river-gateway/src/advanced-http.ts | |
| Web | yes | apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx | |
| Android | yes | apps/mobile/src/screens/RiverOrdersScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/44-river-complex-orders.ts, packages/sdk-python/examples/river_complex_orders.py, packages/sdk-rust/examples/river_complex_orders.rs | The TypeScript, Python and Rust examples place every River parent kind on a fixture gateway that verifies each request signature. |
- Journeys, normal mode: none. Partial evidence:
river-iceberg(android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value; steporder.execute-river-iceberg; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The iceberg fill and reload journey awaits the deferred runtime run. - Journeys, independent mode: none. Partial evidence:
river-iceberg(android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value; steporder.execute-river-iceberg; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The iceberg journey against the self-operated indexer awaits the deferred runtime run. - Formal obligations:
- Iceberg tranches are placed and reloaded only after the previous tranche executes, using confirmed terminal time for the reload delay (places and reloads iceberg tranches only after execution, uses confirmed terminal time for reload delay, requires executed terminal timestamps in algorithms.test.ts). Evidence:
services/river-gateway/tests/algorithms.test.ts,services/river-gateway/src/algorithms.ts. - The plan conserves quantity: negative, overlapping or out-of-sequence children and conservation errors are rejected, and ticks, minimums, price grid and final dust are validated up front (rejects negative, overlapping, sequence, and conservation errors; validates ticks, minimums, price grid, and final dust upfront in algorithms.test.ts; river-iceberg journey). Evidence:
services/river-gateway/tests/algorithms.test.ts,qa/e2e/journeys/definitions/river-iceberg.journey.json. - Total child exposure never exceeds the immutable parent limit, and child ids are deterministic (rejects child quantity exceeding the immutable parent limit in advanced-child-builder.test.ts; uses deterministic child IDs across repeated plans and bounds total child exposure in advanced-worker.test.ts). Evidence:
services/river-gateway/tests/advanced-child-builder.test.ts,services/river-gateway/tests/advanced-worker.test.ts,services/river-gateway/src/advanced-worker.ts. - Parent cancel or expiry cancels the active child, and a cancelled or rejected child halts the iceberg (cancels active child on parent cancel or expiry, halts after cancelled or rejected iceberg child in algorithms.test.ts). Evidence:
services/river-gateway/tests/algorithms.test.ts.
- Iceberg tranches are placed and reloaded only after the previous tranche executes, using confirmed terminal time for the reload delay (places and reloads iceberg tranches only after execution, uses confirmed terminal time for reload delay, requires executed terminal timestamps in algorithms.test.ts). Evidence:
algo.pegged Pegged orders#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-C. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The River gateway reprices a PEG child against the external best bid for buys or best ask for sells. It excludes its active child from the reference book and applies the configured price bounds to any one-tick step.
- Source:
packages/core/src/riverClient.ts,packages/sdk-python/seesaw/river.py,packages/sdk-rust/src/river.rs,packages/cli/src/commands/river.ts,apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx,apps/mobile/src/screens/RiverOrdersScreen.tsx,services/river-gateway/src/peg.ts,services/river-gateway/src/advanced-http.ts,services/river-gateway/src/advanced-worker.ts,services/river-gateway/src/data-source.ts,qa/e2e/runners/river-conditional.ts - CLI commands:
river create,river get,river list,river cancel - Web routes:
/[locale]/markets/river-orders - Android screens:
RiverOrders - River gateway routes:
/v1/complex-orders,/v1/complex-orders/{id} - Boundaries: callers trader; signers customer signer module (RIVER_CUSTOMER_SIGNER_MODULE) loaded into the gateway process, which signs each child order when the worker places it; the gateway receives sign-only wallets and does not read private keys; services River gateway, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Enforced in the gateway worker. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/riverClient.ts | |
| Rust SDK | yes | packages/sdk-rust/src/river.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/river.py | |
| CLI | yes | packages/cli/src/commands/river.ts | |
| Indexer | not-applicable | none | Gateway store. |
| API | yes | services/river-gateway/src/advanced-http.ts | |
| Web | yes | apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx | |
| Android | yes | apps/mobile/src/screens/RiverOrdersScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/44-river-complex-orders.ts, packages/sdk-python/examples/river_complex_orders.py, packages/sdk-rust/examples/river_complex_orders.rs | The TypeScript, Python and Rust examples place every River parent kind on a fixture gateway that verifies each request signature. |
- Journeys, normal mode: none. Partial evidence:
river-peg(android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value; steporder.execute-river-peg; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The peg cancellation and repricing journey awaits the deferred runtime run. - Journeys, independent mode: none. Partial evidence:
river-peg(android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value; steporder.execute-river-peg; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The peg repricing journey against the self-operated indexer awaits the deferred runtime run. - Formal obligations:
- A peg quotes at its own-outcome best bid for buys or best ask for sells, and waits when the BBO is missing, stale or does not match the listing (places the initial quote at the own-outcome best bid, uses best ask for sells, waits when BBO is missing, stale, or mismatched, uses canonical NO bid and ask sides in peg.test.ts). Evidence:
services/river-gateway/tests/peg.test.ts,services/river-gateway/src/peg.ts. - Configured price bounds hold for clamping, tick rounding and any one-tick penny jump, and a post-only peg that would cross halts (clamps the quote inside optional bounds, waits when tick rounding would cross a configured bound, keeps the quote inside configured bounds when a penny jump would exceed them, halts a post-only peg that would cross in peg.test.ts). Evidence:
services/river-gateway/tests/peg.test.ts. - Repricing cancels before replacing, waits for terminal confirmation, recomputes quantity from cumulative fills and never places after completion (cancels before replacing and waits for terminal confirmation, recomputes replacement quantity from cumulative fills, does not place after completion in peg.test.ts; river-peg journey). Evidence:
services/river-gateway/tests/peg.test.ts,qa/e2e/journeys/definitions/river-peg.journey.json. - The active peg child is excluded from the reference book it reprices against (PostgresNativeBookSource.read exclude); uncovered; phase 15. Evidence:
services/river-gateway/src/data-source.ts.
- A peg quotes at its own-outcome best bid for buys or best ask for sells, and waits when the BBO is missing, stale or does not match the listing (places the initial quote at the own-outcome best bid, uses best ask for sells, waits when BBO is missing, stale, or mismatched, uses canonical NO bid and ask sides in peg.test.ts). Evidence:
algo.smart-taker Smart-taker orders#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-C. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The River gateway waits for the configured minimum opposite-side depth at or inside the price limit before submitting a price-bounded IOC for the remaining parent quantity. The depth gate may exceed the order quantity. An IOC can fill less if liquidity changes before landing.
- Source:
packages/core/src/riverClient.ts,packages/sdk-python/seesaw/river.py,packages/sdk-rust/src/river.rs,packages/cli/src/commands/river.ts,apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx,apps/mobile/src/screens/RiverOrdersScreen.tsx,services/river-gateway/src/algorithms.ts,services/river-gateway/src/advanced-worker.ts,qa/e2e/runners/river-conditional.ts - CLI commands:
river create,river get,river list,river cancel - Web routes:
/[locale]/markets/river-orders - Android screens:
RiverOrders - River gateway routes:
/v1/complex-orders,/v1/complex-orders/{id} - Boundaries: callers trader; signers customer signer module (RIVER_CUSTOMER_SIGNER_MODULE) loaded into the gateway process, which signs each child order when the worker places it; the gateway receives sign-only wallets and does not read private keys; services River gateway, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Enforced in the gateway worker. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/riverClient.ts | |
| Rust SDK | yes | packages/sdk-rust/src/river.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/river.py | |
| CLI | yes | packages/cli/src/commands/river.ts | |
| Indexer | not-applicable | none | Gateway store. |
| API | yes | services/river-gateway/src/advanced-http.ts | |
| Web | yes | apps/web/app/[locale]/markets/river-orders/RiverOrdersContent.tsx | |
| Android | yes | apps/mobile/src/screens/RiverOrdersScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/44-river-complex-orders.ts, packages/sdk-python/examples/river_complex_orders.py, packages/sdk-rust/examples/river_complex_orders.rs | The TypeScript, Python and Rust examples place every River parent kind on a fixture gateway that verifies each request signature. |
- Journeys, normal mode: none. Partial evidence:
river-smart-taker(android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value; steporder.execute-river-smart-taker; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The smart-taker depth-gate journey awaits the deferred runtime run. - Journeys, independent mode: none. Partial evidence:
river-smart-taker(android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value; steporder.execute-river-smart-taker; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The smart-taker journey against the self-operated indexer awaits the deferred runtime run. - Formal obligations:
- The worker waits until opposite-side depth at or inside the limit reaches the gate, which may exceed the total quantity and need not be tick-aligned (waits when depth is below the gate, treats min quantity as a depth gate above total, does not require the depth gate itself to be quantity-tick aligned in algorithms.test.ts). Evidence:
services/river-gateway/tests/algorithms.test.ts,services/river-gateway/src/algorithms.ts. - The submitted child is a price-bounded IOC for the full remaining quantity on the canonical side (uses canonical YES buy side and full remaining IOC, uses canonical YES sell side and price floor, uses canonical NO buy and sell sides, rejects off-grid smart prices and quantities in algorithms.test.ts). Evidence:
services/river-gateway/tests/algorithms.test.ts. - A stale, future or invalid cursor book, or a mismatched listing identity, causes a wait, and pending or unknown children block resubmission (waits for stale, future, or invalid cursor books; requires exact listing identity; waits for pending or unknown smart children in algorithms.test.ts; river-smart-taker journey). Evidence:
services/river-gateway/tests/algorithms.test.ts,qa/e2e/journeys/definitions/river-smart-taker.journey.json. - A partial IOC remainder is revalidated, an unfillable final remainder becomes terminal, and nothing resubmits after cumulative completion (validates a partial IOC remainder before placing, marks an unfillable final remainder terminal, does not resubmit after cumulative completion in algorithms.test.ts). Evidence:
services/river-gateway/tests/algorithms.test.ts.
- The worker waits until opposite-side depth at or inside the limit reaches the gate, which may exceed the total quantity and need not be tick-aligned (waits when depth is below the gate, treats min quantity as a depth gate above total, does not require the depth gate itself to be quantity-tick aligned in algorithms.test.ts). Evidence:
algo.durable-execution-recovery Durable execution recovery#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-C. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The River gateway stores each advanced parent and child intent in a durable SQLite store before submission, keyed uniquely by parent and sequence, and keeps conditional state in its own store, so a restarted worker resumes from recorded state.
- Source:
services/river-gateway/src/advanced-store.ts,services/river-gateway/src/conditional-store.ts,services/river-gateway/src/execution.ts,qa/e2e/runners/river-conditional.ts - River gateway routes:
/v1/complex-orders,/v1/complex-orders/{id} - Boundaries: callers trader; signers customer signer module (RIVER_CUSTOMER_SIGNER_MODULE) loaded into the gateway process, which signs each child order when the worker places it; the gateway receives sign-only wallets and does not read private keys; services River gateway, database, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Gateway state. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | Internal to the gateway. |
| Rust SDK | not-applicable | none | Internal to the gateway. |
| Python SDK | not-applicable | none | Internal to the gateway. |
| CLI | not-applicable | none | Internal to the gateway. |
| Indexer | not-applicable | none | Gateway store. |
| API | yes | services/river-gateway/src/advanced-http.ts | |
| Web | not-applicable | none | Internal to the gateway. |
| Android | not-applicable | none | Internal to the gateway. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | Internal to the gateway. |
- Journeys, normal mode: none. Partial evidence:
river-smart-taker(android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value; steporder.execute-river-smart-taker; asserts client for this capability; no passed cell of a client of this capability in normal mode; partial evidence, does not count),river-conditional(android: 1 of 8 action steps return a client value; cli: 1 of 8 action steps return a client value; sdk-python: 1 of 8 action steps return a client value; sdk-rust: 1 of 8 action steps return a client value; sdk-typescript: 3 of 8 action steps return a client value; web: 1 of 8 action steps return a client value; steporder.execute-river-conditionalwith{"recoverSigned":true}; asserts client for this capability; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The wrapper journeys observe gateway recovery through client actions. They are partial evidence for the gateway-internal capability. A counting gateway journey and a recorded pass remain open. - Journeys, independent mode: none. Partial evidence:
river-smart-taker(android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value; steporder.execute-river-smart-taker; asserts client for this capability; no passed cell of a client of this capability in independent mode; partial evidence, does not count),river-conditional(android: 1 of 8 action steps return a client value; cli: 1 of 8 action steps return a client value; sdk-python: 1 of 8 action steps return a client value; sdk-rust: 1 of 8 action steps return a client value; sdk-typescript: 3 of 8 action steps return a client value; web: 1 of 8 action steps return a client value; steporder.execute-river-conditionalwith{"recoverSigned":true}; asserts client for this capability; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The wrapper journeys can exercise recovery against the self-operated indexer. A counting gateway journey and a recorded independent pass remain open. - Formal obligations:
- Child intent is stored before submission, so a crash followed by restart does not duplicate a child (persists child intent before a crashed submission and does not duplicate after restart, rejects a persisted peg child without its send timestamp in advanced-worker.test.ts; requires a durable child intent and refreshes authoritative projection in advanced-executor.test.ts). Evidence:
services/river-gateway/tests/advanced-worker.test.ts,services/river-gateway/tests/advanced-executor.test.ts,services/river-gateway/src/advanced-store.ts. - Durable child state is monotonic: regressions, decreasing fills and out-of-intent quantities are rejected, and schema migration preserves original timestamps (rejects regressions, decreasing fills, and out-of-intent quantities; preserves the original timestamp on the first upgrade of an existing parent in advanced-store.test.ts). Evidence:
services/river-gateway/tests/advanced-store.test.ts,services/river-gateway/src/advanced-store.ts. - Signed bytes are persisted before send and rebroadcast exactly after restart, and an expired worker is fenced from persisting after a reclaim (signs once, persists before send, and rebroadcasts exact bytes after restart; fences an expired worker from persisting after a reclaim; fences stale engine result so only reclaimed bytes are submitted in execution.test.ts). Evidence:
services/river-gateway/tests/execution.test.ts,services/river-gateway/src/execution.ts. - Conditional state is in its own durable store and survives reopen, and recovery activates from confirmed parent state with single-flight ticks (persists deterministic reservation and child intent across reopen in conditional-store.test.ts; activates TP LIMIT from confirmed parent and current inventory without reading a trade feed, single-flights concurrent ticks and awaits the active inventory read on close in conditional-runtime-recovery.test.ts). Evidence:
services/river-gateway/tests/conditional-store.test.ts,services/river-gateway/tests/conditional-runtime-recovery.test.ts,services/river-gateway/src/conditional-store.ts.
- Child intent is stored before submission, so a crash followed by restart does not duplicate a child (persists child intent before a crashed submission and does not duplicate after restart, rejects a persisted peg child without its send timestamp in advanced-worker.test.ts; requires a durable child intent and refreshes authoritative projection in advanced-executor.test.ts). Evidence:
mirror.enableable-source-profile Production qualification for signed-source profiles#
- Status: planned. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F2,M-E. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 missing (program is no); 3 missing (idl is no); 4 missing (sdkTypescript is no; sdkRust is no; sdkPython is no); 5 missing (examples is no); 6 missing (cli is no); 7 missing (indexer is no; api is no); 8 missing (web is no; android is no); 9 missing (no normal-mode journey; no independent-mode journey); 10 missing (no formal obligation listed); 11 missing (status is planned); 12 not evaluated (the dead-code baseline is not tied to rows).
Qualify the Kalshi, Polymarket V2, and OpticOdds profiles with genuine provider captures, admitted Nitro witnesses, and configured deployment policy.
- Source:
program/src/processor/source_market/policy_admin.rs,program/src/processor/source_market/register_attested_witness.rs,scripts/e2e/source-keeper-localnet.sh - Boundaries: callers to be designed; signers to be designed; services to be designed.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | no | none | Not built at this commit. |
| IDL | no | none | Not built at this commit. |
| TypeScript SDK | no | none | Not built at this commit. |
| Rust SDK | no | none | Not built at this commit. |
| Python SDK | no | none | Not built at this commit. |
| CLI | no | none | Not built at this commit. |
| Indexer | no | none | Not built at this commit. |
| API | no | none | Not built at this commit. |
| Web | no | none | Not built at this commit. |
| Android | no | none | Not built at this commit. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | no | none | Not built at this commit. |
- Journeys, normal mode: none. The capability is planned; nothing runs yet.
- Journeys, independent mode: none. The capability is planned; nothing runs yet.
- Formal obligations: none listed.
spline.no-taker-fills Spline fills for NO takers#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F5,M-G. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 missing (web is partial; android is partial); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The matcher reflects series YES quotes into the NO lane, applies its tick grid, and matches eligible spline seats against NO takers. Equal-price maker allocations and inventory effects are computed for supplied seats.
- Source:
program/src/logic/place_order_processor/spline_integration.rs,program/src/logic/spline/reflection.rs - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E) - Events:
SplineFill - CLI commands:
order place - Boundaries: callers trader (taker); signers taker wallet; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/logic/place_order_processor/spline_integration.rs, program/src/logic/spline/reflection.rs, program/src/processor/place_order.rs, program/src/processor/swap_with_free_funds.rs | |
| IDL | yes | idl/seesaw.json, idl/scripts/coverage.ts | |
| TypeScript SDK | yes | packages/core/src/instructions.ts, packages/core/src/router/seatQuote.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/processors/placeOrder.ts, apps/indexer/src/indexer/appliedFillLedger.ts, apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/indexer/recorderReconciliationEnrichment.ts | |
| API | partial | apps/indexer/src/api/routes/txBuilder.ts | The API exposes order construction. NO spline execution through that surface still needs journey evidence. |
| Web | partial | apps/web/lib/orderInstruction.ts, apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts | The client submits NO orders. NO spline execution through this surface still needs journey evidence. |
| Android | partial | apps/mobile/src/hooks/usePlaceOrder.ts, apps/mobile/src/screens/marketDetail/useMarketDetailSubmit.ts | The client submits NO orders. NO spline execution through this surface still needs journey evidence. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | yes | packages/core/examples/36-spline-no-taker-fill.ts, packages/sdk-python/examples/spline_no_taker_fill.py, packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py | The examples estimate BUY NO and SELL NO spline fills and build the placement with the eligible seats. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.fill-no; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-no-competition-d6 fills a NO taker against two equal-price seats. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.fill-no; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-no-competition-d6 fills a NO taker against two equal-price seats. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- A NO taker consumes the seat's YES side per the reflection table (BuyNo takes the bid, SellNo takes the ask), the two lanes share each side's capacity, and reflection is an involution on the grid (design_table_rows, lanes_share_side_capacity, reflection_is_an_involution_and_keeps_the_grid, f5_f8_reflection_equivalence in reflection.rs unit tests; reflected_no_crosses_on_limits_and_rejects_on_strict_post_only in spline_matching_integration.rs). Evidence:
program/src/logic/spline/reflection.rs,program/tests/spline_matching_integration.rs. - Reflected prices stay on the tick grid, and off-grid prices round in the maker's favor, never the taker's (grid_divisibility, off_grid_rounds_in_the_makers_favor, off_grid_rounding_never_favors_the_taker, grid_edges_reject in reflection.rs unit tests; independent_reference_kills_bid_and_ask_grid_rounding_mutants in spline_matching_equivalence.rs). Evidence:
program/src/logic/spline/reflection.rs,program/tests/spline_matching_equivalence.rs. - Equal-price seats share fills after the book, with lots conserved and each seat capped at its capacity; self-owned seats are skipped and duplicate seats are rejected (pro_rata_step_conserves_lots_and_caps_each_seat in pro_rata.rs; equal_price_reflected_seats_share_after_the_book_in_any_account_order, none_and_self_owned_splines_are_skipped_without_match_budget in spline_matching_equivalence.rs; creator_and_noncreator_seats_share_an_equal_price_no_fill, duplicate_counted_seat_is_rejected_and_zero_count_can_rest in spline_matching_integration.rs). Evidence:
program/src/logic/spline/priority.rs,program/tests/spline_matching_equivalence.rs,program/tests/spline_matching_integration.rs. - Seat inventory and pair issuance change exactly per fill side within supply, and wrong-lane or zero-lot fills are refused (buy_yes_pair_issuance_is_exactly_backed, sell_yes_retirement_into_inventory_is_exact, wrong_lane_and_zero_lot_fills_are_refused in goal_tr_spline_econ.rs; spline_apply_preserves_named_outcome_representation in spline_apply_side_symmetry.rs; all_four_spl_routes_preserve_inventory_inside_supply_and_mint_once in spline_matching_integration.rs). Evidence:
formal/verification/goal_tr_spline_econ.rs,program/tests/spline_apply_side_symmetry.rs,program/tests/spline_matching_integration.rs. - Spline tail authentication is the same for NO and YES orders, and a stale trading generation hides seats from takers (spline_tail_authentication_is_side_independent_for_no_orders, stale_trading_generation_spline_tail_is_blind_to_yes_takers in spline_matching_integration.rs). A formal proof of NO-lane reflection through compute_place_order is uncovered: the existing goal_tr_spline_adapters harness asserts the opposite (NO takers never reach a snapshot) and is stale; phase 15. Evidence:
program/tests/spline_matching_integration.rs,program/src/logic/place_order_processor/spline_integration.rs.
- A NO taker consumes the seat's YES side per the reflection table (BuyNo takes the bid, SellNo takes the ask), the two lanes share each side's capacity, and reflection is an involution on the grid (design_table_rows, lanes_share_side_capacity, reflection_is_an_involution_and_keeps_the_grid, f5_f8_reflection_equivalence in reflection.rs unit tests; reflected_no_crosses_on_limits_and_rejects_on_strict_post_only in spline_matching_integration.rs). Evidence:
app.parity-and-release App parity and store release#
- Status: planned. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F12. Owning phase: 13. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 missing (program is no); 3 missing (idl is no); 4 missing (sdkTypescript is no; sdkRust is no; sdkPython is no); 5 missing (examples is no); 6 missing (cli is no); 7 missing (indexer is no; api is no); 8 missing (web is no; android is no); 9 missing (no normal-mode journey; no independent-mode journey); 10 missing (no formal obligation listed); 11 missing (status is planned); 12 not evaluated (the dead-code baseline is not tied to rows).
Every user-facing action and state exists in web and Android with translated copy, every surface gap that this registry records for an app is closed or has an owner decision, and the apps are released to their stores; iOS waits for owner decision R8.
- Source: none
- Boundaries: callers to be designed; signers to be designed; services to be designed.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | no | none | Not built at this commit. |
| IDL | no | none | Not built at this commit. |
| TypeScript SDK | no | none | Not built at this commit. |
| Rust SDK | no | none | Not built at this commit. |
| Python SDK | no | none | Not built at this commit. |
| CLI | no | none | Not built at this commit. |
| Indexer | no | none | Not built at this commit. |
| API | no | none | Not built at this commit. |
| Web | no | none | Not built at this commit. |
| Android | no | none | Not built at this commit. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | no | none | Not built at this commit. |
- Journeys, normal mode: none. The capability is planned; nothing runs yet.
- Journeys, independent mode: none. The capability is planned; nothing runs yet.
- Formal obligations: none listed.
market.mirror-settlement-semantics Precise mirror settlement semantics#
- Status: implemented. Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102. - Roadmap items:
M-F. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is no); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Mirror markets take their open, resolve, halt, close-time and terminal relations from signed source results, so that the settlement of every market family is fixed by its immutable definition: the witness relations derive the facts and the program reducer applies them.
- Source:
program/src/processor/source_market/reducer.rs,program/src/processor/source_market/statement.rs,source-result-core/src/facts.rs,mirror-source-core/src/local_exit_payout.rs,mirror-source-core/src/external_payout.rs,source-witness/crates/source-relations/src/kalshi.rs,source-witness/crates/source-relations/src/polymarket.rs,source-witness/crates/source-relations/src/odds.rs,mirror-json-core/src/lib.rs - Boundaries: callers source requester, submitting wallet; signers submitting wallet; services Solana RPC, admitted source witnesses.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/source_market/reducer.rs, program/src/processor/source_market/statement.rs | |
| IDL | not-applicable | none | The relation adds no instruction; the lifecycle instructions are modeled under the mirror rows. |
| TypeScript SDK | not-applicable | none | Clients submit signed results through the mirror lifecycle rows (mirror.prepare-and-open to mirror.cleanup); this row is the settlement relation those submissions apply. |
| Rust SDK | not-applicable | none | Clients submit signed results through the mirror lifecycle rows (mirror.prepare-and-open to mirror.cleanup); this row is the settlement relation those submissions apply. |
| Python SDK | not-applicable | none | Clients submit signed results through the mirror lifecycle rows (mirror.prepare-and-open to mirror.cleanup); this row is the settlement relation those submissions apply. |
| CLI | not-applicable | none | Clients submit signed results through the mirror lifecycle rows (mirror.prepare-and-open to mirror.cleanup); this row is the settlement relation those submissions apply. |
| Indexer | not-applicable | none | The indexer journals the lifecycle routes under the mirror rows. |
| API | not-applicable | none | The mirror reads are served under mirror.reads. |
| Web | not-applicable | none | Clients submit signed results through the mirror lifecycle rows (mirror.prepare-and-open to mirror.cleanup); this row is the settlement relation those submissions apply. |
| Android | not-applicable | none | Clients submit signed results through the mirror lifecycle rows (mirror.prepare-and-open to mirror.cleanup); this row is the settlement relation those submissions apply. |
| iOS | no | none | No iOS app: owner decision R8 of 2026-11-17 keeps mobile Android-only (docs/internal/decisions/2026-11-17-ios-scope-r8.md). |
| Examples | no | none | No standalone example exercises the settlement relation. |
- Journeys, normal mode: none. No journey index entry settles a mirror market from a genuine source capture; the relations are tested against the corpus of source-witness/crates/source-relations/tests/corpus. Runtime runs are deferred by owner decision of 2026-11-17.
- Journeys, independent mode: none. No journey index entry settles a mirror market from a genuine source capture; the relations are tested against the corpus of source-witness/crates/source-relations/tests/corpus. Runtime runs are deferred by owner decision of 2026-11-17.
- Formal obligations:
- The signed statement digest commits to every definition and account field, and changing any field alone changes the digest (statement_vectors_rebuild_from_accounts_and_claim, each_statement_field_changed_alone_changes_the_digest, the_witness_count_and_items_are_not_in_the_statement in statement.rs; different_statements_never_share_bytes, statement_round_trips_when_reserved_is_zero in source-result-core/tests/properties.rs). Evidence:
program/src/processor/source_market/statement.rs,source-result-core/tests/properties.rs. - Fact blocks decode exactly per operation, and verification accepts open, resolve, halt and update-close facts only within their operation windows (fact_block_codecs, resolve_code_rules in codecs.rs; resolve_facts_reader_never_panics, open_facts_reader_never_panics proofs; step_5_open_window, step_5_resolve_window, step_5_halt_window, step_5_update_close_window, step_9_kalshi_resolve, step_9_polymarket_and_opticodds_resolve in verify.rs). Evidence:
source-result-core/tests/codecs.rs,source-result-core/src/kani.rs,program/src/processor/source_market/verify.rs. - Witness relations derive the same facts on live and historical routes, refuse unsupported or tampered Kalshi, Polymarket and OpticOdds bodies, and match the reference settlement adapter (kalshi_binary_resolves_yes, live_and_historical_routes_give_one_output, differential_against_the_reference_settlement_adapter, polymarket_refusals_of_the_corpus in corpus.rs; kalshi_rules, polymarket_rules in tamper.rs; provisional_documentation_resolve_rules in odds_provisional.rs; every_open_row_has_a_resolve_row_of_its_kind in relation_table.rs). Evidence:
source-witness/crates/source-relations/tests/corpus.rs,source-witness/crates/source-relations/tests/tamper.rs,source-witness/crates/source-relations/tests/odds_provisional.rs,source-witness/crates/source-relations/tests/relation_table.rs. - External and local-exit payouts reduce exactly: strict full partition, no zero denominator, timeout rejects any accepted candidate, and a conflict needs two valid nonzero source facts (full_partition_is_strict_at_every_boundary in external_payout.rs; zero_denominator_is_invalid_even_for_zero_inputs; timeout_rejects_any_accepted_candidate, conflict_requires_two_valid_nonzero_source_facts in local_exit_payout.rs; all_small_full_partition_rational_pairs_match_independent_contradiction_rule). Evidence:
mirror-source-core/src/external_payout.rs,mirror-source-core/tests/external_payout_math.rs,mirror-source-core/src/local_exit_payout.rs,mirror-source-core/tests/fv_res26_local_exit_candidate_domains.rs. - Source JSON and HTTP parsing is exact: duplicate decoded keys, bad framing, duplicate critical headers and invalid surrogates are rejected (rejects_duplicate_decoded_keys_even_in_unknown_nested_objects, rejects_bad_http_framing_and_duplicate_critical_headers, rejects_invalid_surrogates_and_accepts_valid_pairs in mirror-json-core lib.rs). Evidence:
mirror-json-core/src/lib.rs. - The program reducer applies only legal open, resolve, halt, close-time and terminal transitions, refuses redundant observations and immutable-binding mismatches, and respects the review window before terminal exit; uncovered; phase 15. Evidence:
program/src/processor/source_market/reducer.rs.
- The signed statement digest commits to every definition and account field, and changing any field alone changes the digest (statement_vectors_rebuild_from_accounts_and_claim, each_statement_field_changed_alone_changes_the_digest, the_witness_count_and_items_are_not_in_the_statement in statement.rs; different_statements_never_share_bytes, statement_round_trips_when_reserved_is_zero in source-result-core/tests/properties.rs). Evidence:
- Known limits:
- External signoff: the Kalshi, Polymarket V2 and OpticOdds relations are not qualified against genuine production captures with admitted witnesses (mirror.enableable-source-profile).
witness.nitro-attestation Nitro witness attestations#
- Status: implemented. Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102. - Roadmap items:
F6. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is no; api is no); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Source proofs signed by witnesses in AWS Nitro Enclaves (Seesaw-operated at launch, threshold 2, third parties by proof of attestation) replace the Reclaim attestors.
- Source:
program/src/processor/source_market/register_attested_witness.rs,program/src/processor/source_market/attestation_proof.rs,program/src/state/witness_registry.rs,source-result-core/src/certificate.rs,source-witness/crates/source-witness-enclave/src/lib.rs,source-witness/crates/source-witness-host/src/lib.rs,source-witness/crates/source-attest/src/lib.rs,source-witness/OPERATOR.md,packages/source-proof/src/index.ts - CLI commands:
source prepare-witness-registration,source prepare-request - Boundaries: callers witness operator, deployment authority; signers transaction payer, authority or witness operator as required by the registry policy; services Solana RPC, AWS Nitro Enclaves, SP1 attestation proof generation.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/source_market/register_attested_witness.rs, program/src/processor/source_market/attestation_proof.rs, program/src/state/witness_registry.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/sourceResult/registration.ts, packages/core/src/sourceResult/witnessRequest.ts | |
| Rust SDK | yes | packages/sdk-rust/src/source_result.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/source_transactions.py | |
| CLI | yes | packages/cli/src/commands/sourceAdmin.ts, packages/cli/src/commands/source.ts | |
| Indexer | no | none | The registration event is journaled under mirror.trust-root; the indexer projects no witness state. |
| API | no | none | Operators read the witness registry over their own RPC with the CLI or an SDK. |
| Web | yes | apps/web/app/[locale]/admin/operations/OperationsAdminContent.tsx, apps/shared/operatorActions.ts, apps/web/lib/__tests__/operatorActions.test.ts | RegisterAttestedWitness from the public enclave keys and the SP1 public values and proof (pasted as hex); the connected wallet is the operator, and a closed registry needs it to be the config authority (owner ruling 2026-11-24 (docs/internal/decisions/2026-11-24-client-parity-rulings.md)). Producing the attestation proof stays with source-witness-host. Tests are written, not run. |
| Android | yes | apps/mobile/src/admin/adminControls.ts, apps/mobile/src/screens/AdminScreen.tsx, apps/shared/operatorActions.ts, apps/mobile/src/__tests__/admin/adminControls.test.ts | The registerAttestedWitness admin control, same inputs and signer rule as web (owner ruling 2026-11-24 (docs/internal/decisions/2026-11-24-client-parity-rulings.md)). Tests are written, not run. |
| iOS | no | none | No iOS app: owner decision R8 of 2026-11-17 keeps mobile Android-only (docs/internal/decisions/2026-11-17-ios-scope-r8.md). |
| Examples | yes | packages/sdk-rust/examples/register_attested_witness.rs, packages/core/examples/41-source-admin.ts, packages/sdk-python/examples/register_attested_witness.py |
- Journeys, normal mode: none. No journey index entry registers an attested witness; the source-attest crate tests verify recorded Nitro attestation documents (source-witness/crates/source-attest/tests/fixtures_nitro.rs). Runtime runs are deferred by owner decision of 2026-11-17.
- Journeys, independent mode: none. No journey index entry registers an attested witness; the source-attest crate tests verify recorded Nitro attestation documents (source-witness/crates/source-attest/tests/fixtures_nitro.rs). Runtime runs are deferred by owner decision of 2026-11-17.
- Formal obligations:
- Witness registration admits a key only with an attestation proof committed to this program, deployment, cluster, operator, slot and epoch, and with a fresh attestation; the historical spike proof or a stale attestation leaves the registry unchanged (spike_proof_verifies_only_for_its_committed_claim, verifier_manifest_matches_compiled_constants in attestation_proof.rs; spike_attestation_cannot_admit_a_witness_without_the_release_binding in signed_source_governance_runtime.rs). Evidence:
program/src/processor/source_market/attestation_proof.rs,program/tests/signed_source_governance_runtime.rs. - Nitro documents verify only against the AWS root chain with the expected PCRs at their timestamp; debug-mode, mutated, truncated or out-of-validity documents are refused (the_production_documents_verify_with_the_expected_pcrs, the_debug_document_is_refused, one_changed_byte_is_refused_at_every_offset, the_fixture_chain_is_refused_outside_its_validity in fixtures_nitro.rs; a_debug_enclave_gets_no_operation in enclave.rs). Evidence:
source-witness/crates/source-attest/tests/fixtures_nitro.rs,source-witness/crates/source-witness-enclave/tests/enclave.rs. - The enclave signing key never leaves the enclave, and the host forwards only admitted callers to allowlisted hosts (the_signing_key_never_appears_in_any_output, c5_c7_the_canary_is_found_nowhere_outside_tls in enclave.rs; a_forward_to_a_host_outside_the_allowlist_is_refused, a_caller_outside_the_admission_list_is_refused_forwarding_and_can_still_relay in host.rs). Evidence:
source-witness/crates/source-witness-enclave/tests/enclave.rs,source-witness/crates/source-witness-host/tests/host.rs. - A signed result needs at least the operation threshold (2) of distinct, ordered, currently admitted slots, with at least 3 slots admitted and each signature valid for its key and digest (step_4_k_must_reach_the_operation_threshold, step_4_at_least_three_slots_must_be_admitted_now, step_6_items_out_of_order_and_a_repeated_slot, step_8_wrong_key_wrong_digest_or_changed_item, accepts_a_resolve_with_two_and_with_three_witnesses in verify.rs; k_outside_two_and_three_is_witness_count_mismatch in frame.rs). Evidence:
program/src/processor/source_market/verify.rs,program/src/processor/source_market/frame.rs. - Certificate and registry layouts decode exactly, a measurement counts only inside its activation delay window, and the registry header is version-checked (certificate_codec, registry_codec_and_predicate in codecs.rs; certificate_reader_never_panics, registry_slot_reader_never_panics proofs; release_registry_and_policy_activate_with_the_recorded_delay; rejects_wrong_length_discriminator_and_version in witness_registry.rs). Evidence:
source-result-core/tests/codecs.rs,source-result-core/src/kani.rs,program/tests/signed_source_governance_runtime.rs,program/src/state/witness_registry.rs. - Registration requires the slot's previous epoch to match, lets only the admitted operator replace its slot, refuses a duplicate key digest or a second slot for the same operator, and in open mode requires the operator to sign as authority with the deposit; uncovered; phase 15. Evidence:
program/src/processor/source_market/register_attested_witness.rs.
- Witness registration admits a key only with an attestation proof committed to this program, deployment, cluster, operator, slot and epoch, and with a fresh attestation; the historical spike proof or a stale attestation leaves the registry unchanged (spike_proof_verifies_only_for_its_committed_claim, verifier_manifest_matches_compiled_constants in attestation_proof.rs; spike_attestation_cannot_admit_a_witness_without_the_release_binding in signed_source_governance_runtime.rs). Evidence:
- Known limits:
- External signoff: live enclave measurements (PCR0 to PCR2 of a production EIF build) and their independent rebuild are not recorded (source-witness/OPERATOR.md).
- External signoff: Seesaw-operated production witnesses are not admitted on a deployment at threshold 2, and no third-party witness has registered.
currency.decimal-generalization Decimal-generalized settlement currencies#
- Status: implemented. Last verified at
387d1cf71781d508aaac3b3c809754d0ebf9c6bf. - Roadmap items:
P-E,F3. Owning phase: 4. - References: #771.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is partial); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
A registered settlement currency may have any admitted decimal count (6 to 9, ADMITTED_SETTLEMENT_DECIMALS_MIN..=MAX in program/src/constants.rs) and may be a classic SPL Token or a Token-2022 mint whose extensions are on the owner-approved allowlist (mint extension types 18 to 23). One outcome-share atom is one currency atom: CreateMarket gives the YES and NO mints the currency's decimals, and fees, collateral and payouts are integer atoms, so fee conservation including dust holds at every decimal count.
- Source:
program/src/constants.rs,program/src/validation/settlement_mint.rs,program/src/processor/create_market.rs - Boundaries: callers anyone; signers caller wallet (fee payer); services Solana RPC, the indexer.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/constants.rs, program/src/validation/settlement_mint.rs, program/src/processor/create_market.rs | |
| IDL | yes | idl/seesaw.json | The capability adds no route; the IDL models the CurrencyRecord decimals and token-standard fields and the InvalidSettlementMintDecimals error (6 to 9). |
| TypeScript SDK | yes | packages/core/src/currency/amount.ts, packages/core/src/currencyAccounts.ts, packages/core/src/display.ts, packages/core/src/currency/admission.ts, packages/core/src/currency/admission.test.ts | Amounts are parsed and formatted with the currency decimals; marketSettlementTokenProgram picks the quote program of a market; currency-market-lifecycle-* runs the full market journey in a fresh registered currency at 6, 7, 8 and 9 decimals and in a 9-decimal Token-2022 group mint. screenSettlementMint applies the program settlement-mint screen (decimals 6 to 9, Token-2022 extension types 18 to 23 only) so clients refuse an unadmitted mint before signing. |
| Rust SDK | yes | packages/sdk-rust/src/currency.rs, packages/sdk-rust/src/client.rs | Every builder takes settlement_token_program; currency-market-lifecycle-* runs the full market journey in a fresh registered currency at 6, 7, 8 and 9 decimals and in a 9-decimal Token-2022 group mint. |
| Python SDK | yes | packages/sdk-python/seesaw/currency.py, packages/sdk-python/seesaw/client.py | Every builder takes settlement_token_program; currency-market-lifecycle-* runs the full market journey in a fresh registered currency at 6, 7, 8 and 9 decimals and in a 9-decimal Token-2022 group mint. |
| CLI | yes | packages/cli/src/commands/market/index.ts, packages/cli/src/lib/settlement-token.ts | Amount flags take raw base units. market create takes any registered settlement mint, classic SPL Token or Token-2022, reads its token program and screens it with screenSettlementMint (decimals 6 to 9, extension types 18 to 23 only) before any rent is paid (owner ruling 2026-11-24 (docs/internal/decisions/2026-11-24-client-parity-rulings.md)). Its journey cells stay cannot-run for the harness reason JF-03 (stand-in PriceUpdateV2), not for currency support. |
| Indexer | yes | apps/indexer/src/indexer/currencyRegistrationEvents.ts | CurrencyRegistered is projected into currency_registry with the mint decimals and token program (currencyRegistrationEvents.ts:161-167); market and trade rows stay in base units of their settlement mint. |
| API | yes | apps/indexer/src/api/routes/currencies.ts | GET /api/v1/currencies returns each registered currency with its decimals and token program (currencies.ts:69-84). |
| Web | yes | apps/web/lib/hooks/useMarketCurrency.ts, apps/web/lib/createMarketCurrency.ts, apps/web/app/[locale]/markets/create/CreateMarketContent.tsx, apps/web/lib/__tests__/createMarketCurrency.test.ts | Amounts use the market currency decimals. Market creation selects any registered currency, including Token-2022 (labelled), and refuses a mint the program would not admit with createMarket.currencyNotAdmitted, translated in all 29 locales as machine drafts (owner ruling 2026-11-24 (docs/internal/decisions/2026-11-24-client-parity-rulings.md)). The web journey runner performs no market action (suite-web-journey is blocked). Tests are written, not run. |
| Android | yes | apps/mobile/src/hooks/useMarketCurrency.ts, apps/mobile/src/utils/createMarketCurrency.ts, apps/mobile/src/screens/CreateMarketScreen.tsx, apps/mobile/src/__tests__/utils/createMarketCurrency.test.ts | Amounts use the market currency decimals. Market creation selects any registered currency, including Token-2022, and refuses an unadmitted mint (createMarket.currencyNotAdmitted in all 16 locales, machine drafts) (owner ruling 2026-11-24 (docs/internal/decisions/2026-11-24-client-parity-rulings.md)). No Android journey runs a market action. Tests are written, not run. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | partial | packages/core/examples/16-currency-governance.ts, packages/sdk-rust/examples/currency_governance.rs, packages/sdk-python/examples/currency_governance.py | Each example registers a currency and reads its decimals back from the CurrencyRecord; no example creates or trades a market in a non-six-decimal or Token-2022 currency. |
- Journeys, normal mode:
currency-market-lifecycle-d6(cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),currency-market-lifecycle-d7(cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),currency-market-lifecycle-d8(cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),currency-market-lifecycle-d9(cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),currency-market-lifecycle-t22-d9(cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust) - Journeys, independent mode:
currency-market-lifecycle-d6(cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),currency-market-lifecycle-d7(cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),currency-market-lifecycle-d8(cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),currency-market-lifecycle-d9(cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust),currency-market-lifecycle-t22-d9(cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value; stepmarket.create; passed on a real stack for sdk-typescript, sdk-python, sdk-rust) - Formal obligations:
- Fee legs (protocol, creator, referral, builder, maker) sum to the collected fee, dust included, at every decimal scale 0 to 18. Evidence:
program/tests/decimal_scale_conservation.rs. - In a second currency the protocol leg lands in that currency's shard and never crosses currencies. Evidence:
program/tests/currency_protocol_leg_conservation.rs. - The full native lifecycle runs at 6 to 9 decimals and on a Token-2022 mint with every admitted extension. Evidence:
program/tests/litesvm_native_full_lifecycle.rs.
- Fee legs (protocol, creator, referral, builder, maker) sum to the collected fee, dust included, at every decimal scale 0 to 18. Evidence:
- Known limits:
- Config thresholds (max_order_size, min_resting_notional_raw, spline_min_commitment) apply to atoms unchanged in every currency (owner decision Q3 = T-0), so max_order_size is 1,000 whole shares at 9 decimals.
- CLI, web and mobile market creation takes any registered currency, classic SPL Token or Token-2022, and screens the mint with the program rules before signing; only the CLI, web and Android journey cells remain cannot-run for harness reasons.
- Token-2022 transfer fees, transfer hooks, permanent delegates, confidential transfers and mint close authority stay rejected.
orderbook.bounded-indexes Bounded order-book indexes#
- Status: implemented. Last verified at
130987b85ad64b385c01f9b190b022beee2ab1b2. - Roadmap items:
S2,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The canonical trader ledger indexes occupied seats by owner. The canonical orderbook indexes owner orders and nonzero client order IDs for scoped lookup and cancellation.
- Source:
program/src/logic/seat_index.rs,program/src/logic/deep_orderbook/tree.rs,program/src/processor/cancel_order_by_client_id.rs,program/src/processor/cancel_owner_orders.rs - Routes:
PlaceOrder(0x0C),CancelOrderByClientId(0x54),CancelOwnerOrders(0x55) - Events:
OrderPlaced,OrderCancelled,CancelSessionProgressed - Boundaries: callers trader; signers trader wallet; services Solana RPC, Seesaw indexer.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/logic/seat_index.rs, program/src/logic/deep_orderbook/tree.rs | |
| IDL | not-applicable | none | The indexes are internal to the on-chain ledger and orderbook. |
| TypeScript SDK | not-applicable | none | The indexes are internal to the on-chain ledger and orderbook. |
| Rust SDK | not-applicable | none | The indexes are internal to the on-chain ledger and orderbook. |
| Python SDK | not-applicable | none | The indexes are internal to the on-chain ledger and orderbook. |
| CLI | yes | packages/cli/src/commands/order/index.ts, packages/cli/src/commands/order/cancellation.ts | The indexes are internal to the on-chain ledger and orderbook. |
| Indexer | not-applicable | none | The indexes are internal to the on-chain ledger and orderbook. |
| API | not-applicable | none | The indexes are internal to the on-chain ledger and orderbook. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts, apps/web/app/[locale]/markets/[marketId]/BoundedCancelPanel.tsx | The indexes are internal to the on-chain ledger and orderbook. |
| Android | yes | apps/mobile/src/hooks/usePlaceOrder.ts, apps/mobile/src/screens/marketDetail/OwnerCancellationSection.tsx | The indexes are internal to the on-chain ledger and orderbook. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/strategy_lifecycle.rs, packages/sdk-python/examples/strategy_lifecycle.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py | The SDK examples build these routes offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Partial evidence:
cancel-by-client-id(android: 2 of 6 action steps return a client value; cli: 1 of 6 action steps return a client value; sdk-python: 1 of 6 action steps return a client value; sdk-rust: 1 of 6 action steps return a client value; sdk-typescript: 1 of 6 action steps return a client value; web: 3 of 6 action steps return a client value; steporder.cancel-by-client-id; asserts chain for this capability; no passed cell of a client of this capability in normal mode; partial evidence, does not count),resumable-cancel(cli: 17 of 23 action steps return a client value; sdk-python: 3 of 23 action steps return a client value; sdk-rust: 3 of 23 action steps return a client value; sdk-typescript: 3 of 23 action steps return a client value; web: 6 of 23 action steps return a client value; android: 6 of 23 action steps return a client value; steporder.cancel-session; asserts chain for this capability; no passed cell of a client of this capability in normal mode; partial evidence, does not count). cancel-by-client-id and resumable-cancel exercise the client-ID and owner-order indexes on chain; the references are partial evidence because the row has no client surface. Compute measurements remain deferred. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
cancel-by-client-id(android: 2 of 6 action steps return a client value; cli: 1 of 6 action steps return a client value; sdk-python: 1 of 6 action steps return a client value; sdk-rust: 1 of 6 action steps return a client value; sdk-typescript: 1 of 6 action steps return a client value; web: 3 of 6 action steps return a client value; steporder.cancel-by-client-id; asserts chain for this capability; no passed cell of a client of this capability in independent mode; partial evidence, does not count),resumable-cancel(cli: 17 of 23 action steps return a client value; sdk-python: 3 of 23 action steps return a client value; sdk-rust: 3 of 23 action steps return a client value; sdk-typescript: 3 of 23 action steps return a client value; web: 6 of 23 action steps return a client value; android: 6 of 23 action steps return a client value; steporder.cancel-session; asserts chain for this capability; no passed cell of a client of this capability in independent mode; partial evidence, does not count). cancel-by-client-id and resumable-cancel exercise the client-ID and owner-order indexes on chain; the references are partial evidence because the row has no client surface. Compute measurements remain deferred. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- The owner tree indexes every occupied seat once and maintains its search and balance invariants through allocation and release. Stale generations cannot resolve reused seats. Evidence:
program/src/logic/seat_index.rs,program/tests/ob_p02_seat_index_full_occupancy.rs. - Every resting order is reachable exactly once in its owner traversal. Each nonzero client ID appears exactly once under its owner in the client-ID tree. Cancellation, fill, eviction and slot reuse preserve both indexes. Evidence:
program/src/logic/deep_orderbook/client_index.rs,program/src/logic/deep_orderbook/tree.rs,program/tests/ob_p05_bounded_bulk_cancel.rs,program/tests/pr675_client_id_dense_runtime.rs.
- The owner tree indexes every occupied seat once and maintains its search and balance invariants through allocation and release. Stale generations cannot resolve reused seats. Evidence:
- Known limits:
- Compute-budget qualification for the canonical sizes is deferred.
order.resumable-mass-cancel Resumable mass cancellation#
- Status: implemented. Last verified at
130987b85ad64b385c01f9b190b022beee2ab1b2. - Roadmap items:
S2,F7. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
CancelOwnerOrders bounds work per transaction and stores the session nonce, cutoff, and cursor on the trader seat. Clients can resume after restart.
- Source:
program/src/processor/cancel_owner_orders.rs,packages/core/src/resumableCancellation.ts - Routes:
CancelOwnerOrders(0x55) - Events:
OrderCancelled,CancelSessionProgressed - CLI commands:
order cancel-all,order cancel-up-to,order cancel-session,order abort-cancel - API routes:
POST /api/v1/tx/cancel-owner-orders,GET /api/v1/user/orders/cancel-session - Boundaries: callers trader; signers trader wallet; services Solana RPC, Seesaw indexer.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/cancel_owner_orders.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/resumableCancellation.ts, packages/core/src/instructions.ts, packages/core/src/strategyAccounts.ts, packages/core/src/generated/program/index.ts | |
| Rust SDK | yes | packages/sdk-rust/src/strategy.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/strategy.py | |
| CLI | yes | packages/cli/src/commands/order/cancellation.ts | |
| Indexer | partial | apps/indexer/src/indexer/binaryEventProjection.ts | Recorder ingestion tracks the transactions and projects the canceled orders. The seat account is authoritative for the cursor. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/user.ts | |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/BoundedCancelPanel.tsx | |
| Android | yes | apps/mobile/src/screens/marketDetail/OwnerCancellationSection.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py | The SDK example guides link to the resumable-cancel local-validator flow for signed submission. Its runtime qualification remains deferred. |
- Journeys, normal mode: none. Partial evidence:
resumable-cancel(cli: 17 of 23 action steps return a client value; sdk-python: 3 of 23 action steps return a client value; sdk-rust: 3 of 23 action steps return a client value; sdk-typescript: 3 of 23 action steps return a client value; web: 6 of 23 action steps return a client value; android: 6 of 23 action steps return a client value; steporder.cancel-sessionwith{"resume":true}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
resumable-cancel(cli: 17 of 23 action steps return a client value; sdk-python: 3 of 23 action steps return a client value; sdk-rust: 3 of 23 action steps return a client value; sdk-typescript: 3 of 23 action steps return a client value; web: 6 of 23 action steps return a client value; android: 6 of 23 action steps return a client value; steporder.cancel-sessionwith{"resume":true}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification is deferred until roadmap implementation ends. - Formal obligations:
- Begin fixes the cutoff. Continue removes or proves gone each target once, never follows a reused slot via a stale full order ID, and does not pin an empty seat. Without interference, at most ceil(walked / max_examined) + ceil(targets / max_removed) + 1 successful steps suffice. Evidence:
docs/internal/orderbook-execution/design.md,program/src/processor/cancel_owner_orders.rs,program/tests/ob_p05_bounded_bulk_cancel.rs.
- Begin fixes the cutoff. Continue removes or proves gone each target once, never follows a reused slot via a stale full order ID, and does not pin an empty seat. Without interference, at most ceil(walked / max_examined) + ceil(targets / max_removed) + 1 successful steps suffice. Evidence:
- Known limits:
- A page examines at most 64 owner records and removes at most 32. Orders placed after begin fall beyond its captured cutoff.
- Page-budget measurements on the release binary remain deferred.
orderbook.market-tick Market tick in publication and matching#
- Status: implemented. Last verified at
130987b85ad64b385c01f9b190b022beee2ab1b2. - Roadmap items:
S2. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 missing (web is partial; android is partial); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Spline publication can bind an upstream Market Tick window. Matching skips the spline when the window does not admit the current tick.
- Source:
program/src/validation/market_tick.rs,program/src/processor/update_seat_quote.rs,program/src/processor/place_order/trailing_layout.rs,packages/core/src/marketTick.ts - Routes:
UpdateSeatQuote(0x30),PlaceOrder(0x0C),SwapWithFreeFunds(0x0E),PlaceLimitWithFreeFunds(0x0F) - Events:
SplineFill - CLI commands:
spline update-mid,order place - API routes:
GET /api/v1/markets/{marketId}/spline-seats - Boundaries: callers spline publisher, trader; signers publisher authority, trader wallet; services Solana RPC, upstream Market Tick program, Seesaw indexer.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/validation/market_tick.rs, program/src/processor/update_seat_quote.rs, program/src/processor/place_order/trailing_layout.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/marketTick.ts, packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/client.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/instructions.py, packages/sdk-python/seesaw/client.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts, packages/cli/src/commands/spline/index.ts | The CLI builds tick-bound publication and adds the canonical Market Tick account to placement when requested. |
| Indexer | not-applicable | none | This surface has no separate Market Tick publication control. |
| API | partial | apps/indexer/src/api/routes/marketSplineSeats.ts | The spline seat endpoint returns Market Tick state for quote consumers. |
| Web | partial | apps/web/app/[locale]/markets/[marketId]/useMarketOrderSubmit.ts | This surface has no separate Market Tick publication control. |
| Android | partial | apps/mobile/src/hooks/usePlaceOrder.ts | This surface has no separate Market Tick publication control. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py | The SDK examples build these routes offline from fixture data. A validator run remains pending. |
- Journeys, normal mode: none. Partial evidence:
market-tick-d6(cli: 8 of 12 action steps return a client value; sdk-python: 10 of 12 action steps return a client value; sdk-rust: 10 of 12 action steps return a client value; sdk-typescript: 10 of 12 action steps return a client value; stepspline.fill-market-tick; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
market-tick-d6(cli: 8 of 12 action steps return a client value; sdk-python: 10 of 12 action steps return a client value; sdk-rust: 10 of 12 action steps return a client value; sdk-typescript: 10 of 12 action steps return a client value; stepspline.fill-market-tick; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification is deferred until roadmap implementation ends. - Formal obligations:
- The tick-account check accepts only the fixed address, upstream owner, read-only access, the exact 88-byte layout and discriminator, the expected signer, the current slot and a consistent tick state (accepts_trusted_first_tick_and_later_tick, rejects_incorrect_identity_slot_and_writable_account, rejects_invalid_layout_and_tick_state, account_view_uses_runtime_owner_address_and_writability, canonical_tick_address_matches_upstream_seeds). Evidence:
program/src/validation/market_tick.rs,program/tests/market_tick_adapter.rs. - A signed window admits a tick iff signer, slot and first timestamp match and the sequence lies in the inclusive window, within the protocol max span, never rebased (signed_window_is_inclusive_bound_to_epoch_and_never_rebased). Evidence:
program/src/validation/market_tick.rs,program/tests/market_tick_adapter.rs. - The core TypeScript decoder and window check match the on-chain rules at the boundaries (marketTick.test.ts: Market Tick V1, marketTickWindowPermits boundaries, decodeMarketTickV1 and readMarketTickV1 boundaries). Evidence:
packages/core/src/marketTick.ts,packages/core/src/__tests__/marketTick.test.ts. - Clearing a seat's tick binding zeroes all 64 stored window bytes (clearing_the_tick_binding_zeroes_all_64_bytes in spline_seat.rs). Evidence:
program/src/state/spline_seat.rs. - Three paths have no test: the UpdateSeatMid publication shape check (validate_publication_shape), the matching loader skipping a bound spline when admits_tick_account fails (it must skip, never error), and the trailing-layout parse of the optional tick account; uncovered; phase 15. Evidence:
program/src/validation/market_tick.rs.
- The tick-account check accepts only the fixed address, upstream owner, read-only access, the exact 88-byte layout and discriminator, the expected signer, the current slot and a consistent tick state (accepts_trusted_first_tick_and_later_tick, rejects_incorrect_identity_slot_and_writable_account, rejects_invalid_layout_and_tick_state, account_view_uses_runtime_owner_address_and_writability, canonical_tick_address_matches_upstream_seeds). Evidence:
- Known limits:
- Mainnet deployment of the upstream Market Tick program and compatible tick accounts remains an external signoff.
- Web and Android are taker surfaces without spline publication and Market Tick window controls.
strategy.limits Strategy limits and order groups#
- Status: implemented. Last verified at
130987b85ad64b385c01f9b190b022beee2ab1b2. - Roadmap items:
P-A. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Owner-configured, program-enforced limits on markets, currencies, committed capital, inventory, fees and slippage, expiry and revocation, withdrawal destinations, order-group cancellation and a strategy-wide stop.
- Source:
program/src/processor/strategy.rs,packages/core/src/strategyAccounts.ts,program/src/processor/cancel_owner_orders.rs,program/src/processor/reclaim_expired.rs - Routes:
ConfigureStrategy(0x56),StopStrategy(0x57),ResumeStrategy(0x58),ResetStrategyCapital(0x5A),CloseStrategy(0x59),CancelOwnerOrders(0x55),CancelOrderByClientId(0x54),CancelMultipleOrdersByIdWithFreeFunds(0x14),ReduceOrderWithFreeFunds(0x15),PlaceLimitWithFreeFunds(0x0F),SwapWithFreeFunds(0x0E),BatchPostOnlyWithFreeFunds(0x10),WithdrawFunds(0x09),MergeCompleteSet(0x0B),ReclaimExpiredOrder(0x16) - Events:
StrategyConfigured,StrategyStopped,StrategyResumed,StrategyCapitalReset,StrategyClosed - Error categories:
Strategy limits - CLI commands:
strategy configure,strategy stop,strategy resume,strategy reset-capital,strategy close,strategy list,strategy show,strategy history,strategy cancel order,strategy cancel client-id,strategy cancel group,strategy cancel lane,strategy cancel all,strategy cancel session,strategy cancel continue,strategy cancel abort,strategy cancel-ids,strategy reduce,strategy merge,strategy withdraw-quote,order place,order place-ladder,order reclaim-expired,order cancel-group,order cancel,order reduce,order withdraw-funds - API routes:
GET /api/v1/activity/{wallet}/strategies,GET /api/v1/user/strategies,POST /api/v1/tx/strategy-lifecycle,POST /api/v1/tx/strategy-ledger,POST /api/v1/tx/cancel-owner-orders,POST /api/v1/tx/place-order,POST /api/v1/tx/place-post-only-batch - Boundaries: callers strategy owner, strategy delegate; signers owner wallet, authorized delegate where the route permits it; services Solana RPC, Seesaw indexer.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/strategy.rs, program/src/processor/cancel_owner_orders.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/strategyAccounts.ts, packages/core/src/instructions.ts, packages/core/src/sdk.ts | |
| Rust SDK | yes | packages/sdk-rust/src/strategy.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/strategy.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/strategy/index.ts, packages/cli/src/commands/strategy/cancellation.ts, packages/cli/src/commands/strategy/ledger.ts, packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/strategyInstruction.ts, apps/indexer/src/processors/cancelFamily.ts, apps/indexer/src/processors/funds.ts, apps/indexer/src/processors/mergeCompleteSet.ts | |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/strategyActivity.ts, apps/indexer/src/api/routes/userStrategies.ts | Wallet reads return strategy accounts and activity. The transaction builder handles owner and scoped delegate instructions. Wallets sign and submit the transactions. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/StrategyPanel.tsx | |
| Android | yes | apps/mobile/src/screens/marketDetail/StrategySection.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-python/examples/strategy_lifecycle.py, packages/sdk-rust/examples/strategy_lifecycle.rs, packages/sdk-rust/examples/complete_set_merge.rs, packages/sdk-python/examples/complete_set_merge.py, packages/sdk-rust/examples/funding_lifecycle.rs, packages/sdk-python/examples/funding_lifecycle.py, packages/sdk-rust/examples/position_cleanup.rs, packages/sdk-python/examples/position_cleanup.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py | The SDK example guides link to the delegated-strategy-cancel local-validator flow for signed submission. Its runtime qualification remains deferred. |
- Journeys, normal mode: none. Partial evidence:
strategy-owner-lifecycle(android: 5 of 5 action steps return a client value; cli: 4 of 5 action steps return a client value; sdk-python: 4 of 5 action steps return a client value; sdk-rust: 4 of 5 action steps return a client value; sdk-typescript: 4 of 5 action steps return a client value; web: 5 of 5 action steps return a client value; stepstrategy.configure; no passed cell of a client of this capability in normal mode; partial evidence, does not count),strategy-resume-reset-close(android: 7 of 7 action steps return a client value; cli: 6 of 7 action steps return a client value; sdk-python: 6 of 7 action steps return a client value; sdk-rust: 6 of 7 action steps return a client value; sdk-typescript: 6 of 7 action steps return a client value; web: 7 of 7 action steps return a client value; stepstrategy.resume; no passed cell of a client of this capability in normal mode; partial evidence, does not count),delegated-strategy-boundaries(sdk-python: 9 of 10 action steps return a client value; sdk-rust: 9 of 10 action steps return a client value; stepstrategy.withdraw-quotewith{"quantity":"500000"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),delegated-strategy-settlement(android: 3 of 11 action steps return a client value; cli: 4 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; sdk-rust: 4 of 11 action steps return a client value; sdk-typescript: 4 of 11 action steps return a client value; web: 3 of 11 action steps return a client value; stepstrategy.merge-ledger; no passed cell of a client of this capability in normal mode; partial evidence, does not count),delegated-strategy-cancel(android: 3 of 13 action steps return a client value; cli: 12 of 13 action steps return a client value; sdk-python: 12 of 13 action steps return a client value; sdk-rust: 12 of 13 action steps return a client value; sdk-typescript: 12 of 13 action steps return a client value; web: 3 of 13 action steps return a client value; stepstrategy.cancel-ids; no passed cell of a client of this capability in normal mode; partial evidence, does not count),strategy-cancel-group-paging(cli: 6 of 7 action steps return a client value; stepstrategy.cancel-groupwith{"maxOrders":1}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),stopped-strategy-order-reclaim(cli: 5 of 6 action steps return a client value; sdk-python: 5 of 6 action steps return a client value; sdk-rust: 5 of 6 action steps return a client value; sdk-typescript: 5 of 6 action steps return a client value; steporder.reclaim-expiredwith{"stoppedStrategyId":"77"}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
strategy-owner-lifecycle(android: 5 of 5 action steps return a client value; cli: 4 of 5 action steps return a client value; sdk-python: 4 of 5 action steps return a client value; sdk-rust: 4 of 5 action steps return a client value; sdk-typescript: 4 of 5 action steps return a client value; web: 5 of 5 action steps return a client value; stepstrategy.configure; no passed cell of a client of this capability in independent mode; partial evidence, does not count),strategy-resume-reset-close(android: 7 of 7 action steps return a client value; cli: 6 of 7 action steps return a client value; sdk-python: 6 of 7 action steps return a client value; sdk-rust: 6 of 7 action steps return a client value; sdk-typescript: 6 of 7 action steps return a client value; web: 7 of 7 action steps return a client value; stepstrategy.resume; no passed cell of a client of this capability in independent mode; partial evidence, does not count),delegated-strategy-boundaries(sdk-python: 9 of 10 action steps return a client value; sdk-rust: 9 of 10 action steps return a client value; stepstrategy.withdraw-quotewith{"quantity":"500000"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count),delegated-strategy-settlement(android: 3 of 11 action steps return a client value; cli: 4 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; sdk-rust: 4 of 11 action steps return a client value; sdk-typescript: 4 of 11 action steps return a client value; web: 3 of 11 action steps return a client value; stepstrategy.merge-ledger; no passed cell of a client of this capability in independent mode; partial evidence, does not count),delegated-strategy-cancel(android: 3 of 13 action steps return a client value; cli: 12 of 13 action steps return a client value; sdk-python: 12 of 13 action steps return a client value; sdk-rust: 12 of 13 action steps return a client value; sdk-typescript: 12 of 13 action steps return a client value; web: 3 of 13 action steps return a client value; stepstrategy.cancel-ids; no passed cell of a client of this capability in independent mode; partial evidence, does not count),strategy-cancel-group-paging(cli: 6 of 7 action steps return a client value; stepstrategy.cancel-groupwith{"maxOrders":1}; no passed cell of a client of this capability in independent mode; partial evidence, does not count),stopped-strategy-order-reclaim(cli: 5 of 6 action steps return a client value; sdk-python: 5 of 6 action steps return a client value; sdk-rust: 5 of 6 action steps return a client value; sdk-typescript: 5 of 6 action steps return a client value; steporder.reclaim-expiredwith{"stoppedStrategyId":"77"}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- Each debit leaves capital_used_atoms no greater than capital_budget_atoms. Only credit for a matching capital epoch can decrease the current counter. Evidence:
program/src/logic/strategy.rs,program/src/processor/strategy.rs. - Strategy authorization and fee limits preserve fee conservation. Protocol, creator, referral, builder and maker allocations sum to collected fees including rounding dust. Evidence:
program/tests/agentflow_fresh_4_matching_fee_accounting.rs,program/tests/agentflow_fresh_5_maker_fill_settlement.rs.
- Each debit leaves capital_used_atoms no greater than capital_budget_atoms. Only credit for a matching capital epoch can decrease the current counter. Evidence:
- Known limits:
- A stop increments the seat-wide strategy epoch in each supplied market and retires covered orders of every strategy on that owner seat.
- Covered orders in other markets can remain eligible until their existing lease expires. A strategy can cap the lease at up to 3,600 seconds.
order.cancel-by-client-id Cancel by client order identifier#
- Status: implemented. Last verified at
130987b85ad64b385c01f9b190b022beee2ab1b2. - Roadmap items:
F7,M-B,S2. Owning phase: 5. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Resolve a nonzero 16-byte client order identifier within its market and order owner scope and cancel that order. Owners can select a wallet or ledger refund. An authorized strategy delegate can cancel a covered order into the owner’s ledger.
- Source:
program/src/processor/cancel_order_by_client_id.rs,program/src/logic/deep_orderbook/tree.rs,packages/core/src/strategyAccounts.ts - Routes:
CancelOrderByClientId(0x54) - Events:
OrderCancelled - CLI commands:
order cancel,strategy cancel client-id - API routes:
POST /api/v1/tx/cancel-order - Boundaries: callers trader, strategy delegate; signers trader wallet, authorized delegate for a strategy ledger refund; services Solana RPC, Seesaw indexer.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/cancel_order_by_client_id.rs, program/src/logic/deep_orderbook/tree.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/strategyAccounts.ts | |
| Rust SDK | yes | packages/sdk-rust/src/strategy.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/strategy.py | |
| CLI | yes | packages/cli/src/commands/order/index.ts, packages/cli/src/commands/strategy/cancellation.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts | The OrderCancelled recorder event updates the order at binaryEventProjection.ts:2484. |
| API | yes | apps/indexer/src/api/routes/txBuilder.ts, apps/indexer/src/api/routes/orders.ts | The authenticated wallet can build a personal wallet or ledger refund and a scoped strategy ledger refund. |
| Web | yes | apps/web/app/[locale]/portfolio/usePortfolioOrderActions.ts | |
| Android | yes | apps/mobile/src/hooks/usePendingOrders.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/19-strategy-lifecycle.ts, packages/sdk-rust/examples/strategy_lifecycle.rs, packages/sdk-python/examples/strategy_lifecycle.py, packages/core/examples/README.md, packages/sdk-rust/examples/README.md, packages/sdk-python/examples/README.md | The SDK example guides link to the cancel-by-client-id local-validator flow for signed submission. Its runtime qualification remains deferred. |
- Journeys, normal mode: none. Partial evidence:
cancel-by-client-id(android: 2 of 6 action steps return a client value; cli: 1 of 6 action steps return a client value; sdk-python: 1 of 6 action steps return a client value; sdk-rust: 1 of 6 action steps return a client value; sdk-typescript: 1 of 6 action steps return a client value; web: 3 of 6 action steps return a client value; steporder.cancel-by-client-id; no passed cell of a client of this capability in normal mode; partial evidence, does not count),cancel-by-order-id-set(cli: 3 of 11 action steps return a client value; sdk-python: 3 of 11 action steps return a client value; sdk-rust: 3 of 11 action steps return a client value; sdk-typescript: 3 of 11 action steps return a client value; steporder.cancel-by-client-idwith{"walletRefund":true}; no passed cell of a client of this capability in normal mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Journeys, independent mode: none. Partial evidence:
cancel-by-client-id(android: 2 of 6 action steps return a client value; cli: 1 of 6 action steps return a client value; sdk-python: 1 of 6 action steps return a client value; sdk-rust: 1 of 6 action steps return a client value; sdk-typescript: 1 of 6 action steps return a client value; web: 3 of 6 action steps return a client value; steporder.cancel-by-client-id; no passed cell of a client of this capability in independent mode; partial evidence, does not count),cancel-by-order-id-set(cli: 3 of 11 action steps return a client value; sdk-python: 3 of 11 action steps return a client value; sdk-rust: 3 of 11 action steps return a client value; sdk-typescript: 3 of 11 action steps return a client value; steporder.cancel-by-client-idwith{"walletRefund":true}; no passed cell of a client of this capability in independent mode; partial evidence, does not count). Runtime qualification of the current journey is deferred until roadmap implementation ends. - Formal obligations:
- A nonzero client identifier resolves one resting order in its market and owner namespace. A scoped cancellation also checks the stored strategy identity. Evidence:
program/src/processor/cancel_order_by_client_id.rs,program/tests/pr675_client_id_dense_runtime.rs.
- A nonzero client identifier resolves one resting order in its market and owner namespace. A scoped cancellation also checks the stored strategy identity. Evidence:
- Known limits:
- The market and owner namespace is shared with the owner’s delegates. App portfolio flows select ledger refunds.
liquidity.multi-maker Multiple competing makers and series#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-G,S1,F5. Owning phase: 6. - References: #630.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is partial); 6 met; 7 missing (api is partial); 8 missing (web is partial; android is partial); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Several competing spline makers per market, symmetric outcome liquidity, maker selection and allocation, series subscriptions and permissionless attachment of subscribed liquidity, and permissionless floor enforcement that flags a seat below its depth floor and makes a repeatedly missing seat dormant.
- Source:
program/src/logic/place_order_processor/matching.rs,program/src/logic/spline/priority.rs,program/src/logic/spline/series_crank.rs,program/src/processor/attach_seat.rs,packages/core/src/makerSelector.ts,packages/sdk-rust/src/maker_selector.rs,program/src/processor/seat_floor.rs - Routes:
AttachSeat(0x31),AttachSeatFromSeries(0x5D),UpdateSeriesSubscription(0x5E),TopUpSeriesLamports(0x5F),PlaceOrder(0x0C),SwapWithFreeFunds(0x0E),FlagSeatBelowFloor(0x60),MakeSeatDormant(0x61) - Events:
SeatAttached,SeriesSubscriptionUpdated,SeriesLamportsToppedUp,SplineFill,SeatFlaggedBelowFloor,SeatMadeDormant - CLI commands:
spline seat attach,spline series attach-next,order place,spline seat flag-below-floor,spline flag-seat-below-floor,spline seat make-dormant,spline make-seat-dormant - Boundaries: callers series maker, permissionless keeper, trader; signers maker, keeper, or trader wallet as required by the route; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/logic/place_order_processor/matching.rs, program/src/logic/spline/priority.rs, program/src/logic/spline/series_crank.rs, program/src/processor/attach_seat.rs, program/src/processor/seat_floor.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/makerSelector.ts, packages/core/src/seriesCrankRpc.ts, packages/core/src/seatInstructions.ts, packages/core/src/instructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/client.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/client.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/spline/index.ts, packages/cli/src/commands/order/index.ts | |
| Indexer | yes | apps/indexer/src/indexer/binaryEventProjection.ts, apps/indexer/src/processors/placeOrder.ts, apps/indexer/src/processors/spline.ts | Lifecycle receipts and maker fills are projected by binaryEventProjection.ts:4021 and binaryEventProjection.ts:3869. |
| API | partial | apps/indexer/src/api/routes/marketSplineSeats.ts | The API serves current market seats. Execution with several seats has no qualifying API journey. |
| Web | partial | apps/web/lib/orderInstruction.ts | Web supports order submission. No counted journey verifies a fill distributed across several makers. |
| Android | partial | apps/mobile/src/hooks/usePlaceOrder.ts | Android supports order submission. No counted journey verifies a fill distributed across several makers. |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | partial | packages/core/examples/26-spline-lifecycle.ts, packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py, packages/core/examples/39-seat-maintenance.ts, packages/sdk-rust/examples/seat_maintenance.rs, packages/sdk-python/examples/seat_maintenance.py | The SDK examples show subscription, seat setup and the FlagSeatBelowFloor and MakeSeatDormant cranks. Runnable journeys cover competing makers and crank attachment. Qualifying runs are pending. |
- Journeys, normal mode: none. Partial evidence:
spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.fill-no; no passed cell of a client of this capability in normal mode; partial evidence, does not count),spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepspline.crank-attach; no passed cell of a client of this capability in normal mode; partial evidence, does not count). spline-no-competition-d6 allocates a fill across two makers; spline-series-bootstrap-d6 attaches subscribed liquidity through a third-party crank. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepspline.fill-no; no passed cell of a client of this capability in independent mode; partial evidence, does not count),spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepspline.crank-attach; no passed cell of a client of this capability in independent mode; partial evidence, does not count). spline-no-competition-d6 allocates a fill across two makers; spline-series-bootstrap-d6 attaches subscribed liquidity through a third-party crank. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- Equal-price allocation conserves the requested fill and stays within each selected seat's remaining capacity. Evidence:
program/src/logic/spline/priority.rs.
- Equal-price allocation conserves the requested fill and stays within each selected seat's remaining capacity. Evidence:
- Known limits:
- A placement can supply at most eight eligible spline seats. Permissionless subscription attachment is limited to native markets.
- FlagSeatBelowFloor and MakeSeatDormant are reached through the SDKs and the CLI only; neither app builds them.
routing.outcome-aware Outcome-aware routing#
- Status: implemented. Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b. - Roadmap items:
P-C. Owning phase: 6. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
A router that compares direct buys and sells with mint-and-sell and buy-and-merge paths across the book and the splines, with atomic execution and final balance bounds.
- Source:
program/src/processor/assert_balances.rs,packages/core/src/router/buildAtomicMarketRoute.ts,packages/sdk-rust/src/route_plan.rs,packages/sdk-python/seesaw/route_plan.py - Routes:
PlaceOrder(0x0C),SwapWithFreeFunds(0x0E),MintShares(0x07),MergeCompleteSet(0x0B),AssertBalances(0x63) - Events:
OrderFilled,SharesMinted,CompleteSetMerged - CLI commands:
trade route,trade buy,trade sell - Web routes:
/[locale]/markets/[marketId] - Android screens:
MarketDetail - Boundaries: callers trader, strategy delegate; signers trader wallet or authorized strategy delegate; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/assert_balances.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/router/buildAtomicMarketRoute.ts, packages/core/src/instructions.ts, packages/core/src/router/assertBalances.ts | |
| Rust SDK | yes | packages/sdk-rust/src/route_plan.rs, packages/sdk-rust/src/router.rs, packages/sdk-rust/src/instructions.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/route_plan.py, packages/sdk-python/seesaw/router.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/trade/index.ts | |
| Indexer | not-applicable | none | The router derives quotes from RPC account reads. The indexer records landed trade events. |
| API | not-applicable | none | Clients plan and sign the route. |
| Web | yes | apps/web/app/[locale]/markets/[marketId]/MarketRouteReview.tsx | |
| Android | yes | apps/mobile/src/screens/marketDetail/RoutedTradeSection.tsx | |
| iOS | not-applicable | none | R8 excludes the iOS app. See docs/internal/decisions/2026-11-17-ios-scope-r8.md. |
| Examples | yes | packages/core/examples/37-outcome-aware-route.ts, packages/sdk-python/examples/outcome_aware_route.py, packages/sdk-rust/examples/build_place_order.rs, packages/sdk-python/examples/build_place_order.py, packages/sdk-rust/examples/complete_set_merge.rs, packages/sdk-python/examples/complete_set_merge.py, packages/sdk-rust/examples/instruction_cookbook.rs, packages/sdk-python/examples/instruction_cookbook.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py | The examples plan a NO buy across direct, mint-and-sell and split candidates and compile the best plan. Typechecked and compiled; not executed. |
- Journeys, normal mode: none. Partial evidence:
outcome-aware-routing(cli: 5 of 13 action steps return a client value; sdk-typescript: 5 of 13 action steps return a client value; sdk-rust: 5 of 13 action steps return a client value; sdk-python: 5 of 13 action steps return a client value; web: 5 of 13 action steps return a client value; android: 5 of 13 action steps return a client value; steptrade.route-direct; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The journey covers all route paths. Runtime execution is deferred. - Journeys, independent mode: none. Partial evidence:
outcome-aware-routing(cli: 5 of 13 action steps return a client value; sdk-typescript: 5 of 13 action steps return a client value; sdk-rust: 5 of 13 action steps return a client value; sdk-python: 5 of 13 action steps return a client value; web: 5 of 13 action steps return a client value; android: 5 of 13 action steps return a client value; steptrade.route-direct; no passed cell of a client of this capability in independent mode; partial evidence, does not count). SDK and CLI runtime execution is deferred. The apps require the hosted stack. - Formal obligations:
- The router picks between direct, mint-and-sell and buy-and-merge paths with exact IOC bounds; a sell's buy-and-merge draws from the wallet; delegates get only the allowed paths and a route that would cross the owner's own order is refused (router.test.ts route planner: chooses mint-and-sell, chooses buy-and-merge, restricts a delegate, refuses a scoped route that would cross). Evidence:
packages/core/src/router/buildAtomicMarketRoute.ts,packages/core/src/router/__tests__/router.test.ts. - The Rust and Python route planners keep one final balance assertion per split route and pin the fee policy, refusing a stale one; delegated complete-set sales settle to the owner ledger (split_route_measures_the_packet_and_pins_the_fee_policy, delegated_complete_set_sale_routes_proceeds_to_owner_ledger_and_measures_delegate_signature; test_split_route_keeps_one_final_assertion_and_refuses_stale_fee_policy, test_delegated_route_uses_ledger_settlement_and_the_delegate_signer). Evidence:
packages/sdk-rust/src/route_plan.rs,packages/sdk-rust/tests/route_plan.rs,packages/sdk-python/seesaw/route_plan.py,packages/sdk-python/tests/test_route_plan.py. - The AssertBalances payload carries six u64 minimums, a ledger mask and a seat hint, and undefined mask bits or ledger bounds without the mask are refused (router.test.ts: AssertBalances payload encodes 53 bytes, rejects undefined mask bits; AssertBalances dispatch row in agentflow_fresh_26_dispatch_matrix.rs). Evidence:
packages/core/src/router/__tests__/router.test.ts,program/tests/agentflow_fresh_26_dispatch_matrix.rs. - AssertBalances is read-only and fails with BalanceBoundViolated when a wallet YES, NO or quote balance, or the free ledger bucket of the caller-owned seat on this market, is below its minimum, after checking mint, authority, ledger owner and PDA; no runtime test exists (only dispatch, error-code and source-snippet censuses); uncovered; phase 15. Evidence:
program/src/processor/assert_balances.rs. - Atomicity of a whole route (a failing final assertion reverts the earlier PlaceOrder, MintShares and MergeCompleteSet legs in the same transaction) has no on-chain test; uncovered; phase 15. Evidence:
program/src/processor/assert_balances.rs.
- The router picks between direct, mint-and-sell and buy-and-merge paths with exact IOC bounds; a sell's buy-and-merge draws from the wallet; delegates get only the allowed paths and a route that would cross the owner's own order is refused (router.test.ts route planner: chooses mint-and-sell, chooses buy-and-merge, restricts a delegate, refuses a scoped route that would cross). Evidence:
- Known limits:
- A selected route must fit one transaction. Prefunded buys cannot mint and sell a complete set. Scoped merges require explicit strategy permission.
ace.provider-integration ACE providers on Jito and Temporal#
- Status: implemented. Last verified at
d69c0abeef8b9ee8be09a5e1f690b16bf4d5d102. - Roadmap items:
F10. Owning phase: 7. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (indexer is partial; api is partial); 8 missing (web is partial; android is partial); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
Quote publishers, provider integrations on Jito and Temporal, multi-maker ACE and book quote replacement, with direct execution kept available.
- Source:
packages/quote-publisher/src/publisher.rs,packages/ace-standins/src/runtime/mod.rs,program/src/processor/replace_maker_quotes.rs,apps/indexer/src/api/routes/executionPublicationReceipt.ts,program/src/processor/maker_quote_lifecycle.rs,program/src/processor/maker_quote_inventory.rs,program/src/processor/maker_quote_reclaim.rs,packages/core/src/makerQuoteInstructions.ts,apps/indexer/src/api/routes/executionEvidence.ts - Routes:
UpdateSeatQuote(0x30),SwapWithFreeFunds(0x0E),ReplaceMakerQuotes(0x64),ReclaimExpiredOrders(0x6A),SetMakerQuoteAuthority(0x65),InitializeMakerQuoteState(0x66),CloseMakerQuoteState(0x67),FundMakerQuoteInventory(0x68),WithdrawMakerQuoteInventory(0x69) - Events:
SplineFill,MakerQuoteAuthoritySet,MakerQuoteStateInitialized,MakerQuoteStateClosed,MakerQuoteInventoryFunded,MakerQuoteInventoryWithdrawn,OrderReclaimed - CLI commands:
publisher run,api publication-receipt,quotes init,quotes fund,quotes withdraw,quotes authority,quotes replace,quotes close,quotes show,quotes limits,publisher status,publisher journal,publisher recover,publisher manifest export,publisher envelope check,api publication-attempts - API routes:
GET /api/v1/execution/publications/{signature}/receipt,GET /api/v1/execution/streams/{stream}/attempts,GET /api/v1/execution/streams/{stream}/capability,GET /api/v1/execution/streams/{stream}/publications - Boundaries: callers quote publisher, trader, receipt reader; signers maker or authorized delegate, trader wallet; services Solana RPC, indexer, optional BAM and Harmonic delivery.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | yes | program/src/processor/replace_maker_quotes.rs, program/src/processor/maker_quote_lifecycle.rs, program/src/processor/maker_quote_inventory.rs, program/src/processor/maker_quote_reclaim.rs, program/src/processor/maker_quote_terminal.rs | |
| IDL | yes | idl/seesaw.json | |
| TypeScript SDK | yes | packages/core/src/makerQuoteInstructions.ts, packages/core/src/instructions.ts, packages/core/src/seatInstructions.ts | |
| Rust SDK | yes | packages/sdk-rust/src/maker_quotes.rs, packages/sdk-rust/src/instructions.rs, packages/sdk-rust/src/client.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/maker_quotes.py, packages/sdk-python/seesaw/instructions.py | |
| CLI | yes | packages/cli/src/commands/quotes/index.ts, packages/cli/src/commands/publisher/index.ts, packages/cli/src/commands/api/index.ts | |
| Indexer | partial | apps/indexer/src/ace/importer.ts, apps/indexer/src/api/routes/executionPublicationReceipt.ts | The indexer imports actual publisher and stand-in observations and checks canonical publication position in finalized blocks. |
| API | partial | apps/indexer/src/api/routes/executionPublicationReceipt.ts, apps/indexer/src/api/routes/executionEvidence.ts, apps/indexer/src/api/servedRoutes.ts | Public receipt and stream evidence report journal dispatch, stand-in selection and finalized Solana status independently; they are off-chain evidence outside the protocol trust path. No transaction-builder route builds a managed quote instruction. |
| Web | partial | apps/web/app/[locale]/markets/[marketId]/ManagedMakerQuotePanel.tsx, apps/web/app/[locale]/portfolio/usePortfolioOrderActions.ts | The market page initializes, funds, replaces, withdraws, delegates and closes managed quotes, and the portfolio reclaims an expired managed order with the batch ReclaimExpiredOrders route (readManagedOrderReclaimInstruction). The market page shows the API's publication receipts and attempts per delivery (SeatExecutionPanel.tsx, apps/shared/seatExecution.ts). Provider dispatch is not in the app, by the owner ruling of 2026-11-24 (docs/internal/decisions/2026-11-24-client-parity-rulings.md, ACE provider delivery amendment): BAM MPP delivery sends raw UDP to the plugin TPU and Harmonic has no live transport (packages/quote-publisher/src/delivery), so delivery stays in quote-publisher and the apps show its receipts and attempts. |
| Android | partial | apps/mobile/src/screens/marketDetail/ManagedMakerQuoteSection.tsx, apps/mobile/src/hooks/useLifecycleActions.ts | The market screen runs the managed-quote owner actions, and lifecycle actions reclaim an expired managed order with ReclaimExpiredOrders. The market screen shows the API's publication receipts and attempts per delivery (SeatExecutionPanel.tsx). Provider dispatch is not in the app, by the owner ruling of 2026-11-24 (docs/internal/decisions/2026-11-24-client-parity-rulings.md, ACE provider delivery amendment): BAM MPP sends raw UDP and Harmonic has no live transport, so delivery stays in quote-publisher and the apps show its receipts and attempts. |
| iOS | no | none | No iOS app: owner decision R8 of 2026-11-17 keeps mobile Android-only (docs/internal/decisions/2026-11-17-ios-scope-r8.md). |
| Examples | yes | packages/core/examples/20-managed-maker-quotes.ts, packages/sdk-rust/examples/managed_maker_quotes.rs, packages/sdk-python/examples/managed_maker_quotes.py, packages/sdk-rust/examples/spline_lifecycle.rs, packages/sdk-python/examples/spline_lifecycle.py, packages/sdk-rust/examples/trading_variants.rs, packages/sdk-python/examples/trading_variants.py |
- Journeys, normal mode: none. Partial evidence:
ace-seat-publication-direct-spl-d6(sdk-typescript: 11 of 12 action steps return a client value; stepspline.publishwith{"viaPublisher":true}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),ace-seat-publication-mpp-spl-d6(sdk-typescript: 10 of 11 action steps return a client value; stepspline.publishwith{"viaPublisher":true}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),ace-seat-publication-harmonic-spl-d6(sdk-typescript: 10 of 11 action steps return a client value; stepspline.publishwith{"viaPublisher":true}; no passed cell of a client of this capability in normal mode; partial evidence, does not count),ace-managed-quotes-direct-spl-d6(sdk-typescript: 10 of 13 action steps return a client value; stepmanaged-quote.replace; no passed cell of a client of this capability in normal mode; partial evidence, does not count),ace-managed-quotes-mpp-spl-d6(sdk-typescript: 10 of 13 action steps return a client value; stepmanaged-quote.replace; no passed cell of a client of this capability in normal mode; partial evidence, does not count),ace-managed-quotes-harmonic-spl-d6(sdk-typescript: 10 of 13 action steps return a client value; stepmanaged-quote.replace; no passed cell of a client of this capability in normal mode; partial evidence, does not count),ace-managed-recovery-mpp-spl-d6(sdk-typescript: 7 of 9 action steps return a client value; stepmanaged-quote.rotate-authority; no passed cell of a client of this capability in normal mode; partial evidence, does not count),ace-managed-recovery-harmonic-spl-d6(sdk-typescript: 7 of 9 action steps return a client value; stepmanaged-quote.rotate-authority; no passed cell of a client of this capability in normal mode; partial evidence, does not count),ace-managed-quote-expiry-spl-d6(sdk-typescript: 11 of 18 action steps return a client value; stepmanaged-quote.reclaim-expired; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The direct, BAM and Harmonic seat-publication, managed-quote, recovery and expiry journeys are defined. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Journeys, independent mode: none. Partial evidence:
ace-seat-publication-direct-spl-d6(sdk-typescript: 11 of 12 action steps return a client value; stepspline.publishwith{"viaPublisher":true}; no passed cell of a client of this capability in independent mode; partial evidence, does not count),ace-seat-publication-mpp-spl-d6(sdk-typescript: 10 of 11 action steps return a client value; stepspline.publishwith{"viaPublisher":true}; no passed cell of a client of this capability in independent mode; partial evidence, does not count),ace-seat-publication-harmonic-spl-d6(sdk-typescript: 10 of 11 action steps return a client value; stepspline.publishwith{"viaPublisher":true}; no passed cell of a client of this capability in independent mode; partial evidence, does not count),ace-managed-quotes-direct-spl-d6(sdk-typescript: 10 of 13 action steps return a client value; stepmanaged-quote.replace; no passed cell of a client of this capability in independent mode; partial evidence, does not count),ace-managed-quotes-mpp-spl-d6(sdk-typescript: 10 of 13 action steps return a client value; stepmanaged-quote.replace; no passed cell of a client of this capability in independent mode; partial evidence, does not count),ace-managed-quotes-harmonic-spl-d6(sdk-typescript: 10 of 13 action steps return a client value; stepmanaged-quote.replace; no passed cell of a client of this capability in independent mode; partial evidence, does not count),ace-managed-recovery-mpp-spl-d6(sdk-typescript: 7 of 9 action steps return a client value; stepmanaged-quote.rotate-authority; no passed cell of a client of this capability in independent mode; partial evidence, does not count),ace-managed-recovery-harmonic-spl-d6(sdk-typescript: 7 of 9 action steps return a client value; stepmanaged-quote.rotate-authority; no passed cell of a client of this capability in independent mode; partial evidence, does not count),ace-managed-quote-expiry-spl-d6(sdk-typescript: 11 of 18 action steps return a client value; stepmanaged-quote.reclaim-expired; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The direct, BAM and Harmonic seat-publication, managed-quote, recovery and expiry journeys are defined. Runtime runs are deferred by owner decision of 2026-11-17; no matrix cell of these journeys has passed. - Formal obligations:
- The publisher allocates strictly increasing sequences fenced by the source watermark and lease, journals them before signing, and never reuses an allocation after a crash (allocation_is_strictly_monotonic, restore_never_moves_backwards, watermark_never_goes_back in sequence.rs; only_the_lock_holder_publishes, takeover_never_signs_an_older_watermark in lease.rs; a_write_ahead_allocation_is_never_reused_after_a_crash, signing_requires_reconciliation in publisher_scenarios.rs). Evidence:
packages/quote-publisher/tests/sequence.rs,packages/quote-publisher/tests/lease.rs,packages/quote-publisher/tests/publisher_scenarios.rs,packages/quote-publisher/src/publisher.rs. - Every delivery wraps byte-identical Seesaw instructions, envelopes are validated (one signer, exact length and sequence, no extra or trailing instructions), spend caps stop publication, and direct delivery stays available as the opt-in fallback (seesaw_instruction_is_identical_across_ordinary_and_two_fakes in byte_equality.rs; rejects_a_sequence_mismatch, require_last_rejects_a_trailing_instruction in envelope_check.rs; caps_per_transaction_stream_and_process in budget.rs; provider_refusal_falls_back_only_when_opted_in, no_provider_means_ordinary_and_bounded_by_default in publisher_scenarios.rs). Evidence:
packages/quote-publisher/tests/byte_equality.rs,packages/quote-publisher/tests/envelope_check.rs,packages/quote-publisher/tests/budget.rs,packages/quote-publisher/tests/publisher_scenarios.rs. - The stand-in runtime runs the prioritized prefix before ordinary flow in one slot, records everything, and produces the same managed replacement and fill as direct delivery for one or two makers (prefix_runs_before_ordinary_and_everything_is_recorded, windows_split_at_the_cutoff in ace-standins runtime mod.rs unit tests; managed_replacement_and_fill_match_direct_delivery, two_makers_publish_on_one_managed_book_through_both_stand_ins in ace_managed_quote_runtime.rs). Evidence:
packages/ace-standins/src/runtime/mod.rs,program/tests/ace_managed_quote_runtime.rs. - ReplaceMakerQuotes must be the final top-level instruction, signed by the owner or a non-zero delegate, with the expected authority epoch and trading generation, and it reuses collateral released by the replaced quotes (replacement_reuses_collateral_released_from_the_old_bid, a_grace_quote_keeps_its_id_and_releases_only_the_reduced_tail in managed_quote_replacement.rs; the signer, epoch and final-instruction refusals are uncovered; phase 15). Evidence:
program/tests/managed_quote_replacement.rs,program/src/processor/replace_maker_quotes.rs,program/src/state/maker_quote_state.rs. - ReclaimExpiredOrders unwinds an abandoned managed quote to reserve during slot grace and to the ledger after grace; Initialize, Close, SetMakerQuoteAuthority and Fund/Withdraw inventory conserve inventory and enforce owner authorization (abandoned_managed_ask_unwinds_to_reserve_during_slot_grace, abandoned_managed_ask_reclaims_to_ledger_after_slot_grace in ace_managed_reclaim_journey.rs; Close, SetAuthority, Withdraw and the Fund refusal paths are uncovered; phase 15). Evidence:
program/tests/helpers/ace_managed_reclaim_journey.rs,program/src/processor/maker_quote_reclaim.rs,program/src/processor/maker_quote_inventory.rs,program/src/processor/maker_quote_lifecycle.rs. - The indexer publication-receipt and execution-evidence routes match only linked signatures, keep provider attribution, pin the deployment and reject malformed input without leaking errors; the TS builders emit the manifest tag and payload size (receipt tests in executionPublicationReceipt.test.ts; executionEvidence.test.ts cases; the builder test with the manifest-sized payload in builder-inventory.test.ts). Evidence:
apps/indexer/src/api/routes/__tests__/executionPublicationReceipt.test.ts,apps/indexer/src/api/routes/__tests__/executionEvidence.test.ts,packages/core/src/__tests__/builder-inventory.test.ts.
- The publisher allocates strictly increasing sequences fenced by the source watermark and lease, journals them before signing, and never reuses an allocation after a crash (allocation_is_strictly_monotonic, restore_never_moves_backwards, watermark_never_goes_back in sequence.rs; only_the_lock_holder_publishes, takeover_never_signs_an_older_watermark in lease.rs; a_write_ahead_allocation_is_never_reused_after_a_crash, signing_requires_reconciliation in publisher_scenarios.rs). Evidence:
- Known limits:
- External signoff: live BAM enrollment and Harmonic Custom Scheduler qualification. Local stand-ins provide no live provider assurance.
discovery.reproducible-ranking Reproducible market discovery#
- Status: implemented. Last verified at
6c128020e8e4bac6f2dd9b7fb05ad11cfc986ac9. - Roadmap items:
M-H,S1. Owning phase: 8. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The SDKs reproduce discovery lists from public Solana accounts (spec/DISCOVERY.md). The gate reports eligibility and reason codes, counts executable orderbook and competitive seat depth, and collapses duplicates within a settlement currency. Exact-currency lists can rank by depth. All-currency lists use expiry or spread without comparing token quantities. The indexer publishes digest-bound snapshot inputs, and the CLI can verify the published list or rank directly from RPC.
- Source:
spec/DISCOVERY.md,packages/core/src/discoveryPolicy.ts,packages/core/src/marketDiscovery.ts,packages/core/src/discoveryRank.ts,packages/core/src/discoveryRows.ts,packages/core/src/discoverySnapshot.ts,packages/core/src/discoveryReader.ts,packages/core/src/discoveryVerify.ts,packages/core/src/solanaRpcDataSource.ts,packages/sdk-rust/src/discovery_reader.rs,packages/sdk-python/seesaw/discovery_reader.py,apps/indexer/src/jobs/discoverySnapshot.ts,apps/indexer/src/api/routes/marketDiscovery.ts,packages/cli/src/commands/market/discover.ts,packages/agent-mcp/src/tools/reads.ts - CLI commands:
market discover - API routes:
GET /api/v1/markets,GET /api/v1/markets/{marketId},GET /api/v1/markets/discovery-inputs - Web routes:
/[locale]/markets,/[locale]/markets/[marketId] - Android screens:
Search,MarketDetail - Indexer jobs:
discoverySnapshot - Boundaries: callers anyone; signers none; services Solana RPC, indexer API (optional: the published lists and inputs).
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Discovery is off chain: a view over accounts that any RPC node serves (spec/DISCOVERY.md). No instruction, account or event is added; program-side replays of the depth vectors (D-1) wait for a phase that may change program/. |
| IDL | not-applicable | none | No instruction to model: discovery reads existing account layouts. |
| TypeScript SDK | yes | packages/core/src/discoveryReader.ts, packages/core/src/discoveryRows.ts, packages/core/src/discoveryRank.ts, packages/core/src/discoveryVerify.ts, packages/core/src/api/markets.ts | |
| Rust SDK | yes | packages/sdk-rust/src/discovery.rs, packages/sdk-rust/src/discovery_reader.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/discovery.py, packages/sdk-python/seesaw/discovery_reader.py | |
| CLI | yes | packages/cli/src/commands/market/discover.ts | |
| Indexer | yes | apps/indexer/src/jobs/discoverySnapshot.ts | |
| API | yes | apps/indexer/src/api/routes/marketDiscovery.ts, apps/indexer/src/api/servedRoutes.ts | |
| Web | yes | apps/web/lib/discoveryList.ts, apps/web/app/components/market/MarketsList.tsx, apps/web/app/components/market/MarketDiscoveryStatus.tsx | |
| Android | yes | apps/mobile/src/utils/discoveryList.ts, apps/mobile/src/screens/MarketsScreen.tsx | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/18-discovery-rank.ts, packages/sdk-rust/examples/discovery_rank.rs, packages/sdk-python/examples/discovery_rank.py | |
| Agent MCP server | yes | packages/agent-mcp/src/tools/reads.ts | The keyless MCP discovery tool ranks public RPC data without an indexer or known-market list. Its journey cells await runtime validation. |
- Journeys, normal mode:
market-discovery(cli: 7 of 42 action steps return a client value; sdk-typescript: 7 of 42 action steps return a client value; sdk-rust: 7 of 42 action steps return a client value; sdk-python: 7 of 42 action steps return a client value; agent-mcp: 7 of 42 action steps return a client value; stepdiscovery.list; passed on a real stack for sdk-typescript),market-discovery-currency-t22-d9(cli: 4 of 40 action steps return a client value; sdk-typescript: 4 of 40 action steps return a client value; sdk-rust: 4 of 40 action steps return a client value; sdk-python: 4 of 40 action steps return a client value; agent-mcp: 4 of 40 action steps return a client value; stepdiscovery.list; no passed cell of a client of this capability in normal mode; partial evidence, does not count),spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepdiscovery.row; no passed cell of a client of this capability in normal mode; partial evidence, does not count),spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepdiscovery.row; no passed cell of a client of this capability in normal mode; partial evidence, does not count),app-market-discovery-digest(web: 1 of 5 action steps return a client value; android: 1 of 5 action steps return a client value; stepdiscovery.list; no passed cell of a client of this capability in normal mode; partial evidence, does not count) - Journeys, independent mode:
market-discovery(cli: 7 of 42 action steps return a client value; sdk-typescript: 7 of 42 action steps return a client value; sdk-rust: 7 of 42 action steps return a client value; sdk-python: 7 of 42 action steps return a client value; agent-mcp: 7 of 42 action steps return a client value; stepdiscovery.list; passed on a real stack for sdk-typescript),market-discovery-currency-t22-d9(cli: 4 of 40 action steps return a client value; sdk-typescript: 4 of 40 action steps return a client value; sdk-rust: 4 of 40 action steps return a client value; sdk-python: 4 of 40 action steps return a client value; agent-mcp: 4 of 40 action steps return a client value; stepdiscovery.list; no passed cell of a client of this capability in independent mode; partial evidence, does not count),spline-no-competition-d6(cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value; stepdiscovery.row; no passed cell of a client of this capability in independent mode; partial evidence, does not count),spline-series-bootstrap-d6(cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value; stepdiscovery.row; no passed cell of a client of this capability in independent mode; partial evidence, does not count) - Formal obligations:
- D-1 Soundness of depth: depth never counts a quantity the matcher would skip (shared vectors; the program-side replay is phase 5, 6 or 15 work). Evidence:
packages/test-vectors/vectors/discovery/book-depth.json,packages/test-vectors/vectors/discovery/spline-depth.json,packages/core/src/__tests__/marketDiscovery.test.ts. - D-2 Capacity once: curve capacity appears in at most one place per side. Evidence:
packages/core/src/__tests__/marketDiscovery.test.ts,packages/test-vectors/vectors/discovery/seat-depth.json,qa/e2e/journeys/definitions/spline-no-competition.journey.json. - D-3 Currency separation: no depth comparison in any list involves two currencies. Evidence:
packages/core/src/__tests__/discoveryRank.test.ts,packages/core/src/__tests__/discoveryReader.test.ts,qa/e2e/journeys/definitions/market-discovery.journey.json,qa/e2e/journeys/definitions/market-discovery-currency.journey.json. - D-4 Total order and determinism: the order is total, independent of input order, with missing keys last. Evidence:
packages/core/src/__tests__/discoveryRank.test.ts,packages/test-vectors/vectors/discovery/rank.json. - D-5 Purity: the same inputs give the same result in TypeScript, Rust and Python. Evidence:
packages/sdk-rust/tests/discovery_vectors.rs,packages/sdk-python/tests/test_discovery_vectors.py,packages/core/src/__tests__/discoverySnapshot.test.ts. - D-6 Gate structure: each reason code is produced by exactly one predicate. Evidence:
packages/core/src/__tests__/marketDiscovery.test.ts,packages/test-vectors/vectors/discovery/gate.json.
- D-1 Soundness of depth: depth never counts a quantity the matcher would skip (shared vectors; the program-side replay is phase 5, 6 or 15 work). Evidence:
- Known limits:
- The canonical reader uses book-only depth for zero attached seats and requires a complete authenticated seat scan for a positive count.
- The series crank and CLI flag commitments below the E5 floor as an advisory. Other makers and book orders can contribute depth.
- E4 (sponsored feed observation) gives notes only (feed-unobserved, feed-mismatch, feed-stale, feed-future); it never excludes a market, so a forked or time-travelled feed account changes the notes and never the order.
- The TypeScript default-currency runs md07-n1 and md07-i1 predate the current competitive-seat reader. Current normal and independent runs, including the second-currency and competitive seat variants, are deferred until the implementation pass finishes.
- Policy v1 values are provisional until mainnet data exists; a change is a new version.
- The market-discovery journey books no duplicates with equal terms and no markets one second apart: t_start is the landing second of CreateMarket, and Surfpool confirms nothing while its clock is paused, so the sequential clients cannot land two creations in one chosen second. Collapse and the t_end tie-break are covered by the rank vectors and unit tests.
independence.third-party-stack Independent third-party stack#
- Status: planned. Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b. - Roadmap items:
M-E,S3. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 missing (program is no); 3 missing (idl is no); 4 missing (sdkTypescript is no; sdkRust is no; sdkPython is no); 5 missing (examples is no); 6 missing (cli is no); 7 missing (indexer is partial; api is partial); 8 missing (web is no; android is no); 9 missing (no normal-mode journey; no independent-mode journey); 10 missing (no formal obligation listed); 11 missing (status is planned); 12 not evaluated (the dead-code baseline is not tied to rows).
A documented, tested deployment of the indexer, API, keepers and proof tooling by a third party, with every market family journey passing in independent mode.
- Source:
infra/docker/independent/compose.yml,infra/docker/independent/compose.source-publication.yml,infra/docker/independent/compose.source-requester.yml,docs/operations/independent-stack.md - Boundaries: callers third-party operators; signers operator-owned keeper fee payer for submissions, admitted witnesses for signed-source results; services Solana RPC, PostgreSQL, Redis, Pyth relay and keeper (optional), source runner and keeper (optional), source witnesses (when required by profile).
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | no | none | Not built at this commit. |
| IDL | no | none | Not built at this commit. |
| TypeScript SDK | no | none | Not built at this commit. |
| Rust SDK | no | none | Not built at this commit. |
| Python SDK | no | none | Not built at this commit. |
| CLI | no | none | Not built at this commit. |
| Indexer | partial | infra/docker/independent/compose.yml | The independent Compose model starts a dedicated migration and indexer against its own PostgreSQL and Redis services. Runtime verification is pending. |
| API | partial | infra/docker/independent/compose.yml, infra/docker/independent/compose.source-publication.yml | The API binds to host loopback. An opt-in override gives the source keeper loopback access for public evidence publication. |
| Web | no | none | Not built at this commit. |
| Android | no | none | Not built at this commit. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | no | none | Not built at this commit. |
- Journeys, normal mode: none. The independent deployment is documented and its Compose configuration renders. Full family journeys are pending.
- Journeys, independent mode: none. The product harness starts a self-run indexer. Execution of the documented Compose stack and full family journeys is pending.
- Formal obligations: none listed.
- Known limits:
- Compose configuration was rendered locally. Startup, replay and family journey execution remain unverified.
- Live signed-source capture needs the admitted witnesses and a matching reviewed requester artifact. Provider credentials are profile-specific.
agent.tool-interface Agent tool interface#
- Status: implemented. Last verified at
8c1ae3b22724d00262e753b7ad061b16cb123d2c. - Roadmap items:
F13,P-B. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is no); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 met; 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
A self-hostable MCP tool interface over the canonical SDK with public reads, planning and execution under an owner authorization, and tool schemas generated from the IDL.
- Source:
packages/agent-mcp/src/server.ts,packages/agent-mcp/src/cli.ts,packages/agent-mcp/src/tools/reads.ts,packages/agent-mcp/src/tools/planning.ts,packages/agent-mcp/src/tools/execution.ts,packages/agent-mcp/src/authority/index.ts,packages/agent-mcp/src/authority/externalSigner.ts,packages/agent-mcp/src/authority/operatorPolicy.ts,packages/agent-mcp/src/journal.ts,packages/agent-mcp/scripts/generate-tool-schemas.ts,packages/agent-mcp/src/generated/routeArgs.ts - Boundaries: callers AI agent over MCP stdio; signers owner (external signer), operator-policy signer held by the server process; services Solana RPC, optional indexer.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | The tool interface is off-chain. The order and cancel routes it plans and submits belong to the order rows. |
| IDL | not-applicable | none | The tool schemas are generated from idl/seesaw.json by packages/agent-mcp/scripts/generate-tool-schemas.ts: a dependency of the server, not a surface of the capability (rule 11). |
| TypeScript SDK | not-applicable | none | The server is built on @seesaw/core, which reads and builds every transaction: a dependency, not a surface. No SDK exports the tools. |
| Rust SDK | not-applicable | none | The tool interface is one server process; an agent in any language calls it over MCP stdio. |
| Python SDK | not-applicable | none | The tool interface is one server process; an agent in any language calls it over MCP stdio. |
| CLI | not-applicable | none | packages/cli has no agent command. The server ships its own bin (packages/agent-mcp/src/cli.ts) with a journal subcommand. |
| Indexer | not-applicable | none | The indexer is optional: seesaw_list_markets reads it when configured and falls back to known market addresses; every other read goes over RPC. |
| API | not-applicable | none | No API route serves the tools; they run in the agent host's MCP server process. |
| Web | not-applicable | none | No Seesaw app calls the server; an agent host runs it. |
| Android | not-applicable | none | No Seesaw app calls the server; an agent host runs it. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | no | none | packages/agent-mcp/examples/read-only-tools.ts links the read-only server to an MCP client in process, lists tools and calls read tools (typechecked, not executed); it sits outside the registry example roots, so it is not counted here. |
| Agent MCP server | yes | packages/agent-mcp/src/server.ts, packages/agent-mcp/src/tools/reads.ts, packages/agent-mcp/src/tools/planning.ts, packages/agent-mcp/src/tools/execution.ts, packages/agent-mcp/src/authority/index.ts |
- Journeys, normal mode:
agent-workflow(agent-mcp: 1 of 9 action steps return a client value; steporder.place; passed on a real stack for agent-mcp) - Journeys, independent mode:
agent-workflow(agent-mcp: 1 of 9 action steps return a client value; steporder.place; passed on a real stack for agent-mcp) - Formal obligations:
- seesaw_execute signs only the exact bytes of a plan the server made, takes nothing but a planId, and refuses unknown, replayed, expired or changed plans (signs exactly the stored plan bytes, and takes nothing but a planId; refuses a plan id the server did not plan, without signing; refuses a replayed plan id; refuses an expired plan, by block height and by the program Clock; refuses a changed message, even when it is validly signed in execution.test.ts). Evidence:
packages/agent-mcp/src/__tests__/execution.test.ts,packages/agent-mcp/src/tools/execution.ts. - No tool accepts or returns key material, changes the policy, mode, owner or signer, or reaches a withdrawal, transfer, approval or governance route (no tool output or log line carries the signer key, in any encoding; the policy file is not re-read after start-up; a message with any other route or program is never signed or sent; read-only lists no execution tool in execution.test.ts; lists exactly the read and planning tools in read-only mode in protocol.test.ts). Evidence:
packages/agent-mcp/src/__tests__/execution.test.ts,packages/agent-mcp/src/__tests__/protocol.test.ts,packages/agent-mcp/src/server.ts. - The operator policy admits a plan only inside every limit (fee bound, slippage, inventory, turnover in raw atoms, expiry inclusive on both clocks, allowed mints) and admits only cancels after a stop or expiry (admits and sends a plan inside every limit; refuses with STRATEGY_STOPPED while the stop file exists, and admits a cancel; admits only cancels after the policy expired; the turnover budget admits used + debit equal to it, and refuses one atom more; expiresAt is inclusive on both clocks in execution.test.ts). Evidence:
packages/agent-mcp/src/__tests__/execution.test.ts,packages/agent-mcp/src/authority/operatorPolicy.ts. - The journal records each attempt before sending; an ambiguous or unresolved attempt blocks the market until reconcile, and the journal is locked to one process (records the attempt before it sends; a send that throws leaves the attempt unresolved and blocks the market until reconcile; keeps an unresolved attempt across a restart, and locks the journal to one process; calling every tool leaves an expired attempt unacknowledged and blocking in execution.test.ts). Evidence:
packages/agent-mcp/src/__tests__/execution.test.ts,packages/agent-mcp/src/journal.ts. - Tool schemas are generated from the IDL, so the committed schema matches a fresh run and every admitted value encodes at the declared length; plans encode reviewed bounds, never disabling sentinels, and expose no derived or recipient fields (the committed file matches a fresh run, a value the schema admits is one the IDL encoder encodes, at the declared length, refuses a route that is missing from the IDL in generator.test.ts; encodes the reviewed bounds, never the disabling sentinels, rejects derived and recipient fields in the schema, reads the Clock sysvar, not the host clock in planning.test.ts). Evidence:
packages/agent-mcp/src/__tests__/generator.test.ts,packages/agent-mcp/src/__tests__/planning.test.ts,packages/agent-mcp/scripts/generate-tool-schemas.ts.
- seesaw_execute signs only the exact bytes of a plan the server made, takes nothing but a planId, and refuses unknown, replayed, expired or changed plans (signs exactly the stored plan bytes, and takes nothing but a planId; refuses a plan id the server did not plan, without signing; refuses a replayed plan id; refuses an expired plan, by block height and by the program Clock; refuses a changed message, even when it is validly signed in execution.test.ts). Evidence:
- Known limits:
- The operator policy of operator-policy mode is enforced by the server process, not the program: a process that holds the key can sign anything, so the policy holds only while the server and its host are not compromised.
- The program-strategy-limits mode uses a registered delegate and binds submission to the owner’s strategy. The end-to-end delegated workflow awaits the deferred runtime run.
agent.program-authority Program-enforced agent authority#
- Status: implemented. Last verified at
1d113f2d205ff14d3d9e223ad6f8d535f56b39a4. - Roadmap items:
F13,P-A. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is no); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The agent server's execution authority bound to program-enforced strategy limits: the program-strategy-limits implementation of the authority seam.
- Source:
packages/agent-mcp/src/authority/programStrategy.ts,packages/agent-mcp/src/startup.ts,packages/agent-mcp/src/config.ts,packages/agent-mcp/src/tools/planning.ts,packages/agent-mcp/src/tools/execution.ts,qa/e2e/runners/agent-mcp.ts,qa/e2e/journeys/definitions/agent-strategy-limits.journey.json - Boundaries: callers Agent using a server configured for an owner-approved on-chain strategy; signers Registered delegate; services Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | The strategy.limits capability owns the on-chain strategy routes and their enforcement; this row is the agent server that binds to them. |
| IDL | not-applicable | none | The strategy.limits capability owns the IDL of the delegated routes; the tool schemas come from idl/seesaw.json as a dependency, not a surface of this row. |
| TypeScript SDK | not-applicable | none | The server builds its transactions with @seesaw/core (strategyAccounts.ts): a dependency, not a surface. No SDK exports the agent authority. |
| Rust SDK | not-applicable | none | The agent authority is one server process; an agent in any language calls it over MCP stdio. |
| Python SDK | not-applicable | none | The agent authority is one server process; an agent in any language calls it over MCP stdio. |
| CLI | not-applicable | none | packages/cli has no agent command; the strategy commands of packages/cli belong to strategy.limits. |
| Indexer | not-applicable | none | The server reads the strategy account over RPC; the indexer projection of strategy routes belongs to strategy.limits. |
| API | not-applicable | none | No API route serves the agent authority; it runs in the agent host's MCP server process. |
| Web | not-applicable | none | No Seesaw app calls the server; an agent host runs it. The owner configures the strategy in the web strategy panel (strategy.limits). |
| Android | not-applicable | none | No Seesaw app calls the server; an agent host runs it. The owner configures the strategy in the mobile strategy section (strategy.limits). |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | no | none | No example under packages/*/examples starts the server in program-strategy-limits mode; packages/agent-mcp/README.md shows the configuration. |
| Agent MCP server | yes | packages/agent-mcp/src/authority/programStrategy.ts, packages/agent-mcp/src/startup.ts, packages/agent-mcp/src/config.ts |
- Journeys, normal mode: none. Partial evidence:
agent-strategy-limits(agent-mcp: 29 of 60 action steps return a client value; stepstrategy.place-order; no passed cell of a client of this capability in normal mode; partial evidence, does not count). agent-strategy-limits has no passed agent-mcp cell in the matrix: runtime run deferred by owner decision of 2026-11-17. - Journeys, independent mode: none. Partial evidence:
agent-strategy-limits(agent-mcp: 29 of 60 action steps return a client value; stepstrategy.place-order; no passed cell of a client of this capability in independent mode; partial evidence, does not count). agent-strategy-limits has no passed agent-mcp cell in the matrix: runtime run deferred by owner decision of 2026-11-17. - Formal obligations:
- The program refuses strategy-delegated orders beyond order capital, capital budget, inventory, fee, slippage, market, currency or action allowlists, expiry, stop or delegate rotation, and the MCP client reports the matching codes (agent-strategy-limits journey expectProgramError and expectClientError steps; rule_matrix_matches_spec_61_4, config_refuses_every_rule_break, per_order_and_aggregate_capital_use_checked_u128, inventory_counts_the_whole_seat_in_u128 in program/src/logic/strategy.rs). Evidence:
qa/e2e/journeys/definitions/agent-strategy-limits.journey.json,program/src/logic/strategy.rs,qa/e2e/runners/agent-mcp.ts. - createProgramStrategyLimitsAuthority.admit refuses a plan whose strategy address, id, signer, delegate, created slot or config generation differs from chain state (SCOPE_MISMATCH), or a place on a stopped strategy; no unit test exercises programStrategy.ts, only the e2e journey; uncovered; phase 15. Evidence:
packages/agent-mcp/src/authority/programStrategy.ts. - Startup refuses an incomplete program-strategy-limits configuration (refuses signing settings a mode would ignore, and relative paths in config.test.ts). Evidence:
packages/agent-mcp/src/__tests__/config.test.ts,packages/agent-mcp/src/config.ts. - Delegate stop and lease clamp rules are bounded on chain: a delegate stop is limited to listed markets and mints, and a lease clamp never shortens below the minimum (delegate_stop_is_limited_to_listed_markets_and_mints, lease_clamp_never_shortens_below_the_minimum in program/src/logic/strategy.rs). Evidence:
program/src/logic/strategy.rs.
- The program refuses strategy-delegated orders beyond order capital, capital budget, inventory, fee, slippage, market, currency or action allowlists, expiry, stop or delegate rotation, and the MCP client reports the matching codes (agent-strategy-limits journey expectProgramError and expectClientError steps; rule_matrix_matches_spec_61_4, config_refuses_every_rule_break, per_order_and_aggregate_capital_use_checked_u128, inventory_counts_the_whole_seat_in_u128 in program/src/logic/strategy.rs). Evidence:
- Known limits:
- The program enforces the limits; the server only refuses early. At start-up the server reads the strategy account and loads the signer of its registered delegate; it re-reads the strategy before each submission and refuses with a client code a stopped, expired, reconfigured or rotated strategy, a disallowed action, and a market or currency outside the allowlists.
- The agent-workflow journey runs in operator-policy mode and is not evidence for this row. The agent-strategy-limits journey is defined for every strategy limit (order capital, capital budget, inventory, fee, slippage, market, currency, allowed actions, expiry, stop, resting lease, delegate rotation), but its runtime run deferred by owner decision of 2026-11-17.
tooling.replay-simulation Replay, simulation and execution-quality analysis#
- Status: implemented. Last verified at
2a5660b2f4fdafe0236d43a8f9e7b7aaa870ba42. - Roadmap items:
P-D,M-J. Owning phase: 11. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 missing (sdkRust is partial; sdkPython is partial); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: Replay reads the chain and lands nothing on it..
Market replay and strategy simulation with the program's own matching, fee and collateral code: the seesaw-replay engine (packages/replay, library and CLI) replays a recording captured by @seesaw/core (recordFromRpc, recordFromIndexer) from a checkpoint, reproduces its fills exactly for the modeled routes, simulates strategies with latency and missing liquidity, and reports execution-quality metrics. seesaw replay wraps the engine; the indexer serves the ordered event stream.
- Source:
packages/replay/src/lib.rs,packages/replay/src/main.rs,packages/replay/src/rules/main_2026_11.rs,packages/replay/src/simulate.rs,packages/replay/src/metrics.rs,packages/core/src/replay/index.ts,packages/sdk-rust/src/replay.rs,packages/sdk-python/seesaw/replay.py,packages/cli/src/commands/replay/index.ts,apps/indexer/src/api/routes/chainEvents.ts,packages/replay/examples/replay_market.rs,docs/features/replay-and-backtesting.md - CLI commands:
replay record,replay run,replay reproduce,replay simulate,replay metrics - API routes:
GET /api/v1/markets/{marketId}/chain-events - Boundaries: callers anyone; signers none; services Solana RPC, indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain tool: it calls the program's public matching, fee and collateral functions through the seesaw crate (testable-logic) and adds no instruction. |
| IDL | not-applicable | none | An off-chain tool; no instruction to model. |
| TypeScript SDK | yes | packages/core/src/replay/index.ts, packages/core/src/replay/recordFromRpc.ts, packages/core/src/replay/recordFromIndexer.ts | |
| Rust SDK | partial | packages/sdk-rust/src/replay.rs | The SDK consumes recordings through the versioned engine interface. Recordings are captured by the TypeScript SDK or CLI. |
| Python SDK | partial | packages/sdk-python/seesaw/replay.py | The SDK consumes recordings through the versioned engine interface. Recordings are captured by the TypeScript SDK or CLI. |
| CLI | yes | packages/cli/src/commands/replay/index.ts | |
| Indexer | not-applicable | none | Reads the existing chain_events and recorder_events tables; no new ingestion. |
| API | yes | apps/indexer/src/api/routes/chainEvents.ts, apps/indexer/src/api/servedRoutes.ts | |
| Web | not-applicable | none | A developer tool; reached through the CLI and SDKs. |
| Android | not-applicable | none | A developer tool; reached through the CLI and SDKs. |
| iOS | no | none | No iOS app: owner decision R8 of 2026-11-17 keeps mobile Android-only (docs/internal/decisions/2026-11-17-ios-scope-r8.md). |
| Examples | yes | packages/core/examples/16-replay-market.ts, packages/sdk-rust/examples/replay_client.rs, packages/sdk-python/examples/replay_market.py |
- Journeys, normal mode: none. Partial evidence:
replay-recorded-fill(sdk-typescript: 2 of 4 action steps return a client value; steporder.place-replay-observed; no passed cell of a client of this capability in normal mode; partial evidence, does not count). The live RPC and indexer replay journey is wired. Execution on the integration checkout remains deferred. - Journeys, independent mode: none. Partial evidence:
replay-recorded-fill(sdk-typescript: 2 of 4 action steps return a client value; steporder.place-replay-observed; no passed cell of a client of this capability in independent mode; partial evidence, does not count). The replay journey reads from the disposable self-run indexer. Execution on the integration checkout remains deferred. - Formal obligations:
- Replaying a recording from its checkpoint reproduces the recorded fills exactly for modeled routes, and every modeled route is in the route table (exact_replay_of_two_makers_and_one_crossing_taker in packages/replay/tests/replay.rs; the_surfpool_recording_replays_with_zero_differences in surfpool_fixture.rs; every_modeled_route_is_in_the_route_table, wire_digest_matches_version_policy in rules/main_2026_11.rs). Evidence:
packages/replay/tests/replay.rs,packages/replay/tests/surfpool_fixture.rs,packages/replay/src/rules/main_2026_11.rs. - Any deviating fee leg, maker fill quantity or balance delta is reported as a discrepancy at that event, and event sequence gaps or log-wire disagreement are rejected (a_changed_fee_leg_is_a_discrepancy_at_that_event_and_field, a_changed_maker_fill_quantity_is_a_discrepancy, an_event_sequence_gap_is_rejected, events_data_that_disagrees_with_the_log_wire_is_rejected in packages/replay/tests/replay.rs). Evidence:
packages/replay/tests/replay.rs,packages/replay/src/lib.rs. - Recordings are captured consistently: checkpoint accounts are read at one slot, history follows (slot, transaction index) order, only Seesaw instructions are kept, sequence gaps are rejected and truncation is refused (reads every account in one call at a slot no lower than the market read, records the history after the checkpoint in (slot, transaction index) order, rejects an event sequence gap after the checkpoint, refuses to truncate a history longer than maxTransactions in core replay.test.ts; reads chain_events for the hex market subject in chain order in chainEvents.test.ts). Evidence:
packages/core/src/__tests__/replay.test.ts,apps/indexer/src/api/routes/__tests__/chainEvents.test.ts,packages/core/src/replay/index.ts. - Simulation is deterministic and faithful: an empty order list reproduces the recorded fills, a seed fixes missing liquidity, latency reorders correctly, strategy orders obey the landing clock, fee epoch and quote budget, and a simulated list matches the same list run on Surfpool (an_empty_order_list_reproduces_the_surfpool_fills_exactly, whole_order_missing_liquidity_is_deterministic_under_a_seed, latency_moves_the_strategy_order_behind_the_recorded_taker, strategy_orders_enforce_the_landing_clock_fee_epoch_and_quote_budget in packages/replay/tests/simulate.rs; a_simulated_order_list_matches_the_same_list_run_on_surfpool in surfpool_simulation.rs). Evidence:
packages/replay/tests/simulate.rs,packages/replay/tests/surfpool_simulation.rs,packages/replay/src/simulate.rs. - Execution-quality metrics are correct for a known sequence, and the CLI wraps engine reports and discrepancies faithfully (metrics_of_a_known_sequence in packages/replay/tests/simulate.rs; markout_uses_the_latest_visible_post_fill_book in metrics.rs; maps a discrepancy to a failed envelope that keeps the report, requires the program commit and wire digest in cli replay.test.ts). Evidence:
packages/replay/tests/simulate.rs,packages/replay/src/metrics.rs,packages/cli/src/__tests__/commands/replay.test.ts.
- Replaying a recording from its checkpoint reproduces the recorded fills exactly for modeled routes, and every modeled route is in the route table (exact_replay_of_two_makers_and_one_crossing_taker in packages/replay/tests/replay.rs; the_surfpool_recording_replays_with_zero_differences in surfpool_fixture.rs; every_modeled_route_is_in_the_route_table, wire_digest_matches_version_policy in rules/main_2026_11.rs). Evidence:
- Known limits:
- The supply cap is checked for modeled spline issuance only; missing liquidity thins book orders (packages/replay/src/simulate.rs model_limits).
- No market impact model: strategy orders do not change the later recorded history.
- Modeled routes: PlaceOrder, SwapWithFreeFunds and PlaceLimitWithFreeFunds (packages/replay/src/rules/main_2026_11.rs:663-686), the book-only cancel, reduce and reclaim routes, funding, outcome-token, lifecycle, seat and managed-quote routes; every other route fails as UnmodeledRoute (main_2026_11.rs:783).
- Spline seats are loaded from the checkpoint; a tick-bound seat without the Market Tick account bytes, a managed batch reclaim of a quote-window order, and a ledger left incomplete by an earlier book-only route fail with UnreachableGlue.
- Replay reads the PlaceOrder account indices, the LOG header, the OrderFilled creator leg and the fill supply delta from program/src/testable.rs, and project_placement applies the live book-header bind and IOC no-fill refusal; no mirrored glue remains. The supply cap runs in apply_replayed_placement_supply, not in project_placement.
- Replay compares maker deltas, the effective treasury index and accumulated fee counters. Counterfactual simulation skips the accumulated counters. The historical Surfpool capture had no nonzero maker rebate; synthetic fixtures cover it.
- Recording is forward only (from a checkpoint); the indexer source cannot see failed transactions; config changes after the checkpoint are not tracked.
- Rust and Python require the separately built replay engine to consume recordings.
- Amounts are atoms; a checkpoint without the settlement mint decimals reports them as unknown (simulate.rs).
- Replay checks the recording's wire digest against WIRE_DIGEST in packages/replay/src/rules/main_2026_11.rs. The historical Surfpool fixtures need fresh captures for the current integration wire.
sdk.publication Published SDKs#
- Status: planned. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F9. Owning phase: 13. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 missing (program is no); 3 missing (idl is no); 4 missing (sdkTypescript is no; sdkRust is no; sdkPython is no); 5 missing (examples is no); 6 missing (cli is no); 7 missing (indexer is no; api is no); 8 missing (web is no; android is no); 9 missing (no normal-mode journey; no independent-mode journey); 10 missing (no formal obligation listed); 11 missing (status is planned); 12 not evaluated (the dead-code baseline is not tied to rows).
The TypeScript, Rust and Python SDKs are published with a runnable example for every SDK function.
- Source:
packages/sdk-rust/src/lib.rs,packages/sdk-python/seesaw/__init__.py,packages/core/src/index.ts - Boundaries: callers to be designed; signers to be designed; services to be designed.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | no | none | Not built at this commit. |
| IDL | no | none | Not built at this commit. |
| TypeScript SDK | no | none | Not built at this commit. |
| Rust SDK | no | none | Not built at this commit. |
| Python SDK | no | none | Not built at this commit. |
| CLI | no | none | Not built at this commit. |
| Indexer | no | none | Not built at this commit. |
| API | no | none | Not built at this commit. |
| Web | no | none | Not built at this commit. |
| Android | no | none | Not built at this commit. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | no | none | Not built at this commit. |
- Journeys, normal mode: none. The capability is planned; nothing runs yet.
- Journeys, independent mode: none. The capability is planned; nothing runs yet.
- Formal obligations: none listed.
verification.traceability-chain Verification traceability chain#
- Status: planned. Last verified at
dfe5a5f7b9f5fc0f47935ea0aa400ec3cfcfdb7b. - Roadmap items:
S4,F8. Owning phase: 15. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 missing (program is no); 3 missing (idl is no); 4 missing (sdkTypescript is no; sdkRust is no; sdkPython is no); 5 missing (examples is no); 6 missing (cli is no); 7 missing (indexer is no; api is no); 8 missing (web is no; android is no); 9 missing (no normal-mode journey; no independent-mode journey); 10 missing (no formal obligation listed); 11 missing (status is planned); 12 not evaluated (the dead-code baseline is not tied to rows).
For each property: specification requirement, implementation, proof or harness, executed result with its assumptions, and the exact release commit.
- Source: none
- Boundaries: callers to be designed; signers to be designed; services to be designed.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | no | none | Not built at this commit. |
| IDL | no | none | Not built at this commit. |
| TypeScript SDK | no | none | Not built at this commit. |
| Rust SDK | no | none | Not built at this commit. |
| Python SDK | no | none | Not built at this commit. |
| CLI | no | none | Not built at this commit. |
| Indexer | no | none | Not built at this commit. |
| API | no | none | Not built at this commit. |
| Web | no | none | Not built at this commit. |
| Android | no | none | Not built at this commit. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | no | none | Not built at this commit. |
- Journeys, normal mode: none. The capability is planned; nothing runs yet.
- Journeys, independent mode: none. The capability is planned; nothing runs yet.
- Formal obligations: none listed.
gateway.order-entry River gateway order entry#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-J. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The locally operated River-shaped gateway accepts signed create, read and cancel requests for simple orders (limit, market, post-only, IOC, FOK, GTC, GTD mapped to native placements), journals signed bytes durably in SQLite for idempotent retries and restart reconciliation, exposes attempt history, cancel-retry and resubmit, a health route, and a private order WebSocket; transactions are signed by the customer signer module, never by the gateway.
- Source:
packages/core/src/riverClient.ts,packages/core/src/riverStreams.ts,packages/cli/src/commands/river.ts,services/river-gateway/src/server.ts,services/river-gateway/src/orders.ts,services/river-gateway/src/store.ts,services/river-gateway/src/ws-server.ts,services/river-gateway/README.md - CLI commands:
river order create,river order get,river order list,river order watch,river order cancel,river order attempts,river order cancel-retry,river order resubmit,river health - River gateway routes:
/v1/orders,/v1/orders/{id},/v1/seesaw/orders/{id}/attempts,/v1/seesaw/orders/{id}/cancel-retry,/v1/seesaw/orders/{id}/resubmit,/v1/seesaw/gateway/health,WS /v1/ws/orders - Boundaries: callers bot operator with a River key; signers River key (Ed25519 request signature); the customer signer module signs transactions; services River gateway, indexer database projection, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain service; no instruction of its own. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/riverClient.ts, packages/core/src/riverStreams.ts | The client covers the HTTP routes and the signed private order stream. |
| Rust SDK | yes | packages/sdk-rust/src/river_gateway.rs, packages/sdk-rust/src/river_gateway/stream.rs | Enable the river-websocket feature to consume the signed streams. |
| Python SDK | yes | packages/sdk-python/seesaw/river_gateway.py, packages/sdk-python/seesaw/river_streams.py | Install the river extra to consume the signed streams. |
| CLI | yes | packages/cli/src/commands/river.ts | |
| Indexer | not-applicable | none | The gateway keeps its own journal; it ingests no events itself. |
| API | yes | services/river-gateway/src/server.ts, services/river-gateway/src/orders.ts, services/river-gateway/src/ws-server.ts | |
| Web | not-applicable | none | The gateway is a machine API for River-compatible bots. |
| Android | not-applicable | none | The gateway is a machine API for River-compatible bots. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/32-river-gateway.ts, packages/sdk-rust/examples/river_gateway.rs, packages/sdk-rust/examples/river_gateway_stream.rs, packages/sdk-python/examples/river_gateway.py | The TypeScript example and the Rust and Python examples read the gateway with a registered key and place or cancel nothing. |
- Journeys, normal mode: none. The river-* journeys submit, read and cancel through /v1/orders (qa/e2e/runners/river-conditional.ts) as evidence of their own capabilities; no journey reference of this row asserts the order entry routes.
- Journeys, independent mode: none. The river-* journeys submit, read and cancel through /v1/orders (qa/e2e/runners/river-conditional.ts) as evidence of their own capabilities; no journey reference of this row asserts the order entry routes.
- Formal obligations:
- Create, read and cancel are idempotent: a client request id replays the verified request after reopen, a conflicting body is rejected, and only one live cancel is queued (replays exact verified request after reopening with one submit job, uses client request id across timestamps and rejects a conflicting body, queues one live cancel and preserves status, while pending cancel removes submit in store-replay.test.ts). Evidence:
services/river-gateway/tests/store-replay.test.ts,services/river-gateway/src/store.ts. - Signed bytes are journaled before send; restart rebroadcasts them without re-signing; cancelling while signing prevents broadcast; a late callback cannot overwrite terminal status (persists signed bytes before submit and awaits an in-flight worker on shutdown, restarts from persisted bytes without signing again, cancelling while signing prevents broadcast in server-execution.test.ts; does not let a late callback overwrite terminal status in execution.test.ts). Evidence:
services/river-gateway/tests/server-execution.test.ts,services/river-gateway/tests/execution.test.ts,services/river-gateway/src/server.ts. - River order types map exactly to native placements: YES and NO prices are never complemented, FOK and bounded market use IOC atomic minimum, market orders need an atomic time in force, and invalid GTD or imprecise decimals are rejected (converts YES buy and sell exactly, never complements a NO price and maps both intents, uses IOC atomic minimum semantics for FOK and bounded market in orders.test.ts; requires atomic time in force for market orders, rejects calendar-invalid GTD timestamps, rejects imprecise decimals and unsupported fields in contract.test.ts). Evidence:
services/river-gateway/tests/orders.test.ts,services/river-gateway/tests/contract.test.ts,services/river-gateway/src/orders.ts. - The customer signer module signs; the gateway signs only the exact prepared message and rejects altered messages, mismatched wallets or a wrong genesis before signing (signs the exact prepared message, rejects altered-message and invalid wallet signatures, rejects callbacks that mutate the supplied message before signing in solana-adapter.test.ts; refuses a wrong RPC genesis before wallet signing or transaction RPC in execution-adapter.test.ts). Evidence:
services/river-gateway/tests/solana-adapter.test.ts,services/river-gateway/tests/execution-adapter.test.ts. - Requests and the private order WebSocket are authenticated and tenant-scoped: unsigned requests get 401, and the stream binds the requested subaccount and never sends another (accepts a signed POST and isolates tenants in gateway-repair.test.ts; rejects missing/invalid authentication and binds the requested subaccount, publishes only the authorized account, suppresses duplicates, and advances the cursor in private-stream.test.ts; performs an authenticated loopback upgrade and emits the River-shaped connected frame in ws-server.test.ts). Evidence:
services/river-gateway/tests/gateway-repair.test.ts,services/river-gateway/tests/private-stream.test.ts,services/river-gateway/tests/ws-server.test.ts,services/river-gateway/src/ws-server.ts. - Cancel retry and resubmit rearm exactly one fenced new generation, and only after a proven unlanded expiry; an unresolved attempt never becomes confirmed from an empty indexer view (rearms exactly one new generation after a canonical failure and fences the old worker, proven unlanded expiry yields exactly one fenced new generation with the same terms, never upgrades an unresolved attempt to confirmed from an empty indexer view in durable-attempts-ssw041-043.test.ts). Evidence:
services/river-gateway/tests/durable-attempts-ssw041-043.test.ts. - Placements follow referral precedence through the global binding and reject a self-referrer (uses a valid global binding, including an expired positive expiry, prefers a cached binding and never reads or overwrites global state, rejects a cached self-referrer in referral-binding.test.ts; passes the canonical global referral PDA through real preparePlacement in execution-adapter.test.ts). Evidence:
services/river-gateway/tests/referral-binding.test.ts,services/river-gateway/tests/execution-adapter.test.ts.
- Create, read and cancel are idempotent: a client request id replays the verified request after reopen, a conflicting body is rejected, and only one live cancel is queued (replays exact verified request after reopening with one submit job, uses client request id across timestamps and rejects a conflicting body, queues one live cancel and preserves status, while pending cancel removes submit in store-replay.test.ts). Evidence:
- Known limits:
- Locally tested implementation, not a production signoff; hosted River features, batch deadlines and custodial execution are unsupported (services/river-gateway/README.md).
- Signed stream runtime qualification remains open for the SDKs and CLI.
gateway.market-data River gateway market data#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-J. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The gateway serves market search and exact lookup, order books, latest prices, tradeprints, native fills and positions from the trusted indexer PostgreSQL projection, in each listing outcome's own price space, and an order-book WebSocket that requires a River key (key_id and a signed challenge, services/river-gateway/src/book-ws-server.ts:37-58); stale or inconsistent evidence fails closed.
- Source:
packages/core/src/riverClient.ts,packages/core/src/riverStreams.ts,packages/cli/src/commands/river.ts,services/river-gateway/src/server.ts,services/river-gateway/src/market-data.ts,services/river-gateway/src/book-ws-server.ts,services/river-gateway/README.md - CLI commands:
river markets search,river markets lookup,river orderbook,river watch-orderbooks,river prices,river tradeprints,river fills,river positions - River gateway routes:
/v1/markets/search,/v1/markets/lookup,/v1/orderbooks/{id},/v1/prices/{id},/v1/tradeprints,/v1/fills,/v1/positions,WS /v1/ws/orderbooks - Boundaries: callers anyone with a River key; signers River key (Ed25519 request signature); the customer signer module signs transactions; services River gateway, indexer database projection, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain service; no instruction of its own. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/riverClient.ts, packages/core/src/riverStreams.ts | The client covers the HTTP routes and signed order-book subscriptions. |
| Rust SDK | yes | packages/sdk-rust/src/river_gateway.rs, packages/sdk-rust/src/river_gateway/stream.rs | Enable the river-websocket feature to consume the signed streams. |
| Python SDK | yes | packages/sdk-python/seesaw/river_gateway.py, packages/sdk-python/seesaw/river_streams.py | Install the river extra to consume the signed streams. |
| CLI | yes | packages/cli/src/commands/river.ts | |
| Indexer | not-applicable | none | The gateway reads the indexer projection as a client; the indexer does not implement the gateway (A3). |
| API | yes | services/river-gateway/src/server.ts, services/river-gateway/src/market-data.ts, services/river-gateway/src/book-ws-server.ts | |
| Web | not-applicable | none | The gateway is a machine API for River-compatible bots. |
| Android | not-applicable | none | The gateway is a machine API for River-compatible bots. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/32-river-gateway.ts, packages/sdk-rust/examples/river_gateway.rs, packages/sdk-rust/examples/river_gateway_stream.rs, packages/sdk-python/examples/river_gateway.py | The TypeScript example and the Rust and Python examples read the gateway with a registered key and place or cancel nothing. |
- Journeys, normal mode: none. The river-* journeys run a gateway, but no journey step asserts a route of this row.
- Journeys, independent mode: none. The river-* journeys run a gateway, but no journey step asserts a route of this row.
- Formal obligations:
- Prices, tradeprints and books are in each listing outcome's own price space; NO listings are not complemented (returns canonical outcome prices and newest tradeprints in market-data.test.ts; projects a NO listing, bounds both sides, and fails closed for bad providers in books-http.test.ts; maps actual indexed order columns without complementing in data-source.test.ts). Evidence:
services/river-gateway/tests/market-data.test.ts,services/river-gateway/tests/books-http.test.ts,services/river-gateway/src/market-data.ts. - Stale, future or inconsistent evidence fails closed, and missing ids are reported as not_found rows (fails closed for future observations and stale cursors, does not refresh an old trade merely because the indexer cursor is current, keeps missing ids as not_found rows in market-data.test.ts; fails closed when market is not trading or has ended in data-source.test.ts; fails closed when a maker rebate sequence is incomplete in postgres-integration.test.ts). Evidence:
services/river-gateway/tests/market-data.test.ts,services/river-gateway/tests/data-source.test.ts,services/river-gateway/tests/postgres-integration.test.ts. - Fills and positions are scoped to the authenticated subaccount, and HTTP book reads with a bad key id get 401 (groups authenticated fills and never asks for another subaccount in data-http.test.ts; validates all listing identities before creating the pool and routes each listing, plus the x-river-key-id bad 401 assertion in books-http.test.ts). Evidence:
services/river-gateway/tests/data-http.test.ts,services/river-gateway/tests/books-http.test.ts. - The order-book WebSocket accepts a signed key_id challenge handshake (accepts a signed query handshake without subaccount and closes clients on shutdown in book-ws-server.test.ts). Evidence:
services/river-gateway/tests/book-ws-server.test.ts,services/river-gateway/src/book-ws-server.ts. - The order-book WebSocket rejects a missing, unknown or badly signed River key challenge; only the accept case is tested; uncovered; phase 15. Evidence:
services/river-gateway/src/book-ws-server.ts.
- Prices, tradeprints and books are in each listing outcome's own price space; NO listings are not complemented (returns canonical outcome prices and newest tradeprints in market-data.test.ts; projects a NO listing, bounds both sides, and fails closed for bad providers in books-http.test.ts; maps actual indexed order columns without complementing in data-source.test.ts). Evidence:
- Known limits:
- Signed stream runtime qualification remains open for the SDKs and CLI.
gateway.accounts-and-fees River gateway accounts, balances and fees#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-J. Owning phase: 10. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The gateway lists the configured subaccounts, reports verified native portfolio balances (exchange balance and Seesaw portfolio), answers River fee-schedule lookups (reporting missing ids) and quotes native Seesaw fees.
- Source:
packages/core/src/riverClient.ts,packages/cli/src/commands/river.ts,services/river-gateway/src/server.ts,services/river-gateway/src/portfolio.ts,services/river-gateway/src/fees.ts,services/river-gateway/README.md - CLI commands:
river subaccounts,river balance,river portfolio,river fees schedules,river fees native-schedules,river fees quote - River gateway routes:
/v1/subaccounts,/v1/balance/exchange,/v1/seesaw/portfolio,/v1/fees/schedules/lookup,/v1/seesaw/fees/schedules/lookup,/v1/seesaw/fees/quote - Boundaries: callers bot operator with a River key; signers River key (Ed25519 request signature); the customer signer module signs transactions; services River gateway, indexer database projection, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain service; no instruction of its own. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/riverClient.ts | |
| Rust SDK | yes | packages/sdk-rust/src/river_gateway.rs | |
| Python SDK | yes | packages/sdk-python/seesaw/river_gateway.py | |
| CLI | yes | packages/cli/src/commands/river.ts | |
| Indexer | not-applicable | none | Balances come from chain reads by the gateway. |
| API | yes | services/river-gateway/src/server.ts, services/river-gateway/src/portfolio.ts, services/river-gateway/src/fees.ts | |
| Web | not-applicable | none | The gateway is a machine API for River-compatible bots. |
| Android | not-applicable | none | The gateway is a machine API for River-compatible bots. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/core/examples/32-river-gateway.ts, packages/sdk-rust/examples/river_gateway.rs, packages/sdk-python/examples/river_gateway.py | The TypeScript example and the Rust and Python examples read the gateway with a registered key and place or cancel nothing. |
- Journeys, normal mode: none. The river-* journeys run a gateway, but no journey step asserts a route of this row.
- Journeys, independent mode: none. The river-* journeys run a gateway, but no journey step asserts a route of this row.
- Formal obligations:
- Subaccount listing and portfolio reads are limited to the subaccounts configured for the key; an unauthorized subaccount is rejected before any RPC (rejects an unauthorized subaccount before touching RPC, refuses a mismatched genesis hash in portfolio-http.test.ts; lists the subaccounts of the key as an array in cli river.test.ts; accepts the subaccount array and refuses an object where it expects one in riverClient.test.ts). Evidence:
services/river-gateway/tests/portfolio-http.test.ts,packages/cli/src/__tests__/commands/river.test.ts,packages/core/src/__tests__/riverClient.test.ts. - Portfolio balances are verified live reads: missing accounts read as zero, a missing balance reader fails closed, and funded bearer balances are reported separately from free and locked ledger buckets (reads missing native/token accounts as zero without indexer snapshots, fails closed when no live balance reader is configured, reports funded bearer balances separately from free and locked ledger buckets in portfolio.test.ts). Evidence:
services/river-gateway/tests/portfolio.test.ts,services/river-gateway/src/portfolio.ts. - Native fee quotes use capped linear decay with D6 ceiling rounding from the verified config account, fail closed for unknown markets and out-of-range quantities, and report missing River fee-schedule ids (uses capped linear decay and D6 ceiling, fails closed for unknown markets, reads the verified config account and quotes native taker fees, serves River missing IDs and native quotes through authenticated HTTP in fees.test.ts; posts both fee schedule lookups with the river id list in riverClient.test.ts). Evidence:
services/river-gateway/tests/fees.test.ts,packages/core/src/__tests__/riverClient.test.ts,services/river-gateway/src/fees.ts.
- Subaccount listing and portfolio reads are limited to the subaccounts configured for the key; an unauthorized subaccount is rejected before any RPC (rejects an unauthorized subaccount before touching RPC, refuses a mismatched genesis hash in portfolio-http.test.ts; lists the subaccounts of the key as an array in cli river.test.ts; accepts the subaccount array and refuses an object where it expects one in riverClient.test.ts). Evidence:
keeper.pyth-lifecycle Pyth lifecycle keeper#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-D,F1. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is no); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The Pyth keeper classifies native markets from chain state, fetches signed Pyth evidence for end capture, and can resolve or expire without Hermes. It also reclaims resting orders, settles and closes eligible positions and seats, and recovers abandoned preparation or Pull accounts when it controls the funding authority. Submissions use bounded spend and durable claims.
- Source:
services/pyth-keeper/src/index.ts,services/pyth-keeper/src/scanner.ts,services/pyth-keeper/src/loop.ts,services/pyth-keeper/src/executor.ts,services/pyth-keeper/src/eligibility.ts,packages/keeper-runtime/src/lander.ts,packages/keeper-runtime/src/operatorGate.ts,services/lifecycle-keeper/src/index.ts - CLI commands:
keeper run,market crank,market plan,market show - Service HTTP routes:
pyth-keeper /health,pyth-keeper /metrics,pyth-keeper /metrics/prometheus,pyth-keeper /readiness - Boundaries: callers anyone running the keeper; signers keeper wallet; services Pyth Hermes (keeper key or the Pyth relay), Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | The keeper lands existing routes that the lifecycle rows own (SnapshotEnd, ExpireMarket, ResolveMarket); the program does not implement the keeper. |
| IDL | not-applicable | none | The keeper has no instruction of its own to model. |
| TypeScript SDK | not-applicable | none | A dependency, not a surface: @seesaw/keeper-runtime is private and imported only by the services and the indexer; no SDK exposes the keeper. |
| Rust SDK | not-applicable | none | The keeper is a TypeScript service. |
| Python SDK | not-applicable | none | The keeper is a TypeScript service. |
| CLI | not-applicable | none | The keeper runs as a service; the CLI equivalents are market snapshot, resolve and expire (lifecycle rows). |
| Indexer | not-applicable | none | The keeper reads chain state directly. |
| API | partial | services/pyth-keeper/src/server.ts | The keeper serves only its observability routes /health, /readiness, /metrics and /metrics/prometheus (services/pyth-keeper/src/server.ts:1-10,95-108), started when METRICS_PORT is set; no route triggers or reads a lifecycle action. |
| Web | not-applicable | none | A service, not an app flow. |
| Android | not-applicable | none | A service, not an app flow. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | no | none | No checked-in example runs the keeper. |
- Journeys, normal mode: none. The registered native market lifecycle journeys exercise client submissions. A keeper-operated run for the recovery operations has not been recorded.
- Journeys, independent mode: none. The independent stack can configure the keeper. A keeper-operated independent journey has not been recorded.
- Formal obligations:
- The keeper classifies native markets only from chain state: snapshot after tEnd with no end price, resolve with captured snapshot evidence, expiry exactly at the deadline, and no native actions for external markets (scanner.test.ts: pull market past tEnd with no end_price -> snapshot, carries the captured snapshot on a resolve action as its durable evidence, keeps expiry closed until the deadline and opens it exactly at the deadline, does not submit native lifecycle instructions for an external resolver market; executorOwnerCheck.test.ts: rejects resolve when the market account is owned by another program). Evidence:
services/pyth-keeper/tests/scanner.test.ts,services/pyth-keeper/tests/executorOwnerCheck.test.ts,services/pyth-keeper/src/scanner.ts. - End capture uses only signed Pyth evidence that brackets the boundary; resolve fails closed without snapshot evidence, and expiry needs no relay or Hermes (hermesFallback.test.ts: rejects a Hermes response that does not bracket the requested boundary; resolveAttemptEvidence.test.ts: fails closed when a resolve action carries no snapshot evidence; loop.test.ts: expires without requesting or posting a relay update). Evidence:
services/pyth-keeper/tests/hermesFallback.test.ts,services/pyth-keeper/tests/resolveAttemptEvidence.test.ts,services/pyth-keeper/tests/loop.test.ts. - Cleanup nominates only eligible owner orders, positions and seats, and recovers only preparation or Pull accounts it controls (forceClose.test.ts: uses live owner orders or locks and stops nominating settled or empty positions; scanner.test.ts: finds dormant seats to settle and settled seats to close without reading the market; receiverState.test.ts: recovers only the keeper's ephemeral accounts after the finalized lifetime; nativePreallocation.test.ts: preserves initialized markets and refuses children with foreign or nonzero data). Evidence:
services/pyth-keeper/tests/forceClose.test.ts,services/pyth-keeper/tests/scanner.test.ts,services/pyth-keeper/tests/receiverState.test.ts,services/pyth-keeper/tests/nativePreallocation.test.ts. - Submissions use durable claims so one keeper attempts an action once, and spend stays within durable per-tick and per-day budgets across restarts (redisClaimContention.test.ts: grants the claim to exactly one keeper; loop.test.ts: uses a shared claim store so two concurrent keepers attempt the same action once; spendBudget.test.ts: halts before a third unique action even when every prior action fails, preserves the daily circuit breaker across restart). Evidence:
services/pyth-keeper/tests/redisClaimContention.test.ts,services/pyth-keeper/tests/loop.test.ts,packages/keeper-runtime/src/__tests__/spendBudget.test.ts. - The lander sends only what the caller compiled and signed, refuses transactions needing a signer it lacks, and the service stays disabled unless the operator flag is set (lander.test.ts: refuses to simulate or send a transaction that needs a signer it does not hold, sends exactly the transaction the caller compiled, signed, as a version 1 wire; operatorGate.test.ts: is off by default and only "1" turns it on). Evidence:
packages/keeper-runtime/src/__tests__/lander.test.ts,packages/keeper-runtime/src/__tests__/operatorGate.test.ts.
- The keeper classifies native markets only from chain state: snapshot after tEnd with no end price, resolve with captured snapshot evidence, expiry exactly at the deadline, and no native actions for external markets (scanner.test.ts: pull market past tEnd with no end_price -> snapshot, carries the captured snapshot on a resolve action as its durable evidence, keeps expiry closed until the deadline and opens it exactly at the deadline, does not submit native lifecycle instructions for an external resolver market; executorOwnerCheck.test.ts: rejects resolve when the market account is owned by another program). Evidence:
- Known limits:
- Seesaw's own keeper is operator-only behind SEESAW_OPERATOR_KEEPERS_ENABLED (packages/keeper-runtime/src/operatorGate.ts); users crank with their own Pyth key.
relay.pyth-updates Pyth update relay#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
F1,M-E. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 missing (android is no); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: The relay lands nothing on chain..
services/pyth-relay is a stateless HTTP relay that holds a Hermes API key and re-serves guardian-signed Pyth price update bytes publicly, with caching and rate limits, so that on-chain posting stays permissionless.
- Source:
services/pyth-relay/src/server.ts,services/pyth-relay/src/hermes.ts,services/pyth-relay/src/rateLimit.ts - CLI commands:
pyth post-update,pyth relay-update - Service HTTP routes:
pyth-relay /health,pyth-relay /metrics,pyth-relay /metrics/prometheus,pyth-relay /readiness,pyth-relay /update/at,pyth-relay /update/latest - Boundaries: callers anyone; signers none; services Pyth Hermes (relay key).
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain service; no instruction of its own. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/pyth-pull/src/pythRelayClient.ts, packages/pyth-pull/src/__tests__/pythRelayClient.test.ts | @seesaw/pyth-pull exports PythRelayHttpClient (getLatest for creation, getUpdateAt for the END boundary), which plugs into the Pull bundle builders; the relay holds the Hermes key. Tests are written, not run. |
| Rust SDK | yes | packages/sdk-rust/src/pyth_relay.rs | PythRelayHttpClient ports the TypeScript relay client under the http feature: latest and boundary updates, shape and feed checks; the Receiver verifies the update. |
| Python SDK | yes | packages/sdk-python/seesaw/pyth_relay.py | PythRelayHttpClient ports the TypeScript relay client: latest and boundary updates, shape and feed checks; the Receiver verifies the update. |
| CLI | yes | packages/cli/src/commands/pythRelay.ts, packages/cli/src/__tests__/commands/pyth-relay.test.ts | pyth relay-update reads the latest update, or with --at the boundary update, from a relay without a key. Tests are written, not run. |
| Indexer | not-applicable | none | The relay is independent of the indexer. |
| API | yes | services/pyth-relay/src/server.ts | |
| Web | yes | apps/web/app/api/pyth/pull/create-market/route.ts, apps/web/app/api/pyth/pull/lifecycle/route.ts | The create-market and lifecycle route handlers read Pyth updates through the relay when PYTH_RELAY_URL is set. |
| Android | no | none | No mobile source references the relay: the app builds Pull bundles with the user's own Hermes key (BYOK). Pending owner decision: whether Android should also read through a hosted relay. Recommendation: keep BYOK as the default and add the relay only as an opt-in source (EXPO_PUBLIC_PYTH_RELAY_URL), since a hosted relay adds a server dependency to an otherwise wallet-only flow. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-python/examples/bridge_and_relay.py, packages/sdk-rust/examples/bridge_and_relay.rs, packages/pyth-pull/examples/relay-updates.ts | relay-updates.ts and bridge_and_relay.py and .rs read relayed Pyth updates against a fixture relay. |
- Journeys, normal mode: none. No journey index entry reads the relay.
- Journeys, independent mode: none. No journey index entry reads the relay.
- Formal obligations:
- The relay fails closed without a Pyth API key unless anonymous local access is explicitly enabled, and the key is never exposed in readiness, metrics or endpoint reports (config.test.ts: fails closed when no Pyth API key is configured for any Hermes endpoint, allows a keyless local endpoint only with an explicit HERMES_ALLOW_ANON opt-in; server.test.ts: 200 /readiness reports Pyth Core configuration without exposing secrets, redacts credentials, path, and query from the readiness Hermes endpoint). Evidence:
services/pyth-relay/tests/config.test.ts,services/pyth-relay/tests/server.test.ts. - Served updates are the Hermes guardian-signed bytes with a firstness witness; non-base64 payloads, updates older than the requested timestamp, and missing or zero predecessor metadata are rejected before caching (hermes.test.ts: rejects non-base64 Hermes binary payloads before labeling relay output base64, rejects timestamped updates older than the requested timestamp before immutable caching, rejects a zero predecessor for timestamped updates). Evidence:
services/pyth-relay/tests/hermes.test.ts,services/pyth-relay/src/hermes.ts. - Per-client and global rate limits hold without cross-client theft, and upstream Hermes use stays within 10 sends per sliding 10 s with a 60 s fail-closed throttle after a 429 (rateLimit.test.ts: enforces a global request budget across clients, does not let an exhausted client consume the remaining global budget; hermesLimiter.test.ts: keeps every 10s sliding window at or below 10 sends over a long run, fails closed for the full 60s throttle window after an upstream 429; server.test.ts: 429 when rate limited). Evidence:
services/pyth-relay/tests/rateLimit.test.ts,services/pyth-relay/tests/hermesLimiter.test.ts,services/pyth-relay/tests/server.test.ts. - Timestamped updates are cached immutably once available, unavailable ones are negative-cached, and concurrent loads deduplicate (server.test.ts: caches successful timestamped updates forever, 404s and negative-caches timestamped updates that are not yet available; cache.test.ts: deduplicates concurrent loads for the same key). Evidence:
services/pyth-relay/tests/server.test.ts,services/pyth-relay/tests/cache.test.ts. - The public surface is GET-only, serves only allowlisted feeds, and rejects malformed parameters (openapi.test.ts: routes every declared path as GET only; server.test.ts: 403 when feed not in allowlist, 400 on missing/invalid params; config.test.ts: requires an allowlist or explicit unrestricted opt-in for upgraded Hermes). Evidence:
services/pyth-relay/tests/openapi.test.ts,services/pyth-relay/tests/server.test.ts,services/pyth-relay/tests/config.test.ts.
- The relay fails closed without a Pyth API key unless anonymous local access is explicitly enabled, and the key is never exposed in readiness, metrics or endpoint reports (config.test.ts: fails closed when no Pyth API key is configured for any Hermes endpoint, allows a keyless local endpoint only with an explicit HERMES_ALLOW_ANON opt-in; server.test.ts: 200 /readiness reports Pyth Core configuration without exposing secrets, redacts credentials, path, and query from the readiness Hermes endpoint). Evidence:
keeper.mirror-claims Signed-source keeper#
- Status: implemented. Last verified at
94abeda5c452b77e66e23258c2209495e3e233c0. - Roadmap items:
F2. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 missing (api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The source keeper reads finalized RPC state, submits signed resolution packets, finalizes due observations, expires overdue markets, and recovers eligible drafts, orders, and positions. It can request public signed results from configured witnesses and publishes public evidence after successful finalization.
- Source:
services/source-keeper/src/keeper.ts,services/source-keeper/src/evidence.ts,services/source-keeper/README.md,infra/docker/independent/compose.yml - Service HTTP routes:
source-keeper /health,source-keeper /metrics,source-keeper /metrics/prometheus,source-keeper /readiness - Boundaries: callers anyone running the keeper; signers keeper wallet (fee payer); services Solana RPC, source witnesses, keeper inbox, Redis lease store, optional evidence API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | The keeper submits existing signed-source and permissionless lifecycle instructions. |
| IDL | not-applicable | none | The keeper has no instruction of its own to model. |
| TypeScript SDK | yes | packages/core/src/sourceResult/instructions.ts | |
| Rust SDK | not-applicable | none | The keeper is a TypeScript service. |
| Python SDK | not-applicable | none | The keeper is a TypeScript service. |
| CLI | not-applicable | none | The keeper runs as a service. Operators can also submit individual source operations with seesaw source. |
| Indexer | not-applicable | none | The keeper reads chain state directly and can send verified public evidence to the indexer API. |
| API | partial | services/source-keeper/src/keeper.ts | The optional HTTP listener serves health, readiness and metrics. The keeper loop submits packets. |
| Web | not-applicable | none | A service, not an app flow. |
| Android | not-applicable | none | A service, not an app flow. |
| iOS | not-applicable | none | Operator service. |
| Examples | yes | packages/core/examples/50-source-keeper-step.ts | 50-source-keeper-step.ts runs the keeper decision for one step (draft recovery, finalize, expire) against fixture state or finalized RPC; operating the keeper service is documented in services/source-keeper/README.md. |
- Journeys, normal mode: none. The signed-source localnet gate exercises the keeper outside the journey index.
- Journeys, independent mode: none. The signed-source localnet gate exercises the keeper outside the journey index.
- Formal obligations:
- Inbox resolution packets are read at their exact revision and dropped when any witness is past the policy age, or after epoch rotation, revocation or image withdrawal; insecure inboxes are refused (inbox.test.ts: reads a signed resolution at its exact revision, including maximum witness count; checks every witness against the policy age before retrying a packet; invalidates an inbox packet after epoch rotation, revocation, or image withdrawal; rejects symlinks and an inbox readable by other users). Evidence:
services/source-keeper/tests/inbox.test.ts. - Live mode requires release identity, cluster and shared leases, counts only active attested witnesses at finalized chain time, and selects exactly one public-source requester from three witnesses (config.test.ts: requires release identity, cluster and shared leases in live mode; counts only active attested witnesses at finalized chain time; selects exactly one automatic public-source requester with three witnesses). Evidence:
services/source-keeper/tests/config.test.ts. - Spend is bounded so the balance always covers the maximum closer-reward debit plus the transaction fee (config.test.ts: reserves room for the maximum closer-reward debit and transaction fee). Evidence:
services/source-keeper/tests/config.test.ts. - Public evidence is published only for transactions that finalized successfully; failed or expired attempts are dropped and a restart resumes the queue durably (config.test.ts: resumes a signed evidence attempt and removes failed or expired transactions). Evidence:
services/source-keeper/tests/config.test.ts,services/source-keeper/src/evidence.ts. - The keeper reads only finalized RPC state, finalizes only due observations, expires only overdue markets, and recovers only eligible drafts, orders and positions under per-action leases; uncovered; phase 15. Evidence:
services/source-keeper/src/keeper.ts.
- Inbox resolution packets are read at their exact revision and dropped when any witness is past the policy age, or after epoch rotation, revocation or image withdrawal; insecure inboxes are refused (inbox.test.ts: reads a signed resolution at its exact revision, including maximum witness count; checks every witness against the policy age before retrying a packet; invalidates an inbox packet after epoch rotation, revocation, or image withdrawal; rejects symlinks and an inbox readable by other users). Evidence:
- Known limits:
- Automatic witness capture supports public profiles with the default empty issuer set. Live operation requires shared leases.
- The disposable localnet harness covers all source families using fixture witnesses. Genuine source and Nitro qualification remain external signoffs.
runner.mirror-sources Signed-source evidence runner#
- Status: implemented. Last verified at
94abeda5c452b77e66e23258c2209495e3e233c0. - Roadmap items:
F2. Owning phase: 3. - References: #757.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 missing (examples is no); 6 met; 7 missing (indexer is partial; api is partial); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, record; chain left out: The runner produces packets for submission by a separate client or keeper..
The source runner obtains signed packets for finalized-chain requests, retains digest-matched evidence bundles, and prepares public resolutions for the keeper inbox. It can publish verified public evidence for an already accepted result.
- Source:
services/source-runner/src/cli.ts,services/source-runner/src/inbox.ts,services/source-runner/README.md - API routes:
PUT /api/v1/source-evidence-bundles/{digest} - Boundaries: callers local operator; signers registered source witnesses; services source requester, source witnesses, keeper inbox, optional public evidence API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain service; no instruction of its own. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | The runner is a local operator command. |
| Rust SDK | not-applicable | none | The runner is a local operator command. |
| Python SDK | not-applicable | none | The runner is a local operator command. |
| CLI | yes | services/source-runner/src/cli.ts | |
| Indexer | partial | apps/indexer/src/indexer/sourceResultEvidence.ts | Capture uses RPC and witnesses. Public bundle publication is an optional indexer operation after on-chain acceptance. |
| API | partial | services/source-runner/src/cli.ts, apps/indexer/src/api/routes/sourceEvidenceBundles.ts | The wallet-authenticated upload endpoint accepts public evidence for recorded digests. |
| Web | not-applicable | none | Operator service. |
| Android | not-applicable | none | Operator service. |
| iOS | not-applicable | none | Operator service. |
| Examples | no | none | No SDK example runs the runner; operation is documented in services/source-runner/README.md. |
- Journeys, normal mode: none. The signed-source fixture exercises runner handoff outside the journey index.
- Journeys, independent mode: none. The signed-source localnet gate exercises runner handoff outside the journey index.
- Formal obligations:
- A packet is published only at its bound market and revision, written once with mode 0600 and never overwritten (publishes the fixture packet at the bound market and revision in inbox.test.ts). Evidence:
services/source-runner/tests/inbox.test.ts,services/source-runner/src/inbox.ts. - Evidence bundles are kept only when their digest matches, and publication requires matching evidence in the inbox (requires matching evidence in the default inbox before publishing the packet, retains verified copies from a separate capture directory before publishing in inbox.test.ts). Evidence:
services/source-runner/tests/inbox.test.ts,services/source-runner/src/inbox.ts. - A packet from a different reporter, a private profile or a stale packet is rejected before publication (rejects a different reporter, a private profile, or a stale packet before publication in inbox.test.ts). Evidence:
services/source-runner/tests/inbox.test.ts. - Requests are served only for finalized-chain state, and verified public evidence is published only for an already accepted result; uncovered; phase 15. Evidence:
services/source-runner/src/cli.ts.
- A packet is published only at its bound market and revision, written once with mode 0600 and never overwritten (publishes the fixture packet at the bound market and revision in inbox.test.ts). Evidence:
- Known limits:
- Production inbox ingestion uses public resolution packets. OpticOdds evidence stays in private operator storage.
tooling.swarm-simulation Swarm trader simulation#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items: unplaced (A many-actor simulation harness for end-to-end realism testing is test tooling in no item of roadmap section 9.). Owning phase: none.
- Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- No product surface: A developer test harness run as its own binary from packages/swarm-trader; no product surface implements or exposes it.
packages/swarm-trader spawns n_actors stochastic simulated traders (SwarmConfig.n_actors with a role mix that must sum to it, packages/swarm-trader/src/config.rs:47-49) against a local Surfpool validator, coordinates their orders, seeds fills, verifies the resulting state and writes a report; it reuses the bot engine of packages/bot-rust and the Rust SDK as dependencies (packages/swarm-trader/Cargo.toml:10-12).
- Source:
packages/swarm-trader/src/coordinator.rs,packages/swarm-trader/src/actor.rs,packages/swarm-trader/src/verifier.rs - Boundaries: callers developer; signers simulated actor keys; services Surfpool, indexer API.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain service; no instruction of its own. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | A Rust test harness. |
| Rust SDK | not-applicable | none | The swarm depends on the Rust SDK (packages/swarm-trader/Cargo.toml:12); the SDK does not provide or expose the swarm. |
| Python SDK | not-applicable | none | A Rust test harness. |
| CLI | not-applicable | none | Runs as its own binary. |
| Indexer | not-applicable | none | Reads the indexer as a client only. |
| API | not-applicable | none | Reads the API as a client only. |
| Web | not-applicable | none | Test tooling. |
| Android | not-applicable | none | Test tooling. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | Test tooling. |
- Journeys, normal mode: none. A simulation harness, not a journey of the index.
- Journeys, independent mode: none. A simulation harness, not a journey of the index.
- Formal obligations:
- The role mix must sum to n_actors, and role expansion preserves count and order (role_mix_sums_match, role_mix_sums_mismatch_detected in config.rs; expand_roles_preserves_count_and_order in coordinator.rs). Evidence:
packages/swarm-trader/src/config.rs,packages/swarm-trader/src/coordinator.rs. - Preflight and actor construction fail closed on invalid feed ids, market pubkeys, program ids or missing Hermes credentials, before any funding (preflight_rejects_invalid_market_feed_id, preflight_rejects_placeholder_market_pubkey, preflight_rejects_upgraded_hermes_without_api_key_before_funding in config.rs; decode_feed_id_rejects_malformed_hex_instead_of_zero_filling, actor_build_rejects_invalid_market_pubkey in actor.rs). Evidence:
packages/swarm-trader/src/config.rs,packages/swarm-trader/src/actor.rs. - Actor funding accounts match the runtime ATA derivation, and the default funding passes the quote-backed risk gate (actor_funding_accounts_match_actor_runtime_ata_derivation in coordinator.rs; actor_default_funding_passes_quote_backed_risk_gate in actor.rs). Evidence:
packages/swarm-trader/src/coordinator.rs,packages/swarm-trader/src/actor.rs. - The verifier flags missing sell-YES or post-only coverage and actor failures over threshold, reads config through the SDK codec, and rejects confirmed-commitment evidence (verifier_flags_market_maker_runs_without_actor_sell_yes_coverage, verifier_flags_actor_failures_over_threshold, verifier_config_reads_use_sdk_codec_not_hardcoded_offsets in verifier.rs; swarm_evidence_sources_reject_confirmed_commitment_patterns in config.rs). Evidence:
packages/swarm-trader/src/verifier.rs,packages/swarm-trader/src/config.rs.
- The role mix must sum to n_actors, and role expansion preserves count and order (role_mix_sums_match, role_mix_sums_mismatch_detected in config.rs; expand_roles_preserves_count_and_order in coordinator.rs). Evidence:
funding.bridge-deposit Cross-chain bridge deposit through Relay#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-J. Owning phase: 4. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client, chain; record left out: The bridge writes no indexer or API record; the deposit lands as an SPL transfer..
Behind the bridge feature flag, both apps let a user deposit USDC or ETH from Base, Arbitrum or Ethereum and receive USDT at the connected Solana address through Relay: quote (fees, minimum received, time), user-signed source-chain transactions or a one-time Relay deposit address, and status polling. It touches no Seesaw trading transaction.
- Source:
apps/web/app/components/vendors/bridge/BridgeDepositFlow.tsx,apps/web/lib/vendors/relay/quote.ts,apps/web/lib/vendors/relay/status.ts,apps/mobile/src/vendors/bridge/BridgeDepositSheet.tsx,apps/mobile/src/vendors/relay/quote.ts - CLI commands:
bridge quote,bridge status - Web routes:
/[locale]/deposit - Boundaries: callers trader; signers the user EVM wallet on the source chain; services Relay, source-chain RPC, Solana RPC.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | Relay delivers USDT by an SPL transfer; no Seesaw instruction. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | yes | packages/core/src/bridgeDeposit/index.ts, packages/core/src/bridgeDeposit/quote.ts, packages/core/src/bridgeDeposit/client.ts, packages/core/src/bridgeDeposit/__tests__/quote.test.ts | The bridgeDeposit namespace of @seesaw/core carries the Relay quote request and strict quote checks, status mapping and a portable fetch client (canonical copy of the apps' vendor modules, which still carry their own copies). Tests are written, not run. |
| Rust SDK | yes | packages/sdk-rust/src/bridge_deposit.rs | bridge_deposit ports the TypeScript Relay rules under the http feature: quote request, strict quote checks against the request, status mapping and polling. |
| Python SDK | yes | packages/sdk-python/seesaw/bridge_deposit.py | bridge_deposit ports the TypeScript Relay rules: quote request, strict quote checks against the request, status mapping and polling. |
| CLI | yes | packages/cli/src/commands/bridge.ts, packages/cli/src/__tests__/commands/bridge.test.ts | bridge quote (deposit-address mode by default, --wallet-mode for source-chain transactions to sign elsewhere) and bridge status. The CLI signs no EVM transaction. Tests are written, not run. |
| Indexer | not-applicable | none | Nothing to ingest. |
| API | not-applicable | none | No Seesaw API route. |
| Web | yes | apps/web/app/components/vendors/bridge/BridgeDepositFlow.tsx, apps/web/app/[locale]/deposit/page.tsx | |
| Android | yes | apps/mobile/src/vendors/bridge/BridgeDepositSheet.tsx, apps/mobile/src/vendors/relay/quote.ts | |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | yes | packages/sdk-python/examples/bridge_and_relay.py, packages/sdk-rust/examples/bridge_and_relay.rs, packages/core/examples/52-bridge-deposit.ts | 52-bridge-deposit.ts and bridge_and_relay.py and .rs plan a checked Relay deposit against a fixture of Relay. |
- Journeys, normal mode: none. No journey index entry drives the bridge; a genuine bridge needs a live Relay and source chain.
- Journeys, independent mode: none. No journey index entry drives the bridge; a genuine bridge needs a live Relay and source chain.
- Formal obligations:
- The bridge is offered only when the flag is on, on mainnet, for a market that settles in the USDT mint, and is hidden while the funded mint is unknown (vendorConfig.test.ts: bridge needs the flag, mainnet and the USDT settlement mint, hides the bridge while the mint is unknown or the bridge is off; vendorGating.test.ts: bridge requires the flag, mainnet and USDT; bridgeEntryMint.test.tsx: shows nothing while the funded mint is unknown, shows nothing with the bridge flag off, even for USDT). Evidence:
apps/web/lib/vendors/config.ts,apps/web/lib/vendors/__tests__/vendorConfig.test.ts,apps/mobile/src/vendors/__tests__/vendorGating.test.ts,apps/mobile/src/vendors/__tests__/bridgeEntryMint.test.tsx. - Relay quotes are refused unless the user signs only bounded source-chain transactions from their own account to the connected Solana recipient for USDT: unlimited or larger approvals, a different recipient, transactions from another account, another output token and signature steps are all rejected (web and mobile relayQuote.test.ts: refuses an unlimited / larger approval, refuses a different recipient, refuses transactions from another account, refuses another output token, refuses signature steps). Evidence:
apps/web/lib/vendors/relay/quote.ts,apps/web/lib/vendors/__tests__/relayQuote.test.ts,apps/mobile/src/vendors/relay/quote.ts,apps/mobile/src/vendors/__tests__/relayQuote.test.ts. - Amounts parse to base units at the token's decimals, rejecting zero, junk and excess decimals; quotes older than 30s are stale; status polling stops at a final status, treats non-refundable failure as final and gives up at the timeout (relayQuote.test.ts: rejects zero, junk and too many decimals, flags quotes older than 30s as stale; relayStatus.test.ts: treats a failure that cannot be refunded as final, retries transient errors and gives up at the timeout). Evidence:
apps/web/lib/vendors/relay/status.ts,apps/web/lib/vendors/__tests__/relayStatus.test.ts,apps/mobile/src/vendors/__tests__/relayStatus.test.ts,apps/web/lib/vendors/__tests__/relayQuote.test.ts. - BridgeDepositFlow and BridgeDepositSheet submit a source-chain transaction only after an explicit user confirmation of the current non-stale quote; uncovered; phase 15. Evidence:
apps/web/app/components/vendors/bridge/BridgeDepositFlow.tsx.
- The bridge is offered only when the flag is on, on mainnet, for a market that settles in the USDT mint, and is hidden while the funded mint is unknown (vendorConfig.test.ts: bridge needs the flag, mainnet and the USDT settlement mint, hides the bridge while the mint is unknown or the bridge is off; vendorGating.test.ts: bridge requires the flag, mainnet and USDT; bridgeEntryMint.test.tsx: shows nothing while the funded mint is unknown, shows nothing with the bridge flag off, even for USDT). Evidence:
- Known limits:
- Relay funding is limited to mainnet USDT by the ruling of 2026-11-05 (reconciliation plan section 4, row F13 Relay bridge); both apps hide the bridge for any other settlement mint (bridgeAvailableFor). This is the recorded limit of roadmap phase 4 for M-J funding; other admitted currencies are funded by a direct token transfer.
- The /[locale]/deposit page returns 404 unless the bridge flag is on.
wallet.embedded Embedded wallet sign-in#
- Status: implemented. Last verified at
2a5660b2f4fdafe0236d43a8f9e7b7aaa870ba42. - Roadmap items:
M-J. Owning phase: 11. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 missing (android is partial); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
- Journey boundaries required: client; chain left out: Sign-in lands nothing on chain.; record left out: Sign-in writes no indexer or API record..
Behind NEXT_PUBLIC_FEATURE_EMBEDDED_WALLET with a Privy app id, the web app offers "Email or Google" sign-in next to Connect wallet and registers a Privy embedded wallet with the wallet adapter; the mobile build does not ship the Privy SDK and keeps an adapter seam only.
- Source:
apps/web/app/components/vendors/embeddedWallet/PrivyEmbeddedWalletHost.tsx,apps/web/app/components/vendors/embeddedWallet/EmbeddedWalletSignInButton.tsx,apps/web/lib/vendors/embeddedWallet/registerWallet.ts,apps/mobile/src/vendors/embeddedWallet/EmbeddedWalletAdapter.ts - Boundaries: callers trader; signers the embedded wallet key held by Privy; services Privy.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain service; no instruction of its own. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | An app sign-in surface. |
| Rust SDK | not-applicable | none | An app sign-in surface. |
| Python SDK | not-applicable | none | An app sign-in surface. |
| CLI | not-applicable | none | The CLI signs with a local keypair. |
| Indexer | not-applicable | none | No ingestion. |
| API | not-applicable | none | No Seesaw API route. |
| Web | yes | apps/web/app/components/vendors/embeddedWallet/PrivyEmbeddedWalletHost.tsx, apps/web/lib/vendors/embeddedWallet/registerWallet.ts | |
| Android | partial | apps/mobile/src/vendors/embeddedWallet/EmbeddedWalletAdapter.ts | An adapter seam only: the mobile build does not ship the Privy Expo SDK (EmbeddedWalletAdapter.ts); out of phase 11 by owner decision of 2026-11-17. |
| iOS | no | none | No iOS app: owner decision R8 of 2026-11-17 keeps mobile Android-only (docs/internal/decisions/2026-11-17-ios-scope-r8.md). |
| Examples | not-applicable | none | An app sign-in surface. |
- Journeys, normal mode: none. No journey index entry signs in through Privy.
- Journeys, independent mode: none. No journey index entry signs in through Privy.
- Formal obligations:
- Embedded wallet sign-in is enabled only when the flag is exactly true and a Privy app id is set, and vendor CSP origins are added only for enabled features (vendorConfig.test.ts: embedded wallet needs both the flag and a Privy app id, adds vendor CSP origins only for the enabled features; vendorGating.test.ts: embedded wallet requires the flag and an app id, is off by default). Evidence:
apps/web/lib/vendors/config.ts,apps/web/lib/vendors/__tests__/vendorConfig.test.ts,apps/mobile/src/vendors/__tests__/vendorGating.test.ts. - The Privy wallet registers and unregisters through the wallet-standard event handshake under the connector id @solana/connector derives, and the mobile adapter seam refuses to connect without a backend (vendorConfig.test.ts: registers through the wallet-standard event handshake and unregisters, matches the connector id @solana/connector derives for Privy; vendorGating.test.ts: the adapter refuses to connect without a backend). Evidence:
apps/web/lib/vendors/embeddedWallet/registerWallet.ts,apps/mobile/src/vendors/embeddedWallet/EmbeddedWalletAdapter.ts,apps/web/lib/vendors/__tests__/vendorConfig.test.ts. - The embedded wallet signs or sends a transaction only on an explicit user-initiated wallet-adapter request and never automatically after sign-in; uncovered; phase 15. Evidence:
apps/web/app/components/vendors/embeddedWallet/PrivyEmbeddedWalletHost.tsx.
- Embedded wallet sign-in is enabled only when the flag is exactly true and a Privy app id is set, and vendor CSP origins are added only for enabled features (vendorConfig.test.ts: embedded wallet needs both the flag and a Privy app id, adds vendor CSP origins only for the enabled features; vendorGating.test.ts: embedded wallet requires the flag and an app id, is off by default). Evidence:
- Known limits:
- The mobile embedded wallet is an integration seam, not a shipped flow (apps/mobile/src/vendors/embeddedWallet/EmbeddedWalletAdapter.ts).
- Out of phase 11 by owner decision of 2026-11-17 (docs/internal/trader-tooling/PROGRESS.md, "Owner decision on the mobile embedded wallet").
indexer.ingestion Indexer ingestion and integrity jobs#
- Status: implemented. Last verified at
89f334a6537a27724fcd8da0f796474cacdd1dce. - Roadmap items:
M-E. Owning phase: 9. - Definition of done (roadmap section 2.1): not met. 1 not evaluated (spec/*.md coverage is not recorded in the registry); 2 not evaluated (unit, SBF and negative tests and compute-unit gates are not checked); 3 met; 4 not evaluated (IDL derivation and cross-language vectors are not checked); 5 not evaluated (runs against a local validator are not checked); 6 met; 7 not evaluated (migrations are not checked); 8 not evaluated (translated copy is not checked; iOS waits for owner decision R8); 9 missing (no normal-mode journey; no independent-mode journey); 10 met; 11 met; 12 not evaluated (the dead-code baseline is not tied to rows).
The subscriber journals every decoded recorder event in chain_events (apps/indexer/src/ingestion/persist.ts:26; apps/indexer/src/indexer/subscriberImpl.ts:6218). Four scheduled jobs then work on it: economicEventProjection rebuilds market_economic_event_projection and the market liability columns from the economic events in chain_events every five minutes (apps/indexer/src/jobs/economicEventProjection.ts:254); reconcileRecorderEvents compares recorder events with the expected order, position and referral state and records issues and quarantines (apps/indexer/src/jobs/reconcileRecorderEvents.ts:2780); invariantWatchdog records invariant runs (apps/indexer/src/jobs/invariantWatchdog.ts:561); vaultSolvencyWatchdog reads the market liabilities and the vault balances over RPC and reports ok or alert without writing (apps/indexer/src/jobs/vaultSolvencyWatchdog.ts:308).
- Source:
apps/indexer/src/indexer/subscriberImpl.ts,apps/indexer/src/ingestion/persist.ts,apps/indexer/src/jobs/scheduler.ts,apps/indexer/src/jobs/economicEventProjection.ts,apps/indexer/src/jobs/reconcileRecorderEvents.ts,apps/indexer/src/jobs/invariantWatchdog.ts,apps/indexer/src/jobs/vaultSolvencyWatchdog.ts - Indexer jobs:
economicEventProjection,invariantWatchdog,reconcileRecorderEvents,vaultSolvencyWatchdog - Boundaries: callers indexer operator; signers none; services Solana RPC, PostgreSQL.
| Surface | Coverage | Evidence | Note |
|---|---|---|---|
| Program | not-applicable | none | An off-chain service; no instruction of its own. |
| IDL | not-applicable | none | No instruction to model. |
| TypeScript SDK | not-applicable | none | Server side. |
| Rust SDK | not-applicable | none | Server side. |
| Python SDK | not-applicable | none | Server side. |
| CLI | not-applicable | none | Server side. |
| Indexer | yes | apps/indexer/src/ingestion/persist.ts, apps/indexer/src/indexer/subscriberImpl.ts, apps/indexer/src/jobs/economicEventProjection.ts, apps/indexer/src/jobs/reconcileRecorderEvents.ts, apps/indexer/src/jobs/invariantWatchdog.ts, apps/indexer/src/jobs/vaultSolvencyWatchdog.ts | |
| API | not-applicable | none | The jobs serve no route of their own. |
| Web | not-applicable | none | Server side. |
| Android | not-applicable | none | Server side. |
| iOS | no | none | Owner decision R8 keeps the mobile app Android-only. iOS users use the web app. |
| Examples | not-applicable | none | Server side. |
- Journeys, normal mode: none. suite-web-indexer-outage asserts recovery after an outage for DepositFunds only; no entry exercises the jobs.
- Journeys, independent mode: none. suite-web-indexer-outage asserts recovery after an outage for DepositFunds only; no entry exercises the jobs.
- Formal obligations:
- Chain event persistence is idempotent and ordered: events are deduplicated by canonical key, persisted in chain order, re-persisting a batch is a no-op, and projection markers insert once (deduplicates events sharing a canonical key and reports the deduped count, persists events in canonical chain order regardless of input order, re-persisting the same batch is idempotent (same count, ON CONFLICT SQL), returns false when the marker already exists in persist.test.ts). Evidence:
apps/indexer/src/ingestion/__tests__/persist.test.ts,apps/indexer/src/ingestion/persist.ts. - The economic projection rebuild is transactional and invariant to reordering and duplicate replay; it rejects conflicting duplicates, underflow and sequence rollback (is invariant to missed-event reordering and duplicate replay, rejects a reorg/conflicting duplicate instead of double-applying it, rejects one-atom underflow from an indexed inverse event, rebuilds transactionally, clears stale markets, and never queries synthetic deltas in economicEventProjection.test.ts; real SQL replay preserves the entire unchanged market in economicEventProjectionSql.test.ts). Evidence:
apps/indexer/src/__tests__/jobs/economicEventProjection.test.ts,apps/indexer/src/__tests__/jobs/economicEventProjectionSql.test.ts,apps/indexer/src/jobs/economicEventProjection.ts. - Recorder reconciliation orders events by chain position, quarantines malformed fields instead of throwing, detects sequence gaps and derived-row corruption, checks fee conservation including referral and maker rebates, and is wired into the distributed scheduler (turns malformed key fields into a quarantine issue instead of throwing, reports a historical market event-sequence gap even when the cursor reaches the maximum, reconciles maker rebates and referral accrual with fee conservation, is wired into the distributed job scheduler in reconcileRecorderEvents.test.ts). Evidence:
apps/indexer/src/__tests__/jobs/reconcileRecorderEvents.test.ts,apps/indexer/src/jobs/reconcileRecorderEvents.ts. - The invariant watchdog never counts an RPC failure as a pass, and it alerts on supply-versus-total and spline integrity mismatches (counts an rpc failure as skipped, never as a verified pass; alerts once per market when the mint supply disagrees with the market total; marks the heartbeat as error when an invariant query fails in invariantWatchdog.test.ts). Evidence:
apps/indexer/src/__tests__/jobs/invariantWatchdog.test.ts,apps/indexer/src/jobs/invariantWatchdog.ts. - The vault solvency watchdog fails closed without a complete projection, uses a same-context on-chain snapshot and authenticated vaults, and flags shortfalls and malformed rows (fails closed when the complete economic projection is unavailable, uses one same-context on-chain market and vault snapshot rather than stale indexed liability, flags an external-market vault whose authority is not its derived vault PDA in vaultSolvencyWatchdog.test.ts; keeps the unresolved worst-side reserve in vaultSolvencyTerminalReserve.test.ts). Evidence:
apps/indexer/src/__tests__/jobs/vaultSolvencyWatchdog.test.ts,apps/indexer/src/__tests__/jobs/vaultSolvencyTerminalReserve.test.ts,apps/indexer/src/jobs/vaultSolvencyWatchdog.ts. - The subscriber journals every decoded recorder event in chain_events; the vault solvency watchdog writes nothing; the scheduler wires all four jobs, not only reconcile; uncovered; phase 15. Evidence:
apps/indexer/src/indexer/subscriberImpl.ts.
- Chain event persistence is idempotent and ordered: events are deduplicated by canonical key, persisted in chain order, re-persisting a batch is a no-op, and projection markers insert once (deduplicates events sharing a canonical key and reports the deduped count, persists events in canonical chain order regardless of input order, re-persisting the same batch is idempotent (same count, ON CONFLICT SQL), returns false when the marker already exists in persist.test.ts). Evidence:
Journey index#
From qa/e2e/journeys/index.json. An entry counts for a capability only when it asserts the
boundaries that the capability requires, is runnable, covers the client and the mode, and lands
a route of the capability; a reference that narrows the boundaries below that set is partial
evidence. A journey of form journey counts only for a client and a mode that
qa/e2e/journeys/matrix.json records as passed on a real stack; a reference to a journey without
such a cell is partial evidence. For a journey of form journey the client boundary has two
strengths: a step whose client returns a declared value, and a step whose client returns only
a signature. A suite reads the UI, and it counts only when qa/e2e/journeys/suite-runs.json
records a passed run of it; a failed suite or one with no record is partial evidence.
| ID | Form | Status | Clients | Modes | Boundaries | Routes | Client boundary |
|---|---|---|---|---|---|---|---|
web-market-create | journey | runnable | web | normal, independent | client, chain, record | CreateMarket | web: 1 of 1 action steps return a client value |
web-wallet-rejected-cancel | journey | runnable | web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, CancelOrder | web: 1 of 4 action steps return a client value |
web-price-time-cancel-remainder | journey | runnable | web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, CancelOrder | web: 1 of 7 action steps return a client value |
web-bulk-cancel-recovery | journey | runnable | android, web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, DepositFunds, PlaceLimitWithFreeFunds, CancelOwnerOrders, WithdrawFunds | android: 4 of 9 action steps return a client value; web: 4 of 9 action steps return a client value |
web-expired-order-reclaim | journey | runnable | web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, ReclaimExpiredOrder | web: 1 of 4 action steps return a client value |
pyth-deferred-creator-fees-web | journey | runnable | web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, SnapshotEnd, ResolveMarket, ClaimCreatorFees | web: 2 of 7 action steps return a client value |
builder-fee-approval | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, ApproveBuilder, RevokeBuilder | sdk-typescript: 1 of 12 action steps return a client value |
builder-approval-lifecycle | journey | runnable | web, android, cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | ApproveBuilder, RevokeBuilder | web: 0 of 3 action steps return a client value; android: 0 of 3 action steps return a client value; cli: 3 of 3 action steps return a client value; sdk-typescript: 0 of 3 action steps return a client value; sdk-python: 0 of 3 action steps return a client value; sdk-rust: 0 of 3 action steps return a client value |
pyth-deferred-creator-fees | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, SnapshotEnd, ResolveMarket, ClaimCreatorFees | sdk-typescript: 1 of 10 action steps return a client value |
market-emergency-governance | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, SetMarketEmergencyStatus, CancelOrder, DepositFunds, ForceCancelMarketOrders | sdk-typescript: 12 of 20 action steps return a client value; cli: 12 of 20 action steps return a client value |
app-market-emergency | journey | runnable | web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, SetMarketEmergencyStatus, CancelOrder, ForceCancelMarketOrders | web: 1 of 11 action steps return a client value |
pyth-force-close-recovery | journey | runnable | sdk-typescript, cli, sdk-python | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, ForceClose, ExpireMarket, Redeem | sdk-typescript: 5 of 9 action steps return a client value; cli: 5 of 9 action steps return a client value; sdk-python: 5 of 9 action steps return a client value |
currency-referral-claim | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, SetReferrer, RollupCurrencyReferralFees, ClaimCurrencyReferrerEarnings | sdk-typescript: 7 of 9 action steps return a client value |
market-supply-cap | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | CreateMarket, MintShares, UpdateMarketCap, MergeCompleteSet | sdk-typescript: 6 of 14 action steps return a client value; cli: 6 of 14 action steps return a client value |
app-market-cap | journey | runnable | web | normal, independent | client, chain, record | CreateMarket, MintShares, UpdateMarketCap | web: 1 of 4 action steps return a client value |
protocol-pause-guard | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, DepositFunds, SetPauser, Pause, Unpause, CancelOrder, WithdrawFunds | sdk-typescript: 9 of 17 action steps return a client value; cli: 9 of 17 action steps return a client value |
protocol-post-only-mode | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | CreateMarket, MintShares, EnablePostOnlyMode, PlaceOrder, DisablePostOnlyMode | sdk-typescript: 3 of 7 action steps return a client value; cli: 3 of 7 action steps return a client value |
app-protocol-pause | journey | runnable | web, android | normal, independent | client, chain, record | CreateMarket, DepositFunds, SetPauser, Pause, WithdrawFunds, Unpause | web: 4 of 8 action steps return a client value; android: 4 of 8 action steps return a client value |
outcome-aware-routing | journey | runnable | cli, sdk-typescript, sdk-rust, sdk-python, web, android | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, MergeCompleteSet, AssertBalances | cli: 5 of 13 action steps return a client value; sdk-typescript: 5 of 13 action steps return a client value; sdk-rust: 5 of 13 action steps return a client value; sdk-python: 5 of 13 action steps return a client value; web: 5 of 13 action steps return a client value; android: 5 of 13 action steps return a client value |
spline-no-competition-d6 | journey | runnable | cli, sdk-typescript, sdk-rust, sdk-python | normal, independent | client, chain, record | InitSplineSeries, CreateMarket, DepositSeriesVault, DepositFunds, AttachSeat, UpdateSeatQuote, SwapWithFreeFunds | cli: 8 of 12 action steps return a client value; sdk-typescript: 8 of 12 action steps return a client value; sdk-rust: 8 of 12 action steps return a client value; sdk-python: 8 of 12 action steps return a client value |
market-tick-d6 | journey | runnable | cli, sdk-python, sdk-rust, sdk-typescript | normal, independent | client, chain, record | InitSplineSeries, UpdateSeriesSubscription, TopUpSeriesLamports, CreateMarket, DepositSeriesVault, MintShares, DepositFunds, AttachSeatFromSeries, AttachSeat, UpdateSeatQuote, SwapWithFreeFunds | cli: 8 of 12 action steps return a client value; sdk-python: 10 of 12 action steps return a client value; sdk-rust: 10 of 12 action steps return a client value; sdk-typescript: 10 of 12 action steps return a client value |
spline-series-bootstrap-d6 | journey | runnable | cli, sdk-typescript, sdk-rust, sdk-python | normal, independent | client, chain, record | InitSplineSeries, UpdateSeriesSubscription, TopUpSeriesLamports, CreateMarket, DepositSeriesVault, AttachSeatFromSeries, UpdateSeatQuote | cli: 5 of 9 action steps return a client value; sdk-typescript: 7 of 9 action steps return a client value; sdk-rust: 7 of 9 action steps return a client value; sdk-python: 7 of 9 action steps return a client value |
ace-managed-recovery-mpp-spl-d6 | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, InitializeMakerQuoteState, FundMakerQuoteInventory, ReplaceMakerQuotes, SetMakerQuoteAuthority | sdk-typescript: 7 of 9 action steps return a client value |
ace-managed-recovery-harmonic-spl-d6 | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, InitializeMakerQuoteState, FundMakerQuoteInventory, ReplaceMakerQuotes, SetMakerQuoteAuthority | sdk-typescript: 7 of 9 action steps return a client value |
ace-managed-quotes-direct-spl-d6 | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, InitializeMakerQuoteState, FundMakerQuoteInventory, ReplaceMakerQuotes, SwapWithFreeFunds, WithdrawMakerQuoteInventory, CloseMakerQuoteState | sdk-typescript: 10 of 13 action steps return a client value |
ace-managed-quotes-mpp-spl-d6 | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, InitializeMakerQuoteState, FundMakerQuoteInventory, ReplaceMakerQuotes, SwapWithFreeFunds, WithdrawMakerQuoteInventory, CloseMakerQuoteState | sdk-typescript: 10 of 13 action steps return a client value |
ace-managed-quotes-harmonic-spl-d6 | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, InitializeMakerQuoteState, FundMakerQuoteInventory, ReplaceMakerQuotes, SwapWithFreeFunds, WithdrawMakerQuoteInventory, CloseMakerQuoteState | sdk-typescript: 10 of 13 action steps return a client value |
ace-managed-quote-expiry-spl-d6 | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, InitializeMakerQuoteState, FundMakerQuoteInventory, PlaceOrder, ReplaceMakerQuotes, SwapWithFreeFunds, ReclaimExpiredOrders | sdk-typescript: 11 of 18 action steps return a client value |
ace-seat-publication-direct-spl-d6 | journey | runnable | sdk-typescript | normal, independent | client, chain, record | InitSplineSeries, CreateMarket, DepositSeriesVault, DepositFunds, AttachSeat, UpdateSeatQuote, SwapWithFreeFunds | sdk-typescript: 11 of 12 action steps return a client value |
ace-seat-publication-mpp-spl-d6 | journey | runnable | sdk-typescript | normal, independent | client, chain, record | InitSplineSeries, CreateMarket, DepositSeriesVault, DepositFunds, AttachSeat, UpdateSeatQuote, SwapWithFreeFunds | sdk-typescript: 10 of 11 action steps return a client value |
ace-seat-publication-harmonic-spl-d6 | journey | runnable | sdk-typescript | normal, independent | client, chain, record | InitSplineSeries, CreateMarket, DepositSeriesVault, DepositFunds, AttachSeat, UpdateSeatQuote, SwapWithFreeFunds | sdk-typescript: 10 of 11 action steps return a client value |
spline-seat-recovery | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | InitSplineSeries, CreateMarket, DepositSeriesVault, AttachSeat, UpdateSeatQuote, ExpireMarket, SettleSeat, CloseSeat | sdk-typescript: 5 of 6 action steps return a client value; cli: 5 of 6 action steps return a client value |
spline-seat-maintenance | journey | runnable | cli, sdk-typescript | normal, independent | client, chain, record | InitSplineSeries, CreateMarket, DepositSeriesVault, AttachSeat, UpdateSeatQuote, RotateSeatQuoteAuthority, UpdateSeatTables, RecoverSeat, WithdrawSeriesVault | cli: 8 of 8 action steps return a client value; sdk-typescript: 8 of 8 action steps return a client value |
currency-admission | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | RegisterCurrency, SetCurrencyFreezeException | cli: 5 of 5 action steps return a client value; sdk-typescript: 0 of 5 action steps return a client value; sdk-python: 0 of 5 action steps return a client value; sdk-rust: 0 of 5 action steps return a client value |
app-currency-registration | journey | runnable | web, android | normal, independent | client, chain, record | RegisterCurrency | web: 0 of 1 action steps return a client value; android: 0 of 1 action steps return a client value |
currency-market-lifecycle-d6 | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, PlaceOrder, CancelOrder, SnapshotEnd, ResolveMarket, Redeem | cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value |
currency-market-lifecycle-d7 | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, PlaceOrder, CancelOrder, SnapshotEnd, ResolveMarket, Redeem | cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value |
currency-market-lifecycle-d8 | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, PlaceOrder, CancelOrder, SnapshotEnd, ResolveMarket, Redeem | cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value |
currency-market-lifecycle-d9 | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, PlaceOrder, CancelOrder, SnapshotEnd, ResolveMarket, Redeem | cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value |
currency-market-lifecycle-t22-d9 | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, PlaceOrder, CancelOrder, SnapshotEnd, ResolveMarket, Redeem | cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value |
agent-workflow | journey | runnable | agent-mcp | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, CancelOrder, CancelOwnerOrders | agent-mcp: 1 of 9 action steps return a client value |
agent-strategy-limits | journey | runnable | agent-mcp | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, CancelOrder, DepositFunds, ConfigureStrategy, StopStrategy, PlaceLimitWithFreeFunds, CancelOwnerOrders | agent-mcp: 29 of 60 action steps return a client value |
strategy-cancel-group-paging | journey | runnable | cli | normal, independent | client, chain, record | CreateMarket, DepositFunds, ConfigureStrategy, PlaceLimitWithFreeFunds, CancelOwnerOrders | cli: 6 of 7 action steps return a client value |
strategy-owner-lifecycle | journey | runnable | android, cli, sdk-python, sdk-rust, sdk-typescript, web | normal, independent | client, chain, record | CreateMarket, DepositFunds, ConfigureStrategy, StopStrategy | android: 5 of 5 action steps return a client value; cli: 4 of 5 action steps return a client value; sdk-python: 4 of 5 action steps return a client value; sdk-rust: 4 of 5 action steps return a client value; sdk-typescript: 4 of 5 action steps return a client value; web: 5 of 5 action steps return a client value |
strategy-resume-reset-close | journey | runnable | android, cli, sdk-python, sdk-rust, sdk-typescript, web | normal, independent | client, chain, record | CreateMarket, DepositFunds, ConfigureStrategy, StopStrategy, ResumeStrategy, ResetStrategyCapital, CloseStrategy | android: 7 of 7 action steps return a client value; cli: 6 of 7 action steps return a client value; sdk-python: 6 of 7 action steps return a client value; sdk-rust: 6 of 7 action steps return a client value; sdk-typescript: 6 of 7 action steps return a client value; web: 7 of 7 action steps return a client value |
embed-referral | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, SetReferrer, PlaceOrder | sdk-typescript: 5 of 5 action steps return a client value |
embed-referral-web | journey | runnable | web | normal | client, chain, record | CreateMarket, SetReferrer, PlaceOrder | web: 1 of 5 action steps return a client value |
fee-sharing | journey | runnable | cli, sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, SetReferrer, ApproveBuilder, DepositFunds, RevokeBuilder, SnapshotEnd, ResolveMarket | cli: 4 of 10 action steps return a client value; sdk-typescript: 2 of 10 action steps return a client value |
river-smart-taker | journey | runnable | android, cli, sdk-python, sdk-rust, sdk-typescript, web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value |
river-peg | journey | runnable | android, cli, sdk-python, sdk-rust, sdk-typescript, web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, CancelOrder | android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value |
river-iceberg | journey | runnable | android, cli, sdk-python, sdk-rust, sdk-typescript, web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value |
river-parent-exits | journey | runnable | android, cli, sdk-python, sdk-rust, sdk-typescript, web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | android: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value; sdk-python: 1 of 4 action steps return a client value; sdk-rust: 1 of 4 action steps return a client value; sdk-typescript: 2 of 4 action steps return a client value; web: 1 of 4 action steps return a client value |
river-conditional | journey | runnable | android, cli, sdk-python, sdk-rust, sdk-typescript, web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | android: 1 of 8 action steps return a client value; cli: 1 of 8 action steps return a client value; sdk-python: 1 of 8 action steps return a client value; sdk-rust: 1 of 8 action steps return a client value; sdk-typescript: 3 of 8 action steps return a client value; web: 1 of 8 action steps return a client value |
take-profit | journey | runnable | sdk-typescript, sdk-rust, sdk-python, cli | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, CancelOrder | sdk-typescript: 4 of 8 action steps return a client value; sdk-rust: 4 of 8 action steps return a client value; sdk-python: 4 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value |
stop-loss-keeper | journey | runnable | sdk-typescript, sdk-rust, sdk-python, cli | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | sdk-typescript: 2 of 4 action steps return a client value; sdk-rust: 2 of 4 action steps return a client value; sdk-python: 2 of 4 action steps return a client value; cli: 2 of 4 action steps return a client value |
rust-bot-execution | journey | runnable | sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, DepositFunds, PlaceLimitWithFreeFunds, CancelOwnerOrders | sdk-rust: 7 of 9 action steps return a client value |
rust-bot-currency-t22-d9 | journey | runnable | sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, DepositFunds, PlaceLimitWithFreeFunds, CancelOwnerOrders | sdk-rust: 4 of 8 action steps return a client value |
replay-recorded-fill | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | sdk-typescript: 2 of 4 action steps return a client value |
ccxt-indexed-trade | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | sdk-typescript: 2 of 4 action steps return a client value |
hummingbot-order-intent | journey | runnable | sdk-python | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | sdk-python: 2 of 4 action steps return a client value |
market-discovery | journey | runnable | cli, sdk-typescript, sdk-rust, sdk-python, agent-mcp | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | cli: 7 of 42 action steps return a client value; sdk-typescript: 7 of 42 action steps return a client value; sdk-rust: 7 of 42 action steps return a client value; sdk-python: 7 of 42 action steps return a client value; agent-mcp: 7 of 42 action steps return a client value |
app-market-discovery-digest | journey | runnable | web, android | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | web: 1 of 5 action steps return a client value; android: 1 of 5 action steps return a client value |
engagement-leaderboard | journey | runnable | cli, sdk-typescript | normal, independent | client, chain, record | CreateMarket, DepositFunds, ExpireMarket, Redeem | cli: 5 of 21 action steps return a client value; sdk-typescript: 5 of 21 action steps return a client value |
app-engagement-leaderboard | journey | runnable | web, android | normal, independent | client, record | none | web: 0 of 1 action steps return a client value; android: 0 of 1 action steps return a client value |
engagement-achievement-catalog | journey | runnable | web, cli, sdk-typescript | normal, independent | client, record | none | web: 0 of 1 action steps return a client value; cli: 0 of 1 action steps return a client value; sdk-typescript: 0 of 1 action steps return a client value |
market-discovery-currency-t22-d9 | journey | runnable | cli, sdk-typescript, sdk-rust, sdk-python, agent-mcp | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | cli: 4 of 40 action steps return a client value; sdk-typescript: 4 of 40 action steps return a client value; sdk-rust: 4 of 40 action steps return a client value; sdk-python: 4 of 40 action steps return a client value; agent-mcp: 4 of 40 action steps return a client value |
order-controls | journey | runnable | cli, sdk-python, sdk-rust, sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, PlaceOrder, ReduceOrder, PlaceMultiplePostOnly, BatchPostOnlyWithFreeFunds, PlaceLimitWithFreeFunds, SwapWithFreeFunds, CancelOrder, CancelOwnerOrders, WithdrawFunds | cli: 6 of 21 action steps return a client value; sdk-python: 1 of 21 action steps return a client value; sdk-rust: 1 of 21 action steps return a client value; sdk-typescript: 1 of 21 action steps return a client value |
order-control-rejections | journey | runnable | cli, sdk-python, sdk-rust, sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | cli: 1 of 22 action steps return a client value; sdk-python: 1 of 22 action steps return a client value; sdk-rust: 1 of 22 action steps return a client value; sdk-typescript: 1 of 22 action steps return a client value |
app-order-controls | journey | runnable | android, web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, ReduceOrder, CancelOrder, DepositFunds, WithdrawFunds, PlaceMultiplePostOnly, SwapWithFreeFunds, BatchPostOnlyWithFreeFunds | android: 3 of 21 action steps return a client value; web: 3 of 21 action steps return a client value |
cancel-by-client-id | journey | runnable | android, cli, sdk-python, sdk-rust, sdk-typescript, web | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, PlaceLimitWithFreeFunds, CancelOrderByClientId | android: 2 of 6 action steps return a client value; cli: 1 of 6 action steps return a client value; sdk-python: 1 of 6 action steps return a client value; sdk-rust: 1 of 6 action steps return a client value; sdk-typescript: 1 of 6 action steps return a client value; web: 3 of 6 action steps return a client value |
cancel-by-order-id-set | journey | runnable | cli, sdk-python, sdk-rust, sdk-typescript | normal, independent | client, chain, record | CreateMarket, PlaceOrder, CancelMultipleOrdersById, DepositFunds, PlaceLimitWithFreeFunds, CancelMultipleOrdersByIdWithFreeFunds, CancelOrderByClientId | cli: 3 of 11 action steps return a client value; sdk-python: 3 of 11 action steps return a client value; sdk-rust: 3 of 11 action steps return a client value; sdk-typescript: 3 of 11 action steps return a client value |
resumable-cancel | journey | runnable | cli, sdk-python, sdk-rust, sdk-typescript, web, android | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceMultiplePostOnly, CancelOwnerOrders, PlaceOrder, WithdrawFunds | cli: 17 of 23 action steps return a client value; sdk-python: 3 of 23 action steps return a client value; sdk-rust: 3 of 23 action steps return a client value; sdk-typescript: 3 of 23 action steps return a client value; web: 6 of 23 action steps return a client value; android: 6 of 23 action steps return a client value |
expired-maker-inline-recovery | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, PlaceOrder, SwapWithFreeFunds, WithdrawShares, MergeCompleteSet | cli: 1 of 9 action steps return a client value; sdk-typescript: 1 of 9 action steps return a client value; sdk-python: 1 of 9 action steps return a client value; sdk-rust: 1 of 9 action steps return a client value |
expired-order-reclaim | journey | runnable | cli | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, ReclaimExpiredOrder | cli: 2 of 4 action steps return a client value |
delegated-strategy-settlement | journey | runnable | android, cli, sdk-python, sdk-rust, sdk-typescript, web | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, PlaceOrder, SwapWithFreeFunds, ConfigureStrategy, MergeCompleteSet, WithdrawFunds | android: 3 of 11 action steps return a client value; cli: 4 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value; sdk-rust: 4 of 11 action steps return a client value; sdk-typescript: 4 of 11 action steps return a client value; web: 3 of 11 action steps return a client value |
delegated-strategy-boundaries | journey | runnable | sdk-python, sdk-rust | normal, independent | client, chain, record | CreateMarket, DepositFunds, ConfigureStrategy, WithdrawFunds, CloseStrategy | sdk-python: 9 of 10 action steps return a client value; sdk-rust: 9 of 10 action steps return a client value |
delegated-strategy-cancel | journey | runnable | android, cli, sdk-python, sdk-rust, sdk-typescript, web | normal, independent | client, chain, record | CreateMarket, DepositFunds, ConfigureStrategy, PlaceLimitWithFreeFunds, CancelOwnerOrders, ReduceOrderWithFreeFunds, CancelMultipleOrdersByIdWithFreeFunds | android: 3 of 13 action steps return a client value; cli: 12 of 13 action steps return a client value; sdk-python: 12 of 13 action steps return a client value; sdk-rust: 12 of 13 action steps return a client value; sdk-typescript: 12 of 13 action steps return a client value; web: 3 of 13 action steps return a client value |
stopped-strategy-order-reclaim | journey | runnable | cli, sdk-python, sdk-rust, sdk-typescript | normal, independent | client, chain, record | CreateMarket, DepositFunds, ConfigureStrategy, PlaceLimitWithFreeFunds, StopStrategy, ReclaimExpiredOrder | cli: 5 of 6 action steps return a client value; sdk-python: 5 of 6 action steps return a client value; sdk-rust: 5 of 6 action steps return a client value; sdk-typescript: 5 of 6 action steps return a client value |
native-preallocation-recovery | journey | runnable | cli, sdk-typescript | normal, independent | client, chain, record | ClosePreallocatedChild | cli: 3 of 3 action steps return a client value; sdk-typescript: 0 of 3 action steps return a client value |
idle-seat-evacuation | journey | runnable | cli | normal, independent | client, chain, record | CreateMarket, DepositFunds, EvacuateIdleSeat | cli: 3 of 4 action steps return a client value |
outcome-tokens | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust, web, android | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, DepositFunds, SwapWithFreeFunds, WithdrawShares, MergeCompleteSet, SnapshotEnd, ResolveMarket, Redeem | cli: 1 of 15 action steps return a client value; sdk-typescript: 1 of 15 action steps return a client value; sdk-python: 1 of 15 action steps return a client value; sdk-rust: 1 of 15 action steps return a client value; web: 2 of 15 action steps return a client value; android: 2 of 15 action steps return a client value |
pyth-closer-reward-sponsorship | journey | runnable | cli, sdk-typescript, web | normal, independent | client, chain, record | CreateMarket, SnapshotEnd, TopUpCloserRewards | cli: 2 of 3 action steps return a client value; sdk-typescript: 1 of 3 action steps return a client value; web: 1 of 3 action steps return a client value |
pyth-market-app-expiry | journey | runnable | web, android | normal | client, chain, record | CreateMarket, ExpireMarket | web: 1 of 2 action steps return a client value; android: 1 of 2 action steps return a client value |
pyth-market-app-resolution | journey | runnable | web, android | normal | client, chain, record | CreateMarket, SnapshotEnd, ResolveMarket | web: 1 of 3 action steps return a client value; android: 1 of 3 action steps return a client value |
pyth-market-confidence-neutral | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, SnapshotEnd, ExpireMarket, Redeem | cli: 1 of 6 action steps return a client value; sdk-typescript: 1 of 6 action steps return a client value; sdk-python: 1 of 6 action steps return a client value; sdk-rust: 1 of 6 action steps return a client value |
pyth-market-lifecycle | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, DepositFunds, PlaceOrder, CancelOrder, SnapshotEnd, ResolveMarket, Redeem | cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value |
pyth-market-funded-timeout | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, DepositFunds, SwapWithFreeFunds, CancelOrder, ExpireMarket, Redeem | cli: 1 of 10 action steps return a client value; sdk-typescript: 1 of 10 action steps return a client value; sdk-python: 1 of 10 action steps return a client value; sdk-rust: 1 of 10 action steps return a client value |
pyth-market-timeout | journey | runnable | cli, sdk-typescript, sdk-python, sdk-rust | normal, independent | client, chain, record | CreateMarket, MintShares, ExpireMarket, Redeem | cli: 1 of 5 action steps return a client value; sdk-typescript: 1 of 5 action steps return a client value; sdk-python: 1 of 5 action steps return a client value; sdk-rust: 1 of 5 action steps return a client value |
third-party-position-cleanup | journey | runnable | cli, sdk-typescript, sdk-python | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, CancelOrder, MergeCompleteSet, DepositFunds, SnapshotEnd, ResolveMarket, MarkPositionSettled, ClosePosition, CloseMarket | cli: 6 of 18 action steps return a client value; sdk-typescript: 6 of 18 action steps return a client value; sdk-python: 4 of 18 action steps return a client value |
pyth-expiry-recovery-closure | journey | runnable | cli, sdk-typescript, sdk-python | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, DepositFunds, ForceClose, ExpireMarket, Redeem, MarkPositionSettled, ClosePosition, CloseMarket | cli: 5 of 11 action steps return a client value; sdk-typescript: 5 of 11 action steps return a client value; sdk-python: 4 of 11 action steps return a client value |
app-owner-position-recovery | journey | runnable | web, android, cli, sdk-typescript, sdk-python | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, DepositFunds, ForceClose, ExpireMarket, MarkPositionSettled, ClosePosition | web: 2 of 8 action steps return a client value; android: 2 of 8 action steps return a client value; cli: 4 of 8 action steps return a client value; sdk-typescript: 4 of 8 action steps return a client value; sdk-python: 3 of 8 action steps return a client value |
suite-web-ace-publisher-outcomes | suite | runnable | web | normal | client, chain, record | none | UI read |
suite-web-alerts | suite | runnable | web | normal | client, record | none | UI read |
suite-web-auth-expiry | suite | runnable | web | normal | client | none | UI read |
suite-web-auth-rejection | suite | runnable | web | normal | client | none | UI read |
suite-web-claim | suite | runnable | web | normal | client, chain, record | Redeem | UI read |
suite-web-discovery | suite | runnable | web | normal | client | none | UI read |
suite-web-fill | suite | runnable | web | normal | client, chain, record | PlaceOrder | UI read |
suite-web-fill-cancel | suite | runnable | web | normal | client, chain, record | PlaceOrder, CancelMultipleOrdersById | UI read |
suite-web-flows | suite | runnable | web | normal | client | none | UI read |
suite-web-funding | suite | runnable | web | normal | client, chain, record | DepositFunds | UI read |
suite-web-indexer-outage | suite | runnable | web | normal | client, chain, record | DepositFunds | UI read |
suite-web-journey | suite | blocked | web | normal | client, chain, record | none | UI read |
suite-web-navigation-errors | suite | runnable | web | normal | client | none | UI read |
suite-web-notification-preferences | suite | runnable | web | normal | client, record | none | UI read |
suite-web-onboarding-tour | suite | runnable | web | normal | client | none | UI read |
suite-web-orders | suite | runnable | web | normal | client, chain, record | PlaceOrder, CancelMultipleOrdersById, PlaceLimitWithFreeFunds, CancelMultipleOrdersByIdWithFreeFunds, DepositFunds | UI read |
suite-web-outages | suite | runnable | web | normal | client | none | UI read |
suite-web-pagination | suite | runnable | web | normal | client | none | UI read |
suite-web-portfolio-read | suite | runnable | web | normal | client, record | none | UI read |
suite-web-preferences-discovery | suite | runnable | web | normal | client | none | UI read |
suite-web-quality | suite | runnable | web | normal | client | none | UI read |
suite-web-smoke | suite | runnable | web | normal | client | none | UI read |
suite-web-watchlist | suite | runnable | web | normal | client | none | UI read |
suite-web-withdrawal | suite | runnable | web | normal | client, chain, record | WithdrawFunds | UI read |
suite-android-ace-publisher-outcomes | suite | runnable | android | normal | client, chain, record | none | UI read |
suite-android-deep-links | suite | runnable | android | normal | client | none | UI read |
suite-android-discovery | suite | runnable | android | normal | client | none | UI read |
suite-android-funding | suite | runnable | android | normal | client, chain, record | DepositFunds | UI read |
suite-android-journey | suite | blocked | android | normal | client, chain, record | none | UI read |
suite-android-lifecycle | suite | runnable | android | normal | client | none | UI read |
suite-android-onboarding-tour | suite | runnable | android | normal | client | none | UI read |
suite-android-preferences | suite | runnable | android | normal | client | none | UI read |
suite-android-pyth-personal-key | suite | runnable | android | normal | client | none | UI read |
suite-android-pyth-signed-snapshot | suite | runnable | android | normal | client, chain | CreateMarket, SnapshotEnd, ExpireMarket | UI read |
suite-android-smoke | suite | runnable | android | normal | client | none | UI read |
suite-android-watchlist | suite | runnable | android | normal | client, record | none | UI read |
suite-android-release-restricted | suite | runnable | android | normal | client | none | UI read |
source-trust-root-admin | journey | runnable | cli | normal, independent | client, chain, record | InitializeWitnessRegistry, SetWitnessMeasurement | cli: 3 of 3 action steps return a client value |
source-control-draft-recovery | journey | runnable | cli | normal, independent | client, chain, record | InitializeWitnessRegistry, InitializeSourceControl, SetSourceProfilePolicy, BeginSourceMarket, ReclaimExternalMarketPreallocation | cli: 6 of 6 action steps return a client value |
source-market-lifecycle | journey | blocked | normal, independent | client, chain, record | InitializeWitnessRegistry, InitializeSourceControl, SetSourceProfilePolicy, BeginSourceMarket, OpenSourceMarket, TopUpExternalProgressReserve, UpdateSourceClose, ResolveSourceMarket, FinalizeSourceMarket, CloseSourceAccounts | ||
source-market-halt-timeout | journey | blocked | normal, independent | client, chain, record | InitializeWitnessRegistry, InitializeSourceControl, SetSourceProfilePolicy, BeginSourceMarket, OpenSourceMarket, HaltSourceMarket, ExpireExternalMarket, CloseSourceAccounts | ||
governance-tick-size | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | UpdateTickSize | sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value |
governance-min-resting-notional | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | UpdateMinRestingNotional | sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value |
governance-fee-config | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | UpdateFeeConfig | sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value |
governance-operational-params | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | UpdateOperationalParams | sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value |
governance-authority-rotation | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | UpdateAuthority, ClaimAuthority | sdk-typescript: 4 of 4 action steps return a client value; cli: 4 of 4 action steps return a client value |
currency-referral-provisioning | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | RegisterCurrency, InitializeCurrencyReferralTreasury, InitializeCurrencyReferrerEarnings | sdk-typescript: 2 of 3 action steps return a client value; cli: 3 of 3 action steps return a client value |
currency-protocol-treasury-shard | journey | runnable | sdk-typescript | normal, independent | client, chain, record | RegisterCurrency, InitializeCurrencyProtocolTreasury | sdk-typescript: 1 of 2 action steps return a client value |
currency-protocol-treasury-withdraw-d6 | journey | runnable | sdk-typescript, cli, web | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, WithdrawCurrencyProtocolTreasury | sdk-typescript: 2 of 5 action steps return a client value; cli: 2 of 5 action steps return a client value; web: 1 of 5 action steps return a client value |
governance-treasury-recipients | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | UpdateTreasuryRecipients | sdk-typescript: 2 of 2 action steps return a client value; cli: 2 of 2 action steps return a client value |
fees-maker-rebate | journey | runnable | sdk-typescript, cli | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder | sdk-typescript: 1 of 4 action steps return a client value; cli: 1 of 4 action steps return a client value |
fees-every-leg | journey | runnable | sdk-typescript | normal, independent | client, chain, record | CreateMarket, MintShares, PlaceOrder, SetReferrer | sdk-typescript: 3 of 5 action steps return a client value |
suite-web-routes-catalog | suite | runnable | web | normal | client | none | UI read |
suite-web-api-contract-surface | suite | runnable | web | normal | client | none | UI read |
suite-web-ws-streams | suite | runnable | web | normal | client, record | none | UI read |
suite-web-jobs-pipeline | suite | runnable | web | normal | client, record | none | UI read |
suite-web-cases-catalog | suite | runnable | web | normal | client, record | none | UI read |
suite-web-instructions-surface | suite | runnable | web | normal | client, record | none | UI read |
suite-web-interactions-catalog | suite | runnable | web | normal | client | none | UI read |
suite-android-screens-catalog | suite | runnable | android | normal | client | none | UI read |
suite-android-api-contract-surface | suite | runnable | android | normal | client | none | UI read |
suite-android-ws-streams | suite | runnable | android | normal | client, record | none | UI read |
suite-android-jobs-pipeline | suite | runnable | android | normal | client, record | none | UI read |
suite-android-cases-catalog | suite | runnable | android | normal | client, record | none | UI read |
suite-android-instructions-surface | suite | runnable | android | normal | client, record | none | UI read |
suite-android-interactions-catalog | suite | runnable | android | normal | client | none | UI read |