@openfairygui/backend 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,46 +1,8 @@
1
+ import { ProjectDiagnosticCode, ProjectValidationReport } from "@openfairygui/core";
2
+ import { UamComponentModel, UamComponentResource, UamComponentSelector, UamControllerModel, UamControllerSelector, UamDisplayNode, UamDisplayNodeKind, UamDisplayNodeSelector, UamGenericAssetResource, UamImageResource, UamMovieClipResource, UamPackageSelector, UamPackageSettings, UamProject, UamResource, UamResourceSelector, UamTransactionOperation, UamTransactionSupportIssueCode, UamTransitionModel, UamTransitionSelector } from "@openfairygui/core/uam";
1
3
  import { ApplyUamTransactionAppError } from "@openfairygui/functions/uam";
2
- import { ProjectValidationReport } from "@openfairygui/core";
3
- import { UamDisplayNodeKind, UamProject, UamResource, UamTransactionOperation } from "@openfairygui/core/uam";
4
4
  import { FileSystem } from "@openfairygui/core/project-io";
5
5
 
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
6
  //#region src/path-policy.d.ts
45
7
  interface PathPolicyViolationError {
46
8
  code: 'path_policy_violation';
@@ -50,7 +12,89 @@ interface PathPolicyViolationError {
50
12
  allowedPath: string;
51
13
  }
52
14
  //#endregion
15
+ //#region src/runtime/capabilities.d.ts
16
+ declare const BACKEND_METHODS: readonly ["getCapabilities", "openSession", "openProjectSession", "getSession", "getProjectOutline", "queryEntity", "validateSession", "preflightTransaction", "applyTransaction", "saveSession", "materializeSession", "closeSession", "getEvents", "getJob", "listJobs", "cancelJob", "getCacheSnapshot", "refreshCache"];
17
+ //#endregion
53
18
  //#region src/runtime/contracts.d.ts
19
+ type BackendMethodName = keyof BackendRuntime;
20
+ declare const BACKEND_ENTITY_QUERY_LIMITS: {
21
+ readonly maxBytes: 262144;
22
+ readonly maxDepth: 32;
23
+ readonly maxNodes: 100000;
24
+ };
25
+ declare const BACKEND_TRANSACTION_PREVIEW_LIMITS: {
26
+ readonly maxBytes: 262144;
27
+ readonly maxEntries: 2000;
28
+ };
29
+ /** Fixed resource projection. Binary content, source bookkeeping and arbitrary metadata are excluded. */
30
+ declare const BACKEND_RESOURCE_QUERY_FIELDS: readonly ["kind", "id", "name", "path", "exported", "favorite", "branch", "branchItemIds", "fileName", "file", "dimensions", "image", "movieClip"];
31
+ type ResourceQueryFields<T> = Pick<T, Extract<keyof T, typeof BACKEND_RESOURCE_QUERY_FIELDS[number]>>;
32
+ type BackendResourceSnapshot = ResourceQueryFields<UamImageResource> | ResourceQueryFields<UamMovieClipResource> | ResourceQueryFields<UamGenericAssetResource> | ResourceQueryFields<UamComponentResource>;
33
+ type BackendComponentSnapshot = Pick<UamComponentModel, 'size' | 'properties' | 'customData'>;
34
+ type BackendProjectSnapshot = Pick<UamProject, 'projectId' | 'settings'>;
35
+ interface BackendPackageSnapshot {
36
+ id: string;
37
+ name: string;
38
+ settings: UamPackageSettings;
39
+ }
40
+ type BackendEntityTarget = {
41
+ kind: 'project';
42
+ } | {
43
+ kind: 'package';
44
+ selector: UamPackageSelector;
45
+ } | {
46
+ kind: 'resource';
47
+ selector: UamResourceSelector;
48
+ } | {
49
+ kind: 'component';
50
+ selector: UamComponentSelector;
51
+ } | {
52
+ kind: 'displayNode';
53
+ selector: UamDisplayNodeSelector;
54
+ } | {
55
+ kind: 'controller';
56
+ selector: UamControllerSelector;
57
+ } | {
58
+ kind: 'transition';
59
+ selector: UamTransitionSelector;
60
+ };
61
+ interface QueryEntityInput {
62
+ sessionId: string;
63
+ target: BackendEntityTarget;
64
+ }
65
+ interface BackendEntitySnapshot {
66
+ sessionId: string;
67
+ revision: number;
68
+ target: BackendEntityTarget;
69
+ entity: {
70
+ kind: 'project';
71
+ properties: BackendProjectSnapshot;
72
+ } | {
73
+ kind: 'package';
74
+ properties: BackendPackageSnapshot;
75
+ } | {
76
+ kind: 'resource';
77
+ properties: BackendResourceSnapshot;
78
+ } | {
79
+ kind: 'component';
80
+ properties: BackendComponentSnapshot;
81
+ } | {
82
+ kind: 'displayNode';
83
+ properties: UamDisplayNode;
84
+ } | {
85
+ kind: 'controller';
86
+ properties: UamControllerModel;
87
+ } | {
88
+ kind: 'transition';
89
+ properties: UamTransitionModel;
90
+ };
91
+ }
92
+ interface EntityQueryError {
93
+ code: 'entity_query_failed';
94
+ message: string;
95
+ sessionId: string;
96
+ reason: 'invalid_query' | 'not_found' | 'ambiguous' | 'response_budget_exceeded' | 'non_json_value';
97
+ }
54
98
  /** An exclusive lock owned for the lifetime of one backend session. */
55
99
  interface BackendSessionLock {
56
100
  /** Persist optional host metadata without changing lock ownership. */
@@ -129,6 +173,8 @@ interface BackendCapabilityManifest {
129
173
  diagnostics: {
130
174
  stableCodes: true;
131
175
  errorDiagnosticMirror: true;
176
+ recoveryGuides: 'all-formal-codes';
177
+ automaticRepair: false;
132
178
  };
133
179
  }
134
180
  interface BackendCapabilities {
@@ -137,14 +183,26 @@ interface BackendCapabilities {
137
183
  transactionKernelOwner: '@openfairygui/core';
138
184
  appSeamOwner: '@openfairygui/functions';
139
185
  runtimeOwner: '@openfairygui/backend';
140
- methods: readonly ['getCapabilities', 'openSession', 'openProjectSession', 'getSession', 'getProjectOutline', 'validateSession', 'applyTransaction', 'saveSession', 'materializeSession', 'closeSession', 'getEvents', 'getJob', 'listJobs', 'cancelJob', 'getCacheSnapshot', 'refreshCache'];
186
+ methods: typeof BACKEND_METHODS;
141
187
  read: {
142
188
  capabilitySnapshot: true;
143
189
  sessionSnapshot: true;
144
190
  projectOutline: true;
191
+ entityQuery: {
192
+ kinds: readonly BackendEntityTarget['kind'][];
193
+ projection: 'properties';
194
+ sourceBytes: false;
195
+ limits: typeof BACKEND_ENTITY_QUERY_LIMITS;
196
+ };
145
197
  projectValidation: true;
146
198
  };
147
199
  authoring: {
200
+ preflightTransaction: {
201
+ mode: 'execute-and-discard';
202
+ reservesRevision: false;
203
+ impact: 'model-diff';
204
+ limits: typeof BACKEND_TRANSACTION_PREVIEW_LIMITS;
205
+ };
148
206
  applyTransaction: true;
149
207
  saveSession: true;
150
208
  resourceKinds: readonly string[];
@@ -478,7 +536,7 @@ interface RefreshCacheInput {
478
536
  sessionId: string;
479
537
  reason?: 'manual' | 'session_open' | 'after_save';
480
538
  }
481
- type BackendError = SessionNotFoundError | SessionIdConflictError | SessionStaleWriteError | InProcessLockConflictError | AdvisoryLockConflictError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | EventCursorInvalidError | BackendJobNotFoundError | BackendJobNotCancellableError | BackendJobCancelledError | CacheRefreshFailedError | BackendCapabilityUnavailableError | ProjectRootNotAllowedError | ProjectOpenFailedError | ApplyUamTransactionAppError;
539
+ type BackendError = SessionNotFoundError | TransactionPreviewError | EntityQueryError | SessionIdConflictError | SessionStaleWriteError | InProcessLockConflictError | AdvisoryLockConflictError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | EventCursorInvalidError | BackendJobNotFoundError | BackendJobNotCancellableError | BackendJobCancelledError | CacheRefreshFailedError | BackendCapabilityUnavailableError | ProjectRootNotAllowedError | ProjectOpenFailedError | ApplyUamTransactionAppError;
482
540
  interface ProjectRootNotAllowedError {
483
541
  code: 'project_root_not_allowed';
484
542
  message: string;
@@ -494,6 +552,41 @@ interface ApplySessionTransactionInput {
494
552
  expectedRevision: number;
495
553
  operations: UamTransactionOperation[];
496
554
  }
555
+ interface BackendTransactionPreview {
556
+ sessionId: string;
557
+ baseRevision: number;
558
+ /** Revision after applying this batch at baseRevision, including an empty batch. Not reserved. */
559
+ projectedRevision: number;
560
+ mode: 'execute-and-discard';
561
+ /** Complete, bounded comparison of current and projected UAM, not unsaved changes since last save. */
562
+ impact: {
563
+ entities: BackendTransactionEntityChange[]; /** Project-relative paths from the actual ProjectWriter, including empty directories. Not a disk write plan. */
564
+ files: Array<{
565
+ path: string;
566
+ kind: 'file' | 'directory';
567
+ change: 'added' | 'removed' | 'updated';
568
+ }>;
569
+ };
570
+ persistence: {
571
+ requiredAfterApply: true;
572
+ nextAction: 'saveSession' | 'materializeSession' | 'host-action';
573
+ fileSystemAvailable: boolean;
574
+ uamFidelity: BackendSessionSnapshot['uamFidelity']; /** Preflight never verifies filesystem permissions, materialize destinations or actual disk state. */
575
+ writeVerified: false;
576
+ };
577
+ }
578
+ interface BackendTransactionEntityChange {
579
+ target: BackendEntityTarget;
580
+ change: 'added' | 'removed' | 'updated';
581
+ /** Changed top-level property names; child collections contain identities and preserve their order. */
582
+ fields: string[];
583
+ }
584
+ interface TransactionPreviewError {
585
+ code: 'transaction_preview_failed';
586
+ message: string;
587
+ sessionId: string;
588
+ reason: 'response_budget_exceeded' | 'projection_failed';
589
+ }
497
590
  interface GetProjectOutlineInput {
498
591
  sessionId: string;
499
592
  }
@@ -504,7 +597,9 @@ interface OpenProjectSessionInput {
504
597
  /** Authoritative UAM project. Use BackendRuntime.openSession() when importing an existing project from storage. */
505
598
  project: UamProject;
506
599
  sessionId?: string;
600
+ /** Session identity only; without explicit storage or a per-call filesystem this grants no filesystem access. */
507
601
  canonicalProjectPath?: string;
602
+ /** Host-defined session identity; not a filesystem authorization or an allowed-root override. */
508
603
  canonicalPathKey?: string;
509
604
  /** Optional writeback target for the authoritative UAM project; this is not an import source. */
510
605
  storage?: BackendProjectSessionStorage;
@@ -566,7 +661,9 @@ declare class BackendRuntime {
566
661
  sessionId: string;
567
662
  }): BackendResult<BackendSessionSnapshot, SessionNotFoundError>;
568
663
  getProjectOutline(input: GetProjectOutlineInput): BackendResult<BackendProjectOutline, SessionNotFoundError>;
664
+ queryEntity(input: QueryEntityInput): BackendResult<BackendEntitySnapshot, SessionNotFoundError | EntityQueryError>;
569
665
  validateSession(input: ValidateSessionInput): BackendResult<ProjectValidationReport, SessionNotFoundError>;
666
+ preflightTransaction(input: ApplySessionTransactionInput): Promise<BackendResult<BackendTransactionPreview, SessionNotFoundError | SessionStaleWriteError | ApplyUamTransactionAppError | TransactionPreviewError>>;
570
667
  applyTransaction(input: ApplySessionTransactionInput): Promise<BackendResult<BackendSessionSnapshot, SessionNotFoundError | SessionStaleWriteError | ApplyUamTransactionAppError>>;
571
668
  saveSession(input: SaveSessionInput): Promise<BackendResult<BackendSessionSnapshot | MaterializeSessionSnapshot, SessionNotFoundError | SessionStaleWriteError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | InProcessLockConflictError | BackendCapabilityUnavailableError>>;
572
669
  materializeSession(input: MaterializeSessionInput): Promise<BackendResult<MaterializeSessionSnapshot, SessionNotFoundError | SessionStaleWriteError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | InProcessLockConflictError | BackendCapabilityUnavailableError>>;
@@ -584,6 +681,1705 @@ declare class BackendRuntime {
584
681
  refreshCache(input: RefreshCacheInput): BackendResult<BackendJobSnapshot, SessionNotFoundError>;
585
682
  }
586
683
  //#endregion
684
+ //#region src/contracts.d.ts
685
+ declare const BACKEND_CONTRACT_VERSION: "2.0.0-p2";
686
+ declare const BACKEND_CAPABILITY_SCHEMA_VERSION: 10;
687
+ declare const BACKEND_COMPATIBILITY_POLICY: {
688
+ readonly incompatibleChange: "requires contractVersion bump";
689
+ readonly capabilitySchemaChange: "requires capabilitySchemaVersion bump";
690
+ readonly additiveChange: "allowed without breaking existing consumers";
691
+ };
692
+ type BackendStage = 'read' | 'authoring' | 'runtime';
693
+ interface BackendMessage {
694
+ code: string;
695
+ message: string;
696
+ }
697
+ type BackendDiagnosticCode = BackendError['code'] | UamTransactionSupportIssueCode | ProjectDiagnosticCode;
698
+ type BackendDiagnosticOwner = 'backend' | 'core.transaction' | 'core.validation';
699
+ interface BackendDiagnostic {
700
+ code: BackendDiagnosticCode;
701
+ message: string;
702
+ severity: 'info' | 'warning' | 'error';
703
+ path?: string;
704
+ nodeKind?: string;
705
+ resourceKind?: string;
706
+ gearKind?: string;
707
+ field?: string;
708
+ operationKind?: string;
709
+ opIndex?: number;
710
+ opId?: string;
711
+ /** Present for catalogued diagnostics only; original codes and classification are preserved. */
712
+ owner?: BackendDiagnosticOwner;
713
+ docsUri?: string;
714
+ remediation?: BackendDiagnosticRemediation;
715
+ }
716
+ interface BackendDiagnosticRemediation {
717
+ kind: 'refresh-and-replan' | 'revise-selector' | 'revise-operation' | 'host-action';
718
+ message: string;
719
+ /** A read-only starting point, never permission to retry or mutate. */
720
+ read?: {
721
+ method: 'getProjectOutline';
722
+ input: {
723
+ sessionId: string;
724
+ };
725
+ };
726
+ }
727
+ interface BackendResponseMeta {
728
+ requestId: string;
729
+ sessionId?: string;
730
+ revision?: number;
731
+ durationMs: number;
732
+ warnings: BackendMessage[];
733
+ diagnostics: BackendDiagnostic[];
734
+ stage: BackendStage;
735
+ contractVersion: typeof BACKEND_CONTRACT_VERSION;
736
+ capabilitySchemaVersion: typeof BACKEND_CAPABILITY_SCHEMA_VERSION;
737
+ }
738
+ //#endregion
739
+ //#region src/diagnostics.d.ts
740
+ /** Shared codes list all canonical owners; responses preserve the actual reporting owner. */
741
+ interface BackendDiagnosticGuide {
742
+ code: BackendDiagnosticCode;
743
+ owners: readonly BackendDiagnosticOwner[];
744
+ remediation: Omit<BackendDiagnosticRemediation, 'read'>;
745
+ }
746
+ declare const BACKEND_DIAGNOSTICS_URI = "openfairygui://docs/diagnostics";
747
+ declare const BACKEND_DIAGNOSTIC_TEMPLATE = "openfairygui://docs/diagnostics/{code}";
748
+ declare function getBackendDiagnosticCatalog(): ({
749
+ docsUri: string;
750
+ code: "transaction_preview_failed";
751
+ owners: readonly ["backend"];
752
+ remediation: {
753
+ readonly kind: "host-action";
754
+ 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.";
755
+ };
756
+ } | {
757
+ docsUri: string;
758
+ code: "stale_write";
759
+ owners: readonly ["backend"];
760
+ remediation: {
761
+ readonly kind: "refresh-and-replan";
762
+ 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.";
763
+ };
764
+ } | {
765
+ docsUri: string;
766
+ code: "entity_query_failed";
767
+ owners: readonly ["backend"];
768
+ remediation: {
769
+ readonly kind: "host-action";
770
+ 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.";
771
+ };
772
+ } | {
773
+ docsUri: string;
774
+ code: "session_not_found";
775
+ owners: readonly ["backend"];
776
+ remediation: {
777
+ readonly kind: "host-action";
778
+ 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.";
779
+ };
780
+ } | {
781
+ docsUri: string;
782
+ code: "path_policy_violation";
783
+ owners: readonly ["backend"];
784
+ remediation: {
785
+ readonly kind: "host-action";
786
+ 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.";
787
+ };
788
+ } | {
789
+ docsUri: string;
790
+ code: "project_root_not_allowed";
791
+ owners: readonly ["backend"];
792
+ remediation: {
793
+ readonly kind: "host-action";
794
+ 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.";
795
+ };
796
+ } | {
797
+ docsUri: string;
798
+ code: "invalid_package_selector";
799
+ owners: readonly ["core.transaction"];
800
+ remediation: {
801
+ readonly kind: "revise-selector";
802
+ 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.";
803
+ };
804
+ } | {
805
+ docsUri: string;
806
+ code: "invalid_component_selector";
807
+ owners: readonly ["core.transaction"];
808
+ remediation: {
809
+ readonly kind: "revise-selector";
810
+ 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.";
811
+ };
812
+ } | {
813
+ docsUri: string;
814
+ code: "invalid_resource_selector";
815
+ owners: readonly ["core.transaction"];
816
+ remediation: {
817
+ readonly kind: "revise-selector";
818
+ 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.";
819
+ };
820
+ } | {
821
+ docsUri: string;
822
+ code: "invalid_display_node_selector";
823
+ owners: readonly ["core.transaction"];
824
+ remediation: {
825
+ readonly kind: "revise-selector";
826
+ 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.";
827
+ };
828
+ } | {
829
+ docsUri: string;
830
+ code: "invalid_resource_folder_selector";
831
+ owners: readonly ["core.transaction"];
832
+ remediation: {
833
+ readonly kind: "revise-selector";
834
+ 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.";
835
+ };
836
+ } | {
837
+ docsUri: string;
838
+ code: "invalid_branch_selector";
839
+ owners: readonly ["core.transaction"];
840
+ remediation: {
841
+ readonly kind: "revise-selector";
842
+ 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.";
843
+ };
844
+ } | {
845
+ docsUri: string;
846
+ code: "invalid_gear_selector";
847
+ owners: readonly ["core.transaction"];
848
+ remediation: {
849
+ readonly kind: "revise-selector";
850
+ 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.";
851
+ };
852
+ } | {
853
+ docsUri: string;
854
+ code: "invalid_look_gear_selector";
855
+ owners: readonly ["core.transaction"];
856
+ remediation: {
857
+ readonly kind: "revise-selector";
858
+ 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.";
859
+ };
860
+ } | {
861
+ docsUri: string;
862
+ code: "selector_ambiguity";
863
+ owners: readonly ["core.transaction"];
864
+ remediation: {
865
+ readonly kind: "revise-selector";
866
+ 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.";
867
+ };
868
+ } | {
869
+ docsUri: string;
870
+ code: "unavailable_resource_source_bytes";
871
+ owners: readonly ["core.transaction"];
872
+ remediation: {
873
+ readonly kind: "host-action";
874
+ 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.";
875
+ };
876
+ } | {
877
+ docsUri: string;
878
+ code: "missing_source";
879
+ owners: readonly ["core.validation"];
880
+ remediation: {
881
+ readonly kind: "host-action";
882
+ 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.";
883
+ };
884
+ } | {
885
+ docsUri: string;
886
+ code: "unreadable_source";
887
+ owners: readonly ["core.validation"];
888
+ remediation: {
889
+ readonly kind: "host-action";
890
+ 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.";
891
+ };
892
+ } | {
893
+ docsUri: string;
894
+ code: "decode_capability_unavailable";
895
+ owners: readonly ["core.validation"];
896
+ remediation: {
897
+ readonly kind: "host-action";
898
+ 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.";
899
+ };
900
+ } | {
901
+ docsUri: string;
902
+ code: "session_id_conflict";
903
+ owners: readonly ["backend"];
904
+ remediation: {
905
+ readonly kind: "host-action";
906
+ 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.";
907
+ };
908
+ } | {
909
+ docsUri: string;
910
+ code: "lock_conflict";
911
+ owners: readonly ["backend"];
912
+ remediation: {
913
+ readonly kind: "host-action";
914
+ 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.";
915
+ };
916
+ } | {
917
+ docsUri: string;
918
+ code: "event_cursor_invalid";
919
+ owners: readonly ["backend"];
920
+ remediation: {
921
+ readonly kind: "refresh-and-replan";
922
+ 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.";
923
+ };
924
+ } | {
925
+ docsUri: string;
926
+ code: "corrupt_source";
927
+ owners: readonly ["core.validation"];
928
+ remediation: {
929
+ readonly kind: "host-action";
930
+ 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.";
931
+ };
932
+ } | {
933
+ docsUri: string;
934
+ code: "unsupported_operation";
935
+ owners: readonly ["core.transaction"];
936
+ remediation: {
937
+ readonly kind: "revise-operation";
938
+ 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.";
939
+ };
940
+ } | {
941
+ docsUri: string;
942
+ code: "transaction_unsupported";
943
+ owners: readonly ["core.transaction"];
944
+ remediation: {
945
+ readonly kind: "revise-operation";
946
+ 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.";
947
+ };
948
+ } | {
949
+ docsUri: string;
950
+ code: "unsupported_display_node_kind";
951
+ owners: readonly ["core.transaction"];
952
+ remediation: {
953
+ readonly kind: "revise-operation";
954
+ 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.";
955
+ };
956
+ } | {
957
+ docsUri: string;
958
+ code: "unsupported_cross_package_image_ref";
959
+ owners: readonly ["core.transaction"];
960
+ remediation: {
961
+ readonly kind: "revise-operation";
962
+ 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.";
963
+ };
964
+ } | {
965
+ docsUri: string;
966
+ code: "unsupported_gear_kind";
967
+ owners: readonly ["core.transaction"];
968
+ remediation: {
969
+ readonly kind: "revise-operation";
970
+ 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.";
971
+ };
972
+ } | {
973
+ docsUri: string;
974
+ code: "unsupported_resource_mutation";
975
+ owners: readonly ["core.transaction"];
976
+ remediation: {
977
+ readonly kind: "revise-operation";
978
+ 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.";
979
+ };
980
+ } | {
981
+ docsUri: string;
982
+ code: "unsupported_display_node_mutation";
983
+ owners: readonly ["core.transaction"];
984
+ remediation: {
985
+ readonly kind: "revise-operation";
986
+ 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.";
987
+ };
988
+ } | {
989
+ docsUri: string;
990
+ code: "unsupported_text_field_target";
991
+ owners: readonly ["core.transaction"];
992
+ remediation: {
993
+ readonly kind: "revise-operation";
994
+ 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.";
995
+ };
996
+ } | {
997
+ docsUri: string;
998
+ code: "unsupported_display_node_field";
999
+ owners: readonly ["core.transaction"];
1000
+ remediation: {
1001
+ readonly kind: "revise-operation";
1002
+ 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.";
1003
+ };
1004
+ } | {
1005
+ docsUri: string;
1006
+ code: "unsupported_operation_batch";
1007
+ owners: readonly ["core.transaction"];
1008
+ remediation: {
1009
+ readonly kind: "revise-operation";
1010
+ 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.";
1011
+ };
1012
+ } | {
1013
+ docsUri: string;
1014
+ code: "unsupported_resource_kind";
1015
+ owners: readonly ["core.transaction", "core.validation"];
1016
+ remediation: {
1017
+ readonly kind: "revise-operation";
1018
+ 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.";
1019
+ };
1020
+ } | {
1021
+ docsUri: string;
1022
+ code: "invalid_project_settings";
1023
+ owners: readonly ["core.transaction"];
1024
+ remediation: {
1025
+ readonly kind: "revise-operation";
1026
+ 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.";
1027
+ };
1028
+ } | {
1029
+ docsUri: string;
1030
+ code: "invalid_package_settings";
1031
+ owners: readonly ["core.transaction"];
1032
+ remediation: {
1033
+ readonly kind: "revise-operation";
1034
+ 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.";
1035
+ };
1036
+ } | {
1037
+ docsUri: string;
1038
+ code: "invalid_display_node_payload";
1039
+ owners: readonly ["core.transaction"];
1040
+ remediation: {
1041
+ readonly kind: "revise-operation";
1042
+ 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.";
1043
+ };
1044
+ } | {
1045
+ docsUri: string;
1046
+ code: "invalid_resource_name";
1047
+ owners: readonly ["core.transaction"];
1048
+ remediation: {
1049
+ readonly kind: "revise-operation";
1050
+ 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.";
1051
+ };
1052
+ } | {
1053
+ docsUri: string;
1054
+ code: "invalid_resource_path";
1055
+ owners: readonly ["core.transaction"];
1056
+ remediation: {
1057
+ readonly kind: "revise-operation";
1058
+ 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.";
1059
+ };
1060
+ } | {
1061
+ docsUri: string;
1062
+ code: "invalid_resource_folder_path";
1063
+ owners: readonly ["core.transaction"];
1064
+ remediation: {
1065
+ readonly kind: "revise-operation";
1066
+ 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.";
1067
+ };
1068
+ } | {
1069
+ docsUri: string;
1070
+ code: "invalid_resource_folder_atlas";
1071
+ owners: readonly ["core.transaction"];
1072
+ remediation: {
1073
+ readonly kind: "revise-operation";
1074
+ 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.";
1075
+ };
1076
+ } | {
1077
+ docsUri: string;
1078
+ code: "invalid_attach_index";
1079
+ owners: readonly ["core.transaction"];
1080
+ remediation: {
1081
+ readonly kind: "revise-operation";
1082
+ 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.";
1083
+ };
1084
+ } | {
1085
+ docsUri: string;
1086
+ code: "invalid_controller_payload";
1087
+ owners: readonly ["core.transaction"];
1088
+ remediation: {
1089
+ readonly kind: "revise-operation";
1090
+ 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.";
1091
+ };
1092
+ } | {
1093
+ docsUri: string;
1094
+ code: "invalid_transition_payload";
1095
+ owners: readonly ["core.transaction"];
1096
+ remediation: {
1097
+ readonly kind: "revise-operation";
1098
+ 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.";
1099
+ };
1100
+ } | {
1101
+ docsUri: string;
1102
+ code: "invalid_look_gear_payload";
1103
+ owners: readonly ["core.transaction"];
1104
+ remediation: {
1105
+ readonly kind: "revise-operation";
1106
+ 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.";
1107
+ };
1108
+ } | {
1109
+ docsUri: string;
1110
+ code: "invalid_gear_payload";
1111
+ owners: readonly ["core.transaction"];
1112
+ remediation: {
1113
+ readonly kind: "revise-operation";
1114
+ 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.";
1115
+ };
1116
+ } | {
1117
+ docsUri: string;
1118
+ code: "invalid_resource_payload";
1119
+ owners: readonly ["core.transaction"];
1120
+ remediation: {
1121
+ readonly kind: "revise-operation";
1122
+ 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.";
1123
+ };
1124
+ } | {
1125
+ docsUri: string;
1126
+ code: "invalid_resource_bytes";
1127
+ owners: readonly ["core.transaction"];
1128
+ remediation: {
1129
+ readonly kind: "revise-operation";
1130
+ 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.";
1131
+ };
1132
+ } | {
1133
+ docsUri: string;
1134
+ code: "invalid_movie_clip_jta";
1135
+ owners: readonly ["core.transaction"];
1136
+ remediation: {
1137
+ readonly kind: "revise-operation";
1138
+ 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.";
1139
+ };
1140
+ } | {
1141
+ docsUri: string;
1142
+ code: "invalid_resource_index";
1143
+ owners: readonly ["core.transaction"];
1144
+ remediation: {
1145
+ readonly kind: "revise-operation";
1146
+ 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.";
1147
+ };
1148
+ } | {
1149
+ docsUri: string;
1150
+ code: "invalid_branch_name";
1151
+ owners: readonly ["core.transaction"];
1152
+ remediation: {
1153
+ readonly kind: "revise-operation";
1154
+ 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.";
1155
+ };
1156
+ } | {
1157
+ docsUri: string;
1158
+ code: "invalid_package_payload";
1159
+ owners: readonly ["core.transaction"];
1160
+ remediation: {
1161
+ readonly kind: "revise-operation";
1162
+ 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.";
1163
+ };
1164
+ } | {
1165
+ docsUri: string;
1166
+ code: "invalid_package_index";
1167
+ owners: readonly ["core.transaction"];
1168
+ remediation: {
1169
+ readonly kind: "revise-operation";
1170
+ 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.";
1171
+ };
1172
+ } | {
1173
+ docsUri: string;
1174
+ code: "invalid_component_payload";
1175
+ owners: readonly ["core.transaction"];
1176
+ remediation: {
1177
+ readonly kind: "revise-operation";
1178
+ 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.";
1179
+ };
1180
+ } | {
1181
+ docsUri: string;
1182
+ code: "invalid_component_index";
1183
+ owners: readonly ["core.transaction"];
1184
+ remediation: {
1185
+ readonly kind: "revise-operation";
1186
+ 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.";
1187
+ };
1188
+ } | {
1189
+ docsUri: string;
1190
+ code: "invalid_component_move";
1191
+ owners: readonly ["core.transaction"];
1192
+ remediation: {
1193
+ readonly kind: "revise-operation";
1194
+ 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.";
1195
+ };
1196
+ } | {
1197
+ docsUri: string;
1198
+ code: "invalid_uam";
1199
+ owners: readonly ["core.transaction", "core.validation"];
1200
+ remediation: {
1201
+ readonly kind: "revise-operation";
1202
+ 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.";
1203
+ };
1204
+ } | {
1205
+ docsUri: string;
1206
+ code: "project_settings_unchanged";
1207
+ owners: readonly ["core.transaction"];
1208
+ remediation: {
1209
+ readonly kind: "refresh-and-replan";
1210
+ 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.";
1211
+ };
1212
+ } | {
1213
+ docsUri: string;
1214
+ code: "package_settings_unchanged";
1215
+ owners: readonly ["core.transaction"];
1216
+ remediation: {
1217
+ readonly kind: "refresh-and-replan";
1218
+ 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.";
1219
+ };
1220
+ } | {
1221
+ docsUri: string;
1222
+ code: "display_node_props_unchanged";
1223
+ owners: readonly ["core.transaction"];
1224
+ remediation: {
1225
+ readonly kind: "refresh-and-replan";
1226
+ 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.";
1227
+ };
1228
+ } | {
1229
+ docsUri: string;
1230
+ code: "resource_folder_atlas_unchanged";
1231
+ owners: readonly ["core.transaction"];
1232
+ remediation: {
1233
+ readonly kind: "refresh-and-replan";
1234
+ 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.";
1235
+ };
1236
+ } | {
1237
+ docsUri: string;
1238
+ code: "duplicate_look_gear_controller";
1239
+ owners: readonly ["core.transaction"];
1240
+ remediation: {
1241
+ readonly kind: "revise-operation";
1242
+ 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.";
1243
+ };
1244
+ } | {
1245
+ docsUri: string;
1246
+ code: "duplicate_transition_name";
1247
+ owners: readonly ["core.transaction"];
1248
+ remediation: {
1249
+ readonly kind: "revise-operation";
1250
+ 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.";
1251
+ };
1252
+ } | {
1253
+ docsUri: string;
1254
+ code: "duplicate_look_gear_state_page";
1255
+ owners: readonly ["core.transaction"];
1256
+ remediation: {
1257
+ readonly kind: "revise-operation";
1258
+ 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.";
1259
+ };
1260
+ } | {
1261
+ docsUri: string;
1262
+ code: "duplicate_gear_controller";
1263
+ owners: readonly ["core.transaction"];
1264
+ remediation: {
1265
+ readonly kind: "revise-operation";
1266
+ 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.";
1267
+ };
1268
+ } | {
1269
+ docsUri: string;
1270
+ code: "duplicate_gear_state_page";
1271
+ owners: readonly ["core.transaction"];
1272
+ remediation: {
1273
+ readonly kind: "revise-operation";
1274
+ 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.";
1275
+ };
1276
+ } | {
1277
+ docsUri: string;
1278
+ code: "duplicate_branch_name";
1279
+ owners: readonly ["core.transaction"];
1280
+ remediation: {
1281
+ readonly kind: "revise-operation";
1282
+ 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.";
1283
+ };
1284
+ } | {
1285
+ docsUri: string;
1286
+ code: "duplicate_component_id";
1287
+ owners: readonly ["core.transaction"];
1288
+ remediation: {
1289
+ readonly kind: "revise-operation";
1290
+ 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.";
1291
+ };
1292
+ } | {
1293
+ docsUri: string;
1294
+ code: "resource_folder_conflict";
1295
+ owners: readonly ["core.transaction"];
1296
+ remediation: {
1297
+ readonly kind: "revise-operation";
1298
+ 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.";
1299
+ };
1300
+ } | {
1301
+ docsUri: string;
1302
+ code: "duplicate_resource_id";
1303
+ owners: readonly ["core.transaction", "core.validation"];
1304
+ remediation: {
1305
+ readonly kind: "revise-operation";
1306
+ 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.";
1307
+ };
1308
+ } | {
1309
+ docsUri: string;
1310
+ code: "duplicate_package_id";
1311
+ owners: readonly ["core.transaction", "core.validation"];
1312
+ remediation: {
1313
+ readonly kind: "revise-operation";
1314
+ 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.";
1315
+ };
1316
+ } | {
1317
+ docsUri: string;
1318
+ code: "duplicate_package_name";
1319
+ owners: readonly ["core.transaction", "core.validation"];
1320
+ remediation: {
1321
+ readonly kind: "revise-operation";
1322
+ 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.";
1323
+ };
1324
+ } | {
1325
+ docsUri: string;
1326
+ code: "resource_folder_not_empty";
1327
+ owners: readonly ["core.transaction"];
1328
+ remediation: {
1329
+ readonly kind: "revise-operation";
1330
+ 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.";
1331
+ };
1332
+ } | {
1333
+ docsUri: string;
1334
+ code: "branch_not_empty";
1335
+ owners: readonly ["core.transaction"];
1336
+ remediation: {
1337
+ readonly kind: "revise-operation";
1338
+ 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.";
1339
+ };
1340
+ } | {
1341
+ docsUri: string;
1342
+ code: "branch_referenced";
1343
+ owners: readonly ["core.transaction"];
1344
+ remediation: {
1345
+ readonly kind: "revise-operation";
1346
+ 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.";
1347
+ };
1348
+ } | {
1349
+ docsUri: string;
1350
+ code: "invalid_resource_reference";
1351
+ owners: readonly ["core.transaction"];
1352
+ remediation: {
1353
+ readonly kind: "revise-operation";
1354
+ 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.";
1355
+ };
1356
+ } | {
1357
+ docsUri: string;
1358
+ code: "invalid_component_reference";
1359
+ owners: readonly ["core.transaction"];
1360
+ remediation: {
1361
+ readonly kind: "revise-operation";
1362
+ 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.";
1363
+ };
1364
+ } | {
1365
+ docsUri: string;
1366
+ code: "invalid_group_reference";
1367
+ owners: readonly ["core.transaction"];
1368
+ remediation: {
1369
+ readonly kind: "revise-operation";
1370
+ 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.";
1371
+ };
1372
+ } | {
1373
+ docsUri: string;
1374
+ code: "package_referenced";
1375
+ owners: readonly ["core.transaction"];
1376
+ remediation: {
1377
+ readonly kind: "revise-operation";
1378
+ 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.";
1379
+ };
1380
+ } | {
1381
+ docsUri: string;
1382
+ code: "component_referenced";
1383
+ owners: readonly ["core.transaction"];
1384
+ remediation: {
1385
+ readonly kind: "revise-operation";
1386
+ 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.";
1387
+ };
1388
+ } | {
1389
+ docsUri: string;
1390
+ code: "component_has_package_dependencies";
1391
+ owners: readonly ["core.transaction"];
1392
+ remediation: {
1393
+ readonly kind: "revise-operation";
1394
+ 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.";
1395
+ };
1396
+ } | {
1397
+ docsUri: string;
1398
+ code: "dangling_resource_reference";
1399
+ owners: readonly ["core.validation"];
1400
+ remediation: {
1401
+ readonly kind: "revise-operation";
1402
+ 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.";
1403
+ };
1404
+ } | {
1405
+ docsUri: string;
1406
+ code: "invalid_project_xml";
1407
+ owners: readonly ["core.validation"];
1408
+ remediation: {
1409
+ readonly kind: "host-action";
1410
+ 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.";
1411
+ };
1412
+ } | {
1413
+ docsUri: string;
1414
+ code: "invalid_package_xml";
1415
+ owners: readonly ["core.validation"];
1416
+ remediation: {
1417
+ readonly kind: "host-action";
1418
+ 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.";
1419
+ };
1420
+ } | {
1421
+ docsUri: string;
1422
+ code: "invalid_branch_package_xml";
1423
+ owners: readonly ["core.validation"];
1424
+ remediation: {
1425
+ readonly kind: "host-action";
1426
+ 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.";
1427
+ };
1428
+ } | {
1429
+ docsUri: string;
1430
+ code: "invalid_component_xml";
1431
+ owners: readonly ["core.validation"];
1432
+ remediation: {
1433
+ readonly kind: "host-action";
1434
+ 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.";
1435
+ };
1436
+ } | {
1437
+ docsUri: string;
1438
+ code: "invalid_project_value";
1439
+ owners: readonly ["core.validation"];
1440
+ remediation: {
1441
+ readonly kind: "host-action";
1442
+ 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.";
1443
+ };
1444
+ } | {
1445
+ docsUri: string;
1446
+ code: "desktop_incompatible_geometry";
1447
+ owners: readonly ["core.validation"];
1448
+ remediation: {
1449
+ readonly kind: "host-action";
1450
+ 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.";
1451
+ };
1452
+ } | {
1453
+ docsUri: string;
1454
+ code: "invalid_settings_json";
1455
+ owners: readonly ["core.validation"];
1456
+ remediation: {
1457
+ readonly kind: "host-action";
1458
+ 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.";
1459
+ };
1460
+ } | {
1461
+ docsUri: string;
1462
+ code: "path_collision";
1463
+ owners: readonly ["core.validation"];
1464
+ remediation: {
1465
+ readonly kind: "host-action";
1466
+ 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.";
1467
+ };
1468
+ } | {
1469
+ docsUri: string;
1470
+ code: "unsafe_path";
1471
+ owners: readonly ["core.validation"];
1472
+ remediation: {
1473
+ readonly kind: "host-action";
1474
+ 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.";
1475
+ };
1476
+ } | {
1477
+ docsUri: string;
1478
+ code: "capability_unavailable";
1479
+ owners: readonly ["backend"];
1480
+ remediation: {
1481
+ readonly kind: "host-action";
1482
+ 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.";
1483
+ };
1484
+ } | {
1485
+ docsUri: string;
1486
+ code: "uam_fidelity_unsupported";
1487
+ owners: readonly ["backend"];
1488
+ remediation: {
1489
+ readonly kind: "host-action";
1490
+ 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.";
1491
+ };
1492
+ } | {
1493
+ docsUri: string;
1494
+ code: "save_partial_failure";
1495
+ owners: readonly ["backend"];
1496
+ remediation: {
1497
+ readonly kind: "host-action";
1498
+ 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.";
1499
+ };
1500
+ } | {
1501
+ docsUri: string;
1502
+ code: "write_failed";
1503
+ owners: readonly ["backend"];
1504
+ remediation: {
1505
+ readonly kind: "host-action";
1506
+ 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.";
1507
+ };
1508
+ } | {
1509
+ docsUri: string;
1510
+ code: "project_open_failed";
1511
+ owners: readonly ["backend"];
1512
+ remediation: {
1513
+ readonly kind: "host-action";
1514
+ 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.";
1515
+ };
1516
+ } | {
1517
+ docsUri: string;
1518
+ code: "materialize_validation_failed";
1519
+ owners: readonly ["backend"];
1520
+ remediation: {
1521
+ readonly kind: "host-action";
1522
+ 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.";
1523
+ };
1524
+ } | {
1525
+ docsUri: string;
1526
+ code: "execution_failure";
1527
+ owners: readonly ["core.transaction"];
1528
+ remediation: {
1529
+ readonly kind: "host-action";
1530
+ 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.";
1531
+ };
1532
+ } | {
1533
+ docsUri: string;
1534
+ code: "cache_refresh_failed";
1535
+ owners: readonly ["backend"];
1536
+ remediation: {
1537
+ readonly kind: "host-action";
1538
+ 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.";
1539
+ };
1540
+ } | {
1541
+ docsUri: string;
1542
+ code: "job_not_found";
1543
+ owners: readonly ["backend"];
1544
+ remediation: {
1545
+ readonly kind: "host-action";
1546
+ 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.";
1547
+ };
1548
+ } | {
1549
+ docsUri: string;
1550
+ code: "job_not_cancellable";
1551
+ owners: readonly ["backend"];
1552
+ remediation: {
1553
+ readonly kind: "host-action";
1554
+ 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.";
1555
+ };
1556
+ } | {
1557
+ docsUri: string;
1558
+ code: "job_cancelled";
1559
+ owners: readonly ["backend"];
1560
+ remediation: {
1561
+ readonly kind: "host-action";
1562
+ 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.";
1563
+ };
1564
+ })[];
1565
+ declare function getBackendDiagnosticGuide(code: string): {
1566
+ docsUri: string;
1567
+ code: "transaction_preview_failed";
1568
+ owners: readonly ["backend"];
1569
+ remediation: {
1570
+ readonly kind: "host-action";
1571
+ 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.";
1572
+ };
1573
+ } | {
1574
+ docsUri: string;
1575
+ code: "stale_write";
1576
+ owners: readonly ["backend"];
1577
+ remediation: {
1578
+ readonly kind: "refresh-and-replan";
1579
+ 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.";
1580
+ };
1581
+ } | {
1582
+ docsUri: string;
1583
+ code: "entity_query_failed";
1584
+ owners: readonly ["backend"];
1585
+ remediation: {
1586
+ readonly kind: "host-action";
1587
+ 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.";
1588
+ };
1589
+ } | {
1590
+ docsUri: string;
1591
+ code: "session_not_found";
1592
+ owners: readonly ["backend"];
1593
+ remediation: {
1594
+ readonly kind: "host-action";
1595
+ 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.";
1596
+ };
1597
+ } | {
1598
+ docsUri: string;
1599
+ code: "path_policy_violation";
1600
+ owners: readonly ["backend"];
1601
+ remediation: {
1602
+ readonly kind: "host-action";
1603
+ 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.";
1604
+ };
1605
+ } | {
1606
+ docsUri: string;
1607
+ code: "project_root_not_allowed";
1608
+ owners: readonly ["backend"];
1609
+ remediation: {
1610
+ readonly kind: "host-action";
1611
+ 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.";
1612
+ };
1613
+ } | {
1614
+ docsUri: string;
1615
+ code: "invalid_package_selector";
1616
+ owners: readonly ["core.transaction"];
1617
+ remediation: {
1618
+ readonly kind: "revise-selector";
1619
+ 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.";
1620
+ };
1621
+ } | {
1622
+ docsUri: string;
1623
+ code: "invalid_component_selector";
1624
+ owners: readonly ["core.transaction"];
1625
+ remediation: {
1626
+ readonly kind: "revise-selector";
1627
+ 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.";
1628
+ };
1629
+ } | {
1630
+ docsUri: string;
1631
+ code: "invalid_resource_selector";
1632
+ owners: readonly ["core.transaction"];
1633
+ remediation: {
1634
+ readonly kind: "revise-selector";
1635
+ 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.";
1636
+ };
1637
+ } | {
1638
+ docsUri: string;
1639
+ code: "invalid_display_node_selector";
1640
+ owners: readonly ["core.transaction"];
1641
+ remediation: {
1642
+ readonly kind: "revise-selector";
1643
+ 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.";
1644
+ };
1645
+ } | {
1646
+ docsUri: string;
1647
+ code: "invalid_resource_folder_selector";
1648
+ owners: readonly ["core.transaction"];
1649
+ remediation: {
1650
+ readonly kind: "revise-selector";
1651
+ 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.";
1652
+ };
1653
+ } | {
1654
+ docsUri: string;
1655
+ code: "invalid_branch_selector";
1656
+ owners: readonly ["core.transaction"];
1657
+ remediation: {
1658
+ readonly kind: "revise-selector";
1659
+ 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.";
1660
+ };
1661
+ } | {
1662
+ docsUri: string;
1663
+ code: "invalid_gear_selector";
1664
+ owners: readonly ["core.transaction"];
1665
+ remediation: {
1666
+ readonly kind: "revise-selector";
1667
+ 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.";
1668
+ };
1669
+ } | {
1670
+ docsUri: string;
1671
+ code: "invalid_look_gear_selector";
1672
+ owners: readonly ["core.transaction"];
1673
+ remediation: {
1674
+ readonly kind: "revise-selector";
1675
+ 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.";
1676
+ };
1677
+ } | {
1678
+ docsUri: string;
1679
+ code: "selector_ambiguity";
1680
+ owners: readonly ["core.transaction"];
1681
+ remediation: {
1682
+ readonly kind: "revise-selector";
1683
+ 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.";
1684
+ };
1685
+ } | {
1686
+ docsUri: string;
1687
+ code: "unavailable_resource_source_bytes";
1688
+ owners: readonly ["core.transaction"];
1689
+ remediation: {
1690
+ readonly kind: "host-action";
1691
+ 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.";
1692
+ };
1693
+ } | {
1694
+ docsUri: string;
1695
+ code: "missing_source";
1696
+ owners: readonly ["core.validation"];
1697
+ remediation: {
1698
+ readonly kind: "host-action";
1699
+ 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.";
1700
+ };
1701
+ } | {
1702
+ docsUri: string;
1703
+ code: "unreadable_source";
1704
+ owners: readonly ["core.validation"];
1705
+ remediation: {
1706
+ readonly kind: "host-action";
1707
+ 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.";
1708
+ };
1709
+ } | {
1710
+ docsUri: string;
1711
+ code: "decode_capability_unavailable";
1712
+ owners: readonly ["core.validation"];
1713
+ remediation: {
1714
+ readonly kind: "host-action";
1715
+ 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.";
1716
+ };
1717
+ } | {
1718
+ docsUri: string;
1719
+ code: "session_id_conflict";
1720
+ owners: readonly ["backend"];
1721
+ remediation: {
1722
+ readonly kind: "host-action";
1723
+ 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.";
1724
+ };
1725
+ } | {
1726
+ docsUri: string;
1727
+ code: "lock_conflict";
1728
+ owners: readonly ["backend"];
1729
+ remediation: {
1730
+ readonly kind: "host-action";
1731
+ 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.";
1732
+ };
1733
+ } | {
1734
+ docsUri: string;
1735
+ code: "event_cursor_invalid";
1736
+ owners: readonly ["backend"];
1737
+ remediation: {
1738
+ readonly kind: "refresh-and-replan";
1739
+ 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.";
1740
+ };
1741
+ } | {
1742
+ docsUri: string;
1743
+ code: "corrupt_source";
1744
+ owners: readonly ["core.validation"];
1745
+ remediation: {
1746
+ readonly kind: "host-action";
1747
+ 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.";
1748
+ };
1749
+ } | {
1750
+ docsUri: string;
1751
+ code: "unsupported_operation";
1752
+ owners: readonly ["core.transaction"];
1753
+ remediation: {
1754
+ readonly kind: "revise-operation";
1755
+ 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.";
1756
+ };
1757
+ } | {
1758
+ docsUri: string;
1759
+ code: "transaction_unsupported";
1760
+ owners: readonly ["core.transaction"];
1761
+ remediation: {
1762
+ readonly kind: "revise-operation";
1763
+ 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.";
1764
+ };
1765
+ } | {
1766
+ docsUri: string;
1767
+ code: "unsupported_display_node_kind";
1768
+ owners: readonly ["core.transaction"];
1769
+ remediation: {
1770
+ readonly kind: "revise-operation";
1771
+ 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.";
1772
+ };
1773
+ } | {
1774
+ docsUri: string;
1775
+ code: "unsupported_cross_package_image_ref";
1776
+ owners: readonly ["core.transaction"];
1777
+ remediation: {
1778
+ readonly kind: "revise-operation";
1779
+ 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.";
1780
+ };
1781
+ } | {
1782
+ docsUri: string;
1783
+ code: "unsupported_gear_kind";
1784
+ owners: readonly ["core.transaction"];
1785
+ remediation: {
1786
+ readonly kind: "revise-operation";
1787
+ 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.";
1788
+ };
1789
+ } | {
1790
+ docsUri: string;
1791
+ code: "unsupported_resource_mutation";
1792
+ owners: readonly ["core.transaction"];
1793
+ remediation: {
1794
+ readonly kind: "revise-operation";
1795
+ 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.";
1796
+ };
1797
+ } | {
1798
+ docsUri: string;
1799
+ code: "unsupported_display_node_mutation";
1800
+ owners: readonly ["core.transaction"];
1801
+ remediation: {
1802
+ readonly kind: "revise-operation";
1803
+ 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.";
1804
+ };
1805
+ } | {
1806
+ docsUri: string;
1807
+ code: "unsupported_text_field_target";
1808
+ owners: readonly ["core.transaction"];
1809
+ remediation: {
1810
+ readonly kind: "revise-operation";
1811
+ 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.";
1812
+ };
1813
+ } | {
1814
+ docsUri: string;
1815
+ code: "unsupported_display_node_field";
1816
+ owners: readonly ["core.transaction"];
1817
+ remediation: {
1818
+ readonly kind: "revise-operation";
1819
+ 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.";
1820
+ };
1821
+ } | {
1822
+ docsUri: string;
1823
+ code: "unsupported_operation_batch";
1824
+ owners: readonly ["core.transaction"];
1825
+ remediation: {
1826
+ readonly kind: "revise-operation";
1827
+ 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.";
1828
+ };
1829
+ } | {
1830
+ docsUri: string;
1831
+ code: "unsupported_resource_kind";
1832
+ owners: readonly ["core.transaction", "core.validation"];
1833
+ remediation: {
1834
+ readonly kind: "revise-operation";
1835
+ 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.";
1836
+ };
1837
+ } | {
1838
+ docsUri: string;
1839
+ code: "invalid_project_settings";
1840
+ owners: readonly ["core.transaction"];
1841
+ remediation: {
1842
+ readonly kind: "revise-operation";
1843
+ 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.";
1844
+ };
1845
+ } | {
1846
+ docsUri: string;
1847
+ code: "invalid_package_settings";
1848
+ owners: readonly ["core.transaction"];
1849
+ remediation: {
1850
+ readonly kind: "revise-operation";
1851
+ 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.";
1852
+ };
1853
+ } | {
1854
+ docsUri: string;
1855
+ code: "invalid_display_node_payload";
1856
+ owners: readonly ["core.transaction"];
1857
+ remediation: {
1858
+ readonly kind: "revise-operation";
1859
+ 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.";
1860
+ };
1861
+ } | {
1862
+ docsUri: string;
1863
+ code: "invalid_resource_name";
1864
+ owners: readonly ["core.transaction"];
1865
+ remediation: {
1866
+ readonly kind: "revise-operation";
1867
+ 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.";
1868
+ };
1869
+ } | {
1870
+ docsUri: string;
1871
+ code: "invalid_resource_path";
1872
+ owners: readonly ["core.transaction"];
1873
+ remediation: {
1874
+ readonly kind: "revise-operation";
1875
+ 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.";
1876
+ };
1877
+ } | {
1878
+ docsUri: string;
1879
+ code: "invalid_resource_folder_path";
1880
+ owners: readonly ["core.transaction"];
1881
+ remediation: {
1882
+ readonly kind: "revise-operation";
1883
+ 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.";
1884
+ };
1885
+ } | {
1886
+ docsUri: string;
1887
+ code: "invalid_resource_folder_atlas";
1888
+ owners: readonly ["core.transaction"];
1889
+ remediation: {
1890
+ readonly kind: "revise-operation";
1891
+ 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.";
1892
+ };
1893
+ } | {
1894
+ docsUri: string;
1895
+ code: "invalid_attach_index";
1896
+ owners: readonly ["core.transaction"];
1897
+ remediation: {
1898
+ readonly kind: "revise-operation";
1899
+ 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.";
1900
+ };
1901
+ } | {
1902
+ docsUri: string;
1903
+ code: "invalid_controller_payload";
1904
+ owners: readonly ["core.transaction"];
1905
+ remediation: {
1906
+ readonly kind: "revise-operation";
1907
+ 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.";
1908
+ };
1909
+ } | {
1910
+ docsUri: string;
1911
+ code: "invalid_transition_payload";
1912
+ owners: readonly ["core.transaction"];
1913
+ remediation: {
1914
+ readonly kind: "revise-operation";
1915
+ 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.";
1916
+ };
1917
+ } | {
1918
+ docsUri: string;
1919
+ code: "invalid_look_gear_payload";
1920
+ owners: readonly ["core.transaction"];
1921
+ remediation: {
1922
+ readonly kind: "revise-operation";
1923
+ 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.";
1924
+ };
1925
+ } | {
1926
+ docsUri: string;
1927
+ code: "invalid_gear_payload";
1928
+ owners: readonly ["core.transaction"];
1929
+ remediation: {
1930
+ readonly kind: "revise-operation";
1931
+ 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.";
1932
+ };
1933
+ } | {
1934
+ docsUri: string;
1935
+ code: "invalid_resource_payload";
1936
+ owners: readonly ["core.transaction"];
1937
+ remediation: {
1938
+ readonly kind: "revise-operation";
1939
+ 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.";
1940
+ };
1941
+ } | {
1942
+ docsUri: string;
1943
+ code: "invalid_resource_bytes";
1944
+ owners: readonly ["core.transaction"];
1945
+ remediation: {
1946
+ readonly kind: "revise-operation";
1947
+ 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.";
1948
+ };
1949
+ } | {
1950
+ docsUri: string;
1951
+ code: "invalid_movie_clip_jta";
1952
+ owners: readonly ["core.transaction"];
1953
+ remediation: {
1954
+ readonly kind: "revise-operation";
1955
+ 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.";
1956
+ };
1957
+ } | {
1958
+ docsUri: string;
1959
+ code: "invalid_resource_index";
1960
+ owners: readonly ["core.transaction"];
1961
+ remediation: {
1962
+ readonly kind: "revise-operation";
1963
+ 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.";
1964
+ };
1965
+ } | {
1966
+ docsUri: string;
1967
+ code: "invalid_branch_name";
1968
+ owners: readonly ["core.transaction"];
1969
+ remediation: {
1970
+ readonly kind: "revise-operation";
1971
+ 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.";
1972
+ };
1973
+ } | {
1974
+ docsUri: string;
1975
+ code: "invalid_package_payload";
1976
+ owners: readonly ["core.transaction"];
1977
+ remediation: {
1978
+ readonly kind: "revise-operation";
1979
+ 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.";
1980
+ };
1981
+ } | {
1982
+ docsUri: string;
1983
+ code: "invalid_package_index";
1984
+ owners: readonly ["core.transaction"];
1985
+ remediation: {
1986
+ readonly kind: "revise-operation";
1987
+ 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.";
1988
+ };
1989
+ } | {
1990
+ docsUri: string;
1991
+ code: "invalid_component_payload";
1992
+ owners: readonly ["core.transaction"];
1993
+ remediation: {
1994
+ readonly kind: "revise-operation";
1995
+ 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.";
1996
+ };
1997
+ } | {
1998
+ docsUri: string;
1999
+ code: "invalid_component_index";
2000
+ owners: readonly ["core.transaction"];
2001
+ remediation: {
2002
+ readonly kind: "revise-operation";
2003
+ 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.";
2004
+ };
2005
+ } | {
2006
+ docsUri: string;
2007
+ code: "invalid_component_move";
2008
+ owners: readonly ["core.transaction"];
2009
+ remediation: {
2010
+ readonly kind: "revise-operation";
2011
+ 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.";
2012
+ };
2013
+ } | {
2014
+ docsUri: string;
2015
+ code: "invalid_uam";
2016
+ owners: readonly ["core.transaction", "core.validation"];
2017
+ remediation: {
2018
+ readonly kind: "revise-operation";
2019
+ 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.";
2020
+ };
2021
+ } | {
2022
+ docsUri: string;
2023
+ code: "project_settings_unchanged";
2024
+ owners: readonly ["core.transaction"];
2025
+ remediation: {
2026
+ readonly kind: "refresh-and-replan";
2027
+ 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.";
2028
+ };
2029
+ } | {
2030
+ docsUri: string;
2031
+ code: "package_settings_unchanged";
2032
+ owners: readonly ["core.transaction"];
2033
+ remediation: {
2034
+ readonly kind: "refresh-and-replan";
2035
+ 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.";
2036
+ };
2037
+ } | {
2038
+ docsUri: string;
2039
+ code: "display_node_props_unchanged";
2040
+ owners: readonly ["core.transaction"];
2041
+ remediation: {
2042
+ readonly kind: "refresh-and-replan";
2043
+ 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.";
2044
+ };
2045
+ } | {
2046
+ docsUri: string;
2047
+ code: "resource_folder_atlas_unchanged";
2048
+ owners: readonly ["core.transaction"];
2049
+ remediation: {
2050
+ readonly kind: "refresh-and-replan";
2051
+ 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.";
2052
+ };
2053
+ } | {
2054
+ docsUri: string;
2055
+ code: "duplicate_look_gear_controller";
2056
+ owners: readonly ["core.transaction"];
2057
+ remediation: {
2058
+ readonly kind: "revise-operation";
2059
+ 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.";
2060
+ };
2061
+ } | {
2062
+ docsUri: string;
2063
+ code: "duplicate_transition_name";
2064
+ owners: readonly ["core.transaction"];
2065
+ remediation: {
2066
+ readonly kind: "revise-operation";
2067
+ 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.";
2068
+ };
2069
+ } | {
2070
+ docsUri: string;
2071
+ code: "duplicate_look_gear_state_page";
2072
+ owners: readonly ["core.transaction"];
2073
+ remediation: {
2074
+ readonly kind: "revise-operation";
2075
+ 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.";
2076
+ };
2077
+ } | {
2078
+ docsUri: string;
2079
+ code: "duplicate_gear_controller";
2080
+ owners: readonly ["core.transaction"];
2081
+ remediation: {
2082
+ readonly kind: "revise-operation";
2083
+ 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.";
2084
+ };
2085
+ } | {
2086
+ docsUri: string;
2087
+ code: "duplicate_gear_state_page";
2088
+ owners: readonly ["core.transaction"];
2089
+ remediation: {
2090
+ readonly kind: "revise-operation";
2091
+ 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.";
2092
+ };
2093
+ } | {
2094
+ docsUri: string;
2095
+ code: "duplicate_branch_name";
2096
+ owners: readonly ["core.transaction"];
2097
+ remediation: {
2098
+ readonly kind: "revise-operation";
2099
+ 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.";
2100
+ };
2101
+ } | {
2102
+ docsUri: string;
2103
+ code: "duplicate_component_id";
2104
+ owners: readonly ["core.transaction"];
2105
+ remediation: {
2106
+ readonly kind: "revise-operation";
2107
+ 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.";
2108
+ };
2109
+ } | {
2110
+ docsUri: string;
2111
+ code: "resource_folder_conflict";
2112
+ owners: readonly ["core.transaction"];
2113
+ remediation: {
2114
+ readonly kind: "revise-operation";
2115
+ 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.";
2116
+ };
2117
+ } | {
2118
+ docsUri: string;
2119
+ code: "duplicate_resource_id";
2120
+ owners: readonly ["core.transaction", "core.validation"];
2121
+ remediation: {
2122
+ readonly kind: "revise-operation";
2123
+ 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.";
2124
+ };
2125
+ } | {
2126
+ docsUri: string;
2127
+ code: "duplicate_package_id";
2128
+ owners: readonly ["core.transaction", "core.validation"];
2129
+ remediation: {
2130
+ readonly kind: "revise-operation";
2131
+ 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.";
2132
+ };
2133
+ } | {
2134
+ docsUri: string;
2135
+ code: "duplicate_package_name";
2136
+ owners: readonly ["core.transaction", "core.validation"];
2137
+ remediation: {
2138
+ readonly kind: "revise-operation";
2139
+ 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.";
2140
+ };
2141
+ } | {
2142
+ docsUri: string;
2143
+ code: "resource_folder_not_empty";
2144
+ owners: readonly ["core.transaction"];
2145
+ remediation: {
2146
+ readonly kind: "revise-operation";
2147
+ 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.";
2148
+ };
2149
+ } | {
2150
+ docsUri: string;
2151
+ code: "branch_not_empty";
2152
+ owners: readonly ["core.transaction"];
2153
+ remediation: {
2154
+ readonly kind: "revise-operation";
2155
+ 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.";
2156
+ };
2157
+ } | {
2158
+ docsUri: string;
2159
+ code: "branch_referenced";
2160
+ owners: readonly ["core.transaction"];
2161
+ remediation: {
2162
+ readonly kind: "revise-operation";
2163
+ 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.";
2164
+ };
2165
+ } | {
2166
+ docsUri: string;
2167
+ code: "invalid_resource_reference";
2168
+ owners: readonly ["core.transaction"];
2169
+ remediation: {
2170
+ readonly kind: "revise-operation";
2171
+ 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.";
2172
+ };
2173
+ } | {
2174
+ docsUri: string;
2175
+ code: "invalid_component_reference";
2176
+ owners: readonly ["core.transaction"];
2177
+ remediation: {
2178
+ readonly kind: "revise-operation";
2179
+ 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.";
2180
+ };
2181
+ } | {
2182
+ docsUri: string;
2183
+ code: "invalid_group_reference";
2184
+ owners: readonly ["core.transaction"];
2185
+ remediation: {
2186
+ readonly kind: "revise-operation";
2187
+ 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.";
2188
+ };
2189
+ } | {
2190
+ docsUri: string;
2191
+ code: "package_referenced";
2192
+ owners: readonly ["core.transaction"];
2193
+ remediation: {
2194
+ readonly kind: "revise-operation";
2195
+ 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.";
2196
+ };
2197
+ } | {
2198
+ docsUri: string;
2199
+ code: "component_referenced";
2200
+ owners: readonly ["core.transaction"];
2201
+ remediation: {
2202
+ readonly kind: "revise-operation";
2203
+ 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.";
2204
+ };
2205
+ } | {
2206
+ docsUri: string;
2207
+ code: "component_has_package_dependencies";
2208
+ owners: readonly ["core.transaction"];
2209
+ remediation: {
2210
+ readonly kind: "revise-operation";
2211
+ 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.";
2212
+ };
2213
+ } | {
2214
+ docsUri: string;
2215
+ code: "dangling_resource_reference";
2216
+ owners: readonly ["core.validation"];
2217
+ remediation: {
2218
+ readonly kind: "revise-operation";
2219
+ 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.";
2220
+ };
2221
+ } | {
2222
+ docsUri: string;
2223
+ code: "invalid_project_xml";
2224
+ owners: readonly ["core.validation"];
2225
+ remediation: {
2226
+ readonly kind: "host-action";
2227
+ 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.";
2228
+ };
2229
+ } | {
2230
+ docsUri: string;
2231
+ code: "invalid_package_xml";
2232
+ owners: readonly ["core.validation"];
2233
+ remediation: {
2234
+ readonly kind: "host-action";
2235
+ 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.";
2236
+ };
2237
+ } | {
2238
+ docsUri: string;
2239
+ code: "invalid_branch_package_xml";
2240
+ owners: readonly ["core.validation"];
2241
+ remediation: {
2242
+ readonly kind: "host-action";
2243
+ 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.";
2244
+ };
2245
+ } | {
2246
+ docsUri: string;
2247
+ code: "invalid_component_xml";
2248
+ owners: readonly ["core.validation"];
2249
+ remediation: {
2250
+ readonly kind: "host-action";
2251
+ 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.";
2252
+ };
2253
+ } | {
2254
+ docsUri: string;
2255
+ code: "invalid_project_value";
2256
+ owners: readonly ["core.validation"];
2257
+ remediation: {
2258
+ readonly kind: "host-action";
2259
+ 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.";
2260
+ };
2261
+ } | {
2262
+ docsUri: string;
2263
+ code: "desktop_incompatible_geometry";
2264
+ owners: readonly ["core.validation"];
2265
+ remediation: {
2266
+ readonly kind: "host-action";
2267
+ 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.";
2268
+ };
2269
+ } | {
2270
+ docsUri: string;
2271
+ code: "invalid_settings_json";
2272
+ owners: readonly ["core.validation"];
2273
+ remediation: {
2274
+ readonly kind: "host-action";
2275
+ 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.";
2276
+ };
2277
+ } | {
2278
+ docsUri: string;
2279
+ code: "path_collision";
2280
+ owners: readonly ["core.validation"];
2281
+ remediation: {
2282
+ readonly kind: "host-action";
2283
+ 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.";
2284
+ };
2285
+ } | {
2286
+ docsUri: string;
2287
+ code: "unsafe_path";
2288
+ owners: readonly ["core.validation"];
2289
+ remediation: {
2290
+ readonly kind: "host-action";
2291
+ 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.";
2292
+ };
2293
+ } | {
2294
+ docsUri: string;
2295
+ code: "capability_unavailable";
2296
+ owners: readonly ["backend"];
2297
+ remediation: {
2298
+ readonly kind: "host-action";
2299
+ 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.";
2300
+ };
2301
+ } | {
2302
+ docsUri: string;
2303
+ code: "uam_fidelity_unsupported";
2304
+ owners: readonly ["backend"];
2305
+ remediation: {
2306
+ readonly kind: "host-action";
2307
+ 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.";
2308
+ };
2309
+ } | {
2310
+ docsUri: string;
2311
+ code: "save_partial_failure";
2312
+ owners: readonly ["backend"];
2313
+ remediation: {
2314
+ readonly kind: "host-action";
2315
+ 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.";
2316
+ };
2317
+ } | {
2318
+ docsUri: string;
2319
+ code: "write_failed";
2320
+ owners: readonly ["backend"];
2321
+ remediation: {
2322
+ readonly kind: "host-action";
2323
+ 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.";
2324
+ };
2325
+ } | {
2326
+ docsUri: string;
2327
+ code: "project_open_failed";
2328
+ owners: readonly ["backend"];
2329
+ remediation: {
2330
+ readonly kind: "host-action";
2331
+ 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.";
2332
+ };
2333
+ } | {
2334
+ docsUri: string;
2335
+ code: "materialize_validation_failed";
2336
+ owners: readonly ["backend"];
2337
+ remediation: {
2338
+ readonly kind: "host-action";
2339
+ 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.";
2340
+ };
2341
+ } | {
2342
+ docsUri: string;
2343
+ code: "execution_failure";
2344
+ owners: readonly ["core.transaction"];
2345
+ remediation: {
2346
+ readonly kind: "host-action";
2347
+ 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.";
2348
+ };
2349
+ } | {
2350
+ docsUri: string;
2351
+ code: "cache_refresh_failed";
2352
+ owners: readonly ["backend"];
2353
+ remediation: {
2354
+ readonly kind: "host-action";
2355
+ 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.";
2356
+ };
2357
+ } | {
2358
+ docsUri: string;
2359
+ code: "job_not_found";
2360
+ owners: readonly ["backend"];
2361
+ remediation: {
2362
+ readonly kind: "host-action";
2363
+ 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.";
2364
+ };
2365
+ } | {
2366
+ docsUri: string;
2367
+ code: "job_not_cancellable";
2368
+ owners: readonly ["backend"];
2369
+ remediation: {
2370
+ readonly kind: "host-action";
2371
+ 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.";
2372
+ };
2373
+ } | {
2374
+ docsUri: string;
2375
+ code: "job_cancelled";
2376
+ owners: readonly ["backend"];
2377
+ remediation: {
2378
+ readonly kind: "host-action";
2379
+ 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.";
2380
+ };
2381
+ };
2382
+ //#endregion
587
2383
  //#region src/storage.d.ts
588
2384
  type StorageStatKind = 'file' | 'directory';
589
2385
  interface BackendStorageStatLike {
@@ -619,4 +2415,4 @@ interface BackendAsyncStorageAdapter {
619
2415
  type BackendStorageFileSystem = BackendFileSystem & FileSystem;
620
2416
  declare function createBackendStorageFileSystem(storage: BackendAsyncStorageAdapter): BackendStorageFileSystem;
621
2417
  //#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 };
2418
+ 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_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 BackendResourceSnapshot, type BackendResponseMeta, type BackendResult, BackendRuntime, type BackendRuntimeOptions, type BackendSessionLock, type BackendSessionSnapshot, 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 RefreshCacheInput, type SavePartialFailureError, type SaveSessionInput, type SessionIdConflictError, type SessionNotFoundError, type SessionStaleWriteError, type TransactionPreviewError, type UamFidelityUnsupportedError, type ValidateSessionInput, createBackendStorageFileSystem, getBackendDiagnosticCatalog, getBackendDiagnosticGuide };