@openfairygui/backend 0.3.1 → 0.5.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,46 +1,9 @@
1
+ import * as _$_openfairygui_core0 from "@openfairygui/core";
2
+ import { ProjectDiagnosticCode, ProjectValidationReport } from "@openfairygui/core";
3
+ import { UamComponentModel, UamComponentResource, UamComponentSelector, UamControllerModel, UamControllerSelector, UamDisplayNode, UamDisplayNodeKind, UamDisplayNodeSelector, UamGenericAssetResource, UamImageResource, UamMovieClipResource, UamPackage, UamPackageSelector, UamPackageSettings, UamProject, UamResource, UamResourceSelector, UamTransactionOperation, UamTransactionSupportIssueCode, UamTransitionModel, UamTransitionSelector } from "@openfairygui/core/uam";
1
4
  import { ApplyUamTransactionAppError } from "@openfairygui/functions/uam";
2
- import { ProjectValidationReport } from "@openfairygui/core";
3
- import { UamDisplayNodeKind, UamProject, UamResource, UamTransactionOperation } from "@openfairygui/core/uam";
4
5
  import { FileSystem } from "@openfairygui/core/project-io";
5
6
 
6
- //#region src/contracts.d.ts
7
- declare const BACKEND_CONTRACT_VERSION: "1.1.0-p2";
8
- declare const BACKEND_CAPABILITY_SCHEMA_VERSION: 3;
9
- declare const BACKEND_COMPATIBILITY_POLICY: {
10
- readonly incompatibleChange: "requires contractVersion bump";
11
- readonly capabilitySchemaChange: "requires capabilitySchemaVersion bump";
12
- readonly additiveChange: "allowed without breaking existing consumers";
13
- };
14
- type BackendStage = 'read' | 'authoring' | 'runtime';
15
- interface BackendMessage {
16
- code: string;
17
- message: string;
18
- }
19
- interface BackendDiagnostic {
20
- code: string;
21
- message: string;
22
- severity: 'info' | 'warning' | 'error';
23
- path?: string;
24
- nodeKind?: string;
25
- resourceKind?: string;
26
- gearKind?: string;
27
- field?: string;
28
- operationKind?: string;
29
- opIndex?: number;
30
- opId?: string;
31
- }
32
- interface BackendResponseMeta {
33
- requestId: string;
34
- sessionId?: string;
35
- revision?: number;
36
- durationMs: number;
37
- warnings: BackendMessage[];
38
- diagnostics: BackendDiagnostic[];
39
- stage: BackendStage;
40
- contractVersion: typeof BACKEND_CONTRACT_VERSION;
41
- capabilitySchemaVersion: typeof BACKEND_CAPABILITY_SCHEMA_VERSION;
42
- }
43
- //#endregion
44
7
  //#region src/path-policy.d.ts
