salvage 2026-11-06: uncommitted work from scratch/darkwing-scratch/r165/wt (disk cleanup #824)

This commit is contained in:
mos committed 2026-11-06 10:04:15 -06:00
1 parent b8036b6089
commit 1dd8507381
16 files changed
+357 -15

No files matched your search

+17
View File
@@ -220,6 +220,9 @@ abandon it) · `4` usage. Details: `packages/queue/README.md`.
```bash
scripts/mosaic business validate <business>
scripts/mosaic business resolve <business> <instance> [--project <id>]
scripts/mosaic business instances <business> [--json]
scripts/mosaic business instance add <business> <instance> --definition <def> [--vars <file>] [--launch] --revision <rev>
scripts/mosaic business instance set <business> <instance> [--definition <def>] [--vars <file>] [--launch | --no-launch] --revision <rev>
```
Reads `businesses/<business>.json` next to the system config
@@ -234,6 +237,20 @@ Exit codes: `0` ok · `2` invalid file or credential reference · `3` system
config problem · `4` usage or a required file missing. Details:
`packages/business/README.md`.
`instances` and `instance add|set` (row 165) go to `packages/cli` and the
bus's human-only `instances` and `instances.set` verbs, so they need a live
bus host and refuse inside an agent session. `instances` prints the revision,
each instance and the definitions `add` and `set` accept. `add` and `set`
write the business file under that revision and log the change with you as
the actor. They bind no credentials: a definition that declares credentials,
or a definition change on an instance that holds them, is refused with
`organization-credentials-out-of-scope` and stays a hand edit. After an add
or a definition change the output says a bus restart is needed; the restart
needs Mos's go or Jason's hand, and the command doesn't run it. Exit codes:
`0` ok · `2` refused, nothing written · `3` human proof refused · `4` usage.
The Console's Settings page has the same two forms. Details:
`packages/cli/README.md`.
## Inbox, decisions and the bus host (`scripts/mosaic`)
```bash
+16 -3
View File
@@ -25,9 +25,22 @@ bus schema.
- `mosaic inbox` shows no open decision. If one is open, resolve or
supersede it first, so step 6 starts from an empty inbox.
- The business has security-reviewer and merge-gate instances, and both
are in `launch.instances`. No verb adds an instance today, so Jason adds
them by editing the business file, then runs
`scripts/mosaic business validate <business>`.
are in `launch.instances`. Jason adds them with the row 165 command (or
the Console's Settings page), reading the revision first, then runs
`scripts/mosaic business validate <business>`:
```
scripts/mosaic business instances <business>
scripts/mosaic business instance add <business> security-reviewer --definition security-reviewer --launch --revision <rev>
scripts/mosaic business instances <business>
scripts/mosaic business instance add <business> merge-gate --definition merge-gate --launch --revision <rev>
scripts/mosaic business validate <business>
```
Each add prints the new revision, so the second add can take it instead
of a second read. Both adds say a bus restart is needed. The running bus
only learns the new instances at restart, which needs Mos's go or Jason's
hand.
- `arbiters.technical` is `cto`, which step 5 assumes.
## Steps