harnery 0.34.0 → 0.35.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/commander.d.ts.map +1 -1
- package/dist/commander.js +2 -0
- package/dist/commands/agents.d.ts +15 -4
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/agents.js +91 -162
- package/dist/commands/browse.d.ts.map +1 -1
- package/dist/commands/browse.js +26 -2
- package/dist/commands/decision.d.ts.map +1 -1
- package/dist/commands/decision.js +2 -2
- package/dist/commands/events.d.ts.map +1 -1
- package/dist/commands/events.js +18 -1
- package/dist/commands/presence.d.ts.map +1 -1
- package/dist/commands/presence.js +2 -2
- package/dist/commands/semantic.d.ts +4 -0
- package/dist/commands/semantic.d.ts.map +1 -0
- package/dist/commands/semantic.js +147 -0
- package/dist/commands/web.d.ts.map +1 -1
- package/dist/commands/web.js +17 -0
- package/dist/core/agents/canonical-emit.d.ts +3 -0
- package/dist/core/agents/canonical-emit.d.ts.map +1 -1
- package/dist/core/agents/canonical-emit.js +12 -0
- package/dist/core/agents/claim-path.d.ts +11 -0
- package/dist/core/agents/claim-path.d.ts.map +1 -0
- package/dist/core/agents/claim-path.js +22 -0
- package/dist/core/agents/coord-client.d.ts +29 -3
- package/dist/core/agents/coord-client.d.ts.map +1 -1
- package/dist/core/agents/coord-client.js +88 -9
- package/dist/core/agents/live-authority-v3.d.ts.map +1 -1
- package/dist/core/agents/live-authority-v3.js +1 -3
- package/dist/core/agents/live-lifecycle-v3.js +3 -3
- package/dist/core/agents/live-observation-v3.d.ts.map +1 -1
- package/dist/core/agents/live-observation-v3.js +2 -2
- package/dist/core/agents/render/prompt-context.js +12 -10
- package/dist/core/agents/rules/stop-hook.d.ts.map +1 -1
- package/dist/core/agents/rules/stop-hook.js +23 -11
- package/dist/core/agents/session-name-display.d.ts +2 -1
- package/dist/core/agents/session-name-display.d.ts.map +1 -1
- package/dist/core/agents/session-name-display.js +10 -3
- package/dist/core/agents/state/heartbeat-reader.d.ts +46 -0
- package/dist/core/agents/state/heartbeat-reader.d.ts.map +1 -0
- package/dist/core/agents/state/heartbeat-reader.js +25 -0
- package/dist/core/agents/state/heartbeat-writer.d.ts +3 -48
- package/dist/core/agents/state/heartbeat-writer.d.ts.map +1 -1
- package/dist/core/agents/state/heartbeat-writer.js +16 -34
- package/dist/core/agents/state/live-coordination-view.d.ts +1 -1
- package/dist/core/agents/state/live-coordination-view.d.ts.map +1 -1
- package/dist/core/agents/state/live-coordination-view.js +25 -1
- package/dist/core/agents/state/names.d.ts +9 -1
- package/dist/core/agents/state/names.d.ts.map +1 -1
- package/dist/core/agents/state/names.js +190 -182
- package/dist/core/agents/state/stale-sweep.d.ts.map +1 -1
- package/dist/core/agents/state/stale-sweep.js +23 -5
- package/dist/core/artifacts/constants.d.ts +5 -0
- package/dist/core/artifacts/constants.d.ts.map +1 -0
- package/dist/core/artifacts/constants.js +4 -0
- package/dist/core/artifacts/index.d.ts +3 -3
- package/dist/core/artifacts/index.d.ts.map +1 -1
- package/dist/core/artifacts/index.js +50 -7
- package/dist/core/events/v3/base-contract.d.ts +795 -0
- package/dist/core/events/v3/base-contract.d.ts.map +1 -1
- package/dist/core/events/v3/base-contract.js +33 -0
- package/dist/core/events/v3/capabilities.d.ts +11 -0
- package/dist/core/events/v3/capabilities.d.ts.map +1 -1
- package/dist/core/events/v3/capabilities.js +23 -0
- package/dist/core/events/v3/generated.d.ts +1 -1
- package/dist/core/events/v3/generated.js +1 -1
- package/dist/core/events/v3/index.d.ts +4 -3
- package/dist/core/events/v3/index.d.ts.map +1 -1
- package/dist/core/events/v3/index.js +4 -3
- package/dist/core/events/v3/latency.d.ts +31 -1
- package/dist/core/events/v3/latency.d.ts.map +1 -1
- package/dist/core/events/v3/latency.js +127 -3
- package/dist/core/events/v3/live-routing.d.ts +30 -0
- package/dist/core/events/v3/live-routing.d.ts.map +1 -1
- package/dist/core/events/v3/live-routing.js +109 -1
- package/dist/core/events/v3/producers/command-recorder.d.ts.map +1 -1
- package/dist/core/events/v3/producers/command-recorder.js +10 -1
- package/dist/core/events/v3/producers/coordination-recorder.d.ts.map +1 -1
- package/dist/core/events/v3/producers/coordination-recorder.js +14 -3
- package/dist/core/events/v3/producers/hook-base.d.ts +17 -1
- package/dist/core/events/v3/producers/hook-base.d.ts.map +1 -1
- package/dist/core/events/v3/producers/hook-base.js +82 -1
- package/dist/core/events/v3/producers/intake.d.ts +6 -0
- package/dist/core/events/v3/producers/intake.d.ts.map +1 -1
- package/dist/core/events/v3/producers/intake.js +11 -0
- package/dist/core/events/v3/producers/recorder.d.ts +62 -0
- package/dist/core/events/v3/producers/recorder.d.ts.map +1 -1
- package/dist/core/events/v3/producers/recorder.js +654 -18
- package/dist/core/events/v3/runtime-telemetry-capabilities.d.ts +51 -0
- package/dist/core/events/v3/runtime-telemetry-capabilities.d.ts.map +1 -0
- package/dist/core/events/v3/runtime-telemetry-capabilities.js +54 -0
- package/dist/core/events/v3/turn-telemetry.d.ts +9 -0
- package/dist/core/events/v3/turn-telemetry.d.ts.map +1 -1
- package/dist/core/hooks/adapter/parse.d.ts +3 -0
- package/dist/core/hooks/adapter/parse.d.ts.map +1 -1
- package/dist/core/hooks/adapter/parse.js +14 -0
- package/dist/core/hooks/adapter/runtime-telemetry.d.ts +119 -0
- package/dist/core/hooks/adapter/runtime-telemetry.d.ts.map +1 -0
- package/dist/core/hooks/adapter/runtime-telemetry.js +568 -0
- package/dist/core/hooks/cli.js +114 -38
- package/dist/core/hooks/remediation-cap.d.ts +34 -0
- package/dist/core/hooks/remediation-cap.d.ts.map +1 -0
- package/dist/core/hooks/remediation-cap.js +71 -0
- package/dist/core/hooks/resolve/transcript.d.ts +25 -9
- package/dist/core/hooks/resolve/transcript.d.ts.map +1 -1
- package/dist/core/hooks/resolve/transcript.js +35 -17
- package/dist/core/semantic/adapters.d.ts +34 -0
- package/dist/core/semantic/adapters.d.ts.map +1 -0
- package/dist/core/semantic/adapters.js +222 -0
- package/dist/core/semantic/contract.d.ts +588 -0
- package/dist/core/semantic/contract.d.ts.map +1 -0
- package/dist/core/semantic/contract.js +230 -0
- package/dist/core/semantic/evidence.d.ts +11 -0
- package/dist/core/semantic/evidence.d.ts.map +1 -0
- package/dist/core/semantic/evidence.js +262 -0
- package/dist/core/semantic/index.d.ts +10 -0
- package/dist/core/semantic/index.d.ts.map +1 -0
- package/dist/core/semantic/index.js +9 -0
- package/dist/core/semantic/once.d.ts +33 -0
- package/dist/core/semantic/once.d.ts.map +1 -0
- package/dist/core/semantic/once.js +293 -0
- package/dist/core/semantic/prompt.d.ts +12 -0
- package/dist/core/semantic/prompt.d.ts.map +1 -0
- package/dist/core/semantic/prompt.js +70 -0
- package/dist/core/semantic/scheduler.d.ts +16 -0
- package/dist/core/semantic/scheduler.d.ts.map +1 -0
- package/dist/core/semantic/scheduler.js +67 -0
- package/dist/core/semantic/service-status.d.ts +31 -0
- package/dist/core/semantic/service-status.d.ts.map +1 -0
- package/dist/core/semantic/service-status.js +84 -0
- package/dist/core/semantic/service.d.ts +51 -0
- package/dist/core/semantic/service.d.ts.map +1 -0
- package/dist/core/semantic/service.js +470 -0
- package/dist/core/semantic/storage.d.ts +71 -0
- package/dist/core/semantic/storage.d.ts.map +1 -0
- package/dist/core/semantic/storage.js +179 -0
- package/dist/core/semantic/validate.d.ts +16 -0
- package/dist/core/semantic/validate.d.ts.map +1 -0
- package/dist/core/semantic/validate.js +174 -0
- package/dist/lib/browser/client.d.ts +11 -0
- package/dist/lib/browser/client.d.ts.map +1 -1
- package/dist/lib/browser/client.js +13 -0
- package/dist/lib/browser/index.d.ts +1 -0
- package/dist/lib/browser/index.d.ts.map +1 -1
- package/dist/lib/browser/standalone-html.d.ts +25 -0
- package/dist/lib/browser/standalone-html.d.ts.map +1 -0
- package/dist/lib/browser/standalone-html.js +284 -0
- package/dist/lib/instructions/apply.d.ts.map +1 -1
- package/dist/lib/instructions/apply.js +1 -0
- package/dist/lib/instructions/templates.d.ts +2 -0
- package/dist/lib/instructions/templates.d.ts.map +1 -1
- package/dist/lib/instructions/templates.js +144 -4
- package/package.json +6 -1
- package/schemas/event-v3.schema.json +2758 -478
- package/src/commander.ts +2 -0
- package/src/commands/agents.ts +104 -152
- package/src/commands/browse.ts +25 -2
- package/src/commands/decision.ts +8 -2
- package/src/commands/events.ts +21 -1
- package/src/commands/presence.ts +7 -2
- package/src/commands/semantic.ts +179 -0
- package/src/commands/web.ts +15 -0
- package/src/core/agents/canonical-emit.ts +15 -0
- package/src/core/agents/claim-path.ts +23 -0
- package/src/core/agents/coord-client.ts +92 -8
- package/src/core/agents/live-authority-v3.ts +1 -4
- package/src/core/agents/live-lifecycle-v3.ts +8 -3
- package/src/core/agents/live-observation-v3.ts +7 -2
- package/src/core/agents/render/prompt-context.ts +13 -10
- package/src/core/agents/rules/stop-hook.ts +24 -11
- package/src/core/agents/session-name-display.ts +11 -3
- package/src/core/agents/state/heartbeat-reader.ts +69 -0
- package/src/core/agents/state/heartbeat-writer.ts +20 -84
- package/src/core/agents/state/live-coordination-view.ts +26 -1
- package/src/core/agents/state/names.ts +190 -182
- package/src/core/agents/state/stale-sweep.ts +25 -5
- package/src/core/artifacts/constants.ts +4 -0
- package/src/core/artifacts/index.ts +49 -7
- package/src/core/events/v3/base-contract.ts +39 -0
- package/src/core/events/v3/capabilities.ts +34 -0
- package/src/core/events/v3/generated.ts +1 -1
- package/src/core/events/v3/index.ts +21 -0
- package/src/core/events/v3/latency.ts +213 -2
- package/src/core/events/v3/live-routing.ts +120 -1
- package/src/core/events/v3/producers/command-recorder.ts +10 -1
- package/src/core/events/v3/producers/coordination-recorder.ts +17 -5
- package/src/core/events/v3/producers/hook-base.ts +115 -1
- package/src/core/events/v3/producers/intake.ts +18 -0
- package/src/core/events/v3/producers/recorder.ts +856 -21
- package/src/core/events/v3/runtime-telemetry-capabilities.ts +137 -0
- package/src/core/events/v3/turn-telemetry.ts +10 -0
- package/src/core/hooks/adapter/parse.ts +16 -0
- package/src/core/hooks/adapter/runtime-telemetry.ts +805 -0
- package/src/core/hooks/cli.ts +126 -41
- package/src/core/hooks/remediation-cap.ts +77 -0
- package/src/core/hooks/resolve/transcript.ts +49 -17
- package/src/core/semantic/adapters.ts +293 -0
- package/src/core/semantic/contract.ts +298 -0
- package/src/core/semantic/evidence.ts +336 -0
- package/src/core/semantic/index.ts +127 -0
- package/src/core/semantic/once.ts +410 -0
- package/src/core/semantic/prompt.ts +84 -0
- package/src/core/semantic/scheduler.ts +107 -0
- package/src/core/semantic/service-status.ts +118 -0
- package/src/core/semantic/service.ts +580 -0
- package/src/core/semantic/storage.ts +286 -0
- package/src/core/semantic/validate.ts +212 -0
- package/src/lib/browser/client.ts +21 -0
- package/src/lib/browser/index.ts +4 -0
- package/src/lib/browser/standalone-html.ts +312 -0
- package/src/lib/instructions/apply.ts +1 -0
- package/src/lib/instructions/templates.ts +149 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-contract.d.ts","sourceRoot":"","sources":["../../../../src/core/events/v3/base-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAoB,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAC;AAEtF,eAAO,MAAM,2BAA2B,EAAG,eAAwB,CAAC;AACpE,eAAO,MAAM,4BAA4B,EAAG,CAAU,CAAC;AACvD,eAAO,MAAM,uBAAuB,0DAA0D,CAAC;AAqB/F,eAAO,MAAM,mBAAmB,qYAQ9B,CAAC;AAEH,eAAO,MAAM,0BAA0B,ycAOrC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;EAMlC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;EAOxC,CAAC;AAEH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;KA2BlE;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AAC;AACnF,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -89,12 +89,45 @@ export function ObservationV3BaseSchema(value) {
|
|
|
89
89
|
StrictObject({ state: Type.Literal("not_applicable") }),
|
|
90
90
|
]);
|
|
91
91
|
}
|
|
92
|
+
const RuntimeTelemetryCapabilityValueV3BaseSchema = StrictObject({
|
|
93
|
+
support: Type.Union([
|
|
94
|
+
Type.Literal("native"),
|
|
95
|
+
Type.Literal("derived"),
|
|
96
|
+
Type.Literal("conditional"),
|
|
97
|
+
]),
|
|
98
|
+
source: SafeToken,
|
|
99
|
+
completeness: Type.Union([
|
|
100
|
+
Type.Literal("exact"),
|
|
101
|
+
Type.Literal("lower_bound"),
|
|
102
|
+
Type.Literal("unknown"),
|
|
103
|
+
]),
|
|
104
|
+
});
|
|
105
|
+
const RuntimeTelemetryCapabilityObservationV3BaseSchema = ObservationV3BaseSchema(RuntimeTelemetryCapabilityValueV3BaseSchema);
|
|
92
106
|
export const RuntimeAttestationV3BaseSchema = StrictObject({
|
|
93
107
|
attestation_id: AttestationId,
|
|
94
108
|
generation_id: GenerationId,
|
|
95
109
|
adapter: ObservationV3BaseSchema(StrictObject({ id: SafeToken, version: Type.Optional(SafeToken) })),
|
|
96
110
|
harness: ObservationV3BaseSchema(StrictObject({ id: SafeToken, version: Type.Optional(SafeToken) })),
|
|
97
111
|
model: ObservationV3BaseSchema(StrictObject({ provider: SafeToken, id: SafeToken })),
|
|
112
|
+
/** Runtime tuning identity: the effort dial (and speed tier where the
|
|
113
|
+
* runtime reports one). `observed` with a missing `effort` never occurs —
|
|
114
|
+
* a runtime that proved the model has no dial attests `unsupported` with
|
|
115
|
+
* capability `effort_selection` instead. Values pass through verbatim
|
|
116
|
+
* (`low`…`max`, `standard`/`fast`); display labels are a renderer concern. */
|
|
117
|
+
tuning: ObservationV3BaseSchema(StrictObject({
|
|
118
|
+
effort: Type.Optional(SafeToken),
|
|
119
|
+
speed: Type.Optional(SafeToken),
|
|
120
|
+
})),
|
|
121
|
+
/** Effective telemetry support proven for this runtime session. This is
|
|
122
|
+
* intentionally separate from the static capability profile digest: a
|
|
123
|
+
* missing or late local source changes evidence, not the gated profile. */
|
|
124
|
+
telemetry: StrictObject({
|
|
125
|
+
context_usage: RuntimeTelemetryCapabilityObservationV3BaseSchema,
|
|
126
|
+
wait_spans: RuntimeTelemetryCapabilityObservationV3BaseSchema,
|
|
127
|
+
wait_completeness: RuntimeTelemetryCapabilityObservationV3BaseSchema,
|
|
128
|
+
response_latency: RuntimeTelemetryCapabilityObservationV3BaseSchema,
|
|
129
|
+
inference_timing: RuntimeTelemetryCapabilityObservationV3BaseSchema,
|
|
130
|
+
}),
|
|
98
131
|
capability_profile: Type.String({ pattern: "^cap_[a-f0-9]{64}$" }),
|
|
99
132
|
declared_by_event_id: EventId,
|
|
100
133
|
});
|
|
@@ -2,6 +2,11 @@ import type { Adapter } from "../../adapter.js";
|
|
|
2
2
|
export type CapabilitySupportV3 = "native" | "derived" | "conditional" | "unsupported";
|
|
3
3
|
export type CursorExecutionModeV3 = "local" | "cloud" | "unknown";
|
|
4
4
|
export type AdapterWaitKindV3 = "permission" | "needs_input" | "decision" | "approval" | "scheduled" | "rate_limit" | "unknown";
|
|
5
|
+
export declare const ADAPTER_WAIT_KINDS_V3: readonly AdapterWaitKindV3[];
|
|
6
|
+
export interface WaitKindCapabilityV3 {
|
|
7
|
+
span_delivery: CapabilitySupportV3;
|
|
8
|
+
turn_completeness: CapabilitySupportV3;
|
|
9
|
+
}
|
|
5
10
|
export type BaseAdapterSignalV3 = "session_start" | "session_end" | "prompt" | "turn_id" | "turn_completion" | "tool_request" | "tool_result" | "tool_failure" | "tool_call_id" | "tool_duration" | "permission" | "subagent" | "shell" | "pre_compaction" | "post_compaction" | "context_usage" | "model_identity";
|
|
6
11
|
export type AdapterSignalV3 = BaseAdapterSignalV3 | "model_usage" | "inference_timing" | "harness_timing" | "capability_drift";
|
|
7
12
|
export interface AdapterCapabilityProfileV3 {
|
|
@@ -22,6 +27,12 @@ export declare function adapterSignalSupportV3(adapter: Adapter, signal: Adapter
|
|
|
22
27
|
export declare function adapterWaitKindSupportV3(adapter: Adapter, kind: AdapterWaitKindV3): CapabilitySupportV3;
|
|
23
28
|
/** No current adapter supplies an independent completed-turn wait aggregate. */
|
|
24
29
|
export declare function adapterTurnWaitCountSupportV3(_adapter: Adapter): CapabilitySupportV3;
|
|
30
|
+
/**
|
|
31
|
+
* Per-kind wait matrix for native adapter turns. Span delivery and independent
|
|
32
|
+
* completed-turn completeness are deliberately separate: observing a span
|
|
33
|
+
* never proves that an absent span means zero.
|
|
34
|
+
*/
|
|
35
|
+
export declare function adapterWaitCoverageMatrixV3(adapter: Adapter): Record<AdapterWaitKindV3, WaitKindCapabilityV3>;
|
|
25
36
|
/**
|
|
26
37
|
* Local Cursor sessions expose the generic tool channel. Cloud/private-worker
|
|
27
38
|
* sessions cannot guarantee whole-turn delivery because hooks may start only
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/core/events/v3/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGhD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,SAAS,GAAG,aAAa,GAAG,aAAa,CAAC;AAEvF,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAElE,MAAM,MAAM,iBAAiB,GACzB,YAAY,GACZ,aAAa,GACb,UAAU,GACV,UAAU,GACV,WAAW,GACX,YAAY,GACZ,SAAS,CAAC;AAEd,MAAM,MAAM,mBAAmB,GAC3B,eAAe,GACf,aAAa,GACb,QAAQ,GACR,SAAS,GACT,iBAAiB,GACjB,cAAc,GACd,aAAa,GACb,cAAc,GACd,cAAc,GACd,eAAe,GACf,YAAY,GACZ,UAAU,GACV,OAAO,GACP,gBAAgB,GAChB,iBAAiB,GACjB,eAAe,GACf,gBAAgB,CAAC;AAErB,MAAM,MAAM,eAAe,GACvB,mBAAmB,GACnB,aAAa,GACb,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,iCAAiC,CAAC;IAC1C,cAAc,EAAE,CAAC,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;CACvD;AAmED,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,OAAO,EAAE,0BAA0B,CAatF,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,0BAA0B,CAEvF;AAED,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,MAAM,EAAE,CAElF;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,eAAe,GACtB,mBAAmB,CAErB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,iBAAiB,GACtB,mBAAmB,CAErB;AAED,gFAAgF;AAChF,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,OAAO,GAAG,mBAAmB,CAEpF;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,qBAAqB,GAAG,mBAAmB,CAI3F"}
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/core/events/v3/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGhD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,SAAS,GAAG,aAAa,GAAG,aAAa,CAAC;AAEvF,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC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,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,OAAO,GAAG,mBAAmB,CAEpF;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,OAAO,GACf,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAUjD;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,qBAAqB,GAAG,mBAAmB,CAI3F"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { canonicalJsonV3, sha256V3 } from "./canonical.js";
|
|
2
|
+
export const ADAPTER_WAIT_KINDS_V3 = [
|
|
3
|
+
"permission",
|
|
4
|
+
"needs_input",
|
|
5
|
+
"decision",
|
|
6
|
+
"approval",
|
|
7
|
+
"scheduled",
|
|
8
|
+
"rate_limit",
|
|
9
|
+
"unknown",
|
|
10
|
+
];
|
|
2
11
|
const SHARED_SIGNAL_SUPPORT = {
|
|
3
12
|
session_start: "native",
|
|
4
13
|
prompt: "native",
|
|
@@ -93,6 +102,20 @@ export function adapterWaitKindSupportV3(adapter, kind) {
|
|
|
93
102
|
export function adapterTurnWaitCountSupportV3(_adapter) {
|
|
94
103
|
return "unsupported";
|
|
95
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Per-kind wait matrix for native adapter turns. Span delivery and independent
|
|
107
|
+
* completed-turn completeness are deliberately separate: observing a span
|
|
108
|
+
* never proves that an absent span means zero.
|
|
109
|
+
*/
|
|
110
|
+
export function adapterWaitCoverageMatrixV3(adapter) {
|
|
111
|
+
return Object.fromEntries(ADAPTER_WAIT_KINDS_V3.map((kind) => [
|
|
112
|
+
kind,
|
|
113
|
+
{
|
|
114
|
+
span_delivery: adapterWaitKindSupportV3(adapter, kind),
|
|
115
|
+
turn_completeness: adapterTurnWaitCountSupportV3(adapter),
|
|
116
|
+
},
|
|
117
|
+
]));
|
|
118
|
+
}
|
|
96
119
|
/**
|
|
97
120
|
* Local Cursor sessions expose the generic tool channel. Cloud/private-worker
|
|
98
121
|
* sessions cannot guarantee whole-turn delivery because hooks may start only
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Generated by scripts/generate-event-v3-contract.ts. Do not edit. */
|
|
2
|
-
export declare const EVENT_V3_SCHEMA_DIGEST: "sha256:
|
|
2
|
+
export declare const EVENT_V3_SCHEMA_DIGEST: "sha256:297ed06021fd046c6f1a2061de4341c7765840bf4f0d9b597ad7c9d78b7a9ba6";
|
|
3
3
|
export declare const EVENT_V3_GENERATED_CORE_TYPES: readonly ["ledger.genesis", "ledger.activated", "ledger.schema_advanced", "ledger.comparability_advanced", "session.started", "session.attestation_changed", "session.resumed", "session.ended", "session.termination_observed", "run.started", "run.completed", "turn.started", "turn.completed", "tool.requested", "tool.completed", "command.started", "command.output_observed", "command.completed", "context.observed", "context.compaction_started", "context.compaction_completed", "context.checkpointed", "context.recovery_injected", "agent.delegated", "agent.started", "agent.completed", "artifact.observed", "progress.observed", "coord.task_changed", "coord.lifecycle_changed", "coord.status_observed", "coord.claim_changed", "coord.presence_changed", "coord.message_observed", "coord.identity_attested", "council.state_changed", "decision.state_changed", "lifecycle.recovered", "lifecycle.sweep_observed", "health.observed", "wait.started", "wait.ended", "health.capability_drift"];
|
|
4
4
|
//# sourceMappingURL=generated.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Generated by scripts/generate-event-v3-contract.ts. Do not edit. */
|
|
2
|
-
export const EVENT_V3_SCHEMA_DIGEST = "sha256:
|
|
2
|
+
export const EVENT_V3_SCHEMA_DIGEST = "sha256:297ed06021fd046c6f1a2061de4341c7765840bf4f0d9b597ad7c9d78b7a9ba6";
|
|
3
3
|
export const EVENT_V3_GENERATED_CORE_TYPES = [
|
|
4
4
|
"ledger.genesis",
|
|
5
5
|
"ledger.activated",
|
|
@@ -3,7 +3,7 @@ export { type AuthorityMutationV3, type AuthorityReceiptV3, type AuthorityReconc
|
|
|
3
3
|
export { ensureEventLedgerV3, type InitializeEventLedgerV3Input, type InitializeEventLedgerV3Result, initializeEventLedgerV3, } from "./bootstrap.js";
|
|
4
4
|
export { type BuildEventV3Input, buildEventV3 } from "./builder.js";
|
|
5
5
|
export { canonicalJsonV3, EVENT_V3_CANONICALIZER, type FingerprintContextV3, type FingerprintV3, fingerprintV3, normalizeNativeIdV3, sha256V3, } from "./canonical.js";
|
|
6
|
-
export { ADAPTER_CAPABILITY_PROFILES_V3, type AdapterCapabilityProfileV3, type AdapterSignalV3, adapterCapabilityProfileDigestV3, adapterCapabilityProfileV3, adapterSignalSupportV3, type CapabilitySupportV3, } from "./capabilities.js";
|
|
6
|
+
export { ADAPTER_CAPABILITY_PROFILES_V3, ADAPTER_WAIT_KINDS_V3, type AdapterCapabilityProfileV3, type AdapterSignalV3, type AdapterWaitKindV3, adapterCapabilityProfileDigestV3, adapterCapabilityProfileV3, adapterSignalSupportV3, adapterWaitCoverageMatrixV3, adapterWaitKindSupportV3, type CapabilitySupportV3, type CursorExecutionModeV3, type WaitKindCapabilityV3, } from "./capabilities.js";
|
|
7
7
|
export { type CapabilityDeliveryV3, type CapabilityDriftPayloadV3, capabilityDriftPayloadsV3, measurableDeliveriesV3, } from "./capability-drift.js";
|
|
8
8
|
export { EVENT_V3_CONTRACT_MAJOR, EVENT_V3_CONTRACT_NAME, EVENT_V3_CORE_EVENT_TYPES, EVENT_V3_SCHEMA_ID, type EventOfTypeV3, type EventPayloadV3, type EventTypeV3, type EventV3, EventV3Schema, ObservationV3Schema, OutcomeV3Schema, RecoveryV3Schema, type SpanSummaryV3, SpanSummaryV3Schema, type TurnHarnessV3, type TurnInferenceV3, type TurnUsageV3, type WaitKindV3, WaitKindV3Schema, } from "./contract.js";
|
|
9
9
|
export { type ActivationManifestV3, type BuildActivationManifestV3Input, type BuildCandidateGenesisManifestV3Input, buildActivationManifestV3, buildCandidateGenesisManifestV3, type CandidateGenesisManifestV3, type CandidateProfileV3, type ControlManifestValidationV3, type ControlProducerV3, candidateManifestDigestV3, candidateProfileDigestV3, EVENT_V3_ACTIVATION_MANIFEST, EVENT_V3_GENESIS_MANIFEST, type EventV3ControlState, type EventV3WriteMode, eventV3WriteGateOpen, readEventV3ControlState, repairEventV3ControlPair, validateActivationManifestV3, validateCandidateGenesisManifestV3, } from "./control.js";
|
|
@@ -13,7 +13,7 @@ export { EVENT_V3_FINALIZATION_VIEW_VERSION, type FinalizationScopeV3, Finalizat
|
|
|
13
13
|
export { FINGERPRINT_KEY_STORE_RELATIVE_PATH, type FingerprintKeyEpochV3, type FingerprintKeyStoreV3, fingerprintContextV3, fingerprintKeyStorePathV3, loadOrCreateFingerprintKeyStoreV3, type RotateFingerprintEpochV3Options, readFingerprintKeyStoreV3, rotateFingerprintEpochV3, } from "./fingerprint-keys.js";
|
|
14
14
|
export { EVENT_V3_SCHEMA_DIGEST } from "./generated.js";
|
|
15
15
|
export { activationIdV3, attestationIdV3, clockIdV3, delegationIdV3, eventIdV3, generationIdV3, genesisIdV3, spanIdV3, } from "./ids.js";
|
|
16
|
-
export { type ContextCoverageStateV3, type ContextCoverageV3, EVENT_V3_LATENCY_PROJECTION_VERSION, type LatencyMetricV3, type LatencyProjectionDiagnosticCodeV3, type LatencyProjectionDiagnosticV3, type LatencyProjectionV3, projectLatencyV3, type ToolLatencyV3, type TurnLatencyV3, } from "./latency.js";
|
|
16
|
+
export { type ContextCoverageStateV3, type ContextCoverageV3, EVENT_V3_LATENCY_PROJECTION_VERSION, type LatencyMetricV3, type LatencyProjectionDiagnosticCodeV3, type LatencyProjectionDiagnosticV3, type LatencyProjectionV3, projectLatencyV3, type ResponseLatencyV3, runtimeTelemetryEvidenceKeyV3, type ToolLatencyV3, type TurnLatencyV3, type WaitKindCompletenessV3, type WaitKindCoverageV3, } from "./latency.js";
|
|
17
17
|
export { EVENT_V3_LIVE_RELATIVE_ROOT, janitorLiveDisplayV3, type LiveDisplayInputV3, type LiveDisplayJanitorResultV3, type LiveDisplayRowV3, listLiveDisplayV3, readLiveDisplayV3, safeIntentDisplayV3, tryWriteLiveDisplayV3, writeLiveDisplayV3, } from "./live-feed.js";
|
|
18
18
|
export type { LiveCoordinationObservationV3 } from "./live-observation.js";
|
|
19
19
|
export { hookSignalV3, LIVE_COMMAND_V3_PRODUCER_ID, LIVE_HOOK_V3_PRODUCER_ID, type LiveEventLedgerRouteV3, liveEventV3BuildId, liveInstanceIdV3, livePlatformV3, nativeInstanceIdV3, recordLiveHookSignalV3, resolveLiveEventLedgerRouteV3, } from "./live-routing.js";
|
|
@@ -24,9 +24,10 @@ export { type RecordCoordinationAuthorityV3Input, type RecordCoordinationAuthori
|
|
|
24
24
|
export { type HookEventV3, type HookProducerContextV3, normalizeHookEventV3, upgradeHookEventV3, } from "./producers/hook.js";
|
|
25
25
|
export { type ApprovedSessionEndReasonV3, type DrainHookIntakeSpoolV3Result, drainHookIntakeSpoolV3, type HookProducerStateRecordV3, type HookProducerStateV3, listHookProducerStateRecordsV3, type RecordApprovedSessionEndV3Input, type RecordApprovedSessionEndV3Result, type RecordHookSignalV3Input, type RecordHookSignalV3Result, readHookProducerStateV3, recordApprovedSessionEndV3, recordHookSignalV3, } from "./producers/recorder.js";
|
|
26
26
|
export { type ClaimProjectionV3, type DelegationProjectionV3, EVENT_V3_SAFETY_REDUCER_BUILD, type GenerationSafetyStateV3, reduceSafetyProjectionV3, type SafetyProjectionDiagnosticCodeV3, type SafetyProjectionDiagnosticV3, type SafetyProjectionV3, type WaitProjectionV3, } from "./projection.js";
|
|
27
|
-
export { digestEventV3AuthorityDirectoryV3, inspectInvalidActiveAuthorityV3, type LedgerCursorV3, type LedgerDiagnosticCodeV3, type LedgerDiagnosticV3, type LedgerFrameV3, type PositionedEventV3, type ReadLedgerV3Options, type ReadLedgerV3Result, type ReadLedgerV3SinceResult, readLedgerFramesV3, readLedgerFramesV3Since, readLedgerV3, readLedgerV3Since, type SchemaAdvanceV3, } from "./reader.js";
|
|
27
|
+
export { digestEventV3AuthorityDirectoryV3, eventV3ActiveWatchPath, inspectInvalidActiveAuthorityV3, type LedgerCursorV3, type LedgerDiagnosticCodeV3, type LedgerDiagnosticV3, type LedgerFrameV3, type PositionedEventV3, type ReadLedgerV3Options, type ReadLedgerV3Result, type ReadLedgerV3SinceResult, readLedgerFramesV3, readLedgerFramesV3Since, readLedgerV3, readLedgerV3Since, type SchemaAdvanceV3, } from "./reader.js";
|
|
28
28
|
export { type RecoverInvalidEventLedgerV3Input, type RecoverInvalidEventLedgerV3Result, recoverInvalidEventLedgerV3, } from "./recovery.js";
|
|
29
29
|
export { type EventV3RecoveryDiagnostic, type EventV3RecoveryFailure, type EventV3RecoveryIntent, type EventV3RecoveryReceipt, eventV3RecoveryRecordsRoot, listEventV3RecoveryReceipts, readEventV3RecoveryIntent, readEventV3RecoveryReceipt, validateEventV3RecoveryIntent, validateEventV3RecoveryReceipt, } from "./recovery-record.js";
|
|
30
|
+
export { effectiveRuntimeTelemetryCapabilitiesV3, type RuntimeContextCapabilityEvidenceV3, type RuntimeTelemetryCapabilitiesV3, type RuntimeTelemetryCapabilityEvidenceV3, type RuntimeTelemetryCapabilityObservationV3, type RuntimeTelemetryCapabilityValueV3, type RuntimeTelemetryChannelV3, type RuntimeTelemetryCompletenessV3, } from "./runtime-telemetry-capabilities.js";
|
|
30
31
|
export { type CloseSpanV3Input, captureSpanClockV3, closeSpanStateV3, linuxUptimeNanosecondsV3, type OpenSpanStateV3, type OpenSpanV3Input, openSpanStateV3, type SpanClockV3, } from "./span-state.js";
|
|
31
32
|
export { type DescribePathTargetV3Input, describePathTargetV3, type ExtractTargetsV3Input, exactToolInputFingerprintV3, extractTargetsV3, type TargetDescriptorV3, } from "./targets.js";
|
|
32
33
|
export { type ContextMeasurementV3, emptyHarnessTimingV3, extractTurnTelemetryV3, type HarnessTimingAccumulatorV3, harnessObservationV3, recordHarnessTimingV3, type TelemetryObservationV3, type TurnTelemetryV3, } from "./turn-telemetry.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/events/v3/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAC/B,+BAA+B,GAChC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,2BAA2B,EAC3B,kCAAkC,EAClC,KAAK,kCAAkC,EACvC,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,iBAAiB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,aAAa,EACb,mBAAmB,EACnB,QAAQ,GACT,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,8BAA8B,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,eAAe,EACpB,gCAAgC,EAChC,0BAA0B,EAC1B,sBAAsB,EACtB,KAAK,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/events/v3/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAC/B,+BAA+B,GAChC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,2BAA2B,EAC3B,kCAAkC,EAClC,KAAK,kCAAkC,EACvC,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,KAAK,4BA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C,EACzC,KAAK,uCAAuC,EAC5C,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,GACpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,KAAK,gBAAgB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,eAAe,EACf,KAAK,WAAW,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,yBAAyB,EAC9B,oBAAoB,EACpB,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,gBAAgB,EAChB,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,oBAAoB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,KAAK,0BAA0B,EAC/B,oBAAoB,EACpB,qBAAqB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,KAAK,uBAAuB,EAC5B,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,YAAY,GACb,MAAM,aAAa,CAAC"}
|
|
@@ -3,7 +3,7 @@ export { buildAuthorityTransactionV3, listPendingAuthorityTransactionsV3, prepar
|
|
|
3
3
|
export { ensureEventLedgerV3, initializeEventLedgerV3, } from "./bootstrap.js";
|
|
4
4
|
export { buildEventV3 } from "./builder.js";
|
|
5
5
|
export { canonicalJsonV3, EVENT_V3_CANONICALIZER, fingerprintV3, normalizeNativeIdV3, sha256V3, } from "./canonical.js";
|
|
6
|
-
export { ADAPTER_CAPABILITY_PROFILES_V3, adapterCapabilityProfileDigestV3, adapterCapabilityProfileV3, adapterSignalSupportV3, } from "./capabilities.js";
|
|
6
|
+
export { ADAPTER_CAPABILITY_PROFILES_V3, ADAPTER_WAIT_KINDS_V3, adapterCapabilityProfileDigestV3, adapterCapabilityProfileV3, adapterSignalSupportV3, adapterWaitCoverageMatrixV3, adapterWaitKindSupportV3, } from "./capabilities.js";
|
|
7
7
|
export { capabilityDriftPayloadsV3, measurableDeliveriesV3, } from "./capability-drift.js";
|
|
8
8
|
export { EVENT_V3_CONTRACT_MAJOR, EVENT_V3_CONTRACT_NAME, EVENT_V3_CORE_EVENT_TYPES, EVENT_V3_SCHEMA_ID, EventV3Schema, ObservationV3Schema, OutcomeV3Schema, RecoveryV3Schema, SpanSummaryV3Schema, WaitKindV3Schema, } from "./contract.js";
|
|
9
9
|
export { buildActivationManifestV3, buildCandidateGenesisManifestV3, candidateManifestDigestV3, candidateProfileDigestV3, EVENT_V3_ACTIVATION_MANIFEST, EVENT_V3_GENESIS_MANIFEST, eventV3WriteGateOpen, readEventV3ControlState, repairEventV3ControlPair, validateActivationManifestV3, validateCandidateGenesisManifestV3, } from "./control.js";
|
|
@@ -13,7 +13,7 @@ export { EVENT_V3_FINALIZATION_VIEW_VERSION, FinalizationScopeV3Error, projectFi
|
|
|
13
13
|
export { FINGERPRINT_KEY_STORE_RELATIVE_PATH, fingerprintContextV3, fingerprintKeyStorePathV3, loadOrCreateFingerprintKeyStoreV3, readFingerprintKeyStoreV3, rotateFingerprintEpochV3, } from "./fingerprint-keys.js";
|
|
14
14
|
export { EVENT_V3_SCHEMA_DIGEST } from "./generated.js";
|
|
15
15
|
export { activationIdV3, attestationIdV3, clockIdV3, delegationIdV3, eventIdV3, generationIdV3, genesisIdV3, spanIdV3, } from "./ids.js";
|
|
16
|
-
export { EVENT_V3_LATENCY_PROJECTION_VERSION, projectLatencyV3, } from "./latency.js";
|
|
16
|
+
export { EVENT_V3_LATENCY_PROJECTION_VERSION, projectLatencyV3, runtimeTelemetryEvidenceKeyV3, } from "./latency.js";
|
|
17
17
|
export { EVENT_V3_LIVE_RELATIVE_ROOT, janitorLiveDisplayV3, listLiveDisplayV3, readLiveDisplayV3, safeIntentDisplayV3, tryWriteLiveDisplayV3, writeLiveDisplayV3, } from "./live-feed.js";
|
|
18
18
|
export { hookSignalV3, LIVE_COMMAND_V3_PRODUCER_ID, LIVE_HOOK_V3_PRODUCER_ID, liveEventV3BuildId, liveInstanceIdV3, livePlatformV3, nativeInstanceIdV3, recordLiveHookSignalV3, resolveLiveEventLedgerRouteV3, } from "./live-routing.js";
|
|
19
19
|
export { normalizeCommandEventV3, } from "./producers/command.js";
|
|
@@ -23,9 +23,10 @@ export { recordCoordinationAuthorityV3, } from "./producers/coordination-recorde
|
|
|
23
23
|
export { normalizeHookEventV3, upgradeHookEventV3, } from "./producers/hook.js";
|
|
24
24
|
export { drainHookIntakeSpoolV3, listHookProducerStateRecordsV3, readHookProducerStateV3, recordApprovedSessionEndV3, recordHookSignalV3, } from "./producers/recorder.js";
|
|
25
25
|
export { EVENT_V3_SAFETY_REDUCER_BUILD, reduceSafetyProjectionV3, } from "./projection.js";
|
|
26
|
-
export { digestEventV3AuthorityDirectoryV3, inspectInvalidActiveAuthorityV3, readLedgerFramesV3, readLedgerFramesV3Since, readLedgerV3, readLedgerV3Since, } from "./reader.js";
|
|
26
|
+
export { digestEventV3AuthorityDirectoryV3, eventV3ActiveWatchPath, inspectInvalidActiveAuthorityV3, readLedgerFramesV3, readLedgerFramesV3Since, readLedgerV3, readLedgerV3Since, } from "./reader.js";
|
|
27
27
|
export { recoverInvalidEventLedgerV3, } from "./recovery.js";
|
|
28
28
|
export { eventV3RecoveryRecordsRoot, listEventV3RecoveryReceipts, readEventV3RecoveryIntent, readEventV3RecoveryReceipt, validateEventV3RecoveryIntent, validateEventV3RecoveryReceipt, } from "./recovery-record.js";
|
|
29
|
+
export { effectiveRuntimeTelemetryCapabilitiesV3, } from "./runtime-telemetry-capabilities.js";
|
|
29
30
|
export { captureSpanClockV3, closeSpanStateV3, linuxUptimeNanosecondsV3, openSpanStateV3, } from "./span-state.js";
|
|
30
31
|
export { describePathTargetV3, exactToolInputFingerprintV3, extractTargetsV3, } from "./targets.js";
|
|
31
32
|
export { emptyHarnessTimingV3, extractTurnTelemetryV3, harnessObservationV3, recordHarnessTimingV3, } from "./turn-telemetry.js";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { type AdapterWaitKindV3 } from "./capabilities.js";
|
|
1
2
|
import type { ReadLedgerV3Result } from "./reader.js";
|
|
2
|
-
|
|
3
|
+
import type { RuntimeTelemetryCapabilitiesV3 } from "./runtime-telemetry-capabilities.js";
|
|
4
|
+
export declare const EVENT_V3_LATENCY_PROJECTION_VERSION: "event-v3-latency-v3";
|
|
3
5
|
export type LatencyMetricV3 = {
|
|
4
6
|
state: "observed";
|
|
5
7
|
value_ms: number;
|
|
@@ -21,6 +23,27 @@ export interface ContextCoverageV3 {
|
|
|
21
23
|
event_id: string | null;
|
|
22
24
|
reason: string | null;
|
|
23
25
|
}
|
|
26
|
+
export interface ResponseLatencyV3 {
|
|
27
|
+
/** Turn start to first tool request, or terminal response for an attested no-tool turn. */
|
|
28
|
+
agent_action_ms: LatencyMetricV3;
|
|
29
|
+
/** Turn start to first tool request; unknown with `no_tool_request` for no-tool turns. */
|
|
30
|
+
first_tool_request_ms: LatencyMetricV3;
|
|
31
|
+
/** Last complete tool terminal to the turn terminal. */
|
|
32
|
+
post_tool_response_ms: LatencyMetricV3;
|
|
33
|
+
/** Turn start to terminal response, only when an attested turn used no tools. */
|
|
34
|
+
no_tool_terminal_response_ms: LatencyMetricV3;
|
|
35
|
+
method: "canonical_event_timestamps_v1";
|
|
36
|
+
}
|
|
37
|
+
export type WaitKindCompletenessV3 = "complete" | "lower_bound" | "unknown" | "unsupported";
|
|
38
|
+
export interface WaitKindCoverageV3 {
|
|
39
|
+
kind: AdapterWaitKindV3;
|
|
40
|
+
started_count: number;
|
|
41
|
+
ended_count: number;
|
|
42
|
+
open_count: number;
|
|
43
|
+
duration_ms: LatencyMetricV3;
|
|
44
|
+
completeness: WaitKindCompletenessV3;
|
|
45
|
+
reason: string | null;
|
|
46
|
+
}
|
|
24
47
|
export interface TurnLatencyV3 {
|
|
25
48
|
generation_id: string;
|
|
26
49
|
turn_id: string;
|
|
@@ -35,6 +58,7 @@ export interface TurnLatencyV3 {
|
|
|
35
58
|
wait_ms: LatencyMetricV3;
|
|
36
59
|
occupied_ms: LatencyMetricV3;
|
|
37
60
|
inference_ms: LatencyMetricV3;
|
|
61
|
+
response_latency: ResponseLatencyV3;
|
|
38
62
|
harness_ms: LatencyMetricV3;
|
|
39
63
|
slowest_hook: string | null;
|
|
40
64
|
slowest_hook_ms: number | null;
|
|
@@ -42,6 +66,10 @@ export interface TurnLatencyV3 {
|
|
|
42
66
|
over_attributed_ms: number;
|
|
43
67
|
context_percent: number | null;
|
|
44
68
|
context_coverage: ContextCoverageV3;
|
|
69
|
+
telemetry_capabilities: RuntimeTelemetryCapabilitiesV3 | null;
|
|
70
|
+
/** Equal keys are required before a report compares telemetry-backed values. */
|
|
71
|
+
telemetry_evidence_key: `sha256:${string}` | null;
|
|
72
|
+
wait_coverage_by_kind: Record<AdapterWaitKindV3, WaitKindCoverageV3>;
|
|
45
73
|
span_counts: {
|
|
46
74
|
tool: number;
|
|
47
75
|
command: number;
|
|
@@ -60,4 +88,6 @@ export interface LatencyProjectionV3 {
|
|
|
60
88
|
diagnostics: LatencyProjectionDiagnosticV3[];
|
|
61
89
|
}
|
|
62
90
|
export declare function projectLatencyV3(read: ReadLedgerV3Result): LatencyProjectionV3;
|
|
91
|
+
/** Reports may compare a telemetry-backed channel only inside one evidence key. */
|
|
92
|
+
export declare function runtimeTelemetryEvidenceKeyV3(telemetry: RuntimeTelemetryCapabilitiesV3): `sha256:${string}`;
|
|
63
93
|
//# sourceMappingURL=latency.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"latency.d.ts","sourceRoot":"","sources":["../../../../src/core/events/v3/latency.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file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,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7D,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC;AAED,MAAM,MAAM,iCAAiC,GACzC,yBAAyB,GACzB,yBAAyB,GACzB,mBAAmB,GACnB,kCAAkC,GAClC,iBAAiB,CAAC;AAEtB,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,EAAE,OAAO,mCAAmC,CAAC;IAC/D,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,WAAW,EAAE,6BAA6B,EAAE,CAAC;CAC9C;AAsBD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,GAAG,mBAAmB,CA+B9E;AA4ID,mFAAmF;AACnF,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,8BAA8B,GACxC,UAAU,MAAM,EAAE,CAEpB"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { canonicalJsonV3, sha256V3 } from "./canonical.js";
|
|
2
|
+
import { ADAPTER_WAIT_KINDS_V3 } from "./capabilities.js";
|
|
3
|
+
export const EVENT_V3_LATENCY_PROJECTION_VERSION = "event-v3-latency-v3";
|
|
2
4
|
export function projectLatencyV3(read) {
|
|
3
5
|
if (!read.complete)
|
|
4
6
|
throw new Error("latency projection requires a complete V3 ledger read");
|
|
5
7
|
const events = read.events.map(({ event }) => event);
|
|
6
8
|
const diagnostics = [];
|
|
7
9
|
const terminalByTurn = new Map();
|
|
10
|
+
const telemetryByGeneration = latestTelemetryByGeneration(events);
|
|
8
11
|
for (const event of events) {
|
|
9
12
|
if (event.event_type !== "turn.completed")
|
|
10
13
|
continue;
|
|
@@ -18,13 +21,13 @@ export function projectLatencyV3(read) {
|
|
|
18
21
|
const turns = [...terminalByTurn.values()].map((terminal) => {
|
|
19
22
|
const key = turnKey(terminal);
|
|
20
23
|
const turnEvents = events.filter((event) => turnKey(event) === key);
|
|
21
|
-
return projectTurn(terminal, turnEvents, diagnostics);
|
|
24
|
+
return projectTurn(terminal, turnEvents, diagnostics, telemetryByGeneration.get(terminal.scope.generation_id ?? "") ?? null);
|
|
22
25
|
});
|
|
23
26
|
turns.sort((left, right) => left.generation_id.localeCompare(right.generation_id) ||
|
|
24
27
|
left.turn_id.localeCompare(right.turn_id));
|
|
25
28
|
return { projection_version: EVENT_V3_LATENCY_PROJECTION_VERSION, turns, diagnostics };
|
|
26
29
|
}
|
|
27
|
-
function projectTurn(terminal, events, diagnostics) {
|
|
30
|
+
function projectTurn(terminal, events, diagnostics, telemetryCapabilities) {
|
|
28
31
|
const span = record(terminal.payload.span);
|
|
29
32
|
const wall = metricFromObservation(span.duration_ms, "turn_duration_unknown");
|
|
30
33
|
const wallInterval = intervalFromSpan(terminal);
|
|
@@ -60,6 +63,9 @@ function projectTurn(terminal, events, diagnostics) {
|
|
|
60
63
|
(expectedWaitCount !== undefined && expectedWaitCount !== endedWaitIds.size)) {
|
|
61
64
|
waits.reasons.push("wait_terminal_count_mismatch");
|
|
62
65
|
}
|
|
66
|
+
const waitCoverageComplete = expectedWaitCount !== undefined &&
|
|
67
|
+
expectedWaitCount === endedWaitIds.size &&
|
|
68
|
+
!waitStartEvents.some(({ payload }) => !endedWaitIds.has(string(record(payload).wait_id)));
|
|
63
69
|
const tool = metricFromIntervals(tools);
|
|
64
70
|
const command = metricFromIntervals(commands);
|
|
65
71
|
const wait = metricFromIntervals(waits);
|
|
@@ -74,6 +80,7 @@ function projectTurn(terminal, events, diagnostics) {
|
|
|
74
80
|
reasons: [...tools.reasons, ...commands.reasons, ...waits.reasons],
|
|
75
81
|
});
|
|
76
82
|
const inference = metricFromNestedObservation(terminal.payload.inference, "api_time_ms", "inference_timing_unknown");
|
|
83
|
+
const responseLatency = projectResponseLatency(terminal, events, wall, tools, expectedToolCount);
|
|
77
84
|
const harness = metricFromNestedObservation(terminal.payload.harness, "hook_time_ms", "harness_timing_unknown");
|
|
78
85
|
const slowestHook = slowestHookFromObservation(terminal.payload.harness);
|
|
79
86
|
const residual = residualMetric(wall, occupied, inference, harness);
|
|
@@ -107,6 +114,7 @@ function projectTurn(terminal, events, diagnostics) {
|
|
|
107
114
|
wait_ms: wait,
|
|
108
115
|
occupied_ms: occupied,
|
|
109
116
|
inference_ms: inference,
|
|
117
|
+
response_latency: responseLatency,
|
|
110
118
|
harness_ms: harness,
|
|
111
119
|
slowest_hook: slowestHook.name,
|
|
112
120
|
slowest_hook_ms: slowestHook.duration_ms,
|
|
@@ -114,6 +122,11 @@ function projectTurn(terminal, events, diagnostics) {
|
|
|
114
122
|
over_attributed_ms: overAttributed,
|
|
115
123
|
context_percent: context.percent,
|
|
116
124
|
context_coverage: context.coverage,
|
|
125
|
+
telemetry_capabilities: telemetryCapabilities,
|
|
126
|
+
telemetry_evidence_key: telemetryCapabilities
|
|
127
|
+
? runtimeTelemetryEvidenceKeyV3(telemetryCapabilities)
|
|
128
|
+
: null,
|
|
129
|
+
wait_coverage_by_kind: projectWaitCoverageByKind(waitStartEvents, waitEvents, wallInterval, waitCoverageComplete, waitCount, diagnostics),
|
|
117
130
|
span_counts: {
|
|
118
131
|
tool: toolEvents.length,
|
|
119
132
|
command: commandEvents.length,
|
|
@@ -122,6 +135,117 @@ function projectTurn(terminal, events, diagnostics) {
|
|
|
122
135
|
tool_breakdown: toolBreakdown,
|
|
123
136
|
};
|
|
124
137
|
}
|
|
138
|
+
/** Reports may compare a telemetry-backed channel only inside one evidence key. */
|
|
139
|
+
export function runtimeTelemetryEvidenceKeyV3(telemetry) {
|
|
140
|
+
return sha256V3(canonicalJsonV3(telemetry));
|
|
141
|
+
}
|
|
142
|
+
function latestTelemetryByGeneration(events) {
|
|
143
|
+
const result = new Map();
|
|
144
|
+
for (const event of events) {
|
|
145
|
+
if (event.event_type !== "session.started" &&
|
|
146
|
+
event.event_type !== "session.attestation_changed") {
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
const attestation = record(event.payload.runtime_attestation);
|
|
150
|
+
const telemetry = record(attestation.telemetry);
|
|
151
|
+
if (Object.keys(telemetry).length === 0)
|
|
152
|
+
continue;
|
|
153
|
+
result.set(event.scope.generation_id ?? "", telemetry);
|
|
154
|
+
}
|
|
155
|
+
return result;
|
|
156
|
+
}
|
|
157
|
+
function projectResponseLatency(terminal, events, wall, tools, expectedToolCount) {
|
|
158
|
+
const turnStart = Date.parse(string(record(terminal.payload.span).opened_at));
|
|
159
|
+
const turnEnd = Number.isFinite(turnStart) && wall.state === "observed" ? turnStart + wall.value_ms : undefined;
|
|
160
|
+
const requests = events
|
|
161
|
+
.filter(({ event_type }) => event_type === "tool.requested")
|
|
162
|
+
.map(({ time }) => Date.parse(string(time.observed_at)))
|
|
163
|
+
.filter(Number.isFinite)
|
|
164
|
+
.sort((left, right) => left - right);
|
|
165
|
+
const firstRequest = requests[0];
|
|
166
|
+
const firstTool = Number.isFinite(turnStart) && firstRequest !== undefined
|
|
167
|
+
? observedLatency(firstRequest - turnStart)
|
|
168
|
+
: unknownLatency(expectedToolCount === 0 ? "no_tool_request" : "tool_request_unobserved");
|
|
169
|
+
const noToolTerminal = expectedToolCount === 0
|
|
170
|
+
? wall
|
|
171
|
+
: unknownLatency(expectedToolCount === undefined ? "tool_channel_unattested" : "turn_contains_tools");
|
|
172
|
+
const agentAction = firstRequest !== undefined
|
|
173
|
+
? firstTool
|
|
174
|
+
: expectedToolCount === 0
|
|
175
|
+
? noToolTerminal
|
|
176
|
+
: unknownLatency(expectedToolCount === undefined ? "tool_channel_unattested" : "tool_request_unobserved");
|
|
177
|
+
let postTool = unknownLatency(expectedToolCount === 0
|
|
178
|
+
? "no_tool_completion"
|
|
179
|
+
: expectedToolCount === undefined
|
|
180
|
+
? "tool_channel_unattested"
|
|
181
|
+
: "final_tool_completion_unknown");
|
|
182
|
+
if (turnEnd !== undefined &&
|
|
183
|
+
expectedToolCount !== undefined &&
|
|
184
|
+
expectedToolCount > 0 &&
|
|
185
|
+
tools.reasons.length === 0 &&
|
|
186
|
+
tools.intervals.length === expectedToolCount) {
|
|
187
|
+
postTool = observedLatency(turnEnd - Math.max(...tools.intervals.map(({ end }) => end)));
|
|
188
|
+
}
|
|
189
|
+
return {
|
|
190
|
+
agent_action_ms: agentAction,
|
|
191
|
+
first_tool_request_ms: firstTool,
|
|
192
|
+
post_tool_response_ms: postTool,
|
|
193
|
+
no_tool_terminal_response_ms: noToolTerminal,
|
|
194
|
+
method: "canonical_event_timestamps_v1",
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
function projectWaitCoverageByKind(starts, ends, wall, complete, waitCount, diagnostics) {
|
|
198
|
+
const endedIds = new Set(ends.map(({ payload }) => string(record(payload).wait_id)));
|
|
199
|
+
const unsupported = waitCount.state === "unsupported";
|
|
200
|
+
return Object.fromEntries(ADAPTER_WAIT_KINDS_V3.map((kind) => {
|
|
201
|
+
const kindStarts = starts.filter(({ payload }) => waitKind(payload) === kind);
|
|
202
|
+
const kindEnds = ends.filter(({ payload }) => waitKind(payload) === kind);
|
|
203
|
+
const openCount = kindStarts.filter(({ payload }) => !endedIds.has(string(record(payload).wait_id))).length;
|
|
204
|
+
const set = intervalSet(kindEnds, wall, diagnostics);
|
|
205
|
+
if (!complete)
|
|
206
|
+
set.reasons.push("wait_kind_completeness_unattested");
|
|
207
|
+
const completeness = complete
|
|
208
|
+
? "complete"
|
|
209
|
+
: unsupported
|
|
210
|
+
? kindStarts.length > 0 || kindEnds.length > 0
|
|
211
|
+
? "lower_bound"
|
|
212
|
+
: "unsupported"
|
|
213
|
+
: kindStarts.length > 0 || kindEnds.length > 0
|
|
214
|
+
? "lower_bound"
|
|
215
|
+
: "unknown";
|
|
216
|
+
const reason = complete
|
|
217
|
+
? null
|
|
218
|
+
: unsupported
|
|
219
|
+
? "turn_wait_count_unsupported"
|
|
220
|
+
: "turn_wait_count_unattested";
|
|
221
|
+
return [
|
|
222
|
+
kind,
|
|
223
|
+
{
|
|
224
|
+
kind,
|
|
225
|
+
started_count: kindStarts.length,
|
|
226
|
+
ended_count: kindEnds.length,
|
|
227
|
+
open_count: openCount,
|
|
228
|
+
duration_ms: metricFromIntervals(set),
|
|
229
|
+
completeness,
|
|
230
|
+
reason,
|
|
231
|
+
},
|
|
232
|
+
];
|
|
233
|
+
}));
|
|
234
|
+
}
|
|
235
|
+
function waitKind(payload) {
|
|
236
|
+
const value = string(record(payload).kind);
|
|
237
|
+
return ADAPTER_WAIT_KINDS_V3.includes(value)
|
|
238
|
+
? value
|
|
239
|
+
: "unknown";
|
|
240
|
+
}
|
|
241
|
+
function observedLatency(value) {
|
|
242
|
+
return Number.isFinite(value) && value >= 0
|
|
243
|
+
? { state: "observed", value_ms: Math.floor(value) }
|
|
244
|
+
: unknownLatency("event_time_order_invalid");
|
|
245
|
+
}
|
|
246
|
+
function unknownLatency(reason) {
|
|
247
|
+
return { state: "unknown", known_ms: 0, reasons: [reason] };
|
|
248
|
+
}
|
|
125
249
|
function groupByTool(events) {
|
|
126
250
|
const groups = new Map();
|
|
127
251
|
for (const event of events) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Adapter } from "../../adapter.js";
|
|
2
2
|
import type { ParsedPayload } from "../../hooks/adapter/parse.js";
|
|
3
|
+
import type { EventV3 } from "./contract.js";
|
|
3
4
|
import { type EventV3WriteMode } from "./control.js";
|
|
4
5
|
import type { HookSignalV3 } from "./producers/hook.js";
|
|
5
6
|
import type { TurnRitualEvidenceV3 } from "./producers/hook-base.js";
|
|
@@ -31,6 +32,12 @@ export declare function liveInstanceIdV3(instanceId: string): `inst_${string}`;
|
|
|
31
32
|
*/
|
|
32
33
|
export declare function nativeInstanceIdV3(instanceId: string): string;
|
|
33
34
|
export declare function hookSignalV3(eventName: string): HookSignalV3 | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Tool lifecycle hooks may stop after publishing their event to the durable
|
|
37
|
+
* ready WAL. The next non-tool hook drains the causal batch into the active
|
|
38
|
+
* ledger, avoiding one global append-lease cycle for every tool boundary.
|
|
39
|
+
*/
|
|
40
|
+
export declare function liveHookSignalDefersDrainV3(eventName: string, override?: string): boolean;
|
|
34
41
|
export declare function recordLiveHookSignalV3(input: {
|
|
35
42
|
coordRoot: string;
|
|
36
43
|
route: Extract<LiveEventLedgerRouteV3, {
|
|
@@ -53,5 +60,28 @@ export declare function recordLiveHookSignalV3(input: {
|
|
|
53
60
|
}): RecordHookSignalV3Result | {
|
|
54
61
|
state: "ignored";
|
|
55
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* Open the child generation named by a native SubagentStart event.
|
|
65
|
+
*
|
|
66
|
+
* The parent producer owns the delegation span and mints its child generation
|
|
67
|
+
* id. This second crash-safe session-start gives that exact generation its own
|
|
68
|
+
* producer authority, so later child tool hooks can resolve away from the
|
|
69
|
+
* parent session and the disposable heartbeat projection has a real source.
|
|
70
|
+
*/
|
|
71
|
+
export declare function recordLiveDelegatedChildSessionV3(input: {
|
|
72
|
+
coordRoot: string;
|
|
73
|
+
route: Extract<LiveEventLedgerRouteV3, {
|
|
74
|
+
state: "v3";
|
|
75
|
+
}>;
|
|
76
|
+
parentEvent: Extract<EventV3, {
|
|
77
|
+
event_type: "agent.started";
|
|
78
|
+
}>;
|
|
79
|
+
payload: ParsedPayload;
|
|
80
|
+
adapter: Adapter;
|
|
81
|
+
bridge?: "codex-wsl";
|
|
82
|
+
monotonic_ns?: string;
|
|
83
|
+
}): RecordHookSignalV3Result | {
|
|
84
|
+
state: "ignored";
|
|
85
|
+
};
|
|
56
86
|
export declare function livePlatformV3(): "linux" | "windows" | "macos" | "unknown";
|
|
57
87
|
//# sourceMappingURL=live-routing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-routing.d.ts","sourceRoot":"","sources":["../../../../src/core/events/v3/live-routing.ts"],"names":[],"mappings":"AACA,O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