Skip to content

docs(readme): lead with a first request, move WebAssembly to its own page - #1521

Merged
amrith merged 4 commits into
mainfrom
docs/readme-first-request
Dec 1, 2026
Merged

amrith merged 4 commits into
mainfrom
docs/readme-first-request

Conversation

@demohan

@demohan demohan commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

What

The README now opens with what ExtendDB is and a real get-item answer from a local server. Install leads with the SQLite build, which needs no database server. "Make your first request" goes from init to an item in five steps with no placeholders. The description of the experimental WebAssembly build moves to its own page, docs/webassembly.md, and the README keeps a shorter section under the same heading that links into it.

README
  • The opening names ExtendDB as a server that speaks the DynamoDB API and shows the item a first request returns.
  • Install starts at line 45 (it was at line 68) with the SQLite build. The PostgreSQL route names the init flags and EXTENDDB_PG_PASSWORD.
  • "Make your first request" runs init, serve, an IAM user and access key, an AWS CLI profile, and a table. It says that a new table is CREATING until it is ACTIVE, that the server accepts requests signed for its own region only, that AWS keys set in the shell override the profile, and what stop and destroy leave behind.
  • The operation list matches the engine dispatch. It adds the backup and PartiQL operations, and drops the claim of full wire protocol coverage.
  • New sections cover running under a supervisor, where data lives (including that the default encryption key sits in the catalog) and what ExtendDB is not.
  • The container lifecycle, CLI listing, project tree and Python setup move to the documents that already cover them. The storage backend table keeps its text and its heading.
WebAssembly page
  • docs/webassembly.md holds the former README section, apart from a title and opening paragraph, its subsection headings raised one level, a link made relative to docs/, six em dashes in four list items replaced, bare placeholders such as <arn> escaped so GitHub renders them, the control-plane cases indented so the docs build nests them, and the wording fixes of the review.
  • "Building it" now says where wasm-pack writes the module and its loader, how to get a wasm32 clang on Ubuntu and on macOS, the wasm32 target, the wasm-pack release to install, the module size on Linux and on macOS, and that the build command does not verify the checksums of the tools it downloads.
  • A new section, "Using it from JavaScript", holds the loading steps, the snippet with its real answer, the calling contract of submit (a trap before submit returns its promise throws, and a later trap leaves the promise pending) and what a trap does to the instance. The License section comes last.
  • The README section keeps its heading, so README.md#experimental-webassembly-build still resolves. It says what the build is, what not to use it for and its status, and links to the page's five sections, so the page is the one copy to keep current.
Other files
  • Comments and docs that cite a moved WebAssembly subsection by name now name docs/webassembly.md: .github/workflows/wasm.yml, devtools/run-wasm-step, the SigV4 signing-key and crypto comments, the wasm adapter module docs, and the Architecture Guide. Only the pointer changes in each.
  • docs/webassembly.md is added to docs/build-docs.py and to the documentation table in AGENTS.md.
  • docs/local-mongodb-setup.md writes extenddb.toml, readable by its owner only, before init, runs init --overwrite, adds directConnection=true for the Docker node and uses port 27017 in its connection string, configures the AWS CLI before the connection check, creates an account for the first request and uses port 18443. A MongoDB init in a fresh folder fails reading the config file, and the default account it writes has no 12-digit ID, so the guide works around both at this release.
  • docs/getting-started.md, the developer test guide and .agents/skills/extenddb/references/samples/01-venv-setup.md pointed at README.md#python-environment-setup, an anchor the README never had (its heading was "Python Environment"). They now point at the developer test guide's Python setup. docs/getting-started.md also says that init reads EXTENDDB_PG_PASSWORD when --pg-pass is absent.
  • ADR-0023 cites a README heading instead of a line number. RFC-0000 cites a README heading and a deployment guide heading instead of line numbers, and a README paragraph by its position after the trademark notice.
  • Apart from the new docs/build-docs.py entry, source files change only in comments.

Why

The README put install behind a build that needs a running PostgreSQL, and its quick start ended with five placeholders and no request that returned data. Its operation list left out operations the engine serves. About 415 of its 774 lines described the experimental WebAssembly build.

There is no issue for this change.

Testing done

  • The first-request steps ran as written against release builds on SQLite, PostgreSQL 16, Cassandra 4.1 and, with the guide's steps, MongoDB 7. Each returned the item shown on the page.
  • A clean rust:1.94.0-bookworm container builds the SQLite route (cargo build --release --no-default-features --features sqlite) with no cmake installed.
  • wasm-pack build --target web --release crates/wasm-adapter with wasm-pack 0.15.1 wrote a 5,291,620 byte module. The README snippet, on a page in crates/wasm-adapter/ served over HTTP, printed {"TableNames":[]} in headless Chromium. DescribeTable on a missing table resolved with the error document the page shows, CreateTable answered ACTIVE and CreateBackup got the ValidationException that names the build. These runs were on an earlier revision of this change, which differs from this one in documentation and comments only.
  • On macOS 26.7.3 with Apple clang 21.0.0 from Xcode's command line tools, rustc 1.94.0 and wasm-pack 0.15.1, the same wasm-pack build of this change completed (4,002,318 bytes).
  • cargo fmt --all -- --check, cargo clippy --all-targets -- -D warnings on 1.97.0, devtools/run-wasm-step clippy and cargo test -p extenddb-storage-postgres --test doc_version_literals pass.
  • A crawl of every relative link, anchor and heading-name citation in the tree finds no break from this change. Three links in docs/adr/0000, 0015 and 0018 are broken on main too.
  • Three reviews (content against the source, every command run, links and wording) and a verify pass found no open Blocking or Major item.

Checklist

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace): not run; the change is documentation and comments, and the doc test that reads the README passes
  • Code is formatted (cargo fmt --check)
  • Clippy is clean (cargo clippy --all-targets -- -D warnings)
  • I have added or updated tests for new functionality: n/a
  • I have updated documentation if behavior changed
  • Breaking changes are noted below (if any): none
  • If this changes the wire protocol, Storage trait, auth model, on-disk format, or public CLI surface, an RFC has been accepted or is linked below. Otherwise, an ADR captures the decision (link below).

ADR / RFC: n/a

Overlap with open pull requests

#523 and #530 also change README.md, and #491 and #523 change docs/getting-started.md and docs/local-mongodb-setup.md. #530 removes the README's supported operations list, which this change rewrites. Whichever merges second needs a rebase on these files.


By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.

@amrith amrith left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the documentation and comments this PR adds or changes, and its commit message, at d685ae0, against the source at that head and against the PR merged onto current main (5026c89). I read code only; nothing was built or run. I compared docs/webassembly.md with the README section it replaces (d9c587d:README.md lines 291 to 705).

These hold:

  • The SQLite route of "Make your first request" traces through the code from init to get-item, including the port and region defaults, the server's region check and manage reading EXTENDDB_PASSWORD.
  • Supported operations names the 40 operations the engine serves (is_known_operation, crates/engine/src/lib.rs:127-179) and no other, with the right batch, transaction and vector-index limits. The 14 commands at line 197 are the ones crates/app/src/lib.rs:65-100 defines.
  • The JavaScript snippet, the loader name extenddb_wasm_adapter.js, {"TableNames":[]} and the DescribeTable error document match the adapter and the engine.
  • Each changed code comment points at docs/webassembly.md, and each section it names exists there. The relative links and anchors in the changed lines resolve at the head and on the merge, and the move drops no sentence of the old section.

Before merge (inline): README.md:143, where the list of what destroy leaves on SQLite leaves out the pre-migration-* copies, which hold the whole database, catalog included.

