sage: row 175 brief carries the scripts/mosaic dispatch fix (plugins, name, names, follow, threads, thread go to packages/cli), test 12 and a mutant; found in Darkwing's row 169 rehearsal
This commit is contained in:
@@ -68,6 +68,16 @@ Add `--tester` to these read forms:
|
||||
`instance_names.by` and `projects.created_by` are `TEXT NOT NULL` with no CHECK
|
||||
(`packages/bus/src/migrations/3f-3g.sql:5-12`, `3d-3e.sql:2-10`), so no migration.
|
||||
|
||||
### `scripts/mosaic` sends these verbs to the wrong CLI
|
||||
|
||||
Added 2026-10-19 after Darkwing's row 169 rehearsal. `scripts/mosaic:37-39` sends only `usage`, `project`,
|
||||
`limits`, `inbox`, `decide`, `tasks`, `agents`, `trail`, `talk`, `stop`, `launches` and `bus` to
|
||||
`packages/cli/src/cli.mjs`. Everything else falls through to the seat CLI, which prints `usage: mosaic launch ...`.
|
||||
That includes `plugins`, `name`, `names`, `follow`, `threads` and `thread`, though `cli.mjs:571-581` handles them
|
||||
all. So `mosaic plugins set` (W1), `mosaic name` (W4) and `mosaic names` fail through the wrapper, while
|
||||
`packages/plugins/README.md:52-53` and `packages/webui/README.md:645` document them. Add those six verbs to that
|
||||
case line. `queue` and `business` keep their own branches.
|
||||
|
||||
### W1-W3, the organization branch
|
||||
|
||||
- In the branch at `broker.mjs:1224`, a tester session passes for `plugins.set`, `instances.set` and `routes.set`
|
||||
@@ -168,7 +178,10 @@ Each runs on its own.
|
||||
10. The CLI refuses `--tester` with exit 4, before any bus call, on `limits set` and every other write form not in
|
||||
W1-W7.
|
||||
11. With `bus.tester` unset or not exactly true, the tester binding refuses `tester-off` and no read or write runs.
|
||||
12. `TESTER_VERBS` is pinned as a list: the old ten, the seven reads, `name.set` and `project.create`. (W1-W3 pass in
|
||||
12. `scripts/mosaic` sends `plugins`, `name`, `names`, `follow`, `threads` and `thread` to `packages/cli` and not
|
||||
to the seat CLI. Model the test on `packages/cli/tests/instances.test.mjs:146`. The seat usage that
|
||||
`app.test.mjs:832` pins doesn't change.
|
||||
13. `TESTER_VERBS` is pinned as a list: the old ten, the seven reads, `name.set` and `project.create`. (W1-W3 pass in
|
||||
the organization branch, so they aren't in the list; a test pins that branch's tester set as
|
||||
`limits`, `plugins`, `instances`, `plugins.set`, `instances.set`, `routes.set`.)
|
||||
|
||||
@@ -183,6 +196,7 @@ Mutants, each killed by some gate test (mos-0862):
|
||||
- skip W7's tester bind (step 2), so init runs with `bus.tester` off
|
||||
- the CLI accepts `--tester` on `limits set`
|
||||
- the CLI drops `--tester` before `callFor` on any read
|
||||
- drop `plugins` or `name` from the `scripts/mosaic` case line
|
||||
|
||||
## Gate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user