- One public DevNet vertical slice: generate wallet, fund wallet, deploy contract, execute one transaction type, verify result. (Not implemented; the slice exists for localnet only. See Revisions R1.)
- Integrate wallet generation as part of the scaffold workflow for bootstrap and interaction flows.
- Support native token topup for wallet operations on local and DevNet environments. (Localnet and test nodes only. See R1.)
- Deploy command auto-discovers program binaries by matching program names across scaffold's deterministic
target/riscv-guest-docker/output, the canonical workspacetarget/riscv-guest/layout, the sub-cratemethods/target/compatibility layout, andmethods/guest/target/(cargo risczero build/ spelmake build), so non-template projects deploy without--program-path. Deterministicdocker/output ranks first only in the root the project kind owns (target/riscv-guest-docker/fordefault,methods/guest/target/forspel). - Build command auto-compiles
methods/Cargo.tomlwhen present, so projects whose parent workspace excludes the Risc0 guest crate produce guest binaries vialgs buildwithout a separatecargo build --manifest-path methods/Cargo.toml. (This is now the[build].guest = "local"path. The default is the container build in #10, and spel projects build throughmake build. See R2.) - Deploy outputs the deployed program's on-chain ID (the risc0 image ID) for every successful submission, in both the human-readable output and the
--jsonoutput, so users can hand the value to a client without rerunning a separate inspection tool. The value is computed locally from the submitted ELF; on-chain inclusion verification is future work and depends on LEZ exposing deploy receipts. - (Location and pins revised. See R3.) Scaffold vendors the
spelCLI per project — cloneslogos-co/spelto a project-local path, pinned via[repos.spel]inscaffold.toml, and builds it duringsetup— mirroring the LEZ vendoring pattern.deployinvokes the project-local binary; no globalspelinstall is required. The default spel pin is selected so spel itself vendors the same LEZ commit scaffold pins;doctorenforces this alignment at runtime by inspectingspel-cli/Cargo.tomland warning if spel's vendored LEZ diverges fromDEFAULT_LEZ_PIN. logos-scaffold spel -- <args...>(and thelgs spel -- <args...>alias) proxies trailing arguments to the project-vendoredspelbinary, so any spel command (inspect,pda,generate-idl, etc.) runs against the project's pinned version without a global install. Exit codes are forwarded.logos-scaffold deploy --jsonoutput is a pure JSON object on stdout — no command-echo, no informational text — and absent values are omitted from the object rather than emitted asnull. Consumers can pipe directly tojqand test field presence withhas(...). Subprocess command-echoes and progress messages stay off the JSON channel. Two shapes by code path:--program-path … --jsonemits a bare object{"status":"submitted","program":...,"tx"?:...,"program_id"?:...}; auto-discovery--jsonemits{"deploys":[<entry>,...]}with one entry per attempted program. Failed entries replaceprogram_idwitherror. Auto-discovery exit code is non-zero when any entry failed; the JSON object is still emitted so consumers can inspect partial results.- Guest programs can be built reproducibly.
[build].guest = "docker"(the default; alsolgs build --guest docker) compilesmethods/guests withcargo risczero buildinside the pinnedrisczero/risc0-guest-builder:<tag>container, so the same source produces the same ELF — and therefore the sameprogram_id— on any machine or CI runner. This is the default.[build].guest = "local"(or--guest local) opts into the host-toolchainembed_methods()path, which is faster and needs no container runtime but is not bit-reproducible;lgs doctorreports the active strategy.lgs deployprefers the deterministic artefact, and eachlgs buildclears the other mode's output, so the last build is always what deploy ships.
- Single command bootstrap with no manual project wiring required.
- Generated layout clearly separates contract code, client code, config, and deploy scripts.
- Deterministic wallet generation and .env handling for repeatability. (Superseded. See R4.)
- Clear happy-path docs, reproducible setup, discoverable commands.
- CLI prints underlying commands for each step so users can drop down to lower-level tooling.
- The vertical slice must succeed 3 times in a row on a clean machine with deterministic wallets.
- Local network can be started and torn down in isolation without modifying host-global blockchain state.
- Each workshop step must complete within a demo-tolerable threshold (a few minutes).
- Scaffold version and toolchain versions are explicit in generated output so projects remain buildable over time.
- Network configuration for local and DevNet deployment is .env based config. (Superseded. See R1.)
- The scaffolded project includes command references for build, deploy, and interaction steps.
logos-scaffold doctorreports thespelrepo presence and pin status, mirroring the existing LEZ checks, so drift fromDEFAULT_SPELis surfaced before it bites at deploy time.scaffold.tomlfiles predating the[repos.spel]section produce a targeted error from the config loader pointing atlogos-scaffold initas the fix;initis safe to re-run and back-fills the missing section without overwriting customized fields.
- Local workflow does not require uploading source code, artifacts, or private keys to third-party services.
- CLI interaction flow works with locally controlled wallet keys and does not require custodial key management.
- Local development and testing can run fully offline from public networks.
- DevNet interaction uses explicit wallet and RPC configuration so developers can avoid accidental cross-network key reuse.
- Logos Core DevEx for overall developer journey alignment and terminology.
- Logos Blockchain and Logos Execution Environment for functionality.
- Wallet Module for interactions with Logos Execution Environment.
logos-co/spelCLI — vendored per project at a pinned commit (DEFAULT_SPEL; was tagv0.2.0-rc.5when written, nowv0.7.0, see R3); supplies thespel program-idoutput thatdeployparses for the program ID.
- Local network runtime availability for local deploy and interaction workflows.
- DevNet RPC endpoint availability and stable chain configuration. (Not applicable until DevNet support exists. See R1.)
- Deterministic local/DevNet account and chain configuration via environment files.
- Wallet available for signing transactions initiated by CLI interaction commands.
- Network-aware wallet configuration to prevent cross-network key misuse.
lgs runcollapses the inner-loop sequence — build → IDL build → ensure-localnet → wallet topup → deploy → optional post-deploy hooks — into one command. Every step's failure aborts the pipeline with a numbered step header ([3/N] …) so the failing phase is unambiguous in console output. Step ordering is fixed, but a run profile may opt out of the two steps a project can own itself:topup = falseskips wallet topup anddeploy = falseskips deploy. A skipped step keeps its slot and prints a header saying it was skipped, so the pipeline shape stays visible and step numbers do not shift.- Source edits drive fresh on-chain program identity automatically: when the guest ELF changes, its risc0 image ID changes, and the new program's storage starts empty. Scaffold relies on this for the default cycle and adds no per-run reset.
- Post-deploy hooks:
[run].post_deployis a list of shell commands executed in order viash -cwithcwdset to the project root. Hooks see a documented env contract:SEQUENCER_URL,NSSA_WALLET_HOME_DIRandLEE_WALLET_HOME_DIR(the same wallet home under both the pre-v0.2.0 and v0.2.0 LEZ names),SCAFFOLD_PROJECT_ROOT,SCAFFOLD_IDL_DIR,SCAFFOLD_TOPUP_SKIPPEDandSCAFFOLD_DEPLOY_SKIPPED(1/0, always set, reporting whether each step ran on this invocation for any reason — a config knob such astopup = false/deploy = false, or deploy's own unchanged-inputs dedup — not whether a knob was set), plus single-program shortcutsSCAFFOLD_PROGRAM_ID/SCAFFOLD_GUEST_BIN(set only when exactly one program is deployable). - CLI overrides:
--post-deploy <cmd>(repeatable) replaces[run].post_deployfor one invocation.--no-post-deployskips hooks entirely. The two flags conflict and are rejected at clap parse time. - Localnet reuse: if a managed sequencer is already running, the run reuses it. If the configured port is held by an unrelated process, the run aborts with a diagnostic naming the foreign PID.
- Topup safety: a wallet-topup confirmation timeout aborts before deploy so the developer is never left wondering whether deploy used a half-funded wallet.
- The command produces a single human-readable output stream with numbered step headers and one-line summaries per phase. No JSON output flag —
--jsonis reserved fordeploy's programmatic consumers. (runstill has no--json, but--jsonis no longer deploy-only. See R5.) - The single-program shortcuts (
SCAFFOLD_PROGRAM_ID/SCAFFOLD_GUEST_BIN) cover the most common dogfooding shape (one guest program per project) without leaking ambiguous values into multi-program projects — they're unset when the project has more than one deployable program. - Hook log markers (
===> post_deploy[i/n]:and<=== post_deploy[i/n] OK) frame each hook's stdout for grep-friendly log reading.
- The conflicting flag pair (
--post-deploy --no-post-deploy) is rejected at parse time, not silently coerced. - The pipeline anchors itself at the discovered project root:
lgs runfrom a subdirectory builds and deploys from the project root, not from cwd.
- The run is bounded by the underlying tools (cargo build, IDL test harness, sequencer startup, wallet topup, wallet deploy-program); scaffold adds no waiting steps beyond what each underlying command already imposes.
- Single-program metadata (program ID, guest binary path) is resolved once per invocation and reused across every post-deploy hook, so multiple hooks don't multiply
spel program-idcost.
[run]round-trips cleanly throughparse_config/serialize_config. Default values are omitted from the serialized output to keep diffs minimal.- The hook env contract is documented in
docs/configuration.mdand validated by unit and integration tests insrc/commands/run.rs::testsandtests/cli.rs. - Flag-conflict rejection messages list the conflicting flags and exit non-zero, matching clap's standard error format.
- Hooks run locally with the developer's own wallet; no network egress beyond what the deploy step already needs.
- Post-deploy hooks have direct access to the deployer's wallet home via
NSSA_WALLET_HOME_DIRandLEE_WALLET_HOME_DIR. Hooks are user-authored and trusted — same threat model asscaffold.tomlitself.
cmd_build_shortcutfor the build phase.build_idl_for_current_projectfor IDL generation (SPEL projects generate their IDL insidebuild; only legacylez-frameworkprojects run it as a separate step, anddefaultprojects skip it).cmd_localnet(start) for localnet lifecycle when no managed sequencer is already running.cmd_wallet_topup_innerfor the topup phase.cmd_deployfor deploy submission andextract_program_idfor image-ID extraction.
- Fetch and build a pinned basecamp (
nix build '.#app') and pinnedlgpmas project-local artifacts, in the same pin-isolated cache layout used for LEZ. - Pre-seed two isolated basecamp profiles (
alice,bob) per project for p2p dogfooding. (Custom profiles are also supported. See R7.) - Build and install the project's
.lgxmodule(s) into one or both profiles vialgpm, with source resolution that follows the.#lgxflake-output convention used by existing modules. - Launch basecamp for a named profile with clean-slate semantics: kill any prior process tree for that profile, scrub the profile directory, reinstall recorded
.lgxsources, andexecbasecamp with profile-scopedXDG_*environment. - Set per-profile values for each module's documented port-override env vars on
launch(names owned by each module), so multiple profiles can coexist without port collisions on the same machine. (Not implemented. See R8.) basecamp build-portablebuilds the project's.#lgx-portableflake outputs (the variant that loads cleanly into a release basecamp AppImage), orders them topologically bymetadata.jsondependencies so leaves load first, symlinks the results into<project>/.scaffold/basecamp/portable/with names carrying the load order, and prints those symlink paths. The wipe-and-recreate on every run keeps the staging dir idempotent.- Source resolution for
build-portablereuses the same auto-discovery +--path/--flakeescape hatches asinstall, but targets#lgx-portableinstead of#lgx. scaffold.tomlgains one[modules.<module_name>]sub-section per captured module, withflakeandrole(project|dependency) fields. The collection of these sub-sections is the sole source of truth for the captured module set;basecamp.stateholds only derived artefacts (pin outputs, binaries). Sub-section form fits scaffold's existing line-oriented TOML parser — no inline tables.basecamp moduleswrites[modules]during capture. For each captured source, the command derivesmodule_nameas follows:path:flake ref → read<flake-path>/metadata.json, use.name. Deterministic..lgxfile path → readmetadata.jsonfrom the sibling directory if present; otherwise fall back to the filename stem.github:flake ref → heuristic: striplogos-prefix from the repo stem, replace-with_. Printed at capture time with an assumption note (see Usability 7).
- Dep resolution walks each project source's
metadata.jsondependenciesarray and, for each declared name:- Already keyed in
[modules]→ no-op (already covered, irrespective of role). - In
BASECAMP_PREINSTALLED_MODULES→ no-op (basecamp ships it). - Not covered → resolve a flake ref via the declaring source's
flake.lock, then the scaffold-default pin table. On success, insert into[modules]withrole = "dependency". - Unresolved after all fallbacks → fail with a targeted error naming the two user-side fixes (capture as project source, or add an explicit dependency entry). No silent skip.
- Already keyed in
[basecamp.dependencies](the legacy override table) is removed. Its role is subsumed by explicitrole = "dependency"entries in[modules].
basecamp setupis opt-in — it is never triggered implicitly bynew, the top-levelsetup, orbuild.- When
installorlaunchrun without priorbasecamp setup, the CLI prints a single one-line hint pointing at the required command instead of erroring with a raw subprocess trace. - When only
.#lgx-portableis found on a project, the CLI fails explicitly, names the missing.#lgxoutput, and suggests--flake <ref>#lgx-portablefor explicit opt-in. - Commands follow the existing
logos-scaffoldCLI idioms (subcommand groups,--helpoutput, project-context errors). - Projects exposing only
.#lgx(no.#lgx-portable) receive a targeted hint naming the missing attribute and suggesting--flake <ref>#lgx-portablefor explicit opt-in — mirror of theinstallfailure mode, in reverse. build-portablestages a user-facing mirror of every built artefact as a symlink under<project>/.scaffold/basecamp/portable/<NN>-<module_name>.lgx. The two-digitNNis the load-order index so a file-browser lists the artefacts in the exact order basecamp needs to load them — the AppImage's "install lgx" picker sees human-named files in the right order rather than opaque/nix/store/…-source/…paths. Nix's own./result-lgx-portablesymlinks still land next to each flake; the scaffold-owned dir is a separate concern layered on top.- For each
github:flake where scaffold derivesmodule_namefrom the repo slug,basecamp modulesprints exactly one assumption note at capture time: the flake ref and the inferredmodule_name, with "edit[modules]in scaffold.toml if wrong." One-time UX cost, never repeats. scaffold.tomlis human-editable at all times.basecamp modulesis idempotent: if a key already exists in[modules], itsmodule_nameandroleare preserved (user intent wins over auto-derivation).- Unresolved dep diagnostics are a fail-fast error at
basecamp modulestime — the dep name must resolve to an entry in[modules], ametadata.jsonsource flake-input pin, the scaffold default pin table, or the basecamp preinstall list, otherwise the command exits non-zero before writing any state. No warn-and-skip path for required deps; anoptional_dependenciesentry that resolves nowhere is skipped with a note, since basecamp loads the module without it. - No migration path for the captured module set: the whole
basecampsubcommand is unreleased. Users on earlier iterations re-runbasecamp modulesagainst a fresh scaffold.toml. (Superseded. See R9.)
- Two
basecamp launchinvocations for different profiles on the same machine run concurrently without colliding on XDG paths, p2p identity keys, or module ports (subject to modules honoring the external port-override contract). basecamp setupis idempotent when the pinned commit is unchanged: no rebuild, no reseeding, no state mutation.basecamp launch <profile>produces a reproducible profile state — clean-slate on every invocation.rm -rfduring scrub targets only paths under<project>/.scaffold/basecamp/profiles/<name>/.build-portablewrites only under<project>/.scaffold/basecamp/portable/(a wiped-and-recreated staging dir of symlinks into the nix store), never invokeslgpm, and never touchesbasecamp.stateor thealice/bobprofile trees — so a failed portable build cannot corrupt install/launch state.- Dep resolution is deterministic given the same
scaffold.tomland sourcemetadata.jsonfiles — no reliance on github repo naming conventions, no string substring matches, no ordering dependencies. basecamp moduleswrites toscaffold.tomlatomically (write-temp-then-rename) so a crash mid-write cannot corrupt an otherwise-valid scaffold.toml.- Re-running
basecamp moduleswith an unchanged project set is a no-op againstscaffold.tomlcontents; hashes of the serialized section match byte-for-byte on re-entry.
basecamp installcompletes in the low-seconds range with a warm Nix cache; cold first-run wall-clock is bounded by upstreamnix build '.#lgx'time.basecamp setupfirst-run wall-clock is bounded by upstream basecamp +lgpmbuild time; re-runs on unchanged pin are effectively instant.
logos-scaffold doctorgains a basecamp section when.scaffold/basecamp/exists, covering binary presence, profile integrity, and installed-module state. (These checks live inbasecamp doctor. See R10.)- Basecamp and
lgpmpinned commits are explicit inscaffold.toml, and the defaults move as a set: scaffold's defaultlgpmrev is the one the pinned basecamp release locks, because the app embeds that same package-manager library to read whatlgpminstalled. Scaffold supports one basecamp release at a time (currently 0.3.0):setupmoves a project still on a retired default pin set (and captured default companion flakes) to the current one and says so; any pin that is not exactly one of scaffold's retired defaults is kept until the user edits both and re-runssetup. A deliberate pin to a retired default is moved too — scaffold cannot tell it from a left-behind one. .scaffold/state/basecamp.stateis plain-text and line-oriented, matching existing scaffold state conventions.- Dogfooding scenarios (
B1–B4inDOGFOODING.md) cover setup, single-instance, multi-instance p2p, and clean-slate behaviors. (Now theBCSETUP,BCMODandBCLAUNCHscenarios in.dogfooding/features/. See R10.) build-portable's manual load-into-AppImage step is explicit: scaffold stages browsable symlinks under.scaffold/basecamp/portable/but does not know or auto-feed the AppImage's install dialog. The AppImage lifecycle is intentionally outside scaffold's scope — see ADR "AppImage Path is Outside Scaffold's Scope".- Known limitation: multi-sub-flake projects must unify transitive
logos-module-builderreferences viainputs.<dep>.inputs.logos-module-builder.follows = "logos-module-builder". Without it,installcan fail via the overridden sibling's lock even when a directnix buildsucceeds. Documented fully indocs/basecamp-module-requirements.md; expected to become obsolete once upstreamlogos-module-builderscaffolding emits thisfollowsautomatically. - Assumption notes from Usability 7 are printed to stderr (not the captured log), so pasting them into a bug report is straightforward.
scaffold.tomldiffs in version control surface module-identity changes as explicit, reviewable edits — same footing as any other project config change.- Known limitation: modules must be packaged by
logos-module-builder0.3.0 (ornix-bundle-lgxagainst the same SDK set) — scaffold supports basecamp 0.3.0 only. The pinnedlgpmvalidates package structure and Merkle content hashes on install, which tutorial-era.lgxfiles do not carry;installsurfaces that as a targeted hint rather than a bare exit status. Scaffold deliberately does not pass--allow-unsignedto work around it — that would disable the same validation basecamp itself performs.
- Per-profile isolation of p2p identity keys: fresh profile directory produces a fresh libp2p / Waku identity with no cross-profile leakage.
- No state mutation outside the project's
.scaffold/directory — the user's global Logos state is never touched. - No telemetry, no upload of module artifacts, identities, or profile state to third-party services.
- Logos Basecamp (dev variant only).
- Logos Package Manager (
lgpm). - Module repositories (delivery, storage, etc.) exposing env-var overrides for every listening port, with env var names chosen and documented by each module; tracked via upstream issues (e.g., logos-delivery-module#18).
- Module
metadata.jsonschema:name(string),dependencies(array of strings). Already documented indocs/basecamp-module-requirements.md.
- Nix with flakes enabled on the developer machine.
- Qt build toolchain (supplied via the basecamp flake dev shell).
- Unix-like OS (Linux, macOS). Windows is out of scope.
.#lgxflake output on the project (or sub-flakes) —.#lgx-portable-only projects fail explicitly until they expose.#lgx..#lgx-portableflake output for any module the developer wants to test against a basecamp AppImage. Projects without it get a clear error frombuild-portable, not a silent miss.- Modules that bind sockets must honor external port override via env var (names chosen by each module) for multi-instance launch to be fully useful.
The sections above describe requirements as they were written. This section records where the
shipped product has moved away from them, and the requirements it has gained since. An item
marked (Superseded …) or (… See R#) above is governed by the matching entry here.
.dogfooding/ and docs/commands.md are the operational detail.
- R1. No DevNet target. Scaffold targets project-local sequencers only: the
localnetdeveloper sequencer andtest-nodeinstances. No DevNet profile, RPC configuration or deploy path exists. The network configuration lives inscaffold.toml([localnet].port) and the wallet config under[wallet].home_dir, not in env files. The generated.env.localcarries onlyRUST_LOGandRISC0_DEV_MODE. The DevNet items in Functionality 1/3, Supportability 2 and the DevNet RPC runtime dependency remain open goals, not shipped behavior. - R2. Guest build producers.
[build].guest = "docker"(Functionality 10) is the default. The hostcargo build --manifest-path methods/Cargo.tomlpath of Functionality 5 runs only under[build].guest = "local". spel projects (framework.kind = "spel") ignore[build].guestand always build their guest throughmake build(cargo risczero buildin Docker). - R3. spel location and pins. By default spel is cache-managed, not project-local: it is
checked out at
<cache_root>/repos/spel/<pin>, with[repos.spel].pathleft empty soscaffold.tomlstays portable. It is cloned into.scaffold/repos/spelonly for--vendor-depsprojects or when[repos.spel].pathis set. The current defaults are spelv0.7.0and LEZv0.2.4. The alignment rule (spel vendors the same LEZ that scaffold pins, whichdoctorchecks) still holds. - R4. Default wallet seeding. Seeding is deterministic only when the pinned LEZ debug
wallet config ships a preconfigured account. LEZ v0.2.x ships none, so
setupruns the wallet once to create its storage and adopts the first public account it lists. That is freshly generated key material, protected byLOGOS_SCAFFOLD_WALLET_PASSWORD. From LEZ v0.2.4 every wallet command needs a running sequencer, so with no localnet up seeding is reported as deferred and completes on the nextrun, or on the nextsetup/buildwith localnet up. - R5.
--jsonis not deploy-only. Machine-readable output is available ondoctor,localnet status,localnet logs,wallet list,wallet topup,basecamp doctor,basecamp paths, and everytest-nodesubcommand, as well asdeploy.runstill has no--json. - R6.
lgs runoptions. In addition to Functionality 1–6 oflgs run:- deploy is skipped when guest binaries, IDL, config and the sequencer instance are
unchanged (state in
.scaffold/state/run_deploy.json); --profile NAMEselects a[run.profiles.<name>]pipeline;--resetwipes sequencer state and the wallet and re-seeds before the run, and--no-resetoverrides a config default;--watchre-runs the pipeline on file changes, filtered by[run.watch]include/exclude globs with a debounce;--localnet-timeoutbounds the localnet start (default 120 s).
- deploy is skipped when guest binaries, IDL, config and the sequencer instance are
unchanged (state in
- R7. Custom basecamp profiles. Besides
aliceandbob, any[basecamp.profiles.<name>]whose name is a single safe path component launches the same way. Profiles can setenv_file,runtime_dir,log_fileand an inlineenv.[basecamp.env]and[basecamp.env_append]apply to every profile. - R8. No per-module port overrides yet.
basecamp launchexports no module port-override env vars, because no module has published names to set.[basecamp].port_base/port_strideare reserved: they are parsed and round-tripped so existing files stay valid,initdoes not write them, and nothing uses them at launch. Until a module publishes override names, a project gives each profile its own port through[basecamp.profiles.<name>.env]. Isolation between concurrent profiles comes from per-profile XDG dirs,HOME,LOGOS_USER_DIRand a private runtime dir. A module-level port collision belongs to the owning module. - R9. Basecamp migration exists.
basecamphas shipped.initmigrates the pre-0.2.0[basecamp.modules.*],[basecamp].pin,.sourceand.lgpm_flaketo[modules.*],[repos.basecamp]and[repos.lgpm].basecamp setupmoves projects off retired default pin sets (ADR "Scaffold Supports One Basecamp Release"). - R10. Basecamp diagnostics and coverage. Basecamp health checks are reported by
basecamp doctor, not by the top-leveldoctor. Dogfooding coverage is theBCSETUP,BCMODandBCLAUNCHscenarios in.dogfooding/features/. That adds artefact builds by variant (BCMOD-005), the standalone run loop (BCMOD-007), and pin-set checks that need no app build (BCSETUP-007).
- A1. Circuits are project configuration.
scaffold.toml[circuits]pins thelogos-blockchain-circuitsrelease.setup,build,build idl,localnetand test-node startup download it into[circuits].install_dir(default.scaffold/circuits) on first need.LOGOS_BLOCKCHAIN_CIRCUITSoverrides it with a local checkout. Ambient~/.logos-blockchain-circuits/is not consulted. - A2. Test nodes.
test-noderuns isolated, short-lived sequencers for integration tests. Each has its own port, config, database, log and runtime dir under.scaffold/test-nodes/<id>. They follow the caller project's LEZ and circuits pins, and each resolved value reports its origin. Caller-provided LEZ checkouts are validated, never mutated. Test nodes offer typed reads with structured outcomes: transaction outcomes, classified blocks, clock state, block-scoped account and proof reads, and exact-state seeding. These are also available asapi::testnode. - A3. Localnet reset.
localnet resetstops the sequencer, clears chain state, restarts it and verifies block production. It requires--yesunless--dry-runis passed.--reset-walletalso deletes the project wallet. - A4. Paced multi-program deploys.
deploysubmits one program per sequencer block, because the pinned LEZ panics on blocks whose inscription exceeds about 896 KiB. A stalled head aborts the remaining submissions with a non-zero exit instead of batching them.LOGOS_SCAFFOLD_DEPLOY_PACING_TIMEOUT_MSraises the ceiling. - A5. Verified prebuilt sequencer.
setup --prebuiltinstalls a downloadedsequencer_serviceonly if it matches the publishedsequencer_service.sha256. A missing or unusable checksum falls back to a source build, and a mismatch is a hard error. - A6. AI skills in every project.
new,new --template spelandinitinstall the canonicallgs-cli,lez-template,spel-templateandbasecampskills into.claude/skills/and.cursor/rules/, with anAGENTS.mdindex. They are version-controlled. Re-runninginitrefreshes them idempotently and touches only those four names. - A7. Library surface.
logos_scaffold::apiexposes setup, localnet, wallet, deploy, doctor, report and test-node operations against an explicit project root, with typed results and categorized errors (api::Error).
- A8.
init --dry-runpreviews an adoption or migration, and migrations writescaffold.toml.bakunless--no-backupis passed. - A9.
completions <bash|zsh>prints completion scripts for both binary names. Global-q/--quiet(orLOGOS_SCAFFOLD_QUIET=1) suppresses echoed external commands.
lgs tui, run inside a project, shows in one screen: localnet state (running, starting, stopped, stale state, foreign listener) with its pid and current block height; the project's default wallet address; each guest program inmethods/guest/src/binwith the builddeploywould ship (docker,release,debug, or not built) and whether the lastlgs rundeployed exactly that build to the running localnet; and an Output pane.- Each action key runs the matching CLI command as a child process in the project root and streams its output into the Output pane:
rrun,wrun --watch,bbuild,ddeploy <selected>,slocalnet startorstop,Rlocalnet reset --yes,twallet topup,cdoctor. The job's exit code is shown when it ends. lswitches the Output pane between job output and the tail of the sequencer log.xstops the running job and its whole process tree.
- Every key is listed on screen; there is no mode to learn and no configuration.
- The empty Output pane names the one key a new project needs (
r). - A key pressed while a job runs says which job is running and how to stop it, instead of queueing or racing.
- One job at a time, so two commands never write the same project state at once.
localnet resetand quitting with a running job ask for confirmation; the reset keeps the wallet.- Quitting stops the running job's process tree but never the localnet, which stays up as it does after
localnet start. - Status polling runs on a background thread, so a slow
lsofor an unresponsive sequencer never freezes input or drawing. - Without an interactive terminal it exits non-zero with a message instead of drawing into a pipe.
- Status refreshes once a second; the screen redraws at least every 100 ms while idle.
- Output is capped at the last 5,000 lines.
- Actions are the CLI commands themselves, so their behaviour, output and documentation are the CLI's; the dashboard adds no second implementation to keep in sync.
- Status comes from the functions behind
localnet status,deploydiscovery and therundeploy cache. - Rendering is covered by a
ratatuiTestBackendtest; key handling and job lifecycle by unit tests; the no-project and no-terminal paths by CLI tests.
- Local only: it reads project files and the localnet RPC on
127.0.0.1, and runs the same commands a developer would.
ratatui0.29 with its defaultcrosstermbackend.- Unix sessions (
setsid,killof the process group) for detaching a job from the terminal and stopping its process tree, consistent with the CLI's Unix-only support.