@astrale-os/sdk 0.5.0-beta.114 → 0.5.0-beta.116

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 (33) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +22 -0
  3. package/dist/application/action/context.d.ts +4 -4
  4. package/dist/application/integration/authentication.d.ts +10 -0
  5. package/dist/application/integration/authentication.js +1 -0
  6. package/dist/application/integration/authentication.typecheck.d.ts +1 -0
  7. package/dist/application/integration/authentication.typecheck.js +18 -0
  8. package/dist/application/integration/client.d.ts +2 -0
  9. package/dist/application/integration/client.js +19 -2
  10. package/dist/application/integration/index.d.ts +1 -0
  11. package/dist/application/integration/operation.d.ts +3 -0
  12. package/dist/execution/invocation/dispatch/context.js +13 -3
  13. package/dist/execution/invocation/integration/authentication.d.ts +5 -0
  14. package/dist/execution/invocation/integration/authentication.js +53 -0
  15. package/dist/execution/invocation/integration/call.d.ts +7 -1
  16. package/dist/execution/invocation/integration/call.js +7 -2
  17. package/dist/execution/invocation/integration/clients.d.ts +2 -2
  18. package/dist/execution/invocation/integration/clients.js +2 -2
  19. package/dist/platform/schema/index.d.ts +1 -1
  20. package/dist/testing/dataset/builder.d.ts +6 -2
  21. package/dist/testing/dataset/builder.js +28 -0
  22. package/dist/testing/dataset/codec.js +15 -2
  23. package/dist/testing/dataset/dataset.d.ts +5 -1
  24. package/dist/testing/dataset/define.d.ts +2 -1
  25. package/dist/testing/dataset/define.js +10 -1
  26. package/dist/testing/dataset/index.d.ts +2 -1
  27. package/dist/testing/dataset/references.d.ts +13 -0
  28. package/dist/testing/dataset/references.js +56 -0
  29. package/dist/testing/index.d.ts +1 -1
  30. package/dist/tooling/cli/arguments.js +1 -1
  31. package/dist/tooling/cli/help.js +4 -3
  32. package/dist/tooling/linter/policy/generated.js +2 -2
  33. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.0-beta.116](https://github.com/astrale-os/sdk/compare/sdk-v0.5.0-beta.115...sdk-v0.5.0-beta.116) (2026-09-05)
4
+
5
+
6
+ ### Features
7
+
8
+ * **app:** support sameNode policies and explicit Dataset references ([#432](https://github.com/astrale-os/sdk/issues/432)) ([29e72b3](https://github.com/astrale-os/sdk/commit/29e72b377c71f1e8cce8ce75a8a0d3920e4c46c6))
9
+
10
+ ## [0.5.0-beta.115](https://github.com/astrale-os/sdk/compare/sdk-v0.5.0-beta.114...sdk-v0.5.0-beta.115) (2026-09-05)
11
+
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * default graph execution to self authority ([#430](https://github.com/astrale-os/sdk/issues/430))
16
+
17
+ ### Features
18
+
19
+ * **app:** add invocation-bound provider authentication ([#427](https://github.com/astrale-os/sdk/issues/427)) ([ed3f31f](https://github.com/astrale-os/sdk/commit/ed3f31f26d7ebcb124ab30b4b0661a954d437fea))
20
+ * default graph execution to self authority ([#430](https://github.com/astrale-os/sdk/issues/430)) ([35cf447](https://github.com/astrale-os/sdk/commit/35cf447936bb23f5817ba6f0116a846783d2688b))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * default domain dev to the development environment ([#431](https://github.com/astrale-os/sdk/issues/431)) ([470bcee](https://github.com/astrale-os/sdk/commit/470bcee062c46999bd39ce53de760757902e2637))
26
+
3
27
  ## [0.5.0-beta.114](https://github.com/astrale-os/sdk/compare/sdk-v0.5.0-beta.113...sdk-v0.5.0-beta.114) (2026-09-05)
4
28
 
5
29
 
package/README.md CHANGED
@@ -131,6 +131,28 @@ linter tool failures.
131
131
  Structured review [issues](issues/README.md) retain observation-first evidence and later governance
132
132
  attachments without becoming current contract authority.
133
133
 
134
+ ## Dataset references
135
+
136
+ A Dataset can materialize a projected Node explicitly with `ref`, using its resolved local or
137
+ direct-dependency definition:
138
+
139
+ ```typescript
140
+ const demo = defineDataset(Schema, {
141
+ id: 'demo',
142
+ graph({ domain, ref }) {
143
+ const member = ref(domain.core.nodes.member)
144
+ // Repeating ref returns the same Dataset Node. node() always creates a separate identity.
145
+ return { member }
146
+ },
147
+ })
148
+ ```
149
+
150
+ `ref` uses the canonical symbolic Schema projection for Class, Function, Policy, View and Core
151
+ facts. The Dataset's `references` table retains the explicit association between each projected
152
+ NodePath and its Dataset Node ID through encoding and decoding. Matching properties or slugs do
153
+ not create that association. Studio uses it when simulating `sameNode` and reference endpoints;
154
+ a missing association makes that simulation unavailable.
155
+
134
156
  ## License
135
157
 
136
158
  Apache License 2.0 — see [LICENSE](LICENSE) for details.
@@ -55,9 +55,9 @@ type AuthorityOf<Callable, DomainValue extends Domain> = Callable extends {
55
55
  readonly client: BoundClientSession;
56
56
  readonly kernel: DomainKernelSessions;
57
57
  readonly graph: DomainGraphExecutors<DomainValue>;
58
- /** Convenience executor using the admitted union of caller and Domain authority. */
58
+ /** Convenience executor using the installed Domain authority (`graph.self`). */
59
59
  readonly query: QueryExecutor<DomainValue>;
60
- /** Convenience executor using the admitted union of caller and Domain authority. */
60
+ /** Convenience executor using the installed Domain authority (`graph.self`). */
61
61
  readonly mutate: MutationExecutor<DomainValue>;
62
62
  } : {
63
63
  readonly caller: AuthenticatedCaller;
@@ -65,9 +65,9 @@ type AuthorityOf<Callable, DomainValue extends Domain> = Callable extends {
65
65
  readonly client: BoundClientSession;
66
66
  readonly kernel: DomainKernelSessions;
67
67
  readonly graph: DomainGraphExecutors<DomainValue>;
68
- /** Convenience executor using the admitted union of caller and Domain authority. */
68
+ /** Convenience executor using the installed Domain authority (`graph.self`). */
69
69
  readonly query: QueryExecutor<DomainValue>;
70
- /** Convenience executor using the admitted union of caller and Domain authority. */
70
+ /** Convenience executor using the installed Domain authority (`graph.self`). */
71
71
  readonly mutate: MutationExecutor<DomainValue>;
72
72
  };
73
73
  type SelfOf<Callable> = Callable extends ResolvedMethod<unknown, unknown, false> ? {
@@ -0,0 +1,10 @@
1
+ import type { MintedCredential } from '../../platform/auth/index.js';
2
+ export interface IntegrationMintInput {
3
+ readonly audience: string;
4
+ /** Maximum requested lifetime, in whole seconds, from 1 through 60. */
5
+ readonly ttlSeconds: number;
6
+ }
7
+ /** Invocation-bound authentication as the executing Domain, never the caller. */
8
+ export interface IntegrationAuthentication {
9
+ mint(input: IntegrationMintInput): Promise<MintedCredential>;
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ async function provider(execution) {
2
+ // @ts-expect-error An anonymous invocation has no auth capability.
3
+ await execution.auth.mint({ audience: 'admin', ttlSeconds: 60 });
4
+ if (execution.auth === undefined)
5
+ return;
6
+ await execution.auth.mint({ audience: 'admin', ttlSeconds: 60 });
7
+ // @ts-expect-error Providers cannot register identities.
8
+ execution.auth.register({});
9
+ // @ts-expect-error Providers cannot delegate authority.
10
+ execution.auth.delegate({});
11
+ // @ts-expect-error Providers cannot supply a Grant.
12
+ execution.auth.mint({ audience: 'admin', ttlSeconds: 60, grant: {} });
13
+ // @ts-expect-error The destination audience is mandatory.
14
+ const invalid = { ttlSeconds: 60 };
15
+ return invalid;
16
+ }
17
+ void provider;
18
+ export {};
@@ -1,4 +1,5 @@
1
1
  import type { BoundClientSession } from '../../platform/client/session/index.js';
2
+ import type { IntegrationAuthentication } from './authentication.js';
2
3
  import type { IntegrationClients, Integrations } from './integration.js';
3
4
  import type { IntegrationReplayDecision } from './operation.js';
4
5
  import type { Providers } from './provider.js';
@@ -7,6 +8,7 @@ export interface IntegrationCallCoordinates {
7
8
  readonly signal: AbortSignal;
8
9
  readonly deadline: number;
9
10
  readonly invoke?: BoundClientSession['invoke'];
11
+ readonly auth?: IntegrationAuthentication;
10
12
  }
11
13
  export interface IntegrationAttempt<Output> {
12
14
  readonly integration: string;
@@ -78,8 +78,12 @@ function admitCoordinates(input) {
78
78
  if (input === null || typeof input !== 'object' || Array.isArray(input))
79
79
  invalidCoordinates();
80
80
  const keys = Reflect.ownKeys(input);
81
- if ((keys.length !== 3 && keys.length !== 4) ||
82
- !keys.every((key) => key === 'callId' || key === 'signal' || key === 'deadline' || key === 'invoke') ||
81
+ if (!['callId', 'signal', 'deadline'].every((key) => Object.hasOwn(input, key)) ||
82
+ !keys.every((key) => key === 'callId' ||
83
+ key === 'signal' ||
84
+ key === 'deadline' ||
85
+ key === 'invoke' ||
86
+ key === 'auth') ||
83
87
  typeof input.callId !== 'string' ||
84
88
  input.callId.length === 0 ||
85
89
  input.callId.trim() !== input.callId ||
@@ -88,13 +92,26 @@ function admitCoordinates(input) {
88
92
  (input.invoke !== undefined && typeof input.invoke !== 'function')) {
89
93
  invalidCoordinates();
90
94
  }
95
+ const auth = input.auth === undefined ? undefined : admitAuthentication(input.auth);
91
96
  return Object.freeze({
92
97
  callId: input.callId,
93
98
  signal: input.signal,
94
99
  deadline: input.deadline,
95
100
  ...(input.invoke === undefined ? {} : { invoke: input.invoke }),
101
+ ...(auth === undefined ? {} : { auth }),
96
102
  });
97
103
  }
104
+ function admitAuthentication(input) {
105
+ if (input === null ||
106
+ typeof input !== 'object' ||
107
+ Array.isArray(input) ||
108
+ Reflect.ownKeys(input).length !== 1 ||
109
+ !Object.hasOwn(input, 'mint') ||
110
+ typeof input.mint !== 'function') {
111
+ invalidCoordinates();
112
+ }
113
+ return Object.freeze({ mint: input.mint.bind(input) });
114
+ }
98
115
  function invalidCoordinates() {
99
116
  throw new TypeError('Integration call coordinates are invalid.');
100
117
  }
@@ -5,3 +5,4 @@ export type { DefineIntegration, ProviderBinding } from './define.js';
5
5
  export type { IntegrationClient, IntegrationClients, IntegrationDefinition, Integrations, } from './integration.js';
6
6
  export type { IntegrationExecution, IntegrationInput, IntegrationOperation, IntegrationOperations, IntegrationOutput, IntegrationReplay, IntegrationReplayDecision, } from './operation.js';
7
7
  export type { Provider, ProviderImplementation, Providers } from './provider.js';
8
+ export type { IntegrationAuthentication, IntegrationMintInput } from './authentication.js';
@@ -1,4 +1,5 @@
1
1
  import type { BoundClientSession } from '../../platform/client/session/index.js';
2
+ import type { IntegrationAuthentication } from './authentication.js';
2
3
  declare const INTEGRATION_OPERATION: unique symbol;
3
4
  export type IntegrationReplayDecision = {
4
5
  readonly kind: 'safe';
@@ -20,6 +21,8 @@ export interface IntegrationExecution {
20
21
  readonly idempotencyKey?: string;
21
22
  /** Exact caller-bound invocation capability; absent for an anonymous invocation. */
22
23
  readonly invoke?: BoundClientSession['invoke'];
24
+ /** Domain-self transport authentication; absent for an anonymous invocation. */
25
+ readonly auth?: IntegrationAuthentication;
23
26
  }
24
27
  export interface IntegrationOperation<Input = unknown, Output = unknown> {
25
28
  readonly replay: IntegrationReplay<Input>;
@@ -24,10 +24,20 @@ export function context(request, runtime, authentication, self) {
24
24
  ...(graph === null
25
25
  ? {}
26
26
  : {
27
- query: graph.union.query,
28
- mutate: graph.union.mutate,
27
+ query: graph.self.query,
28
+ mutate: graph.self.mutate,
29
+ }),
30
+ integrations: clients(runtime, request.context, authentication.graph === null
31
+ ? null
32
+ : {
33
+ caller: authentication.graph.caller,
34
+ self: authentication.graph.self,
35
+ ...(authentication.caller.authentication.expiresAt === undefined
36
+ ? {}
37
+ : {
38
+ expiresAt: authentication.caller.authentication.expiresAt,
39
+ }),
29
40
  }),
30
- integrations: clients(runtime, request.context, client),
31
41
  execution,
32
42
  ...(self === undefined ? {} : { self }),
33
43
  });
@@ -0,0 +1,5 @@
1
+ import type { InvocationContext } from '@astrale-os/kernel-server';
2
+ import type { IntegrationAuthentication } from '../../../application/integration/index.js';
3
+ import type { BoundClientSession } from '../../../platform/client/session/index.js';
4
+ /** Capture only self mint, bounded by this invocation's verified credential horizon. */
5
+ export declare function bindIntegrationAuthentication(context: InvocationContext, self: BoundClientSession, expiresAt?: number): IntegrationAuthentication;
@@ -0,0 +1,53 @@
1
+ import { credential as credentials } from '../../../platform/auth/index.js';
2
+ import { active } from '../lifecycle/index.js';
3
+ import { protocolError } from '../result/index.js';
4
+ // Match the callback resolver's reserve; a child credential cannot outlive its source.
5
+ const TRANSPORT_RESERVE_SECONDS = 5;
6
+ /** Capture only self mint, bounded by this invocation's verified credential horizon. */
7
+ export function bindIntegrationAuthentication(context, self, expiresAt) {
8
+ if (expiresAt !== undefined && !Number.isFinite(expiresAt)) {
9
+ throw new TypeError('Invalid Integration authentication expiry.');
10
+ }
11
+ const mint = self.auth.mint.bind(self.auth);
12
+ return Object.freeze({
13
+ async mint(input) {
14
+ active(context);
15
+ if (input === null || typeof input !== 'object' || Array.isArray(input))
16
+ invalidInput();
17
+ const keys = Reflect.ownKeys(input);
18
+ const { audience, ttlSeconds } = input;
19
+ if (keys.length !== 2 ||
20
+ !keys.every((key) => key === 'audience' || key === 'ttlSeconds') ||
21
+ typeof audience !== 'string' ||
22
+ audience.length === 0 ||
23
+ audience.trim() !== audience ||
24
+ !Number.isInteger(ttlSeconds) ||
25
+ ttlSeconds < 1 ||
26
+ ttlSeconds > 60)
27
+ invalidInput();
28
+ const horizon = Math.min(context.execution.deadline / 1000, expiresAt ?? Infinity);
29
+ const remaining = Math.floor(horizon) - Math.floor(Date.now() / 1000) - TRANSPORT_RESERVE_SECONDS;
30
+ if (remaining < 1) {
31
+ throw protocolError('DEADLINE_EXCEEDED', 'Insufficient lifetime for Integration credential.');
32
+ }
33
+ const credential = await mint({ audience, ttlSeconds: Math.min(ttlSeconds, remaining) }, {
34
+ signal: context.execution.signal,
35
+ timeoutMs: Math.max(1, context.execution.deadline - Date.now()),
36
+ });
37
+ active(context);
38
+ // Inspect only the result of the trusted Kernel call, not a Provider-supplied token.
39
+ // The reserve is an optimization; this absolute check is the lifetime boundary.
40
+ const expiry = credentials.inspect(credential).claims.exp;
41
+ if (typeof expiry !== 'number' ||
42
+ !Number.isSafeInteger(expiry) ||
43
+ expiry <= Math.floor(Date.now() / 1000) ||
44
+ expiry > Math.floor(horizon)) {
45
+ throw protocolError('DEADLINE_EXCEEDED', 'Integration credential exceeds its lifetime.');
46
+ }
47
+ return credential;
48
+ },
49
+ });
50
+ }
51
+ function invalidInput() {
52
+ throw new TypeError('Invalid Integration mint input.');
53
+ }
@@ -1,5 +1,11 @@
1
1
  import type { InvocationContext } from '@astrale-os/kernel-server';
2
2
  import type { IntegrationInvocationOwner } from '../../../application/integration/index.js';
3
3
  import type { BoundClientSession } from '../../../platform/client/session/index.js';
4
+ export interface IntegrationInvocationSessions {
5
+ readonly caller: BoundClientSession;
6
+ readonly self: BoundClientSession;
7
+ /** Verified incoming carrier expiry, in Unix seconds. */
8
+ readonly expiresAt?: number;
9
+ }
4
10
  /** One invocation-owned logical Integration call sequence. */
5
- export declare function calls(context: InvocationContext, client?: BoundClientSession | null): IntegrationInvocationOwner;
11
+ export declare function calls(context: InvocationContext, sessions?: IntegrationInvocationSessions | null): IntegrationInvocationOwner;
@@ -1,8 +1,12 @@
1
1
  import { active } from '../lifecycle/index.js';
2
+ import { bindIntegrationAuthentication } from './authentication.js';
2
3
  /** One invocation-owned logical Integration call sequence. */
3
- export function calls(context, client = null) {
4
+ export function calls(context, sessions = null) {
4
5
  const prefix = context.idempotencyKey ?? JSON.stringify([context.invocation.source, context.invocation.id]);
5
- const invoke = client?.invoke.bind(client);
6
+ const invoke = sessions?.caller.invoke.bind(sessions.caller);
7
+ const auth = sessions === null
8
+ ? undefined
9
+ : bindIntegrationAuthentication(context, sessions.self, sessions.expiresAt);
6
10
  let sequence = 0;
7
11
  return Object.freeze({
8
12
  invoke(call) {
@@ -13,6 +17,7 @@ export function calls(context, client = null) {
13
17
  signal: context.execution.signal,
14
18
  deadline: context.execution.deadline,
15
19
  ...(invoke === undefined ? {} : { invoke }),
20
+ ...(auth === undefined ? {} : { auth }),
16
21
  });
17
22
  },
18
23
  });
@@ -1,5 +1,5 @@
1
1
  import type { InvocationContext } from '@astrale-os/kernel-server';
2
2
  import type { IntegrationClients, Integrations } from '../../../application/integration/index.js';
3
- import type { BoundClientSession } from '../../../platform/client/session/index.js';
4
3
  import type { InitializedRuntime } from '../../runtime/index.js';
5
- export declare function clients(runtime: InitializedRuntime, context: InvocationContext, client: BoundClientSession | null): IntegrationClients<Integrations>;
4
+ import type { IntegrationInvocationSessions } from './call.js';
5
+ export declare function clients(runtime: InitializedRuntime, context: InvocationContext, sessions: IntegrationInvocationSessions | null): IntegrationClients<Integrations>;
@@ -1,4 +1,4 @@
1
1
  import { calls } from './call.js';
2
- export function clients(runtime, context, client) {
3
- return runtime.clients(calls(context, client));
2
+ export function clients(runtime, context, sessions) {
3
+ return runtime.clients(calls(context, sessions));
4
4
  }
@@ -7,7 +7,7 @@ export { classIcon } from './class-icon.js';
7
7
  export type { ClassIcon } from './class-icon.js';
8
8
  export type { CallablePolicyBuilder, CallablePolicyContext, CallableProjection, AuthoredMethodProjection, AuthoredPropertyProjection, ClassIdentityProjection, ClassOwnerProjection, CoreEdge, CoreEndpoint, CoreNode, DefinedSchema, DirectedEdgeClass, ClassReferenceProjection, ClassProjection, FunctionProjection, EdgeClass, Function, Method, MethodProjection, Lazy, NodeClass, Policy, PolicyExistsContext, PolicyNodeBinder, PolicyPatternContext, Property, PropertyProjection, ResolvedDomainOfInput, View, } from '@astrale-os/kernel-dsl/v1/builder';
9
9
  export type { Array, Object, Value } from '@astrale-os/kernel-dsl/value';
10
- export type { ClassKind, DirectedEdgeContract, EdgeClassPolicies, NodeClassDefinition, PolicyCheckObject, PropertyFacet, UndirectedEdgeContract, } from '@astrale-os/kernel-dsl/v1/language';
10
+ export type { ClassKind, DirectedEdgeContract, EdgeClassPolicies, NodeClassDefinition, PolicyCheckObject, PolicyObjectRef, PropertyFacet, UndirectedEdgeContract, } from '@astrale-os/kernel-dsl/v1/language';
11
11
  export type { DomainSchema } from '@astrale-os/kernel-dsl/v1/schema';
12
12
  /** Kernel-owned Schema values used by authored product Schemas and graph operations. */
13
13
  export { AuthorityOperationOrder, AuthorityOperations, AuthorityRelations, K, KernelRootFunctions, OperationCore, operationOf, } from '@astrale-os/kernel-core/schema';
@@ -1,7 +1,8 @@
1
1
  import type { Edge } from '../../platform/graph/edge/index.js';
2
2
  import type { Node, NodeId } from '../../platform/graph/node/index.js';
3
3
  import type { PropertyInputOf, ResolvedClass, schema } from '../../platform/schema/index.js';
4
- import type { DatasetNode } from './dataset.js';
4
+ import type { DatasetNode, DatasetReferences } from './dataset.js';
5
+ import { type DatasetReferenceInput } from './references.js';
5
6
  /** Resolved Classes of the exact authored Schema, keyed by their authored names. */
6
7
  export type DatasetClasses<Schema extends schema.DomainSchema> = schema.DomainOf<Schema>['classes'];
7
8
  /** One Dataset Node, or one Node identity that names a Node already added to the same Dataset. */
@@ -20,10 +21,13 @@ export interface DatasetGraph<Schema extends schema.DomainSchema> {
20
21
  /** The exact resolved Domain, including dependency Domains under their authored aliases. */
21
22
  readonly domain: schema.DomainOf<Schema>;
22
23
  readonly classes: DatasetClasses<Schema>;
24
+ /** Materialize one local or direct-dependency projected Node, retaining its reference identity. */
25
+ ref(input: DatasetReferenceInput): DatasetNode;
23
26
  node<Class extends ResolvedClass<'node'>>(definition: Class, input?: DatasetNodeInput<Class>): DatasetNode<Class>;
24
27
  edge<Class extends ResolvedClass<'edge'>>(definition: Class, source: DatasetEndpoint, target: DatasetEndpoint, input?: DatasetEdgeInput<Class>): Edge;
25
28
  }
26
29
  export interface DatasetFacts {
30
+ readonly references: DatasetReferences;
27
31
  readonly nodes: readonly Node[];
28
32
  readonly edges: readonly Edge[];
29
33
  /** Exact Node values handed out by `node()`, for variable admission by identity. */
@@ -35,4 +39,4 @@ export interface DatasetGraphSession<Schema extends schema.DomainSchema> {
35
39
  seal(): DatasetFacts;
36
40
  }
37
41
  /** Open one authoring session over a resolved Domain. Authored facts stay un-admitted until sealed. */
38
- export declare function openDatasetGraph<Schema extends schema.DomainSchema>(domain: schema.DomainOf<Schema>): DatasetGraphSession<Schema>;
42
+ export declare function openDatasetGraph<Schema extends schema.DomainSchema>(domain: schema.ResolvedDomainOf<Schema>): DatasetGraphSession<Schema>;
@@ -1,6 +1,8 @@
1
1
  import { edge as graphEdge, EdgeSlug } from '../../platform/graph/edge/index.js';
2
2
  import { node as graphNode, NodeId as admitNodeId } from '../../platform/graph/node/index.js';
3
+ import { Path } from '../../platform/graph/path/index.js';
3
4
  import { ClassKey } from '../../platform/schema/index.js';
5
+ import { datasetReferenceNodes } from './references.js';
4
6
  /** Open one authoring session over a resolved Domain. Authored facts stay un-admitted until sealed. */
5
7
  export function openDatasetGraph(domain) {
6
8
  const nodes = [];
@@ -8,10 +10,35 @@ export function openDatasetGraph(domain) {
8
10
  const byId = new Map();
9
11
  const created = new Set();
10
12
  const ordinals = new Map();
13
+ const references = {};
14
+ let projected;
15
+ let referenceOrdinal = 0;
11
16
  let sealed = false;
12
17
  const graph = Object.freeze({
13
18
  domain,
14
19
  classes: domain.classes,
20
+ ref(input) {
21
+ open();
22
+ const ref = 'ref' in input ? input.ref : input;
23
+ const path = Path.project(ref).raw;
24
+ const existing = references[path];
25
+ if (existing !== undefined)
26
+ return byId.get(existing);
27
+ projected ??= datasetReferenceNodes(domain);
28
+ const facts = projected.get(path);
29
+ if (facts === undefined)
30
+ throw new TypeError(`Dataset reference ${path} is not local or a direct dependency member.`);
31
+ let id;
32
+ do {
33
+ id = admitNodeId(`reference-${++referenceOrdinal}`);
34
+ } while (byId.has(id));
35
+ const value = graphNode({ id, class: facts.class, props: facts.props });
36
+ nodes.push(value);
37
+ byId.set(id, value);
38
+ created.add(value);
39
+ references[path] = id;
40
+ return value;
41
+ },
15
42
  node(definition, input = {}) {
16
43
  open();
17
44
  acceptClass(definition, 'node');
@@ -52,6 +79,7 @@ export function openDatasetGraph(domain) {
52
79
  nodes: Object.freeze([...nodes]),
53
80
  edges: Object.freeze([...edges]),
54
81
  created,
82
+ references: Object.freeze({ ...references }),
55
83
  });
56
84
  },
57
85
  });
@@ -4,6 +4,7 @@ import { schema as schemaApi } from '../../platform/schema/index.js';
4
4
  import { admitDatasetGraph } from './admission.js';
5
5
  import { DATASET_FORMAT, DATASET_VERSION } from './dataset.js';
6
6
  import { admitId, admitText, admitVariableName, assembleDataset } from './define.js';
7
+ import { decodeDatasetReferences } from './references.js';
7
8
  /** Encode exact portable Dataset bytes without retaining runtime object identity. */
8
9
  export function encodeDataset(dataset) {
9
10
  const variables = Object.freeze(Object.fromEntries(Object.entries(dataset.variables)
@@ -21,13 +22,24 @@ export function encodeDataset(dataset) {
21
22
  }),
22
23
  graph: GraphData.encode({ nodes: dataset.nodes, edges: dataset.edges }),
23
24
  variables,
25
+ references: dataset.references,
24
26
  });
25
27
  }
26
28
  /** Decode one portable Dataset and re-admit its facts against the exact authored Schema. */
27
29
  export function decodeDataset(source, input) {
28
30
  if (!isRecord(input))
29
31
  invalid('Dataset must be an object.');
30
- exactKeys(input, ['format', 'version', 'id', 'title', 'description', 'domain', 'graph', 'variables'], ['format', 'version', 'id', 'domain', 'graph', 'variables'], 'Dataset');
32
+ exactKeys(input, [
33
+ 'format',
34
+ 'version',
35
+ 'id',
36
+ 'title',
37
+ 'description',
38
+ 'domain',
39
+ 'graph',
40
+ 'variables',
41
+ 'references',
42
+ ], ['format', 'version', 'id', 'domain', 'graph', 'variables', 'references'], 'Dataset');
31
43
  if (input.format !== DATASET_FORMAT || input.version !== DATASET_VERSION) {
32
44
  invalid('Dataset format or version is unsupported.');
33
45
  }
@@ -47,7 +59,8 @@ export function decodeDataset(source, input) {
47
59
  const domain = schemaApi.resolve(source);
48
60
  const graph = admitDatasetGraph(id, domain, GraphData.decode(input.graph));
49
61
  const variables = decodeVariables(input.variables, graph);
50
- return assembleDataset({ schema: source, id, title, description, graph, variables });
62
+ const references = decodeDatasetReferences(input.references, domain, graph);
63
+ return assembleDataset({ schema: source, id, title, description, graph, variables, references });
51
64
  }
52
65
  function encodeVariable(value) {
53
66
  return Array.isArray(value)
@@ -1,6 +1,6 @@
1
1
  import type { Graph, GraphDataJson } from '../../platform/graph/document/index.js';
2
2
  import type { Edge } from '../../platform/graph/edge/index.js';
3
- import type { Node } from '../../platform/graph/node/index.js';
3
+ import type { Node, NodeId } from '../../platform/graph/node/index.js';
4
4
  import type { ResolvedClass, schema } from '../../platform/schema/index.js';
5
5
  export declare const DATASET_FORMAT: 'astrale.sdk.dataset';
6
6
  export declare const DATASET_VERSION: 1;
@@ -9,6 +9,8 @@ declare const DATASET_NODE_CLASS: unique symbol;
9
9
  export type DatasetNode<Class extends ResolvedClass<'node'> = ResolvedClass<'node'>> = Node & {
10
10
  readonly [DATASET_NODE_CLASS]: Class;
11
11
  };
12
+ /** Canonical projected NodePath → explicit Dataset Node identity. */
13
+ export type DatasetReferences = Readonly<Record<string, NodeId>>;
12
14
  export type DatasetVariable = DatasetNode | readonly DatasetNode[];
13
15
  export type DatasetVariables = Readonly<Record<string, DatasetVariable>>;
14
16
  /**
@@ -27,6 +29,7 @@ export interface Dataset<Schema extends schema.DomainSchema = schema.DomainSchem
27
29
  readonly nodes: readonly Node[];
28
30
  readonly edges: readonly Edge[];
29
31
  /** Named entry points into the facts, for tooling and tests. */
32
+ readonly references: DatasetReferences;
30
33
  readonly variables: Variables;
31
34
  }
32
35
  export type DatasetVariableJson = {
@@ -46,6 +49,7 @@ export interface DatasetJson {
46
49
  readonly revision: string;
47
50
  };
48
51
  readonly graph: GraphDataJson;
52
+ readonly references: Readonly<Record<string, string>>;
49
53
  readonly variables: Readonly<Record<string, DatasetVariableJson>>;
50
54
  }
51
55
  export type SchemaOfDataset<Value> = Value extends {
@@ -1,7 +1,7 @@
1
1
  import type { Graph } from '../../platform/graph/document/index.js';
2
2
  import type { schema as schemaLanguage } from '../../platform/schema/index.js';
3
3
  import type { DatasetGraph } from './builder.js';
4
- import type { Dataset, DatasetVariables } from './dataset.js';
4
+ import type { Dataset, DatasetReferences, DatasetVariables } from './dataset.js';
5
5
  /** Variables returned by one graph author; `void` means the Dataset names no entry point. */
6
6
  export type AuthoredDatasetVariables = DatasetVariables | void;
7
7
  /** The exact variables record retained by a Dataset for one authored return type. */
@@ -25,6 +25,7 @@ export declare function assembleDataset<Schema extends schemaLanguage.DomainSche
25
25
  readonly title: string | undefined;
26
26
  readonly description: string | undefined;
27
27
  readonly graph: Graph;
28
+ readonly references: DatasetReferences;
28
29
  readonly variables: DatasetVariables;
29
30
  }): Dataset<Schema>;
30
31
  export declare function admitId(input: unknown): string;
@@ -22,7 +22,15 @@ export function defineDataset(source, input) {
22
22
  const facts = session.seal();
23
23
  const graph = admitDatasetGraph(id, domain, { nodes: facts.nodes, edges: facts.edges });
24
24
  const variables = admitVariables(returned, facts.created, graph);
25
- return assembleDataset({ schema: source, id, title, description, graph, variables });
25
+ return assembleDataset({
26
+ schema: source,
27
+ id,
28
+ title,
29
+ description,
30
+ graph,
31
+ variables,
32
+ references: facts.references,
33
+ });
26
34
  }
27
35
  /** True only for a Dataset produced by defineDataset or decodeDataset in this SDK package root. */
28
36
  export function isDataset(input) {
@@ -41,6 +49,7 @@ export function assembleDataset(input) {
41
49
  nodes: data.nodes,
42
50
  edges: data.edges,
43
51
  variables: input.variables,
52
+ references: input.references,
44
53
  });
45
54
  admittedDatasets.add(dataset);
46
55
  return dataset;
@@ -2,6 +2,7 @@ export { DatasetAdmissionError } from './admission.js';
2
2
  export type { DatasetClasses, DatasetEdgeInput, DatasetEndpoint, DatasetGraph, DatasetNodeInput, } from './builder.js';
3
3
  export { decodeDataset, encodeDataset } from './codec.js';
4
4
  export { DATASET_FORMAT, DATASET_VERSION } from './dataset.js';
5
- export type { Dataset, DatasetJson, DatasetNode, DatasetVariable, DatasetVariableJson, DatasetVariables, SchemaOfDataset, } from './dataset.js';
5
+ export type { Dataset, DatasetJson, DatasetNode, DatasetReferences, DatasetVariable, DatasetVariableJson, DatasetVariables, SchemaOfDataset, } from './dataset.js';
6
6
  export { defineDataset, isDataset } from './define.js';
7
7
  export type { AuthoredDatasetVariables, DatasetInput, DatasetVariablesOf } from './define.js';
8
+ export type { DatasetReferenceInput } from './references.js';
@@ -0,0 +1,13 @@
1
+ import type { Graph } from '../../platform/graph/document/index.js';
2
+ import type { Node } from '../../platform/graph/node/index.js';
3
+ import type { PolicyObjectRef, schema } from '../../platform/schema/index.js';
4
+ import type { DatasetReferences } from './dataset.js';
5
+ export type DatasetReferenceInput = PolicyObjectRef | {
6
+ readonly ref: PolicyObjectRef;
7
+ };
8
+ type ReferenceNode = Pick<Node, 'class' | 'props'>;
9
+ /** Symbolic projection supplies facts; only an explicit Dataset reference supplies identity. */
10
+ export declare function datasetReferenceNodes(domain: schema.ResolvedDomainOf<schema.DomainSchema>): ReadonlyMap<string, ReferenceNode>;
11
+ /** Serialized reference associations lose their proof and must match the exact projection again. */
12
+ export declare function decodeDatasetReferences(input: unknown, domain: schema.ResolvedDomainOf<schema.DomainSchema>, graph: Graph): DatasetReferences;
13
+ export {};
@@ -0,0 +1,56 @@
1
+ import { graph as schemaGraph } from '@astrale-os/kernel-core/schema';
2
+ import { isNodeId } from '../../platform/graph/node/index.js';
3
+ import { Path } from '../../platform/graph/path/index.js';
4
+ import { bundle, schema as schemaApi } from '../../platform/schema/index.js';
5
+ /** Symbolic projection supplies facts; only an explicit Dataset reference supplies identity. */
6
+ export function datasetReferenceNodes(domain) {
7
+ const result = new Map();
8
+ const direct = new Set([
9
+ domain.origin,
10
+ ...Object.values(domain.dependencies).map(({ origin }) => origin),
11
+ ]);
12
+ const sourceBundle = bundle.create(domain.source);
13
+ for (const source of [sourceBundle.root, ...sourceBundle.closure]) {
14
+ if (!direct.has(source.origin))
15
+ continue;
16
+ const owner = schemaApi.resolve(source);
17
+ const projection = schemaGraph.project(owner);
18
+ const allowed = new Set(owner
19
+ .definitions()
20
+ .filter(({ ref }) => ref.origin === owner.origin &&
21
+ ['class', 'function', 'policy', 'view', 'core'].includes(ref.kind))
22
+ .map(({ ref }) => Path.project(ref).raw));
23
+ for (const part of [projection.managed, projection.core]) {
24
+ for (const node of part.graph.nodes) {
25
+ if (!('as' in node))
26
+ continue;
27
+ const path = part.paths.get(node.as);
28
+ if (path !== undefined && allowed.has(path))
29
+ result.set(path, node);
30
+ }
31
+ }
32
+ }
33
+ return result;
34
+ }
35
+ /** Serialized reference associations lose their proof and must match the exact projection again. */
36
+ export function decodeDatasetReferences(input, domain, graph) {
37
+ if (input === null || typeof input !== 'object' || Array.isArray(input)) {
38
+ throw new TypeError('Dataset references must be an object.');
39
+ }
40
+ const entries = Object.entries(input);
41
+ const projected = entries.length === 0 ? new Map() : datasetReferenceNodes(domain);
42
+ const identities = new Set();
43
+ for (const [path, id] of entries) {
44
+ const expected = projected.get(path);
45
+ const actual = isNodeId(id) ? graph.nodes.byId(id) : undefined;
46
+ if (expected === undefined ||
47
+ actual === undefined ||
48
+ identities.has(actual.id) ||
49
+ expected.class !== actual.class ||
50
+ JSON.stringify(expected.props) !== JSON.stringify(actual.props)) {
51
+ throw new TypeError(`Dataset reference ${path} does not identify its projected Node.`);
52
+ }
53
+ identities.add(actual.id);
54
+ }
55
+ return Object.freeze(Object.fromEntries(entries));
56
+ }
@@ -1,6 +1,6 @@
1
1
  /** Development and test resources: schema-admitted demo Datasets and their lazy project references. */
2
2
  export { DATASET_FORMAT, DATASET_VERSION, DatasetAdmissionError, decodeDataset, defineDataset, encodeDataset, isDataset, } from './dataset/index.js';
3
- export type { AuthoredDatasetVariables, Dataset, DatasetClasses, DatasetEdgeInput, DatasetEndpoint, DatasetGraph, DatasetInput, DatasetJson, DatasetNode, DatasetNodeInput, DatasetVariable, DatasetVariableJson, DatasetVariables, DatasetVariablesOf, SchemaOfDataset, } from './dataset/index.js';
3
+ export type { AuthoredDatasetVariables, Dataset, DatasetClasses, DatasetEdgeInput, DatasetEndpoint, DatasetGraph, DatasetInput, DatasetJson, DatasetNode, DatasetNodeInput, DatasetReferences, DatasetReferenceInput, DatasetVariable, DatasetVariableJson, DatasetVariables, DatasetVariablesOf, SchemaOfDataset, } from './dataset/index.js';
4
4
  export { loadDataset, loadDatasets } from './load.js';
5
5
  export type { DatasetModuleLoader, LoadedDataset } from './load.js';
6
6
  export { dataset, isDatasetReference } from './reference.js';
@@ -100,7 +100,7 @@ export function parseArgs(argv) {
100
100
  if (positionals.length > 1) {
101
101
  throw new Error(`\`${command}\` accepts exactly one Environment.`);
102
102
  }
103
- const env = environment ?? positionals[0];
103
+ const env = environment ?? positionals[0] ?? (command === 'dev' ? 'development' : undefined);
104
104
  if (!env) {
105
105
  throw new Error(`\`${command}\` requires an Environment, e.g. \`${command} development\`.`);
106
106
  }
@@ -18,7 +18,7 @@ Usage:
18
18
  astrale-domain <command> [options]
19
19
 
20
20
  Commands:
21
- dev <environment> Remotely deploy and watch one Project Environment.
21
+ dev [environment] Remotely deploy and watch one Project Environment.
22
22
  build Build and verify without deploying.
23
23
  deploy <environment> Deploy and optionally install one Environment.
24
24
  test Run Project tests, optionally against one Environment.
@@ -34,10 +34,10 @@ const COMMAND_HELP = Object.freeze({
34
34
  dev: `Build, verify, remotely deploy, and watch one Project Environment.
35
35
 
36
36
  Usage:
37
- astrale-domain dev <environment> [options]
37
+ astrale-domain dev [environment] [options]
38
38
 
39
39
  Arguments:
40
- environment Required Project Environment name.
40
+ environment Project Environment name; defaults to development.
41
41
 
42
42
  Options:
43
43
  --environment <name> Select the environment without a positional argument.
@@ -53,6 +53,7 @@ Options:
53
53
  -h, --help Show help for dev.
54
54
 
55
55
  Behavior:
56
+ The selected Environment must exist; no other Environment is chosen as a fallback.
56
57
  Builds and verifies the Application, Runtime, frontend, and adapter artifact, then
57
58
  deploys it through the selected Environment. It never starts a local Worker,
58
59
  Vite server, or tunnel. Imported source changes produce serialized remote updates;
@@ -1,7 +1,7 @@
1
1
  /** Generated from the validated Domain knowledge catalog. Regenerate with pnpm sync:linter-policy. */
2
- export const domainPolicyDigest = '4a3b8f2d8a058f54947224c1961500c656057e236338816983a13e5e60298b55';
2
+ export const domainPolicyDigest = '56a1a8da10a228e3ab66502d206a53ccaa0cb76a3e723e83e971074f2c819827';
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-INT\tdomains\tdependency\terror\tEvery cross-Domain callable invocation implements a consumer-owned Integration inside a Provider and uses only the remote Domain's public facade\tTrace foreign callable invocations and report direct Action or Workflow calls, missing Integration contracts, non-Provider call sites, or private remote imports\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 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 Provision plan declares the exact Kernel Function and foreign Class authority it uses\tInspect SDK MutationAST builders and Kernel Provision calls and match every foreign Class operation and Provision invocation to Application requirements\tprovision-plan.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-receiver Query\tTrace every path and report several terminal effects, writes before effects, non-receiver prerequisite reads, or hidden orchestration\tsingle-operation.md\nFNC-OP-KINDS\tfunctions\tbehavior\terror\tA semantic asynchronous operation is one Query definition, Mutation definition, or Integration call\tClassify every awaited effect and report operations outside the three allowed kinds\tintegration-operation.md\nFNC-BOUNDARIES\tfunctions\tbehavior\terror\tActions use invocation-bound query and mutate executors with admitted union authority by default, explicit caller self or union graph partitions when narrowing or naming authority, plus declared Integrations; Providers or foreign Domains are never imported\tInspect context use, authority-mode selection, dependencies, imports, and failure mapping; report raw or unbound graph executors, implicit privilege, concrete or foreign dependencies, broad mapping, or 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-INT\tfunctions\tbehavior\terror\tA Workflow invokes another Domain only through a declared Integration and imports no foreign Domain\tResolve Workflow imports and operations and report foreign Domain imports or calls without Integration ownership\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 Application Function requirement\tMatch each invocation-bound public callable reference to the same foreign facade and Function selector under Application 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\tApplication 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, 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-INT\tdomains\tdependency\terror\tEvery cross-Domain callable invocation implements a consumer-owned Integration inside a Provider and uses only the remote Domain's public facade\tTrace foreign callable invocations and report direct Action or Workflow calls, missing Integration contracts, non-Provider call sites, or private remote imports\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 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 Provision plan declares the exact Kernel Function and foreign Class authority it uses\tInspect SDK MutationAST builders and Kernel Provision calls and match every foreign Class operation and Provision invocation to Application requirements\tprovision-plan.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-receiver Query\tTrace every path and report several terminal effects, writes before effects, non-receiver prerequisite reads, or hidden orchestration\tsingle-operation.md\nFNC-OP-KINDS\tfunctions\tbehavior\terror\tA semantic asynchronous operation is one Query definition, Mutation definition, or Integration call\tClassify every awaited effect and report operations outside the three allowed kinds\tintegration-operation.md\nFNC-BOUNDARIES\tfunctions\tbehavior\terror\tActions use invocation-bound query and mutate executors with installed Domain authority by default, explicit caller self or union graph partitions when selecting authority, plus declared Integrations; Providers or foreign Domains are never imported\tInspect context use, authority-mode selection, dependencies, imports, and failure mapping; report raw or unbound graph executors, implicit privilege, concrete or foreign dependencies, broad mapping, or 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-INT\tfunctions\tbehavior\terror\tA Workflow invokes another Domain only through a declared Integration and imports no foreign Domain\tResolve Workflow imports and operations and report foreign Domain imports or calls without Integration ownership\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 Application Function requirement\tMatch each invocation-bound public callable reference to the same foreign facade and Function selector under Application 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\tApplication 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",
5
5
  layers: frozenRows([
6
6
  {
7
7
  id: 'schema',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/sdk",
3
- "version": "0.5.0-beta.114",
3
+ "version": "0.5.0-beta.116",
4
4
  "description": "Schema-first SDK for defining, composing, and deploying Astrale domains",
5
5
  "keywords": [
6
6
  "astrale",
@@ -229,11 +229,11 @@
229
229
  "registry": "https://registry.npmjs.org/"
230
230
  },
231
231
  "dependencies": {
232
- "@astrale-os/kernel-client": "0.6.0-beta.49",
233
- "@astrale-os/kernel-core": "0.9.0-beta.37",
234
- "@astrale-os/kernel-dsl": "0.2.0-beta.28",
235
- "@astrale-os/kernel-protocol": "0.5.0-beta.40",
236
- "@astrale-os/kernel-server": "0.5.0-beta.42",
232
+ "@astrale-os/kernel-client": "0.6.0-beta.51",
233
+ "@astrale-os/kernel-core": "0.9.0-beta.39",
234
+ "@astrale-os/kernel-dsl": "0.2.0-beta.30",
235
+ "@astrale-os/kernel-protocol": "0.5.0-beta.42",
236
+ "@astrale-os/kernel-server": "0.5.0-beta.44",
237
237
  "@lucide/icons": "1.34.0",
238
238
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
239
239
  "hono": "^4.13.2",