45
8
  interface PathPolicyViolationError {
46
9
  code: 'path_policy_violation';
@@ -50,7 +13,140 @@ interface PathPolicyViolationError {
50
13
  allowedPath: string;
51
14
  }
52
15
  //#endregion
16
+ //#region src/runtime/capabilities.d.ts
17
+ declare const BACKEND_METHODS: readonly ["getCapabilities", "openSession", "openProjectSession", "getSession", "getProjectOutline", "queryEntity", "readSessionState", "readResourceBytes", "validateSession", "preflightTransaction", "applyTransaction", "saveSession", "materializeSession", "closeSession", "getEvents", "getJob", "listJobs", "cancelJob", "getCacheSnapshot", "refreshCache"];
18
+ //#endregion
53
19
  //#region src/runtime/contracts.d.ts
20
+ type BackendMethodName = keyof BackendRuntime;
21
+ declare const BACKEND_ENTITY_QUERY_LIMITS: {
22
+ readonly maxBytes: 262144;
23
+ readonly maxDepth: 32;
24
+ readonly maxNodes: 100000;
25
+ };
26
+ declare const BACKEND_SESSION_READ_LIMITS: {
27
+ readonly model: {
28
+ readonly maxBytes: 4194304;
29
+ readonly maxDepth: 64;
30
+ readonly maxNodes: 500000;
31
+ };
32
+ readonly resourceBytes: 1048576;
33
+ };
34
+ /** The public UAM model, excluding only each asset resource's primary sourceBytes. */
35
+ type BackendSessionResourceModel = UamComponentResource | Omit<UamImageResource, 'sourceBytes'> | Omit<UamMovieClipResource, 'sourceBytes'> | Omit<UamGenericAssetResource, 'sourceBytes'>;
36
+ interface BackendSessionPackageModel extends Omit<UamPackage, 'resources'> {
37
+ resources: BackendSessionResourceModel[];
38
+ }
39
+ interface BackendSessionProjectModel extends Omit<UamProject, 'packages'> {
40
+ packages: BackendSessionPackageModel[];
41
+ }
42
+ interface ReadSessionStateInput {
43
+ sessionId: string;
44
+ expectedRevision?: number;
45
+ }
46
+ interface ReadResourceBytesInput {
47
+ sessionId: string;
48
+ expectedRevision: number;
49
+ selector: UamResourceSelector;
50
+ }
51
+ interface BackendSessionStateSnapshot extends Pick<BackendSessionSnapshot, 'sessionId' | 'revision' | 'lastSavedRevision' | 'dirty' | 'uamFidelity'> {
52
+ project: BackendSessionProjectModel;
53
+ readDiagnostics: _$_openfairygui_core0.ProjectDiagnostic[];
54
+ /** Source-read completeness, not a guarantee of resource bytes or downstream usability. */
55
+ readComplete: boolean;
56
+ }
57
+ interface BackendResourceBytesSnapshot {
58
+ sessionId: string;
59
+ revision: number;
60
+ selector: UamResourceSelector;
61
+ /** Only primary bytes already held in this session; no filesystem hydration. */
62
+ sourceBytes: Uint8Array;
63
+ }
64
+ interface SessionReadError {
65
+ code: 'session_read_failed';
66
+ message: string;
67
+ sessionId: string;
68
+ reason: 'invalid_query' | 'not_found' | 'ambiguous' | 'unsupported_resource' | 'bytes_unavailable' | 'response_budget_exceeded' | 'non_json_value';
69
+ }
70
+ interface SessionStaleReadError {
71
+ code: 'stale_read';
72
+ message: string;
73
+ sessionId: string;
74
+ expectedRevision: number;
75
+ actualRevision: number;
76
+ }
77
+ declare const BACKEND_TRANSACTION_PREVIEW_LIMITS: {
78
+ readonly maxBytes: 262144;
79
+ readonly maxEntries: 2000;
80
+ };
81
+ /** Fixed resource projection. Binary content, source bookkeeping and arbitrary metadata are excluded. */
82
+ declare const BACKEND_RESOURCE_QUERY_FIELDS: readonly ["kind", "id", "name", "path", "exported", "favorite", "branch", "branchItemIds", "fileName", "file", "dimensions", "image", "movieClip"];
83
+ type ResourceQueryFields<T> = Pick<T, Extract<keyof T, typeof BACKEND_RESOURCE_QUERY_FIELDS[number]>>;
84
+ type BackendResourceSnapshot = ResourceQueryFields<UamImageResource> | ResourceQueryFields<UamMovieClipResource> | ResourceQueryFields<UamGenericAssetResource> | ResourceQueryFields<UamComponentResource>;
85
+ type BackendComponentSnapshot = Pick<UamComponentModel, 'size' | 'properties' | 'customData'>;
86
+ type BackendProjectSnapshot = Pick<UamProject, 'projectId' | 'settings'>;
87
+ interface BackendPackageSnapshot {
88
+ id: string;
89
+ name: string;
90
+ settings: UamPackageSettings;
91
+ }
92
+ type BackendEntityTarget = {
93
+ kind: 'project';
94
+ } | {
95
+ kind: 'package';
96
+ selector: UamPackageSelector;
97
+ } | {
98
+ kind: 'resource';
99
+ selector: UamResourceSelector;
100
+ } | {
101
+ kind: 'component';
102
+ selector: UamComponentSelector;
103
+ } | {
104
+ kind: 'displayNode';
105
+ selector: UamDisplayNodeSelector;
106
+ } | {
107
+ kind: 'controller';
108
+ selector: UamControllerSelector;
109
+ } | {
110
+ kind: 'transition';
111
+ selector: UamTransitionSelector;
112
+ };
113
+ interface QueryEntityInput {
114
+ sessionId: string;
115
+ target: BackendEntityTarget;
116
+ }
117
+ interface BackendEntitySnapshot {
118
+ sessionId: string;
119
+ revision: number;
120
+ target: BackendEntityTarget;
121
+ entity: {
122
+ kind: 'project';
123
+ properties: BackendProjectSnapshot;
124
+ } | {
125
+ kind: 'package';
126
+ properties: BackendPackageSnapshot;
127
+ } | {
128
+ kind: 'resource';
129
+ properties: BackendResourceSnapshot;
130
+ } | {
131
+ kind: 'component';
132
+ properties: BackendComponentSnapshot;
133
+ } | {
134
+ kind: 'displayNode';
135
+ properties: UamDisplayNode;
136
+ } | {
137
+ kind: 'controller';
138
+ properties: UamControllerModel;
139
+ } | {
140
+ kind: 'transition';
141
+ properties: UamTransitionModel;
142
+ };
143
+ }
144
+ interface EntityQueryError {
145
+ code: 'entity_query_failed';
146
+ message: string;
147
+ sessionId: string;
148
+ reason: 'invalid_query' | 'not_found' | 'ambiguous' | 'response_budget_exceeded' | 'non_json_value';
149
+ }
54
150
  /** An exclusive lock owned for the lifetime of one backend session. */
55
151
  interface BackendSessionLock {
56
152
  /** Persist optional host metadata without changing lock ownership. */
@@ -129,6 +225,8 @@ interface BackendCapabilityManifest {
129
225
  diagnostics: {
130
226
  stableCodes: true;
131
227
  errorDiagnosticMirror: true;
228
+ recoveryGuides: 'all-formal-codes';
229
+ automaticRepair: false;
132
230
  };
133
231
  }
134
232
  interface BackendCapabilities {
@@ -137,14 +235,35 @@ interface BackendCapabilities {
137
235
  transactionKernelOwner: '@openfairygui/core';
138
236
  appSeamOwner: '@openfairygui/functions';
139
237
  runtimeOwner: '@openfairygui/backend';
140
- methods: readonly ['getCapabilities', 'openSession', 'openProjectSession', 'getSession', 'getProjectOutline', 'validateSession', 'applyTransaction', 'saveSession', 'materializeSession', 'closeSession', 'getEvents', 'getJob', 'listJobs', 'cancelJob', 'getCacheSnapshot', 'refreshCache'];
238
+ methods: typeof BACKEND_METHODS;
141
239
  read: {
142
240
  capabilitySnapshot: true;
143
241
  sessionSnapshot: true;
144
242
  projectOutline: true;
243
+ entityQuery: {
244
+ kinds: readonly BackendEntityTarget['kind'][];
245
+ projection: 'properties';
246
+ sourceBytes: false;
247
+ limits: typeof BACKEND_ENTITY_QUERY_LIMITS;
248
+ };
249
+ sessionState: {
250
+ sourceBytes: false;
251
+ limits: typeof BACKEND_SESSION_READ_LIMITS.model;
252
+ };
253
+ resourceBytes: {
254
+ expectedRevisionRequired: true;
255
+ hydration: false;
256
+ maxBytes: typeof BACKEND_SESSION_READ_LIMITS.resourceBytes;
257
+ };
145
258
  projectValidation: true;
146
259
  };
147
260
  authoring: {
261
+ preflightTransaction: {
262
+ mode: 'execute-and-discard';
263
+ reservesRevision: false;
264
+ impact: 'model-diff';
265
+ limits: typeof BACKEND_TRANSACTION_PREVIEW_LIMITS;
266
+ };
148
267
  applyTransaction: true;
149
268
  saveSession: true;
150
269
  resourceKinds: readonly string[];
@@ -478,7 +597,7 @@ interface RefreshCacheInput {
478
597
  sessionId: string;
479
598
  reason?: 'manual' | 'session_open' | 'after_save';
480
599
  }
481
- type BackendError = SessionNotFoundError | SessionIdConflictError | SessionStaleWriteError | InProcessLockConflictError | AdvisoryLockConflictError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | EventCursorInvalidError | BackendJobNotFoundError | BackendJobNotCancellableError | BackendJobCancelledError | CacheRefreshFailedError | BackendCapabilityUnavailableError | ProjectRootNotAllowedError | ProjectOpenFailedError | ApplyUamTransactionAppError;
600
+ type BackendError = SessionNotFoundError | TransactionPreviewError | EntityQueryError | SessionReadError | SessionStaleReadError | SessionIdConflictError | SessionStaleWriteError | InProcessLockConflictError | AdvisoryLockConflictError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | EventCursorInvalidError | BackendJobNotFoundError | BackendJobNotCancellableError | BackendJobCancelledError | CacheRefreshFailedError | BackendCapabilityUnavailableError | ProjectRootNotAllowedError | ProjectOpenFailedError | ApplyUamTransactionAppError;
482
601
  interface ProjectRootNotAllowedError {
483
602
  code: 'project_root_not_allowed';
484
603
  message: string;
@@ -494,6 +613,41 @@ interface ApplySessionTransactionInput {
494
613
  expectedRevision: number;
495
614
  operations: UamTransactionOperation[];
496
615
  }
616
+ interface BackendTransactionPreview {
617
+ sessionId: string;
618
+ baseRevision: number;
619
+ /** Revision after applying this batch at baseRevision, including an empty batch. Not reserved. */
620
+ projectedRevision: number;
621
+ mode: 'execute-and-discard';
622
+ /** Complete, bounded comparison of current and projected UAM, not unsaved changes since last save. */
623
+ impact: {
624
+ entities: BackendTransactionEntityChange[]; /** Project-relative paths from the actual ProjectWriter, including empty directories. Not a disk write plan. */
625
+ files: Array<{
626
+ path: string;
627
+ kind: 'file' | 'directory';
628
+ change: 'added' | 'removed' | 'updated';
629
+ }>;
630
+ };
631
+ persistence: {
632
+ requiredAfterApply: true;
633
+ nextAction: 'saveSession' | 'materializeSession' | 'host-action';
634
+ fileSystemAvailable: boolean;
635
+ uamFidelity: BackendSessionSnapshot['uamFidelity']; /** Preflight never verifies filesystem permissions, materialize destinations or actual disk state. */
636
+ writeVerified: false;
637
+ };
638
+ }
639
+ interface BackendTransactionEntityChange {
640
+ target: BackendEntityTarget;
641
+ change: 'added' | 'removed' | 'updated';
642
+ /** Changed top-level property names; child collections contain identities and preserve their order. */
643
+ fields: string[];
644
+ }
645
+ interface TransactionPreviewError {
646
+ code: 'transaction_preview_failed';
647
+ message: string;
648
+ sessionId: string;
649
+ reason: 'response_budget_exceeded' | 'projection_failed';
650
+ }
497
651
  interface GetProjectOutlineInput {
498
652
  sessionId: string;
499
653
  }
@@ -504,7 +658,9 @@ interface OpenProjectSessionInput {
504
658
  /** Authoritative UAM project. Use BackendRuntime.openSession() when importing an existing project from storage. */
505
659
  project: UamProject;
506
660
  sessionId?: string;
661
+ /** Session identity only; without explicit storage or a per-call filesystem this grants no filesystem access. */
507
662
  canonicalProjectPath?: string;
663
+ /** Host-defined session identity; not a filesystem authorization or an allowed-root override. */
508
664
  canonicalPathKey?: string;
509
665
  /** Optional writeback target for the authoritative UAM project; this is not an import source. */
510
666
  storage?: BackendProjectSessionStorage;
@@ -566,7 +722,11 @@ declare class BackendRuntime {
566
722
  sessionId: string;
567
723
  }): BackendResult<BackendSessionSnapshot, SessionNotFoundError>;
568
724
  getProjectOutline(input: GetProjectOutlineInput): BackendResult<BackendProjectOutline, SessionNotFoundError>;
725
+ queryEntity(input: QueryEntityInput): BackendResult<BackendEntitySnapshot, SessionNotFoundError | EntityQueryError>;
726
+ readSessionState(input: ReadSessionStateInput): BackendResult<BackendSessionStateSnapshot, SessionNotFoundError | SessionReadError | SessionStaleReadError>;
727
+ readResourceBytes(input: ReadResourceBytesInput): BackendResult<BackendResourceBytesSnapshot, SessionNotFoundError | SessionReadError | SessionStaleReadError>;
569
728
  validateSession(input: ValidateSessionInput): BackendResult<ProjectValidationReport, SessionNotFoundError>;
729
+ preflightTransaction(input: ApplySessionTransactionInput): Promise<BackendResult<BackendTransactionPreview, SessionNotFoundError | SessionStaleWriteError | ApplyUamTransactionAppError | TransactionPreviewError>>;
570
730
  applyTransaction(input: ApplySessionTransactionInput): Promise<BackendResult<BackendSessionSnapshot, SessionNotFoundError | SessionStaleWriteError | ApplyUamTransactionAppError>>;
571
731
  saveSession(input: SaveSessionInput): Promise<BackendResult<BackendSessionSnapshot | MaterializeSessionSnapshot, SessionNotFoundError | SessionStaleWriteError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | InProcessLockConflictError | BackendCapabilityUnavailableError>>;
572
732
  materializeSession(input: MaterializeSessionInput): Promise<BackendResult<MaterializeSessionSnapshot, SessionNotFoundError | SessionStaleWriteError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | InProcessLockConflictError | BackendCapabilityUnavailableError>>;
@@ -584,6 +744,1737 @@ declare class BackendRuntime {
584
744
  refreshCache(input: RefreshCacheInput): BackendResult<BackendJobSnapshot, SessionNotFoundError>;
585
745
  }
586
746
  //#endregion
747
+ //#region src/contracts.d.ts
748
+ declare const BACKEND_CONTRACT_VERSION: "2.0.0-p2";
749
+ declare const BACKEND_CAPABILITY_SCHEMA_VERSION: 11;
750
+ declare const BACKEND_COMPATIBILITY_POLICY: {
751
+ readonly incompatibleChange: "requires contractVersion bump";
752
+ readonly capabilitySchemaChange: "requires capabilitySchemaVersion bump";
753
+ readonly additiveChange: "allowed without breaking existing consumers";
754
+ };
755
+ type BackendStage = 'read' | 'authoring' | 'runtime';
756
+ interface BackendMessage {
757
+ code: string;
758
+ message: string;
759
+ }
760
+ type BackendDiagnosticCode = BackendError['code'] | UamTransactionSupportIssueCode | ProjectDiagnosticCode;
761
+ type BackendDiagnosticOwner = 'backend' | 'core.transaction' | 'core.validation';
762
+ interface BackendDiagnostic {
763
+ code: BackendDiagnosticCode;
764
+ message: string;
765
+ severity: 'info' | 'warning' | 'error';
766
+ path?: string;
767
+ nodeKind?: string;
768
+ resourceKind?: string;
769
+ gearKind?: string;
770
+ field?: string;
771
+ operationKind?: string;
772
+ opIndex?: number;
773
+ opId?: string;
774
+ /** Present for catalogued diagnostics only; original codes and classification are preserved. */
775
+ owner?: BackendDiagnosticOwner;
776
+ docsUri?: string;
777
+ remediation?: BackendDiagnosticRemediation;
778
+ }
779
+ interface BackendDiagnosticRemediation {
780
+ kind: 'refresh-and-replan' | 'revise-selector' | 'revise-operation' | 'host-action';
781
+ message: string;
782
+ /** A read-only starting point, never permission to retry or mutate. */
783
+ read?: {
784
+ method: 'getProjectOutline';
785
+ input: {
786
+ sessionId: string;
787
+ };
788
+ };
789
+ }
790
+ interface BackendResponseMeta {
791
+ requestId: string;
792
+ sessionId?: string;
793
+ revision?: number;
794
+ durationMs: number;
795
+ warnings: BackendMessage[];
796
+ diagnostics: BackendDiagnostic[];
797
+ stage: BackendStage;
798
+ contractVersion: typeof BACKEND_CONTRACT_VERSION;
799
+ capabilitySchemaVersion: typeof BACKEND_CAPABILITY_SCHEMA_VERSION;
800
+ }
801
+ //#endregion
802
+ //#region src/diagnostics.d.ts
803
+ /** Shared codes list all canonical owners; responses preserve the actual reporting owner. */
804
+ interface BackendDiagnosticGuide {
805
+ code: BackendDiagnosticCode;
806
+ owners: readonly BackendDiagnosticOwner[];
807
+ remediation: Omit<BackendDiagnosticRemediation, 'read'>;
808
+ }
809
+ declare const BACKEND_DIAGNOSTICS_URI = "openfairygui://docs/diagnostics";
810
+ declare const BACKEND_DIAGNOSTIC_TEMPLATE = "openfairygui://docs/diagnostics/{code}";
811
+ declare function getBackendDiagnosticCatalog(): ({
812
+ docsUri: string;
813
+ code: "stale_read";
814
+ owners: readonly ["backend"];
815
+ remediation: {
816
+ readonly kind: "refresh-and-replan";
817
+ readonly message: "Discard the incomplete model/bytes read and restart with readSessionState. Use its revision for every readResourceBytes call. No historical state is retained or reserved; do not combine resources from different edit revisions.";
818
+ };
819
+ } | {
820
+ docsUri: string;
821
+ code: "session_read_failed";
822
+ owners: readonly ["backend"];
823
+ remediation: {
824
+ readonly kind: "host-action";
825
+ readonly message: "Inspect error.reason: invalid_query requires valid inputs; not_found/ambiguous requires exact current resource identifiers; unsupported_resource/bytes_unavailable means primary bytes cannot be read from this session. Budget or non-JSON failures require host inspection. Preserve unsaved work; do not save, reopen, repair or mutate the model merely to obtain a read.";
826
+ };
827
+ } | {
828
+ docsUri: string;
829
+ code: "transaction_preview_failed";
830
+ owners: readonly ["backend"];
831
+ remediation: {
832
+ readonly kind: "host-action";
833
+ readonly message: "No complete preview is available. Inspect error.reason with the host: response_budget_exceeded requires a smaller independently meaningful authorized batch; projection_failed requires inspecting the project serialization failure. Preserve the session and never treat a missing or truncated impact as approval to apply or save.";
834
+ };
835
+ } | {
836
+ docsUri: string;
837
+ code: "stale_write";
838
+ owners: readonly ["backend"];
839
+ remediation: {
840
+ readonly kind: "refresh-and-replan";
841
+ readonly message: "Refresh the outline and affected entities, then replan from their current revision and preflight again. A preview reserves no revision. Never replace expectedRevision and blindly retry the original transaction or save.";
842
+ };
843
+ } | {
844
+ docsUri: string;
845
+ code: "entity_query_failed";
846
+ owners: readonly ["backend"];
847
+ remediation: {
848
+ readonly kind: "host-action";
849
+ readonly message: "Inspect error.reason: invalid_query requires correcting the target; not_found/ambiguous requires current exact identifiers; response_budget_exceeded/non_json_value requires host inspection of the entity. Do not broaden queries or mutate data to evade the response limits.";
850
+ };
851
+ } | {
852
+ docsUri: string;
853
+ code: "session_not_found";
854
+ owners: readonly ["backend"];
855
+ remediation: {
856
+ readonly kind: "host-action";
857
+ readonly message: "Ask the host to confirm the runtime and project, recover any unsaved state, then explicitly open a new session if appropriate. Session IDs are runtime-local. Read its new revision and replan; never reuse an expired session or assume disk contains unsaved changes.";
858
+ };
859
+ } | {
860
+ docsUri: string;
861
+ code: "path_policy_violation";
862
+ owners: readonly ["backend"];
863
+ remediation: {
864
+ readonly kind: "host-action";
865
+ readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
866
+ };
867
+ } | {
868
+ docsUri: string;
869
+ code: "project_root_not_allowed";
870
+ owners: readonly ["backend"];
871
+ remediation: {
872
+ readonly kind: "host-action";
873
+ readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
874
+ };
875
+ } | {
876
+ docsUri: string;
877
+ code: "invalid_package_selector";
878
+ owners: readonly ["core.transaction"];
879
+ remediation: {
880
+ readonly kind: "revise-selector";
881
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
882
+ };
883
+ } | {
884
+ docsUri: string;
885
+ code: "invalid_component_selector";
886
+ owners: readonly ["core.transaction"];
887
+ remediation: {
888
+ readonly kind: "revise-selector";
889
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
890
+ };
891
+ } | {
892
+ docsUri: string;
893
+ code: "invalid_resource_selector";
894
+ owners: readonly ["core.transaction"];
895
+ remediation: {
896
+ readonly kind: "revise-selector";
897
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
898
+ };
899
+ } | {
900
+ docsUri: string;
901
+ code: "invalid_display_node_selector";
902
+ owners: readonly ["core.transaction"];
903
+ remediation: {
904
+ readonly kind: "revise-selector";
905
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
906
+ };
907
+ } | {
908
+ docsUri: string;
909
+ code: "invalid_resource_folder_selector";
910
+ owners: readonly ["core.transaction"];
911
+ remediation: {
912
+ readonly kind: "revise-selector";
913
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
914
+ };
915
+ } | {
916
+ docsUri: string;
917
+ code: "invalid_branch_selector";
918
+ owners: readonly ["core.transaction"];
919
+ remediation: {
920
+ readonly kind: "revise-selector";
921
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
922
+ };
923
+ } | {
924
+ docsUri: string;
925
+ code: "invalid_gear_selector";
926
+ owners: readonly ["core.transaction"];
927
+ remediation: {
928
+ readonly kind: "revise-selector";
929
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
930
+ };
931
+ } | {
932
+ docsUri: string;
933
+ code: "invalid_look_gear_selector";
934
+ owners: readonly ["core.transaction"];
935
+ remediation: {
936
+ readonly kind: "revise-selector";
937
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
938
+ };
939
+ } | {
940
+ docsUri: string;
941
+ code: "selector_ambiguity";
942
+ owners: readonly ["core.transaction"];
943
+ remediation: {
944
+ readonly kind: "revise-selector";
945
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
946
+ };
947
+ } | {
948
+ docsUri: string;
949
+ code: "unavailable_resource_source_bytes";
950
+ owners: readonly ["core.transaction"];
951
+ remediation: {
952
+ readonly kind: "host-action";
953
+ readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
954
+ };
955
+ } | {
956
+ docsUri: string;
957
+ code: "missing_source";
958
+ owners: readonly ["core.validation"];
959
+ remediation: {
960
+ readonly kind: "host-action";
961
+ readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
962
+ };
963
+ } | {
964
+ docsUri: string;
965
+ code: "unreadable_source";
966
+ owners: readonly ["core.validation"];
967
+ remediation: {
968
+ readonly kind: "host-action";
969
+ readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
970
+ };
971
+ } | {
972
+ docsUri: string;
973
+ code: "decode_capability_unavailable";
974
+ owners: readonly ["core.validation"];
975
+ remediation: {
976
+ readonly kind: "host-action";
977
+ readonly message: "Validation is incomplete, not passed. Inspect whether source bytes are unloaded or a decoder is unavailable. Ask the host to hydrate sources or provide the required decoder (Node image validation uses optional Sharp), then validate again. Do not install dependencies or change the project automatically.";
978
+ };
979
+ } | {
980
+ docsUri: string;
981
+ code: "session_id_conflict";
982
+ owners: readonly ["backend"];
983
+ remediation: {
984
+ readonly kind: "host-action";
985
+ readonly message: "Use getSession to inspect the existing session. Reuse it only for the intended project, or choose a new session ID; do not close another owner\\u0027s session to make room.";
986
+ };
987
+ } | {
988
+ docsUri: string;
989
+ code: "lock_conflict";
990
+ owners: readonly ["backend"];
991
+ remediation: {
992
+ readonly kind: "host-action";
993
+ readonly message: "Another owner holds the project lock. Preserve unsaved work and ask that owner to close its session, then explicitly reopen. Never remove a live lock, force-close a peer, or bypass locking.";
994
+ };
995
+ } | {
996
+ docsUri: string;
997
+ code: "event_cursor_invalid";
998
+ owners: readonly ["backend"];
999
+ remediation: {
1000
+ readonly kind: "refresh-and-replan";
1001
+ readonly message: "Read the error and getEvents cursor bounds. Request a fresh bounded event page without the invalid cursor and refresh the current outline before replanning; missing retained history is not evidence that nothing changed.";
1002
+ };
1003
+ } | {
1004
+ docsUri: string;
1005
+ code: "corrupt_source";
1006
+ owners: readonly ["core.validation"];
1007
+ remediation: {
1008
+ readonly kind: "host-action";
1009
+ readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
1010
+ };
1011
+ } | {
1012
+ docsUri: string;
1013
+ code: "unsupported_operation";
1014
+ owners: readonly ["core.transaction"];
1015
+ remediation: {
1016
+ readonly kind: "revise-operation";
1017
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1018
+ };
1019
+ } | {
1020
+ docsUri: string;
1021
+ code: "transaction_unsupported";
1022
+ owners: readonly ["core.transaction"];
1023
+ remediation: {
1024
+ readonly kind: "revise-operation";
1025
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1026
+ };
1027
+ } | {
1028
+ docsUri: string;
1029
+ code: "unsupported_display_node_kind";
1030
+ owners: readonly ["core.transaction"];
1031
+ remediation: {
1032
+ readonly kind: "revise-operation";
1033
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1034
+ };
1035
+ } | {
1036
+ docsUri: string;
1037
+ code: "unsupported_cross_package_image_ref";
1038
+ owners: readonly ["core.transaction"];
1039
+ remediation: {
1040
+ readonly kind: "revise-operation";
1041
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1042
+ };
1043
+ } | {
1044
+ docsUri: string;
1045
+ code: "unsupported_gear_kind";
1046
+ owners: readonly ["core.transaction"];
1047
+ remediation: {
1048
+ readonly kind: "revise-operation";
1049
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1050
+ };
1051
+ } | {
1052
+ docsUri: string;
1053
+ code: "unsupported_resource_mutation";
1054
+ owners: readonly ["core.transaction"];
1055
+ remediation: {
1056
+ readonly kind: "revise-operation";
1057
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1058
+ };
1059
+ } | {
1060
+ docsUri: string;
1061
+ code: "unsupported_display_node_mutation";
1062
+ owners: readonly ["core.transaction"];
1063
+ remediation: {
1064
+ readonly kind: "revise-operation";
1065
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1066
+ };
1067
+ } | {
1068
+ docsUri: string;
1069
+ code: "unsupported_text_field_target";
1070
+ owners: readonly ["core.transaction"];
1071
+ remediation: {
1072
+ readonly kind: "revise-operation";
1073
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1074
+ };
1075
+ } | {
1076
+ docsUri: string;
1077
+ code: "unsupported_display_node_field";
1078
+ owners: readonly ["core.transaction"];
1079
+ remediation: {
1080
+ readonly kind: "revise-operation";
1081
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1082
+ };
1083
+ } | {
1084
+ docsUri: string;
1085
+ code: "unsupported_operation_batch";
1086
+ owners: readonly ["core.transaction"];
1087
+ remediation: {
1088
+ readonly kind: "revise-operation";
1089
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1090
+ };
1091
+ } | {
1092
+ docsUri: string;
1093
+ code: "unsupported_resource_kind";
1094
+ owners: readonly ["core.transaction", "core.validation"];
1095
+ remediation: {
1096
+ readonly kind: "revise-operation";
1097
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1098
+ };
1099
+ } | {
1100
+ docsUri: string;
1101
+ code: "invalid_project_settings";
1102
+ owners: readonly ["core.transaction"];
1103
+ remediation: {
1104
+ readonly kind: "revise-operation";
1105
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1106
+ };
1107
+ } | {
1108
+ docsUri: string;
1109
+ code: "invalid_package_settings";
1110
+ owners: readonly ["core.transaction"];
1111
+ remediation: {
1112
+ readonly kind: "revise-operation";
1113
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1114
+ };
1115
+ } | {
1116
+ docsUri: string;
1117
+ code: "invalid_display_node_payload";
1118
+ owners: readonly ["core.transaction"];
1119
+ remediation: {
1120
+ readonly kind: "revise-operation";
1121
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1122
+ };
1123
+ } | {
1124
+ docsUri: string;
1125
+ code: "invalid_resource_name";
1126
+ owners: readonly ["core.transaction"];
1127
+ remediation: {
1128
+ readonly kind: "revise-operation";
1129
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1130
+ };
1131
+ } | {
1132
+ docsUri: string;
1133
+ code: "invalid_resource_path";
1134
+ owners: readonly ["core.transaction"];
1135
+ remediation: {
1136
+ readonly kind: "revise-operation";
1137
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1138
+ };
1139
+ } | {
1140
+ docsUri: string;
1141
+ code: "invalid_resource_folder_path";
1142
+ owners: readonly ["core.transaction"];
1143
+ remediation: {
1144
+ readonly kind: "revise-operation";
1145
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1146
+ };
1147
+ } | {
1148
+ docsUri: string;
1149
+ code: "invalid_resource_folder_atlas";
1150
+ owners: readonly ["core.transaction"];
1151
+ remediation: {
1152
+ readonly kind: "revise-operation";
1153
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1154
+ };
1155
+ } | {
1156
+ docsUri: string;
1157
+ code: "invalid_attach_index";
1158
+ owners: readonly ["core.transaction"];
1159
+ remediation: {
1160
+ readonly kind: "revise-operation";
1161
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1162
+ };
1163
+ } | {
1164
+ docsUri: string;
1165
+ code: "invalid_controller_payload";
1166
+ owners: readonly ["core.transaction"];
1167
+ remediation: {
1168
+ readonly kind: "revise-operation";
1169
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1170
+ };
1171
+ } | {
1172
+ docsUri: string;
1173
+ code: "invalid_transition_payload";
1174
+ owners: readonly ["core.transaction"];
1175
+ remediation: {
1176
+ readonly kind: "revise-operation";
1177
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1178
+ };
1179
+ } | {
1180
+ docsUri: string;
1181
+ code: "invalid_look_gear_payload";
1182
+ owners: readonly ["core.transaction"];
1183
+ remediation: {
1184
+ readonly kind: "revise-operation";
1185
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1186
+ };
1187
+ } | {
1188
+ docsUri: string;
1189
+ code: "invalid_gear_payload";
1190
+ owners: readonly ["core.transaction"];
1191
+ remediation: {
1192
+ readonly kind: "revise-operation";
1193
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1194
+ };
1195
+ } | {
1196
+ docsUri: string;
1197
+ code: "invalid_resource_payload";
1198
+ owners: readonly ["core.transaction"];
1199
+ remediation: {
1200
+ readonly kind: "revise-operation";
1201
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1202
+ };
1203
+ } | {
1204
+ docsUri: string;
1205
+ code: "invalid_resource_bytes";
1206
+ owners: readonly ["core.transaction"];
1207
+ remediation: {
1208
+ readonly kind: "revise-operation";
1209
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1210
+ };
1211
+ } | {
1212
+ docsUri: string;
1213
+ code: "invalid_movie_clip_jta";
1214
+ owners: readonly ["core.transaction"];
1215
+ remediation: {
1216
+ readonly kind: "revise-operation";
1217
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1218
+ };
1219
+ } | {
1220
+ docsUri: string;
1221
+ code: "invalid_resource_index";
1222
+ owners: readonly ["core.transaction"];
1223
+ remediation: {
1224
+ readonly kind: "revise-operation";
1225
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1226
+ };
1227
+ } | {
1228
+ docsUri: string;
1229
+ code: "invalid_branch_name";
1230
+ owners: readonly ["core.transaction"];
1231
+ remediation: {
1232
+ readonly kind: "revise-operation";
1233
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1234
+ };
1235
+ } | {
1236
+ docsUri: string;
1237
+ code: "invalid_package_payload";
1238
+ owners: readonly ["core.transaction"];
1239
+ remediation: {
1240
+ readonly kind: "revise-operation";
1241
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1242
+ };
1243
+ } | {
1244
+ docsUri: string;
1245
+ code: "invalid_package_index";
1246
+ owners: readonly ["core.transaction"];
1247
+ remediation: {
1248
+ readonly kind: "revise-operation";
1249
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1250
+ };
1251
+ } | {
1252
+ docsUri: string;
1253
+ code: "invalid_component_payload";
1254
+ owners: readonly ["core.transaction"];
1255
+ remediation: {
1256
+ readonly kind: "revise-operation";
1257
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1258
+ };
1259
+ } | {
1260
+ docsUri: string;
1261
+ code: "invalid_component_index";
1262
+ owners: readonly ["core.transaction"];
1263
+ remediation: {
1264
+ readonly kind: "revise-operation";
1265
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1266
+ };
1267
+ } | {
1268
+ docsUri: string;
1269
+ code: "invalid_component_move";
1270
+ owners: readonly ["core.transaction"];
1271
+ remediation: {
1272
+ readonly kind: "revise-operation";
1273
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1274
+ };
1275
+ } | {
1276
+ docsUri: string;
1277
+ code: "invalid_uam";
1278
+ owners: readonly ["core.transaction", "core.validation"];
1279
+ remediation: {
1280
+ readonly kind: "revise-operation";
1281
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1282
+ };
1283
+ } | {
1284
+ docsUri: string;
1285
+ code: "project_settings_unchanged";
1286
+ owners: readonly ["core.transaction"];
1287
+ remediation: {
1288
+ readonly kind: "refresh-and-replan";
1289
+ readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
1290
+ };
1291
+ } | {
1292
+ docsUri: string;
1293
+ code: "package_settings_unchanged";
1294
+ owners: readonly ["core.transaction"];
1295
+ remediation: {
1296
+ readonly kind: "refresh-and-replan";
1297
+ readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
1298
+ };
1299
+ } | {
1300
+ docsUri: string;
1301
+ code: "display_node_props_unchanged";
1302
+ owners: readonly ["core.transaction"];
1303
+ remediation: {
1304
+ readonly kind: "refresh-and-replan";
1305
+ readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
1306
+ };
1307
+ } | {
1308
+ docsUri: string;
1309
+ code: "resource_folder_atlas_unchanged";
1310
+ owners: readonly ["core.transaction"];
1311
+ remediation: {
1312
+ readonly kind: "refresh-and-replan";
1313
+ readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
1314
+ };
1315
+ } | {
1316
+ docsUri: string;
1317
+ code: "duplicate_look_gear_controller";
1318
+ owners: readonly ["core.transaction"];
1319
+ remediation: {
1320
+ readonly kind: "revise-operation";
1321
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1322
+ };
1323
+ } | {
1324
+ docsUri: string;
1325
+ code: "duplicate_transition_name";
1326
+ owners: readonly ["core.transaction"];
1327
+ remediation: {
1328
+ readonly kind: "revise-operation";
1329
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1330
+ };
1331
+ } | {
1332
+ docsUri: string;
1333
+ code: "duplicate_look_gear_state_page";
1334
+ owners: readonly ["core.transaction"];
1335
+ remediation: {
1336
+ readonly kind: "revise-operation";
1337
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1338
+ };
1339
+ } | {
1340
+ docsUri: string;
1341
+ code: "duplicate_gear_controller";
1342
+ owners: readonly ["core.transaction"];
1343
+ remediation: {
1344
+ readonly kind: "revise-operation";
1345
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1346
+ };
1347
+ } | {
1348
+ docsUri: string;
1349
+ code: "duplicate_gear_state_page";
1350
+ owners: readonly ["core.transaction"];
1351
+ remediation: {
1352
+ readonly kind: "revise-operation";
1353
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1354
+ };
1355
+ } | {
1356
+ docsUri: string;
1357
+ code: "duplicate_branch_name";
1358
+ owners: readonly ["core.transaction"];
1359
+ remediation: {
1360
+ readonly kind: "revise-operation";
1361
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1362
+ };
1363
+ } | {
1364
+ docsUri: string;
1365
+ code: "duplicate_component_id";
1366
+ owners: readonly ["core.transaction"];
1367
+ remediation: {
1368
+ readonly kind: "revise-operation";
1369
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1370
+ };
1371
+ } | {
1372
+ docsUri: string;
1373
+ code: "resource_folder_conflict";
1374
+ owners: readonly ["core.transaction"];
1375
+ remediation: {
1376
+ readonly kind: "revise-operation";
1377
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1378
+ };
1379
+ } | {
1380
+ docsUri: string;
1381
+ code: "duplicate_resource_id";
1382
+ owners: readonly ["core.transaction", "core.validation"];
1383
+ remediation: {
1384
+ readonly kind: "revise-operation";
1385
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1386
+ };
1387
+ } | {
1388
+ docsUri: string;
1389
+ code: "duplicate_package_id";
1390
+ owners: readonly ["core.transaction", "core.validation"];
1391
+ remediation: {
1392
+ readonly kind: "revise-operation";
1393
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1394
+ };
1395
+ } | {
1396
+ docsUri: string;
1397
+ code: "duplicate_package_name";
1398
+ owners: readonly ["core.transaction", "core.validation"];
1399
+ remediation: {
1400
+ readonly kind: "revise-operation";
1401
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
1402
+ };
1403
+ } | {
1404
+ docsUri: string;
1405
+ code: "resource_folder_not_empty";
1406
+ owners: readonly ["core.transaction"];
1407
+ remediation: {
1408
+ readonly kind: "revise-operation";
1409
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1410
+ };
1411
+ } | {
1412
+ docsUri: string;
1413
+ code: "branch_not_empty";
1414
+ owners: readonly ["core.transaction"];
1415
+ remediation: {
1416
+ readonly kind: "revise-operation";
1417
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1418
+ };
1419
+ } | {
1420
+ docsUri: string;
1421
+ code: "branch_referenced";
1422
+ owners: readonly ["core.transaction"];
1423
+ remediation: {
1424
+ readonly kind: "revise-operation";
1425
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1426
+ };
1427
+ } | {
1428
+ docsUri: string;
1429
+ code: "invalid_resource_reference";
1430
+ owners: readonly ["core.transaction"];
1431
+ remediation: {
1432
+ readonly kind: "revise-operation";
1433
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1434
+ };
1435
+ } | {
1436
+ docsUri: string;
1437
+ code: "invalid_component_reference";
1438
+ owners: readonly ["core.transaction"];
1439
+ remediation: {
1440
+ readonly kind: "revise-operation";
1441
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1442
+ };
1443
+ } | {
1444
+ docsUri: string;
1445
+ code: "invalid_group_reference";
1446
+ owners: readonly ["core.transaction"];
1447
+ remediation: {
1448
+ readonly kind: "revise-operation";
1449
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1450
+ };
1451
+ } | {
1452
+ docsUri: string;
1453
+ code: "package_referenced";
1454
+ owners: readonly ["core.transaction"];
1455
+ remediation: {
1456
+ readonly kind: "revise-operation";
1457
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1458
+ };
1459
+ } | {
1460
+ docsUri: string;
1461
+ code: "component_referenced";
1462
+ owners: readonly ["core.transaction"];
1463
+ remediation: {
1464
+ readonly kind: "revise-operation";
1465
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1466
+ };
1467
+ } | {
1468
+ docsUri: string;
1469
+ code: "component_has_package_dependencies";
1470
+ owners: readonly ["core.transaction"];
1471
+ remediation: {
1472
+ readonly kind: "revise-operation";
1473
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1474
+ };
1475
+ } | {
1476
+ docsUri: string;
1477
+ code: "dangling_resource_reference";
1478
+ owners: readonly ["core.validation"];
1479
+ remediation: {
1480
+ readonly kind: "revise-operation";
1481
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
1482
+ };
1483
+ } | {
1484
+ docsUri: string;
1485
+ code: "invalid_project_xml";
1486
+ owners: readonly ["core.validation"];
1487
+ remediation: {
1488
+ readonly kind: "host-action";
1489
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1490
+ };
1491
+ } | {
1492
+ docsUri: string;
1493
+ code: "invalid_package_xml";
1494
+ owners: readonly ["core.validation"];
1495
+ remediation: {
1496
+ readonly kind: "host-action";
1497
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1498
+ };
1499
+ } | {
1500
+ docsUri: string;
1501
+ code: "invalid_branch_package_xml";
1502
+ owners: readonly ["core.validation"];
1503
+ remediation: {
1504
+ readonly kind: "host-action";
1505
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1506
+ };
1507
+ } | {
1508
+ docsUri: string;
1509
+ code: "invalid_component_xml";
1510
+ owners: readonly ["core.validation"];
1511
+ remediation: {
1512
+ readonly kind: "host-action";
1513
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1514
+ };
1515
+ } | {
1516
+ docsUri: string;
1517
+ code: "invalid_project_value";
1518
+ owners: readonly ["core.validation"];
1519
+ remediation: {
1520
+ readonly kind: "host-action";
1521
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1522
+ };
1523
+ } | {
1524
+ docsUri: string;
1525
+ code: "desktop_incompatible_geometry";
1526
+ owners: readonly ["core.validation"];
1527
+ remediation: {
1528
+ readonly kind: "host-action";
1529
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1530
+ };
1531
+ } | {
1532
+ docsUri: string;
1533
+ code: "invalid_settings_json";
1534
+ owners: readonly ["core.validation"];
1535
+ remediation: {
1536
+ readonly kind: "host-action";
1537
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1538
+ };
1539
+ } | {
1540
+ docsUri: string;
1541
+ code: "path_collision";
1542
+ owners: readonly ["core.validation"];
1543
+ remediation: {
1544
+ readonly kind: "host-action";
1545
+ readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
1546
+ };
1547
+ } | {
1548
+ docsUri: string;
1549
+ code: "unsafe_path";
1550
+ owners: readonly ["core.validation"];
1551
+ remediation: {
1552
+ readonly kind: "host-action";
1553
+ readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
1554
+ };
1555
+ } | {
1556
+ docsUri: string;
1557
+ code: "capability_unavailable";
1558
+ owners: readonly ["backend"];
1559
+ remediation: {
1560
+ readonly kind: "host-action";
1561
+ readonly message: "Read capability/error details. Ask the host to provide the required filesystem, decoder or complete UAM adapter. Preserve the session and unsaved work; do not substitute a lossy path or bypass checks.";
1562
+ };
1563
+ } | {
1564
+ docsUri: string;
1565
+ code: "uam_fidelity_unsupported";
1566
+ owners: readonly ["backend"];
1567
+ remediation: {
1568
+ readonly kind: "host-action";
1569
+ readonly message: "Read capability/error details. Ask the host to provide the required filesystem, decoder or complete UAM adapter. Preserve the session and unsaved work; do not substitute a lossy path or bypass checks.";
1570
+ };
1571
+ } | {
1572
+ docsUri: string;
1573
+ code: "save_partial_failure";
1574
+ owners: readonly ["backend"];
1575
+ remediation: {
1576
+ readonly kind: "host-action";
1577
+ readonly message: "Preserve the dirty session and inspect the error, actual target files and permissions with the host. Partial writes may have changed files: verify or recover them before a newly authorized save. Do not clear dirty state, discard memory or blindly retry.";
1578
+ };
1579
+ } | {
1580
+ docsUri: string;
1581
+ code: "write_failed";
1582
+ owners: readonly ["backend"];
1583
+ remediation: {
1584
+ readonly kind: "host-action";
1585
+ readonly message: "Preserve the dirty session and inspect the error, actual target files and permissions with the host. Partial writes may have changed files: verify or recover them before a newly authorized save. Do not clear dirty state, discard memory or blindly retry.";
1586
+ };
1587
+ } | {
1588
+ docsUri: string;
1589
+ code: "project_open_failed";
1590
+ owners: readonly ["backend"];
1591
+ remediation: {
1592
+ readonly kind: "host-action";
1593
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1594
+ };
1595
+ } | {
1596
+ docsUri: string;
1597
+ code: "materialize_validation_failed";
1598
+ owners: readonly ["backend"];
1599
+ remediation: {
1600
+ readonly kind: "host-action";
1601
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
1602
+ };
1603
+ } | {
1604
+ docsUri: string;
1605
+ code: "execution_failure";
1606
+ owners: readonly ["core.transaction"];
1607
+ remediation: {
1608
+ readonly kind: "host-action";
1609
+ readonly message: "Inspect the execution/cache failure and current session/revision. Preserve sources and unsaved work and report the cause to the host. Replan after resolution; failed execution or cache work is not a completed edit.";
1610
+ };
1611
+ } | {
1612
+ docsUri: string;
1613
+ code: "cache_refresh_failed";
1614
+ owners: readonly ["backend"];
1615
+ remediation: {
1616
+ readonly kind: "host-action";
1617
+ readonly message: "Inspect the execution/cache failure and current session/revision. Preserve sources and unsaved work and report the cause to the host. Replan after resolution; failed execution or cache work is not a completed edit.";
1618
+ };
1619
+ } | {
1620
+ docsUri: string;
1621
+ code: "job_not_found";
1622
+ owners: readonly ["backend"];
1623
+ remediation: {
1624
+ readonly kind: "host-action";
1625
+ readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
1626
+ };
1627
+ } | {
1628
+ docsUri: string;
1629
+ code: "job_not_cancellable";
1630
+ owners: readonly ["backend"];
1631
+ remediation: {
1632
+ readonly kind: "host-action";
1633
+ readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
1634
+ };
1635
+ } | {
1636
+ docsUri: string;
1637
+ code: "job_cancelled";
1638
+ owners: readonly ["backend"];
1639
+ remediation: {
1640
+ readonly kind: "host-action";
1641
+ readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
1642
+ };
1643
+ })[];
1644
+ declare function getBackendDiagnosticGuide(code: string): {
1645
+ docsUri: string;
1646
+ code: "stale_read";
1647
+ owners: readonly ["backend"];
1648
+ remediation: {
1649
+ readonly kind: "refresh-and-replan";
1650
+ readonly message: "Discard the incomplete model/bytes read and restart with readSessionState. Use its revision for every readResourceBytes call. No historical state is retained or reserved; do not combine resources from different edit revisions.";
1651
+ };
1652
+ } | {
1653
+ docsUri: string;
1654
+ code: "session_read_failed";
1655
+ owners: readonly ["backend"];
1656
+ remediation: {
1657
+ readonly kind: "host-action";
1658
+ readonly message: "Inspect error.reason: invalid_query requires valid inputs; not_found/ambiguous requires exact current resource identifiers; unsupported_resource/bytes_unavailable means primary bytes cannot be read from this session. Budget or non-JSON failures require host inspection. Preserve unsaved work; do not save, reopen, repair or mutate the model merely to obtain a read.";
1659
+ };
1660
+ } | {
1661
+ docsUri: string;
1662
+ code: "transaction_preview_failed";
1663
+ owners: readonly ["backend"];
1664
+ remediation: {
1665
+ readonly kind: "host-action";
1666
+ readonly message: "No complete preview is available. Inspect error.reason with the host: response_budget_exceeded requires a smaller independently meaningful authorized batch; projection_failed requires inspecting the project serialization failure. Preserve the session and never treat a missing or truncated impact as approval to apply or save.";
1667
+ };
1668
+ } | {
1669
+ docsUri: string;
1670
+ code: "stale_write";
1671
+ owners: readonly ["backend"];
1672
+ remediation: {
1673
+ readonly kind: "refresh-and-replan";
1674
+ readonly message: "Refresh the outline and affected entities, then replan from their current revision and preflight again. A preview reserves no revision. Never replace expectedRevision and blindly retry the original transaction or save.";
1675
+ };
1676
+ } | {
1677
+ docsUri: string;
1678
+ code: "entity_query_failed";
1679
+ owners: readonly ["backend"];
1680
+ remediation: {
1681
+ readonly kind: "host-action";
1682
+ readonly message: "Inspect error.reason: invalid_query requires correcting the target; not_found/ambiguous requires current exact identifiers; response_budget_exceeded/non_json_value requires host inspection of the entity. Do not broaden queries or mutate data to evade the response limits.";
1683
+ };
1684
+ } | {
1685
+ docsUri: string;
1686
+ code: "session_not_found";
1687
+ owners: readonly ["backend"];
1688
+ remediation: {
1689
+ readonly kind: "host-action";
1690
+ readonly message: "Ask the host to confirm the runtime and project, recover any unsaved state, then explicitly open a new session if appropriate. Session IDs are runtime-local. Read its new revision and replan; never reuse an expired session or assume disk contains unsaved changes.";
1691
+ };
1692
+ } | {
1693
+ docsUri: string;
1694
+ code: "path_policy_violation";
1695
+ owners: readonly ["backend"];
1696
+ remediation: {
1697
+ readonly kind: "host-action";
1698
+ readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
1699
+ };
1700
+ } | {
1701
+ docsUri: string;
1702
+ code: "project_root_not_allowed";
1703
+ owners: readonly ["backend"];
1704
+ remediation: {
1705
+ readonly kind: "host-action";
1706
+ readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
1707
+ };
1708
+ } | {
1709
+ docsUri: string;
1710
+ code: "invalid_package_selector";
1711
+ owners: readonly ["core.transaction"];
1712
+ remediation: {
1713
+ readonly kind: "revise-selector";
1714
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1715
+ };
1716
+ } | {
1717
+ docsUri: string;
1718
+ code: "invalid_component_selector";
1719
+ owners: readonly ["core.transaction"];
1720
+ remediation: {
1721
+ readonly kind: "revise-selector";
1722
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1723
+ };
1724
+ } | {
1725
+ docsUri: string;
1726
+ code: "invalid_resource_selector";
1727
+ owners: readonly ["core.transaction"];
1728
+ remediation: {
1729
+ readonly kind: "revise-selector";
1730
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1731
+ };
1732
+ } | {
1733
+ docsUri: string;
1734
+ code: "invalid_display_node_selector";
1735
+ owners: readonly ["core.transaction"];
1736
+ remediation: {
1737
+ readonly kind: "revise-selector";
1738
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1739
+ };
1740
+ } | {
1741
+ docsUri: string;
1742
+ code: "invalid_resource_folder_selector";
1743
+ owners: readonly ["core.transaction"];
1744
+ remediation: {
1745
+ readonly kind: "revise-selector";
1746
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1747
+ };
1748
+ } | {
1749
+ docsUri: string;
1750
+ code: "invalid_branch_selector";
1751
+ owners: readonly ["core.transaction"];
1752
+ remediation: {
1753
+ readonly kind: "revise-selector";
1754
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1755
+ };
1756
+ } | {
1757
+ docsUri: string;
1758
+ code: "invalid_gear_selector";
1759
+ owners: readonly ["core.transaction"];
1760
+ remediation: {
1761
+ readonly kind: "revise-selector";
1762
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1763
+ };
1764
+ } | {
1765
+ docsUri: string;
1766
+ code: "invalid_look_gear_selector";
1767
+ owners: readonly ["core.transaction"];
1768
+ remediation: {
1769
+ readonly kind: "revise-selector";
1770
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1771
+ };
1772
+ } | {
1773
+ docsUri: string;
1774
+ code: "selector_ambiguity";
1775
+ owners: readonly ["core.transaction"];
1776
+ remediation: {
1777
+ readonly kind: "revise-selector";
1778
+ readonly message: "Read the current outline and query the relevant entity. Use its exact identifiers, inspect the reported selector path, then rebuild and preflight the transaction. Do not guess identifiers or retry the unchanged transaction.";
1779
+ };
1780
+ } | {
1781
+ docsUri: string;
1782
+ code: "unavailable_resource_source_bytes";
1783
+ owners: readonly ["core.transaction"];
1784
+ remediation: {
1785
+ readonly kind: "host-action";
1786
+ readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
1787
+ };
1788
+ } | {
1789
+ docsUri: string;
1790
+ code: "missing_source";
1791
+ owners: readonly ["core.validation"];
1792
+ remediation: {
1793
+ readonly kind: "host-action";
1794
+ readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
1795
+ };
1796
+ } | {
1797
+ docsUri: string;
1798
+ code: "unreadable_source";
1799
+ owners: readonly ["core.validation"];
1800
+ remediation: {
1801
+ readonly kind: "host-action";
1802
+ readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
1803
+ };
1804
+ } | {
1805
+ docsUri: string;
1806
+ code: "decode_capability_unavailable";
1807
+ owners: readonly ["core.validation"];
1808
+ remediation: {
1809
+ readonly kind: "host-action";
1810
+ readonly message: "Validation is incomplete, not passed. Inspect whether source bytes are unloaded or a decoder is unavailable. Ask the host to hydrate sources or provide the required decoder (Node image validation uses optional Sharp), then validate again. Do not install dependencies or change the project automatically.";
1811
+ };
1812
+ } | {
1813
+ docsUri: string;
1814
+ code: "session_id_conflict";
1815
+ owners: readonly ["backend"];
1816
+ remediation: {
1817
+ readonly kind: "host-action";
1818
+ readonly message: "Use getSession to inspect the existing session. Reuse it only for the intended project, or choose a new session ID; do not close another owner\\u0027s session to make room.";
1819
+ };
1820
+ } | {
1821
+ docsUri: string;
1822
+ code: "lock_conflict";
1823
+ owners: readonly ["backend"];
1824
+ remediation: {
1825
+ readonly kind: "host-action";
1826
+ readonly message: "Another owner holds the project lock. Preserve unsaved work and ask that owner to close its session, then explicitly reopen. Never remove a live lock, force-close a peer, or bypass locking.";
1827
+ };
1828
+ } | {
1829
+ docsUri: string;
1830
+ code: "event_cursor_invalid";
1831
+ owners: readonly ["backend"];
1832
+ remediation: {
1833
+ readonly kind: "refresh-and-replan";
1834
+ readonly message: "Read the error and getEvents cursor bounds. Request a fresh bounded event page without the invalid cursor and refresh the current outline before replanning; missing retained history is not evidence that nothing changed.";
1835
+ };
1836
+ } | {
1837
+ docsUri: string;
1838
+ code: "corrupt_source";
1839
+ owners: readonly ["core.validation"];
1840
+ remediation: {
1841
+ readonly kind: "host-action";
1842
+ readonly message: "Ask the host to inspect the reported source and hydrate its bytes through project I/O or import. Preserve unsaved work; reopening disk state can discard it. No session hydration/repair API is exposed. Revalidate and replan after the host has supplied a complete project.";
1843
+ };
1844
+ } | {
1845
+ docsUri: string;
1846
+ code: "unsupported_operation";
1847
+ owners: readonly ["core.transaction"];
1848
+ remediation: {
1849
+ readonly kind: "revise-operation";
1850
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1851
+ };
1852
+ } | {
1853
+ docsUri: string;
1854
+ code: "transaction_unsupported";
1855
+ owners: readonly ["core.transaction"];
1856
+ remediation: {
1857
+ readonly kind: "revise-operation";
1858
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1859
+ };
1860
+ } | {
1861
+ docsUri: string;
1862
+ code: "unsupported_display_node_kind";
1863
+ owners: readonly ["core.transaction"];
1864
+ remediation: {
1865
+ readonly kind: "revise-operation";
1866
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1867
+ };
1868
+ } | {
1869
+ docsUri: string;
1870
+ code: "unsupported_cross_package_image_ref";
1871
+ owners: readonly ["core.transaction"];
1872
+ remediation: {
1873
+ readonly kind: "revise-operation";
1874
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1875
+ };
1876
+ } | {
1877
+ docsUri: string;
1878
+ code: "unsupported_gear_kind";
1879
+ owners: readonly ["core.transaction"];
1880
+ remediation: {
1881
+ readonly kind: "revise-operation";
1882
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1883
+ };
1884
+ } | {
1885
+ docsUri: string;
1886
+ code: "unsupported_resource_mutation";
1887
+ owners: readonly ["core.transaction"];
1888
+ remediation: {
1889
+ readonly kind: "revise-operation";
1890
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1891
+ };
1892
+ } | {
1893
+ docsUri: string;
1894
+ code: "unsupported_display_node_mutation";
1895
+ owners: readonly ["core.transaction"];
1896
+ remediation: {
1897
+ readonly kind: "revise-operation";
1898
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1899
+ };
1900
+ } | {
1901
+ docsUri: string;
1902
+ code: "unsupported_text_field_target";
1903
+ owners: readonly ["core.transaction"];
1904
+ remediation: {
1905
+ readonly kind: "revise-operation";
1906
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1907
+ };
1908
+ } | {
1909
+ docsUri: string;
1910
+ code: "unsupported_display_node_field";
1911
+ owners: readonly ["core.transaction"];
1912
+ remediation: {
1913
+ readonly kind: "revise-operation";
1914
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1915
+ };
1916
+ } | {
1917
+ docsUri: string;
1918
+ code: "unsupported_operation_batch";
1919
+ owners: readonly ["core.transaction"];
1920
+ remediation: {
1921
+ readonly kind: "revise-operation";
1922
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1923
+ };
1924
+ } | {
1925
+ docsUri: string;
1926
+ code: "unsupported_resource_kind";
1927
+ owners: readonly ["core.transaction", "core.validation"];
1928
+ remediation: {
1929
+ readonly kind: "revise-operation";
1930
+ readonly message: "Read the operation schema, capabilities and reported target kind/field. Stop unsupported work or replan using supported operations with equivalent intended semantics. Never silently drop fields or objects to make a transaction pass.";
1931
+ };
1932
+ } | {
1933
+ docsUri: string;
1934
+ code: "invalid_project_settings";
1935
+ owners: readonly ["core.transaction"];
1936
+ remediation: {
1937
+ readonly kind: "revise-operation";
1938
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1939
+ };
1940
+ } | {
1941
+ docsUri: string;
1942
+ code: "invalid_package_settings";
1943
+ owners: readonly ["core.transaction"];
1944
+ remediation: {
1945
+ readonly kind: "revise-operation";
1946
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1947
+ };
1948
+ } | {
1949
+ docsUri: string;
1950
+ code: "invalid_display_node_payload";
1951
+ owners: readonly ["core.transaction"];
1952
+ remediation: {
1953
+ readonly kind: "revise-operation";
1954
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1955
+ };
1956
+ } | {
1957
+ docsUri: string;
1958
+ code: "invalid_resource_name";
1959
+ owners: readonly ["core.transaction"];
1960
+ remediation: {
1961
+ readonly kind: "revise-operation";
1962
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1963
+ };
1964
+ } | {
1965
+ docsUri: string;
1966
+ code: "invalid_resource_path";
1967
+ owners: readonly ["core.transaction"];
1968
+ remediation: {
1969
+ readonly kind: "revise-operation";
1970
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1971
+ };
1972
+ } | {
1973
+ docsUri: string;
1974
+ code: "invalid_resource_folder_path";
1975
+ owners: readonly ["core.transaction"];
1976
+ remediation: {
1977
+ readonly kind: "revise-operation";
1978
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1979
+ };
1980
+ } | {
1981
+ docsUri: string;
1982
+ code: "invalid_resource_folder_atlas";
1983
+ owners: readonly ["core.transaction"];
1984
+ remediation: {
1985
+ readonly kind: "revise-operation";
1986
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1987
+ };
1988
+ } | {
1989
+ docsUri: string;
1990
+ code: "invalid_attach_index";
1991
+ owners: readonly ["core.transaction"];
1992
+ remediation: {
1993
+ readonly kind: "revise-operation";
1994
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
1995
+ };
1996
+ } | {
1997
+ docsUri: string;
1998
+ code: "invalid_controller_payload";
1999
+ owners: readonly ["core.transaction"];
2000
+ remediation: {
2001
+ readonly kind: "revise-operation";
2002
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2003
+ };
2004
+ } | {
2005
+ docsUri: string;
2006
+ code: "invalid_transition_payload";
2007
+ owners: readonly ["core.transaction"];
2008
+ remediation: {
2009
+ readonly kind: "revise-operation";
2010
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2011
+ };
2012
+ } | {
2013
+ docsUri: string;
2014
+ code: "invalid_look_gear_payload";
2015
+ owners: readonly ["core.transaction"];
2016
+ remediation: {
2017
+ readonly kind: "revise-operation";
2018
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2019
+ };
2020
+ } | {
2021
+ docsUri: string;
2022
+ code: "invalid_gear_payload";
2023
+ owners: readonly ["core.transaction"];
2024
+ remediation: {
2025
+ readonly kind: "revise-operation";
2026
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2027
+ };
2028
+ } | {
2029
+ docsUri: string;
2030
+ code: "invalid_resource_payload";
2031
+ owners: readonly ["core.transaction"];
2032
+ remediation: {
2033
+ readonly kind: "revise-operation";
2034
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2035
+ };
2036
+ } | {
2037
+ docsUri: string;
2038
+ code: "invalid_resource_bytes";
2039
+ owners: readonly ["core.transaction"];
2040
+ remediation: {
2041
+ readonly kind: "revise-operation";
2042
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2043
+ };
2044
+ } | {
2045
+ docsUri: string;
2046
+ code: "invalid_movie_clip_jta";
2047
+ owners: readonly ["core.transaction"];
2048
+ remediation: {
2049
+ readonly kind: "revise-operation";
2050
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2051
+ };
2052
+ } | {
2053
+ docsUri: string;
2054
+ code: "invalid_resource_index";
2055
+ owners: readonly ["core.transaction"];
2056
+ remediation: {
2057
+ readonly kind: "revise-operation";
2058
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2059
+ };
2060
+ } | {
2061
+ docsUri: string;
2062
+ code: "invalid_branch_name";
2063
+ owners: readonly ["core.transaction"];
2064
+ remediation: {
2065
+ readonly kind: "revise-operation";
2066
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2067
+ };
2068
+ } | {
2069
+ docsUri: string;
2070
+ code: "invalid_package_payload";
2071
+ owners: readonly ["core.transaction"];
2072
+ remediation: {
2073
+ readonly kind: "revise-operation";
2074
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2075
+ };
2076
+ } | {
2077
+ docsUri: string;
2078
+ code: "invalid_package_index";
2079
+ owners: readonly ["core.transaction"];
2080
+ remediation: {
2081
+ readonly kind: "revise-operation";
2082
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2083
+ };
2084
+ } | {
2085
+ docsUri: string;
2086
+ code: "invalid_component_payload";
2087
+ owners: readonly ["core.transaction"];
2088
+ remediation: {
2089
+ readonly kind: "revise-operation";
2090
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2091
+ };
2092
+ } | {
2093
+ docsUri: string;
2094
+ code: "invalid_component_index";
2095
+ owners: readonly ["core.transaction"];
2096
+ remediation: {
2097
+ readonly kind: "revise-operation";
2098
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2099
+ };
2100
+ } | {
2101
+ docsUri: string;
2102
+ code: "invalid_component_move";
2103
+ owners: readonly ["core.transaction"];
2104
+ remediation: {
2105
+ readonly kind: "revise-operation";
2106
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2107
+ };
2108
+ } | {
2109
+ docsUri: string;
2110
+ code: "invalid_uam";
2111
+ owners: readonly ["core.transaction", "core.validation"];
2112
+ remediation: {
2113
+ readonly kind: "revise-operation";
2114
+ readonly message: "Inspect the diagnostic path and current operation schema or UAM issues. Correct values, required fields and indices against exact queried entities, then preflight. Do not invent defaults or coerce away invalid data.";
2115
+ };
2116
+ } | {
2117
+ docsUri: string;
2118
+ code: "project_settings_unchanged";
2119
+ owners: readonly ["core.transaction"];
2120
+ remediation: {
2121
+ readonly kind: "refresh-and-replan";
2122
+ readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
2123
+ };
2124
+ } | {
2125
+ docsUri: string;
2126
+ code: "package_settings_unchanged";
2127
+ owners: readonly ["core.transaction"];
2128
+ remediation: {
2129
+ readonly kind: "refresh-and-replan";
2130
+ readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
2131
+ };
2132
+ } | {
2133
+ docsUri: string;
2134
+ code: "display_node_props_unchanged";
2135
+ owners: readonly ["core.transaction"];
2136
+ remediation: {
2137
+ readonly kind: "refresh-and-replan";
2138
+ readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
2139
+ };
2140
+ } | {
2141
+ docsUri: string;
2142
+ code: "resource_folder_atlas_unchanged";
2143
+ owners: readonly ["core.transaction"];
2144
+ remediation: {
2145
+ readonly kind: "refresh-and-replan";
2146
+ readonly message: "Query current settings/entity and compare with the request. If already satisfied, report no change; otherwise replan from the current revision. Do not manufacture a mutation or resubmit the same no-op.";
2147
+ };
2148
+ } | {
2149
+ docsUri: string;
2150
+ code: "duplicate_look_gear_controller";
2151
+ owners: readonly ["core.transaction"];
2152
+ remediation: {
2153
+ readonly kind: "revise-operation";
2154
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2155
+ };
2156
+ } | {
2157
+ docsUri: string;
2158
+ code: "duplicate_transition_name";
2159
+ owners: readonly ["core.transaction"];
2160
+ remediation: {
2161
+ readonly kind: "revise-operation";
2162
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2163
+ };
2164
+ } | {
2165
+ docsUri: string;
2166
+ code: "duplicate_look_gear_state_page";
2167
+ owners: readonly ["core.transaction"];
2168
+ remediation: {
2169
+ readonly kind: "revise-operation";
2170
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2171
+ };
2172
+ } | {
2173
+ docsUri: string;
2174
+ code: "duplicate_gear_controller";
2175
+ owners: readonly ["core.transaction"];
2176
+ remediation: {
2177
+ readonly kind: "revise-operation";
2178
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2179
+ };
2180
+ } | {
2181
+ docsUri: string;
2182
+ code: "duplicate_gear_state_page";
2183
+ owners: readonly ["core.transaction"];
2184
+ remediation: {
2185
+ readonly kind: "revise-operation";
2186
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2187
+ };
2188
+ } | {
2189
+ docsUri: string;
2190
+ code: "duplicate_branch_name";
2191
+ owners: readonly ["core.transaction"];
2192
+ remediation: {
2193
+ readonly kind: "revise-operation";
2194
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2195
+ };
2196
+ } | {
2197
+ docsUri: string;
2198
+ code: "duplicate_component_id";
2199
+ owners: readonly ["core.transaction"];
2200
+ remediation: {
2201
+ readonly kind: "revise-operation";
2202
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2203
+ };
2204
+ } | {
2205
+ docsUri: string;
2206
+ code: "resource_folder_conflict";
2207
+ owners: readonly ["core.transaction"];
2208
+ remediation: {
2209
+ readonly kind: "revise-operation";
2210
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2211
+ };
2212
+ } | {
2213
+ docsUri: string;
2214
+ code: "duplicate_resource_id";
2215
+ owners: readonly ["core.transaction", "core.validation"];
2216
+ remediation: {
2217
+ readonly kind: "revise-operation";
2218
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2219
+ };
2220
+ } | {
2221
+ docsUri: string;
2222
+ code: "duplicate_package_id";
2223
+ owners: readonly ["core.transaction", "core.validation"];
2224
+ remediation: {
2225
+ readonly kind: "revise-operation";
2226
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2227
+ };
2228
+ } | {
2229
+ docsUri: string;
2230
+ code: "duplicate_package_name";
2231
+ owners: readonly ["core.transaction", "core.validation"];
2232
+ remediation: {
2233
+ readonly kind: "revise-operation";
2234
+ readonly message: "Query current entities and resolve the conflicting ID, name or page explicitly. Choose an unused value only when authorized by the intended edit, then preflight. Never overwrite or delete an existing entity to clear the conflict.";
2235
+ };
2236
+ } | {
2237
+ docsUri: string;
2238
+ code: "resource_folder_not_empty";
2239
+ owners: readonly ["core.transaction"];
2240
+ remediation: {
2241
+ readonly kind: "revise-operation";
2242
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2243
+ };
2244
+ } | {
2245
+ docsUri: string;
2246
+ code: "branch_not_empty";
2247
+ owners: readonly ["core.transaction"];
2248
+ remediation: {
2249
+ readonly kind: "revise-operation";
2250
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2251
+ };
2252
+ } | {
2253
+ docsUri: string;
2254
+ code: "branch_referenced";
2255
+ owners: readonly ["core.transaction"];
2256
+ remediation: {
2257
+ readonly kind: "revise-operation";
2258
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2259
+ };
2260
+ } | {
2261
+ docsUri: string;
2262
+ code: "invalid_resource_reference";
2263
+ owners: readonly ["core.transaction"];
2264
+ remediation: {
2265
+ readonly kind: "revise-operation";
2266
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2267
+ };
2268
+ } | {
2269
+ docsUri: string;
2270
+ code: "invalid_component_reference";
2271
+ owners: readonly ["core.transaction"];
2272
+ remediation: {
2273
+ readonly kind: "revise-operation";
2274
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2275
+ };
2276
+ } | {
2277
+ docsUri: string;
2278
+ code: "invalid_group_reference";
2279
+ owners: readonly ["core.transaction"];
2280
+ remediation: {
2281
+ readonly kind: "revise-operation";
2282
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2283
+ };
2284
+ } | {
2285
+ docsUri: string;
2286
+ code: "package_referenced";
2287
+ owners: readonly ["core.transaction"];
2288
+ remediation: {
2289
+ readonly kind: "revise-operation";
2290
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2291
+ };
2292
+ } | {
2293
+ docsUri: string;
2294
+ code: "component_referenced";
2295
+ owners: readonly ["core.transaction"];
2296
+ remediation: {
2297
+ readonly kind: "revise-operation";
2298
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2299
+ };
2300
+ } | {
2301
+ docsUri: string;
2302
+ code: "component_has_package_dependencies";
2303
+ owners: readonly ["core.transaction"];
2304
+ remediation: {
2305
+ readonly kind: "revise-operation";
2306
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2307
+ };
2308
+ } | {
2309
+ docsUri: string;
2310
+ code: "dangling_resource_reference";
2311
+ owners: readonly ["core.validation"];
2312
+ remediation: {
2313
+ readonly kind: "revise-operation";
2314
+ readonly message: "Query affected entities and references before editing, moving or removing anything. Replan intended dependent changes together and preflight. Do not delete dependent objects or strip references without authorization.";
2315
+ };
2316
+ } | {
2317
+ docsUri: string;
2318
+ code: "invalid_project_xml";
2319
+ owners: readonly ["core.validation"];
2320
+ remediation: {
2321
+ readonly kind: "host-action";
2322
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2323
+ };
2324
+ } | {
2325
+ docsUri: string;
2326
+ code: "invalid_package_xml";
2327
+ owners: readonly ["core.validation"];
2328
+ remediation: {
2329
+ readonly kind: "host-action";
2330
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2331
+ };
2332
+ } | {
2333
+ docsUri: string;
2334
+ code: "invalid_branch_package_xml";
2335
+ owners: readonly ["core.validation"];
2336
+ remediation: {
2337
+ readonly kind: "host-action";
2338
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2339
+ };
2340
+ } | {
2341
+ docsUri: string;
2342
+ code: "invalid_component_xml";
2343
+ owners: readonly ["core.validation"];
2344
+ remediation: {
2345
+ readonly kind: "host-action";
2346
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2347
+ };
2348
+ } | {
2349
+ docsUri: string;
2350
+ code: "invalid_project_value";
2351
+ owners: readonly ["core.validation"];
2352
+ remediation: {
2353
+ readonly kind: "host-action";
2354
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2355
+ };
2356
+ } | {
2357
+ docsUri: string;
2358
+ code: "desktop_incompatible_geometry";
2359
+ owners: readonly ["core.validation"];
2360
+ remediation: {
2361
+ readonly kind: "host-action";
2362
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2363
+ };
2364
+ } | {
2365
+ docsUri: string;
2366
+ code: "invalid_settings_json";
2367
+ owners: readonly ["core.validation"];
2368
+ remediation: {
2369
+ readonly kind: "host-action";
2370
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2371
+ };
2372
+ } | {
2373
+ docsUri: string;
2374
+ code: "path_collision";
2375
+ owners: readonly ["core.validation"];
2376
+ remediation: {
2377
+ readonly kind: "host-action";
2378
+ readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
2379
+ };
2380
+ } | {
2381
+ docsUri: string;
2382
+ code: "unsafe_path";
2383
+ owners: readonly ["core.validation"];
2384
+ remediation: {
2385
+ readonly kind: "host-action";
2386
+ readonly message: "Ask the host to review the attempted path and authorized project root. saveSession only writes the original project; it is not Save As. Do not widen allowed roots or bypass path checks. A separately authorized export may use materializeSession.";
2387
+ };
2388
+ } | {
2389
+ docsUri: string;
2390
+ code: "capability_unavailable";
2391
+ owners: readonly ["backend"];
2392
+ remediation: {
2393
+ readonly kind: "host-action";
2394
+ readonly message: "Read capability/error details. Ask the host to provide the required filesystem, decoder or complete UAM adapter. Preserve the session and unsaved work; do not substitute a lossy path or bypass checks.";
2395
+ };
2396
+ } | {
2397
+ docsUri: string;
2398
+ code: "uam_fidelity_unsupported";
2399
+ owners: readonly ["backend"];
2400
+ remediation: {
2401
+ readonly kind: "host-action";
2402
+ readonly message: "Read capability/error details. Ask the host to provide the required filesystem, decoder or complete UAM adapter. Preserve the session and unsaved work; do not substitute a lossy path or bypass checks.";
2403
+ };
2404
+ } | {
2405
+ docsUri: string;
2406
+ code: "save_partial_failure";
2407
+ owners: readonly ["backend"];
2408
+ remediation: {
2409
+ readonly kind: "host-action";
2410
+ readonly message: "Preserve the dirty session and inspect the error, actual target files and permissions with the host. Partial writes may have changed files: verify or recover them before a newly authorized save. Do not clear dirty state, discard memory or blindly retry.";
2411
+ };
2412
+ } | {
2413
+ docsUri: string;
2414
+ code: "write_failed";
2415
+ owners: readonly ["backend"];
2416
+ remediation: {
2417
+ readonly kind: "host-action";
2418
+ readonly message: "Preserve the dirty session and inspect the error, actual target files and permissions with the host. Partial writes may have changed files: verify or recover them before a newly authorized save. Do not clear dirty state, discard memory or blindly retry.";
2419
+ };
2420
+ } | {
2421
+ docsUri: string;
2422
+ code: "project_open_failed";
2423
+ owners: readonly ["backend"];
2424
+ remediation: {
2425
+ readonly kind: "host-action";
2426
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2427
+ };
2428
+ } | {
2429
+ docsUri: string;
2430
+ code: "materialize_validation_failed";
2431
+ owners: readonly ["backend"];
2432
+ remediation: {
2433
+ readonly kind: "host-action";
2434
+ readonly message: "Inspect the project path and validation diagnostics with the host. Correct source XML/settings or unsupported geometry using authoritative project data; preserve originals and unsaved work before reopening or validating. Do not guess missing structure or discard rejected content.";
2435
+ };
2436
+ } | {
2437
+ docsUri: string;
2438
+ code: "execution_failure";
2439
+ owners: readonly ["core.transaction"];
2440
+ remediation: {
2441
+ readonly kind: "host-action";
2442
+ readonly message: "Inspect the execution/cache failure and current session/revision. Preserve sources and unsaved work and report the cause to the host. Replan after resolution; failed execution or cache work is not a completed edit.";
2443
+ };
2444
+ } | {
2445
+ docsUri: string;
2446
+ code: "cache_refresh_failed";
2447
+ owners: readonly ["backend"];
2448
+ remediation: {
2449
+ readonly kind: "host-action";
2450
+ readonly message: "Inspect the execution/cache failure and current session/revision. Preserve sources and unsaved work and report the cause to the host. Replan after resolution; failed execution or cache work is not a completed edit.";
2451
+ };
2452
+ } | {
2453
+ docsUri: string;
2454
+ code: "job_not_found";
2455
+ owners: readonly ["backend"];
2456
+ remediation: {
2457
+ readonly kind: "host-action";
2458
+ readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
2459
+ };
2460
+ } | {
2461
+ docsUri: string;
2462
+ code: "job_not_cancellable";
2463
+ owners: readonly ["backend"];
2464
+ remediation: {
2465
+ readonly kind: "host-action";
2466
+ readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
2467
+ };
2468
+ } | {
2469
+ docsUri: string;
2470
+ code: "job_cancelled";
2471
+ owners: readonly ["backend"];
2472
+ remediation: {
2473
+ readonly kind: "host-action";
2474
+ readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
2475
+ };
2476
+ };
2477
+ //#endregion
587
2478
  //#region src/storage.d.ts
588
2479
  type StorageStatKind = 'file' | 'directory';
589
2480
  interface BackendStorageStatLike {
@@ -619,4 +2510,4 @@ interface BackendAsyncStorageAdapter {
619
2510
  type BackendStorageFileSystem = BackendFileSystem & FileSystem;
620
2511
  declare function createBackendStorageFileSystem(storage: BackendAsyncStorageAdapter): BackendStorageFileSystem;
621
2512
  //#endregion
622
- export { type AdvisoryLockConflictError, type ApplySessionTransactionInput, BACKEND_CAPABILITY_SCHEMA_VERSION, BACKEND_COMPATIBILITY_POLICY, BACKEND_CONTRACT_VERSION, type BackendArtifactBridgeCapability, type BackendAsyncStorageAdapter, type BackendCacheEntry, type BackendCacheSnapshot, type BackendCapabilities, type BackendCapabilityManifest, type BackendCapabilityUnavailableError, type BackendDiagnostic, type BackendError, type BackendEvent, type BackendEventKind, type BackendFailure, type BackendFileStat, type BackendFileSystem, type BackendHostAdapter, type BackendJobErrors, type BackendJobKind, type BackendJobListSnapshot, type BackendJobListStatusFilter, type BackendJobNotCancellableError, type BackendJobNotFoundError, type BackendJobProgress, type BackendJobSnapshot, type BackendJobStatus, type BackendMessage, type BackendProjectOutline, type BackendProjectOutlinePackage, type BackendProjectOutlineResource, type BackendProjectSessionStorage, type BackendResponseMeta, type BackendResult, BackendRuntime, type BackendRuntimeOptions, type BackendSessionLock, type BackendSessionSnapshot, type BackendStage, type BackendStorageFileSystem, type BackendStorageStatLike, type BackendSuccess, type CacheRefreshFailedError, type CancelJobInput, type EventCursorInvalidError, type GetCacheSnapshotInput, type GetEventsInput, type GetEventsSnapshot, type GetJobInput, type GetProjectOutlineInput, type InProcessLockConflictError, type ListJobsInput, type MaterializeSessionInput, type MaterializeSessionSnapshot, type MaterializeValidationFailedError, type MaterializeWriteFailedError, type OpenProjectSessionInput, type ProjectOpenFailedError, type ProjectRootNotAllowedError, type RefreshCacheInput, type SavePartialFailureError, type SaveSessionInput, type SessionIdConflictError, type SessionNotFoundError, type SessionStaleWriteError, type UamFidelityUnsupportedError, type ValidateSessionInput, createBackendStorageFileSystem };
2513
+ export { type AdvisoryLockConflictError, type ApplySessionTransactionInput, BACKEND_CAPABILITY_SCHEMA_VERSION, BACKEND_COMPATIBILITY_POLICY, BACKEND_CONTRACT_VERSION, BACKEND_DIAGNOSTICS_URI, BACKEND_DIAGNOSTIC_TEMPLATE, BACKEND_ENTITY_QUERY_LIMITS, BACKEND_SESSION_READ_LIMITS, BACKEND_TRANSACTION_PREVIEW_LIMITS, type BackendArtifactBridgeCapability, type BackendAsyncStorageAdapter, type BackendCacheEntry, type BackendCacheSnapshot, type BackendCapabilities, type BackendCapabilityManifest, type BackendCapabilityUnavailableError, type BackendComponentSnapshot, type BackendDiagnostic, type BackendDiagnosticCode, type BackendDiagnosticGuide, type BackendDiagnosticOwner, type BackendDiagnosticRemediation, type BackendEntitySnapshot, type BackendEntityTarget, type BackendError, type BackendEvent, type BackendEventKind, type BackendFailure, type BackendFileStat, type BackendFileSystem, type BackendHostAdapter, type BackendJobErrors, type BackendJobKind, type BackendJobListSnapshot, type BackendJobListStatusFilter, type BackendJobNotCancellableError, type BackendJobNotFoundError, type BackendJobProgress, type BackendJobSnapshot, type BackendJobStatus, type BackendMessage, type BackendMethodName, type BackendPackageSnapshot, type BackendProjectOutline, type BackendProjectOutlinePackage, type BackendProjectOutlineResource, type BackendProjectSessionStorage, type BackendProjectSnapshot, type BackendResourceBytesSnapshot, type BackendResourceSnapshot, type BackendResponseMeta, type BackendResult, BackendRuntime, type BackendRuntimeOptions, type BackendSessionLock, type BackendSessionPackageModel, type BackendSessionProjectModel, type BackendSessionResourceModel, type BackendSessionSnapshot, type BackendSessionStateSnapshot, type BackendStage, type BackendStorageFileSystem, type BackendStorageStatLike, type BackendSuccess, type BackendTransactionEntityChange, type BackendTransactionPreview, type CacheRefreshFailedError, type CancelJobInput, type EntityQueryError, type EventCursorInvalidError, type GetCacheSnapshotInput, type GetEventsInput, type GetEventsSnapshot, type GetJobInput, type GetProjectOutlineInput, type InProcessLockConflictError, type ListJobsInput, type MaterializeSessionInput, type MaterializeSessionSnapshot, type MaterializeValidationFailedError, type MaterializeWriteFailedError, type OpenProjectSessionInput, type ProjectOpenFailedError, type ProjectRootNotAllowedError, type QueryEntityInput, type ReadResourceBytesInput, type ReadSessionStateInput, type RefreshCacheInput, type SavePartialFailureError, type SaveSessionInput, type SessionIdConflictError, type SessionNotFoundError, type SessionReadError, type SessionStaleReadError, type SessionStaleWriteError, type TransactionPreviewError, type UamFidelityUnsupportedError, type ValidateSessionInput, createBackendStorageFileSystem, getBackendDiagnosticCatalog, getBackendDiagnosticGuide };