@astrale-os/sdk 0.6.0-beta.23 → 0.6.0-beta.24

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.
Files changed (181) hide show
  1. package/README.md +30 -36
  2. package/dist/application/define.d.ts +3 -1
  3. package/dist/application/define.js +16 -2
  4. package/dist/application/domain.d.ts +3 -1
  5. package/dist/application/index.d.ts +1 -1
  6. package/dist/application/mutation/index.d.ts +1 -1
  7. package/dist/application/query/composite/plan.d.ts +0 -4
  8. package/dist/application/query/composite/plan.js +0 -2
  9. package/dist/application/view/define.js +4 -6
  10. package/dist/application/view/frontend.d.ts +2 -2
  11. package/dist/application/view/index.d.ts +1 -1
  12. package/dist/application/view/route.d.ts +0 -14
  13. package/dist/application/view/route.js +1 -64
  14. package/dist/deployment/adapter/adapter.d.ts +3 -20
  15. package/dist/deployment/adapter/bundle/file.d.ts +1 -1
  16. package/dist/deployment/adapter/define.d.ts +4 -25
  17. package/dist/deployment/adapter/define.js +12 -44
  18. package/dist/deployment/adapter/index.d.ts +0 -2
  19. package/dist/deployment/adapter/release/list.d.ts +1 -2
  20. package/dist/deployment/address/summary.d.ts +3 -7
  21. package/dist/deployment/authoring.d.ts +0 -2
  22. package/dist/deployment/authoring.js +0 -1
  23. package/dist/deployment/build/build.d.ts +6 -0
  24. package/dist/deployment/build/compile.js +2 -0
  25. package/dist/deployment/build/frontend/compilation.d.ts +2 -4
  26. package/dist/deployment/build/frontend/compilation.js +0 -5
  27. package/dist/deployment/build/frontend/digest.js +1 -5
  28. package/dist/deployment/build/material.d.ts +2 -2
  29. package/dist/deployment/build/material.js +28 -13
  30. package/dist/deployment/deployment.d.ts +4 -8
  31. package/dist/deployment/index.d.ts +3 -5
  32. package/dist/deployment/index.js +1 -2
  33. package/dist/deployment/release/addressing.d.ts +2 -9
  34. package/dist/deployment/release/addressing.js +2 -3
  35. package/dist/deployment/release/index.d.ts +0 -2
  36. package/dist/deployment/release/index.js +0 -2
  37. package/dist/deployment/release/release.d.ts +1 -1
  38. package/dist/deployment/release/runtime.d.ts +0 -2
  39. package/dist/deployment/release/runtime.js +0 -2
  40. package/dist/deployment/release/served/index.d.ts +1 -2
  41. package/dist/deployment/release/served/index.js +7 -3
  42. package/dist/deployment/release/served/views.js +0 -1
  43. package/dist/deployment/verify/index.d.ts +2 -4
  44. package/dist/deployment/verify/index.js +1 -3
  45. package/dist/deployment/verify/preflight/index.d.ts +0 -12
  46. package/dist/deployment/verify/preflight/index.js +0 -12
  47. package/dist/deployment/verify/readiness/index.d.ts +2 -6
  48. package/dist/deployment/verify/readiness/index.js +3 -12
  49. package/dist/deployment/worker/response.d.ts +1 -4
  50. package/dist/deployment/worker/response.js +2 -8
  51. package/dist/execution/identity/delivery.d.ts +2 -7
  52. package/dist/execution/identity/delivery.js +1 -23
  53. package/dist/execution/identity/identity.d.ts +2 -3
  54. package/dist/execution/index.d.ts +1 -3
  55. package/dist/execution/index.js +1 -2
  56. package/dist/execution/invocation/admission/authority.d.ts +4 -5
  57. package/dist/execution/invocation/admission/authority.js +1 -2
  58. package/dist/execution/invocation/index.d.ts +2 -2
  59. package/dist/execution/invocation/index.js +1 -1
  60. package/dist/execution/invocation/invocation.js +3 -12
  61. package/dist/execution/invocation/result/errors.d.ts +0 -10
  62. package/dist/execution/invocation/result/errors.js +0 -17
  63. package/dist/execution/invocation/result/index.d.ts +2 -2
  64. package/dist/execution/invocation/result/index.js +1 -1
  65. package/dist/execution/runtime/release.d.ts +6 -11
  66. package/dist/execution/runtime/release.js +2 -9
  67. package/dist/execution/service/create.js +3 -1
  68. package/dist/execution/service/service.d.ts +2 -3
  69. package/dist/execution/service/serving/delivery.d.ts +1 -2
  70. package/dist/execution/service/serving/delivery.js +1 -2
  71. package/dist/execution/service/serving/source.d.ts +3 -10
  72. package/dist/execution/service/serving/source.js +1 -5
  73. package/dist/execution/workflows/index.d.ts +1 -1
  74. package/dist/execution/workflows/index.js +1 -1
  75. package/dist/execution/workflows/options.d.ts +0 -6
  76. package/dist/execution/workflows/options.js +0 -18
  77. package/dist/execution/workflows/receiver.d.ts +1 -2
  78. package/dist/execution/workflows/receiver.js +13 -20
  79. package/dist/execution/workflows/route.d.ts +1 -3
  80. package/dist/execution/workflows/route.js +4 -9
  81. package/dist/execution/workflows/run.d.ts +1 -1
  82. package/dist/execution/workflows/run.js +1 -1
  83. package/dist/index.d.ts +1 -1
  84. package/dist/index.js +1 -1
  85. package/dist/platform/graph/alias.d.ts +1 -5
  86. package/dist/platform/graph/alias.js +1 -5
  87. package/dist/platform/graph/document/index.d.ts +1 -1
  88. package/dist/platform/graph/document/index.js +1 -1
  89. package/dist/platform/graph/index.d.ts +1 -1
  90. package/dist/platform/graph/index.js +1 -1
  91. package/dist/platform/release/index.d.ts +1 -26
  92. package/dist/platform/release/index.js +1 -26
  93. package/dist/platform/schema/class-icon-svg.d.ts +9 -0
  94. package/dist/platform/schema/class-icon-svg.js +29 -0
  95. package/dist/platform/schema/class-icon.d.ts +3 -8
  96. package/dist/platform/schema/class-icon.js +2 -29
  97. package/dist/platform/schema/index.d.ts +1 -1
  98. package/dist/platform/schema/schema-authoring.d.ts +14 -7
  99. package/dist/platform/schema/schema-authoring.js +5 -1
  100. package/dist/project/admit.js +0 -4
  101. package/dist/project/install-command.d.ts +0 -4
  102. package/dist/project/install-command.js +1 -5
  103. package/dist/tooling/cli/deploy-mode.d.ts +3 -59
  104. package/dist/tooling/cli/deploy-mode.js +46 -122
  105. package/dist/tooling/cli/deploy-result.d.ts +10 -15
  106. package/dist/tooling/cli/help.js +9 -16
  107. package/dist/tooling/cli/immutable-deployment.d.ts +3 -3
  108. package/dist/tooling/cli/index.d.ts +1 -1
  109. package/dist/tooling/cli/list.d.ts +5 -7
  110. package/dist/tooling/cli/list.js +9 -61
  111. package/dist/tooling/cli/orchestrate.js +6 -16
  112. package/dist/tooling/cli/publish/index.d.ts +2 -2
  113. package/dist/tooling/cli/registry/client.js +1 -1
  114. package/dist/tooling/cli/secrets.d.ts +2 -2
  115. package/dist/tooling/linter/implementations/source/global.js +0 -1
  116. package/dist/tooling/linter/implementations/source/verifiers.js +0 -2
  117. package/dist/tooling/linter/policy/generated.js +2 -51
  118. package/dist/tooling/linter/requirements/registry.js +0 -6
  119. package/package.json +6 -6
  120. package/dist/application/query/execution/projection.d.ts +0 -3
  121. package/dist/application/query/execution/projection.js +0 -3
  122. package/dist/deployment/adapter/legacy/adapter.d.ts +0 -40
  123. package/dist/deployment/adapter/legacy/adapter.js +0 -1
  124. package/dist/deployment/adapter/legacy/deploy/context.d.ts +0 -19
  125. package/dist/deployment/adapter/legacy/deploy/context.js +0 -1
  126. package/dist/deployment/adapter/legacy/deploy/index.d.ts +0 -2
  127. package/dist/deployment/adapter/legacy/deploy/index.js +0 -1
  128. package/dist/deployment/adapter/legacy/deploy/result.d.ts +0 -89
  129. package/dist/deployment/adapter/legacy/deploy/result.js +0 -1
  130. package/dist/deployment/adapter/legacy/index.d.ts +0 -24
  131. package/dist/deployment/adapter/legacy/index.js +0 -1
  132. package/dist/deployment/adapter/legacy/prepare/artifact.d.ts +0 -43
  133. package/dist/deployment/adapter/legacy/prepare/artifact.js +0 -1
  134. package/dist/deployment/adapter/legacy/prepare/context.d.ts +0 -33
  135. package/dist/deployment/adapter/legacy/prepare/context.js +0 -1
  136. package/dist/deployment/adapter/legacy/prepare/index.d.ts +0 -2
  137. package/dist/deployment/adapter/legacy/prepare/index.js +0 -1
  138. package/dist/deployment/deploy.d.ts +0 -20
  139. package/dist/deployment/deploy.js +0 -31
  140. package/dist/deployment/release/legacy/admission.d.ts +0 -3
  141. package/dist/deployment/release/legacy/admission.js +0 -8
  142. package/dist/deployment/release/legacy/assemble.d.ts +0 -5
  143. package/dist/deployment/release/legacy/assemble.js +0 -20
  144. package/dist/deployment/release/legacy/index.d.ts +0 -35
  145. package/dist/deployment/release/legacy/index.js +0 -34
  146. package/dist/deployment/release/legacy/release.d.ts +0 -12
  147. package/dist/deployment/release/legacy/release.js +0 -1
  148. package/dist/deployment/release/legacy/seal.d.ts +0 -10
  149. package/dist/deployment/release/legacy/seal.js +0 -17
  150. package/dist/deployment/verify/preflight/artifact.d.ts +0 -6
  151. package/dist/deployment/verify/preflight/artifact.js +0 -122
  152. package/dist/deployment/verify/preflight/publication.d.ts +0 -4
  153. package/dist/deployment/verify/preflight/publication.js +0 -15
  154. package/dist/deployment/verify/readiness/deployment.d.ts +0 -3
  155. package/dist/deployment/verify/readiness/deployment.js +0 -143
  156. package/dist/deployment/verify/readiness/legacy/index.d.ts +0 -2
  157. package/dist/deployment/verify/readiness/legacy/index.js +0 -2
  158. package/dist/deployment/verify/readiness/legacy/publication.d.ts +0 -12
  159. package/dist/deployment/verify/readiness/legacy/publication.js +0 -23
  160. package/dist/execution/service/errors.d.ts +0 -3
  161. package/dist/execution/service/errors.js +0 -3
  162. package/dist/execution/service/serving/legacy/index.d.ts +0 -15
  163. package/dist/execution/service/serving/legacy/index.js +0 -19
  164. package/dist/tooling/cli/deprecations.d.ts +0 -9
  165. package/dist/tooling/cli/deprecations.js +0 -15
  166. package/dist/tooling/cli/legacy/deploy-result.d.ts +0 -28
  167. package/dist/tooling/cli/legacy/deploy-result.js +0 -37
  168. package/dist/tooling/cli/legacy/stable-target-adapter.d.ts +0 -21
  169. package/dist/tooling/cli/legacy/stable-target-adapter.js +0 -14
  170. package/dist/tooling/cli/legacy/stable-target-deploy.d.ts +0 -40
  171. package/dist/tooling/cli/legacy/stable-target-deploy.js +0 -102
  172. package/dist/tooling/cli/legacy/uploaded-build.d.ts +0 -11
  173. package/dist/tooling/cli/legacy/uploaded-build.js +0 -22
  174. package/dist/tooling/linter/implementations/source/migrations.d.ts +0 -2
  175. package/dist/tooling/linter/implementations/source/migrations.js +0 -113
  176. package/dist/tooling/linter/qualification/index.d.ts +0 -10
  177. package/dist/tooling/linter/qualification/index.js +0 -2
  178. package/dist/tooling/linter/qualification/query-fixtures.d.ts +0 -2
  179. package/dist/tooling/linter/qualification/query-fixtures.js +0 -68
  180. package/dist/tooling/linter/qualification/runner.d.ts +0 -3
  181. package/dist/tooling/linter/qualification/runner.js +0 -6
