dartway_cli 0.28.0
dartway_cli: ^0.28.0 copied to clipboard
DartWay command-line tool: print the agent setup brief, check prerequisites, create projects from the canonical template, install the AI toolkit, run convention checks, deploy.
Changelog #
0.28.0 #
Breaking changes #
- BREAKING (deploy): the Kamal contract names no environment (#705).
deploy/config.yaml > kamalholds the project half (repo,project,deploy_user,storage); a Kamal project keeps no deployment sections anddeploy kamalrefuses them. One ERB configuration per service,deploy/kamal/<service>.yml, readsSTUDIO_ENVIRONMENT,STUDIO_HOST,STUDIO_SSH_USER,STUDIO_DOMAIN_<POINT>andSTUDIO_BUNDLED_<COMPONENT>at deploy time; no destination files are generated. Kamal's destination is the environment's name, sostageandprodkeep every server-side name.deploy/studio.ymldropsenvironmentsand lists ingress points, components, values and secrets an environment must give, plus the API env-file template.deploy check --env <name>and the check image read an environment from those variables. Images publishes every pushed or hand-started CI success, without a branch list. Thedeploy run(Compose) path is unchanged. See the migration note.
Changes #
- Fix: the generated Kamal Images workflow skips pull-request CI at the job level, before taking a runner, and builds only images it publishes after pushed or hand-started CI (#727).
- Add
dartway contract baselineanddartway check --releasefor the extend-only store contract lifecycle. Baseline creation validates the descriptor and shared version read from the required store-build--revision, then records its resolved commit; created-project release CI runs the deprecation-cleanup gate (#716). - The
pre-app-bootsecret file check readsdeploy/kamal/api.ymlfrom the directory Kamal runs in: through a hooks symlink it missed the destination config and refused to boot (#721).
0.27.0 #
Breaking changes #
-
BREAKING (deploy): with DartWay CLI 0.27.0, every Compose
dartway deploy run --env productionrefuses to run unless the environment has abackup:policy with an S3-compatible HTTPSendpointand a region. DeliverAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYwithdartway secret set, then rerundartway deploy setup --env production.--skip-backupis a journaled emergency exception only (#686). -
BREAKING (check): opt into Studio resources with
.dartway/design.json.designResourceCopiedrejects content-identical copies under appassets/; use the design link in the one asset dictionary instead.designResourcesInvalidchecks configuration, symlink, pubspec and Docker context.check --fixcreates the relative link and wires template web images without copying resources into the app. No config leaves these checks disabled. See the migration note.
Changes #
-
Configure daily and pre-deploy encrypted database backups, off-host upload, host retention, freshness monitoring, and temporary restore verification; every object-store operation uses the policy's required HTTPS endpoint and region (#686).
-
Fix: the generated
images.ymlgroups its concurrency by head branch instead of head SHA, so a busy deploy branch keeps one pending image build of its newest commit instead of a queue; a running build is never cancelled.dartway deploy kamal --checkreports the old workflow as stale. See the migration note (#706). -
Fix: Kamal's pre-app-boot secret-file hook checks readable files as the non-root deploy user and requires passwordless sudo only when that user cannot read the secret directory (#700).
-
Fix: let a deploy runner identified by
DW_PINNED_CLIrun the pinned CLI from a fresh checkout whose app packages are not resolved (#696). -
Fix: Compose deploys use the checked-out commit time as the web
BUILD_NUMBER, so redeploying one revision reuses the Flutter web-build layer while different revisions retain ordered version labels (#694). -
Fix: apply
migrations > dataChecksAfterto the offlinemigrationsDriftNOT NULL deploy-safety scan, and report malformed or missing boundaries when that check runs alone (#691). -
Prune local pre-deploy database dumps to the configured retention and copy only Sunday daily dumps into the weekly set (#688).
-
Fix: recognize local final command callbacks used only as
dw.actionwork, detect parenthesized watched-read bindings, and accept feature-wide<feature>[_<scenario>]_contract_test.dartfiles. Clarify Flutter migration presentation, shared helpers, hosted views, inline command outcomes, checker limits and script-test CI discovery in the docs and toolkit (#446).
0.26.1 #
-
Install and reinstall the CLI from pub.dev; update plans name the exact target CLI version in the activation command.
-
Warn with
unboundedReadwhen a handler includes a to-many relation withouttake(n)orunbounded(reason).
0.26.0 #
Breaking changes #
-
BREAKING (check): reject direct
Process.run,Process.runSyncandProcess.start, pluspackage:processandpackage:process_runimports/exports, in serverlib/withforbiddenProcessRun; usectx.process. Ship a weekly/manual seam drift workflow in the template; keep the diagnostic demo and its git runtime dependency in the example only (#638). -
Remove
dartway-requirementsanddartway-plan: requirements analysis and approach selection belong to the developer or executor. Update removes their managed copies; projects wanting the old flow keep their own copy under a project skill name. Contract choices, layer order, risks and ADR guidance remain in the owning skills and the agent index. -
Install skills once in
.agents/skills/; Claude discovers them through the relative.claude/skillssymlink. Existing Claude-only custom skills are moved; conflicting custom copies stop installation before any project file changes. Commit the symlink and move root Claude prose intoAGENTS.mdmanually; see the migration note.
Changes #
-
Allow unchanged state arguments from the same row through
copyWithand enclosingupdatechecks (#639). -
A new warning in
dartway check:unboundedRead— a repositoryfind(…)in a request handler of a*_handlers.dartnaming neitherlimit:norunbounded:. The message names the fix: a page, table or window request,limit:for paged reads,request.readWholefor a whole list, orunbounded: '<reason>'. Reads insidereadWholeare accepted (#644); see the migration note. -
Tests: own creation fixture process groups and disable background Git maintenance so Linux teardown cannot race a remaining fixture writer (#638).
-
Add the
stateWrittenDirectlychecker error for direct state writes and recognize transitions as feature-owned writes (#639). -
A
dartwayof another version no longer refuses a project command (generate,check,test,deploy,dev,stats,format): it runs thedartway_clithe project pins — in the directory it was typed in, on the package configuration of the package that declares it and the Dart of the Flutter.fvmrcpins — passing the arguments, stdio and exit code through (128 plus the signal for a child it ended), and says so in one line on stderr; a refusal names the subcommand and nothing of its arguments.dartway formatbatches its paths under 8000 characters a command line, and neither it nor the hand-over goes through a shell on Windows. Only a pin whose packages are not resolved is refused, with thepub getthat resolves it. The toolkit, the skeleton's README and the docs teachdartway <command>again;toolkit_pinned_commands_test.dartnow holds them to it. See the migration note. -
New
dartway format:dart formaton the Dart of the pinned Flutter (.fvmrc), over the Dart files changed against the merge base with the base branch plus the untracked ones (--allfor the whole project,--base <ref>for another baseline,--checkfor CI). Generated files and migrations are never formatted. The skeleton's CI runsformat --checkon the files a pull request changed, anddartway-finishformats with it. -
deploy runno longer answers requests with 502 while it deploys: it migrates while the previous server serves, starts the new server and web app beside the serving ones, waits for their healthchecks before attaching their routed aliases and stops the old ones after; the rendered nginx resolves every service per request through Docker's DNS and retries a refused or vanished address, and is reloaded instead of restarted. A failure leaves the previous version serving. Replaces D-070 (D-166, #645). Existing servers: see the migration note. -
The rendered nginx logs each request as one JSON line (
dw_timed: the call's wire name, status, request and upstream time) into bounded files; the bundled Postgres preloadspg_stat_statementsand logs statements slower than the newslow_query_mskey ofdeploy/config.yaml(default 500), set by every deploy without a restart. -
Protect slow and error logs from bind parameters with both parameter log limits set to zero; bound Postgres Docker logs to ten files of 50 MB. Refuse a Postgres command override that drops
-c shared_preload_libraries=pg_stat_statements. -
migrationsDriftrejects required column additions without a default on existing tables; suggests a default or nullable/backfill/later NOT NULL. General D-143 compatibility remains a review obligation. -
Warn in deploy preflight when available host memory is below the configured limits for two server containers plus the migration container. Bound nginx retiring workers, including WebSockets, to 30 s after reload.
-
dartway deploy stats --env <environment> [--hours 24] [--top 10]prints p50/p95 per call from the proxy log and the costliest statements ofpg_stat_statementson a deployed environment. Read-only. -
deploy checkfailsoverride-side-by-sidewhendeploy/compose.override.ymlgivesserverorwebacontainer_nameor publishedports, which would stop the new container from starting beside the old. -
Load the managed Claude policy by import and warn with
instructionsDuplicatedwhen root instruction texts need consolidation. Fresh projects use@AGENTS.md. -
Make the first read an index with topic references and concise skill discovery descriptions. Load only the procedures needed for the current step.
-
Record
interactive(default true) in the toolkit manifest.--no-interactiveon create/setup-ai/update makes managed confirmation steps report and stop that step without waiting or treating silence as approval; updates retain the choice.
0.25.0 #
Breaking changes #
- BREAKING (
dartway createdependency source): new projects pin every reacheddartway_*package and the analyzer plugin to the full git commit that supplied the template.dartway update --target <sha>moves those refs;--framework-pathcontinues to write local path overrides. Creation no longer depends on unpublished pub.dev versions. - BREAKING (native check contract): the outside-only check image requires
--version <full SHA>and verifies it on API/healthand app/dw/health. Generated manifests now include{version}. Regenerate and wire server health metadata; see the native-check migration note. - BREAKING (deploy): the app host forwards only
/dw/. Kamal web destinations no longer carry route prefixes or depend on server routes; compose anddartway devleave/healthand project routes to the app. Outside checks use/dw/healthon the app host (#576). See the migration note.
Changes #
- Keep standalone
DwOutboundHttp.networkconstruction and tear-offs out of serverlib/withforbiddenHttpClient; server code uses the bounded, test-fakedctx.http(#444). - Fix: the template maps user cards in a batch, loading identities and avatar URLs once and sharing them with the nested profiles. A single card uses a batch of one (#418).
- Tests: prepare external-service workers before timed CLI assertions and own fixture subprocess groups through timeout and teardown, so CLI and native analyzer children stop before their temporary directories are removed. Limit concurrent CLI test files to two to bound nested compiler load (#609).
- Tests: synchronize the deployment busy-refusal check with the real detached process's startup and release, avoiding its fixed sleep window (#613).
- Fix:
AppKeyboardInsetin the template and example follows native iOS engine frames directly, avoiding a second tween and its trailing animation. Web and other platforms retain step smoothing. Thedartway-on-deviceskill now distinguishes these paths (#578); existing copies can follow the migration note. - Fix: native
deploy checkverifies secret-file mounts on the target before masking output, so a path stored inFCM_SERVICE_ACCOUNT_FILEno longer hides a correct per-file read-only bind from the checker (#587). - Fix:
create --framework-pathaccepts a framework export without Git metadata when the dependencies and lints plugin resolve by local paths (#600). A full commit remains required for Git pinning. - Fix:
dartway createinitializes Git on the recorded base branch (master), even when Git defaults tomain, so the new project's contract baseline is available.create .preserves an existing repository's branch (#599). - Fix: Compose deployments pin both serving images as
<project>-<service>:dw-previousbefore building moves:latest. Retries keep the original journal entries, restore missing or moved pins, and refuse a missing rollback image before building or replacing a service (#602, #589). - Fix: template and example Docker contexts exclude native app signing files
(
key.properties,*.jks,*.keystore,*.p8) at every depth (#588). Existing projects must update their copied.dockerignore; see the migration note. - Fix: the installed
dartway-finishgate block omitsCONTRACT_BASEand--contract-basewhen the project has a release branch, so task checks do not demand contract version bumps reserved forgenerate --release(#607). dartway sync [<ref>]merges the base branch in and resolves derived files itself: generated code, locks and l10n outputs are regenerated, the migrations registry is rebuilt from its directory,.arbfiles merge by key; only source conflicts stop (--continueafter resolving).dartway generate --releaseraises the contract version once at the release and resolves the packages;--release-branchrecordsreleaseBranchin the toolkit settings (D-158).- Native
deploy checkselects Kamal from the Studio manifest and verifies the selected SHA, actual TLS routing, native data/secret mounts, BBR and explicit ingress trust, without inspecting secret environments. Composedeploy runretains its own checks. Native generation refuses nginx snippets rather than silently dropping policies. - Kamal destinations support
requires.files: individual read-only API mounts and an executable pre-app-boot hook that checks file metadata over Kamal's configured SSH transport, without reading contents. Existingsecret put-filedelivery uses a private upload directory and atomically replaces the file; rotation reaches the next container boot. Delivery remains a prerequisite, including for Studio runners. - Fix: the web API proxy emits a Flutter fallback for a trailing-slash route
only when no API prefix covers its slashless path, keeping overlapping routes
and
/healthon the API (#571). deploy kamalnow gives the API TLS root service only its API host and configures each web destination to proxy same-origin server paths to that public API origin. The template web image renders the validated proxy routes at container start, including WebSocket forwarding for/dw/(#564).- Fix: deploy disk guards measure a Docker data root that is not visible on the host from a throwaway container using the stack's resolved Postgres image with Docker's default pull policy, including both cleanup measurements, allowing the local stack proof to run with Docker Desktop on macOS (#549).
- Toolkit: settings carry keeps the old table through release N and drops it in N+1; the constitution lists expand/contract across production releases as a rule held by review (#542).
- Fix:
deploy run --without-rollback-imageunblocks a stand whose running image cannot be resolved after an older CLI moved its tag without leaving a rollback pin. The refusal names the rerun command; opting in warns that a failure leaves the service down until the next deploy. Resolvable images are still pinned, and the flag is not stored in config (#535). - Template: the app reads its version from the platform;
app_version.dartand its version-equality test are removed. An empty platform build number maps to+0. Empty versions and failed platform reads report the problem and stack trace viadebugPrintbefore using0.0.0+0so startup continues. Release builds pass--build-number(#521). See migration note. - The generated Images workflow labels each image with its Kamal
service; without itkamal deployrefuses the CI-built image (found by the #530 end-to-end deploy). deploy kamalgenerates Kamal 2.12 destinations with kamal-proxy v0.10.2, literal server route prefixes, the Studio deployment manifest and cached GHCR image builds from the project's deployment configuration. Image publication follows each destination'sbranch:after successful CI.--checkreports stale output. Postgres stays private to the stack. Unsupported deployedsite:, root API proxy prefixes, invalid project names and a CLI path dependency inside the project's own checkout are refused with a diagnostic (#530).- The check image runs outside probes from a read-only project checkout with its own TLS trust store. Its immutable tag follows the resolved CLI source: Git SHA, path HEAD or hosted version. Framework CI builds it on the pinned Flutter and committed workspace lock, verifies the CA bundle and entry point, and publishes the SHA tag; stable promotes the published CLI version tag without rebuilding or replacing an existing tag (#530).
- Template and example web releases call
Uri.base.originand build without a backend address, so one image serves every destination. Deploy checks require the backend build argument only when the Dockerfile declares it (#530). - Fix: generated Studio manifests declare the actual server migration and lock paths. Images pass the workflow run number into web builds, preserving SHA image identities and build-once behavior (#566). Existing projects must regenerate Kamal files and update their web Dockerfile; see the migration note.
0.24.0 #
-
Fix: toolkit manifests no longer record machine-local pub-cache clone paths, and
dartway checkskips inaccessible or revision-mismatched recorded checkouts (#552). -
Migration: projects created before #495 must hold their committed locks in CI with
--enforce-lockfile; refresh and commit the locks before enabling the gate. See the migration note (#529). -
Deploy: a failed migration restores the healthy previous server on the containerd image store, with its live socket serving again without manual recovery (#519).
-
Successful deployments clean unused server and web images of their own stack and trim the daemon's build cache to
build_cache_keep(default10GB). Rollback images are pinned before the build and kept in the step journal, including on resume. Every cache prune uses the budget; retained images keep their shared cache keys for unchanged builds on both image stores, and only the cache no kept image shares is held to the budget. A moved tag is refused unless Docker proves it still holds the running container; after an interrupted deployment the<project>-<service>:dw-previouspin is tried under the same proof, so the next fresh deploy recovers. Text and JSON progress report removed images, cache records, observed freed bytes and the cache bytes shared with kept images. A cleanup failure closes its progress step and warns at exit 0;--resumeretries cleanup and failed outside probes (#507, #519). -
The toolkit's
dartway-migrationsrequires expand, then contract across production releases so the previous image can run on the new schema (#520). Contracting decisions and thedartway-finishreview gate reject contractions shipped with the code that stops using the old shape; rename, nullability and default guidance now accounts for released readers and writers. -
Toolkit: tests are mandatory only for six risk classes; other tests are rare and must pass the
dartway-testinggate. Agent rules govern expectations and assertion changes.dartway-planselects Risks to guard with a class and expected outcome, and the feature scaffold adds only risk-owned tests, including access refusals and restricted-channel leak checks (#517). -
Toolkit: align checkup with must-test risk classes and clarify the scaffold's restricted-channel leak check (#528).
-
The template's Claude review job uses the same
DW_CI_RUNS_ONexpression asci.yml, so one repository or organisation variable moves both jobs onto self-hosted runners. The review's read-only token and disallowed tools remain unchanged. The local project CI runner refuses unknownruns-onexpressions in lists as well as strings, and applies earlierGITHUB_ENVupdates after jobenvand before stepenv, matching GitHub's precedence (#508). -
Toolkit:
dartway-testingrequires red-before-fix proof only for bugfix tests; breaking code for other new tests is optional, anddartway-finishreviews the bugfix's red. A test that fails and then passes on the same commit without changes is quarantined with a linked record rather than re-running CI until green (#513). -
Fix:
dartway doctoralways reports Docker, warning that development needsdocker compose upwhen a validDW_TEST_DATABASE_URLremoves the test dependency. Invalid or unresolvable test URLs are collected without hiding the Docker result (#539). -
dartway testdefaults--database-urland--storage-urlfromDW_TEST_DATABASE_URLandDW_TEST_STORAGE_URL; flags take precedence, including--no-storage, and empty variables count as unset. The run banner and URL refusals name the source, and the existing loopback guard, isolation, cleanup and--keeprefusal apply.dartway doctorreports the environment-selected hosts without credentials; storage alone still needs Docker for Postgres. Both test URL variables are removed from the suite and service workers' environment, including overridden defaults. Doctor's remote-server refusal explains its loopback requirement and the test command's explicit opt-in; Docker fixes name the test-only variables as well as the flags (#522). -
Toolkit:
dartway-finishalways runs fast gates locally and checks pull-request workflows per suite. CI-covered suites run only changed and mirrored tests locally, with a full local fallback for changes without a feature mirror; uncovered suites run locally in full. The report names local tests and the workflows carrying full suites.dartway-checkupkeeps all three suites in full locally (#496). -
The template ships
.github/workflows/ci.yml: every mechanical gate of a project —generate --check,migrate.dart checkon a Postgres service,dart analyze(--fatal-infosin the Flutter package, where the convention rules run as an analyzer plugin),dart test,dartway test,flutter testanddartway check— as the steps of one job,ci, on every pull request. Each gate runs even after an earlier one failed, Flutter comes from the Flutter package's.fvmrc, and packages resolve with--enforce-lockfile. The job runs onubuntu-latestunless theDW_CI_RUNS_ONrepository or organisation variable names other runner labels as JSON (["self-hosted","ci-nl"]). The README says how to makecia required check. A project created earlier may copy the file whenever it wants (#495). -
dartway testpulls an image it does not have locally before starting a container from it, with up to three attempts (2 s, then 5 s apart) and onepulling <image> (attempt n/3)line per attempt on stderr. A transient registry error (a timeout, a 5xx, a rate limit) no longer fails the run, and a pull that fails three times is reported ascould not pull <image> after 3 attempts: <last error line>before "could not start". An image already present costs no network (#497). -
The template's
.github/workflows/claude-review.ymlcan no longer push code to a pull request. It passes the workflow's owngithub_token(held tocontents: read) instead of letting the action exchange OIDC for the Claude App's writable installation token, dropstrack_progress, which forced tag mode with its edit and commit tools, and names those tools in--disallowedTools. A project created earlier applies the same three changes (#494). -
Deploy: the output mask also replaces a stored value in the RFC 3986 userinfo form that
Uri(userInfo:)produces (sub-delims and:kept, the rest percent-encoded), so a password logged inside a connection URL such aspostgres://app:p%40ss$word@dbis masked. The deploy guide names the forms the mask covers; other partial encodings are not recognised (#455). -
Deploy: a step stopped without an exit code reports
diskFullwhen its exit-code write failed or its step filesystem or Docker's data root has less than 1 GiB free, with the path and available space. Other vanished steps include space on both paths. JSON progress carries the state, and resume retries both interruptions. Builds now refuse below the environment'smin_free_disk(MB or GB, default10GB);deploy checkreports low space as a warning. The check changes nothing and no cleanup runs (#506). -
Deploy: the first certificate issuance moves the self-signed certificate of
deploy setupaside instead of deleting it, and puts it back when certbot fails (Let's Encrypt down, a rate limit, DNS not pointed yet). The step still fails, but nginx keeps a certificate to start with at its next restart, where before it refused to start and onlydeploy setupcould bring it back (#436). -
Deploy:
project:in an environment ofdeploy/config.yamlnames the deployment on the server (checkout, secret store, Compose project, data volumes); absent, it is the repository's name as before. A newstack-identityguard refuses when the server runs other stacks and not this one, naming them and theproject:line to set: a repository that moved no longer starts a second, empty stack beside the live one. It runs in three places. Indeploy runit is a precondition, not a step: it is checked before any step on every run and resume, and a refusal ends the run with the reasonstack-identity. Indeploy setupit runs before the secret store, and indeploy checkit is a server check.deploy setup --new-stacksets up a genuine second project on such a host (#482). -
deploy check'ssecret-filesreads the server's Compose configuration as JSON (docker compose config --no-interpolate --format json) instead of Compose's YAML, where a raw environment value such as a generated*abcpassword read as an undefined alias and failed the check on a healthy configuration. Output that does not parse is reported as unreadable without quoting any of it (#479). -
dartway createno longer writes a LICENSE; a project's licence is its owner's decision (#422). -
deploy run --revision <sha>deploys the verified commit only when it belongs to the configured remote branch, and refuses an older revision when the server already contains it. The revision is included in text and JSON progress, and invalid revisions fail before SSH (#473). -
secret pull --overwrite KEY[,KEY…]can take the server value for selected differing keys. Pull prints a names-only plan, supports the same plan under--dry-run, refuses empty server values, and restores the original local file when read-back verification fails (#434). -
Deploy provisions BBR with
fqon the host and selects BBR inside the front proxy's network namespace.deploy runrefuses before replacement when the host cannot provide BBR, whiledeploy checkfails a non-BBR proxy and warns about a non-BBR host (#469). Existing servers converge by runningdart run dartway_cli:dartway deploy setuponce and thendart run dartway_cli:dartway deploy run. -
testaccepts explicit--database-url/--storage-urlfor Docker-free executors, guards non-loopback servers with--allow-remote-test-server, and cleans only run-owned resources after success, failure or SIGINT. Container defaults remain; doctor explains this mode (#463). Interrupted starts are awaited and removed, and readiness polling stops on interruption. -
The rendered front proxy gzip-compresses app and site static responses while preserving ETag revalidation. Web builds bundle CanvasKit instead of loading it from Google's CDN, and deploy probes fail on an uncompressed main bundle and warn when startup still selects the CDN (#423). A non-JSON Flutter
buildConfignow produces an origin warning instead of failing the deploy probe (#467). -
Deploy output is masked on the target by literal stored secret value (at least 6 characters), including URL percent-encoded forms, before stdout/stderr reach human logs or JSON progress. Covers fresh and resumed steps, direct runs, setup and checks (#437).
-
Breaking — safe framework updates (#427, #441):
update --planreads an exact committed target without project edits; writes require its full--targetSHA. The proposed analyzer plugin source must resolve through pub before installation or configuration edits. Existing git/path choices and project rules survive. Migration completion is explicitly verified per note in.dartway/migrations.json, with applied/not-applicable dispositions and evidence. Locks and toolkit installs never complete notes; unknown baselines and partial completion remain visible. Preflight preserves native diagnostic settings and resolves only the selected dependency source using native dependency YAML; ambiguous sources, pub-only hosted map forms and sources that fail native YAML resolution are rejected before project edits. -
generate/checkcarry--contract-basethrough one resolved generator invocation;projectContractVersionis an error for incompatible or unverified generated project contracts. Direct execution of the resolved generator prevents implicit pub/lock writes during checks. -
One toolkit supports Codex and Claude.
create,setup-aiandupdateaccept--agent codex|claude|both(defaultboth, recorded for updates). Root owner instructions are preserved; managed blocks connect both agents to.agents/DARTWAY.md. Skills install for each selected agent from one source. The common manifest is.agents/dartway-toolkit.json; old install choices are retained. Claude permissions remain separate. -
deploy runasks Let's Encrypt before it replaces anything (dartway/dartway#433, D-123): thecertificatestep runs right after the data volume guard, through the proxy the previous deploy left running, so a Let's Encrypt failure stops the deploy with the previous version still serving instead of after the server was replaced and before the proxy restart. With no proxy running — a first deploy, a stand that is down — it asks nothing, and the new stepcertificate-started-proxy, before the proxy restart, issues the certificate; on a routine deploy that step finds every host covered and asks nothing either. The coverage check works again: it readcertbot certificatesfor aDomains:line that certbot 5 prints asIdentifiers:, so every certificate looked empty and every deploy asked to extend one that already named every host; the hosts are now read from the served certificate itself withopenssl. A host added to the configuration no longer needssetupfirst: the rendered port-80 server now comes before thenginx.d/httpsnippets, so it is the default for any name a project's own port-80 server does not claim, from the deploy after the one that renders it.deploy_certificate_docker_test.dartproves both against the pinned images. -
The toolkit
dartway updateinstalls asks four questions before a test is written:dartway-testingholds a gate — what the test protects, which credible regression turns it red, why existing coverage misses it (one owner test per contract, at the tier that owns it), which production caller uses the seam it needs — and the junk shapes that fail it; a bugfix's test is red on the unfixed code for the bug's reason, once, at the owner boundary.dartway-finish,dartway-plananddartway-feature-scaffoldpoint at the gate instead of asking for a test per layer or per handler. -
The toolkit
dartway updateinstalls states every rule once (dartway/dartway#392, D-121):CLAUDE.mdis the seven laws and a law table with one row per rule, naming its failing checks and the skill that owns it; each skill holds only its own topic, task-first, with pointers instead of restatements;/dartway-checkupruns the gates andcheckfirst and reads only the skills its findings point at. About a third of the words it had. Two stale instructions went with the copies: the uploads skill'sinitStatefallback and the navigation skill'snotifyListeners, both banned. A new test,docs_paths_test.dart, fails on anexample/…,template/…or__*_PKG__/…path intoolkit/ordocs/that does not resolve. -
dartway checkfails an app that disposes its router (dartway/dartway#407, D-120):routerDisposedByApp, an error, in the state inspector —<x>.router.dispose, called or torn off (ref.onDispose(router.router.dispose)), anywhere in the Flutter package'slib/but generated code.DwAppRouterdisposes itself with its provider now, and the line every project wrote before would dispose it a second time. The law table gains the row "The router owns its lifetime". -
BREAKING:
dartway checkholds how server features import and write one another (dartway/dartway#382, D-118). Four new errors, in their own inspector (dw_feature_imports.dart):coreImportsFeature— a file ofcore/importing a feature or the package's library;featureImportCycle— features importing each other in a cycle, by anyimport/export/part(package:or relative, conditional alternatives included), one finding per knot with its shortest cycle and the import behind each step;featureImportOutsideSurface— a feature importing another's file that is not its_rows,_access,_objects,_publicationsor_changes(or a<part>of one), or the package's library;foreignRowWrite— a<handle>.<table>.insert/update/delete/upsert… (ctx.db, a transaction's handle, any other) of a table whose row class another feature declares (read from the generated schema and the row classes), from a feature or fromcore/.changesjoins the closed file set of a server feature:<feature>_changes.dartis how another feature writes its rows. The server's library file,migrations/,bin/andtest/are not judged. The skeleton and the example follow:ProfileCallContext/ProfileAccessinprofile/profile_access.dart, the sign-in hooks (AccountAuth) and the first administrator in a newaccount/feature, every foreign write throughProfileChanges,ScheduleChanges,BookingsChanges, upload rules and the example's push audience in their features'_access.dart. Migration note:docs/migrations/2026-09-30-feature-import-graph.md. In the example,BookSessiontakes the spot first (ScheduleChanges.takeSpotlocks the session and refuses a missing or full one) and then checks the start and a spot already held, so a full session that already started is refused as full rather than as started. -
What
deploysends over stdin — the values of thesecretcommands, the rendered compose and nginx files ofdeploy setup, the script of every remote deploy step — no longer crashes onSocketException: Broken pipewhen the remote command exits without reading it (sshthat could not connect, a script stopped byset -e): the command's own exit code and stderr are reported. The output is read while the input is written, so a command that echoes a large input no longer deadlocks (dartway/dartway#400). -
dartway checkreads Dart source through one scanner (dartway/dartway#403): every detector that blanks comments and strings — the route names, the declaration outline, the clock, the environment and HTTP client, inline ownership, the Flutter state and UI rules, the data lifecycle, the feature imports, the uniformity rules, unused feature files and the UI kit's text constants — usesdw_dart_source.dartinstead of its own copy, and its edge cases (raw and triple-quoted strings, nested interpolation with quotes and braces,$name, nested block comments,//inside a string) are one fixture suite. No finding changes over the skeleton, the example and the three projects on the framework. Some source that no project holds is now read correctly: a quote or brace inside${…}no longer ends the string, block comments nest, a//inside a string no longer hides the rest of its line fromunusedFeatureFile, a name used only inside an interpolation keeps its file alive, an environment read inside an interpolation inbin/is reported, a plain and a raw literal side by side are one SQL string, a literal inside a block comment is not a UI kit text constant, and a literal in a conditional import's condition is not a URI.
0.23.0 #
- BREAKING:
dartway checkholds the shared package to the server's features, and file length to the server and the shared package (dartway/dartway#383, D-119). New errorinvalidSharedLayout(dw_shared_layout.dart): the shared package'slib/src/holds<feature>.dart, or a flat folder<feature>/of<feature>_<part>.dartparts only (a part never exactly a layer name, no<feature>/<feature>.dart),<feature>a feature folder of the server'slib/src/read in the same run, plus<prefix>_channel,_refusal,_upload,_protocoland_push_category.dart(the prefix the package's name without_shared); a feature as a file and a folder at once is a finding;lib/holds the library (directives only),generated/(files with a generator's header only) andsrc/; a hand-written file named*.dw.dart,*.g.dartor*.freezed.dartis a finding. A finding names the owner of a near miss (issue_process.dart→src/issues/issues_process.dart) and the name of a misnamed protocol file. Without a server package names are not matched, and the run says so.fileLong(over 200 lines, info) andfileTooLong(over 350, warning) now also judge every file of the server's and the shared package'slib/(dw_package_file_size.dart), passing over generated code (by name and header), the server's migrations and, on the server, seed data — directives and top-levelconsts each aNew<Entity>Row(…)draft or a collection of drafts only. Tests are not measured. The template's shared package movesAuthIdentifierandRegistrationKeysintoprofile.dartandapp_protocol.darttodartway_starter_protocol.dart; the example'snews.dartandsettings.dartbecomecontent.dart,people.dartbecomesprofile.dart,chat.dartsplits intochat/chat_channels.dartandchat/chat_messages.dart, and its server'schat_handlers.dartintochat_handlers.dartandchat_messages_handlers.dart(chatMessagesHandlers). Migration note:docs/migrations/2026-09-30-shared-mirrors-server-features.md.
0.22.0 #
- BREAKING:
dartway checkholds one shape for imports, tests and spacing, in every package (dartway/dartway#391, #379, #396). Five new errors and a warning, in a section of their own:relativeImport— a relativeimport/exportinlib/of the Flutter, server or shared package (generated files passed over);testLayout— a test that mirrors nolib/path (test/<path>_test.dartforlib/<path>.dart,test/<path>/<folder>_acceptance_test.dartfor a whole folder), a helper outsidetest/support/, or a test inside it;testHarnessBypassed— aProviderScope/DwFakeServerbuilt by a widget test, aDwTestServer.start/DwAppServerby a server test, outsidetest/support/;rawSpacing— a number in a spacerSizedBox, aGapor anEdgeInsets.*or aspacing:/runSpacing:/mainAxisSpacing:/crossAxisSpacing:outsideui_kit/, where the kit'sAppSpacesteps go;lintsPluginMissing— the Flutter package does not enable thedartway_lintsplugin, or names neither a version nor a path; anddocCommentLanguage(warning) — a doc comment inlib/in another script than the languagesetup-ai --languagerecorded, those the skeleton wrote excepted.dartway check --fixrewrites relative imports topackage:(sorting the import block) and moves root-level acceptance tests totest/src/<feature>/, before checking;--typeand--dirnarrow it.dartway updateenables thedartway_lintsplugin in a Flutter package without it, or raises its caret, pinned to the channel ascreatepins it (--framework-pathpins a checkout by path); aplugins:section it cannot edit safely is left alone, with the lines to add printed instead. Migration note:docs/migrations/2026-09-30-imports-tests-spacing.md.
0.21.0 #
- BREAKING: four new errors in
dartway check— one way to show a read, wait, open a dialog and go to a screen (dartway/dartway#390, D-116), in their own inspector (dw_flutter_ui_rules.dart) over every file of the Flutter package'slib/but generated code.forbiddenRequestRead: theAsyncValueofref.watch(dw.request|pages|table|window(…))taken apart outsidelogic/and the widget-free files ofcore/— a member of it, chained or through its bound name (with or withoutfinal, typed or not, per block;.value,.when(,.hasError, a project's own.section(), aswitchorcaseover it, a.selectof the read, the values aref.listenover it hands its callback.forbiddenProgressIndicator:CircularProgressIndicator,LinearProgressIndicator,RefreshProgressIndicatororCupertinoActivityIndicatoroutsideui_kit/.forbiddenNavigationCall:showDialog,showModalBottomSheet,showCupertino…and siblings,Navigator.push…and page routes outsideui_kit/andcore/router/, andNavigator.pop,GoRouter.of(…).pop,context.popanywhere.sentinelId: a route parameter set to0/-1(…Params.<name>.set(0)). Read on the source with comments and strings blanked. The skeleton follows: its reads areDwReadBuilder, its kit hasAppProgressIndicatorandshowAppDialog, and the core hands the kit's loading and failed views toDwFlutterConfig. Migration note:docs/migrations/2026-09-30-reads-lists-dialogs-routes.md.
0.20.0 #
- BREAKING: two new errors in
dartway check— one way to hold state and one way to send a command (dartway/dartway#389, D-114).forbiddenStateHolder: aStatefulWidget(ConsumerStatefulWidget,StatefulHookWidget, …) with itsStateandsetState, aStatefulBuilder, or aChangeNotifier/ValueNotifierheld as state, anywhere in the Flutter package'slib/but generated code. A class marked// dw:allow-stateful <reason>on the line above is passed over and listed after the tally (🔓 Allowed by dw:allow-stateful); a marker with no reason, or on no class, is a finding.forbiddenCommandCall:dw.commandoutside a feature'slogic/andcore/(app-wide wiring) or inside atrythat catches; a widget running<Feature>Commandsoutsidedw.action, or readingDwCallOk/DwCallRefused/DwCallFailed/valueOrThrowoutsidelogic/andcore/. Both read the source with comments and strings blanked; refusal text built outside the catalogue is stated in the toolkit, not checked. The skeleton follows: its kit fields are hooks, the identifier change is anIdentityChangeController, the sign-in notifier isAuthController, the analytics saves areAnalyticsDashboardCommands, and the router state carries the one marker. Migration note:docs/migrations/2026-09-30-flutter-state-and-commands.md.
0.19.0 #
- Four new errors: a project's data has one pattern per problem (dartway/dartway#388).
migrationChangesData— anINSERT,UPDATEorDELETEinlib/src/migrations/m*.dartoutsidem.backfill(…);workAfterServerStart—bin/server.dartawaiting, or reaching.db,.accountsorrunInContext, afterstart();settingsKeyValueTable— a row class with a uniqueString keybeside aString value;fieldPatchMatched—DwSetField,DwClearFieldorDwKeepFieldnamed in the server, shared or Flutter package (lib/,bin/,test/). Migration note:docs/migrations/2026-09-30-seeds-settings-patches.md. A project adopting these names its latest migration underdeploy/config.yaml>migrations>dataChecksAfter(a new project-level key of that file); only later migrations are judged. A write into a frameworkdw_*table is refused in any migration,m.backfillincluded.
0.18.0 #
- BREAKING: new error check
redundantBangAllowed— the server and the shared package'sanalysis_options.yaml(or a local file it includes) must raise the analyzer'sunnecessary_non_null_assertionto an error. A stored row's id isintnow, androw.id!hides the!that guards a real null (dartway/dartway#384, D-113).
0.17.0 #
- A new warning in
dartway check:inlineOwnershipCheck(dartway/dartway#387, D-112). In a server*_handlers.dart, a handler under any rule but a resource rule (signedIn, a role check) — or a helper of the same file it calls — that compares a row's owner field (…ProfileId,authorId,ownerId,senderId,accountId, …) with the caller and refusesnotFound/forbidden(or answersnullfrom asinglehandler) is the checkDwAccessRule.resourcemakes once. A project rule that builds a resource rule counts as one. A warning: it reads the shape of the code, and does not fail the run. Migration note:docs/migrations/2026-09-30-ownership-through-access-rules.md.
0.16.0 #
- Two new errors in
dartway check:forbiddenEnvironmentReadandforbiddenHttpClient(dartway/dartway#386).Platform.environmentin a server package'slib/outsidelib/src/core/environment.dart— and in itsbin/outsideDwLocalEnvironment.overlay(…), or a map read there by a variable's name (env['PORT']) — andHttpClient(or an import ofpackage:http/…in itslib/, fail the check: the environment is read once intoAppEnvironment(DwEnvironmentReader), and an outbound request isctx.http. Comments and strings are passed over, interpolations are not;test/is not judged. A project with either failsdartway checkuntil it moves — seedocs/migrations/2026-09-29-environment-and-outbound-http.md.
0.15.0 #
- New error,
forbiddenDateTimeNow: the server'slib/reads the time asctx.now(dartway/dartway#385).DateTime.nowandDateTime.timestamp— called, torn off or inside an interpolation — andpackage:clock'sclock.now()where it is imported, prefixed or not, faildartway checkanywhere underlib/, the factory file included; comments and strings are passed over,bin/andtest/are not judged. The server's clock is the one tests set (DwTestClock) and the job queue runs by. Migration note:docs/migrations/2026-09-29-server-clock-and-caller-offset.md.
0.14.0 #
- BREAKING:
dartway checkholds the inside of a server feature (dartway/dartway#381, D-109). A feature folderlib/src/<feature>/holds<feature>_<kind>.dartor<feature>_<part>_<kind>.dart, the kind one offeature,rows,handlers,objects,publications,jobs,access,routes, and one optional, flatlogic/subfolder for everything else, whose files carry no kind's suffix; a layer-named folder (domain,rows,handlers,services,models,objects,repositories,utils,helpers, …) is refused at any depth oflib/src/(invalidServerFeatureFile, new error). And each kind is held by what a file declares: handlers only in*_handlers.dart, row classes only in*_rows.dart, job kinds and definitions only in*_jobs.dart,DwHttpRoutes only in*_routes.dart,DwServerFeatureonly in<feature>_feature.dart, a named function that publishes only in*_publications.dart, a named function that takes a row and builds a data object only in*_objects.dart— and none of them incore/(misplacedServerCode, new error). Read from the source with comments and strings blanked; a closure a handler or a hook runs is not a declaration, so publishing inline from a handler stays legal.helpers,repositoriesandutilsjoin the layer names refused at the top ofsrc/too (invalidTopLevelLayout). Migration note:docs/migrations/2026-09-29-server-feature-closed-file-set.md.
0.13.0 #
- The checker's advice names
lib/ui_kit/for a visual building block (notAFeature,unusedFeatureFile):lib/shared/now holds non-visual helpers only, as the toolkit's feature law says (dartway/dartway#380). Wording only; no check changed. - BREAKING: the bundled storage is RustFS, not MinIO —
storage: minioindeploy/config.yamlbecomesstorage: bundled(dartway/dartway#331, D-094). MinIO's community edition stopped publishing images, and every registry that used to serve them (Docker Hub, quay.io) now answers an anonymous pull with401;dartway deploy runfailed on a fresh host at the step that started it, anddartway test/dartway_core_server's file suites failed the same way on a clean machine. The rendered compose services are renamedstorage/storage-init(wereminio/minio-init), the data volume is renamed<project>_storage_data, andstorage-initis a generic, pinned S3 client (amazon/aws-cli:2.31.13) rather than MinIO's own — it sets bucket CORS through the S3 API (put-bucket-cors) on both buckets instead of the server-wide environment variable MinIO's community edition needed in its place. Migration note:docs/migrations/2026-09-26-storage-minio-to-rustfs.md. dartway deploy checkresolves every pinned base image against its registry (images-resolve, new remote check): a manifestHEAD, with the anonymous bearer token the registry's ownWWW-Authenticatechallenge asks for — the same handshakedocker pullperforms, without pulling a layer. Catches a vanished tag (Postgres, nginx, certbot, and withstorage: bundledthe storage and its init image) beforedeploy runreaches the step that actually pulls it, which is where this exact failure used to surface for MinIO, well after the images that build locally had already succeeded. Resolved throughregistry_mirrorexactly as the renderer resolves them into the compose file, so the check asks about whatrunactually pulls, not the upstream name behind a mirror that serves it instead; a transient answer (no route, a timeout, a rate limit, a 5xx of the registry's own) is reported as a note rather than failing the deploy over this machine's own network.deploy runrefuses to start a stack that would create an expected data volume empty beside a data volume of the same project that already holds real state (data-volumes, new step, right after the compose configuration is checked and before anything is built).deploy setuphas run this guard since the volume rename above;rundid not, so a server only everrunagain after a config change — neversetupagain — could startstorage: bundled's volume empty, havestorage-initwrite its probes into it, watch the outside checks read those probes and pass, and serve every real file as a 404 from then on. Passes once the expected volume exists, whatever else is still on the server beside it: an old volume from before the change is the rollback copy, and neither command asks for it to be removed before passing.deploy setupno longer fails the "Deployment user" step when a group named likedeploy_useralready exists (#328). DigitalOcean's Ubuntu 24.04 image ships an empty system groupadmin(no user); the plainaddusersetup ran refuses to create a same-named group over it. Setup now reuses the existing group with--ingroup, unless the group is one a sudoers rule already grants privileges to (%adminon Ubuntu's stock sudoers;%sudoon both Debian's and Ubuntu's) — joining one of those would hand the "unprivileged" deploy user a path to root, so setup refuses instead and asks for adeploy_userthat does not collide with it. This guard alone does not fix a config that setsdeploy_user: adminexplicitly on such a host — that still refuses, by design.deploy_useris optional indeploy/config.yaml, defaulting todw_admin(#328). This is what actually closes #328: a name an operator picks can collide with a group a cloud image already ships (theadmincase above); a fixed default under thedw_prefix does not, on any stock image or package, so an operator who leavesdeploy_userunset never meets the collision. Additive: a config that already namesdeploy_useris unaffected.database: bundled | externalindeploy/config.yaml(dartway/dartway#325, D-096), the same vocabularystorageuses.externalrenders nopostgresservice, volume ordepends_on;DW_DATABASE_HOST,_PORT,_NAME,_USERand_PASSWORDbecome required secrets — a managed provider (DigitalOcean Managed Postgres, RDS, Cloud SQL, …) names its own, none of them derivable the way the bundled container's are — and the secret store accepts these names precisely because the compose file no longer sets them (it still refuses them forbundled).DW_DATABASE_SSL(defaulttrue) and_MAX_CONNECTIONS(default 10, the pool ceiling — one server holds this many plus one more for its sessionLISTEN, and a managed plan's usable total is often in the tens) stay optional; the server already defaults both.dartway deploy checkgaineddatabase-reachable:DW_DATABASE_PORT/_SSL/_MAX_CONNECTIONSare validated exactly as the server parses them, then on the deployment host over SSH — a managed provider's firewall usually trusts that address, not the maintainer's machine — a throwaway, pinned Postgres client attempts a real connection with the samesslmodethe server itself will use (requireunlessDW_DATABASE_SSLis explicitlyfalse) and reports why it failed (a bad stored value, DNS, refused, a timeout, authentication, or TLS not offered), never a bare TCP probe, which would miss the last two. Documents DigitalOcean Managed Postgres specifically: the direct port, not its PgBouncer transaction-mode pooler, which silently breaks the sessionLISTENand the migration lock. Additive: an existing config with nodatabasekey keeps deploying exactly as before, so there is no migration note.sslmode=verify-fullwith a CA file is tracked separately (dartway/dartway#342).database-reachableverifies the server's certificate whenDW_DATABASE_CA_FILEnames one (dartway/dartway#342, D-102), instead of only encrypting the channel: the sameverify-fullthe server itself connects with oncedartway_orm'sDwDatabaseConfig.caFileis set. The value must be exactly where the file is mounted (${DwStack.secretFilesDir}/<name>, e.g./run/secrets/db-ca.pem) — the server opens the literal path, so a value merely ending in a declared name but mounted, or not mounted, anywhere else is refused, not silently mounted from wherever it happens to sit — with<name>declared underrequires.filesand actually delivered withdartway deploy secret put-file. Also refused: naming an undeclared or undelivered file, and setting it together withDW_DATABASE_SSL=false, a contradiction the server itself also refuses. Additive: noDW_DATABASE_CA_FILEkeeps today'srequire.- BREAKING:
secret pushno longer replaces a server value that differs from the local one — it refuses the whole push, naming every differing key, and sends nothing (#330, D-097). Its default is now additive: it sends a key the server lacks or holds empty, leaves a key whose server value already matches alone, and — this is the behaviour change — stops rather than silently overwriting a key whose server value differs.--overwrite KEY[,KEY…]replaces exactly those named keys on purpose; there is no--overwrite-all. A generated key (DwStack.generatedSecrets— the database password fordatabase: bundled, and withstorage: bundledthe storage keys) is bound to the data already on the server on every path that touches it, not only replacing it: dropping it with--pruneor blanking it with--allow-emptyingneeds it named in--overwritetoo, on top of whichever of those two flags is otherwise enough on its own for an ordinary key. The comparison runs on the server itself (DwSecretStore.plan, over the candidate's own encoded lines sent on stdin, read directly rather than staged in a file of their own) — only key names (including every name the store currently holds, so--prune's orphaned keys are read in the very same pass rather than by a second, separately-timed call) and acksumfingerprint of the store travel back, never a value.writeAllis asked to check that same fingerprint right before it writes, so a second push (or a hand edit) landing in between refuses the write rather than being silently undone by it — its own plaintext, like the rest of the store's writes, is staged inside the store's own directory, never the shared system temp one; a store that exists but cannot be read fails the comparison outright rather than reading as absent, which would have classed every keyaddand let the push through as a full replace; and a candidate key the comparison does not place in any of its three sets is refused rather than sent unexamined. Before sending anything,pushprints a per-key plan (add/keep (same)/overwrite/differs — refused/drop) — the same shape--dry-runprints, only followed by the actual send. This is a CLI command's own default changing, not a change to generated project code, so there is no migration note. template/CLAUDE.mdno longer lists the tracker and how work is filed among a project's own conventions (dartway/dartway#324). A project's queue moves faster than its code — one moved three times in three weeks — and the rule kept sending the next session to whichever address had already changed. Where a task comes from and how it is handed over is not a repository rule: the task's own brief carries what the work needs, the same stance this repository's own rootCLAUDE.mdalready takes for itself.- Fix:
deploy runanddeploy setupresolve the project root from where the CLI actually runs (dartway/dartway#343).deploy checkalready walked up from the working directory to find the project (deployProjectRoot()), so a project pinned to its Flutter package (cd u90_flutter && dart run dartway_cli:dartway deploy …) passeddeploy check --local— butrunDeployandrunSetupeach readDirectory.currenta second time instead of the root the check had already found, sodeploy runrefused with "missing Dockerfile" for files that were one level up, anddeploy setuprendereddeploy/compose.override.ymlanddeploy/nginx.dfrom the wrong directory.DwStacknow carries the project root it was built from; both commands read it from there instead of recomputing it.
0.12.0 #
- BREAKING:
dartway checkholds the server'slib/src/to a layout (D-093,invalidTopLevelLayout): folders only —core/,migrations/, and one per feature declaring itsDwServerFeaturein<feature>_feature.dart. A file at the top ofsrc/, a layer folder (handlers/,rows/,entities/,domain/,objects/,publications/,services/,models/) or a feature folder without its declaration is an error.src/used to be "the project's": three projects on the framework arranged it three ways, and the largest arranged it two ways at once, with one area in four folders. The skeletondartway createhands out has the layout. Migration note:docs/migrations/2026-09-25-server-features.md. readFrameworkVersionsandframeworkPackageDirectorieswalkpackages/one level deep, not two.packages/has been flat since the 1.0 rewrite; the leftover second level silently read a package's ownexample/(dartway_core_flutter_example,dartway_lints_example) as a framework package in its own right, whichdartway update's framework-gap report and--framework-pathboth then acted on. Neither exists as adartway_*release.dartway update's migration notes sort by the version they land in, then by name — the file's date decides between two different days, not the version. Sorting by file name put same-day notes out of order (2026-09-24'saccount-deletion-choiceprinted beforecontract-version, though it lands later); sorting by raw version across every note put a satellite's small number (dartway_lints0.4.0) ahead of an earlier family note (0.20.0-dev.2) that has nothing to do with it. Now: the file's date first, then — only for two notes of the same day naming a package in common — the version that package lands at, then the file name.- Retired the 0.x-era
setup-ai/updaterecognition that no rewrite project can still trigger: thedartway-audit.mdcommand-retirement entry, the report of rootdartway_notes.md/dev_notes.mdjournals and oftools/dw_claude_setup/leftovers from the pre-CLI shell installer.
0.11.1 #
-
The toolkit's resident
CLAUDE.mdis half its size (#281): 7 400 words paid in every session of every project become 3 450. The laws stay resident; what only one kind of task needs moves to skills loaded on demand —dartway-documentation(specs, ADRs, dev notes),dartway-framework-notes(filing a finding upstream), the old shapes intodartway-update, localization in full intodartway-ui-kit— each with a resident line saying when to load it. -
dartway createpins thedartway_lintsanalyzer plugin (#295): the skeleton enables it underplugins:in the Flutter package'sanalysis_options.yamlby a path into this repository, whichcreatereplaces with the version the template was taken from — or the checkout's path with--framework-path. The skeleton no longer depends oncustom_lintordartway_lints. -
The toolkit teaches the CLI a project pins (#289). 133 command blocks in
toolkit/and the skeleton's README wrotedartway generate|check|test|deploy|dev|stats, the form those commands refuse from anydartwaybut the pinned one since 0.10.1; they now writedart run dartway_cli:dartway <command>, run in the Flutter package, andtoolkit/CLAUDE.mdsays so once. The public documentation (docs/, 97 more) is rewritten the same way.toolkit_pinned_commands_test.dartfails on a bare one in code — in the toolkit, the skeleton's README anddocs/— against the CLI's own list of project commands (DwPinnedCli.projectCommands). -
dart run dartway_cli:dartway testruns from the Flutter package (#289): it read only the working directory and answered that there was no*_serverpackage — in the one place the pinned form runs. -
By checkcounts every section (#287). The tally belonged to the Flutter section and left out what the sections before it found: a layout error was shown and counted inErrors: 4, while the tally named three. It is now printed by the command over all of them, and a tally that disagrees with the error count stops the check as a bug in it. The generated-code section's fix names the pinned command too. -
The web image installs the Flutter the project's
.fvmrcnames (D-082). The skeleton's build stage cloned nothing and startedFROM ghcr.io/cirruslabs/flutter:3.44.0, while the skeleton pins 3.47.2, which no image publishes: Flutter pins some of the packages an app resolves, so the image'spub get --enforce-lockfilerefused every new project's lock. A new local check,web-flutter-version(error), compares an image builtFROMa Flutter image with.fvmrc. Migration note:docs/migrations/2026-09-23-web-image-flutter-from-fvmrc.md. -
The web image grants everyone read on the files it serves (#292). The skeleton's
Dockerfilerunschmod -R a+rX build/webafter the build:COPYkeeps modes, and under a deploy user's umask of077the assets a commit added were served as 403 while every page answered 200. A new local check,web-file-modes(warning), names a web image that leaves the modes to the build host. Migration note:docs/migrations/2026-09-23-web-image-file-modes.md. -
Deploy ssh sessions notice a dead connection (#286): every
sshandscpcall opens withServerAliveInterval=30andServerAliveCountMax=4. A step is watched through one session that is silent while a web build runs; a NAT dropped it, and the CLI waited for an hour on a step that had long finished. A connection lost now ends within two minutes, and the watch reconnects and reads the step's result. -
A project without
pubspec.lockis told to resolve, not to edit its images (#278).locked-dependenciessaid "add--enforce-lockfile" to a project whose Dockerfiles carry it — the first deploy of a project nobody has resolved yet, sincedartway createdoes not copy the skeleton's lock. It now says to runpub getin both packages and commit the locks. -
dartway updatecompares a framework package's pre-release correctly against the release it precedes.isAtLeastVersionignores a pre-release suffix entirely — right for an SDK check, wrong here: a project ondartway_core_server0.20.0-dev.1read as caught up with a channel already at0.20.0, and a migration note keyed to0.20.0-dev.4looked satisfied by every other-dev.Nof that release.isPackageAtLeastVersion(package:pub_semver) is the comparison a package's own version needs: a pre-release sorts below the release it precedes, and its identifiers compare numerically (dev.9belowdev.10), never as text (review of #308).
0.11.0 — DartWay 1.0 #
Breaking: dartway deploy secret … is now dartway secret … (D-078).
-
doctorasks for Flutter>=3.44.0(#290), the minimumdartway_core_fluttercompiles on. -
dartway quickstartnamesDW_ADMIN_IDENTIFIER, the framework's own name for the first administrator (D-079); the skeleton'sAPP_BOOTSTRAP_ADMINis gone. -
localis an environment ofdeploy/config.yaml, anddartway secretis a top-level command (D-078). The two files that describe every environment now describe this machine too:config.yaml > localholds what the team shares,secrets.yaml > localwhat is the developer's own, anddartway secret list --env localanswers "what is set, what is missing" in the same words it answers for a server.dartway deploy secret …is nowdartway secret …, andinit,put-file,pushandpullsay why they have nothing to do forlocal. -
requiresis read at the top level ofdeploy/config.yaml, where it states what the project needs wherever it runs; an environment's ownrequiresadds to it. The same list repeated per environment drifted in the one direction nobody notices — the environment that was forgotten is the one whose deploy stops. -
Two advisory checks in
dartway check:localSecretMissing(arequiressecret with no value forlocal) anddevComposeDrifted(the development containers' credentials indocker-compose.yamlagainst the ones the server is told to reach them by — two files stating the same password, with nothing making them agree).migrationsDrifttakes the same local environment, so it stops asking for aDW_DATABASE_*the project has already declared. -
deploy/config.yaml.exampleis gone: the skeleton shipsdeploy/config.yamlitself, withlocalfilled in and a deployment commented out beside it. A new project runs before it has a server to deploy to, and one file is one file. -
BEHAVIOUR (deploy):
deploy runrendersdocker-compose.ymlandnginx.confon every run (D-075), fromdeploy/config.yamland the CLI's own version, saying of each whether it changed. They used to be written bysetupalone, and a stack rendered by an older CLI met a build argument it did not carry: the deploy died insidedocker buildblaming the project's Dockerfile, while the file to fix was on the server and in no repository (reported by U90). A hand edit on a server is therefore overwritten — project additions belong indeploy/compose.override.ymlanddeploy/nginx.d/, which are not touched. -
deployanddeploy secretfind the project instead of demanding to be run from its root. They read the working directory, sodart run dartway_cli:dartway deploy …— which runs from the package that pins the CLI — answered "no*_serverpackage found" to somebody standing inside their own project (reported by Studio). They now walk up to the directory holding the*_serverand*_sharedpackages, asgenerateandcheckalready did. -
locked-dependenciesjudges a package's ownpub get, not a stage building something else. A multi-stage Dockerfile that checks out another repository and builds it in its ownWORKDIRhad thatpub getattributed to the project and checked against the project's lock file (reported by Studio). Instructions resolving elsewhere are now named in the verdict and not judged: another repository's lock is not this project's to check. -
The web image is built with
STUDIO_APP_ORIGIN— the address it answers on, which the Studio binding checks a connecting Studio's token against. Projects kept it as a default in their Dockerfile, where a renamed stand makes it quietly wrong (reported by U90). -
deploy run --resumeno longer repeats a step that failed: it stops with that step's recorded reason and output (step_failedwithresumed: true), and--retry-failedis how to run it again. A self-deploy resumes after every interruption, so a failing step used to be repeated until the attempts ran out, stopping the server each time (reported by Studio). -
The proxy and certbot images are pinned (#269):
nginx:1.30.5-alpine,certbot/certbot:v5.8.0, like Postgres and MinIO. A server set up earlier keeps the old names in its rendereddocker-compose.ymluntildeploy setuprenders it again. -
BREAKING (deploy): the server is replaced one version at a time (D-070).
deploy runno longer starts the new server beside the serving one: the serving server stops gracefully, the new image migrates in a one-off run (DW_MIGRATE_ONLY=true), the new server starts; on a failure the previous image is started again. The gap is covered by the client's retries. Stepserver-candidateis gone;serverdoes all of it. -
dartway checkholds the contract's names to the naming law (contractNameInvalid, error — #167): a DTO in the shared package named one word, a read not namedGet…/List…, or a command named like a read. The class name is the wire name, so the check fires before a build carries it. The example'sSearchChatMessagesisListChatMessagesMatching. -
dartway create --languagesets the app's language (#230). The project keeps only that translation (enorru), makes it the template ARB andAppLocaleController.productLocale, and regenerateslib/l10n/gen. The skeleton no longer takes the device's language, and no longer falls back to whichever ARB sorts first. -
A host added to a live stand gets into its certificate.
deploy runleft a lineage certbot already managed untouched, so astorage_domainorsiteadded later was served with a certificate that did not name it. The certificate step now reads the lineage's domains and extends it (--expand, same name) when a served host is missing. -
MinIO comes from quay.io (#264): MinIO removed
minio/minioandminio/mcfrom Docker Hub, so everystorage: miniodeploy failed at the pull. Same releases,quay.io/minio/…;dartway testand the template's compose file follow.registry_mirrornow applies only to official Docker Hub images (postgres,nginx): prefixed onto an image of another registry or a Hub organisation it named nothing. A server set up earlier keeps the old image names in its rendereddocker-compose.ymluntildartway deploy setuprenders it again. -
dartway deploy runsurvives the machine that started it (D-068, #266). Every step runs on the server detached from thesshsession (setsid, streams and exit code in~/.config/<project>/deploy-run/); a broken connection is waited through for up to fifteen minutes.--resumefinishes the deployment the server remembers — passing over done steps, waiting for a running one, running the rest — and a new run refuses while a step of the last one still runs.--progress jsonwrites step events as JSON lines on stdout (prose on stderr).now atand therevisionevent are also reported with--skip-git-update. -
dartway checknames an override the framework caught up with (frameworkOverrideOutlived, warning — D-032). Adependency_overridesversion pin on adartway_*package is reported when a resolved framework package depending on it already allows the locked version, with the file to edit; path and git overrides are left alone. -
BREAKING:
dartway createhands out the 1.0 skeleton. Three packages —*_shared(the contract),*_serverand*_flutter, no generated client package — with sign-in by a one-time code to a phone or an e-mail, the terms accepted on sign-up, a profile with a photo and its sign-in identifiers, roles, an admin panel with a members table and user cards, migrations, a dev seed and tests on both sides. Everything is named after the project: packages, types, the generated registry and schema (dartwayStarter…becomesmyApp…) and the default storage buckets (my-app-public,my-app-private, asdartway deploynames them). The result is formatted, since the renames move line breaks. A project name must now also fit a bucket name: no leading, trailing or doubled underscore, at most 55 characters. -
dartway create --framework-path <monorepo>resolves the new project's framework packages from a local checkout by path —dependency_overridesonto<monorepo>/packagesfor exactly the packages each pubspec reaches — instead of pub.dev, and takes the template from the same checkout. For building the framework, and for versions not yet published. -
dartway deploy checkrefuses a path dependency that leaves the project (dependencies-inside-context, error). Images build from the project root, so a package taken by path from above it — a local framework checkout, the overrides--framework-pathwrites — resolves in every working copy and fails inside the image aspub getexit code 66. Read fromdependencies,dev_dependenciesanddependency_overrides, through sibling packages, and frompubspec_overrides.yamlunless.dockerignorekeeps it out.docker-context-packagesno longer also asks toCOPYsuch a package. The template's and the example's.dockerignorekeep**/pubspec_overrides.yamlout of images. -
dartway deploy setuptakes back a directory on the way to the secret store that the deploy user cannot write —~/.configleft as root's by an earlier tool — non-recursively and only inside the user's own home, and says so. It used to fail as "cannot change permissions … No such file or directory", naming neither the directory nor its owner; when the ownership cannot be changed, the failure now names both and thechownthat fixes it. -
dartway createrecords the language and the notes tracker it was given, so the firstdartway updatekeeps them instead of reinstalling the toolkit in the defaults. -
BREAKING: a CLI with the framework beside it hands out its own revision.
create,setup-aiandupdatewithout a named checkout or a chosen channel (--channel,DARTWAY_BRANCH, or the channel a project recorded forupdate) take the template and the toolkit from the monorepo the CLI runs from — activated by path or by git ref, or run inside the monorepo — instead of cloningstable. The rewrite's CLI used to create 0.x projects that way. A CLI installed from pub.dev has nothing beside it and still takesstable. A project that recorded a channel is not moved onto the checkout by a plainsetup-ai: it is refused, naming--channeland--local-repo. -
BREAKING: the toolkit is installed whole or not at all.
setup-ai,updateandcreaterequire a*_sharedpackage beside*_serverand*_flutter, and the installer no longer knows__CLIENT_PKG__(1.0 has no client package; it filled the token with an empty string, and an older toolkit's skills then named..//lib/src/protocol). Before writing anything the installer reads the toolkit and refuses one holding a token it does not fill, or would fill with nothing, naming each token and its file. -
dartway teststarts a MinIO beside the Postgres (DW_STORAGE_ENDPOINT/_ACCESS_KEY/_SECRET_KEY, the image a deployment runs, in memory, on a port Docker picks) so upload suites run like the database ones.--no-storageskips it;--storage-imagepicks the image. -
BREAKING:
dartway checkjudges a 1.0 project. Removed with the Serverpod core:crudConfigMissing,crudConfigUnregistered,crudRuleUntested(there are no CRUD configs) andgeneratedCodeUnformatted(the generator formats its own output). Added:generatedCodeStale(error) runs the project'sdartway_generator --check, andmigrationsDrift(error) runsbin/migrate.dart checkwhenDW_DATABASE_*names a Postgres — without one it says it did not run. The server layout rule now expectslib/<package>.dart,lib/generated/andlib/src/withsrc/migrations/migrations.dart, instead of the 0.xserver.dartandcrud/endpoints/modelsareas.toolkit_law_list_testis skipped until the toolkit is rewritten for 1.0 (D-033): its law table still names the removed checks. -
dartway quickstartanddartway doctordescribe 1.0: the server configured by its environment and migrating as it starts, Postgres and MinIO fromdocker compose, the dev seed,APP_BOOTSTRAP_ADMIN,dartway dev webfor the browser, and the checks a change passes. -
BREAKING:
dartway deploydeploys the 1.0 stack, and nothing of Serverpod is left in it. One server process configured by its environment alone, behind one front proxy serving three hosts (R2.7):app— the Flutter web image, with/dw/(the/dw/liveWebSocket upgrade included) and/healthproxied to the server on the same origin;api— the server for mobile apps and webhooks; and an optional staticsite. Postgres 17, an optional MinIO with its bucket and the CORS rule a browser needs for a presigned PUT, certbot. The Serverpod configuration reader,passwords.yaml, the insights and web-server ports, Redis and the migration-output parser are gone.deploy/config.yamldescribes the whole environment —api_domain,app_domain,site,storage: minio|externalwithstorage_domain— and refuses a key it does not know, so an older config fails namingweb_app_domainrather than deploying without it. Every problem is reported at once. -
The secret store is an environment file.
~/.config/<project>/secrets.envon the server,KEY='value'lines Compose takes literally. Every deploy renders the checkout's.envfrom it and refuses — by key name, never by value — a missing or empty required secret, a malformed line, a duplicate, or a name the compose file sets itself and would silently override.secret initgeneratesDW_DATABASE_PASSWORD(and the MinIO keys);set,list,put-file,pushandpullkeep their shape, the last two against a git-ignoreddeploy/secrets.yaml. Secret files are mounted at/run/secrets/<name>. -
The migration outcome is the server's exit. The server applies its migrations as it starts and exits non-zero when one fails, so
runstarts the new image beside the serving one and waits for/health; an exit prints the server's own log and stops the deploy with the previous version still answering. Only then is the server replaced, and waited for. -
runends by asking from outside, with the same probesdeploy checkuses:/health200 through both hosts, the Flutterindex.htmlon the app host with a revalidating cache policy, the cache policy of the build's entry points,/dw/liveupgrading through both hosts with the server answering on the socket, the site, and the storage preflight from the app's origin. Before the proxy restart it compares every upstream of the rendered configuration and the snippets with the applied stack, runsnginx -tinside the running proxy, and after the restart checks the proxy is still running. -
New local checks: the server image receives SIGTERM itself (exec-form
ENTRYPOINT); the web image declaresARG DW_BACKEND_URL; a deployed site directory is committed; required secret names are not ones the compose file sets..dockerignoremay admit packages by role glob (!*_server/), and the template and example ignore files do — they no longer restate the package list. The example's ignore file had admitted a package that no longer exists and kept out the shared one both its images copy. -
A local proof of the whole deployment:
dart test -t docker --run-skipped test/deploy_local_stack_test.dartrenders the example's stack in plain-HTTP mode, runs the deploy steps through a local shell, and verifies it — a real sign-in and DTO call through both hosts, a presigned upload through the storage host, a failing candidate that leaves the running server serving, and a graceful stop. -
dartway testpassesDW_DATABASE_*(the maintenance database, TLS off) to the suite;doctorno longer checks a Serverpod CLI;createno longer writes apasswords.yaml; a project needs no*_clientpackage to be recognised. -
dartway dev— the web app and the server on one origin, as deployed (D-039).dev proxyserveshttp://localhost:8000:/dw/*(the/dw/livesocket included) and/healthto the server, everything else to a Flutter web dev server (--web) or a build (--web-dir, with theindex.htmlfallback and theCache-Controlof the project's web imagenginx.conf).dev webrunsflutter run -d web-servercompiled against that origin with the proxy in front, and stops both together. The browser'sHostis passed on as the deployed Nginx passes it, so the live socket's origin check passes withoutDW_ALLOWED_ORIGINS; sockets — the live one and Flutter's hot-reload one — are tunnelled as bytes, close codes included, and responses stream unbuffered. Replaces the proxy each project wrote for itself.