agentfootprint 18.1.1 → 18.2.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/CAPABILITIES.md +7 -3
- package/README.md +3 -3
- package/dist/artifacts/fileArtifacts.js +1 -0
- package/dist/artifacts/fileArtifacts.js.map +1 -1
- package/dist/artifacts/gcsArtifacts.js +1 -0
- package/dist/artifacts/gcsArtifacts.js.map +1 -1
- package/dist/artifacts/inMemoryArtifacts.js +1 -0
- package/dist/artifacts/inMemoryArtifacts.js.map +1 -1
- package/dist/artifacts/index.js +4 -1
- package/dist/artifacts/index.js.map +1 -1
- package/dist/artifacts/recordingArtifact.js +18 -1
- package/dist/artifacts/recordingArtifact.js.map +1 -1
- package/dist/artifacts/retention.js +23 -1
- package/dist/artifacts/retention.js.map +1 -1
- package/dist/artifacts/s3Artifacts.js +5 -6
- package/dist/artifacts/s3Artifacts.js.map +1 -1
- package/dist/artifacts/sqliteArtifacts.js +1 -0
- package/dist/artifacts/sqliteArtifacts.js.map +1 -1
- package/dist/artifacts/types.js +5 -0
- package/dist/artifacts/types.js.map +1 -1
- package/dist/context-bisect/trajectory.js +3 -0
- package/dist/context-bisect/trajectory.js.map +1 -1
- package/dist/core/agent/runtime/configuration/configure.js +2 -0
- package/dist/core/agent/runtime/configuration/configure.js.map +1 -1
- package/dist/core/agent/runtime/recording/recording.js +69 -17
- package/dist/core/agent/runtime/recording/recording.js.map +1 -1
- package/dist/esm/artifacts/conformance/types.d.ts +3 -2
- package/dist/esm/artifacts/fileArtifacts.js +2 -1
- package/dist/esm/artifacts/fileArtifacts.js.map +1 -1
- package/dist/esm/artifacts/gcsArtifacts.js +2 -1
- package/dist/esm/artifacts/gcsArtifacts.js.map +1 -1
- package/dist/esm/artifacts/inMemoryArtifacts.js +2 -1
- package/dist/esm/artifacts/inMemoryArtifacts.js.map +1 -1
- package/dist/esm/artifacts/index.d.ts +2 -2
- package/dist/esm/artifacts/index.js +1 -1
- package/dist/esm/artifacts/index.js.map +1 -1
- package/dist/esm/artifacts/recordingArtifact.d.ts +17 -0
- package/dist/esm/artifacts/recordingArtifact.js +17 -0
- package/dist/esm/artifacts/recordingArtifact.js.map +1 -1
- package/dist/esm/artifacts/retention.d.ts +9 -1
- package/dist/esm/artifacts/retention.js +20 -0
- package/dist/esm/artifacts/retention.js.map +1 -1
- package/dist/esm/artifacts/s3Artifacts.js +6 -7
- package/dist/esm/artifacts/s3Artifacts.js.map +1 -1
- package/dist/esm/artifacts/sqliteArtifacts.js +2 -1
- package/dist/esm/artifacts/sqliteArtifacts.js.map +1 -1
- package/dist/esm/artifacts/types.d.ts +19 -0
- package/dist/esm/artifacts/types.js +5 -0
- package/dist/esm/artifacts/types.js.map +1 -1
- package/dist/esm/context-bisect/trajectory.d.ts +3 -0
- package/dist/esm/context-bisect/trajectory.js +3 -0
- package/dist/esm/context-bisect/trajectory.js.map +1 -1
- package/dist/esm/context-ledger/types.d.ts +3 -1
- package/dist/esm/core/agent/runtime/configuration/configure.js +2 -0
- package/dist/esm/core/agent/runtime/configuration/configure.js.map +1 -1
- package/dist/esm/core/agent/runtime/recording/recording.js +69 -17
- package/dist/esm/core/agent/runtime/recording/recording.js.map +1 -1
- package/dist/esm/core/agent/types/artifacts.d.ts +38 -0
- package/dist/esm/hosting/answerAccounts.d.ts +2 -0
- package/dist/esm/hosting/answerAccounts.js +3 -0
- package/dist/esm/hosting/answerAccounts.js.map +1 -1
- package/dist/esm/hosting/standingAgent/artifacts/accountParts.d.ts +64 -0
- package/dist/esm/hosting/standingAgent/artifacts/accountParts.js +88 -0
- package/dist/esm/hosting/standingAgent/artifacts/accountParts.js.map +1 -0
- package/dist/esm/hosting/standingAgent/artifacts/wire.js +18 -2
- package/dist/esm/hosting/standingAgent/artifacts/wire.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +2 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/observe.d.ts +1 -0
- package/dist/esm/observe.js +3 -0
- package/dist/esm/observe.js.map +1 -1
- package/dist/esm/recorders/observability/recordingParts/file.d.ts +74 -0
- package/dist/esm/recorders/observability/recordingParts/file.js +215 -0
- package/dist/esm/recorders/observability/recordingParts/file.js.map +1 -0
- package/dist/esm/recorders/observability/recordingParts/format.d.ts +124 -0
- package/dist/esm/recorders/observability/recordingParts/format.js +294 -0
- package/dist/esm/recorders/observability/recordingParts/format.js.map +1 -0
- package/dist/esm/recorders/observability/recordingParts/invocations.d.ts +55 -0
- package/dist/esm/recorders/observability/recordingParts/invocations.js +226 -0
- package/dist/esm/recorders/observability/recordingParts/invocations.js.map +1 -0
- package/dist/esm/recorders/observability/recordingParts/open.d.ts +170 -0
- package/dist/esm/recorders/observability/recordingParts/open.js +275 -0
- package/dist/esm/recorders/observability/recordingParts/open.js.map +1 -0
- package/dist/esm/recorders/observability/recordingParts/packing.d.ts +18 -0
- package/dist/esm/recorders/observability/recordingParts/packing.js +23 -0
- package/dist/esm/recorders/observability/recordingParts/packing.js.map +1 -0
- package/dist/esm/recorders/observability/recordingParts/partReader.d.ts +45 -0
- package/dist/esm/recorders/observability/recordingParts/partReader.js +188 -0
- package/dist/esm/recorders/observability/recordingParts/partReader.js.map +1 -0
- package/dist/esm/recorders/observability/recordingParts/source.d.ts +58 -0
- package/dist/esm/recorders/observability/recordingParts/source.js +120 -0
- package/dist/esm/recorders/observability/recordingParts/source.js.map +1 -0
- package/dist/esm/recorders/observability/recordingParts/split.d.ts +74 -0
- package/dist/esm/recorders/observability/recordingParts/split.js +316 -0
- package/dist/esm/recorders/observability/recordingParts/split.js.map +1 -0
- package/dist/esm/recorders/observability/recordingParts/splitError.d.ts +17 -0
- package/dist/esm/recorders/observability/recordingParts/splitError.js +27 -0
- package/dist/esm/recorders/observability/recordingParts/splitError.js.map +1 -0
- package/dist/esm/time-travel/epochs.d.ts +3 -0
- package/dist/esm/time-travel/epochs.js +3 -0
- package/dist/esm/time-travel/epochs.js.map +1 -1
- package/dist/esm/trace-toolpack/openRecording.d.ts +3 -0
- package/dist/esm/trace-toolpack/openRecording.js +3 -0
- package/dist/esm/trace-toolpack/openRecording.js.map +1 -1
- package/dist/hosting/answerAccounts.js +3 -0
- package/dist/hosting/answerAccounts.js.map +1 -1
- package/dist/hosting/standingAgent/artifacts/accountParts.js +92 -0
- package/dist/hosting/standingAgent/artifacts/accountParts.js.map +1 -0
- package/dist/hosting/standingAgent/artifacts/wire.js +17 -1
- package/dist/hosting/standingAgent/artifacts/wire.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/observe.js +6 -2
- package/dist/observe.js.map +1 -1
- package/dist/recorders/observability/recordingParts/file.js +219 -0
- package/dist/recorders/observability/recordingParts/file.js.map +1 -0
- package/dist/recorders/observability/recordingParts/format.js +304 -0
- package/dist/recorders/observability/recordingParts/format.js.map +1 -0
- package/dist/recorders/observability/recordingParts/invocations.js +230 -0
- package/dist/recorders/observability/recordingParts/invocations.js.map +1 -0
- package/dist/recorders/observability/recordingParts/open.js +279 -0
- package/dist/recorders/observability/recordingParts/open.js.map +1 -0
- package/dist/recorders/observability/recordingParts/packing.js +28 -0
- package/dist/recorders/observability/recordingParts/packing.js.map +1 -0
- package/dist/recorders/observability/recordingParts/partReader.js +192 -0
- package/dist/recorders/observability/recordingParts/partReader.js.map +1 -0
- package/dist/recorders/observability/recordingParts/source.js +126 -0
- package/dist/recorders/observability/recordingParts/source.js.map +1 -0
- package/dist/recorders/observability/recordingParts/split.js +322 -0
- package/dist/recorders/observability/recordingParts/split.js.map +1 -0
- package/dist/recorders/observability/recordingParts/splitError.js +31 -0
- package/dist/recorders/observability/recordingParts/splitError.js.map +1 -0
- package/dist/time-travel/epochs.js +3 -0
- package/dist/time-travel/epochs.js.map +1 -1
- package/dist/trace-toolpack/openRecording.js +3 -0
- package/dist/trace-toolpack/openRecording.js.map +1 -1
- package/dist/types/artifacts/conformance/types.d.ts +3 -2
- package/dist/types/artifacts/conformance/types.d.ts.map +1 -1
- package/dist/types/artifacts/fileArtifacts.d.ts.map +1 -1
- package/dist/types/artifacts/gcsArtifacts.d.ts.map +1 -1
- package/dist/types/artifacts/inMemoryArtifacts.d.ts.map +1 -1
- package/dist/types/artifacts/index.d.ts +2 -2
- package/dist/types/artifacts/index.d.ts.map +1 -1
- package/dist/types/artifacts/recordingArtifact.d.ts +17 -0
- package/dist/types/artifacts/recordingArtifact.d.ts.map +1 -1
- package/dist/types/artifacts/retention.d.ts +9 -1
- package/dist/types/artifacts/retention.d.ts.map +1 -1
- package/dist/types/artifacts/s3Artifacts.d.ts.map +1 -1
- package/dist/types/artifacts/sqliteArtifacts.d.ts.map +1 -1
- package/dist/types/artifacts/types.d.ts +19 -0
- package/dist/types/artifacts/types.d.ts.map +1 -1
- package/dist/types/context-bisect/trajectory.d.ts +3 -0
- package/dist/types/context-bisect/trajectory.d.ts.map +1 -1
- package/dist/types/context-ledger/types.d.ts +3 -1
- package/dist/types/context-ledger/types.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/configuration/configure.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/recording/recording.d.ts.map +1 -1
- package/dist/types/core/agent/types/artifacts.d.ts +38 -0
- package/dist/types/core/agent/types/artifacts.d.ts.map +1 -1
- package/dist/types/hosting/answerAccounts.d.ts +2 -0
- package/dist/types/hosting/answerAccounts.d.ts.map +1 -1
- package/dist/types/hosting/standingAgent/artifacts/accountParts.d.ts +65 -0
- package/dist/types/hosting/standingAgent/artifacts/accountParts.d.ts.map +1 -0
- package/dist/types/hosting/standingAgent/artifacts/wire.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/observe.d.ts +1 -0
- package/dist/types/observe.d.ts.map +1 -1
- package/dist/types/recorders/observability/recordingParts/file.d.ts +75 -0
- package/dist/types/recorders/observability/recordingParts/file.d.ts.map +1 -0
- package/dist/types/recorders/observability/recordingParts/format.d.ts +125 -0
- package/dist/types/recorders/observability/recordingParts/format.d.ts.map +1 -0
- package/dist/types/recorders/observability/recordingParts/invocations.d.ts +56 -0
- package/dist/types/recorders/observability/recordingParts/invocations.d.ts.map +1 -0
- package/dist/types/recorders/observability/recordingParts/open.d.ts +171 -0
- package/dist/types/recorders/observability/recordingParts/open.d.ts.map +1 -0
- package/dist/types/recorders/observability/recordingParts/packing.d.ts +19 -0
- package/dist/types/recorders/observability/recordingParts/packing.d.ts.map +1 -0
- package/dist/types/recorders/observability/recordingParts/partReader.d.ts +46 -0
- package/dist/types/recorders/observability/recordingParts/partReader.d.ts.map +1 -0
- package/dist/types/recorders/observability/recordingParts/source.d.ts +59 -0
- package/dist/types/recorders/observability/recordingParts/source.d.ts.map +1 -0
- package/dist/types/recorders/observability/recordingParts/split.d.ts +75 -0
- package/dist/types/recorders/observability/recordingParts/split.d.ts.map +1 -0
- package/dist/types/recorders/observability/recordingParts/splitError.d.ts +18 -0
- package/dist/types/recorders/observability/recordingParts/splitError.d.ts.map +1 -0
- package/dist/types/time-travel/epochs.d.ts +3 -0
- package/dist/types/time-travel/epochs.d.ts.map +1 -1
- package/dist/types/trace-toolpack/openRecording.d.ts +3 -0
- package/dist/types/trace-toolpack/openRecording.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* recordingParts/file — store one recording in parts: every part first, the
|
|
3
|
+
* index last, so no reader ever sees an index whose parts were never written.
|
|
4
|
+
*
|
|
5
|
+
* Role: Adapter. Drives an `ArtifactStore` through the cut (`split.ts`):
|
|
6
|
+
* `put` for each part, in order, then the index; `delete` to undo a
|
|
7
|
+
* filing that could not finish. Emits nothing itself: it returns what
|
|
8
|
+
* happened (what was minted, what retention swept, why it stopped), and
|
|
9
|
+
* the caller puts those facts on the record.
|
|
10
|
+
* Reads: the recording it is handed.
|
|
11
|
+
* Emits: N/A.
|
|
12
|
+
*
|
|
13
|
+
* ── When it stops ───────────────────────────────────────────────────────────
|
|
14
|
+
* • the cut refuses the recording (`RecordingSplitError`);
|
|
15
|
+
* • the store states a budget (`ArtifactStore.scopeBudget`) that the parts
|
|
16
|
+
* and the index together exceed — decided before the first put, so no put,
|
|
17
|
+
* no sweep and no delete happens;
|
|
18
|
+
* • the store refuses a put;
|
|
19
|
+
* • a put's ticket disagrees with the writer's own byte count or digest —
|
|
20
|
+
* the store did not keep what it was given;
|
|
21
|
+
* • a put's sweep names a part THIS recording already wrote — the scope is
|
|
22
|
+
* too small to hold the whole recording, and an index naming an evicted
|
|
23
|
+
* part would serve less than it promises.
|
|
24
|
+
* Then everything already written is deleted (best effort) and no index is
|
|
25
|
+
* written. A part a delete could not remove is counted, never hidden: it is
|
|
26
|
+
* left to the store's retention.
|
|
27
|
+
*
|
|
28
|
+
* ── Why delete rather than leave it to eviction ─────────────────────────────
|
|
29
|
+
* An orphan part counts against the scope's byte and count budgets, and under
|
|
30
|
+
* least-recently-used eviction the orphans are not the first to go: other live
|
|
31
|
+
* artifacts of the same conversation would be evicted to make room for parts
|
|
32
|
+
* no reader can address.
|
|
33
|
+
*/
|
|
34
|
+
import type { ArtifactMeta, ArtifactScope, ArtifactStore, SweptArtifact } from '../../../artifacts/types.js';
|
|
35
|
+
/** Why a filing stopped. */
|
|
36
|
+
export type RecordingPartsRefusal = 'not-split' | 'store-refused' | 'store-mismatch' | 'evicted-own-part' | 'would-not-fit' | 'unexpected';
|
|
37
|
+
/** What filing a recording in parts did. */
|
|
38
|
+
export type FiledRecordingParts = {
|
|
39
|
+
readonly status: 'filed';
|
|
40
|
+
/** The index: the one artifact a receipt names. */
|
|
41
|
+
readonly index: ArtifactMeta;
|
|
42
|
+
/** Every part, the base first, in the order written. */
|
|
43
|
+
readonly parts: readonly ArtifactMeta[];
|
|
44
|
+
readonly swept: readonly SweptArtifact[];
|
|
45
|
+
} | {
|
|
46
|
+
readonly status: 'refused';
|
|
47
|
+
readonly reason: RecordingPartsRefusal;
|
|
48
|
+
/** A fixed sentence with counts only: no key, ref, label or value. */
|
|
49
|
+
readonly detail: string;
|
|
50
|
+
readonly swept: readonly SweptArtifact[];
|
|
51
|
+
/** Parts written and then deleted. */
|
|
52
|
+
readonly removed: number;
|
|
53
|
+
/** Parts written that a delete could not remove (left to retention). */
|
|
54
|
+
readonly left: number;
|
|
55
|
+
};
|
|
56
|
+
/** What a filing needs beyond the recording. */
|
|
57
|
+
export interface FileRecordingPartsOptions {
|
|
58
|
+
/** The run the recording is of: stamped on every part's `origin.runId` and in every payload. */
|
|
59
|
+
readonly runId?: string;
|
|
60
|
+
/** The operator's label, verbatim on every part; absent, `run <runId>`. */
|
|
61
|
+
readonly label?: string;
|
|
62
|
+
/** Pack each part on its own. */
|
|
63
|
+
readonly packed?: boolean;
|
|
64
|
+
/** @internal The part size target; the default is the one every filing uses. */
|
|
65
|
+
readonly targetBytes?: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Store `recording` in parts in `scope`: the base part, each invocation part
|
|
69
|
+
* in order, then the index. Never throws: every failure is the `refused`
|
|
70
|
+
* result, with what was written already undone.
|
|
71
|
+
*/
|
|
72
|
+
export declare function fileRecordingParts(store: ArtifactStore, scope: ArtifactScope, recording: unknown, options?: FileRecordingPartsOptions): Promise<FiledRecordingParts>;
|
|
73
|
+
/** The sentence a store without `scopeBudget` gets, once per instance, in dev mode. */
|
|
74
|
+
export declare const NO_BUDGET_WARNING: string;
|
|
75
|
+
//# sourceMappingURL=file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/recordingParts/file.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAUH,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,aAAa,EAEb,aAAa,EACd,MAAM,6BAA6B,CAAC;AAKrC,4BAA4B;AAC5B,MAAM,MAAM,qBAAqB,GAC7B,WAAW,GACX,eAAe,GACf,gBAAgB,GAChB,kB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/**
|
|
2
|
+
* recordingParts/format — the stored shape of a recording saved in parts, and
|
|
3
|
+
* the one check that admits an index read back from a store.
|
|
4
|
+
*
|
|
5
|
+
* Role: Codec. Names the formats, the limits and the index's fields; admits
|
|
6
|
+
* an untrusted index (`readRecordingIndex`) or refuses it whole.
|
|
7
|
+
* Reads: its argument.
|
|
8
|
+
* Emits: N/A.
|
|
9
|
+
*
|
|
10
|
+
* The index is the one artifact a receipt names. It carries no recorded value:
|
|
11
|
+
* refs, byte lengths and SHA-256 digests of every part, every invocation's
|
|
12
|
+
* address and the part that holds it, and the aliases. Everything a reader
|
|
13
|
+
* decides before reading bytes is decided from it, so everything in it is
|
|
14
|
+
* checked here before anything else trusts it.
|
|
15
|
+
*/
|
|
16
|
+
/** The format marker of an index. */
|
|
17
|
+
export declare const RECORDING_INDEX_FORMAT = "agentfootprint.recording.index.v1";
|
|
18
|
+
/** The format marker of a part (the base part and every invocation part). */
|
|
19
|
+
export declare const RECORDING_PART_FORMAT = "agentfootprint.recording.part.v1";
|
|
20
|
+
/**
|
|
21
|
+
* The size a part is filled to: 1 MiB of JSON text. A part holds whole
|
|
22
|
+
* results only, so one result bigger than this is a part of its own.
|
|
23
|
+
*/
|
|
24
|
+
export declare const RECORDING_PART_TARGET_BYTES: number;
|
|
25
|
+
/**
|
|
26
|
+
* The bounds of an index. The counts and path bounds equal the ones the lazy
|
|
27
|
+
* viewer applies to a whole recording, so a recording the viewer would refuse
|
|
28
|
+
* as too big is not split into one it cannot open either.
|
|
29
|
+
*/
|
|
30
|
+
export declare const RECORDING_PARTS_LIMITS: Readonly<{
|
|
31
|
+
invocations: 4096;
|
|
32
|
+
parts: 4096;
|
|
33
|
+
indexBytes: number;
|
|
34
|
+
pathSegments: 128;
|
|
35
|
+
pathChars: 8192;
|
|
36
|
+
nameChars: 4096;
|
|
37
|
+
/** Tree nodes and result entries one walk may visit. */
|
|
38
|
+
visits: 200000;
|
|
39
|
+
}>;
|
|
40
|
+
/** One stored artifact, as the index names it. */
|
|
41
|
+
export interface StoredPartEntry {
|
|
42
|
+
readonly ref: string;
|
|
43
|
+
/** UTF-8 bytes of the stored JSON text. */
|
|
44
|
+
readonly bytes: number;
|
|
45
|
+
/** `sha-256:<hex>` over those bytes, the store's own spelling. */
|
|
46
|
+
readonly digest: string;
|
|
47
|
+
}
|
|
48
|
+
/** One invocation part: the stored artifact and how many results it holds. */
|
|
49
|
+
export interface IndexPartEntry extends StoredPartEntry {
|
|
50
|
+
readonly results: number;
|
|
51
|
+
}
|
|
52
|
+
/** One recorded invocation. `part` is `null` when the tree mounts it but no result was recorded. */
|
|
53
|
+
export interface IndexInvocation {
|
|
54
|
+
/** The execution key: the `subflowResults` key and the mount's runtime stage id. */
|
|
55
|
+
readonly key: string;
|
|
56
|
+
/** Mount keys from the root to this invocation; the last one is `key`. */
|
|
57
|
+
readonly path: readonly string[];
|
|
58
|
+
readonly subflowId: string;
|
|
59
|
+
readonly part: number | null;
|
|
60
|
+
/** Compact JSON bytes of this one result; present exactly when `part` is a number. */
|
|
61
|
+
readonly bytes?: number;
|
|
62
|
+
}
|
|
63
|
+
/** A path alias of `subflowResults`: proven equal to an execution key's result, or stored itself. */
|
|
64
|
+
export type IndexAlias = {
|
|
65
|
+
readonly name: string;
|
|
66
|
+
readonly key: string;
|
|
67
|
+
} | {
|
|
68
|
+
readonly name: string;
|
|
69
|
+
readonly part: number;
|
|
70
|
+
};
|
|
71
|
+
/** A result no mount reaches: stored, readable whole, not addressable by the viewer. */
|
|
72
|
+
export interface IndexUnmounted {
|
|
73
|
+
readonly key: string;
|
|
74
|
+
readonly part: number;
|
|
75
|
+
}
|
|
76
|
+
/** An admitted index. */
|
|
77
|
+
export interface RecordingIndex {
|
|
78
|
+
readonly format: typeof RECORDING_INDEX_FORMAT;
|
|
79
|
+
/** The run the recording was filed for (`origin.runId`). */
|
|
80
|
+
readonly runId?: string;
|
|
81
|
+
/** `snapshot.runId`, the engine's executor id. */
|
|
82
|
+
readonly snapshotRunId?: string;
|
|
83
|
+
readonly packed: boolean;
|
|
84
|
+
/** `false` when the tree and the results disagree, so the lazy viewer would refuse the whole too. */
|
|
85
|
+
readonly complete: boolean;
|
|
86
|
+
/** Whether the recorded snapshot had a `subflowResults` object at all. */
|
|
87
|
+
readonly hasSubflowResults: boolean;
|
|
88
|
+
readonly base: StoredPartEntry;
|
|
89
|
+
readonly parts: readonly IndexPartEntry[];
|
|
90
|
+
readonly invocations: readonly IndexInvocation[];
|
|
91
|
+
readonly aliases: readonly IndexAlias[];
|
|
92
|
+
readonly unmounted: readonly IndexUnmounted[];
|
|
93
|
+
}
|
|
94
|
+
/** Everything in an index except the refs the store mints. */
|
|
95
|
+
export type IndexDraft = Omit<RecordingIndex, 'format' | 'base' | 'parts'> & {
|
|
96
|
+
readonly base: Omit<StoredPartEntry, 'ref'>;
|
|
97
|
+
readonly parts: readonly Omit<IndexPartEntry, 'ref'>[];
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* A runtime stage id that names one execution, spelled exactly as the id
|
|
101
|
+
* codec builds it: the same rule the lazy viewer applies to every address.
|
|
102
|
+
*/
|
|
103
|
+
export declare function isCanonicalExecutionKey(key: unknown): key is string;
|
|
104
|
+
/** A plain JSON object (no class instance, no accessor reachable through JSON.parse). */
|
|
105
|
+
export declare function isPlainObject(value: unknown): value is Record<string, unknown>;
|
|
106
|
+
/** The own data value at `key`, never through a getter or the prototype. */
|
|
107
|
+
export declare function ownValue(value: Record<string, unknown>, key: string): unknown;
|
|
108
|
+
/** An own data property, even for a key such as `__proto__` (a plain assignment would set the prototype). */
|
|
109
|
+
export declare function assign(target: Record<string, unknown>, key: string, value: unknown): void;
|
|
110
|
+
/** A bounded, non-empty name. */
|
|
111
|
+
export declare function isName(value: unknown): value is string;
|
|
112
|
+
/** The path key the viewer uses: length-prefixed, so no segment spelling can collide. */
|
|
113
|
+
export declare function pathKey(path: readonly string[]): string;
|
|
114
|
+
/**
|
|
115
|
+
* Admit an index read back from a store, or refuse it whole (`undefined`).
|
|
116
|
+
*
|
|
117
|
+
* Checked: the exact field set at every level, plain data only; refs in the
|
|
118
|
+
* artifact grammar; digests in `sha-256:<hex>`; byte counts; part ordinals in
|
|
119
|
+
* range; unique, canonical execution keys; bounded paths that end at their key
|
|
120
|
+
* and whose every prefix is itself an invocation; aliases that name a stored
|
|
121
|
+
* key or a part; per-part result counts that match the invocations and
|
|
122
|
+
* unmounted results that name the part; `complete` that admits what is listed.
|
|
123
|
+
*/
|
|
124
|
+
export declare function readRecordingIndex(value: unknown): RecordingIndex | undefined;
|
|
125
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/recordingParts/format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,qCAAqC;AACrC,eAAO,MAAM,sBAAsB,sCAAsC,CAAC;AAE1E,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,qCAAqC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,2BAA2B,QAAc,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;IAOjC,wDAAwD;;EAExD,CAAC;AAEH,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,8EAA8E;AAC9E,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,oGAAoG;AACpG,MAAM,WAAW,eAAe;IAC9B,oFAAoF;IACpF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,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C9D,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC,GAAG;IAC3E,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IAC5C,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;CACxD,CAAC;AAIF;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAcnE;AAED,yFAAyF;AACzF,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAI9E;AAED,4EAA4E;AAC5E,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAG7E;AAED,6GAA6G;AAC7G,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAOzF;AAED,iCAAiC;AACjC,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAMtD;AAED,yFAAyF;AACzF,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAIvD;AA0DD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,GAAG,SAAS,CAO7E"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* recordingParts/invocations — which invocations a recorded snapshot holds,
|
|
3
|
+
* in the order the lazy viewer lists them.
|
|
4
|
+
*
|
|
5
|
+
* Role: Fold. One walk over a parsed snapshot's execution tree and its
|
|
6
|
+
* `subflowResults`; returns addresses and the results they name.
|
|
7
|
+
* Reads: its argument (plain JSON data).
|
|
8
|
+
* Emits: N/A.
|
|
9
|
+
*
|
|
10
|
+
* ── Why the walk lives here AND in the viewer ───────────────────────────────
|
|
11
|
+
* A nested invocation's address is found inside its PARENT's result
|
|
12
|
+
* (`treeContext.stageContexts`), so an index written without the results must
|
|
13
|
+
* carry every address. This walk mirrors the viewer package's
|
|
14
|
+
* `recordingSourceCodec/nativeIndex.ts` (its `scopeMounts` and
|
|
15
|
+
* `indexNativeRecording`): the same stack order (`next` is visited before
|
|
16
|
+
* `children`, children in their own order), the same depth-first descent into
|
|
17
|
+
* each mount's result, the same canonical execution keys and the same unit
|
|
18
|
+
* shape. Where the viewer refuses a whole recording, this walk keeps what it
|
|
19
|
+
* can address and says `complete: false`, so no recorded result is lost and
|
|
20
|
+
* the reader can answer the viewer's own refusal. The two copies are
|
|
21
|
+
* cross-checked by the host application's test against the viewer's
|
|
22
|
+
* projection; moving the viewer onto this walk is a separate change.
|
|
23
|
+
*/
|
|
24
|
+
/** One invocation the tree mounts. `result` is absent when none was recorded. */
|
|
25
|
+
export interface WalkedInvocation {
|
|
26
|
+
readonly key: string;
|
|
27
|
+
readonly path: readonly string[];
|
|
28
|
+
readonly subflowId: string;
|
|
29
|
+
readonly result?: unknown;
|
|
30
|
+
}
|
|
31
|
+
/** What one snapshot holds, addressed. */
|
|
32
|
+
export interface RecordingWalk {
|
|
33
|
+
readonly invocations: readonly WalkedInvocation[];
|
|
34
|
+
/** Execution-key results no mount reaches, in `subflowResults` order. */
|
|
35
|
+
readonly unmounted: readonly {
|
|
36
|
+
readonly key: string;
|
|
37
|
+
readonly result: unknown;
|
|
38
|
+
}[];
|
|
39
|
+
/** Every other `subflowResults` key (path aliases), in order. */
|
|
40
|
+
readonly aliases: readonly {
|
|
41
|
+
readonly name: string;
|
|
42
|
+
readonly value: unknown;
|
|
43
|
+
}[];
|
|
44
|
+
readonly complete: boolean;
|
|
45
|
+
readonly hasSubflowResults: boolean;
|
|
46
|
+
readonly snapshotRunId?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Walk a parsed snapshot. `snapshot` is `undefined` or not an object when the
|
|
50
|
+
* recording has none; it then holds no invocations.
|
|
51
|
+
*
|
|
52
|
+
* @throws RecordingSplitError (`over-limit`) past the index bounds, which the
|
|
53
|
+
* viewer would refuse as too large too.
|
|
54
|
+
*/
|
|
55
|
+
export declare function walkRecordedInvocations(snapshot: unknown): RecordingWalk;
|
|
56
|
+
//# sourceMappingURL=invocations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invocations.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/recordingParts/invocations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAYH,iFAAiF;AACjF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,0CAA0C;AAC1C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,WAAW,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAClD,yEAAyE;IACzE,QAAQ,CAAC,SAAS,EAAE,SAAS;QAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IAClF,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IAChF,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAOD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,CAmIxE"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* recordingParts/open — open a saved recording, then read its root, one
|
|
3
|
+
* invocation, or the whole of it, one checked part at a time.
|
|
4
|
+
*
|
|
5
|
+
* Role: Lens. Serves one reader what one stored recording holds and nothing
|
|
6
|
+
* more: an invocation is read from the part that holds it, after the
|
|
7
|
+
* part's metadata and digest prove it is the part the index names.
|
|
8
|
+
* Reads: the scope-bound `head`/`get` it is handed.
|
|
9
|
+
* Emits: N/A.
|
|
10
|
+
*
|
|
11
|
+
* ── Two layouts, one reader ─────────────────────────────────────────────────
|
|
12
|
+
* A whole recording (`recording/run`) is read once, within `maxRootBytes`, and
|
|
13
|
+
* cut in memory by the same split a writer uses (`recordingParts/split.ts ·
|
|
14
|
+
* splitRecordingData`). A recording saved in parts (`recording/run-index`)
|
|
15
|
+
* reads only its index at open; `readRoot` reads the base part and
|
|
16
|
+
* `readInvocation` the one part holding that invocation. Both layouts answer
|
|
17
|
+
* through the same part reader, so both serve the same values.
|
|
18
|
+
*
|
|
19
|
+
* ── Honesty ─────────────────────────────────────────────────────────────────
|
|
20
|
+
* A missing, changed or oversized part is unavailable for exactly the
|
|
21
|
+
* invocations it holds; every other invocation still reads. Nothing falls
|
|
22
|
+
* back to another source. `readWhole` is all-or-nothing.
|
|
23
|
+
*/
|
|
24
|
+
import type { ArtifactRef } from '../../../artifacts/types.js';
|
|
25
|
+
import type { Recording } from '../recordRun.js';
|
|
26
|
+
import { type SavedRecordingPartUnavailable } from './partReader.js';
|
|
27
|
+
import { type SavedRecordingArtifacts } from './source.js';
|
|
28
|
+
export type { SavedRecordingArtifacts } from './source.js';
|
|
29
|
+
export type { SavedRecordingPartUnavailable } from './partReader.js';
|
|
30
|
+
/** How much {@link openSavedRecording} agrees to read. Every cap is checked from metadata first. */
|
|
31
|
+
export interface OpenSavedRecordingOptions {
|
|
32
|
+
/** Cancels the open, and every later read that is not given its own signal. */
|
|
33
|
+
readonly signal?: AbortSignal;
|
|
34
|
+
/** The largest index, in bytes. Default 2 MiB. */
|
|
35
|
+
readonly maxIndexBytes?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The largest base part, or whole recording, in bytes (a packed one: its plain
|
|
38
|
+
* size). Default 16 MiB. A whole recording within it opens, and the parts it is
|
|
39
|
+
* cut into in memory are not capped again.
|
|
40
|
+
*/
|
|
41
|
+
readonly maxRootBytes?: number;
|
|
42
|
+
/** The largest invocation part, in bytes (a packed one: its plain size). Default 16 MiB. */
|
|
43
|
+
readonly maxPartBytes?: number;
|
|
44
|
+
}
|
|
45
|
+
/** Options for one read from an opened recording. */
|
|
46
|
+
export interface SavedRecordingReadOptions {
|
|
47
|
+
readonly signal?: AbortSignal;
|
|
48
|
+
}
|
|
49
|
+
/** Options for {@link SavedRecording.readWhole}. */
|
|
50
|
+
export interface SavedRecordingWholeOptions extends SavedRecordingReadOptions {
|
|
51
|
+
/**
|
|
52
|
+
* The most plain JSON bytes the whole read may take. Default 64 MiB. The stored
|
|
53
|
+
* total is checked from the index first; then each part may expand only to what
|
|
54
|
+
* the parts before it left, so a packed part is refused before it expands past it.
|
|
55
|
+
*/
|
|
56
|
+
readonly maxBytes?: number;
|
|
57
|
+
}
|
|
58
|
+
/** One recorded invocation, in the order the lazy viewer lists them. */
|
|
59
|
+
export interface SavedInvocation {
|
|
60
|
+
/** The execution key: the mount's runtime stage id and its `subflowResults` key. */
|
|
61
|
+
readonly key: string;
|
|
62
|
+
/** Mount keys from the root down to this invocation (the viewer's `invocationPath`). */
|
|
63
|
+
readonly path: readonly string[];
|
|
64
|
+
readonly subflowId: string;
|
|
65
|
+
/** `false` when the tree mounts it but the recording holds no result for it. */
|
|
66
|
+
readonly recorded: boolean;
|
|
67
|
+
/** Compact JSON bytes of its result, when recorded. */
|
|
68
|
+
readonly bytes?: number;
|
|
69
|
+
}
|
|
70
|
+
/** Sizes known from the index alone, with no part read. */
|
|
71
|
+
export interface SavedRecordingSizes {
|
|
72
|
+
/** Every stored byte of this recording. */
|
|
73
|
+
readonly storedBytes: number;
|
|
74
|
+
/** How many artifacts hold it. */
|
|
75
|
+
readonly artifacts: number;
|
|
76
|
+
/** The index's bytes (parts layout only). */
|
|
77
|
+
readonly index?: number;
|
|
78
|
+
/** The base part's bytes (parts layout only). */
|
|
79
|
+
readonly base?: number;
|
|
80
|
+
/** Each invocation part (parts layout only; empty for a whole recording). */
|
|
81
|
+
readonly parts: readonly {
|
|
82
|
+
readonly part: number;
|
|
83
|
+
readonly bytes: number;
|
|
84
|
+
readonly results: number;
|
|
85
|
+
}[];
|
|
86
|
+
}
|
|
87
|
+
/** Why a saved recording could not be opened. */
|
|
88
|
+
export interface SavedRecordingUnavailable {
|
|
89
|
+
readonly status: 'unavailable';
|
|
90
|
+
readonly reason: 'not-found' | 'not-a-recording' | 'too-large' | 'invalid-index' | 'invalid-recording';
|
|
91
|
+
}
|
|
92
|
+
/** An opened saved recording. Only its index (or, for a whole recording, the whole) has been read. */
|
|
93
|
+
export interface SavedRecording {
|
|
94
|
+
readonly status: 'ready';
|
|
95
|
+
readonly layout: 'whole' | 'parts';
|
|
96
|
+
/** The run the recording was filed for (`origin.runId`). */
|
|
97
|
+
readonly runId?: string;
|
|
98
|
+
/** `snapshot.runId`, the engine's executor id: what a viewer address's `runId` must equal. */
|
|
99
|
+
readonly snapshotRunId?: string;
|
|
100
|
+
/**
|
|
101
|
+
* `false` when the tree and the results disagree, or a result is not in the
|
|
102
|
+
* shape the lazy viewer admits; such a viewer refuses the recording whole.
|
|
103
|
+
* Check it before relying on what `readInvocation` returns.
|
|
104
|
+
*/
|
|
105
|
+
readonly complete: boolean;
|
|
106
|
+
readonly invocations: readonly SavedInvocation[];
|
|
107
|
+
/** Path aliases proven equal to an invocation's result: alias → execution key. */
|
|
108
|
+
readonly aliases: ReadonlyMap<string, string>;
|
|
109
|
+
readonly sizes: SavedRecordingSizes;
|
|
110
|
+
/** The recording without its subflow results: `{ snapshot, events, structure }`. */
|
|
111
|
+
readRoot(options?: SavedRecordingReadOptions): Promise<{
|
|
112
|
+
readonly status: 'ready';
|
|
113
|
+
readonly recording: Recording;
|
|
114
|
+
} | SavedRecordingPartUnavailable>;
|
|
115
|
+
/**
|
|
116
|
+
* One invocation's result, read from the one part that holds it. The result
|
|
117
|
+
* is the stored one, proven by digest and key set. Its SHAPE was checked when
|
|
118
|
+
* the recording was cut: on a recording that is not `complete`, a `ready`
|
|
119
|
+
* result may be one the lazy viewer would refuse, so check `complete` first.
|
|
120
|
+
*/
|
|
121
|
+
readInvocation(key: string, options?: SavedRecordingReadOptions): Promise<{
|
|
122
|
+
readonly status: 'ready';
|
|
123
|
+
readonly invocation: SavedInvocation;
|
|
124
|
+
readonly result: unknown;
|
|
125
|
+
} | SavedRecordingPartUnavailable>;
|
|
126
|
+
/**
|
|
127
|
+
* Whether every stored part is still there as the index names it: a `head`
|
|
128
|
+
* of each, its kind, bytes, digest and run checked against the index, and no
|
|
129
|
+
* byte read. `ready`, or the first part's `part-missing` / `part-changed`.
|
|
130
|
+
* A whole recording has no separate parts: this makes NO store call for it
|
|
131
|
+
* and is always `ready`, so a host must `head` that artifact itself. A host
|
|
132
|
+
* serving something derived from the recording (a cached answer) asks this
|
|
133
|
+
* first, so it never serves past the store's own retention.
|
|
134
|
+
*/
|
|
135
|
+
checkParts(options?: SavedRecordingReadOptions): Promise<{
|
|
136
|
+
readonly status: 'ready';
|
|
137
|
+
} | SavedRecordingPartUnavailable>;
|
|
138
|
+
/**
|
|
139
|
+
* The whole recording, with every result and alias restored; refused whole if
|
|
140
|
+
* any part is. It deep-equals the recording that was saved but is not
|
|
141
|
+
* byte-equal to it: `subflowResults` comes last in the snapshot, its keys are
|
|
142
|
+
* in part order, and a proven alias shares its key's result object.
|
|
143
|
+
*/
|
|
144
|
+
readWhole(options?: SavedRecordingWholeOptions): Promise<{
|
|
145
|
+
readonly status: 'ready';
|
|
146
|
+
readonly recording: Recording;
|
|
147
|
+
} | SavedRecordingPartUnavailable>;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Open a saved recording by its receipt's ref: either layout.
|
|
151
|
+
*
|
|
152
|
+
* `artifacts` is already bound to ONE scope (a tool's `ctx.artifacts`, or a
|
|
153
|
+
* host's per-request binding), so a ref from any other scope is `not-found`.
|
|
154
|
+
* Open reads the index only (for a whole recording: the whole, within
|
|
155
|
+
* `maxRootBytes`). Every cap is checked from `head` metadata before any `get`.
|
|
156
|
+
* A store error that is not a fact about the recording (busy, revoked) and an
|
|
157
|
+
* aborted signal reject; they are never reported as a reason.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```ts
|
|
161
|
+
* import { openSavedRecording } from 'agentfootprint/observe';
|
|
162
|
+
*
|
|
163
|
+
* const saved = await openSavedRecording(ctx.artifacts, receipt.ref);
|
|
164
|
+
* if (saved.status === 'ready') {
|
|
165
|
+
* const root = await saved.readRoot(); // no subflow results
|
|
166
|
+
* const first = await saved.readInvocation(saved.invocations[0].key);
|
|
167
|
+
* }
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
export declare function openSavedRecording(artifacts: SavedRecordingArtifacts, ref: ArtifactRef, options?: OpenSavedRecordingOptions): Promise<SavedRecording | SavedRecordingUnavailable>;
|
|
171
|
+
//# sourceMappingURL=open.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/recordingParts/open.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AASH,OAAO,KAAK,EAAgB,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBA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;KAAE,GAAG,6BAA6B,CAC5F,CAAC;IACF;;;;;OAKG;IACH,cAAc,CACZ,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CACN;QAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;KAAE,GAC5F,6BAA6B,CAChC,CAAC;IACF;;;;;;;;OAQG;IACH,UAAU,CACR,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC;QAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;KAAE,GAAG,6BAA6B,CAAC,CAAC;IACzE;;;;;OAKG;IACH,SAAS,CACP,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CACR;QAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;KAAE,GAAG,6BAA6B,CAC5F,CAAC;CACH;AAcD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,kBAAkB,CACtC,SAAS,EAAE,uBAAuB,EAClC,GAAG,EAAE,WAAW,EAChB,OAAO,GAAE,yBAA8B,GACtC,OAAO,CAAC,cAAc,GAAG,yBAAyB,CAAC,CA4CrD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* recordingParts/packing — each part packed on its own, with the recording codec.
|
|
3
|
+
*
|
|
4
|
+
* `packRecording` and `unpackRecording` are typed to a whole recording, but
|
|
5
|
+
* the codec never reads a recording's own fields: it pools repeated values in
|
|
6
|
+
* any JSON value and expands them within `maxBytes`. A part is not a whole
|
|
7
|
+
* recording, so these two adapters only widen the type, in one place, rather
|
|
8
|
+
* than restating the codec. One value table per part is what lets any part be
|
|
9
|
+
* read without the others.
|
|
10
|
+
*/
|
|
11
|
+
import { type PackedRecording } from '../recordingPack.js';
|
|
12
|
+
/** Pack one part's payload. */
|
|
13
|
+
export declare function packPart(payload: unknown): PackedRecording;
|
|
14
|
+
/**
|
|
15
|
+
* Expand one packed part, refusing before expansion when its plain form is over
|
|
16
|
+
* `maxBytes` (`PackedRecordingTooLargeError`).
|
|
17
|
+
*/
|
|
18
|
+
export declare function unpackPart(packed: unknown, maxBytes: number): unknown;
|
|
19
|
+
//# sourceMappingURL=packing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packing.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/recordingParts/packing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAkC,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3F,+BAA+B;AAC/B,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,eAAe,CAE1D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAErE"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* recordingParts/partReader — read one part named by an admitted index, and
|
|
3
|
+
* prove it holds exactly what the index says before handing anything on.
|
|
4
|
+
*
|
|
5
|
+
* Role: Lens. The one place a part's bytes become values: the size cap
|
|
6
|
+
* before any store call, the source's metadata and digest checks,
|
|
7
|
+
* bounded unpacking, then the payload's own fields — its format, its
|
|
8
|
+
* run, its position and its exact key set.
|
|
9
|
+
* Reads: the part source it is handed.
|
|
10
|
+
* Emits: N/A.
|
|
11
|
+
*/
|
|
12
|
+
import type { Recording } from '../recordRun.js';
|
|
13
|
+
import { type RecordingIndex } from './format.js';
|
|
14
|
+
import type { PartSource } from './source.js';
|
|
15
|
+
/** Why one read from an opened recording returned nothing. */
|
|
16
|
+
export interface SavedRecordingPartUnavailable {
|
|
17
|
+
readonly status: 'unavailable';
|
|
18
|
+
readonly reason: 'not-recorded' | 'part-missing' | 'part-changed' | 'too-large';
|
|
19
|
+
}
|
|
20
|
+
type Unavailable = SavedRecordingPartUnavailable;
|
|
21
|
+
/** One invocation part's contents, keyed, and the plain JSON bytes they took. */
|
|
22
|
+
export interface PartContents {
|
|
23
|
+
readonly results: ReadonlyMap<string, unknown>;
|
|
24
|
+
readonly aliases: ReadonlyMap<string, unknown>;
|
|
25
|
+
readonly plainBytes: number;
|
|
26
|
+
}
|
|
27
|
+
/** Reads the parts of one admitted index through one source. */
|
|
28
|
+
export declare function partReader(index: RecordingIndex, source: PartSource, caps: {
|
|
29
|
+
readonly root: number;
|
|
30
|
+
readonly part: number;
|
|
31
|
+
}): {
|
|
32
|
+
base: (signal: AbortSignal | undefined, budget?: number) => Promise<{
|
|
33
|
+
readonly recording: Recording;
|
|
34
|
+
readonly plainBytes: number;
|
|
35
|
+
} | Unavailable>;
|
|
36
|
+
invocations: (part: number, signal: AbortSignal | undefined, budget?: number) => Promise<PartContents | Unavailable>;
|
|
37
|
+
whole: (signal: AbortSignal | undefined, maxBytes: number) => Promise<{
|
|
38
|
+
readonly status: 'ready';
|
|
39
|
+
readonly recording: Recording;
|
|
40
|
+
} | Unavailable>;
|
|
41
|
+
check: (signal: AbortSignal | undefined) => Promise<{
|
|
42
|
+
readonly status: 'ready';
|
|
43
|
+
} | Unavailable>;
|
|
44
|
+
};
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=partReader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partReader.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/recordingParts/partReader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAMjD,OAAO,EAKL,KAAK,cAAc,EAEpB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,8DAA8D;AAC9D,MAAM,WAAW,6BA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|
|
4
|
+
*
|
|
5
|
+
* Role: Adapter. Two sources behind one shape: a STORE (a scope-bound
|
|
6
|
+
* `head`/`get`) and MEMORY (the parts a whole recording was cut into on
|
|
7
|
+
* the reader's side). Both answer a part's JSON text or a fixed reason.
|
|
8
|
+
* Reads: the store, through the two verbs it is handed.
|
|
9
|
+
* Emits: N/A.
|
|
10
|
+
*
|
|
11
|
+
* ── Metadata before bytes ───────────────────────────────────────────────────
|
|
12
|
+
* The store source asks `head` first and refuses a part whose kind, media
|
|
13
|
+
* type, byte count, digest or run disagrees with the index before any `get`.
|
|
14
|
+
* After `get` it checks the ticket again, the byte count of the text, and its
|
|
15
|
+
* OWN SHA-256 of the text against the index: a store adapter that does not
|
|
16
|
+
* verify its digests cannot pass a changed part. A store failure that is not
|
|
17
|
+
* a fact about the part (busy, revoked, aborted) is thrown, never renamed.
|
|
18
|
+
*/
|
|
19
|
+
import type { ToolArtifacts } from '../../../artifacts/capability.js';
|
|
20
|
+
import { type ArtifactMeta } from '../../../artifacts/types.js';
|
|
21
|
+
import type { StoredPartEntry } from './format.js';
|
|
22
|
+
/** The two verbs a reader needs, already bound to one scope. */
|
|
23
|
+
export type SavedRecordingArtifacts = Pick<ToolArtifacts, 'head' | 'get'>;
|
|
24
|
+
/** What a fetch may answer instead of the text. */
|
|
25
|
+
export type FetchRefusal = 'missing' | 'changed';
|
|
26
|
+
/** One part's text, or why there is none. */
|
|
27
|
+
export type FetchedPart = {
|
|
28
|
+
readonly text: string;
|
|
29
|
+
} | {
|
|
30
|
+
readonly refused: FetchRefusal;
|
|
31
|
+
};
|
|
32
|
+
/** Where parts come from. */
|
|
33
|
+
export interface PartSource {
|
|
34
|
+
fetch(entry: StoredPartEntry, signal: AbortSignal | undefined): Promise<FetchedPart>;
|
|
35
|
+
/** The ticket alone, checked against the entry: no bytes are read. */
|
|
36
|
+
check(entry: StoredPartEntry, signal: AbortSignal | undefined): Promise<{
|
|
37
|
+
readonly present: true;
|
|
38
|
+
} | {
|
|
39
|
+
readonly refused: FetchRefusal;
|
|
40
|
+
}>;
|
|
41
|
+
}
|
|
42
|
+
/** The payload of one artifact `get`, decoded to text when it is text. */
|
|
43
|
+
export type FetchedPayload = {
|
|
44
|
+
readonly text: string;
|
|
45
|
+
} | {
|
|
46
|
+
readonly data: unknown;
|
|
47
|
+
} | {
|
|
48
|
+
readonly refused: FetchRefusal;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* `get` the artifact `head` described, and refuse it as `changed` when the
|
|
52
|
+
* ticket `get` returns is not the one `head` returned.
|
|
53
|
+
*/
|
|
54
|
+
export declare function fetchPayload(artifacts: SavedRecordingArtifacts, meta: ArtifactMeta, signal: AbortSignal | undefined): Promise<FetchedPayload>;
|
|
55
|
+
/** Parts held by a store, each bound to its index entry and the index's run. */
|
|
56
|
+
export declare function storeSource(artifacts: SavedRecordingArtifacts, runId: string | undefined): PartSource;
|
|
57
|
+
/** Parts cut in memory from a whole recording this reader already read and checked. */
|
|
58
|
+
export declare function memorySource(texts: ReadonlyMap<string, string>): PartSource;
|
|
59
|
+
//# sourceMappingURL=source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/recordingParts/source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAMtE,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAExF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,gEAAgE;AAChE,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC;AAE1E,mDAAmD;AACnD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjD,6CAA6C;AAC7C,MAAM,MAAM,WAAW,GAAG;I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