@ultimat3/cli 31.47.1 → 31.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +30 -23
- package/README.md +96 -4
- package/package.json +29 -29
- package/src/api-registration.ts +28 -14
- package/src/app-load.ts +6 -1
- package/src/app-root.ts +7 -1
- package/src/clean-services.ts +142 -0
- package/src/cmd-auth.ts +3 -0
- package/src/cmd-clean-spec.ts +10 -3
- package/src/cmd-clean.ts +23 -9
- package/src/cmd-db-backfill.ts +6 -0
- package/src/cmd-db-branch.ts +10 -4
- package/src/cmd-db-recount.ts +5 -12
- package/src/cmd-db-rollback.ts +77 -0
- package/src/cmd-db-spec.ts +18 -2
- package/src/cmd-db-status.ts +5 -10
- package/src/cmd-db.ts +105 -33
- package/src/cmd-deploy-verify.ts +14 -6
- package/src/cmd-docs-topic.ts +94 -0
- package/src/cmd-docs.ts +15 -1
- package/src/cmd-doctor.ts +109 -41
- package/src/cmd-drill.ts +100 -19
- package/src/cmd-env.ts +30 -8
- package/src/cmd-errors-app.ts +63 -0
- package/src/cmd-errors.ts +50 -14
- package/src/cmd-generate.ts +17 -4
- package/src/cmd-heavy-spec.ts +36 -0
- package/src/cmd-heavy.ts +244 -0
- package/src/cmd-jobs.ts +27 -1
- package/src/cmd-merge-driver-spec.ts +12 -0
- package/src/cmd-merge-driver.ts +95 -0
- package/src/cmd-new.ts +23 -3
- package/src/cmd-policy-spec.ts +9 -1
- package/src/cmd-policy.ts +72 -17
- package/src/cmd-stop.ts +18 -4
- package/src/cmd-tasks-run.ts +87 -0
- package/src/cmd-tasks-spec.ts +10 -3
- package/src/cmd-tasks.ts +8 -5
- package/src/cmd-test.ts +15 -4
- package/src/cmd-upgrade-spec.ts +8 -1
- package/src/cmd-upgrade.ts +32 -5
- package/src/cmd-verify.ts +9 -41
- package/src/codemods/agents-doc-row.ts +73 -0
- package/src/codemods/define-error-leaf.ts +37 -12
- package/src/codemods/docs-many-agents.ts +26 -0
- package/src/codemods/docs-worker-commands.ts +26 -0
- package/src/codemods/index.ts +6 -0
- package/src/codemods/merge-drivers.ts +66 -0
- package/src/command.ts +3 -0
- package/src/db-applied-edits.ts +117 -0
- package/src/db-dev-wire.ts +18 -0
- package/src/db-diagnostics.ts +5 -10
- package/src/db-generate.ts +82 -7
- package/src/db-migrate-pass.ts +51 -0
- package/src/db-migrate-through-dev.ts +209 -0
- package/src/db-rollback-consent.ts +128 -0
- package/src/db-rollback-pass.ts +76 -0
- package/src/db-seed-generate.ts +5 -1
- package/src/db-seed.ts +7 -1
- package/src/deploy-verify-findings.ts +3 -0
- package/src/deploy-verify-grade.ts +3 -0
- package/src/deploy-verify-processes.ts +32 -0
- package/src/dev-boot.ts +3 -0
- package/src/dev-db-migrate.ts +155 -0
- package/src/dev-db-rollback.ts +33 -0
- package/src/dev-db-settled.ts +22 -0
- package/src/dev-lock-errors.ts +78 -0
- package/src/dev-lock-holder-dir.ts +64 -0
- package/src/dev-lock-live.ts +44 -0
- package/src/dev-lock.ts +59 -84
- package/src/dev-policy.ts +11 -8
- package/src/dev-rebuild-schema.ts +116 -13
- package/src/dev-rebuild.ts +13 -4
- package/src/dev-route-table.ts +7 -0
- package/src/dispatch.ts +21 -1
- package/src/doctor-advisory-floors.ts +30 -8
- package/src/doctor-api-listing.ts +114 -0
- package/src/doctor-guarded.ts +41 -0
- package/src/doctor-port.ts +90 -17
- package/src/doctor-probe.ts +36 -5
- package/src/doctor-processes-probe.ts +127 -0
- package/src/doctor-processes.ts +136 -0
- package/src/doctor-warnings.ts +17 -0
- package/src/error-codes-agents.ts +35 -0
- package/src/error-codes-processes.ts +30 -0
- package/src/error-codes-tooling.ts +11 -3
- package/src/error-codes.ts +12 -13
- package/src/errors-suite.ts +27 -0
- package/src/errors.ts +18 -22
- package/src/exec.ts +11 -3
- package/src/exercise-registration.ts +4 -3
- package/src/framework-env.ts +7 -3
- package/src/generate-files.ts +1 -0
- package/src/generate-grant-findings.ts +7 -5
- package/src/generate-grants.ts +9 -8
- package/src/generate-kinds.ts +30 -6
- package/src/generate-roles-file.ts +30 -0
- package/src/generate-slice-policy.ts +3 -3
- package/src/guards.ts +2 -2
- package/src/heavy-cores.ts +51 -0
- package/src/heavy-env.ts +21 -0
- package/src/heavy-errors.ts +54 -0
- package/src/heavy-flock.ts +73 -0
- package/src/heavy-holders.ts +78 -0
- package/src/heavy-ledger.ts +400 -0
- package/src/heavy-memory.ts +67 -0
- package/src/heavy-pressure.ts +104 -0
- package/src/heavy-weights.ts +47 -0
- package/src/heavy.ts +308 -0
- package/src/i18n-registration.ts +22 -2
- package/src/island-harness.ts +2 -2
- package/src/job-budget.ts +4 -2
- package/src/job-registration.ts +64 -8
- package/src/jobs-queue-known.ts +43 -0
- package/src/local-cli.ts +6 -5
- package/src/mcp-errors-agents.ts +20 -0
- package/src/mcp-errors-doctor.ts +27 -0
- package/src/mcp-errors-processes.ts +23 -0
- package/src/mcp-errors.ts +18 -29
- package/src/mcp-host.ts +2 -2
- package/src/merge-driver-catalog.ts +58 -0
- package/src/merge-driver-config.ts +43 -0
- package/src/merge-driver-lines.ts +140 -0
- package/src/merge-state.ts +105 -0
- package/src/messages-db.ts +22 -1
- package/src/messages-processes.ts +13 -0
- package/src/messages-upgrade.ts +6 -0
- package/src/messages.ts +62 -1
- package/src/output-findings.ts +48 -21
- package/src/parse.ts +37 -6
- package/src/policy-facts.ts +38 -21
- package/src/policy-row.ts +99 -0
- package/src/port-pair-free.ts +28 -0
- package/src/registry-lines.ts +110 -0
- package/src/registry.ts +4 -0
- package/src/retain-sweep.ts +1 -1
- package/src/role-replicator.ts +9 -4
- package/src/role-select.ts +86 -0
- package/src/role-start.ts +13 -55
- package/src/role-sync.ts +10 -5
- package/src/runtime-cache-frame.ts +46 -0
- package/src/runtime-cache-ttl.ts +23 -0
- package/src/runtime-cache.ts +56 -18
- package/src/runtime-database-ssl.ts +84 -0
- package/src/runtime-idempotency-scope.ts +16 -2
- package/src/runtime-jobs-share.ts +52 -0
- package/src/runtime-jobs.ts +43 -12
- package/src/runtime-overrides.ts +4 -2
- package/src/runtime-queue.ts +18 -3
- package/src/runtime-services.ts +8 -1
- package/src/schema-drift.ts +19 -2
- package/src/schema-dump-drift.ts +4 -1
- package/src/serve-boot-probe.ts +30 -2
- package/src/serve-boot.ts +11 -1
- package/src/serve-env.ts +39 -3
- package/src/serve.ts +61 -10
- package/src/stop-run-start.ts +12 -0
- package/src/supervise-boot.ts +61 -0
- package/src/supervise-cgroup.ts +84 -0
- package/src/supervise-child.ts +206 -0
- package/src/supervise-count.ts +244 -0
- package/src/supervise-errors.ts +83 -0
- package/src/supervise-facts.ts +40 -0
- package/src/supervise-messages.ts +84 -0
- package/src/supervise-policy.ts +46 -0
- package/src/supervise-pool.ts +10 -0
- package/src/supervise-probe.ts +158 -0
- package/src/supervise-run.ts +54 -0
- package/src/supervise.ts +383 -0
- package/src/templates/generate-purge.ts +6 -6
- package/src/templates/guard-animated-layout-property.ts +2 -2
- package/src/templates/guard-bare-error.ts +1 -1
- package/src/templates/guard-error-declared.ts +2 -2
- package/src/templates/guard-focus-visible.ts +1 -1
- package/src/templates/guard-image-dimensions.ts +2 -2
- package/src/templates/guard-island-mount-clears.ts +1 -1
- package/src/templates/guard-native-confirm.ts +1 -1
- package/src/templates/guard-raw-breakpoint.ts +2 -2
- package/src/templates/guard-raw-colour.ts +2 -2
- package/src/templates/guard-raw-fetch.ts +1 -1
- package/src/templates/guard-raw-interval.ts +1 -1
- package/src/templates/guard-raw-length.ts +3 -3
- package/src/templates/guard-raw-motion.ts +1 -1
- package/src/templates/guard-raw-shadow.ts +1 -1
- package/src/templates/guard-raw-z-index.ts +1 -1
- package/src/templates/guard-released-forms.ts +59 -13
- package/src/templates/guard-repo-await-in-loop.ts +1 -1
- package/src/templates/guard-repo-raw-sql.ts +4 -4
- package/src/templates/guard-repo-unbounded.ts +1 -1
- package/src/templates/guard-runtime-pin.ts +1 -1
- package/src/templates/guard-semantic-interactive.ts +2 -2
- package/src/templates/guard-unbounded-fanout.ts +1 -1
- package/src/templates/guard-undeclared-custom-property.ts +3 -3
- package/src/templates/guard-undefined-style-class.ts +3 -3
- package/src/templates/guard-unzoned-date.ts +3 -3
- package/src/templates/query-slice.ts +82 -0
- package/src/templates/query.ts +76 -30
- package/src/templates/resource-page.ts +3 -2
- package/src/templates/scaffold-bin.ts +2 -0
- package/src/templates/scaffold-claude-agents.ts +9 -6
- package/src/templates/scaffold-claude-commands.ts +7 -1
- package/src/templates/scaffold-claude.ts +4 -4
- package/src/templates/scaffold-container-compose.ts +47 -7
- package/src/templates/scaffold-docs.ts +11 -6
- package/src/templates/scaffold-gitattributes.ts +18 -1
- package/src/templates/scaffold-helm-templates.ts +9 -0
- package/src/templates/scaffold-repo.ts +4 -1
- package/src/templates/scaffold-test-services.ts +33 -11
- package/src/templates/shapes/offline.ts +0 -7
- package/src/templates/shapes/realtime.ts +2 -6
- package/src/templates/sign-in-action-tests.ts +6 -4
- package/src/templates/sign-in-challenge.ts +62 -0
- package/src/templates/sign-in-oidc-mfa.ts +31 -0
- package/src/templates/sign-in-oidc.ts +11 -3
- package/src/templates/sign-in-password.ts +18 -56
- package/src/test-batches.ts +9 -3
- package/src/test-shards.ts +117 -37
- package/src/test-slots.ts +35 -161
- package/src/test-verdict.ts +79 -0
- package/src/test-workers.ts +15 -0
- package/src/upgrade-gate-codemods.ts +5 -3
- package/src/upgrade-gate.ts +19 -1
- package/src/upgrade-merge-drivers.ts +25 -0
- package/src/upgrade-report.ts +18 -4
- package/src/upgrade-scope.ts +62 -0
- package/src/verify-checks.ts +6 -11
- package/src/verify-coverage-run.ts +9 -5
- package/src/verify-deadline.ts +18 -2
- package/src/verify-heavy-steps.ts +26 -0
- package/src/verify-live.ts +38 -14
- package/src/verify-only.ts +67 -0
- package/src/verify-progress.ts +7 -3
- package/src/verify-run.ts +20 -2
- package/src/verify-services-stack.ts +165 -0
- package/src/verify-services.ts +84 -2
- package/src/verify-test-run.ts +9 -9
- package/src/verify-tests.ts +35 -22
- package/src/verify-typecheck.ts +25 -2
- package/wiki/Actions.md +2 -1
- package/wiki/Admin-Dashboard.md +2 -2
- package/wiki/Agents.md +5 -5
- package/wiki/Auth.md +15 -5
- package/wiki/Bare-VM.md +1 -1
- package/wiki/Building-Your-Own-Base.md +15 -2
- package/wiki/CI-Parallel-Gate.md +4 -4
- package/wiki/CLI-Reference.md +127 -48
- package/wiki/Caching-And-Invalidation.md +2 -2
- package/wiki/Client-Navigation.md +1 -1
- package/wiki/Configuration.md +32 -13
- package/wiki/Deployment.md +44 -4
- package/wiki/Entities-And-Migrations.md +5 -1
- package/wiki/FAQ.md +1 -1
- package/wiki/Getting-Started.md +2 -2
- package/wiki/Home.md +2 -1
- package/wiki/I18n.md +5 -3
- package/wiki/Installation.md +12 -11
- package/wiki/Interface-Rules.md +1 -1
- package/wiki/Jobs-And-Workflows.md +24 -4
- package/wiki/Known-Gaps.md +2 -2
- package/wiki/MCP-And-AI.md +8 -5
- package/wiki/Mail.md +1 -1
- package/wiki/Many-Agents.md +127 -0
- package/wiki/Migrations-And-Backfills.md +18 -0
- package/wiki/Notify.md +1 -1
- package/wiki/Observability.md +13 -0
- package/wiki/Queries-And-Live-Queries.md +2 -2
- package/wiki/Realtime.md +10 -1
- package/wiki/Routes-And-Render-Modes.md +1 -1
- package/wiki/Scheduled-Tasks.md +4 -1
- package/wiki/Testing.md +12 -9
- package/wiki/Timezones-And-Dates.md +5 -1
- package/wiki/Troubleshooting.md +1 -0
- package/wiki/Tutorial-01-First-App.md +5 -5
- package/wiki/Tutorial-02-First-Feature.md +1 -1
- package/wiki/Tutorial-03-Auth-And-Admin.md +7 -6
- package/wiki/Upgrading.md +37 -0
package/wiki/Upgrading.md
CHANGED
|
@@ -61,6 +61,15 @@ Each entry changes a surface the table below covers.
|
|
|
61
61
|
| that the tarball is attested | `npm view @ultimat3/core dist.attestations` | a `provenance` object |
|
|
62
62
|
| every name that must move together | `bun run scripts/release-workflow.ts --json` | the 30 derived names — check each |
|
|
63
63
|
|
|
64
|
+
**A hop's gate, handed to CI in part.** `As of 2026-11-19`. A bare `x upgrade --json` runs the full `x verify` and is the default. On a loaded machine, `x upgrade --only <step>[,<step>…] --json` runs the hop's `x verify` on those steps alone — the list `x verify --only` takes, refused the same way — and every other stage of the hop unchanged. It is **not the full gate**, and the report says so: `proof: "verify-only"`, `verify.only[]` the steps run, `verify.notRun[]` the rest, a summary reading `NOT THE FULL GATE`, and `then` naming `x verify --only <the rest> --json`. Commit the hop on a branch and let CI run the rest; the hop is proven when that is green.
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
x upgrade --only typecheck,lint --json # here: two steps, and the hop
|
|
68
|
+
# then, in CI on the hop's commit: x verify --only <data.verify.notRun, comma-joined> --json
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
To leave only `unit`, `live` and `e2e` to CI, name every other step: `x help verify` lists them in the gate's order.
|
|
72
|
+
|
|
64
73
|
## 30.x → 31.0.0, entry by entry
|
|
65
74
|
|
|
66
75
|
`As of 2026-11-10`, released: the 74 breaking entries of `CHANGELOG.md`'s `## 31.0.0` section, in their order. No legacy path, no codemod, no shim. v31 is the stable line — the next major waits for its window ([Stability](Stability)).
|
|
@@ -319,6 +328,34 @@ A setter still on a package's `.` barrel is `X_ADAPTER_PORT_INCOMPLETE` on the `
|
|
|
319
328
|
| an offline replay sends `x-ultimate-replay-scope`, and the action route answers a session other than the queue's owner `409 X_REPLAY_PRINCIPAL_MISMATCH`, the entry kept `pending` (**31.47.0**, [Realtime](Realtime#tier-3-shipped-in-2100)); `DEFAULT_CORS.allowHeaders` lists the header | an app setting `cors.allowHeaders` replaces that list (`packages/http/src/config.ts`): add `x-ultimate-replay-scope` to it. A cross-origin caller sending the header needs this; the page outbox replays to a same-origin path, which has no preflight. An app on several processes sets `SESSION_SECRET` (32+ characters), or a replay reaching another process is refused |
|
|
320
329
|
| `x exercise` with no `--seed`, and so `x verify`'s `exercise` step, runs one constant seed (**31.47.0**) where each run drew a random one, and `seed` in `.x/exercise.json` is always the number used, never `null`. One tree now gets one verdict, but an `exercise.unprovenMax` measured under random seeds can sit just below the constant seed's figure, so the first gate after the hop can be `X_EXERCISE_UNPROVEN_ABOVE_FLOOR`. `x upgrade` writes a figure only where the app states none, and never raises one | `x exercise --json`, then fix the helper or override each `unproven` record names: pick rows by what they are, never by id order, and assume no order between sized calls ([Testing](Testing)). If the figure that remains is the honest one, raising `unprovenMax` to it is your own reviewed edit of `x.verify.json`. `x exercise --seed random` looks for seed-dependent helpers |
|
|
321
330
|
| `x upgrade` stops requiring an `e2e` suite no codemod wrote (**31.47.1**): an app with pages but no `apps/web/site/page.tsx` was left on `X_VERIFY_SUITE_VANISHED`. Rerunning `x upgrade` at the target no longer replays every codemod | nothing: `x upgrade` applies codemod `e2e-suite-floor`, which writes a `page.e2e.test.ts` beside the shortest parameter-free page, or moves `e2e` to `skip` with its why when no page can be visited. To apply codemods an older CLI left behind: `x upgrade codemods --from 0.0.0 --json` |
|
|
331
|
+
| 24 shipped guards' fixes change (**31.49.0**), built in; their findings do not: `animated-layout-property`, `bare-error`, `error-declared`, `focus-visible`, `image-dimensions`, `island-mount-clears`, `native-confirm`, `raw-breakpoint`, `raw-colour`, `raw-fetch`, `raw-interval`, `raw-length`, `raw-motion`, `raw-shadow`, `raw-z-index`, `repo-await-in-loop`, `repo-raw-sql`, `repo-unbounded`, `runtime-pin`, `semantic-interactive`, `unbounded-fanout`, `undeclared-custom-property`, `undefined-style-class` and `unzoned-date` end their fix on the one step that re-checks it (`then: x verify --only boundaries`) in place of `then: x verify`, which started the whole gate. A copy still in `guards/` keeps the old text until `x upgrade` migrates it to the release after 31.48.0 | nothing |
|
|
332
|
+
| **Upgrading to the next release: what to check**, in this order. `As of 2026-11-19`; each row below names one check, and [`CHANGELOG.md`](https://github.com/developerz-ai/ultimate/blob/main/CHANGELOG.md)'s `[Unreleased]` carries the detail. Five `app.config.ts` keys that were validated and read by nothing are **read** now (the next row) | run the rows in order, then `x verify` |
|
|
333
|
+
| `app.config.ts` keys now read (**31.49.0**): `roles` — a `ROLE` it does not list refuses to boot (`X_CONFIG_INVALID`, `meta.key: 'roles'`; `ROLE=migrate` exempt); `database.ssl: true` adds `sslmode=require` on **every** pool — serving roles, `x dev`, migrate, the replicator's `DATABASE_URL` and `REPLICATION_URL`, `x doctor`'s probes, `x db branch`, `x deploy verify` — unless the URL or `PGSSLMODE` states a mode; `cache.defaultTtlMs` sets the boot-built `lru`/`redis` lease (a Redis rung held such values 300 s, now 60 s by default; `0` is refused); `jobs.maxAttempts` (default now `3`, not the documented `5`) and `jobs.backoff` apply to every job declaring no `retry` | `grep -n 'roles\|ssl\|defaultTtlMs\|maxAttempts\|backoff' app.config.ts`. `roles`: every `ROLE` your compose services, Helm values or platform processes start is listed, or drop the key. `ssl: true` against a Postgres without TLS: `database: { ssl: false }` or `?sslmode=disable` in each URL. `defaultTtlMs: 0`: a positive lease. `maxAttempts` / `backoff`: keep them only if they are the retry you want for every job declaring none |
|
|
334
|
+
| `pwa.enabled`, `pwa.backgroundSync` and `pwa.push` must be real booleans (**31.49.0**), checked even when `enabled` is false: `'false'` used to turn the PWA **on**; a non-list `pwa.categories` / `shortcuts` / `screenshots`, a non-string `neverCache` entry or `site.favicon` are refused too — `X_CONFIG_INVALID` at boot | each a literal `true` or `false` in `app.config.ts`'s `pwa` block |
|
|
335
|
+
| a records channel keyed by a param that is not the tenant column (a `roomId` topic) delivers a tenanted row only to members of that row's tenant, live and on replay (**31.49.0**); every other member receives the seq alone | nothing, unless a channel deliberately fanned one org's rows out to members of other orgs: that feed needs its own untenanted table or a channel keyed by the tenant column |
|
|
336
|
+
| `directionOf` / `isRtl` read an explicit script subtag first, and bare `ku` is `ltr` (Kurmanji, Latin script) (**31.49.0**) | an app serving Kurdish in Arabic script under `ku`: rename the locale `ku-Arab` or `ckb`, or its pages render `dir="ltr"` |
|
|
337
|
+
| outside dev, an undeclared non-`X_` code on an unclassified 5xx (a driver's `23505`, `ENOENT`, an app's `E_UPSTREAM`) is served as `X_INTERNAL` (**31.49.0**); a hang-up is `499 X_ABORTED`, no longer a reported 500, and `hooks.onError` receives the coded error; the request deadline ends at the headers, so a streamed answer is bounded only by the caller leaving | a client switching on such a code: declare it — `defineError`, or `registerErrorStatus({ E_UPSTREAM: 502 })`. An `onError` matching `AbortError` matches `code === 'X_ABORTED'`. A streamed agent answer that needs a cap: `withChildContext({ signal: AbortSignal.timeout(ms) }, …)` |
|
|
338
|
+
| `redisJobDriver()` (**31.49.0**): failed, dead and expired rows expire after 90 days (`deadTtlMs`), and with no `clock` injected leases, retries and gauges are measured on the Redis server's clock | to keep dead rows: `redisJobDriver({ deadTtlMs: 0 })`. A test freezing time against a real Redis driver: `redisJobDriver({ clock })`. Postgres apps: nothing |
|
|
339
|
+
| `x g sign-in --oidc` now passes `mfaPath` and writes the second-factor page (**31.49.0**); an app generated before still answers an MFA-enrolled SSO user 401 `X_MFA_REQUIRED` | an OIDC app with MFA users: `mfaPath: '<your second-factor page>'` in its `oauthLogin` / `identityProviderRoutes` call, and that page calling `completeMfa(auth, readMfaChallenge(request) ?? '', code)` then sending `clearMfaChallengeCookie()` ([Auth](Auth)). A fresh `x g sign-in --oidc --dry-run` in a scratch app shows the six files. No codemod |
|
|
340
|
+
| beside an `x dev` holding the embedded database (**31.49.0**): `x db migrate` is applied by that dev server; `x db seed`, `x db backfill --write`, the writing `x jobs` verbs and `x auth seal-mfa` refuse `X_DEV_ALREADY_RUNNING`; `x jobs pause\|resume` refuses a queue the app does not serve (`X_CLI_BAD_FLAG`) | a script or agent loop running those beside `x dev`: `x stop --json && <the command> && x dev`. A runbook pausing a queue reached only by `enqueue({ queue })`: add it to `jobs.queues` |
|
|
341
|
+
| `x db gen` asks for a plain column made `generated` as a drop (**31.49.0**): `X_MIGRATION_ROLLING_UNSAFE`, then `X_MIGRATION_IRREVERSIBLE` | `x db gen "<name>" --allow-destructive --rolling-unsafe`, or retire the column first. The stored values are lost either way |
|
|
342
|
+
| `.search()` inside `crossTenant()` through an external `SearchIndex` refuses a chain naming no tenant (**31.49.0**, `X_INVARIANT_VIOLATED`); `matches(/…/)` refuses an astral literal, a bound above 255, a `-` after a range in a class and a quantified lookaround at declaration; a natural-key `upsertAll` is reported to `entity.row` as `update` with its `before` | an external index: `andWhere('<tenant>', 'in', [<orgId>, …]).search(…)`. A refused pattern: the refusal names the portable spelling. A subscriber or test expecting `insert` there: `update` |
|
|
343
|
+
| OAuth (**31.49.0**): `/oauth/register` takes at most 10 `redirect_uris` of 2,048 characters, self-registered clients get `d_` ids that `purge()` reaps once idle and unnamed, limits are per IPv6 /64; `mcpOAuthClient().begin()` refuses a non-loopback `http:` server or issuer, and `refresh()` answers the token it was passed when the server sends none | a hand-written `AuthServerStore`: re-run `authServerStoreConformance` — its `purge` must reap those clients. An internal MCP server on plain `http:` by hostname: serve it over TLS. Consent pages: show `client.host` beside `client.name` |
|
|
344
|
+
| a push service's 401/403 keeps the subscription (**31.49.0**), refused by code and logged; a served-stale `isr` answer is `public, max-age=0, s-maxage=0` | after a real VAPID key rotation, old rows stay until each browser re-subscribes or the row expires. Behind a CDN: one extra origin request per stale serve, no stale window at the edge |
|
|
345
|
+
| AI and tests (**31.49.0**): `postgresVectorStore()` lexical search matches any word and reads no websearch syntax; `defineEval` refuses a `NaN`, infinite or negative `tolerance` (`X_INVARIANT`); `ULTIMATE_EVAL_RECORD=0` / `false` / `no` / `off` gates; `toBeWithinBudget` refuses a non-finite limit (`X_TEST_NUMBER_EXPECTED`); `chunkDocument` cuts a little earlier | drop `"…"` / `-word` from vector queries; `grep -rn 'tolerance\|toBeWithinBudget' apps packages` — a number ≥ 0, a finite limit. Re-indexing may change chunk ids: re-run `indexDocument` for every document, not a subset |
|
|
346
|
+
| `x env check` with no `ULTIMATE_ENV`, `NODE_ENV` or `CI` set checks as **development** (**31.49.0**), as `x dev` runs there; it checked as production. Under `CI`, or with either name set, nothing changes | a deploy script running a bare `x env check` on a host that sets none of the three: `ULTIMATE_ENV=production x env check` |
|
|
347
|
+
| `x test <type>` exits 1 with `X_TEST_FAILED` when every test it selected skipped itself (**31.49.0**), where it exited 0 having checked nothing; `x verify` is unaffected | a script calling `x test live` (or any type) without the services: `docker compose -f docker/docker-compose.test.yml up -d --wait && set -a && . docker/test-services.env && set +a` first, or drop the call |
|
|
348
|
+
| `x dev` is `✗ dev ready` while migrations on disk are ahead of its database (`X_APP_MIGRATIONS_UNAPPLIED`) or an applied one was edited (**31.49.0**), and a schema finding no longer restarts it; on the embedded database `x db gen` refuses an edited applied migration (`X_MIGRATION_CONFLICT`, nothing written) | a workflow starting `x dev` before its first migrate: `x db migrate`. A script waiting for a fresh `✓` banner after `x db gen`: read `/_x` (or `x dev --json --once`). An edited applied migration: restore it (`git checkout <rev> -- packages/db/migrations/<id>.sql`), or rebuild the dev database with `x stop --json && x db reset` |
|
|
349
|
+
| `x policy explain --json` (**31.49.0**): a row whose predicate reads request input it was not given is `verdict: "needs-input"`, `allowed: null`, counted in `data.pending` — it was `allowed: false` | a script reading `!allowed` as denied: `verdict === "deny"`. To decide such a row: `x policy explain <subject> --input '<json>'` |
|
|
350
|
+
| an action's `Date` output now reaches the typed client as a `Date` (**31.49.0**), on the plain and enveloped 200 and in streamed `chunk` / `done` frames; past 1,536 bytes of `x-ultimate-dates` an answer's instants stay ISO strings (`http.wire_dates_dropped`, logged once) | island code that called string methods on such a value (`.slice`, `.localeCompare`) must change: `grep -rn 'useAction\|clientStream' apps/web`, then read each such field as a `Date` |
|
|
351
|
+
| a scheduled fan-out entry whose `tenant()` throws or answers empty (**31.49.0**) fails the whole occurrence: nothing queued, `jobs.scheduler.entry-refused` logged naming the task, job and entry, retried every tick until repaired | nothing, unless the log shows that line: repair the declaration or the data, and the next tick queues the whole occurrence |
|
|
352
|
+
| `x db rollback` against an external `DATABASE_URL` on another machine (**31.49.0**) needs `ROLLBACK_ALLOW_DESTRUCTIVE` naming each id, whatever `ULTIMATE_ENV` says (a compose service host like `db` included) | a script rolling back such a database: `ROLLBACK_ALLOW_DESTRUCTIVE=<id>[,<id>…] x db rollback --json` |
|
|
353
|
+
| `x dev` runs only the roles `app.config.ts` `roles` declares, when set (**31.49.0**), and logs the ones it left out; `x dev --role` naming only undeclared roles is `X_CONFIG_INVALID` | an app declaring `roles`: list every role `x dev` should run (the scheduler and sync included) |
|
|
354
|
+
| `x tasks run <name>` (new, **31.49.0**) under `ULTIMATE_ENV=production` fires only with `--production` or `ULTIMATE_TASK_RUN=<name>`, else `X_TASK_RUN_PRODUCTION` | nothing |
|
|
355
|
+
| `X_JOB_OUTLASTS_DRAIN` with `drain.workerRetireMs: 0` grades against the drain's real cancel (**31.49.0**), the later hooks' reserve and the 2 s margin before the deadline: 21 s of a 25 s `drain.deadlineMs`, was 23 s | `x verify --only manifest --json`; a job it names: raise `drain.workerRetireMs` or lower its `timeout` |
|
|
356
|
+
| fix text changed, codes unchanged (**31.49.0**): `X_ENV_MISSING` is the line to add to the file the environment loads; `X_CATALOG_MISSING_KEYS`'s comment half; `X_TEST_FAILED` reruns the first failing file; on the embedded development database `X_MIGRATION_CONFLICT` and `X_MIGRATION_ROLLBACK_DESTRUCTIVE` lead with `x stop --json && x db reset` | anything matching those strings exactly: `grep -rn 'x env check\|as ⟦key⟧' <your scripts>` and match the new text |
|
|
357
|
+
| new scaffolds (**31.49.0**): `docker/docker-compose.test.yml` is named `<app>-test-<hash of the directory>` with ports picked per directory, and `package.json` declares `@ultimat3/realtime` | nothing; an existing app keeps its `name:` and dependency set. One importing `@ultimat3/realtime` without declaring it: `bun add --exact @ultimat3/realtime@$(bun -p "require('./package.json').dependencies['@ultimat3/core']")`. Sharing a test stack with a same-named app: its own `name:` and ports in the compose file and `docker/test-services.env` |
|
|
358
|
+
| a production container runs one process per declared CPU (**31.49.0**, `ULTIMATE_PROCESSES=auto`, [Processes per container](Deployment#processes-per-container)), and `jobs.concurrency`, `jobs.maxInFlight` and `DATABASE_POOL_MAX` are per **container**, split across its processes. A no-op for a container that declares no CPU quota (no `cpus:` in Compose, no CPU limit in Kubernetes — every scaffold before this): it still runs one process, where container and process are the same. A service that **already** declares `cpus:` of 2 or more, or a Kubernetes CPU limit of 2 or more, runs that many processes once every clamp passes (shared state, the pool, a prebuilt image). The new scaffold's compose declares `cpus:` per role and `init: true`, and carries `sysctls: { net.ipv4.tcp_migrate_req: 1 }` on `web`/`sync` commented out (Linux ≥ 5.14 only: on an older kernel Docker refuses to create the container); its chart pins `ULTIMATE_PROCESSES: "1"` | with no CPU quota anywhere: nothing. A service with `cpus:` or a CPU limit ≥ 2: `x doctor` names the count each role would run; set `ULTIMATE_PROCESSES=1` on it to keep one process, or keep N and, on a host ≥ Linux 5.14, add `sysctls: { net.ipv4.tcp_migrate_req: 1 }` to `web`/`sync`. To use a second core on purpose: `cpus: '2'` on the service (and 256 MiB of `mem_limit` per process), `init: true`, the same `sysctls:` line where the kernel has it, then `x doctor`. A worker with `concurrency: 1` stays serial across the container |
|
|
322
359
|
|
|
323
360
|
## 29.x → 30.0.0, entry by entry
|
|
324
361
|
|