@@ -1,5 +1,5 @@
1
1
  import type { DeploymentCommitV1, DeploymentConfiguration } from '../../deployment/address/index.js';
2
- import type { Adapter, Build, Bundle, LegacyAdapter, Placement, Release, ResolvedRuntimeReference } from '../../deployment/index.js';
2
+ import type { Adapter, Build, Bundle, Placement, Release, ResolvedRuntimeReference } from '../../deployment/index.js';
3
3
  import type { DeployResultV1 } from './deploy-result.js';
4
4
  /**
5
5
  * Everything the deploy of one canonical Environment derives before its only effectful call: the
@@ -37,7 +37,7 @@ export declare function planImmutableDeployment(input: {
37
37
  readonly projectDir: string;
38
38
  readonly environment: string;
39
39
  /** A canonical Environment's adapter (CT33), which implements adapter interface v2. */
40
- readonly adapter: Adapter<object> | LegacyAdapter<object>;
40
+ readonly adapter: Adapter<object>;
41
41
  readonly parameters: object;
42
42
  readonly build: Build;
43
43
  readonly runtime: ResolvedRuntimeReference;
@@ -73,7 +73,7 @@ export declare function deployImmutable(input: {
73
73
  readonly projectDir: string;
74
74
  readonly environment: string;
75
75
  /** A canonical Environment's adapter (CT33), which implements adapter interface v2. */
76
- readonly adapter: Adapter<object> | LegacyAdapter<object>;
76
+ readonly adapter: Adapter<object>;
77
77
  readonly parameters: object;
78
78
  readonly build: Build;
79
79
  readonly runtime: ResolvedRuntimeReference;
@@ -20,5 +20,5 @@ export type { InstallationSourcesV1, InstallationUnknownReason, InstalledOnV1, I
20
20
  export type { PublishReportV1 } from './publish/index.js';
21
21
  export type { YankReportV1 } from './yank.js';
22
22
  export { selectDeployMode } from './deploy-mode.js';
23
- export type { CloudflareDirectParameter, DeployMode, DeployModeCommand, DeployRefusal, LegacyDirectReason, } from './deploy-mode.js';
23
+ export type { DeployMode, DeployModeCommand, DeployRefusal } from './deploy-mode.js';
24
24
  export { loadDeclaredSecrets } from './dotenv.js';
@@ -29,8 +29,7 @@ export interface ListResultV1 {
29
29
  * and its adapter, its computed name, and its call target. Admin's Services (adapter-astrale) keeps
30
30
  * every deployment until it is retired: its rows are `published` and say whether their Service
31
31
  * serves them (`current`). A Cloudflare dispatch namespace (adapter-cloudflare) keeps no
32
- * retention, and knows a deployment's creation instant and key only while its script exists. A
33
- * last call and an expiry are printed only when an older adapter still reports them.
32
+ * retention, and knows a deployment's creation instant and key only while its script exists.
34
33
  */
35
34
  export type ListedDeploymentV1 = Omit<DeploymentSummaryV1, 'record'> & {
36
35
  /** The Project Environment whose line holds the deployment, as its host listed it. */
@@ -75,14 +74,13 @@ export type ListedDeploymentV1 = Omit<DeploymentSummaryV1, 'record'> & {
75
74
  };
76
75
  /**
77
76
  * An Environment the listing did not list:
78
- * - `legacy-direct`: it replaces one stable target in place and makes no immutable deployment;
79
77
  * - `refused`: `deploy` refuses its configuration, so it deploys nothing;
80
78
  * - `unsupported`: its adapter deploys immutable deployments but lists none.
81
79
  */
82
80
  export interface UnlistedEnvironmentV1 {
83
81
  readonly environment: string;
84
82
  readonly adapter: string;
85
- readonly reason: 'legacy-direct' | 'refused' | 'unsupported';
83
+ readonly reason: 'refused' | 'unsupported';
86
84
  }
87
85
  /** What a listing found, beside the result: what to tell a person, and what failed. */
88
86
  export interface DeploymentListing {
@@ -145,10 +143,10 @@ export declare function listDeployments(input: {
145
143
  readonly instances?: readonly string[];
146
144
  }): Promise<DeploymentListing>;
147
145
  /**
148
- * The listing as a table for a person, at `now`: each deployment's release, its name as computed
146
+ * The listing as a table for a person: each deployment's release, its name as computed
149
147
  * (never shortened, AM-57), its Environment and state (`active (current)` for the deployment its
150
148
  * Service serves), the instances known to pin it (`?` when a source could not tell, AM-198), its
151
- * last call and its expiry, and the URL `astrale domain install` takes. Without deployments, it says so only for what was listed: nothing when a host
149
+ * URL `astrale domain install` takes. Without deployments, it says so only for what was listed: nothing when a host
152
150
  * `failed` (stderr says which), and that some Environments were not listed when any was not.
153
151
  */
154
- export declare function renderDeploymentList(result: ListResultV1, now: number, failed?: boolean): readonly string[];
152
+ export declare function renderDeploymentList(result: ListResultV1, failed?: boolean): readonly string[];
@@ -38,11 +38,8 @@ export async function listDeployments(input) {
38
38
  adapter: name,
39
39
  reason: mode.kind,
40
40
  }));
41
- notices.push(mode.kind === 'legacy-direct'
42
- ? `Environment ${environment} is not listed: it deploys in legacy direct mode, replacing ` +
43
- 'one stable target in place, and has no immutable deployments.'
44
- : `Environment ${environment} is not listed: deploy refuses its configuration. ` +
45
- mode.refusals.map((refusal) => refusal.guidance).join(' '));
41
+ notices.push(`Environment ${environment} is not listed: deploy refuses its configuration. ` +
42
+ mode.refusals.map((refusal) => refusal.guidance).join(' '));
46
43
  continue;
47
44
  }
48
45
  if (!('list' in adapter) || typeof adapter.list !== 'function') {
@@ -191,8 +188,6 @@ function listedDeployment(hosted, publications, installations) {
191
188
  state: deployment.state,
192
189
  ...(deployment.retention === undefined ? {} : { retention: deployment.retention }),
193
190
  ...(deployment.createdAt === undefined ? {} : { createdAt: deployment.createdAt }),
194
- ...(deployment.lastCallAt === undefined ? {} : { lastCallAt: deployment.lastCallAt }),
195
- ...(deployment.expiresAt === undefined ? {} : { expiresAt: deployment.expiresAt }),
196
191
  ...(deployment.retiredAt === undefined ? {} : { retiredAt: deployment.retiredAt }),
197
192
  ...(deployment.retirement === undefined ? {} : { retirement: deployment.retirement }),
198
193
  ...(deployment.signingKeyId === undefined ? {} : { signingKeyId: deployment.signingKeyId }),
@@ -263,20 +258,16 @@ function admitListed(deployment, adapter) {
263
258
  if (!text(value[key]))
264
259
  invalid(key);
265
260
  }
266
- for (const key of ['createdAt', 'signingKeyId', 'lastCallAt', 'expiresAt', 'retiredAt']) {
261
+ for (const key of ['createdAt', 'signingKeyId', 'retiredAt']) {
267
262
  if (value[key] !== undefined && !text(value[key]))
268
263
  invalid(key);
269
264
  }
270
265
  if (!STATES.includes(value.state))
271
266
  invalid('state');
272
- if (value.retention !== undefined &&
273
- value.retention !== 'preview' &&
274
- value.retention !== 'published') {
267
+ if (value.retention !== undefined && value.retention !== 'published') {
275
268
  invalid('retention');
276
269
  }
277
- if (value.retirement !== undefined &&
278
- value.retirement !== 'expired' &&
279
- value.retirement !== 'withdrawn') {
270
+ if (value.retirement !== undefined && value.retirement !== 'withdrawn') {
280
271
  invalid('retirement');
281
272
  }
282
273
  if (value.current !== undefined && typeof value.current !== 'boolean')
@@ -301,27 +292,15 @@ function members(input) {
301
292
  ? input
302
293
  : undefined;
303
294
  }
304
- const COLUMNS = [
305
- 'RELEASE',
306
- 'VERSION',
307
- 'ENV',
308
- 'STATE',
309
- 'INSTALLED ON',
310
- 'LAST CALL',
311
- 'EXPIRES',
312
- 'URL',
313
- ];
314
- const MINUTE = 60_000;
315
- const HOUR = 60 * MINUTE;
316
- const DAY = 24 * HOUR;
295
+ const COLUMNS = ['RELEASE', 'VERSION', 'ENV', 'STATE', 'INSTALLED ON', 'URL'];
317
296
  /**
318
- * The listing as a table for a person, at `now`: each deployment's release, its name as computed
297
+ * The listing as a table for a person: each deployment's release, its name as computed
319
298
  * (never shortened, AM-57), its Environment and state (`active (current)` for the deployment its
320
299
  * Service serves), the instances known to pin it (`?` when a source could not tell, AM-198), its
321
- * last call and its expiry, and the URL `astrale domain install` takes. Without deployments, it says so only for what was listed: nothing when a host
300
+ * URL `astrale domain install` takes. Without deployments, it says so only for what was listed: nothing when a host
322
301
  * `failed` (stderr says which), and that some Environments were not listed when any was not.
323
302
  */
324
- export function renderDeploymentList(result, now, failed = false) {
303
+ export function renderDeploymentList(result, failed = false) {
325
304
  if (result.deployments.length === 0) {
326
305
  if (failed)
327
306
  return Object.freeze([]);
@@ -338,10 +317,6 @@ export function renderDeploymentList(result, now, failed = false) {
338
317
  deployment.environment,
339
318
  deployment.current === true ? `${deployment.state} (current)` : deployment.state,
340
319
  installedOnCell(deployment.installedOn, result.installations),
341
- deployment.lastCallAt === undefined
342
- ? '—'
343
- : `${elapsed(now - Date.parse(deployment.lastCallAt))} ago`,
344
- expiry(deployment, now),
345
320
  deployment.url,
346
321
  ]);
347
322
  const widths = COLUMNS.map((column, index) => Math.max(column.length, ...rows.map((row) => row[index].length)));
@@ -354,30 +329,3 @@ export function renderDeploymentList(result, now, failed = false) {
354
329
  function shortDigest(digest) {
355
330
  return `${digest.slice(0, 'sha256:'.length + 7)}…`;
356
331
  }
357
- /**
358
- * When a deployment stops serving: `never` once published, else the expiry an older adapter
359
- * reports (`due` once that instant passed), else `—` (a dispatch namespace keeps a deployment
360
- * until its owner retires it); for a retired deployment, why it was retired.
361
- */
362
- function expiry(deployment, now) {
363
- if (deployment.state === 'retiring')
364
- return 'retiring';
365
- if (deployment.state === 'retired')
366
- return deployment.retirement ?? 'retired';
367
- if (deployment.retention === 'published')
368
- return 'never';
369
- if (deployment.expiresAt === undefined)
370
- return '—';
371
- const remaining = Date.parse(deployment.expiresAt) - now;
372
- return remaining > 0 ? `in ${elapsed(remaining)}` : 'due';
373
- }
374
- /** A duration as a person reads it in a listing: minutes, then hours, then days. */
375
- function elapsed(milliseconds) {
376
- if (!(milliseconds >= MINUTE))
377
- return '< 1 min';
378
- if (milliseconds < HOUR)
379
- return `${Math.floor(milliseconds / MINUTE)} min`;
380
- if (milliseconds < DAY)
381
- return `${Math.floor(milliseconds / HOUR)} h`;
382
- return `${Math.floor(milliseconds / DAY)} d`;
383
- }
@@ -7,11 +7,9 @@ import { parseArgs } from './arguments.js';
7
7
  import { buildResult, bundleBuild, bundlerCopyWarnings, projectBundlers } from './build.js';
8
8
  import { BunRequiredError } from './bun.js';
9
9
  import { selectDeployMode } from './deploy-mode.js';
10
- import { deprecationWarnings } from './deprecations.js';
11
10
  import { runDiff } from './diff/index.js';
12
11
  import { ERROR_USAGE, helpRequest, helpText } from './help.js';
13
12
  import { deployImmutable } from './immutable-deployment.js';
14
- import { deployStableTarget } from './legacy/stable-target-deploy.js';
15
13
  import { listDeployments, renderDeploymentList } from './list.js';
16
14
  import { error, info, progress, warn } from './log.js';
17
15
  import { importModule, loadProject, runtimeEntrypoint, selectEnvironment, } from './project.js';
@@ -103,8 +101,6 @@ export async function run(argv) {
103
101
  });
104
102
  }
105
103
  const build = compile(project.domain);
106
- for (const warning of deprecationWarnings(build))
107
- warn(warning);
108
104
  const resolved = await resolveRuntime(runtimeEntrypoint(project), (path) => importModule(resolve(dirname(configPath), path)));
109
105
  admitRuntime({ runtime: build.runtime }, resolved);
110
106
  if (parsed.command === 'diff') {
@@ -214,17 +210,11 @@ export async function run(argv) {
214
210
  signal: lifecycle.signal,
215
211
  report,
216
212
  };
217
- const deployed = mode.kind === 'canonical'
218
- ? await deployImmutable({
219
- ...deployment,
220
- adapter: environment.deployment.adapter,
221
- parameters: environment.deployment.parameters,
222
- })
223
- : await deployStableTarget({
224
- ...deployment,
225
- definition: environment,
226
- reasons: mode.reasons,
227
- });
213
+ const deployed = await deployImmutable({
214
+ ...deployment,
215
+ adapter: environment.deployment.adapter,
216
+ parameters: environment.deployment.parameters,
217
+ });
228
218
  if (deployed === undefined)
229
219
  return 1;
230
220
  if (parsed.json === true)
@@ -284,7 +274,7 @@ async function list(parsed, project, projectDir) {
284
274
  return 0;
285
275
  }
286
276
  const failed = listing.failures.length > 0;
287
- for (const line of renderDeploymentList(listing.result, Date.now(), failed)) {
277
+ for (const line of renderDeploymentList(listing.result, failed)) {
288
278
  process.stdout.write(`${line}\n`);
289
279
  }
290
280
  return failed ? 1 : 0;
@@ -1,11 +1,11 @@
1
- import type { Adapter, Build, LegacyAdapter, Release, ResolvedRuntimeReference } from '../../../deployment/index.js';
1
+ import type { Adapter, Build, Release, ResolvedRuntimeReference } from '../../../deployment/index.js';
2
2
  import type { DomainRegistry } from '../registry/index.js';
3
3
  export type { PublishReportV1 } from './report.js';
4
4
  export interface PublishCommandInput {
5
5
  readonly projectDir: string;
6
6
  readonly environment: string;
7
7
  /** The adapter of a canonical Environment (CT33): `publish` refuses every other one before. */
8
- readonly adapter: Adapter<object> | LegacyAdapter<object>;
8
+ readonly adapter: Adapter<object>;
9
9
  readonly parameters: object;
10
10
  readonly build: Build;
11
11
  readonly runtime: ResolvedRuntimeReference;
@@ -1,5 +1,5 @@
1
1
  import * as artifact from '@astrale-os/kernel-protocol/artifact';
2
- import { BUNDLE_MEDIA_TYPE } from '@astrale-os/kernel-protocol/release/bundle';
2
+ import { BUNDLE_MEDIA_TYPE } from '@astrale-os/kernel-protocol/release';
3
3
  import { mkdtemp, readFile, rm } from 'node:fs/promises';
4
4
  import { tmpdir } from 'node:os';
5
5
  import { join } from 'node:path';
@@ -1,9 +1,9 @@
1
1
  import type { Runtime } from '../../application/runtime/index.js';
2
- import type { Adapter, LegacyAdapter } from '../../deployment/adapter/index.js';
2
+ import type { Adapter } from '../../deployment/adapter/index.js';
3
3
  /**
4
4
  * The secrets one Environment's deployment binds: the values of the secrets file its adapter
5
5
  * declares. An Integration-free Runtime has no Providers and therefore no author-owned secrets, so
6
6
  * its file may be absent; adapter-owned secrets, such as a signing identity, are the adapter's to
7
7
  * resolve and never make this file required.
8
8
  */
9
- export declare function environmentSecrets(adapter: Adapter<object> | LegacyAdapter<object>, parameters: object, projectDir: string, runtime: Runtime): Readonly<Record<string, string>>;
9
+ export declare function environmentSecrets(adapter: Adapter<object>, parameters: object, projectDir: string, runtime: Runtime): Readonly<Record<string, string>>;
@@ -506,7 +506,6 @@ export const globalRules = [
506
506
  { layer: 'queries', name: 'defineQuery', members: [undefined] },
507
507
  { layer: 'queries', name: 'defineCompositeQuery', members: [undefined] },
508
508
  { layer: 'mutations', name: 'defineMutation', members: [undefined] },
509
- { layer: 'migrations', name: 'defineMigration', members: [undefined] },
510
509
  ];
511
510
  for (const definition of definitions) {
512
511
  for (const file of production(project, definition.layer)) {
@@ -2,7 +2,6 @@ import { actionRules } from './actions.js';
2
2
  import { dependencyRules } from './dependencies.js';
3
3
  import { globalRules } from './global.js';
4
4
  import { integrationRules } from './integrations.js';
5
- import { migrationRules } from './migrations.js';
6
5
  import { mutationRules } from './mutations.js';
7
6
  import { providerRules } from './providers.js';
8
7
  import { queryRules } from './queries.js';
@@ -23,7 +22,6 @@ export const sourceRuleVerifiers = Object.freeze([
23
22
  ...mutationRules,
24
23
  ...workflowRules,
25
24
  ...dependencyRules,
26
- ...migrationRules,
27
25
  ...integrationRules,
28
26
  ...actionRules,
29
27
  ...providerRules,
@@ -1,7 +1,7 @@
1
1
  /** Generated from the validated Domain knowledge catalog. Regenerate with pnpm sync:linter-policy. */
2
- export const domainPolicyDigest = '696264a5f17296120501b7221e33e3c2f416d35bbddac02fbcdb0a4853c79180';
2
+ export const domainPolicyDigest = '9b8051c5ae8863dad24dad2fc593df158250d7078a5f63970a84aab6e063e8ac';
3
3
  export const domainPolicySource = Object.freeze({
4
- rules: "id\tscope\tkind\tseverity\tmessage\tverification\texample\nOWN-SEMANTIC\townership\tarchitecture\terror\tEvery semantic fact, rule, representation, transition, and failure meaning has exactly one owner\tInventory declarations by meaning and report each duplicate authority or ownerless concept\tsemantic-owner.md\nMOD-SUBMODULE\tmodules\tstructure\terror\tEvery semantic source file lives in a dedicated semantic submodule or its registered layer facade\tClassify every layer-root source file and report files outside the registered facade or public index\tsemantic-owner.md\nMOD-REQUIRED\tmodules\tstructure\terror\tEvery required layer and root file declared by the injected layout exists\tCompare admitted project entries with required layout entries and report each missing path\trequired-layout.md\nMOD-GOVERNED\tmodules\tstructure\terror\tEvery source file admitted by the Domain compilation scope belongs to a declared layer or supported root\tClassify admitted source paths after declared workspace and tooling delegation and report each unowned path\tgoverned-source.md\nROOT-FACADE\troots\tstructure\terror\tEvery registered layer facade is exposed through a curated public index\tInspect each layer index and facade and report private-owner behavior or misplaced facade declarations\tpackage-facade.md\nROOT-COMPOSE\troots\tstructure\terror\tPackage roots compose only policy-backed Schema, Runtime, frontend deployment, native Routes, Migrations, Provider-backed Integrations, and supported package journeys\tInspect declared composition and package roots and report behavior, provider protocol logic, recursive barrels, or unsupported exports\tcomposition-root.md\nROOT-PACKAGE\troots\tevidence\terror\tEvery public Schema package subpath maps one admitted source entrypoint to its deterministic published declaration and JavaScript targets\tCompare source and publish exports and reject missing duplicate non-Schema locally linked generated or Kernel-leaking package artifacts\tmulti-domain-package.md\nDEP-ALLOWLIST\tdependencies\tdependency\terror\tEvery direct cross-layer import and its runtime or type-only kind appears in the dependency allowlist and dependencies between distinct layers are acyclic\tResolve source imports, reject every absent or kind-mismatched edge, and detect cycles after excluding evidence edges\tsemantic-owner.md\nIMP-FACADE\timports\tdependency\terror\tEvery cross-submodule import uses the semantic owner's facade and every foreign Domain import uses its public package facade\tResolve imports and report private deep paths outside the importing submodule\tcross-domain.md\nIMP-SDK-BOUNDARY\timports\tdependency\terror\tDomain source imports Kernel Core and DSL authoring values only through semantic SDK subpaths\tInspect every static and literal dynamic import and report module specifiers rooted at @astrale-os/kernel-core or @astrale-os/kernel-dsl\tsdk-boundary.md\nIMP-LAYER-ALIAS\timports\tdependency\terror\tEvery local import crossing a layer or semantic-submodule boundary uses the registered # layer alias\tResolve relative imports and report each one whose target leaves the importing semantic submodule\tlayer-aliases.md\nIMP-ALIAS-CFG\timports\tdependency\terror\tPackage and TypeScript resolution exactly implement each active layer-facade and semantic-submodule alias\tCompare active and required layers with the injected alias registry and report missing, undeclared, or drifted mappings\talias-configuration.md\nIMP-STATIC\timports\tdependency\terror\tProduction dependency edges use analyzable static ESM declarations or literal import calls\tReject require calls, import-equals declarations, nonliteral import calls, and unresolved static dependency forms\tstatic-imports.md\nTYP-OWNER\ttypes\tarchitecture\terror\tEvery type and reusable expected error is colocated with the semantic concept that defines its meaning\tTrace each declaration to its semantic authority and report catch-all or remotely owned values\texpected-failure.md\nERR-EXPECTED\terrors\tdataflow\terror\tBoundaries map only declared expected failures and propagate unexpected defects\tInspect catches and result mappings and report broad fallback, swallowed defects, or mappings without a declared source failure\texpected-failure.md\nTST-NO-PROD-IMP\ttests\tdependency\terror\tProduction source imports no root or colocated Test artifact\tResolve production imports and report targets under Root Tests, __tests__, or test, spec, bench, and perf source files\ttest-import-boundary.md\nABS-EARNED\tabstractions\tarchitecture\terror\tAn invariant or real boundary earns an abstraction; reuse alone requires two independent consumers and no duplicated semantic behavior\tIdentify the invariant, boundary, or independent consumers for each abstraction and report reuse wrappers that duplicate an owner's semantics\tsemantic-owner.md\nABS-NO-REPO\tabstractions\tarchitecture\terror\tDomain source places no collection-shaped persistence facade between business code and canonical Query or Mutation definitions\tInspect persistence-facing contracts and report abstractions that replace graph identity, traversal, observation, or atomic change semantics\tsemantic-owner.md\nABS-CANON-GRAPH\tabstractions\tdeclaration\terror\tDomain source declares no alternate Query or Mutation language, AST, compiler, planner, or wire representation\tInspect graph-related declarations and report semantics not identical to canonical Kernel Query or Mutation values\tsemantic-owner.md\nTRUST-ADMIT-ONCE\ttrust\tdataflow\terror\tEvery untrusted value is admitted or translated exactly once at its owning boundary\tTrace values from each external boundary and report missing admission or repeated structural validation\texpected-failure.md\nQLT-EXHAUSTIVE\tquality\tbehavior\terror\tEvery closed alternative is handled exhaustively and no required failure becomes placeholder success\tTrace closed unions and failure paths and report permissive defaults, placeholder success, or catch-and-continue behavior\texpected-failure.md\nQLT-CANON-VALUES\tquality\tdataflow\terror\tNo unchecked cast fabricates a canonical Kernel identity, QueryAST, MutationAST, or admitted schema value\tScan casts to canonical values and require an owning constructor or decoder for each\tsemantic-owner.md\nQLT-DEF-IDS\tquality\tdeclaration\terror\tEvery top-level Query, Mutation, and Migration definition has a stable literal ID unique in its owning namespace\tExtract top-level definition IDs and report missing, dynamic, malformed, or duplicate values\tdefinition-identities.md\nQLT-TYPED-COORD\tquality\tdeclaration\terror\tQueries and Mutations derive graph coordinates from resolved DSL definitions instead of raw string or structural reconstruction\tReject raw PropertyKey calls and structural ClassPath objects; require canonical resolved Classes Properties and keys at graph boundaries\ttyped-coordinates.md\nNODE-INHERITED\tnodes\tdeclaration\terror\tNo Node Class redeclares name, description, createdAt, or updatedAt inherited from Named, Descriptable, and Timestamped\tScan Node Class Properties and report each inherited field redeclaration\tsemantic-owner.md\nDOM-PUBLIC-DEPS\tdomains\tdependency\terror\tEvery directly referenced foreign-Domain graph declaration has one exact Schema dependency\tResolve foreign Schema, Query, and Mutation graph references and report each package without one exact declared Schema dependency\tcross-domain.md\nDOM-CALL-DECLARED\tdomains\tdependency\terror\tCross-Domain calls use exact declared public Schema dependencies and typed invocation; Integrations are optional consumer-owned boundaries\tTrace remote invocations and reject undeclared targets, private imports, forged references, and missing exact Domain Function requirements\tremote-domain-call.md\nDOM-ATOMICITY\tdomains\tbehavior\terror\tA cross-Domain change claims atomicity only when it is one MutationAST on one graph; calls combined with other effects are Workflow steps\tTrace atomicity and effect claims and report multiple commits, service boundaries, or foreign calls combined in a Action\tcross-domain.md\nSCH-SUBMODULE\tschema\tstructure\terror\tEvery Schema source path belongs to the registered facade, one canonical shared declaration kind, or one business-module facade or canonical declaration kind\tClassify admitted Schema source paths including shared and module-owned errors directories and report flat files or source-bearing directories outside the canonical Schema vocabulary\tschema-facade.md\nSCH-ONE-DECL\tschema\tdeclaration\terror\tEvery Schema declaration leaf file exports exactly one locally authored declaration of its directory kind and every declaration-kind index is a curated facade\tInspect runtime exports in Classes, Functions, Policies, States, and Views; resolve canonical SDK constructor origins and report zero, several, re-exported, aggregated, wrong-kind, or index-owned values\tdeclaration-file.md\nSCH-DECL-ONLY\tschema\tdeclaration\terror\tSchema performs no handler execution, Query execution, Mutation submission, Integration call, Workflow step, or Provider call\tResolve Schema imports and call graphs and require zero excluded operations\tpublication-callables.md\nSCH-EXACT-TYPES\tschema\tdeclaration\terror\tSchema authoring values preserve their exact inferred DSL types instead of widening to generic builder contracts\tScan Schema declarations and action returns for explicit generic builder authoring annotations\tschema-facade.md\nSCH-ICON-REQUIRED\tschema\tdeclaration\terror\tEvery Node Class must explicitly declare one admitted SVG icon\tInspect each SDK nodeClass and Node-kind defineClass declaration and report statically proven missing icon values while preserving opaque configurations as indeterminate\tclass-icon.md\nSCH-ICON-NEUTRAL\tschema\tdeclaration\twarning\tEvery neutral Node Class icon should be replaced with a meaningful icon\tInspect each SDK nodeClass and Node-kind defineClass declaration and report explicit classIcon.neutral or exact neutral SVG values\tclass-icon.md\nSCH-POLICY-AUTH\tschema\tdeclaration\terror\tCallable authority and existential Node scope are declared explicitly through Policy and Action implementations add no private authorization rule\tTrace callable admission and existential Node binders; report hidden authority or an ambiguous Node extent\tpolicy.md\nSCH-STATE-SOURCE\tschema\tdeclaration\terror\tEvery persisted StateMachine vocabulary originates from an exported authority in the same Schema business module rather than a copied literal set\tResolve exact StateMachine and stateProperty origins; report same-owner copied literals and reject cross-module association\tarticle-schema.md\nSCH-STATE-RELATION\tschema\tdeclaration\terror\tEvery StateMachine is one exported static immutable finite relation without parallel vocabulary authorities\tInspect Schema module machines and exported sibling values for split or copied topology\tarticle-status.md\nSCH-STATE-PURE\tschema\tdeclaration\terror\tStateMachine topology contains no behavior, effects, guards, clocks, retry, recovery, or orchestration\tInspect files that declare StateMachine authorities for behavioral exports, boundary imports, and effectful calls\tstate-pure.md\nRUL-SYNC\trules\tbehavior\terror\tEvery Rule is synchronous and returns no Promise, continuation, generator, or asynchronous iterator\tInspect Rule signatures and result types and reject asynchronous forms\tnormalization.md\nRUL-PURE\trules\tbehavior\terror\tRules perform no I/O and depend on no graph executor or Domain execution boundary\tResolve imports and effect origins, permitting pure standard value transformations while reporting conclusive I/O and Domain execution dependencies\tpublish-eligibility.md\nRUL-EXPL-FACTS\trules\tbehavior\terror\tEvery clock value, random value, identity, limit, and environmental observation used by a Rule is an explicit input\tTrace every value source and report reads from ambient state, globals, process state, or hidden singletons\ttime-facts.md\nRUL-CLOSED-DEC\trules\tbehavior\terror\tEvery expected business alternative is represented by a closed decision value rather than thrown control flow\tInspect Rule branches and report expected alternatives represented by exceptions or open optional fields\tpublish-eligibility.md\nQRY-CANON\tqueries\tdataflow\terror\tEvery graph request produced by a Query definition is one canonical QueryAST built through Kernel Query APIs\tTrace request construction and reject every non-canonical graph document\tfiltered-query.md\nQRY-CONTRACT\tqueries\tdataflow\terror\tA Query owns its input, observation, optional business projection, pagination, and expected failures\tInspect each Query definition and report a required concern owned elsewhere or omitted\tquery-transforms.md\nQRY-SINGLE\tqueries\tdataflow\terror\tEvery authored single Query definition declares exactly one build callback and at most one project callback\tInspect definition properties and canonical roots; report opaque helper origins as ambiguity rather than assuming cardinality\tsingle-query.md\nQRY-COMPOSE-TYPED\tqueries\tdataflow\terror\tA composite Query constructs one closed QueryPlan containing only typed single-Query leaves, symbolic output references, and explicit result composition\tInspect plan construction, report unresolved call origins as ambiguity, and reject nested composites, raw sessions, graph clients, result-time callbacks, arbitrary promises, or Domain effects\tdependent-query.md\nQRY-COMPOSE-STABLE\tqueries\tdeclaration\terror\tEvery composite Query leaf has a stable semantic literal ID unique within its definition\tInspect declared Query leaves and reject dynamic, malformed, or duplicate leaf identifiers\tdependent-query.md\nQRY-COLL-FANOUT\tqueries\tdataflow\twarning\tThree or more independent same-kind complete-Class collection leaves use one explicit query.union group\tInfer collection kind from canonical definition types and print the direct named replacement plus logical and physical plan counts\tcollection-union.md\nQRY-PROJECT-PURE\tqueries\tdataflow\terror\tEvery Query project callback is synchronous and performs only pure value transformation\tInspect project callback syntax and call graphs and report asynchronous continuation, I/O, mutation, nondeterminism, hidden query execution, or effects\tprojection.md\nQRY-SNAPSHOT\tqueries\tdataflow\terror\tA composite or paginated Query makes no point-in-time graph snapshot claim beyond one Kernel invocation\tReject shared-snapshot claims across leaves unions or continuations and route stronger consistency to an explicit Kernel facility\tdependent-query.md\nMUT-PLAN-REQ\tmutations\tdependency\terror\tEvery identity operation and foreign Mutation plan declares the exact Kernel Function and foreign Class authority it uses\tInspect SDK MutationAST builders and Kernel Provision or Register calls and match every foreign Class operation and identity syscall invocation to Domain requirements\tprovision-plan.md\nMUT-LOCAL-ALIAS\tmutations\tdeclaration\terror\tEvery literal Mutation createNode alias is a canonical local binding accepted by the Kernel\tInspect statically resolved createNode as values and reject invalid local binding literals before runtime\tatomic-mutation.md\nMUT-CANON\tmutations\tdataflow\terror\tEvery Mutation definition builds one synchronous change through the canonical builder and constructs no alternate or nested graph document\tInspect every definition build callback and reject missing, asynchronous, alternate, or nested Mutation construction\tatomic-mutation.md\nMUT-CONTRACT\tmutations\tdataflow\terror\tA Mutation owns its input, preconditions, operations, optional business projection, and expected failures\tInspect each definition and report required mutation semantics owned elsewhere or omitted\tcreate-aggregate.md\nMUT-PRECONDS\tmutations\tdataflow\terror\tRules decide eligibility and every live graph condition required for safety is encoded as a precondition in the same MutationAST\tMap decisions to preconditions and report duplicated eligibility or safety enforced only by an earlier observation\tconditional-update.md\nMUT-FRAGMENTS\tmutations\tdataflow\terror\tReusable fragments receive the callback-scoped MutationBuilder and contribute only to the same MutationAST\tResolve fragment signatures and calls and reject escaped builders, opaque documents, or nested MutationAST construction\tmutation-fragments.md\nMUT-PURE\tmutations\tdataflow\terror\tMutation definitions perform no session call, external effect, retry, compensation, or second submission\tScan definition call graphs and require zero excluded operations\tedge-change.md\nMUT-MULTI-WFL\tmutations\tdataflow\terror\tA change requiring several MutationAST values is a Workflow and is never exposed as one atomic Mutation\tTrace multi-commit changes and report definitions or names claiming single-mutation atomicity\tdelete-node.md\nMUT-STATE-INITIAL\tmutations\tdataflow\terror\tEvery StateMachine-backed node is created from its machine's initial state\tResolve machine-backed Property initializers and require the canonical machine.initial value rather than a copied state literal\tstate-transition.md\nMUT-STATE-ATOMIC\tmutations\tdataflow\terror\tEvery persisted machine-state change consumes one allowed decision and commits its stale-state precondition and update in the same MutationAST\tInspect machine-backed writes and require transition with the canonical Schema module machine and one allowed decision; reject direct target writes and split precondition updates\tstate-transition.md\nFNC-ONE-IMPL\tfunctions\tbehavior\terror\tEvery registered handler binding resolves to exactly one implementation owned by one semantic Functions submodule\tResolve the handler registry and report non-Action owners or duplicate registrations; SDK typing owns callable exhaustiveness\tsynchronous-result.md\nFNC-ONE-OP\tfunctions\tbehavior\terror\tEvery Action performs one terminal semantic operation; only a native binary compatibility Action may precede its Integration call with one exact-instance Query\tTrace every path and report several terminal effects, writes before effects, non-instance prerequisite reads, or hidden orchestration\tsingle-operation.md\nFNC-OP-KINDS\tfunctions\tbehavior\terror\tA semantic asynchronous operation is one Query, Mutation, Integration call, dependency invocation, or canonical Kernel operation\tClassify every awaited effect including dependency and Kernel calls; report undeclared effect kinds and hidden multiple operations\tintegration-operation.md\nFNC-BOUNDARIES\tfunctions\tbehavior\terror\tHandlers use self-default kernel graph query and mutate capabilities, explicit-authority direct dependencies, and optional declared Integrations; explicit Kernel and graph authority modes are available\tInspect context use, authority selection, dependencies, imports and failure mapping; reject raw unbound graph executors, foreign handler imports, implicit authority changes and swallowed defects\tremote-integration.md\nFNC-BINARY-RESULT\tfunctions\tbehavior\terror\tA binary Action returns detached buffered bytes or streaming bytes with admitted media type status and application headers without collecting or value-framing a provider stream\tExercise buffered and streaming results through their native route; verify exact bytes status headers cancellation and invalid output rejection\tnative-byte-response.md\nFNC-MULTISTEP\tfunctions\tbehavior\terror\tEvery Workflow definition contains at least two distinct semantic asynchronous operation sites\tInventory operation sites in the definition and report fewer than two; early exit, rejection, and recovery paths may execute fewer\tpublication-workflow.md\nFNC-STEP-EFFECTS\tfunctions\tbehavior\terror\tEvery semantic asynchronous operation maps to one named step.run boundary\tTrace effects and report operations outside step.run\tpublication-workflow.md\nFNC-STEP-IDS\tfunctions\tbehavior\terror\tEvery step identifier is a stable non-empty kebab-case literal unique within its Workflow\tExtract step identifiers and reject dynamic, malformed, empty, or duplicate values\tpublication-workflow.md\nFNC-NO-NEST\tfunctions\tbehavior\terror\tNo step.run callback invokes another step.run directly or through a reachable helper\tInspect callback call graphs and report every nested step.run path\tpublication-workflow.md\nFNC-INT-TYPES\tfunctions\tdeclaration\terror\tWorkflow Integration requirements derive from declared Integration definitions and the SDK projects their clients\tReject Workflow-owned operation interfaces and require its definition generic to reference the declared Integration registry\tcross-domain-workflow.md\nFNC-ONE-OP-STEP\tfunctions\tbehavior\terror\tEvery step owns exactly one semantic asynchronous operation\tTrace each step and report zero or several independently failing operations\tpublication-workflow.md\nFNC-STATE-CODEC\tfunctions\tbehavior\terror\tEvery step result and inter-step value is undefined or portable JSON data\tInspect step values and report actions, clients, symbols, bigint, cycles, or class instances\tpublication-workflow.md\nFNC-RECOVERY\tfunctions\tbehavior\terror\tWhen compensation or unknown-outcome branches exist, they are explicit and rely only on declared operation semantics\tInspect existing recovery branches and report guessed outcomes or compensation without exact evidence\tpublication-workflow.md\nFNC-XDOM-DECLARED\tfunctions\tbehavior\terror\tActions and Workflows invoke direct declared Domain dependencies through explicit-authority dependency invokers or canonical typed kernel.invoke references and import no foreign handler\tResolve handler imports, direct dependency aliases, explicit caller/self authority, selectors, and typed references; reject foreign imports, implicit or chained authority, undeclared aliases and forged references, and report opaque bindings as indeterminate\tcross-domain-workflow.md\nFNC-XDOM-REQ\tfunctions\tbehavior\terror\tEvery selected remote callable has one exact Domain Function requirement including its defining Class and static or instance kind\tCompare each statically selected remote callable with exact Domain Function requirements; report missing requirements and mark opaque selectors or requirement lists indeterminate\tcross-domain-workflow.md\nMIG-EXACT-REVS\tmigrations\tdataflow\terror\tEvery Migration declares exactly one source revision and one target revision for the same Domain origin\tParse Migration descriptors and reject missing, equal, ambiguous, cross-origin, or dynamically selected revisions\texact-revisions.md\nMIG-APP-DATA\tmigrations\tdataflow\terror\tMigrations transform application-owned facts only and own no schema projection, physical representation, deployment, backup, or external import\tClassify every transformed value and operation and report responsibilities outside application data\trewrite-values.md\nMIG-DEDICATED-CTX\tmigrations\tdataflow\terror\tMigration execution uses only its dedicated source reader, target writer, durable step context, revision-compatible Rules, and generic Utils\tResolve imports and calls and reject ordinary Actions, Workflows, Queries, Mutations, Integrations, Providers, Views, UI, or provider access\texact-revisions.md\nMIG-RESTART-SAFE\tmigrations\tdataflow\terror\tEvery Migration page is idempotent and resumes from a stable checkpoint without reinterpreting accepted target output\tInterrupt before and after every page commit, resume repeatedly, and compare target facts and checkpoints with uninterrupted execution\trestart-safe.md\nMIG-TARGET-PROOF\tmigrations\tdataflow\terror\tA Migration completes only after bounded source coverage and target-revision validation account for every selected source fact\tInject omitted, duplicated, invalid, and over-budget facts and require completion to fail with exact evidence\tverify-target.md\nMIG-DESTRUCTIVE\tmigrations\tdataflow\terror\tEvery destructive or irreversible transform declares and accounts for its intended loss and exposes declared expected failures\tTrace removals and irreversible rewrites and report undeclared or unaccounted loss, open failures, or catch-and-continue behavior\tremove-facts.md\nINT-BOUNDARY\tintegrations\tarchitecture\terror\tEvery Integration represents required behavior across an external, remote-Domain, substitution, process, or trust boundary\tIdentify the boundary for every contract and report behavior that can remain ordinary local Domain code\tpayment-authorization.md\nINT-NEUTRAL\tintegrations\tdeclaration\terror\tEvery Integration owns provider-neutral requests, evidence, correlation, idempotency, trust, and expected failure semantics needed by consumers\tInspect consumers and contracts and report provider fields or missing stable boundary semantics\tid-allocation.md\nINT-PURE\tintegrations\tdependency\terror\tIntegrations remain provider- and execution-boundary-neutral and import no concrete client, credential, configuration, Provider, Action, or Workflow\tResolve runtime and provider imports and report every conclusive concrete or execution-boundary dependency\tdocument-signing.md\nINT-ABILITY-NAME\tintegrations\tstructure\terror\tIntegration submodules are named by required ability and never mirror Schema entities mechanically\tCompare Integration and Schema submodules and report a contract without an independent boundary ability\tobject-storage.md\nRTE-RECIPE\troutes\tdeclaration\terror\tEvery native HTTP Route targets exactly one admitted Action or Workflow recipe\tResolve every route target and report forged missing or several recipes\taction-route.md\nRTE-MAPPING\troutes\tdataflow\terror\tEvery callable input field and instance receiver is mapped exactly once from path query header method or body input\tCompile each route against its resolved callable and reject incomplete ambiguous or unknown mappings\tinstance-route.md\nRTE-CREDENTIAL\troutes\tdataflow\terror\tEvery external credential source is explicit and is never also mapped as callable input\tCompile credential and input mappings and reject duplicate reserved or implicit authority sources\tcredential-route.md\nRTE-ONE-FILE\troutes\tstructure\terror\tEvery Route declaration has one business-intent kebab-case file and Routes composition contains no inline declaration\tInventory route declarations and report generic grouped or inline ownership\tapplication-routes.md\nPRV-INT-IMPL\tproviders\tarchitecture\terror\tEvery Provider implements one or more declared Integrations across a named external or remote-Domain boundary\tIdentify the boundary and implemented contracts and report a Provider without both\tpayment-provider.md\nPRV-BOUNDARY-NAME\tproviders\tstructure\terror\tProvider submodules are named by external system, protocol, or trust boundary rather than Domain entity\tInspect every submodule name and report one justified only by Schema vocabulary\tobject-storage-provider.md\nPRV-ADMIT-RESULT\tproviders\tdataflow\terror\tEvery boundary value is admitted before Integration evidence and recognized boundary failures become stable Integration failures\tTrace input and failure paths and report missing admission, leaked boundary errors, broad mapping, or swallowed defects\twebhook-admission.md\nPRV-NO-DOMAIN\tproviders\tdependency\terror\tProviders perform no local Domain graph operation, business decision, local Action call, or Workflow orchestration\tResolve Provider imports and call graphs and require zero excluded operations\tboundary-composition.md\nPRV-XDOM-TYPED\tproviders\tdependency\terror\tRemote-Domain Providers pass SDK-derived typed callable references to the caller-bound invocation capability without never casts\tInspect Provider execution invoke calls and reject references not constructed through SDK reference, opaque or fabricated references, and never-cast arguments\tremote-domain.md\nPRV-XDOM-REQ\tproviders\tdependency\terror\tEvery statically resolved remote-Domain Provider invocation has one exact Domain Function requirement\tMatch each invocation-bound public callable reference to the same foreign facade and Function selector under Domain requirements; preserve opaque references or composition as indeterminate\tremote-domain.md\nPRV-XDOM-PUBLIC\tproviders\tdependency\terror\tA remote-Domain Provider uses the remote public facade and invokes at most one public callable per Integration operation\tResolve receiver and facade origins for each remote operation and report private access, missing Integration ownership, unrelated calls, or several public invocations\tremote-domain.md\nVIW-PROJECTION\tviews\tdeclaration\terror\tEvery View converts public Domain values or named Query observations into UI props and connects each action to a named bounded Mutation or public callable contract\tInspect View outputs and actions and report behavior without a Schema, Query, UI, Mutation, Rule, or public callable owner\tdetail-view.md\nVIW-SCHEMA-DECL\tviews\tdeclaration\terror\tSchema owns every DSL View declaration and Views declares no Domain schema construct\tScan View declarations and reject Classes, Properties, Policies, Methods, Actions, or DSL Views\tarticle-list.md\nVIW-NO-COMPOSE\tviews\tdeclaration\terror\tThe Domain definition owns frontend deployment composition and Views never calls defineFrontend\tResolve direct imported defineFrontend calls in Views and report SDK constructor calls while ignoring unrelated local functions\tfrontend-composition.md\nVIW-DEPS\tviews\tdependency\terror\tViews import only Schema and its StateMachines, pure Rules, named Queries, bounded named Mutations, UI, shell-react primitives, public callable contracts, and presentation libraries\tInspect resolved imports and report dependencies or raw graph APIs outside the allowlist\tnavigation.md\nVIW-ACTIONS\tviews\tdataflow\terror\tEvery View action executes a named caller-authorized atomic Mutation or invokes a public callable; presentation state is never authorization evidence\tTrace action and authority paths and report inline or raw graph documents, elevated or effectful Mutation use, private Action imports, direct Integration calls, or authority derived from presentation\tform-actions.md\nUI-PRES-DEPS\tui\tdependency\terror\tEvery UI import is a sibling UI module or an external library used only for presentation\tInspect resolved imports and used APIs and report Domain, I/O, persistence, authorization, routing, or provider behavior\tstatus-panel.md\nUI-NO-DOMAIN\tui\tdependency\terror\tUI imports no Domain layer or Domain package facade\tResolve the UI import graph and require zero Domain paths\tresult-list.md\nUI-PURE\tui\tbehavior\terror\tUI performs no I/O, graph access, storage, authorization, business validation, provider call, routing, or Domain result mapping\tInspect components and hooks and report the exact excluded call or branch\tconfirmation-dialog.md\nUI-CALLBACKS\tui\tdataflow\terror\tUI accepts presentation props and forwards intent through callbacks without constructing Domain commands\tInspect props and event handlers and report Domain identities, command construction, or business decisions\tform.md\nUTL-DOM-AGNOSTIC\tutils\tarchitecture\terror\tEvery Utils export is Domain-agnostic and contains no Domain declaration, identity, decision, graph definition, or Workflow step\tInspect signatures and implementations and report the exact Domain concept or business behavior\tresult.md\nUTL-REUSED\tutils\tarchitecture\terror\tEvery Utils extension serves two independent semantic consumers or one package-wide execution boundary\tList direct consumers and report an extension satisfying neither condition\tjson-codec.md\nUTL-PUBLIC-DEPS\tutils\tdependency\terror\tUtils imports only public Kernel, DSL, SDK, standard-library, and sibling Utils modules\tResolve the Utils import graph and reject Domain layers, Providers, or private package paths\tjson-codec.md\nUTL-LIGHTWEIGHT\tutils\tarchitecture\terror\tUtils is private and owns no durable engine, planner, compiler, Repository, service locator, or dependency container\tInspect package exports and declarations and report public exposure or any forbidden framework machinery\tresult.md\nSCR-OPERATOR\tscripts\tbehavior\terror\tEvery root Script implements a supported operator workflow with declared inputs, outcomes, failures, and proof\tInspect each Script contract and report disposable tasks or missing operator semantics\tbackup.md\nSCR-PUBLIC-DEPS\tscripts\tbehavior\terror\tScripts import only dependency-DAG-authorized public facades, standard libraries, and operator libraries and define no Domain behavior\tResolve imports and inspect branches and report private paths, business decisions, graph definitions, or callable behavior\tupgrade.md\nSCR-TEST-DRIVERS\tscripts\tbehavior\terror\tDisposable setup, fixtures, resets, and scenario drivers live under tests/scripts rather than root Scripts\tClassify every Script by supported operator contract and report evidence-only programs at the root\trestore.md\nTST-SYS-OWNER\ttests\tevidence\terror\tRoot Tests owns cross-layer journeys, environments, harnesses, scenarios, seeds, fixtures, and disposable scripts\tInventory evidence support code and report cross-layer artifacts outside Tests or production semantics inside Tests\tmigration-scenario.md\nTST-COLOCATED\ttests\tevidence\terror\tEvery semantic production submodule owns focused evidence in its local __tests__ directory\tJoin production submodules to focused test directories and report missing owners\tfocused-rule.md\n",
4
+ rules: "id\tscope\tkind\tseverity\tmessage\tverification\texample\nOWN-SEMANTIC\townership\tarchitecture\terror\tEvery semantic fact, rule, representation, transition, and failure meaning has exactly one owner\tInventory declarations by meaning and report each duplicate authority or ownerless concept\tsemantic-owner.md\nMOD-SUBMODULE\tmodules\tstructure\terror\tEvery semantic source file lives in a dedicated semantic submodule or its registered layer facade\tClassify every layer-root source file and report files outside the registered facade or public index\tsemantic-owner.md\nMOD-REQUIRED\tmodules\tstructure\terror\tEvery required layer and root file declared by the injected layout exists\tCompare admitted project entries with required layout entries and report each missing path\trequired-layout.md\nMOD-GOVERNED\tmodules\tstructure\terror\tEvery source file admitted by the Domain compilation scope belongs to a declared layer or supported root\tClassify admitted source paths after declared workspace and tooling delegation and report each unowned path\tgoverned-source.md\nROOT-FACADE\troots\tstructure\terror\tEvery registered layer facade is exposed through a curated public index\tInspect each layer index and facade and report private-owner behavior or misplaced facade declarations\tpackage-facade.md\nROOT-COMPOSE\troots\tstructure\terror\tPackage roots compose only policy-backed Schema, Runtime, frontend deployment, native Routes, Provider-backed Integrations, and supported package journeys\tInspect declared composition and package roots and report behavior, provider protocol logic, recursive barrels, or unsupported exports\tcomposition-root.md\nROOT-PACKAGE\troots\tevidence\terror\tEvery public Schema package subpath maps one admitted source entrypoint to its deterministic published declaration and JavaScript targets\tCompare source and publish exports and reject missing duplicate non-Schema locally linked generated or Kernel-leaking package artifacts\tmulti-domain-package.md\nDEP-ALLOWLIST\tdependencies\tdependency\terror\tEvery direct cross-layer import and its runtime or type-only kind appears in the dependency allowlist and dependencies between distinct layers are acyclic\tResolve source imports, reject every absent or kind-mismatched edge, and detect cycles after excluding evidence edges\tsemantic-owner.md\nIMP-FACADE\timports\tdependency\terror\tEvery cross-submodule import uses the semantic owner's facade and every foreign Domain import uses its public package facade\tResolve imports and report private deep paths outside the importing submodule\tcross-domain.md\nIMP-SDK-BOUNDARY\timports\tdependency\terror\tDomain source imports Kernel Core and DSL authoring values only through semantic SDK subpaths\tInspect every static and literal dynamic import and report module specifiers rooted at @astrale-os/kernel-core or @astrale-os/kernel-dsl\tsdk-boundary.md\nIMP-LAYER-ALIAS\timports\tdependency\terror\tEvery local import crossing a layer or semantic-submodule boundary uses the registered # layer alias\tResolve relative imports and report each one whose target leaves the importing semantic submodule\tlayer-aliases.md\nIMP-ALIAS-CFG\timports\tdependency\terror\tPackage and TypeScript resolution exactly implement each active layer-facade and semantic-submodule alias\tCompare active and required layers with the injected alias registry and report missing, undeclared, or drifted mappings\talias-configuration.md\nIMP-STATIC\timports\tdependency\terror\tProduction dependency edges use analyzable static ESM declarations or literal import calls\tReject require calls, import-equals declarations, nonliteral import calls, and unresolved static dependency forms\tstatic-imports.md\nTYP-OWNER\ttypes\tarchitecture\terror\tEvery type and reusable expected error is colocated with the semantic concept that defines its meaning\tTrace each declaration to its semantic authority and report catch-all or remotely owned values\texpected-failure.md\nERR-EXPECTED\terrors\tdataflow\terror\tBoundaries map only declared expected failures and propagate unexpected defects\tInspect catches and result mappings and report broad fallback, swallowed defects, or mappings without a declared source failure\texpected-failure.md\nTST-NO-PROD-IMP\ttests\tdependency\terror\tProduction source imports no root or colocated Test artifact\tResolve production imports and report targets under Root Tests, __tests__, or test, spec, bench, and perf source files\ttest-import-boundary.md\nABS-EARNED\tabstractions\tarchitecture\terror\tAn invariant or real boundary earns an abstraction; reuse alone requires two independent consumers and no duplicated semantic behavior\tIdentify the invariant, boundary, or independent consumers for each abstraction and report reuse wrappers that duplicate an owner's semantics\tsemantic-owner.md\nABS-NO-REPO\tabstractions\tarchitecture\terror\tDomain source places no collection-shaped persistence facade between business code and canonical Query or Mutation definitions\tInspect persistence-facing contracts and report abstractions that replace graph identity, traversal, observation, or atomic change semantics\tsemantic-owner.md\nABS-CANON-GRAPH\tabstractions\tdeclaration\terror\tDomain source declares no alternate Query or Mutation language, AST, compiler, planner, or wire representation\tInspect graph-related declarations and report semantics not identical to canonical Kernel Query or Mutation values\tsemantic-owner.md\nTRUST-ADMIT-ONCE\ttrust\tdataflow\terror\tEvery untrusted value is admitted or translated exactly once at its owning boundary\tTrace values from each external boundary and report missing admission or repeated structural validation\texpected-failure.md\nQLT-EXHAUSTIVE\tquality\tbehavior\terror\tEvery closed alternative is handled exhaustively and no required failure becomes placeholder success\tTrace closed unions and failure paths and report permissive defaults, placeholder success, or catch-and-continue behavior\texpected-failure.md\nQLT-CANON-VALUES\tquality\tdataflow\terror\tNo unchecked cast fabricates a canonical Kernel identity, QueryAST, MutationAST, or admitted schema value\tScan casts to canonical values and require an owning constructor or decoder for each\tsemantic-owner.md\nQLT-DEF-IDS\tquality\tdeclaration\terror\tEvery top-level Query and Mutation definition has a stable literal ID unique in its owning namespace\tExtract top-level definition IDs and report missing, dynamic, malformed, or duplicate values\tdefinition-identities.md\nQLT-TYPED-COORD\tquality\tdeclaration\terror\tQueries and Mutations derive graph coordinates from resolved DSL definitions instead of raw string or structural reconstruction\tReject raw PropertyKey calls and structural ClassPath objects; require canonical resolved Classes Properties and keys at graph boundaries\ttyped-coordinates.md\nNODE-INHERITED\tnodes\tdeclaration\terror\tNo Node Class redeclares name, description, createdAt, or updatedAt inherited from Named, Descriptable, and Timestamped\tScan Node Class Properties and report each inherited field redeclaration\tsemantic-owner.md\nDOM-PUBLIC-DEPS\tdomains\tdependency\terror\tEvery directly referenced foreign-Domain graph declaration has one exact Schema dependency\tResolve foreign Schema, Query, and Mutation graph references and report each package without one exact declared Schema dependency\tcross-domain.md\nDOM-CALL-DECLARED\tdomains\tdependency\terror\tCross-Domain calls use exact declared public Schema dependencies and typed invocation; Integrations are optional consumer-owned boundaries\tTrace remote invocations and reject undeclared targets, private imports, forged references, and missing exact Domain Function requirements\tremote-domain-call.md\nDOM-ATOMICITY\tdomains\tbehavior\terror\tA cross-Domain change claims atomicity only when it is one MutationAST on one graph; calls combined with other effects are Workflow steps\tTrace atomicity and effect claims and report multiple commits, service boundaries, or foreign calls combined in a Action\tcross-domain.md\nSCH-SUBMODULE\tschema\tstructure\terror\tEvery Schema source path belongs to the registered facade, one canonical shared declaration kind, or one business-module facade or canonical declaration kind\tClassify admitted Schema source paths including shared and module-owned errors directories and report flat files or source-bearing directories outside the canonical Schema vocabulary\tschema-facade.md\nSCH-ONE-DECL\tschema\tdeclaration\terror\tEvery Schema declaration leaf file exports exactly one locally authored declaration of its directory kind and every declaration-kind index is a curated facade\tInspect runtime exports in Classes, Functions, Policies, States, and Views; resolve canonical SDK constructor origins and report zero, several, re-exported, aggregated, wrong-kind, or index-owned values\tdeclaration-file.md\nSCH-DECL-ONLY\tschema\tdeclaration\terror\tSchema performs no handler execution, Query execution, Mutation submission, Integration call, Workflow step, or Provider call\tResolve Schema imports and call graphs and require zero excluded operations\tpublication-callables.md\nSCH-EXACT-TYPES\tschema\tdeclaration\terror\tSchema authoring values preserve their exact inferred DSL types instead of widening to generic builder contracts\tScan Schema declarations and action returns for explicit generic builder authoring annotations\tschema-facade.md\nSCH-ICON-REQUIRED\tschema\tdeclaration\terror\tEvery Node Class must explicitly declare one admitted SVG icon\tInspect each SDK nodeClass and Node-kind defineClass declaration and report statically proven missing icon values while preserving opaque configurations as indeterminate\tclass-icon.md\nSCH-ICON-NEUTRAL\tschema\tdeclaration\twarning\tEvery neutral Node Class icon should be replaced with a meaningful icon\tInspect each SDK nodeClass and Node-kind defineClass declaration and report explicit classIcon.neutral or exact neutral SVG values\tclass-icon.md\nSCH-POLICY-AUTH\tschema\tdeclaration\terror\tCallable authority and existential Node scope are declared explicitly through Policy and Action implementations add no private authorization rule\tTrace callable admission and existential Node binders; report hidden authority or an ambiguous Node extent\tpolicy.md\nSCH-STATE-SOURCE\tschema\tdeclaration\terror\tEvery persisted StateMachine vocabulary originates from an exported authority in the same Schema business module rather than a copied literal set\tResolve exact StateMachine and stateProperty origins; report same-owner copied literals and reject cross-module association\tarticle-schema.md\nSCH-STATE-RELATION\tschema\tdeclaration\terror\tEvery StateMachine is one exported static immutable finite relation without parallel vocabulary authorities\tInspect Schema module machines and exported sibling values for split or copied topology\tarticle-status.md\nSCH-STATE-PURE\tschema\tdeclaration\terror\tStateMachine topology contains no behavior, effects, guards, clocks, retry, recovery, or orchestration\tInspect files that declare StateMachine authorities for behavioral exports, boundary imports, and effectful calls\tstate-pure.md\nRUL-SYNC\trules\tbehavior\terror\tEvery Rule is synchronous and returns no Promise, continuation, generator, or asynchronous iterator\tInspect Rule signatures and result types and reject asynchronous forms\tnormalization.md\nRUL-PURE\trules\tbehavior\terror\tRules perform no I/O and depend on no graph executor or Domain execution boundary\tResolve imports and effect origins, permitting pure standard value transformations while reporting conclusive I/O and Domain execution dependencies\tpublish-eligibility.md\nRUL-EXPL-FACTS\trules\tbehavior\terror\tEvery clock value, random value, identity, limit, and environmental observation used by a Rule is an explicit input\tTrace every value source and report reads from ambient state, globals, process state, or hidden singletons\ttime-facts.md\nRUL-CLOSED-DEC\trules\tbehavior\terror\tEvery expected business alternative is represented by a closed decision value rather than thrown control flow\tInspect Rule branches and report expected alternatives represented by exceptions or open optional fields\tpublish-eligibility.md\nQRY-CANON\tqueries\tdataflow\terror\tEvery graph request produced by a Query definition is one canonical QueryAST built through Kernel Query APIs\tTrace request construction and reject every non-canonical graph document\tfiltered-query.md\nQRY-CONTRACT\tqueries\tdataflow\terror\tA Query owns its input, observation, optional business projection, pagination, and expected failures\tInspect each Query definition and report a required concern owned elsewhere or omitted\tquery-transforms.md\nQRY-SINGLE\tqueries\tdataflow\terror\tEvery authored single Query definition declares exactly one build callback and at most one project callback\tInspect definition properties and canonical roots; report opaque helper origins as ambiguity rather than assuming cardinality\tsingle-query.md\nQRY-COMPOSE-TYPED\tqueries\tdataflow\terror\tA composite Query constructs one closed QueryPlan containing only typed single-Query leaves, symbolic output references, and explicit result composition\tInspect plan construction, report unresolved call origins as ambiguity, and reject nested composites, raw sessions, graph clients, result-time callbacks, arbitrary promises, or Domain effects\tdependent-query.md\nQRY-COMPOSE-STABLE\tqueries\tdeclaration\terror\tEvery composite Query leaf has a stable semantic literal ID unique within its definition\tInspect declared Query leaves and reject dynamic, malformed, or duplicate leaf identifiers\tdependent-query.md\nQRY-COLL-FANOUT\tqueries\tdataflow\twarning\tThree or more independent same-kind complete-Class collection leaves use one explicit query.union group\tInfer collection kind from canonical definition types and print the direct named replacement plus logical and physical plan counts\tcollection-union.md\nQRY-PROJECT-PURE\tqueries\tdataflow\terror\tEvery Query project callback is synchronous and performs only pure value transformation\tInspect project callback syntax and call graphs and report asynchronous continuation, I/O, mutation, nondeterminism, hidden query execution, or effects\tprojection.md\nQRY-SNAPSHOT\tqueries\tdataflow\terror\tA composite or paginated Query makes no point-in-time graph snapshot claim beyond one Kernel invocation\tReject shared-snapshot claims across leaves unions or continuations and route stronger consistency to an explicit Kernel facility\tdependent-query.md\nMUT-PLAN-REQ\tmutations\tdependency\terror\tEvery identity operation and foreign Mutation plan declares the exact Kernel Function and foreign Class authority it uses\tInspect SDK MutationAST builders and Kernel Provision or Register calls and match every foreign Class operation and identity syscall invocation to Domain requirements\tprovision-plan.md\nMUT-LOCAL-ALIAS\tmutations\tdeclaration\terror\tEvery literal Mutation createNode alias is a canonical local binding accepted by the Kernel\tInspect statically resolved createNode as values and reject invalid local binding literals before runtime\tatomic-mutation.md\nMUT-CANON\tmutations\tdataflow\terror\tEvery Mutation definition builds one synchronous change through the canonical builder and constructs no alternate or nested graph document\tInspect every definition build callback and reject missing, asynchronous, alternate, or nested Mutation construction\tatomic-mutation.md\nMUT-CONTRACT\tmutations\tdataflow\terror\tA Mutation owns its input, preconditions, operations, optional business projection, and expected failures\tInspect each definition and report required mutation semantics owned elsewhere or omitted\tcreate-aggregate.md\nMUT-PRECONDS\tmutations\tdataflow\terror\tRules decide eligibility and every live graph condition required for safety is encoded as a precondition in the same MutationAST\tMap decisions to preconditions and report duplicated eligibility or safety enforced only by an earlier observation\tconditional-update.md\nMUT-FRAGMENTS\tmutations\tdataflow\terror\tReusable fragments receive the callback-scoped MutationBuilder and contribute only to the same MutationAST\tResolve fragment signatures and calls and reject escaped builders, opaque documents, or nested MutationAST construction\tmutation-fragments.md\nMUT-PURE\tmutations\tdataflow\terror\tMutation definitions perform no session call, external effect, retry, compensation, or second submission\tScan definition call graphs and require zero excluded operations\tedge-change.md\nMUT-MULTI-WFL\tmutations\tdataflow\terror\tA change requiring several MutationAST values is a Workflow and is never exposed as one atomic Mutation\tTrace multi-commit changes and report definitions or names claiming single-mutation atomicity\tdelete-node.md\nMUT-STATE-INITIAL\tmutations\tdataflow\terror\tEvery StateMachine-backed node is created from its machine's initial state\tResolve machine-backed Property initializers and require the canonical machine.initial value rather than a copied state literal\tstate-transition.md\nMUT-STATE-ATOMIC\tmutations\tdataflow\terror\tEvery persisted machine-state change consumes one allowed decision and commits its stale-state precondition and update in the same MutationAST\tInspect machine-backed writes and require transition with the canonical Schema module machine and one allowed decision; reject direct target writes and split precondition updates\tstate-transition.md\nFNC-ONE-IMPL\tfunctions\tbehavior\terror\tEvery registered handler binding resolves to exactly one implementation owned by one semantic Functions submodule\tResolve the handler registry and report non-Action owners or duplicate registrations; SDK typing owns callable exhaustiveness\tsynchronous-result.md\nFNC-ONE-OP\tfunctions\tbehavior\terror\tEvery Action performs one terminal semantic operation; only a native binary compatibility Action may precede its Integration call with one exact-instance Query\tTrace every path and report several terminal effects, writes before effects, non-instance prerequisite reads, or hidden orchestration\tsingle-operation.md\nFNC-OP-KINDS\tfunctions\tbehavior\terror\tA semantic asynchronous operation is one Query, Mutation, Integration call, dependency invocation, or canonical Kernel operation\tClassify every awaited effect including dependency and Kernel calls; report undeclared effect kinds and hidden multiple operations\tintegration-operation.md\nFNC-BOUNDARIES\tfunctions\tbehavior\terror\tHandlers use self-default kernel graph query and mutate capabilities, explicit-authority direct dependencies, and optional declared Integrations; explicit Kernel and graph authority modes are available\tInspect context use, authority selection, dependencies, imports and failure mapping; reject raw unbound graph executors, foreign handler imports, implicit authority changes and swallowed defects\tremote-integration.md\nFNC-BINARY-RESULT\tfunctions\tbehavior\terror\tA binary Action returns detached buffered bytes or streaming bytes with admitted media type status and application headers without collecting or value-framing a provider stream\tExercise buffered and streaming results through their native route; verify exact bytes status headers cancellation and invalid output rejection\tnative-byte-response.md\nFNC-MULTISTEP\tfunctions\tbehavior\terror\tEvery Workflow definition contains at least two distinct semantic asynchronous operation sites\tInventory operation sites in the definition and report fewer than two; early exit, rejection, and recovery paths may execute fewer\tpublication-workflow.md\nFNC-STEP-EFFECTS\tfunctions\tbehavior\terror\tEvery semantic asynchronous operation maps to one named step.run boundary\tTrace effects and report operations outside step.run\tpublication-workflow.md\nFNC-STEP-IDS\tfunctions\tbehavior\terror\tEvery step identifier is a stable non-empty kebab-case literal unique within its Workflow\tExtract step identifiers and reject dynamic, malformed, empty, or duplicate values\tpublication-workflow.md\nFNC-NO-NEST\tfunctions\tbehavior\terror\tNo step.run callback invokes another step.run directly or through a reachable helper\tInspect callback call graphs and report every nested step.run path\tpublication-workflow.md\nFNC-INT-TYPES\tfunctions\tdeclaration\terror\tWorkflow Integration requirements derive from declared Integration definitions and the SDK projects their clients\tReject Workflow-owned operation interfaces and require its definition generic to reference the declared Integration registry\tcross-domain-workflow.md\nFNC-ONE-OP-STEP\tfunctions\tbehavior\terror\tEvery step owns exactly one semantic asynchronous operation\tTrace each step and report zero or several independently failing operations\tpublication-workflow.md\nFNC-STATE-CODEC\tfunctions\tbehavior\terror\tEvery step result and inter-step value is undefined or portable JSON data\tInspect step values and report actions, clients, symbols, bigint, cycles, or class instances\tpublication-workflow.md\nFNC-RECOVERY\tfunctions\tbehavior\terror\tWhen compensation or unknown-outcome branches exist, they are explicit and rely only on declared operation semantics\tInspect existing recovery branches and report guessed outcomes or compensation without exact evidence\tpublication-workflow.md\nFNC-XDOM-DECLARED\tfunctions\tbehavior\terror\tActions and Workflows invoke direct declared Domain dependencies through explicit-authority dependency invokers or canonical typed kernel.invoke references and import no foreign handler\tResolve handler imports, direct dependency aliases, explicit caller/self authority, selectors, and typed references; reject foreign imports, implicit or chained authority, undeclared aliases and forged references, and report opaque bindings as indeterminate\tcross-domain-workflow.md\nFNC-XDOM-REQ\tfunctions\tbehavior\terror\tEvery selected remote callable has one exact Domain Function requirement including its defining Class and static or instance kind\tCompare each statically selected remote callable with exact Domain Function requirements; report missing requirements and mark opaque selectors or requirement lists indeterminate\tcross-domain-workflow.md\nINT-BOUNDARY\tintegrations\tarchitecture\terror\tEvery Integration represents required behavior across an external, remote-Domain, substitution, process, or trust boundary\tIdentify the boundary for every contract and report behavior that can remain ordinary local Domain code\tpayment-authorization.md\nINT-NEUTRAL\tintegrations\tdeclaration\terror\tEvery Integration owns provider-neutral requests, evidence, correlation, idempotency, trust, and expected failure semantics needed by consumers\tInspect consumers and contracts and report provider fields or missing stable boundary semantics\tid-allocation.md\nINT-PURE\tintegrations\tdependency\terror\tIntegrations remain provider- and execution-boundary-neutral and import no concrete client, credential, configuration, Provider, Action, or Workflow\tResolve runtime and provider imports and report every conclusive concrete or execution-boundary dependency\tdocument-signing.md\nINT-ABILITY-NAME\tintegrations\tstructure\terror\tIntegration submodules are named by required ability and never mirror Schema entities mechanically\tCompare Integration and Schema submodules and report a contract without an independent boundary ability\tobject-storage.md\nRTE-RECIPE\troutes\tdeclaration\terror\tEvery native HTTP Route targets exactly one admitted Action or Workflow recipe\tResolve every route target and report forged missing or several recipes\taction-route.md\nRTE-MAPPING\troutes\tdataflow\terror\tEvery callable input field and instance receiver is mapped exactly once from path query header method or body input\tCompile each route against its resolved callable and reject incomplete ambiguous or unknown mappings\tinstance-route.md\nRTE-CREDENTIAL\troutes\tdataflow\terror\tEvery external credential source is explicit and is never also mapped as callable input\tCompile credential and input mappings and reject duplicate reserved or implicit authority sources\tcredential-route.md\nRTE-ONE-FILE\troutes\tstructure\terror\tEvery Route declaration has one business-intent kebab-case file and Routes composition contains no inline declaration\tInventory route declarations and report generic grouped or inline ownership\tapplication-routes.md\nPRV-INT-IMPL\tproviders\tarchitecture\terror\tEvery Provider implements one or more declared Integrations across a named external or remote-Domain boundary\tIdentify the boundary and implemented contracts and report a Provider without both\tpayment-provider.md\nPRV-BOUNDARY-NAME\tproviders\tstructure\terror\tProvider submodules are named by external system, protocol, or trust boundary rather than Domain entity\tInspect every submodule name and report one justified only by Schema vocabulary\tobject-storage-provider.md\nPRV-ADMIT-RESULT\tproviders\tdataflow\terror\tEvery boundary value is admitted before Integration evidence and recognized boundary failures become stable Integration failures\tTrace input and failure paths and report missing admission, leaked boundary errors, broad mapping, or swallowed defects\twebhook-admission.md\nPRV-NO-DOMAIN\tproviders\tdependency\terror\tProviders perform no local Domain graph operation, business decision, local Action call, or Workflow orchestration\tResolve Provider imports and call graphs and require zero excluded operations\tboundary-composition.md\nPRV-XDOM-TYPED\tproviders\tdependency\terror\tRemote-Domain Providers pass SDK-derived typed callable references to the caller-bound invocation capability without never casts\tInspect Provider execution invoke calls and reject references not constructed through SDK reference, opaque or fabricated references, and never-cast arguments\tremote-domain.md\nPRV-XDOM-REQ\tproviders\tdependency\terror\tEvery statically resolved remote-Domain Provider invocation has one exact Domain Function requirement\tMatch each invocation-bound public callable reference to the same foreign facade and Function selector under Domain requirements; preserve opaque references or composition as indeterminate\tremote-domain.md\nPRV-XDOM-PUBLIC\tproviders\tdependency\terror\tA remote-Domain Provider uses the remote public facade and invokes at most one public callable per Integration operation\tResolve receiver and facade origins for each remote operation and report private access, missing Integration ownership, unrelated calls, or several public invocations\tremote-domain.md\nVIW-PROJECTION\tviews\tdeclaration\terror\tEvery View converts public Domain values or named Query observations into UI props and connects each action to a named bounded Mutation or public callable contract\tInspect View outputs and actions and report behavior without a Schema, Query, UI, Mutation, Rule, or public callable owner\tdetail-view.md\nVIW-SCHEMA-DECL\tviews\tdeclaration\terror\tSchema owns every DSL View declaration and Views declares no Domain schema construct\tScan View declarations and reject Classes, Properties, Policies, Methods, Actions, or DSL Views\tarticle-list.md\nVIW-NO-COMPOSE\tviews\tdeclaration\terror\tThe Domain definition owns frontend deployment composition and Views never calls defineFrontend\tResolve direct imported defineFrontend calls in Views and report SDK constructor calls while ignoring unrelated local functions\tfrontend-composition.md\nVIW-DEPS\tviews\tdependency\terror\tViews import only Schema and its StateMachines, pure Rules, named Queries, bounded named Mutations, UI, shell-react primitives, public callable contracts, and presentation libraries\tInspect resolved imports and report dependencies or raw graph APIs outside the allowlist\tnavigation.md\nVIW-ACTIONS\tviews\tdataflow\terror\tEvery View action executes a named caller-authorized atomic Mutation or invokes a public callable; presentation state is never authorization evidence\tTrace action and authority paths and report inline or raw graph documents, elevated or effectful Mutation use, private Action imports, direct Integration calls, or authority derived from presentation\tform-actions.md\nUI-PRES-DEPS\tui\tdependency\terror\tEvery UI import is a sibling UI module or an external library used only for presentation\tInspect resolved imports and used APIs and report Domain, I/O, persistence, authorization, routing, or provider behavior\tstatus-panel.md\nUI-NO-DOMAIN\tui\tdependency\terror\tUI imports no Domain layer or Domain package facade\tResolve the UI import graph and require zero Domain paths\tresult-list.md\nUI-PURE\tui\tbehavior\terror\tUI performs no I/O, graph access, storage, authorization, business validation, provider call, routing, or Domain result mapping\tInspect components and hooks and report the exact excluded call or branch\tconfirmation-dialog.md\nUI-CALLBACKS\tui\tdataflow\terror\tUI accepts presentation props and forwards intent through callbacks without constructing Domain commands\tInspect props and event handlers and report Domain identities, command construction, or business decisions\tform.md\nUTL-DOM-AGNOSTIC\tutils\tarchitecture\terror\tEvery Utils export is Domain-agnostic and contains no Domain declaration, identity, decision, graph definition, or Workflow step\tInspect signatures and implementations and report the exact Domain concept or business behavior\tresult.md\nUTL-REUSED\tutils\tarchitecture\terror\tEvery Utils extension serves two independent semantic consumers or one package-wide execution boundary\tList direct consumers and report an extension satisfying neither condition\tjson-codec.md\nUTL-PUBLIC-DEPS\tutils\tdependency\terror\tUtils imports only public Kernel, DSL, SDK, standard-library, and sibling Utils modules\tResolve the Utils import graph and reject Domain layers, Providers, or private package paths\tjson-codec.md\nUTL-LIGHTWEIGHT\tutils\tarchitecture\terror\tUtils is private and owns no durable engine, planner, compiler, Repository, service locator, or dependency container\tInspect package exports and declarations and report public exposure or any forbidden framework machinery\tresult.md\nSCR-OPERATOR\tscripts\tbehavior\terror\tEvery root Script implements a supported operator workflow with declared inputs, outcomes, failures, and proof\tInspect each Script contract and report disposable tasks or missing operator semantics\tbackup.md\nSCR-PUBLIC-DEPS\tscripts\tbehavior\terror\tScripts import only dependency-DAG-authorized public facades, standard libraries, and operator libraries and define no Domain behavior\tResolve imports and inspect branches and report private paths, business decisions, graph definitions, or callable behavior\tupgrade.md\nSCR-TEST-DRIVERS\tscripts\tbehavior\terror\tDisposable setup, fixtures, resets, and scenario drivers live under tests/scripts rather than root Scripts\tClassify every Script by supported operator contract and report evidence-only programs at the root\trestore.md\nTST-SYS-OWNER\ttests\tevidence\terror\tRoot Tests owns cross-layer journeys, environments, harnesses, scenarios, seeds, fixtures, and disposable scripts\tInventory evidence support code and report cross-layer artifacts outside Tests or production semantics inside Tests\tinterruption-scenario.md\nTST-COLOCATED\ttests\tevidence\terror\tEvery semantic production submodule owns focused evidence in its local __tests__ directory\tJoin production submodules to focused test directories and report missing owners\tfocused-rule.md\n",
5
5
  layers: frozenRows([
6
6
  {
7
7
  id: 'schema',
@@ -29,11 +29,6 @@ export const domainPolicySource = Object.freeze({
29
29
  sourcePath: 'functions/',
30
30
  required: false,
31
31
  },
32
- {
33
- id: 'migrations',
34
- sourcePath: 'migrations/',
35
- required: false,
36
- },
37
32
  {
38
33
  id: 'integrations',
39
34
  sourcePath: 'integrations/',
@@ -167,24 +162,6 @@ export const domainPolicySource = Object.freeze({
167
162
  kind: 'runtime',
168
163
  condition: 'Functions use generic execution bindings',
169
164
  },
170
- {
171
- source: 'migrations',
172
- target: 'schema',
173
- kind: 'runtime',
174
- condition: 'Migrations bind exact revision and declaration values',
175
- },
176
- {
177
- source: 'migrations',
178
- target: 'rules',
179
- kind: 'runtime',
180
- condition: 'Migrations reuse revision-compatible pure decisions',
181
- },
182
- {
183
- source: 'migrations',
184
- target: 'utils',
185
- kind: 'runtime',
186
- condition: 'Migration descriptors use a generic dedicated wrapper',
187
- },
188
165
  {
189
166
  source: 'routes',
190
167
  target: 'functions',
@@ -293,12 +270,6 @@ export const domainPolicySource = Object.freeze({
293
270
  kind: 'composition',
294
271
  condition: 'Runtime initializes concrete Providers',
295
272
  },
296
- {
297
- source: 'domain',
298
- target: 'migrations',
299
- kind: 'composition',
300
- condition: 'Domain publishes application-data migration descriptors',
301
- },
302
273
  {
303
274
  source: 'domain',
304
275
  target: 'schema',
@@ -401,12 +372,6 @@ export const domainPolicySource = Object.freeze({
401
372
  kind: 'evidence',
402
373
  condition: 'Mutation evidence needs Mutation internals',
403
374
  },
404
- {
405
- source: 'tests',
406
- target: 'migrations',
407
- kind: 'evidence',
408
- condition: 'Revision-transition evidence needs Migration internals',
409
- },
410
375
  {
411
376
  source: 'tests',
412
377
  target: 'integrations',
@@ -583,20 +548,6 @@ export const domainPolicySource = Object.freeze({
583
548
  typescriptTarget: './functions/*/index.ts',
584
549
  packageTarget: './functions/*/index.ts',
585
550
  },
586
- {
587
- layer: 'migrations',
588
- kind: 'facade',
589
- specifier: '#migrations',
590
- typescriptTarget: './migrations/index.ts',
591
- packageTarget: './migrations/index.ts',
592
- },
593
- {
594
- layer: 'migrations',
595
- kind: 'submodule',
596
- specifier: '#migrations/*',
597
- typescriptTarget: './migrations/*/index.ts',
598
- packageTarget: './migrations/*/index.ts',
599
- },
600
551
  {
601
552
  layer: 'integrations',
602
553
  kind: 'facade',
@@ -141,12 +141,6 @@ export const domainRuleRequirements = Object.freeze([
141
141
  row('FNC-RECOVERY', BEHAVIOR),
142
142
  row('FNC-XDOM-DECLARED', BEHAVIOR_DEPENDENCY),
143
143
  row('FNC-XDOM-REQ', BEHAVIOR_DEPENDENCY),
144
- row('MIG-EXACT-REVS', DATAFLOW),
145
- row('MIG-APP-DATA', DATAFLOW),
146
- row('MIG-DEDICATED-CTX', DATAFLOW),
147
- row('MIG-RESTART-SAFE', DATAFLOW),
148
- row('MIG-TARGET-PROOF', BEHAVIOR_EVIDENCE),
149
- row('MIG-DESTRUCTIVE', DATAFLOW),
150
144
  row('INT-BOUNDARY', SEMANTIC_ARCHITECTURE),
151
145
  row('INT-NEUTRAL', DECLARATION),
152
146
  row('INT-PURE', DEPENDENCY),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/sdk",
3
- "version": "0.6.0-beta.23",
3
+ "version": "0.6.0-beta.24",
4
4
  "description": "Schema-first SDK for defining, composing, and deploying Astrale domains",
5
5
  "keywords": [
6
6
  "astrale",
@@ -257,11 +257,11 @@
257
257
  "registry": "https://registry.npmjs.org/"
258
258
  },
259
259
  "dependencies": {
260
- "@astrale-os/kernel-client": "0.6.0-beta.85",
261
- "@astrale-os/kernel-core": "0.9.0-beta.64",
262
- "@astrale-os/kernel-dsl": "0.2.0-beta.46",
263
- "@astrale-os/kernel-protocol": "0.5.0-beta.70",
264
- "@astrale-os/kernel-server": "0.5.0-beta.72",
260
+ "@astrale-os/kernel-client": "0.6.0-beta.87",
261
+ "@astrale-os/kernel-core": "0.9.0-beta.66",
262
+ "@astrale-os/kernel-dsl": "0.2.0-beta.48",
263
+ "@astrale-os/kernel-protocol": "0.5.0-beta.72",
264
+ "@astrale-os/kernel-server": "0.5.0-beta.74",
265
265
  "@lucide/icons": "1.34.0",
266
266
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
267
267
  "cross-spawn": "7.0.6",
@@ -1,3 +0,0 @@
1
- import type { QueryAST, QueryResultFor } from '@astrale-os/kernel-core/graph/query';
2
- import type { ProjectedQuery, QueryProjectionContext } from '../single/index.js';
3
- export declare function projectQuery<Input, Output, Ast extends QueryAST>(definition: ProjectedQuery<Input, Output, Ast>, result: QueryResultFor<Ast>, input: Input, context: QueryProjectionContext<Ast>): Output;
@@ -1,3 +0,0 @@
1
- export function projectQuery(definition, result, input, context) {
2
- return definition.project(result, input, context);
3
- }