Skip to content

docs(deployment): operator runbook (BLEU-836)#17

Open
brunota20 wants to merge 1 commit into
dev/m3-basefrom
docs/deployment-guide-bleu-836
Open

docs(deployment): operator runbook (BLEU-836)#17
brunota20 wants to merge 1 commit into
dev/m3-basefrom
docs/deployment-guide-bleu-836

Conversation

@brunota20

Copy link
Copy Markdown
Collaborator

Summary

New `docs/deployment.md` aimed at operators (not module authors). Branched from `dev/m3-base` directly — independent of the shepherd-sdk stack (#12#16) so reviewers can land it in parallel.

Sections

  • What an operator runs (engine + engine.toml + .wasm + state_dir)
  • `engine.toml` reference — every section / field, ws vs http invariants on `[chains.]`, fuel + memory caps on `[engine.limits]`, forward note that `[[modules]]` lands with BLEU-818 supervisor PR
  • Building module `.wasm` artefacts (rustup target + cargo build + size sanity)
  • Local runs (`cargo run -p nexum-engine -- <module.toml>` + RUST_LOG hints)
  • Docker (sketched Dockerfile pointing at the proper BLEU-X18 milestone)
  • Observability — RUST_LOG patterns, `/metrics` forward reference, suggested Grafana panels
  • Backups (redb WAL safety, per-module keccak prefix for partial restores)
  • Troubleshooting table (5 most common errors → likely cause → fix)
  • Cross-links to SDK overview, tutorial (BLEU-848), ADRs 0001 / 0003 / 0005

No code changes. Branches independently from `dev/m3-base`.

Linear: BLEU-836.

New docs/deployment.md aimed at operators (not module authors).
Branched from dev/m3-base — independent of the shepherd-sdk stack
so reviewers can land it without unblocking #12#16.

Covers:

- What an operator runs: nexum-engine + engine.toml + .wasm
  artefacts + state_dir.
- engine.toml reference: every section / field with the
  invariants ws/wss vs http/https on `[chains.<id>]`, fuel +
  memory caps on `[engine.limits]`, and a forward note that
  `[[modules]]` lands with the BLEU-818 supervisor PR (today's
  flow is positional CLI args).
- Building .wasm artefacts: `rustup target add wasm32-wasip2`
  plus the cargo build command + size sanity check.
- Local runs: the canonical `cargo run -p nexum-engine -- <wasm>
  <module.toml>` invocation + RUST_LOG hints.
- Docker: sketched Dockerfile pointing at the proper
  BLEU-X18 milestone.
- Observability: RUST_LOG patterns, /metrics endpoint (forward
  reference to BLEU-X14), suggested Grafana panels.
- Backups: redb WAL guarantees + how the per-module keccak
  prefix lets partial restores stay clean.
- Troubleshooting table mapping the five most common dispatches
  to their likely cause + fix.
- Cross-links to the SDK overview, tutorial (BLEU-848), and
  ADRs 0001 / 0003 / 0005.

No code changes.
@linear-code

linear-code Bot commented Jun 17, 2026

Copy link
Copy Markdown

BLEU-836

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