Should change (inline): docs/webassembly.md:466 and README.md:257 (submit throws, rather than leaving a pending promise, when it traps before it returns its promise or cannot copy an argument into memory), README.md:236 (the README section repeats the page's status paragraph and much of its "Building it" and "Using it from JavaScript"), docs/build-docs.py:94 (the docs tool flattens a nested list of the page), docs/webassembly.md:385 (the clang step on macOS), README.md:107, README.md:176, README.md:180 and docs/local-mongodb-setup.md:192. The other inline comments are smaller fixes and wording.

The commit message (with this repository's squash settings it becomes main's commit message):

  • "About 415 of its 660 lines": the README at d9c587d has 774 lines.
  • "four em dashes that became colons and parentheses": six em dashes changed, in four list items (d9c587d:README.md lines 436, 437, 448, 449, 457 and 460; page lines 154 to 178).
  • Three changes are not described: the EXTENDDB_PG_PASSWORD sentence in docs/getting-started.md:123 (correct: crates/app/src/cmd_init.rs:208-213 passes the variable as --pg-pass when the flag is absent), the venv line in .agents/skills/extenddb/references/samples/01-venv-setup.md:17, and the port of the Docker connection string in docs/local-mongodb-setup.md:92 (27018 to 27017).
  • "pointed at a README anchor that no longer existed": the README's heading has been "Python Environment" (#python-environment) since the first commit, so #python-environment-setup never existed.
  • "RFC-0000 and ADR-0023 cite README headings instead of line numbers": RFC-0000:34 cites a README paragraph by its position ("the paragraph of README.md after its trademark notice"), not by a heading.

Comment thread README.md Outdated
```

## Authentication Modes
On SQLite, PostgreSQL and MongoDB, `./target/release/extenddb destroy --yes` deletes the databases. It leaves `extenddb.toml`, the backup store and `~/.extenddb/`, and on SQLite the `.lock` file. On PostgreSQL it takes the same `--pg-user` and `EXTENDDB_PG_PASSWORD` as `init`, and it leaves the application role. Because `extenddb.toml` stays, a new `init` in the same folder needs `--overwrite`. On SQLite, move `backups/` aside before that `init`: the kept store names the old catalog, so the new catalog's server leaves it unconfigured until `extenddb backup sync --adopt-store` takes it over. On a Cassandra node with `PasswordAuthenticator`, `destroy` cannot sign in at this release; drop the `extenddb_` keyspaces and the `extenddb` role with `cqlsh` instead.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before merge. On SQLite this leaves out the copies that migrate --yes makes, one for each run that applies a migration (crates/storage-sqlite/src/migrations/copy.rs:4-5). destroy removes the database file and its -wal and -shm files only (drop_databases, crates/storage-sqlite/src/bootstrapper.rs:329-346), and copy.rs:58 says "Nothing else removes a copy." Each <database>.pre-migration-<from>-to-<to>-<time> copy holds the whole database, catalog included, so by default it also holds the key the access key secrets are encrypted under (line 224). Line 66 has every update run migrate --yes, so a reader who runs destroy to remove the data can keep readable copies of it. Name the copies in this list and say to delete them too.

Should change: "drop the extenddb_ keyspaces" is wider than what destroy drops: the catalog keyspace and the <prefix>_account_<12 digits> keyspaces, leaving other keyspaces that start with <prefix>_, such as those of a second deployment with the prefix extenddb_test (docs/cassandra-setup.md:86-91). On a shared cluster, following this drops that deployment's data. Naming the keyspaces, extenddb_catalog and extenddb_account_<account id> for the default prefix, avoids that.

Nit: six sentences cover four backends and two follow-up steps. A short list, one item per backend and one for the next init, would be easier to follow.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

95a483d turns the paragraph into a list, one item per backend and one for the next init. The SQLite item names the copies that migrate --yes makes, extenddb.sqlite.pre-migration-<from>-to-<to>-<time>, says that each holds the whole database, the catalog included, and by default the key the access key secrets are encrypted under, and says to delete them. The Cassandra item names the catalog keyspace and the account keyspaces, extenddb_catalog and extenddb_account_<account id> for the default prefix.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The copy name matches crates/storage-sqlite/src/migrations/copy.rs. One thing in the Cassandra item (README.md:152) that I missed in the first round: "and the extenddb role". init reuses a role that already exists ("User '{user}' already exists; using supplied password.", crates/storage-cassandra/src/bootstrapper.rs:597), so deployments on one cluster can share it, and destroy never drops it. Dropping it by hand can break the other deployment that the keyspace names now protect. Leaving the role out, or dropping it only when no other deployment uses it, avoids that.

The item also gives no statements. docs/cassandra-setup.md shows the cqlsh sign-in (line 59) and how to list the keyspaces (lines 258-259); a link there, with the DROP KEYSPACE statements, would save the reader from guessing.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README.md:152 now says to leave the extenddb role unless no other deployment on the cluster uses it, because init reuses a role that exists. It links the cqlsh sign-in and the keyspace listing in docs/cassandra-setup.md and gives DROP KEYSPACE extenddb_catalog; and DROP KEYSPACE extenddb_account_<account id>; for the default prefix. Commit 6148f84.

Comment thread docs/webassembly.md Outdated
Comment on lines +466 to +471
The exception is a trap, a WebAssembly runtime error that stops the module's
code where it runs. A panic in the module traps, and so can a request whose
code cannot allocate near the 4 GiB memory limit. The request's promise then
stays pending, and the instance is left in an undefined state, so reload the
page to get a fresh one ([No recovery from a trap](#what-it-does-not-do)). A
panic also writes its message to the browser console.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should change. This says a trap leaves the request's promise pending. The adapter's own documentation of submit, which line 43 sends readers to, says "a trap before submit returns its promise throws out of submit itself, as does a failure to copy an argument into the module's linear memory" (crates/wasm-adapter/src/wasm.rs:78-80). submit copies both arguments (as_string, :94-95) before it creates the promise (:100), so the allocation failure this paragraph names, near the 4 GiB limit, can make the call throw, with no promise to stay pending.

"The exception is a trap" also reads as a thrown exception, right after a document whose __type ends in ResourceNotFoundException. A possible wording:

Suggested change
The exception is a trap, a WebAssembly runtime error that stops the module's
code where it runs. A panic in the module traps, and so can a request whose
code cannot allocate near the 4 GiB memory limit. The request's promise then
stays pending, and the instance is left in an undefined state, so reload the
page to get a fresh one ([No recovery from a trap](#what-it-does-not-do)). A
panic also writes its message to the browser console.
One case does not resolve: a trap, a WebAssembly runtime error that stops the
module's code. A panic in the module traps, and so does a request whose Rust
code cannot allocate near the 4 GiB memory limit. A trap before `submit`
returns its promise throws out of `submit`, as does a failure to copy an
argument into memory; a later trap leaves the request's promise pending.
Either way the instance is left in an undefined state, so reload the page to
get a fresh one ([No recovery from a trap](#what-it-does-not-do)). A panic
also writes its message to the browser console.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied the suggested wording in e55fb83.

Comment thread README.md Outdated
```

## Documentation
`submit` takes the operation name and the JSON request body as strings, and resolves with the JSON response as a string. Its promise does not reject: an error resolves it with an error document that has a `__type` member. A panic, or an allocation that fails near the 4 GiB memory limit, traps instead, and the request's promise then stays pending. [Using it from JavaScript](docs/webassembly.md#using-it-from-javascript) shows an error document and says what to do after a trap.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should change. As on docs/webassembly.md:466: submit throws, with no promise, when it traps before it returns one, and when it cannot copy an argument into memory (crates/wasm-adapter/src/wasm.rs:78-80, :94-95, :100). "an allocation that fails near the 4 GiB memory limit, traps" is also wider than the page: a write that SQLite cannot allocate for answers InternalServerError (docs/webassembly.md:33-35); an allocation in the module's Rust code aborts and traps.

Suggested change
`submit` takes the operation name and the JSON request body as strings, and resolves with the JSON response as a string. Its promise does not reject: an error resolves it with an error document that has a `__type` member. A panic, or an allocation that fails near the 4 GiB memory limit, traps instead, and the request's promise then stays pending. [Using it from JavaScript](docs/webassembly.md#using-it-from-javascript) shows an error document and says what to do after a trap.
`submit` takes the operation name and the JSON request body as strings, and resolves with the JSON response as a string. Its promise does not reject: an error resolves it with an error document that has a `__type` member. A panic, or a failed allocation in the module's Rust code near the 4 GiB memory limit, traps. A trap before `submit` returns its promise throws out of `submit`, as does a failure to copy an argument into memory; a later trap leaves the request's promise pending. [Using it from JavaScript](docs/webassembly.md#using-it-from-javascript) shows an error document and says what to do after a trap.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied the suggested wording in 6788328.

Comment thread README.md Outdated
### Building it

The module is built with [`wasm-pack`](https://wasm-bindgen.github.io/wasm-pack/):
The WebAssembly build runs ExtendDB inside a web page. JavaScript in the page sends it DynamoDB requests, and it answers them from an in-memory SQLite database inside the page, with no ExtendDB server. It suits code that needs a DynamoDB API for the life of a page. Do not use it for data you need to keep or to protect with IAM, or for tests that check the errors a server returns, such as the answer to an unsigned request or a bad table name.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should change. This section repeats the page's status paragraph and much of its "Building it" and "Using it from JavaScript", and the two copies will drift: the status (line 238; page 17-21), the prerequisites (238; page 382-389), the build command (240-242; page 375-377), the output and its size (244; page 379-380 and 391-392), the unchecked downloads (244; page 394-401), where to serve the page (246; page 440-442), the snippet (248-255; page 446-453, identical) and the calling contract (257; page 455-471). The PR's own comment at .github/workflows/wasm.yml:49-54 already has to tell a maintainer to check both copies when WASM_PACK_VERSION changes, and they already differ: line 238 says "its JavaScript interface can change", where the page (lines 18-20) and docs/versioning.md:50 say its surface may change. Keeping the heading, so #experimental-webassembly-build still resolves, with one paragraph on what the build is and its status and the links to the page's sections, would leave one copy to keep current. If the section stays as it is, the comments on lines 244, 257 and 259, and the README parts of the comments on docs/webassembly.md:385 and :438, apply to it; if it shrinks, they apply to the page or fall away.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reply here yet, and the copies have started to drift. Partly my doing: my first-round comments asked for some of these edits in one copy only (the clang and wasm-pack lines on docs/webassembly.md:385, the checksum wording on README.md:244, and the "because" point on docs/webassembly.md:438):

  • f5d6b41 gave the page sudo apt-get update && sudo apt-get install clang and the cargo install --locked --version 0.15.1 wasm-pack command (docs/webassembly.md:385-394); README.md:254 still says sudo apt-get install clang without the update and gives no wasm-pack install command.
  • 90657c3 reworded "checks no checksum of them" in the README; the page keeps "checks no checksum of it" (docs/webassembly.md:406).
  • b56173e split the page's "because" into the import path and the HTTP reason and added where to open the page and where the answer appears (docs/webassembly.md:445-456); README.md:262 got the serve command but keeps the single "because", and it does not say where the answer appears, which my comment on docs/webassembly.md:438 asked for in both.

Do you want to keep both copies? If so, they need the same edits; a short README section that links to the page would end the drift.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README section is now the heading, one paragraph on what the build is, what not to use it for and its status, and links to the page's five sections (e4436f8). #experimental-webassembly-build still resolves, the README now says "its surface may change", as the page and docs/versioning.md do, and the wasm workflow's comment on WASM_PACK_VERSION names the page as the one copy to check. The page also says "does not verify its checksum" now (2a943ac).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed at e4436f8 and 2a943ac, as suggested.

Comment thread docs/build-docs.py
"docs/manuals/13-event-ticketing-demo.md"),
(19, "backup-and-restore", "Backup and Restore", "usage",
"docs/manuals/14-backup-and-restore.md"),
(20, "webassembly", "Experimental: WebAssembly Build", "reference",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should change. This entry renders the page with Python-Markdown (Markdown==3.10.2 in requirements.txt; the calls at lines 282-285 and 305-308 use the tables, fenced_code and toc extensions) for the PDF and for the console's document page, which embeds that HTML (crates/server/src/console/pages/docs_page.rs:101). Python-Markdown nests a list only when it is indented four spaces, and the five cases under "A synchronous control plane" (docs/webassembly.md:60, 80, 91, 98 and 110) are indented two. In the generated page they become five more top-level items of "What it does not do" ("A new table.", "A write.", "No other state."), which then read as more things the build lacks. GitHub nests them, so the problem shows only in the generated docs. Putting the - of those five items at four spaces (two more than now), with their continuation lines moved the same two, renders correctly in both; adding four spaces instead breaks GitHub's rendering.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6588e33 moves the - of the five cases to four spaces and their continuation lines two further. Python-Markdown 3.10.2 with tables, fenced_code and toc now renders them as a list nested under "A synchronous control plane".

Comment thread README.md Outdated
- Stable: for production. The [versioning policy](docs/versioning.md) applies in full. The ExtendDB CI is reliably green for the backend.
- Beta: for production within the known limits in the table. The ExtendDB CI is reliably green for the backend. The versioning policy applies with one exception. To remove a known limit, a minor release can change the behavior that the table lists, and its release notes name the change.
- Experimental: for evaluation. The backend is not for production use. The versioning policy does not apply. A release can change the backend's behavior or configuration with no deprecation period.
**1. Initialize.** `init` creates the catalog, an `admin` user, a TLS certificate in `~/.extenddb/tls/` and `extenddb.toml`. On SQLite the catalog and the tables share one file, `extenddb.sqlite`. `init` prints the admin password once; save it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit. "catalog" appears at lines 39 and 62 and in this step, and the README uses it on a dozen lines (one server for each catalog at 162 and 232; anyone with a copy of the catalog can read the secrets at 224) without defining it. A short definition here, where a reader following the steps meets it, or a link to the Architecture Guide's "Catalog Model" section (docs/manuals/01-architecture-guide.md#catalog-model), would help a first-time reader.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

32d7eff defines the catalog in step 1 and links the Architecture Guide's Catalog Model section.

Comment thread docs/webassembly.md
@@ -0,0 +1,471 @@
# Experimental: WebAssembly build

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit. Every other top-level page in docs/ except NOTICE.md ends with the License section and the trademark notice (for example docs/versioning.md and docs/getting-started.md); this page does not. Adding the same section at its end would match them.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e7d8089 adds the License section and trademark notice at the end of the page.

Comment thread README.md Outdated
`wasm-bindgen-cli` of the `wasm-bindgen` version in `Cargo.lock` from
crates.io (`devtools/run-wasm-step wasm-bindgen-version` prints that version),
and skip `wasm-opt`:
wasm-pack writes the module, about 5.0 MiB, and its JavaScript loader to `crates/wasm-adapter/pkg/`. The command can download `wasm-bindgen` and `wasm-opt` from GitHub releases and checks no checksum of them. [Building it](docs/webassembly.md#building-it) says how to build without those downloads.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit. "checks no checksum of them" reads awkwardly.

Suggested change
wasm-pack writes the module, about 5.0 MiB, and its JavaScript loader to `crates/wasm-adapter/pkg/`. The command can download `wasm-bindgen` and `wasm-opt` from GitHub releases and checks no checksum of them. [Building it](docs/webassembly.md#building-it) says how to build without those downloads.
wasm-pack writes the module, about 5.0 MiB, and its JavaScript loader to `crates/wasm-adapter/pkg/`. The command can download `wasm-bindgen` and `wasm-opt` from GitHub releases and does not verify their checksums. [Building it](docs/webassembly.md#building-it) says how to build without those downloads.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied the suggested wording in 90657c3.

Comment thread README.md Outdated
| [Verifying Container Images](docs/verifying-images.md) | Build provenance and SBOM attestations for the published images |

Build PDFs:
Read these limits on the [WebAssembly build](docs/webassembly.md) page before you try the build:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit. This comes after the steps that try the build.

Suggested change
Read these limits on the [WebAssembly build](docs/webassembly.md) page before you try the build:
Read these limits on the [WebAssembly build](docs/webassembly.md) page before you rely on the build:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied the suggested wording in b8b1573.

Comment thread README.md Outdated
storage trait, auth model, on-disk format, public CLI, or any significant
new feature or subsystem. Substantial changes go through an RFC before
implementation.
[Getting Started](docs/getting-started.md) walks through setup on each backend. The [Admin Guide](docs/manuals/05-admin-guide.md) covers the CLI, configuration and IAM. The [Deployment Guide](docs/manuals/11-deployment-guide.md), [Security Model](docs/manuals/10-security-model.md) and [Backup and Restore](docs/manuals/14-backup-and-restore.md) cover running it in production. Also see the [Architecture Guide](docs/manuals/01-architecture-guide.md), [Differences from DynamoDB](docs/differences-from-dynamodb.md), the [Versioning and Support Policy](docs/versioning.md), [Troubleshooting](docs/troubleshooting.md), [Verifying Container Images](docs/verifying-images.md) and the [WebAssembly build](docs/webassembly.md). `python3 docs/build-docs.py` builds the manuals as PDFs, with the packages in [`requirements.txt`](requirements.txt).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit. "cover running it in production": "it" has no referent in this paragraph; "cover running ExtendDB in production".

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d04a7b9 changes it to "cover running ExtendDB in production".

@amrith amrith left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked again at e7d8089, by reading the code and by rendering docs/webassembly.md with cmark-gfm and with Python-Markdown 3.10.2, the docs tool's renderer. The 22 fixes address the threads they reply to, and the control-plane cases now nest in both renderings. Still open:

  1. The commit message. d685ae0's message is unchanged, and with this repository's squash setting (COMMIT_MESSAGES) main's commit message starts with it, followed by the 22 subjects. Its five points from the first review still apply; the sentence the second of them is about ("Its text is unchanged apart from …") now also leaves out later page edits, such as 6588e33's re-indented control-plane cases. Three more of its sentences no longer match this PR: it says a trap leaves the request pending (README.md:273 now says a trap before submit returns its promise throws); it calls "Using it from JavaScript" the page's last section (the License section now is, docs/webassembly.md:491); and the runs it reports predate the build command of 94e672f, the step 4 split of c23e1bb and the MongoDB guide changes of ebc5655 and 142c751. Rewording d685ae0, or squashing the fixes into it with one corrected message, before merge would give main an accurate message.

The rest is in the threads, each named by the line it was opened on (other line numbers are at e7d8089):

  1. README.md:236 (the README's WebAssembly section and the page): the thread has no reply yet, and the two copies have started to drift.
  2. README.md:143: the Cassandra item says to drop the extenddb role, which another deployment on the cluster can share.
  3. docs/webassembly.md:385: macOS for the clang step, and "The command above" at docs/webassembly.md:399.
  4. README.md:180: "overrides a key for the server" is narrower than the code.
  5. Smaller points on README.md:43 and :207 and docs/webassembly.md:438.

@amrith amrith left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked 6148f84 by reading it against the code and the docs it links. The six changes it makes are right: the Cassandra item (README.md:152) now gives the DROP KEYSPACE statements, links the cqlsh sign-in and the keyspace listing in docs/cassandra-setup.md (both anchors resolve), and leaves the shared role alone; the override sentence (README.md:190) now covers every command that reads the configuration; the healthcheck sentence now says "exits 0 when /health answers 2xx", and the macOS block gives log show … --last 5m before log stream; docs/webassembly.md:399 names the wasm-pack build command; the page's second paragraph says "with no ExtendDB server"; and the JavaScript section now has each sentence next to its code.

Three points from earlier rounds are still open. Apart from a note on 6148f84's own message in point 1, I have nothing to add to them, so they are your and the maintainers' call:

  1. The commit message of d685ae0 is unchanged, and with this repository's squash setting it lands on main as written, with the errors the first two review bodies list. 6148f84's message, a subject with no body, leaves out three of its edits: the healthcheck wording at README.md:217 and the page edits at docs/webassembly.md:12-13 and :399.
  2. The README's WebAssembly section repeats parts of the page (the thread opened on README.md:236, now line 253, has no reply). The copies still differ: README.md:255 has no apt-get update and no wasm-pack install command, README.md:263 keeps the single "because" and does not say where the answer appears, and docs/webassembly.md:406 keeps "checks no checksum of it", which the README reworded.
  3. The clang step gives the Ubuntu route only; the reply on docs/webassembly.md:385 keeps it that way.

@demohan

demohan commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

@amrith, on the commit message (item 1 of both reviews): the branch stays as it is, because its commits are already reviewed and rewriting them would erase that history. Whoever merges should replace the squash message with the text below. It corrects the five points of the first review and the three of the second: the README had 774 lines, six em dashes changed in four list items, it names the EXTENDDB_PG_PASSWORD sentence, the venv line and the 27017 port, #python-environment-setup is an anchor the README never had, RFC-0000 cites a paragraph by its position, a trap before submit returns its promise throws, the License section is last, and the verification paragraph says which runs were at the first commit and which at the final head.

docs(readme): lead with a first request, move WebAssembly to its own page

The README opened with an adapter description, put install at line 68
behind a build that needs a running PostgreSQL, and ended its quick
start with five placeholders and no request that returned data. Its
operation list left out the backup and PartiQL operations the engine
dispatches, and it called the wire protocol coverage full. About 415 of
its 774 lines described the experimental WebAssembly build.

The page now names ExtendDB as a server, shows a get-item answer from a
local server, and leads install with the SQLite build, which needs no
database server. "Make your first request" takes a reader from init to
an item in five steps with no placeholders, and says that a new table is
CREATING until it is ACTIVE, that the server accepts requests signed for
its own region only, and what stop and destroy leave behind, including
the pre-migration copies and the Cassandra keyspaces. The operation list
matches the engine dispatch, with backups, PartiQL and the refused
point-in-time recovery, and says that any other operation answers
UnknownOperationException. New sections cover running under a
supervisor, where data lives (including that the default encryption key
sits in the catalog), and what ExtendDB is not. The containers
lifecycle, CLI listing, project tree and Python setup move to the
documents that already hold them. The storage backend table keeps its
text and heading.

The description of the WebAssembly build moves to docs/webassembly.md:
what it does not do, the requests it refuses, the HTTP server checks it
does not make, how to build it, and how to use it from JavaScript,
followed by the License section. The moved text keeps its wording apart
from a title, an opening paragraph, its subsection headings one level
up, its link to the versioning policy made relative to docs/, six em
dashes in four list items that became colons and parentheses, bare
placeholders such as <arn> escaped so GitHub renders them, the control-
plane cases indented so the docs build nests them, and the download
sentence. "Building it" says where wasm-pack writes the module and its
loader, how to get a wasm32 clang on Ubuntu and on macOS, the wasm32
target, and the wasm-pack release to install, and that the build command
can download wasm-bindgen and wasm-opt without verifying their
checksums. "Using it from JavaScript" holds the loading steps, the
snippet with a real answer, and the calling contract of submit: it takes
and resolves with strings, an error resolves it with an error document
(shown with a real one), a trap before submit returns its promise
throws, and a later trap leaves the request's promise pending.

The README keeps a section under the same heading, so
README.md#experimental-webassembly-build still resolves. It says what
the build is, what not to use it for and its status, and links to the
page's sections. The feature list and the install routes link to the
page too.

Comments and docs that cite a moved WebAssembly subsection by name now
name docs/webassembly.md: the wasm workflow, devtools/run-wasm-step, the
SigV4 signing-key and crypto comments, the adapter's module docs and the
Architecture Guide. Citations of the overview stay on the README. The
page is added to docs/build-docs.py and to the documentation table in
AGENTS.md.

docs/local-mongodb-setup.md now writes extenddb.toml, readable by its
owner only, before init and runs init with --overwrite, adds
directConnection=true for the Docker node and uses port 27017 in its
connection string, configures the AWS CLI before the connection check,
creates an account for the first request, and uses port 18443. A MongoDB
init in a fresh folder fails reading the config file, and the default
account it writes has no 12-digit ID, so these steps keep the guide
working at this release. docs/getting-started.md and the developer test
guide pointed at #python-environment-setup, an anchor the README never
had; they now point at the developer test guide's Python setup, and the
agents' venv reference names that guide. docs/getting-started.md also
says that init reads EXTENDDB_PG_PASSWORD when --pg-pass is absent.
ADR-0023 cites a README heading instead of a line number, and RFC-0000
cites a README heading and a deployment guide heading instead of line
numbers, and a README paragraph by its position after the trademark
notice. Apart from the new docs/build-docs.py entry, source files change
only in comments.

Verified with release builds at the first commit of this change: the
first-request steps ran as written against SQLite, PostgreSQL 16,
Cassandra 4.1 and, with the guide's steps, MongoDB 7, each returning the
item shown on the page. The WebAssembly module built with the README
command and wasm-pack 0.15.1 (5,291,620 bytes), the snippet on a page in
crates/wasm-adapter/ served over HTTP printed {"TableNames":[]} in
headless Chromium, and DescribeTable on a missing table resolved with
the error document the page shows. On macOS 26.7.3 with Apple clang
21.0.0, rustc 1.94.0 and wasm-pack 0.15.1, the release build of the
final head completed (4,002,318 bytes). Later commits change
documentation and comments only.

@demohan

demohan commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

@amrith, on the three open points of your third review: (1) the squash message in the comment above replaces the commit messages on main, including 6148f84's subject; (2) the README section now links to the page instead of repeating it (e4436f8), so the copies can no longer differ; (3) the page gives the macOS route, checked with a release build on macOS 26.7.3 (2a943ac).

@amrith amrith left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked e4436f8 and 2a943ac by reading them; I have no Mac to repeat the macOS build. The README's WebAssembly section now keeps its heading, a paragraph on what the build is and its status, and links to the page and its five main sections, all of which resolve; the workflow comment on WASM_PACK_VERSION names one copy. The page's download sentence reads "does not verify its checksum".

On the replacement squash message in your comment of 17:03 UTC: it fixes most of the eight points, and its line, placeholder, step and em-dash counts hold. Some sentences still do not match the final tree (line numbers are the message's own):

  1. Lines 26-29 present "how to use it from JavaScript" as moved text. "Using it from JavaScript" (docs/webassembly.md:441-491) is new: the README section the page replaces (d9c587d:README.md lines 291-705) has no loading steps, snippet or error document.
  2. Lines 29-35 list what the moved text changed and leave out two edits of 6148f84: "with no server and no network" became "with no ExtendDB server" (docs/webassembly.md:12-13), and "The command above" became "The wasm-pack build command above" (:402).
  3. Lines 76-86: on main, "the first commit of this change", "the final head" and "Later commits" have nothing to point at. The four backend runs used the first commit's text, which later commits changed (the SQLite build command, step 4, the MongoDB guide steps), and "the README command" (lines 79-80) is gone: the same command is now only at docs/webassembly.md:376. The macOS module size, 4,002,318 bytes (3.8 MiB), fits neither "about 6.6 MiB" nor "about 5.0 MiB" (docs/webassembly.md:399-400).
  4. Lines 51-54, two sentences d685ae0's message already had and I missed in the first round: the Architecture Guide cited the README's WebAssembly section, not a moved subsection, and now points at the page, so "Citations of the overview stay on the README" is not true for it.

Whether a replacement message gets used depends on how the PR is merged: the last eight squashes on main, 5026c89 and 222d80a among them, carry the default message built from each commit's message, and five of them came through the merge queue, which takes no message of its own.

Nothing else from me on what this PR changes.

@amrith amrith left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should fix: the commit message main gets. Following up on my previous review: the branch keeps d685ae0's original message, and the merge queue, which five of the last eight squashes on main came through (5026c89 among them), takes no message of its own: it writes the default squash message, here d685ae0's message, with the errors listed in the first two reviews and the passages on the README section and the WASM_PACK_VERSION comment that e4436f8 made untrue, followed by the 25 later commit messages. The replacement text in your comment of 17:03 UTC cannot be applied on that path, and it still has the mismatches in the four points of the previous review. Please squash the branch into one commit whose message matches the final tree (the replacement text with those points corrected would do), so that main gets an accurate message whichever way the PR is merged. A force-push keeps the review: the threads stay on the PR, and the timeline's force-push entry links the old head.

@demohan

demohan commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

Some sentences still do not match the final tree

Replacement squash message below, for use if the PR is merged from the pull request page with the message edited. A merge through the queue or an unedited squash uses the default message built from the commit messages.

  1. "Using it from JavaScript" is described as a new section, apart from the moved text.
  2. The list of edits to the moved text now includes "with no server and no network" made "with no ExtendDB server" and "The command above" made "The wasm-pack build command above".
  3. The verification paragraph no longer points at commits or at the README command. It names the build command and gives the Linux and macOS module sizes. 0084d10 adds the macOS size, about 3.8 MiB, next to the Linux figures in docs/webassembly.md.
  4. The Architecture Guide is listed with the citations that now name docs/webassembly.md. The versioning policy and the AGENTS.md overview still cite the README section.
docs(readme): lead with a first request, move WebAssembly to its own page

The README opened with an adapter description, put install at line 68
behind a build that needs a running PostgreSQL, and ended its quick
start with five placeholders and no request that returned data. Its
operation list left out the backup and PartiQL operations the engine
dispatches, and it called the wire protocol coverage full. About 415 of
its 774 lines described the experimental WebAssembly build.

The page now names ExtendDB as a server, shows a get-item answer from a
local server, and leads install with the SQLite build, which needs no
database server. "Make your first request" takes a reader from init to
an item in five steps with no placeholders, and says that a new table is
CREATING until it is ACTIVE, that the server accepts requests signed for
its own region only, and what stop and destroy leave behind, including
the pre-migration copies and the Cassandra keyspaces. The operation list
matches the engine dispatch, with backups, PartiQL and the refused
point-in-time recovery, and says that any other operation answers
UnknownOperationException. New sections cover running under a
supervisor, where data lives (including that the default encryption key
sits in the catalog), and what ExtendDB is not. The containers
lifecycle, CLI listing, project tree and Python setup move to the
documents that already hold them. The storage backend table keeps its
text and heading.

The description of the WebAssembly build moves to docs/webassembly.md:
what it does not do, the requests it refuses, the HTTP server checks it
does not make, and how to build it. The moved text keeps its wording
apart from a title, an opening paragraph, its subsection headings one
level up, its link to the versioning policy made relative to docs/, six
em dashes in four list items that became colons and parentheses, bare
placeholders such as <arn> escaped so GitHub renders them, the control-
plane cases indented so the docs build nests them, "with no server and
no network" made "with no ExtendDB server", and "The command above" made
"The `wasm-pack build` command above". "Building it" says where
wasm-pack writes the module and its loader, how to get a wasm32 clang on
Ubuntu and on macOS, the wasm32 target, the wasm-pack release to
install, the module size on Linux and on macOS, and that the build
command can download wasm-bindgen and wasm-opt without verifying their
checksums. A new section, "Using it from JavaScript", holds the loading
steps, the snippet with a real answer, and the calling contract of
submit: it takes and resolves with strings, an error resolves it with an
error document (shown with a real one), a trap before submit returns its
promise throws, and a later trap leaves the request's promise pending.
The License section comes last.

The README keeps a section under the same heading, so
README.md#experimental-webassembly-build still resolves. It says what
the build is, what not to use it for and its status, and links to the
page's sections. The feature list and the install routes link to the
page too.

Comments and docs that cite the WebAssembly section now name
docs/webassembly.md: the wasm workflow, devtools/run-wasm-step, the
SigV4 signing-key and crypto comments, the adapter's module docs and the
Architecture Guide. The versioning policy and the AGENTS.md overview
still cite the README section, which keeps what the build is and its
status. The page is added to docs/build-docs.py and to the documentation
table in AGENTS.md.

docs/local-mongodb-setup.md now writes extenddb.toml, readable by its
owner only, before init and runs init with --overwrite, adds
directConnection=true for the Docker node and uses port 27017 in its
connection string, configures the AWS CLI before the connection check,
creates an account for the first request, and uses port 18443. A MongoDB
init in a fresh folder fails reading the config file, and the default
account it writes has no 12-digit ID, so these steps keep the guide
working at this release. docs/getting-started.md and the developer test
guide pointed at #python-environment-setup, an anchor the README never
had; they now point at the developer test guide's Python setup, and the
agents' venv reference names that guide. docs/getting-started.md also
says that init reads EXTENDDB_PG_PASSWORD when --pg-pass is absent.
ADR-0023 cites a README heading instead of a line number, and RFC-0000
cites a README heading and a deployment guide heading instead of line
numbers, and a README paragraph by its position after the trademark
notice. Apart from the new docs/build-docs.py entry, source files change
only in comments.

Verified with release builds: the first-request steps ran as written
against SQLite, PostgreSQL 16, Cassandra 4.1 and, with the guide's
steps, MongoDB 7, each returning the item shown on the page. On Linux,
wasm-pack build --target web --release crates/wasm-adapter with
wasm-pack 0.15.1 wrote a 5,291,620 byte module, the snippet on a page in
crates/wasm-adapter/ served over HTTP printed {"TableNames":[]} in
headless Chromium, and DescribeTable on a missing table resolved with
the error document the page shows. On macOS 26.7.3 with Apple clang
21.0.0, rustc 1.94.0 and wasm-pack 0.15.1, the same build wrote a
4,002,318 byte module.

@demohan
demohan force-pushed the docs/readme-first-request branch from 0084d10 to 831fcfd Compare November 27, 2026 19:25
@demohan

demohan commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

Please squash the branch into one commit whose message matches the final tree

The branch is now one commit, 831fcfd, on the same base (d9c587d) and with the same tree as 0084d10. Its message is the replacement text with the four points of the previous review corrected, plus these changes against the tree:

  • The WebAssembly section was 416 of the README's 774 lines.
  • The list of README sections now names those it drops and says that "What ExtendDB is not" replaces the Scope list. It also covers the lowercase "Supported operations" cells, the versioning link after the storage table, the Documentation paragraph and the RFC triggers in Contributing.
  • The edits to the moved WebAssembly text add "does not verify its checksum" and the "On Linux" size figure. "Building it" is described by what it adds.
  • RFC-0000: the message names the two README citations and the one deployment guide citation that changed, and says its other line citations stay.

The commits before the squash are at 0084d10, linked from the force-push entry on the timeline.

@amrith amrith left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for squashing. I checked 831fcfd's message against the tree; these four sentences do not match it (line numbers count the subject as line 1):

  1. Lines 63-65 name the versioning policy and the AGENTS.md overview as what still cites the README section. The AGENTS.md citation (line 295) is in its "WebAssembly Build" section, not an overview, and CONTRIBUTING.md:74-75 cites the README section too.
  2. Lines 86-88 do not say when the first-request steps ran. Since those runs, the SQLite build command gained -p extenddb (README.md:52) and the MongoDB guide's config-file command gained umask 077 (docs/local-mongodb-setup.md:116); the five steps' own commands are unchanged. Saying that they ran before those two changes, or re-running them, would make it accurate.
  3. Lines 23-26 say the README drops the TLS and Monitoring sections and links the documents that cover them, but their content is still in the README: the TLS settings under "Configuration" (README.md:197-203), and the health, metrics and log commands under "Run it under a supervisor" (README.md:219-233).
  4. Lines 30-31 say Contributing lists the RFC triggers that docs/rfcs/README.md lists. README.md:263 leaves out parts of two of them, storage backend contracts and schema or migration semantics (docs/rfcs/README.md:12 and :14); I passed README.md:263 in the first round. Adding them to README.md:263, or saying that it lists most of them, would fix it.

…page

The README opened with an adapter description, put install at line 68
behind the default PostgreSQL build, whose init needs a running
PostgreSQL server, and ended its quick start with five placeholders and
no request that returned data. Its operation list left out the backup
and PartiQL operations the engine dispatches, and it called the wire
protocol coverage full. 416 of its 774 lines described the experimental
WebAssembly build.

The page now names ExtendDB as a server, shows a get-item answer from a
local server, and leads install with the SQLite build, which needs no
database server. "Make your first request" takes a reader from init to
an item in five steps with no placeholders, and says that a new table is
CREATING until it is ACTIVE, that the server accepts requests signed for
its own region only, and what stop and destroy leave behind, including
the pre-migration copies and the Cassandra keyspaces. The operation list
matches the engine dispatch, with backups, PartiQL and the refused
point-in-time recovery, and says that any other operation answers
UnknownOperationException. "Run it under a supervisor" replaces Running
in Containers and Monitoring. It keeps the health, metrics and log
commands, with the metrics command prompting for the password and a
macOS log show line added. A new "Your data" section says where data
lives (including that the default encryption key sits in the catalog).
"What ExtendDB is not" replaces the Scope list and adds what an unlisted
operation answers and why one server runs per catalog. The README drops
the Use Cases, Prerequisites, Authentication Modes and Management
Console sections, the project tree and the Python setup, replaces the
CLI listing with a sentence that names the commands, and links the
documents that cover them. The TLS settings move under Configuration,
and Install links the container images. The storage backend section
keeps its heading and table, apart from "Supported operations" in
lowercase in two cells; the paragraph after the table links the
versioning policy, and the dev-mode paragraph moves to Install.
Documentation becomes a paragraph that adds the WebAssembly page, and
Contributing lists the RFC triggers that docs/rfcs/README.md lists,
including backend contracts and schema or migration semantics.

The description of the WebAssembly build moves to docs/webassembly.md:
what it does not do, the requests it refuses, the HTTP server checks it
does not make, and how to build it. The moved text keeps its wording
apart from a title, an opening paragraph, its subsection headings one
level up, its link to the versioning policy made relative to docs/, six
em dashes in four list items that became colons and parentheses, bare
placeholders such as <arn> escaped so GitHub renders them, the
control-plane cases indented so the docs build nests them, "with no
server and no network" made "with no ExtendDB server", "The command
above" made "The `wasm-pack build` command above", "checks no checksum
of it" made "does not verify its checksum", and the module size given as
the Linux figure. "Building it" adds where wasm-pack writes the module
and its loader, how to get a wasm32 clang on Ubuntu and on macOS, the
wasm32 target, the wasm-pack release to install, and the module size on
macOS. A new section, "Using it from JavaScript", holds the loading
steps, the snippet with a real answer, and the calling contract of
submit: it takes and resolves with strings, an error resolves it with an
error document (shown with a real one), a trap before submit returns its
promise throws, and a later trap leaves the request's promise pending.
The License section comes last.

The README keeps a section under the same heading, so
README.md#experimental-webassembly-build still resolves. It says what
the build is, what not to use it for and its status, and links to the
page's sections. The feature list and the install routes link to the
page too.

Comments and docs that cite the WebAssembly section now name
docs/webassembly.md: the wasm workflow, devtools/run-wasm-step, the
SigV4 signing-key and crypto comments, the adapter's module docs and the
Architecture Guide. The versioning policy, the WebAssembly Build section
of AGENTS.md and the Run Tests section of CONTRIBUTING.md still cite the
README section, which keeps what the build is and its status. The page
is added to docs/build-docs.py and to the documentation table in
AGENTS.md.

docs/local-mongodb-setup.md now writes extenddb.toml, readable by its
owner only, before init and runs init with --overwrite, says why the
Docker node needs directConnection=true and puts it in the connection
string it writes, with port 27017 in place of 27018, has the reader run
the first request's steps 3 and 4 before the connection check, creates
an account for the first request, and uses port 18443. A MongoDB init in
a fresh folder fails reading the config file, and the default account it
writes has no 12-digit ID, so these steps keep the guide working at this
release. docs/getting-started.md and the developer test guide pointed at
#python-environment-setup, an anchor the README never had; they now
point at the developer test guide's Python setup, and the agents' venv
reference names that guide. docs/getting-started.md also says that init
reads EXTENDDB_PG_PASSWORD when --pg-pass is absent. ADR-0023 cites a
README heading instead of a line number. RFC-0000 replaces two README
line citations and one deployment guide line citation with a heading or
a paragraph position; its other line citations stay. Apart from the new
docs/build-docs.py entry, source files change only in comments.

Verified with release builds: the first-request steps ran as written
against SQLite, PostgreSQL 16, Cassandra 4.1 and, with the guide's
steps, MongoDB 7, each returning the item shown on the page. Those runs
came before the SQLite build command gained -p extenddb and the MongoDB
guide's config-file command gained umask 077; the five steps' own
commands are unchanged since. On Linux, wasm-pack build --target web
--release crates/wasm-adapter with wasm-pack 0.15.1 wrote a 5,291,620
byte module, the snippet on a page in crates/wasm-adapter/ served over
HTTP printed {"TableNames":[]} in headless Chromium, and DescribeTable
on a missing table resolved with the error document the page shows. On
macOS 26.7.3 with Apple clang 21.0.0, rustc 1.94.0 and wasm-pack 0.15.1,
the same build wrote a 4,002,318 byte module.
@demohan
demohan force-pushed the docs/readme-first-request branch from 831fcfd to ffe024f Compare November 27, 2026 20:40
@demohan

demohan commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

I checked 831fcfd's message against the tree; these four sentences do not match it

ffe024f replaces 831fcfd, still one commit on d9c587d.

  1. The message names the versioning policy, the WebAssembly Build section of AGENTS.md and the Run Tests section of CONTRIBUTING.md as what still cites the README section.
  2. The verification paragraph says the first-request runs came before the SQLite build command gained -p extenddb and the MongoDB guide's config-file command gained umask 077, and that the five steps' own commands are unchanged since.
  3. The message says the TLS settings move under Configuration, and that "Run it under a supervisor" replaces Running in Containers and Monitoring and keeps the health, metrics and log commands.
  4. README.md:263 now names "the storage trait or a backend contract" and "the on-disk format, schema or migration semantics". This is the only file change from 831fcfd.

A check of the message against the tree also corrected these sentences: "Your data" is the one new section, the storage backend section's dev-mode paragraph moves to Install, the CLI listing becomes a sentence that names the commands, the default PostgreSQL build is what needs a running server at init, and the MongoDB guide's directConnection=true was already in its Docker connection string (the change is the port, 27018 to 27017, and the config it writes).

@amrith amrith left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked ffe024f. The four points of my last review are answered, README.md:263 now covers all six RFC triggers of docs/rfcs/README.md, and the message matches the tree apart from a few small points I would not hold the PR for. One optional wording fix at README.md:263, inline. Nothing else from me.

Comment thread README.md Outdated
and the [Backend Acceptance Criteria](docs/rfcs/0003-backend-acceptance-criteria.md).

Code in protected paths is reviewed via [`.github/CODEOWNERS`](.github/CODEOWNERS).
[CONTRIBUTING.md](CONTRIBUTING.md) covers the build, the tests and the code style, and the [Developer & Test Guide](docs/manuals/06-developer-test-guide.md) sets up the Python environment for the integration tests. Decisions are recorded as [ADRs](docs/adr/README.md). Changes that affect the wire protocol or its operations, the storage trait or a backend contract, the auth model, the on-disk format, schema or migration semantics, the public CLI or the configuration file format, and any significant new feature or subsystem, go through an [RFC](docs/rfcs/README.md) before implementation. A new storage backend starts with [RFC-0002: Backend Plugin Policy](docs/rfcs/0002-backend-plugin-policy.md) and the [Backend Acceptance Criteria](docs/rfcs/0003-backend-acceptance-criteria.md). [`.github/CODEOWNERS`](.github/CODEOWNERS) names the reviewers of protected paths.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, optional. ", and any significant new feature or subsystem," reads as one more thing a change affects, and its closing comma splits the subject from "go". A possible wording, which also adds "the" before "schema" and "or" before the last item:

Suggested change
[CONTRIBUTING.md](CONTRIBUTING.md) covers the build, the tests and the code style, and the [Developer & Test Guide](docs/manuals/06-developer-test-guide.md) sets up the Python environment for the integration tests. Decisions are recorded as [ADRs](docs/adr/README.md). Changes that affect the wire protocol or its operations, the storage trait or a backend contract, the auth model, the on-disk format, schema or migration semantics, the public CLI or the configuration file format, and any significant new feature or subsystem, go through an [RFC](docs/rfcs/README.md) before implementation. A new storage backend starts with [RFC-0002: Backend Plugin Policy](docs/rfcs/0002-backend-plugin-policy.md) and the [Backend Acceptance Criteria](docs/rfcs/0003-backend-acceptance-criteria.md). [`.github/CODEOWNERS`](.github/CODEOWNERS) names the reviewers of protected paths.
[CONTRIBUTING.md](CONTRIBUTING.md) covers the build, the tests and the code style, and the [Developer & Test Guide](docs/manuals/06-developer-test-guide.md) sets up the Python environment for the integration tests. Decisions are recorded as [ADRs](docs/adr/README.md). Changes that affect the wire protocol or its operations, the storage trait or a backend contract, the auth model, the on-disk format, the schema or migration semantics, or the public CLI or the configuration file format go through an [RFC](docs/rfcs/README.md) before implementation, as does any significant new feature or subsystem. A new storage backend starts with [RFC-0002: Backend Plugin Policy](docs/rfcs/0002-backend-plugin-policy.md) and the [Backend Acceptance Criteria](docs/rfcs/0003-backend-acceptance-criteria.md). [`.github/CODEOWNERS`](.github/CODEOWNERS) names the reviewers of protected paths.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied the suggested wording at README.md:263 in d5635be.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed at d5635be.

@amrith
amrith enabled auto-merge November 28, 2026 01:44

@LJMart11 LJMart11 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 6d4c635. 1 finding: 1 Docs.

The change rewrites the README around a first request, moves the WebAssembly description to docs/webassembly.md, and fixes the MongoDB guide and README citations. The five first-request steps, run as written on release builds of this head on SQLite, PostgreSQL 16 and MongoDB 7 (with the guide's config-file, init --overwrite and create-account steps), each printed the item at README.md:19-31 byte for byte. A put-item on a CREATING table got ResourceNotFoundException, as live DynamoDB answers. Signing for us-west-2 was refused, and a shell key overrode the profile. README.md:207 matches extenddb --help. init writes extenddb.toml as mode 600. healthcheck exits 0 while serving and 1 after stop. serve --foreground writes no PID file. SQLite destroy leaves what README.md:148-153 says it leaves. The operations list matches is_known_operation and dispatch in crates/engine/src/lib.rs. Every README.md# and webassembly.md# anchor in the tree resolves. Outside docs/build-docs.py, code files change only in comments. doc_version_literals passes.

  • Docs PR description — The PR body says Install starts at line 44 of the README, but in this head ## Install is at line 45.

Docs — outside the diff

PR description
Docs
The README notes in the PR body say "Install starts at line 44 (it was at line 68)". In this head, ## Install is at README.md:45. The base's ## Quick Start is at line 68, so the second number is correct.

Fix: change 44 to 45 in the body, or drop the line number and name the heading.

Evidence: grep -n '^## Install' README.md prints 45:## Install at 6d4c635 and also at d5635be, the commit before the merge of main. git show 222d80a6:README.md | grep -n '^## Quick' prints 68:## Quick Start.

@demohan

demohan commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

The PR body says Install starts at line 44 of the README, but in this head ## Install is at line 45.

The PR body now says line 45. No commit; the README is unchanged.

@amrith
amrith added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit 6942157 Dec 1, 2026
76 checks passed
@amrith
amrith deleted the docs/readme-first-request branch December 1, 2026 21:08
LeeroyHannigan added a commit that referenced this pull request Dec 1, 2026
Main moved the WebAssembly build's section from README.md to its own
page, docs/webassembly.md (#1521). The merge keeps main's README.md.
This branch added a sentence about the developer-mode host check to
that section. The merge puts the sentence in docs/webassembly.md, in
the list of the server's HTTP checks that have no counterpart in
submit(operation, body).
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
…ccount

The parent branch now contains main at b3510a9.

Conflict in README.md: #1521 moved the WebAssembly section of README.md
to docs/webassembly.md. This merge keeps main's README.md. It makes the
two README edits of this branch in docs/webassembly.md. The first puts
the account of the BackupArn before the table names check of the
TargetTableName. The second is the TargetTableName row of the table
names check.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
The parent branch now contains main at b3510a9.

Conflict in README.md: #1521 moved the WebAssembly section of README.md
to docs/webassembly.md. This merge keeps main's README.md. It makes the
two README edits of this branch in docs/webassembly.md: the order
sentence of the member types check, and the two member types rows. The
parent branch added a member types row for the TargetTableName alone.
The first row of this branch covers that member too, so it takes the
place of that row.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
The parent branch now contains main at b3510a9.

Conflict in README.md: #1521 moved the WebAssembly section of README.md
to docs/webassembly.md. This merge keeps main's README.md. It makes the
three README edits of this branch in docs/webassembly.md. They are the
DescribeBackup text "Invalid Backup ARN", the RestoreTableFromBackup
row of the table names check, and the new BackupArn kind row.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
The new head of fix/1272-invalid-backup-arn holds main of 2 Dec. On
main, #1521 moved the WebAssembly section of README.md to
docs/webassembly.md.

Conflict:

- README.md: the WebAssembly section. This branch changed two rows of
  its table of the checks that the server makes and this build does
  not. The merge takes the README of fix/1272-invalid-backup-arn. It
  makes the same two changes in docs/webassembly.md: the new member
  types row for the restore overrides, and the clauses of the
  TargetTableName row.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
The new head of fix/1271-restore-check-order holds the new head of
fix/1272-invalid-backup-arn and main of 2 Dec. On main, #1521 moved the
WebAssembly section of README.md to docs/webassembly.md.

Conflicts:

- README.md: the WebAssembly section. This branch changed two
  BackupArn kind rows of its table of checks, and the paragraph above
  the table. The merge takes the README
  of fix/1271-restore-check-order. It makes the same changes in
  docs/webassembly.md.
- backup/tests.rs: the table of malformed ARNs. This branch added the
  account rows, and fix/1272-invalid-backup-arn added an id in mixed
  case after the upper-case id. The merge keeps both.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
The new head of fix/1326-cross-region-restore holds the new heads of the
three branches below it and main of 2 Dec. On main, #1521 moved the
WebAssembly section of README.md to docs/webassembly.md, and the PartiQL
request checks read AT_LEAST_ONE from request_limits.rs.

Conflicts:

- README.md: this branch changed the TargetTableName row of the table of
  checks in the WebAssembly section. The merge takes the README of
  fix/1326-cross-region-restore. It makes the same change in
  docs/webassembly.md.
- partiql/request_checks.rs: this branch removed the NOT_NULL constant,
  which it reads from extenddb_core::error now, and main removed
  AT_LEAST_ONE. The merge removes both.
- backup/tests.rs: the doc and the bindings of the restore order test.
  The merge keeps the words and bindings of both sides.

The core test of validate_name_member_after from
fix/1271-restore-check-order gets the later argument that this branch
added.
LeeroyHannigan added a commit that referenced this pull request Dec 3, 2026
Main at c057660. Three files conflicted.

crates/engine/src/partiql/test_context.rs: main (#1449) builds context
from crate::test_context. The merge takes the body of main and keeps
pub(crate) on context and block_on, which the table name length tests
call.

crates/engine/src/backup_requests.rs: main (#1137) moved
validate_name_member to extenddb_core::validation and kept a private
table_name_bounds. This branch moved table_name_bounds to
extenddb_core::validation::table_name_length. The merge keeps both
moves, so the file imports both functions and defines neither.

README.md: main (#1521) moved the WebAssembly section to
docs/webassembly.md. The merge takes the README.md of main. The README
changes of this branch go to docs/webassembly.md. They change the text
and the table of the checks that the server makes and this build does
not.

Main changed five other files of this branch. Git merged each change
of main beside the lines of this branch.

- crates/core/src/error/messages.rs: a message key.
- crates/engine/src/partiql/mod.rs: request_checks made pub(crate).
- crates/engine/src/transact_write_items.rs: the token comment and the
  stored token.
- crates/wasm-adapter/parity/corpus.json: corpus cases.
- docs/manuals/10-security-model.md: the authentication steps and the
  SearchVectors rows.
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.

5 participants