Skip to content

docs: rewrite sdk and rpc namespace docs to shipped contract - #601

Merged
mfw78 merged 3 commits into
dev/m1from
docs/598-sdk-rpc-design
Jul 25, 2026
Merged

docs: rewrite sdk and rpc namespace docs to shipped contract#601
mfw78 merged 3 commits into
dev/m1from
docs/598-sdk-rpc-design

Conversation

@mfw78

@mfw78 mfw78 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

What

Rewrite docs/07-rpc-namespace-design.md from a pre-code design essay (1243 lines) into a terse description of the shipped chain interface (78 lines), and fix the videre-sdk crate-layout drift in docs/05-sdk-design.md.

07 now states only the shipped contract: the chain.request / chain.request-batch WIT surface with rpc-request / rpc-result records, the closed ChainMethod read-only surface enforced host-side (off-surface methods refused with a denied fault), the separate identity signing interface, the HostTransport / ProviderHost::provider / block_on alloy provider seam, synchronous module handlers, videre:venue as the order-submission path, and the MockHost testing seam.

Deleted the aspirational material that never shipped: the cow-api namespace, the shepherd-sdk crate, #[shepherd::module], the Cow SDK type, MockProvider / MockCow, and the async-handler / block_on-elimination / provider-injection narrative. Also dropped the Problem Statement, Core Insight, What This Replaces, before/after module-author experience, Option A vs Option B, Trade-Offs and Summary sections per the sweep standard.

05 fix: poll_once lives in client.rs, not a non-existent rt.rs; added the missing event.rs and value_flow.rs layout entries.

Why

Part of the #598 docs cruft-sweep. 07 described an architecture the runtime never shipped (macro-driven &RootProvider injection, async dispatch, a cow-api host namespace, a two-crate nexum-sdk / shepherd-sdk split). The current tree enforces a closed ChainMethod read surface in nexum-world, dispatches synchronous handlers via #[nexum_sdk::module], and routes order submission through the videre:venue venue-adapter contract, not a chain namespace.

Testing

Documentation-only. Pure markdown: verified no em dashes, Oxford -ize prose, every retained claim checked against crates/nexum-sdk, crates/nexum-sdk-test, crates/nexum-module-macros, crates/videre-sdk, crates/nexum-runtime and wit/nexum-host on this branch; all cross-doc links resolve.

AI Assistance

Documentation-only sweep; verification as above (grep-checked style and inbound links, code-checked every retained interface claim).

Part of #598.

Rewrite 07 (rpc namespace) from a pre-code design essay into a terse description of the shipped chain interface: the chain.request / request-batch WIT surface, the closed ChainMethod read-only surface enforced host-side, the separate identity signing interface, the HostTransport / ProviderHost / block_on alloy provider seam, synchronous module handlers, videre:venue as the order-submission path, and the MockHost testing seam.

Delete the aspirational cow-api namespace, shepherd-sdk crate, #[shepherd::module] macro, the Cow SDK type, MockProvider and MockCow, and the async-handler / block_on-elimination / provider-injection narrative that never shipped.

Fix 05's videre-sdk crate layout: poll_once lives in client.rs, not a non-existent rt.rs, and add the event.rs and value_flow.rs entries.

Part of #598.
@mfw78
mfw78 force-pushed the docs/598-sdk-rpc-design branch from 62b91ba to 851a0e3 Compare July 25, 2026 03:12
mfw78 added 2 commits July 25, 2026 03:30
Hard-wrapped prose churns diffs: a one-word edit reflows the whole paragraph. Join each paragraph onto a single logical line and let it soft-wrap. Content unchanged (word and heading counts preserved); code fences, tables, lists, blockquotes and headings untouched.
@mfw78
mfw78 merged commit 7898672 into dev/m1 Jul 25, 2026
7 checks passed
@mfw78
mfw78 deleted the docs/598-sdk-rpc-design branch July 25, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant