@solidnative-dev/observability 0.0.0-stage → 0.1.0-alpha.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Solid Native contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,186 @@
1
- # Temporary Holding Version
1
+ # `@solidnative-dev/observability`
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ This package defines Solid Native's vendor-neutral causal telemetry protocol.
4
+ It records operation boundaries and cause IDs without depending on a monitoring
5
+ vendor or exporting application props and native event payloads.
6
+
7
+ The initial protocol covers surfaces, native events, selected Solid owner
8
+ lifetimes and native-output computations, explicit background tasks, renderer
9
+ commits, platform mounts, next-vsync frame observations, measurements, and
10
+ commands.
11
+ `createCausalTelemetry` isolates sink failures from application execution,
12
+ including synchronous and asynchronous failures from the optional diagnostic
13
+ reporter, and accepts deterministic clocks, backend timestamps/durations, and
14
+ ID factories for tests. A validated resource identity can stamp the runtime
15
+ ABI, platform, build, release, and update onto every record without allowing
16
+ individual operations to spoof those fields. The renderer does not create
17
+ telemetry records unless a root opts in.
18
+
19
+ `createSampledCausalTelemetry` makes one validated decision for the complete
20
+ session. A rejected session returns `undefined`, allowing the renderer to keep
21
+ its zero-instrumentation path; a retained session preserves every causal edge.
22
+
23
+ `createCausalTimeline` provides a bounded in-memory view for development tools,
24
+ and `createCausalTelemetryFanout` isolates exporters while delivering the same
25
+ record stream to a local timeline and one or more external backends.
26
+ `timeline.explain(operationId)` reconstructs the retained transitive causes and
27
+ effects of a selected event, computation, commit, mount, or frame in stable
28
+ timeline order. It reports cause IDs that are no longer retained, so a debugger
29
+ does not silently present an evicted or cross-process graph as complete.
30
+ `explainCausalTimelineSnapshot(snapshot, operationId)` performs the same query
31
+ on an isolated snapshot after it has crossed a development-client boundary.
32
+ `groupCausalTimelineSnapshot(snapshot)` partitions retained operations into
33
+ weakly connected causal components, keeping consumers of the same unresolved
34
+ or evicted cause together. Each bounded group reports entry and terminal
35
+ operations, unresolved causes, active/error/cancelled counts, and elapsed time.
36
+ Its `groupId` is only the earliest retained operation ID, not an invented
37
+ distributed trace identity; a group can change when the bounded timeline
38
+ evicts history.
39
+ `createCausalDebugSnapshot` turns that snapshot into a versioned, bounded,
40
+ deeply frozen JSON-shaped handoff. `parseCausalDebugSnapshot` validates the
41
+ untrusted value before a desktop debugger queries it; it rejects unsupported
42
+ schema versions, unknown fields, duplicate operation IDs, inconsistent active
43
+ counts, and oversized operation, cause, attribute, or string collections.
44
+
45
+ `createTreeDebugSnapshot`, `serializeTreeDebugSnapshot`, and
46
+ `parseTreeDebugSnapshot` apply the same bounded, deeply frozen protocol to
47
+ structural UI tree snapshots (`solid-native.tree-debug-snapshot`). Each snapshot
48
+ records component hierarchy, process-local node handles, sorted prop and event
49
+ key names, closed-enum accessibility roles, static causal owner/computation
50
+ annotations, text character counts, and committed sequence metadata without
51
+ exporting rendered text, prop values, labels, or user input.
52
+
53
+ `correlateNativeSolidDiagnostics` is the pure, transport-independent join
54
+ between one parsed Solid diagnostics envelope and one causal snapshot. It
55
+ matches bounded static effect/native-output names inside the capture window and
56
+ follows retained native computation → commit → mount → frame edges. The result
57
+ is deeply frozen and explicitly records `exactPerRerunJoin: false`; callers
58
+ cannot accidentally promote the current time-window heuristic into an exact
59
+ claim. Keeping this function in the protocol package lets on-device tools,
60
+ desktop clients, and hosted ingestion apply the same semantics without taking
61
+ a dependency on the Node.js CLI.
62
+
63
+ The portable handoff is transport-neutral and needs no account, network
64
+ service, or vendor SDK. The parser bounds and validates structure; it is not a
65
+ redaction system. Built-in Solid Native instrumentation records
66
+ low-cardinality identifiers and timings rather than props or event payloads.
67
+ Applications adding custom attributes remain responsible for excluding secrets
68
+ and personal data.
69
+
70
+ `createSentryCausalExporter` is the first vendor adapter. It accepts the narrow
71
+ `startInactiveSpan` API exposed by current Sentry JavaScript and React Native
72
+ SDKs, so this package has no Sentry dependency and does not initialize or own
73
+ the customer's SDK. It maps operations to UI span categories, converts the
74
+ protocol's millisecond timestamps to Sentry seconds, preserves safe attributes,
75
+ and stores bounded multi-cause IDs as span data rather than indexed tags.
76
+
77
+ `createOpenTelemetryCausalExporter` provides the equivalent dependency-free
78
+ boundary for a tracer returned by `@opentelemetry/api`. It uses the protocol's
79
+ epoch-millisecond timestamps directly, leaves batching and transport with the
80
+ application's configured SDK, and marks only actual error outcomes as
81
+ OpenTelemetry errors. Cancellation remains explicit span data rather than being
82
+ misclassified as a failure.
83
+
84
+ ```ts
85
+ import * as Sentry from "@sentry/react-native";
86
+ import { mount } from "@solidnative-dev/renderer";
87
+ import {
88
+ createCausalDebugSnapshot,
89
+ createCausalTelemetryFanout,
90
+ createCausalTimeline,
91
+ createSampledCausalTelemetry,
92
+ createSentryCausalExporter,
93
+ explainCausalTimelineSnapshot,
94
+ groupCausalTimelineSnapshot,
95
+ parseCausalDebugSnapshot,
96
+ } from "@solidnative-dev/observability";
97
+
98
+ const verifiedRelease = releaseVerification.authorizedRelease;
99
+ if (verifiedRelease?.inputsVerified !== true)
100
+ throw new Error("Release inputs are not authorized");
101
+
102
+ const timeline = createCausalTimeline();
103
+ const sentry = createSentryCausalExporter({ sentry: Sentry });
104
+ const telemetry = createSampledCausalTelemetry({
105
+ sink: createCausalTelemetryFanout({
106
+ sinks: [timeline.sink, sentry.sink],
107
+ }),
108
+ sampleRate: 0.1,
109
+ authorizedRelease: verifiedRelease,
110
+ resource: {
111
+ runtimeName: "react-native-fabric",
112
+ runtimeVersion: "0.88.1",
113
+ hostContractVersion: 1,
114
+ platform: "ios",
115
+ buildFingerprint: "ci/482:arm64",
116
+ updateFingerprint: "sha256:0123abcd",
117
+ },
118
+ });
119
+
120
+ mount(App, host, {
121
+ surface: { name: "main" },
122
+ ...(telemetry === undefined ? {} : { telemetry }),
123
+ });
124
+
125
+ const selectedCommit = timeline
126
+ .snapshot()
127
+ .operations.find((operation) => operation.name === "solid-native.commit");
128
+ const explanation =
129
+ selectedCommit === undefined
130
+ ? undefined
131
+ : timeline.explain(selectedCommit.operationId);
132
+
133
+ // A transport can send this JSON from Hermes to a local development client.
134
+ const payload = JSON.stringify(createCausalDebugSnapshot(timeline.snapshot()));
135
+
136
+ // The receiving debugger validates before inspecting the detached graph.
137
+ const received = parseCausalDebugSnapshot(JSON.parse(payload));
138
+ const detachedExplanation =
139
+ selectedCommit === undefined
140
+ ? undefined
141
+ : explainCausalTimelineSnapshot(received, selectedCommit.operationId);
142
+ const retainedGroups = groupCausalTimelineSnapshot(received);
143
+
144
+ // End any incomplete spans when the application telemetry lifetime ends.
145
+ sentry.close();
146
+ ```
147
+
148
+ `authorizedRelease` structurally accepts the CLI verifier's output as one
149
+ release identity. It rejects envelope-only evidence, malformed or additional
150
+ schema fields, partial trust-policy identity, a mismatched runtime platform,
151
+ and duplicated manual release fields. Project, release, channel, revision,
152
+ release/bundle/native/artifact fingerprints, signer identity, input evidence,
153
+ and trust-policy identity are copied once and attached after operation
154
+ attributes, so application spans cannot override them.
155
+
156
+ The observability package validates this boundary but does not authenticate
157
+ it. Use the object from a successful policy and build-input verification, not
158
+ an unsigned manifest or application-authored lookalike. The individual
159
+ release-lineage resource fields remain for non-production compatibility.
160
+
161
+ The OpenTelemetry path uses the same causal stream:
162
+
163
+ ```ts
164
+ import { trace } from "@opentelemetry/api";
165
+ import {
166
+ createCausalTelemetry,
167
+ createOpenTelemetryCausalExporter,
168
+ } from "@solidnative-dev/observability";
169
+
170
+ const openTelemetry = createOpenTelemetryCausalExporter({
171
+ tracer: trace.getTracer("@solidnative-dev/observability"),
172
+ });
173
+ const telemetry = createCausalTelemetry({ sink: openTelemetry.sink });
174
+
175
+ // Pass telemetry to mount(...), then close incomplete spans with its lifetime.
176
+ openTelemetry.close();
177
+ ```
178
+
179
+ Both adapters bound active spans and exported cause IDs, report duplicate,
180
+ dropped, orphaned, and truncated records through `snapshot()`, and close
181
+ unfinished spans as cancelled. Session selection belongs to the protocol
182
+ boundary; exporter-side sampling, transport, native crash capture, and SDK
183
+ initialization remain the application's vendor configuration.
184
+
185
+ See the [observability architecture](../../docs/observability.md) for privacy,
186
+ exporter, and native-timing boundaries.
@@ -0,0 +1,22 @@
1
+ import type { CausalTimelineSnapshot } from "./timeline.js";
2
+ export declare const CAUSAL_DEBUG_SNAPSHOT_KIND: "solid-native.causal-debug-snapshot";
3
+ export declare const CAUSAL_DEBUG_SNAPSHOT_SCHEMA_VERSION: 0;
4
+ export declare const CAUSAL_DEBUG_SNAPSHOT_MAX_OPERATIONS = 10000;
5
+ export declare const CAUSAL_DEBUG_SNAPSHOT_MAX_CAUSES = 256;
6
+ export declare const CAUSAL_DEBUG_SNAPSHOT_MAX_ATTRIBUTES = 128;
7
+ export declare const CAUSAL_DEBUG_SNAPSHOT_MAX_ATTRIBUTE_STRING_LENGTH = 2048;
8
+ export declare const CAUSAL_DEBUG_OPERATION_NAMES: readonly ("solid-native.command" | "solid-native.commit" | "solid-native.computation" | "solid-native.event" | "solid-native.frame" | "solid-native.measure" | "solid-native.mount" | "solid-native.owner" | "solid-native.surface" | "solid-native.task")[];
9
+ export interface CausalDebugSnapshot extends CausalTimelineSnapshot {
10
+ readonly kind: typeof CAUSAL_DEBUG_SNAPSHOT_KIND;
11
+ readonly schemaVersion: typeof CAUSAL_DEBUG_SNAPSHOT_SCHEMA_VERSION;
12
+ readonly capturedAt: number;
13
+ }
14
+ export interface CreateCausalDebugSnapshotOptions {
15
+ /** Epoch milliseconds. Defaults to `Date.now()`. */
16
+ readonly capturedAt?: number;
17
+ }
18
+ /** Validates an untrusted native development-client snapshot handoff. */
19
+ export declare function parseCausalDebugSnapshot(value: unknown): CausalDebugSnapshot;
20
+ /** Creates a portable, deeply frozen native development-client handoff. */
21
+ export declare function createCausalDebugSnapshot(snapshot: CausalTimelineSnapshot, options?: CreateCausalDebugSnapshotOptions): CausalDebugSnapshot;
22
+ //# sourceMappingURL=debug-snapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-snapshot.d.ts","sourceRoot":"","sources":["../src/debug-snapshot.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,0BAA0B,EACrC,oCAA6C,CAAC;AAChD,eAAO,MAAM,oCAAoC,EAAG,CAAU,CAAC;AAC/D,eAAO,MAAM,oCAAoC,QAAS,CAAC;AAC3D,eAAO,MAAM,gCAAgC,MAAM,CAAC;AACpD,eAAO,MAAM,oCAAoC,MAAM,CAAC;AACxD,eAAO,MAAM,iDAAiD,OAAQ,CAAC;AACvE,eAAO,MAAM,4BAA4B,8PAWE,CAAC;AAE5C,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IACjE,QAAQ,CAAC,IAAI,EAAE,OAAO,0BAA0B,CAAC;IACjD,QAAQ,CAAC,aAAa,EAAE,OAAO,oCAAoC,CAAC;IACpE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,gCAAgC;IAC/C,oDAAoD;IACpD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AA0MD,yEAAyE;AACzE,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB,CAgE5E;AAED,2EAA2E;AAC3E,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,sBAAsB,EAChC,OAAO,GAAE,gCAAqC,GAC7C,mBAAmB,CAUrB"}
@@ -0,0 +1,221 @@
1
+ export const CAUSAL_DEBUG_SNAPSHOT_KIND = "solid-native.causal-debug-snapshot";
2
+ export const CAUSAL_DEBUG_SNAPSHOT_SCHEMA_VERSION = 0;
3
+ export const CAUSAL_DEBUG_SNAPSHOT_MAX_OPERATIONS = 10_000;
4
+ export const CAUSAL_DEBUG_SNAPSHOT_MAX_CAUSES = 256;
5
+ export const CAUSAL_DEBUG_SNAPSHOT_MAX_ATTRIBUTES = 128;
6
+ export const CAUSAL_DEBUG_SNAPSHOT_MAX_ATTRIBUTE_STRING_LENGTH = 2_048;
7
+ export const CAUSAL_DEBUG_OPERATION_NAMES = Object.freeze([
8
+ "solid-native.command",
9
+ "solid-native.commit",
10
+ "solid-native.computation",
11
+ "solid-native.event",
12
+ "solid-native.frame",
13
+ "solid-native.measure",
14
+ "solid-native.mount",
15
+ "solid-native.owner",
16
+ "solid-native.surface",
17
+ "solid-native.task",
18
+ ]);
19
+ const OPERATION_NAMES = new Set(CAUSAL_DEBUG_OPERATION_NAMES);
20
+ const FINISH_STATUSES = new Set(["ok", "error", "cancelled"]);
21
+ const BASE_OPERATION_KEYS = new Set([
22
+ "operationId",
23
+ "name",
24
+ "causes",
25
+ "startedAt",
26
+ "startAttributes",
27
+ ]);
28
+ const FINISHED_OPERATION_KEYS = new Set([
29
+ ...BASE_OPERATION_KEYS,
30
+ "finishedAt",
31
+ "duration",
32
+ "status",
33
+ "finishAttributes",
34
+ ]);
35
+ const SNAPSHOT_KEYS = new Set([
36
+ "kind",
37
+ "schemaVersion",
38
+ "capturedAt",
39
+ "operations",
40
+ "activeOperationCount",
41
+ "evictedOperationCount",
42
+ "discardedRecordCount",
43
+ ]);
44
+ function record(value, path) {
45
+ if (typeof value !== "object" || value === null || Array.isArray(value)) {
46
+ throw new TypeError(`${path} must be an object.`);
47
+ }
48
+ const prototype = Object.getPrototypeOf(value);
49
+ if (prototype !== Object.prototype && prototype !== null) {
50
+ throw new TypeError(`${path} must be a plain object.`);
51
+ }
52
+ return value;
53
+ }
54
+ function exactKeys(value, allowed, path) {
55
+ for (const key of Object.keys(value)) {
56
+ if (!allowed.has(key)) {
57
+ throw new TypeError(`${path} contains unknown field ${JSON.stringify(key)}.`);
58
+ }
59
+ }
60
+ for (const key of allowed) {
61
+ if (!Object.hasOwn(value, key)) {
62
+ throw new TypeError(`${path} is missing field ${JSON.stringify(key)}.`);
63
+ }
64
+ }
65
+ }
66
+ function finiteNumber(value, path) {
67
+ if (typeof value !== "number" || !Number.isFinite(value)) {
68
+ throw new TypeError(`${path} must be a finite number.`);
69
+ }
70
+ return value;
71
+ }
72
+ function nonNegativeInteger(value, path) {
73
+ if (!Number.isSafeInteger(value) || value < 0) {
74
+ throw new TypeError(`${path} must be a non-negative safe integer.`);
75
+ }
76
+ return value;
77
+ }
78
+ function operationId(value, path) {
79
+ if (typeof value !== "string" ||
80
+ value.length === 0 ||
81
+ value.length > 128 ||
82
+ value.includes("\0")) {
83
+ throw new TypeError(`${path} must contain 1-128 characters without null bytes.`);
84
+ }
85
+ return value;
86
+ }
87
+ function operationName(value, path) {
88
+ if (typeof value !== "string" ||
89
+ !OPERATION_NAMES.has(value)) {
90
+ throw new TypeError(`${path} is not a supported causal operation name.`);
91
+ }
92
+ return value;
93
+ }
94
+ function attributes(value, path) {
95
+ const input = record(value, path);
96
+ const keys = Object.keys(input);
97
+ if (keys.length > CAUSAL_DEBUG_SNAPSHOT_MAX_ATTRIBUTES) {
98
+ throw new RangeError(`${path} exceeds ${CAUSAL_DEBUG_SNAPSHOT_MAX_ATTRIBUTES} attributes.`);
99
+ }
100
+ const output = {};
101
+ for (const key of keys) {
102
+ if (key.length === 0 || key.length > 128 || key.includes("\0")) {
103
+ throw new TypeError(`${path} attribute names must contain 1-128 characters without null bytes.`);
104
+ }
105
+ const item = input[key];
106
+ if (typeof item === "number") {
107
+ output[key] = finiteNumber(item, `${path}.${key}`);
108
+ continue;
109
+ }
110
+ if (typeof item === "boolean") {
111
+ output[key] = item;
112
+ continue;
113
+ }
114
+ if (typeof item !== "string" ||
115
+ item.length > CAUSAL_DEBUG_SNAPSHOT_MAX_ATTRIBUTE_STRING_LENGTH) {
116
+ throw new TypeError(`${path}.${key} must be a boolean, finite number, or string of at most ${CAUSAL_DEBUG_SNAPSHOT_MAX_ATTRIBUTE_STRING_LENGTH} characters.`);
117
+ }
118
+ output[key] = item;
119
+ }
120
+ return Object.freeze(output);
121
+ }
122
+ function causes(value, path) {
123
+ if (!Array.isArray(value))
124
+ throw new TypeError(`${path} must be an array.`);
125
+ if (value.length > CAUSAL_DEBUG_SNAPSHOT_MAX_CAUSES) {
126
+ throw new RangeError(`${path} exceeds ${CAUSAL_DEBUG_SNAPSHOT_MAX_CAUSES} cause IDs.`);
127
+ }
128
+ const output = value.map((item, index) => operationId(item, `${path}[${index}]`));
129
+ if (new Set(output).size !== output.length) {
130
+ throw new TypeError(`${path} must not contain duplicate cause IDs.`);
131
+ }
132
+ return Object.freeze(output);
133
+ }
134
+ function parseOperation(value, index) {
135
+ const path = `causal debug snapshot operations[${index}]`;
136
+ const input = record(value, path);
137
+ const hasFinishField = [
138
+ "finishedAt",
139
+ "duration",
140
+ "status",
141
+ "finishAttributes",
142
+ ].some((key) => Object.hasOwn(input, key));
143
+ exactKeys(input, hasFinishField ? FINISHED_OPERATION_KEYS : BASE_OPERATION_KEYS, path);
144
+ const base = {
145
+ operationId: operationId(input.operationId, `${path}.operationId`),
146
+ name: operationName(input.name, `${path}.name`),
147
+ causes: causes(input.causes, `${path}.causes`),
148
+ startedAt: finiteNumber(input.startedAt, `${path}.startedAt`),
149
+ startAttributes: attributes(input.startAttributes, `${path}.startAttributes`),
150
+ };
151
+ if (!hasFinishField)
152
+ return Object.freeze(base);
153
+ const duration = finiteNumber(input.duration, `${path}.duration`);
154
+ if (duration < 0) {
155
+ throw new TypeError(`${path}.duration must be non-negative.`);
156
+ }
157
+ if (typeof input.status !== "string" ||
158
+ !FINISH_STATUSES.has(input.status)) {
159
+ throw new TypeError(`${path}.status is invalid.`);
160
+ }
161
+ return Object.freeze({
162
+ ...base,
163
+ finishedAt: finiteNumber(input.finishedAt, `${path}.finishedAt`),
164
+ duration,
165
+ status: input.status,
166
+ finishAttributes: attributes(input.finishAttributes, `${path}.finishAttributes`),
167
+ });
168
+ }
169
+ /** Validates an untrusted native development-client snapshot handoff. */
170
+ export function parseCausalDebugSnapshot(value) {
171
+ const input = record(value, "causal debug snapshot");
172
+ exactKeys(input, SNAPSHOT_KEYS, "causal debug snapshot");
173
+ if (input.kind !== CAUSAL_DEBUG_SNAPSHOT_KIND) {
174
+ throw new TypeError("The causal debug snapshot kind is invalid.");
175
+ }
176
+ if (input.schemaVersion !== CAUSAL_DEBUG_SNAPSHOT_SCHEMA_VERSION) {
177
+ throw new TypeError("The causal debug snapshot schema version is unsupported.");
178
+ }
179
+ const capturedAt = finiteNumber(input.capturedAt, "causal debug snapshot capturedAt");
180
+ if (capturedAt < 0) {
181
+ throw new TypeError("The causal debug snapshot capturedAt must be non-negative.");
182
+ }
183
+ if (!Array.isArray(input.operations)) {
184
+ throw new TypeError("The causal debug snapshot operations must be an array.");
185
+ }
186
+ if (input.operations.length > CAUSAL_DEBUG_SNAPSHOT_MAX_OPERATIONS) {
187
+ throw new RangeError(`The causal debug snapshot exceeds ${CAUSAL_DEBUG_SNAPSHOT_MAX_OPERATIONS} operations.`);
188
+ }
189
+ const operations = input.operations.map(parseOperation);
190
+ const operationIds = operations.map((operation) => operation.operationId);
191
+ if (new Set(operationIds).size !== operationIds.length) {
192
+ throw new TypeError("The causal debug snapshot contains duplicate operation IDs.");
193
+ }
194
+ const activeOperationCount = nonNegativeInteger(input.activeOperationCount, "causal debug snapshot activeOperationCount");
195
+ const actualActiveOperationCount = operations.filter((operation) => operation.finishedAt === undefined).length;
196
+ if (activeOperationCount !== actualActiveOperationCount) {
197
+ throw new TypeError("The causal debug snapshot activeOperationCount does not match its operations.");
198
+ }
199
+ return Object.freeze({
200
+ kind: CAUSAL_DEBUG_SNAPSHOT_KIND,
201
+ schemaVersion: CAUSAL_DEBUG_SNAPSHOT_SCHEMA_VERSION,
202
+ capturedAt,
203
+ operations: Object.freeze(operations),
204
+ activeOperationCount,
205
+ evictedOperationCount: nonNegativeInteger(input.evictedOperationCount, "causal debug snapshot evictedOperationCount"),
206
+ discardedRecordCount: nonNegativeInteger(input.discardedRecordCount, "causal debug snapshot discardedRecordCount"),
207
+ });
208
+ }
209
+ /** Creates a portable, deeply frozen native development-client handoff. */
210
+ export function createCausalDebugSnapshot(snapshot, options = {}) {
211
+ return parseCausalDebugSnapshot({
212
+ kind: CAUSAL_DEBUG_SNAPSHOT_KIND,
213
+ schemaVersion: CAUSAL_DEBUG_SNAPSHOT_SCHEMA_VERSION,
214
+ capturedAt: options.capturedAt ?? Date.now(),
215
+ operations: snapshot.operations,
216
+ activeOperationCount: snapshot.activeOperationCount,
217
+ evictedOperationCount: snapshot.evictedOperationCount,
218
+ discardedRecordCount: snapshot.discardedRecordCount,
219
+ });
220
+ }
221
+ //# sourceMappingURL=debug-snapshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-snapshot.js","sourceRoot":"","sources":["../src/debug-snapshot.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,0BAA0B,GACrC,oCAA6C,CAAC;AAChD,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAU,CAAC;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C,oBAAoB,EAC1B,4CAA4C,CAC7C;KACF,CAAC,CAAC;AACL,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,yBAAyB,CACvC,QAAgC,EAChC,UAA4C,EAAE;IAE9C,OAAO,wBAAwB,CAAC;QAC9B,IAAI,EAAE,0BAA0B;QAChC,aAAa,EAAE,oCAAoC;QACnD,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,EAAE;QAC5C,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,oBAAoB,EAAE,QAAQ,CAAC,oBAAoB;QACnD,qBAAqB,EAAE,QAAQ,CAAC,qBAAqB;QACrD,oBAAoB,EAAE,QAAQ,CAAC,oBAAoB;KACpD,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,46 @@
1
+ export declare const NATIVE_SOLID_DIAGNOSTICS_CORRELATION_KIND: "solid-native.solid-diagnostics-correlation";
2
+ export declare const NATIVE_SOLID_DIAGNOSTICS_CORRELATION_SCHEMA_VERSION: 0;
3
+ export declare const NATIVE_SOLID_DIAGNOSTICS_CORRELATION_MODE: "static-name-and-capture-window";
4
+ export declare const NATIVE_SOLID_DIAGNOSTICS_CORRELATION_WINDOW_TOLERANCE_MS = 250;
5
+ export interface NativeSolidDiagnosticsCorrelatedOutput {
6
+ readonly name: string;
7
+ readonly rerunCount: number;
8
+ readonly changedRerunCount: number;
9
+ readonly causeNames: readonly string[];
10
+ readonly nativeComputationOperationIds: readonly string[];
11
+ readonly nativeCommitOperationIds: readonly string[];
12
+ readonly nativeMountOperationIds: readonly string[];
13
+ readonly nativeFrameOperationIds: readonly string[];
14
+ readonly completeNativeFrameChainCount: number;
15
+ }
16
+ export interface NativeSolidDiagnosticsCorrelation {
17
+ readonly schemaVersion: typeof NATIVE_SOLID_DIAGNOSTICS_CORRELATION_SCHEMA_VERSION;
18
+ readonly kind: typeof NATIVE_SOLID_DIAGNOSTICS_CORRELATION_KIND;
19
+ readonly correlationMode: typeof NATIVE_SOLID_DIAGNOSTICS_CORRELATION_MODE;
20
+ readonly exactPerRerunJoin: false;
21
+ readonly diagnosticsCapturedAt: string;
22
+ readonly diagnosticsDurationMilliseconds: number;
23
+ readonly captureWindowStartedAt: number;
24
+ readonly captureWindowFinishedAt: number;
25
+ readonly causalSnapshotCapturedAt: number;
26
+ readonly captureWindowFullyObserved: boolean;
27
+ readonly causalEvictedOperationCount: number;
28
+ readonly causalDiscardedRecordCount: number;
29
+ readonly rerunCount: number;
30
+ readonly namedEffectRerunCount: number;
31
+ readonly correlatedOutputCount: number;
32
+ readonly completeOutputCount: number;
33
+ readonly unmatchedOutputNames: readonly string[];
34
+ readonly outputs: readonly NativeSolidDiagnosticsCorrelatedOutput[];
35
+ }
36
+ export interface CorrelateNativeSolidDiagnosticsOptions {
37
+ readonly windowToleranceMilliseconds?: number;
38
+ }
39
+ /**
40
+ * Correlates Solid's value-free attribution output with native causal work by
41
+ * stable computation name and a bounded wall-clock window. Solid does not yet
42
+ * expose a per-rerun correlation token, so this result deliberately never
43
+ * claims an exact one-to-one rerun join.
44
+ */
45
+ export declare function correlateNativeSolidDiagnostics(diagnosticsValue: unknown, snapshotValue: unknown, options?: CorrelateNativeSolidDiagnosticsOptions): NativeSolidDiagnosticsCorrelation;
46
+ //# sourceMappingURL=diagnostics-correlation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnostics-correlation.d.ts","sourceRoot":"","sources":["../src/diagnostics-correlation.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,yCAAyC,EACpD,4CAAqD,CAAC;AACxD,eAAO,MAAM,mDAAmD,EAAG,CAAU,CAAC;AAC9E,eAAO,MAAM,yCAAyC,EACpD,gCAAyC,CAAC;AAC5C,eAAO,MAAM,wDAAwD,MAAM,CAAC;AAE5E,MAAM,WAAW,sCAAsC;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CA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