@kici-dev/engine 0.4.0 → 0.6.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.
Files changed (81) hide show
  1. package/dist/audit/access-log-policy.js +1 -0
  2. package/dist/audit/retention-policy.js +2 -0
  3. package/dist/context/held-run-job-id.d.ts +26 -10
  4. package/dist/context/held-run-job-id.js +30 -11
  5. package/dist/context/host-match.js +2 -1
  6. package/dist/context/index.d.ts +1 -1
  7. package/dist/context/index.js +3 -3
  8. package/dist/context/types.d.ts +10 -1
  9. package/dist/context/types.js +10 -1
  10. package/dist/index.d.ts +6 -2
  11. package/dist/index.js +17 -12
  12. package/dist/labels/compile.d.ts +2 -7
  13. package/dist/labels/compile.js +1 -10
  14. package/dist/labels.d.ts +74 -12
  15. package/dist/labels.js +82 -17
  16. package/dist/mcp/held-run-resolve.d.ts +40 -0
  17. package/dist/mcp/held-run-resolve.js +68 -15
  18. package/dist/mcp/tool-schemas.d.ts +4 -0
  19. package/dist/mcp/tool-schemas.js +13 -1
  20. package/dist/metrics/catalog-policy.d.ts +17 -3
  21. package/dist/metrics/catalog-policy.js +44 -13
  22. package/dist/metrics/metric-catalog.generated.d.ts +140 -0
  23. package/dist/metrics/metric-catalog.generated.js +168 -0
  24. package/dist/protocol/dashboard-global-workflows.js +2 -2
  25. package/dist/protocol/event-log-payload.js +1 -1
  26. package/dist/protocol/messages/access-log.d.ts +5 -0
  27. package/dist/protocol/messages/access-log.js +1 -0
  28. package/dist/protocol/messages/actor.d.ts +13 -2
  29. package/dist/protocol/messages/actor.js +16 -5
  30. package/dist/protocol/messages/common.js +1 -1
  31. package/dist/protocol/messages/dashboard-global-workflows.d.ts +29 -3
  32. package/dist/protocol/messages/dashboard-global-workflows.js +48 -4
  33. package/dist/protocol/messages/dashboard.d.ts +48 -7
  34. package/dist/protocol/messages/dashboard.js +62 -6
  35. package/dist/protocol/messages/execution-status.d.ts +44 -0
  36. package/dist/protocol/messages/execution-status.js +69 -2
  37. package/dist/protocol/messages/git-credential-relay.d.ts +78 -0
  38. package/dist/protocol/messages/git-credential-relay.js +86 -0
  39. package/dist/protocol/messages/orchestrator-agent.d.ts +138 -0
  40. package/dist/protocol/messages/orchestrator-agent.js +131 -3
  41. package/dist/protocol/messages/peer.d.ts +7 -0
  42. package/dist/protocol/messages/peer.js +18 -1
  43. package/dist/protocol/messages/platform-orchestrator.d.ts +155 -2
  44. package/dist/protocol/messages/platform-orchestrator.js +178 -19
  45. package/dist/protocol/version.d.ts +19 -2
  46. package/dist/protocol/version.js +20 -3
  47. package/dist/provenance/verify.js +11 -10
  48. package/dist/provider/check-status-poster.d.ts +37 -2
  49. package/dist/provider/contributor-resolver.d.ts +11 -3
  50. package/dist/provider/file-contents-fetcher.d.ts +39 -0
  51. package/dist/provider/file-contents-fetcher.js +2 -0
  52. package/dist/provider/git-credential.d.ts +77 -0
  53. package/dist/provider/git-credential.js +10 -0
  54. package/dist/provider/index.d.ts +4 -0
  55. package/dist/provider/index.js +2 -1
  56. package/dist/provider/webhook-normalizer.d.ts +12 -12
  57. package/dist/repo/pattern-negation.d.ts +73 -0
  58. package/dist/repo/pattern-negation.js +86 -0
  59. package/dist/safe-regex.d.ts +16 -0
  60. package/dist/safe-regex.js +24 -0
  61. package/dist/scaler/registry-auth.d.ts +18 -0
  62. package/dist/scaler/registry-auth.js +28 -0
  63. package/dist/scaler/scaler-backend-type.d.ts +35 -0
  64. package/dist/scaler/scaler-backend-type.js +39 -2
  65. package/dist/scaler/scaler-events.d.ts +79 -0
  66. package/dist/scaler/scaler-events.js +87 -0
  67. package/dist/trigger/compiled-matchers.d.ts +21 -1
  68. package/dist/trigger/compiled-matchers.js +30 -3
  69. package/dist/trigger/content-requirements.d.ts +31 -0
  70. package/dist/trigger/content-requirements.js +125 -0
  71. package/dist/trigger/decision-trace.d.ts +168 -0
  72. package/dist/trigger/decision-trace.js +207 -4
  73. package/dist/trigger/jsonpath-matcher.js +5 -1
  74. package/dist/trigger/matcher.js +61 -10
  75. package/dist/trigger/text-match.d.ts +27 -0
  76. package/dist/trigger/text-match.js +86 -0
  77. package/dist/trigger/types.d.ts +265 -23
  78. package/dist/trigger/types.js +37 -5
  79. package/dist/ws/rate-limiter.js +3 -3
  80. package/package.json +20 -3
  81. package/sbom.spdx.json +40 -15
@@ -1,4 +1,6 @@
1
1
  export declare const MetricNames: {
2
+ readonly KICI_AGENT_BETWEEN_JOBS_RESET_DURATION_SECONDS: 'kici_agent_between_jobs_reset_duration_seconds';
3
+ readonly KICI_AGENT_BETWEEN_JOBS_RESET_TOTAL: 'kici_agent_between_jobs_reset_total';
2
4
  readonly KICI_AGENT_CLONE_DURATION_SECONDS: 'kici_agent_clone_duration_seconds';
3
5
  readonly KICI_AGENT_CONNECTION_STATUS: 'kici_agent_connection_status';
4
6
  readonly KICI_AGENT_JOBS_ACTIVE: 'kici_agent_jobs_active';
@@ -7,6 +9,8 @@ export declare const MetricNames: {
7
9
  readonly KICI_AGENT_LOG_BACKPRESSURE_EVENTS_TOTAL: 'kici_agent_log_backpressure_events_total';
8
10
  readonly KICI_AGENT_LOG_BYTES_TOTAL: 'kici_agent_log_bytes_total';
9
11
  readonly KICI_AGENT_LOG_LINES_DROPPED_TOTAL: 'kici_agent_log_lines_dropped_total';
12
+ readonly KICI_AGENT_ORPHAN_CLEANUP_TOTAL: 'kici_agent_orphan_cleanup_total';
13
+ readonly KICI_AGENT_ORPHANS_REAPED_TOTAL: 'kici_agent_orphans_reaped_total';
10
14
  readonly KICI_AGENT_STEP_DURATION_SECONDS: 'kici_agent_step_duration_seconds';
11
15
  readonly KICI_AGENT_STEPS_TOTAL: 'kici_agent_steps_total';
12
16
  readonly KICI_BILLING_EMAIL_SEND_TOTAL: 'kici_billing_email_send_total';
@@ -36,6 +40,7 @@ export declare const MetricNames: {
36
40
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: 'kici_orch_dispatch_queue_depth_by_label';
37
41
  readonly KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: 'kici_orch_dispatch_queue_rows_pruned_total';
38
42
  readonly KICI_ORCH_EVENT_ATTEMPTS: 'kici_orch_event_attempts';
43
+ readonly KICI_ORCH_EVENT_CATCH_UP_FAILURES_TOTAL: 'kici_orch_event_catch_up_failures_total';
39
44
  readonly KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: 'kici_orch_event_dispatch_success_total';
40
45
  readonly KICI_ORCH_EVENT_DLQ_DEPTH: 'kici_orch_event_dlq_depth';
41
46
  readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'kici_orch_event_dlq_total';
@@ -43,7 +48,13 @@ export declare const MetricNames: {
43
48
  readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'kici_orch_event_retry_total';
44
49
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'kici_orch_execution_duration_seconds';
45
50
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'kici_orch_executions_total';
51
+ readonly KICI_ORCH_FORK_EVENTS_IGNORED_TOTAL: 'kici_orch_fork_events_ignored_total';
46
52
  readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'kici_orch_github_check_run_total';
53
+ readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'kici_orch_global_eval_cache_lookups_total';
54
+ readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'kici_orch_global_eval_candidates_total';
55
+ readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'kici_orch_global_eval_jobs_generated';
56
+ readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'kici_orch_global_eval_round_duration_seconds';
57
+ readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'kici_orch_global_eval_verdicts_total';
47
58
  readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'kici_orch_ingest_admitted_total';
48
59
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'kici_orch_ingest_event_loop_delay_max_ms';
49
60
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'kici_orch_ingest_event_loop_delay_p99_ms';
@@ -76,12 +87,25 @@ export declare const MetricNames: {
76
87
  readonly KICI_ORCH_PENDING_ATTESTATIONS_CURRENT: 'kici_orch_pending_attestations_current';
77
88
  readonly KICI_ORCH_PG_POOL_CLIENT_ERRORS_TOTAL: 'kici_orch_pg_pool_client_errors_total';
78
89
  readonly KICI_ORCH_REJECTED_ATTESTATIONS_CURRENT: 'kici_orch_rejected_attestations_current';
90
+ readonly KICI_ORCH_SCALER_ADOPTION_LOOKUP_FAILURES_TOTAL: 'kici_orch_scaler_adoption_lookup_failures_total';
91
+ readonly KICI_ORCH_SCALER_CAP_LOCK_FAILURES_TOTAL: 'kici_orch_scaler_cap_lock_failures_total';
79
92
  readonly KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: 'kici_orch_scaler_config_reloads_total';
80
93
  readonly KICI_ORCH_SCALER_CPUS_USED: 'kici_orch_scaler_cpus_used';
94
+ readonly KICI_ORCH_SCALER_EXTERNAL_PROVISION_TIMEOUT_TOTAL: 'kici_orch_scaler_external_provision_timeout_total';
95
+ readonly KICI_ORCH_SCALER_EXTERNAL_PROVISIONING_ACTIVE: 'kici_orch_scaler_external_provisioning_active';
81
96
  readonly KICI_ORCH_SCALER_MEMORY_BYTES_USED: 'kici_orch_scaler_memory_bytes_used';
97
+ readonly KICI_ORCH_SCALER_REAP_BLOCKED: 'kici_orch_scaler_reap_blocked';
98
+ readonly KICI_ORCH_SCALER_REAP_UNSEEN_PROVISIONS: 'kici_orch_scaler_reap_unseen_provisions';
82
99
  readonly KICI_ORCH_SCALER_REDISPATCH_TOTAL: 'kici_orch_scaler_redispatch_total';
100
+ readonly KICI_ORCH_SCALER_SCALE_DOWN_EMITTED_TOTAL: 'kici_orch_scaler_scale_down_emitted_total';
101
+ readonly KICI_ORCH_SCALER_SCALE_UP_EMITTED_TOTAL: 'kici_orch_scaler_scale_up_emitted_total';
83
102
  readonly KICI_ORCH_SCALER_SPAWN_FAILURES_TOTAL: 'kici_orch_scaler_spawn_failures_total';
84
103
  readonly KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: 'kici_orch_scaler_spawn_refusals_total';
104
+ readonly KICI_ORCH_SCALER_WARM_POOL_IN_FLIGHT: 'kici_orch_scaler_warm_pool_in_flight';
105
+ readonly KICI_ORCH_SCALER_WARM_POOL_READY: 'kici_orch_scaler_warm_pool_ready';
106
+ readonly KICI_ORCH_SCALER_WARM_POOL_REAPED_TOTAL: 'kici_orch_scaler_warm_pool_reaped_total';
107
+ readonly KICI_ORCH_SCALER_WARM_POOL_SPAWNS_TOTAL: 'kici_orch_scaler_warm_pool_spawns_total';
108
+ readonly KICI_ORCH_SCALER_WARM_POOL_TARGET: 'kici_orch_scaler_warm_pool_target';
85
109
  readonly KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: 'kici_orch_source_cache_hits_total';
86
110
  readonly KICI_ORCH_SOURCE_CACHE_MISSES_TOTAL: 'kici_orch_source_cache_misses_total';
87
111
  readonly KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: 'kici_orch_stale_detection_duration_seconds';
@@ -94,6 +118,7 @@ export declare const MetricNames: {
94
118
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'kici_orch_trust_match_refused_no_id_total';
95
119
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'kici_orch_trust_policy_decisions_total';
96
120
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'kici_orch_unroutable_fast_failed_total';
121
+ readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'kici_orch_webhook_pipeline_failures_total';
97
122
  readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'kici_orch_webhooks_processed_total';
98
123
  readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'kici_orch_webhooks_received_total';
99
124
  readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'kici_orch_ws_nack_received_total';
@@ -132,6 +157,9 @@ export declare const MetricNames: {
132
157
  readonly KICI_PLATFORM_LOG_LINES_FORWARDED_TOTAL: 'kici_platform_log_lines_forwarded_total';
133
158
  readonly KICI_PLATFORM_METRICS_QUERY_RATE_LIMITED_TOTAL: 'kici_platform_metrics_query_rate_limited_total';
134
159
  readonly KICI_PLATFORM_MIMIR_RELAY_ERRORS_TOTAL: 'kici_platform_mimir_relay_errors_total';
160
+ readonly KICI_PLATFORM_MIMIR_RELAY_FINAL_DROPS_TOTAL: 'kici_platform_mimir_relay_final_drops_total';
161
+ readonly KICI_PLATFORM_MIMIR_RELAY_RETRIES_TOTAL: 'kici_platform_mimir_relay_retries_total';
162
+ readonly KICI_PLATFORM_MIMIR_RELAY_SHED_TOTAL: 'kici_platform_mimir_relay_shed_total';
135
163
  readonly KICI_PLATFORM_NOTIFICATIONS_DELIVERED_TOTAL: 'kici_platform_notifications_delivered_total';
136
164
  readonly KICI_PLATFORM_NOTIFICATIONS_SUPPRESSED_TOTAL: 'kici_platform_notifications_suppressed_total';
137
165
  readonly KICI_PLATFORM_ORCH_METRICS_FILTERED_TOTAL: 'kici_platform_orch_metrics_filtered_total';
@@ -201,6 +229,8 @@ export declare const MetricNames: {
201
229
  };
202
230
  export type MetricName = (typeof MetricNames)[keyof typeof MetricNames];
203
231
  export declare const MetricLabels: {
232
+ readonly KICI_AGENT_BETWEEN_JOBS_RESET_DURATION_SECONDS: readonly ['scaler'];
233
+ readonly KICI_AGENT_BETWEEN_JOBS_RESET_TOTAL: readonly ['status', 'scaler'];
204
234
  readonly KICI_AGENT_CLONE_DURATION_SECONDS: readonly ['scaler'];
205
235
  readonly KICI_AGENT_CONNECTION_STATUS: readonly ['scaler'];
206
236
  readonly KICI_AGENT_JOBS_ACTIVE: readonly ['scaler'];
@@ -209,6 +239,8 @@ export declare const MetricLabels: {
209
239
  readonly KICI_AGENT_LOG_BACKPRESSURE_EVENTS_TOTAL: readonly ['mode', 'scaler'];
210
240
  readonly KICI_AGENT_LOG_BYTES_TOTAL: readonly ['scaler'];
211
241
  readonly KICI_AGENT_LOG_LINES_DROPPED_TOTAL: readonly ['scaler'];
242
+ readonly KICI_AGENT_ORPHAN_CLEANUP_TOTAL: readonly ['status', 'scaler'];
243
+ readonly KICI_AGENT_ORPHANS_REAPED_TOTAL: readonly ['scaler'];
212
244
  readonly KICI_AGENT_STEP_DURATION_SECONDS: readonly ['scaler'];
213
245
  readonly KICI_AGENT_STEPS_TOTAL: readonly ['status', 'scaler'];
214
246
  readonly KICI_BILLING_EMAIL_SEND_TOTAL: readonly ['kind', 'status'];
@@ -238,6 +270,7 @@ export declare const MetricLabels: {
238
270
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: readonly ['status', 'label'];
239
271
  readonly KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: readonly [];
240
272
  readonly KICI_ORCH_EVENT_ATTEMPTS: readonly ['event_name', 'result'];
273
+ readonly KICI_ORCH_EVENT_CATCH_UP_FAILURES_TOTAL: readonly [];
241
274
  readonly KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: readonly ['event_name'];
242
275
  readonly KICI_ORCH_EVENT_DLQ_DEPTH: readonly [];
243
276
  readonly KICI_ORCH_EVENT_DLQ_TOTAL: readonly ['event_name', 'reason'];
@@ -245,7 +278,13 @@ export declare const MetricLabels: {
245
278
  readonly KICI_ORCH_EVENT_RETRY_TOTAL: readonly ['event_name'];
246
279
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: readonly [];
247
280
  readonly KICI_ORCH_EXECUTIONS_TOTAL: readonly ['status'];
281
+ readonly KICI_ORCH_FORK_EVENTS_IGNORED_TOTAL: readonly ['provider'];
248
282
  readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: readonly ['operation'];
283
+ readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: readonly ['result'];
284
+ readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: readonly [];
285
+ readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: readonly [];
286
+ readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: readonly ['result'];
287
+ readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: readonly ['outcome'];
249
288
  readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: readonly [];
250
289
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: readonly [];
251
290
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: readonly [];
@@ -278,12 +317,25 @@ export declare const MetricLabels: {
278
317
  readonly KICI_ORCH_PENDING_ATTESTATIONS_CURRENT: readonly [];
279
318
  readonly KICI_ORCH_PG_POOL_CLIENT_ERRORS_TOTAL: readonly ['source'];
280
319
  readonly KICI_ORCH_REJECTED_ATTESTATIONS_CURRENT: readonly [];
320
+ readonly KICI_ORCH_SCALER_ADOPTION_LOOKUP_FAILURES_TOTAL: readonly [];
321
+ readonly KICI_ORCH_SCALER_CAP_LOCK_FAILURES_TOTAL: readonly ['reason'];
281
322
  readonly KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: readonly ['result'];
282
323
  readonly KICI_ORCH_SCALER_CPUS_USED: readonly ['scaler', 'scalerType', 'machinePool'];
324
+ readonly KICI_ORCH_SCALER_EXTERNAL_PROVISION_TIMEOUT_TOTAL: readonly ['scaler'];
325
+ readonly KICI_ORCH_SCALER_EXTERNAL_PROVISIONING_ACTIVE: readonly ['scaler'];
283
326
  readonly KICI_ORCH_SCALER_MEMORY_BYTES_USED: readonly ['scaler', 'scalerType', 'machinePool'];
327
+ readonly KICI_ORCH_SCALER_REAP_BLOCKED: readonly [];
328
+ readonly KICI_ORCH_SCALER_REAP_UNSEEN_PROVISIONS: readonly [];
284
329
  readonly KICI_ORCH_SCALER_REDISPATCH_TOTAL: readonly ['trigger'];
330
+ readonly KICI_ORCH_SCALER_SCALE_DOWN_EMITTED_TOTAL: readonly ['scaler', 'reason'];
331
+ readonly KICI_ORCH_SCALER_SCALE_UP_EMITTED_TOTAL: readonly ['scaler'];
285
332
  readonly KICI_ORCH_SCALER_SPAWN_FAILURES_TOTAL: readonly ['backend', 'bound'];
286
333
  readonly KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: readonly [];
334
+ readonly KICI_ORCH_SCALER_WARM_POOL_IN_FLIGHT: readonly ['scaler', 'labelSet'];
335
+ readonly KICI_ORCH_SCALER_WARM_POOL_READY: readonly ['scaler', 'labelSet'];
336
+ readonly KICI_ORCH_SCALER_WARM_POOL_REAPED_TOTAL: readonly ['scaler'];
337
+ readonly KICI_ORCH_SCALER_WARM_POOL_SPAWNS_TOTAL: readonly ['scaler'];
338
+ readonly KICI_ORCH_SCALER_WARM_POOL_TARGET: readonly ['scaler', 'labelSet'];
287
339
  readonly KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: readonly [];
288
340
  readonly KICI_ORCH_SOURCE_CACHE_MISSES_TOTAL: readonly [];
289
341
  readonly KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: readonly [];
@@ -296,6 +348,7 @@ export declare const MetricLabels: {
296
348
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: readonly ['reason'];
297
349
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: readonly ['arm', 'action'];
298
350
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: readonly [];
351
+ readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: readonly ['phase'];
299
352
  readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: readonly ['result'];
300
353
  readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: readonly ['source', 'event'];
301
354
  readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: readonly [];
@@ -334,6 +387,9 @@ export declare const MetricLabels: {
334
387
  readonly KICI_PLATFORM_LOG_LINES_FORWARDED_TOTAL: readonly [];
335
388
  readonly KICI_PLATFORM_METRICS_QUERY_RATE_LIMITED_TOTAL: readonly ['org_id'];
336
389
  readonly KICI_PLATFORM_MIMIR_RELAY_ERRORS_TOTAL: readonly ['reason'];
390
+ readonly KICI_PLATFORM_MIMIR_RELAY_FINAL_DROPS_TOTAL: readonly ['reason'];
391
+ readonly KICI_PLATFORM_MIMIR_RELAY_RETRIES_TOTAL: readonly ['reason'];
392
+ readonly KICI_PLATFORM_MIMIR_RELAY_SHED_TOTAL: readonly [];
337
393
  readonly KICI_PLATFORM_NOTIFICATIONS_DELIVERED_TOTAL: readonly ['channel_type', 'result'];
338
394
  readonly KICI_PLATFORM_NOTIFICATIONS_SUPPRESSED_TOTAL: readonly ['org_id'];
339
395
  readonly KICI_PLATFORM_ORCH_METRICS_FILTERED_TOTAL: readonly ['reason', 'metric'];
@@ -402,6 +458,8 @@ export declare const MetricLabels: {
402
458
  readonly V8JS_RESOURCE_ACTIVE: readonly ['v8js.resource.type', 'scaler'];
403
459
  };
404
460
  export declare const MetricKind: {
461
+ readonly KICI_AGENT_BETWEEN_JOBS_RESET_DURATION_SECONDS: 'histogram';
462
+ readonly KICI_AGENT_BETWEEN_JOBS_RESET_TOTAL: 'counter';
405
463
  readonly KICI_AGENT_CLONE_DURATION_SECONDS: 'histogram';
406
464
  readonly KICI_AGENT_CONNECTION_STATUS: 'upDownCounter';
407
465
  readonly KICI_AGENT_JOBS_ACTIVE: 'upDownCounter';
@@ -410,6 +468,8 @@ export declare const MetricKind: {
410
468
  readonly KICI_AGENT_LOG_BACKPRESSURE_EVENTS_TOTAL: 'counter';
411
469
  readonly KICI_AGENT_LOG_BYTES_TOTAL: 'counter';
412
470
  readonly KICI_AGENT_LOG_LINES_DROPPED_TOTAL: 'counter';
471
+ readonly KICI_AGENT_ORPHAN_CLEANUP_TOTAL: 'counter';
472
+ readonly KICI_AGENT_ORPHANS_REAPED_TOTAL: 'counter';
413
473
  readonly KICI_AGENT_STEP_DURATION_SECONDS: 'histogram';
414
474
  readonly KICI_AGENT_STEPS_TOTAL: 'counter';
415
475
  readonly KICI_BILLING_EMAIL_SEND_TOTAL: 'counter';
@@ -439,6 +499,7 @@ export declare const MetricKind: {
439
499
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: 'observableGauge';
440
500
  readonly KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: 'counter';
441
501
  readonly KICI_ORCH_EVENT_ATTEMPTS: 'histogram';
502
+ readonly KICI_ORCH_EVENT_CATCH_UP_FAILURES_TOTAL: 'counter';
442
503
  readonly KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: 'counter';
443
504
  readonly KICI_ORCH_EVENT_DLQ_DEPTH: 'observableGauge';
444
505
  readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'counter';
@@ -446,7 +507,13 @@ export declare const MetricKind: {
446
507
  readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'counter';
447
508
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'histogram';
448
509
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'counter';
510
+ readonly KICI_ORCH_FORK_EVENTS_IGNORED_TOTAL: 'counter';
449
511
  readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'counter';
512
+ readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'counter';
513
+ readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'counter';
514
+ readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'histogram';
515
+ readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'histogram';
516
+ readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'counter';
450
517
  readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'counter';
451
518
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'observableGauge';
452
519
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'observableGauge';
@@ -479,12 +546,25 @@ export declare const MetricKind: {
479
546
  readonly KICI_ORCH_PENDING_ATTESTATIONS_CURRENT: 'observableGauge';
480
547
  readonly KICI_ORCH_PG_POOL_CLIENT_ERRORS_TOTAL: 'counter';
481
548
  readonly KICI_ORCH_REJECTED_ATTESTATIONS_CURRENT: 'observableGauge';
549
+ readonly KICI_ORCH_SCALER_ADOPTION_LOOKUP_FAILURES_TOTAL: 'counter';
550
+ readonly KICI_ORCH_SCALER_CAP_LOCK_FAILURES_TOTAL: 'counter';
482
551
  readonly KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: 'counter';
483
552
  readonly KICI_ORCH_SCALER_CPUS_USED: 'observableGauge';
553
+ readonly KICI_ORCH_SCALER_EXTERNAL_PROVISION_TIMEOUT_TOTAL: 'counter';
554
+ readonly KICI_ORCH_SCALER_EXTERNAL_PROVISIONING_ACTIVE: 'observableGauge';
484
555
  readonly KICI_ORCH_SCALER_MEMORY_BYTES_USED: 'observableGauge';
556
+ readonly KICI_ORCH_SCALER_REAP_BLOCKED: 'observableGauge';
557
+ readonly KICI_ORCH_SCALER_REAP_UNSEEN_PROVISIONS: 'observableGauge';
485
558
  readonly KICI_ORCH_SCALER_REDISPATCH_TOTAL: 'counter';
559
+ readonly KICI_ORCH_SCALER_SCALE_DOWN_EMITTED_TOTAL: 'counter';
560
+ readonly KICI_ORCH_SCALER_SCALE_UP_EMITTED_TOTAL: 'counter';
486
561
  readonly KICI_ORCH_SCALER_SPAWN_FAILURES_TOTAL: 'counter';
487
562
  readonly KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: 'observableGauge';
563
+ readonly KICI_ORCH_SCALER_WARM_POOL_IN_FLIGHT: 'observableGauge';
564
+ readonly KICI_ORCH_SCALER_WARM_POOL_READY: 'observableGauge';
565
+ readonly KICI_ORCH_SCALER_WARM_POOL_REAPED_TOTAL: 'counter';
566
+ readonly KICI_ORCH_SCALER_WARM_POOL_SPAWNS_TOTAL: 'counter';
567
+ readonly KICI_ORCH_SCALER_WARM_POOL_TARGET: 'observableGauge';
488
568
  readonly KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: 'counter';
489
569
  readonly KICI_ORCH_SOURCE_CACHE_MISSES_TOTAL: 'counter';
490
570
  readonly KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: 'histogram';
@@ -497,6 +577,7 @@ export declare const MetricKind: {
497
577
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'counter';
498
578
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'counter';
499
579
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'counter';
580
+ readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'counter';
500
581
  readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'counter';
501
582
  readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'counter';
502
583
  readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'counter';
@@ -535,6 +616,9 @@ export declare const MetricKind: {
535
616
  readonly KICI_PLATFORM_LOG_LINES_FORWARDED_TOTAL: 'counter';
536
617
  readonly KICI_PLATFORM_METRICS_QUERY_RATE_LIMITED_TOTAL: 'counter';
537
618
  readonly KICI_PLATFORM_MIMIR_RELAY_ERRORS_TOTAL: 'counter';
619
+ readonly KICI_PLATFORM_MIMIR_RELAY_FINAL_DROPS_TOTAL: 'counter';
620
+ readonly KICI_PLATFORM_MIMIR_RELAY_RETRIES_TOTAL: 'counter';
621
+ readonly KICI_PLATFORM_MIMIR_RELAY_SHED_TOTAL: 'counter';
538
622
  readonly KICI_PLATFORM_NOTIFICATIONS_DELIVERED_TOTAL: 'counter';
539
623
  readonly KICI_PLATFORM_NOTIFICATIONS_SUPPRESSED_TOTAL: 'counter';
540
624
  readonly KICI_PLATFORM_ORCH_METRICS_FILTERED_TOTAL: 'counter';
@@ -603,6 +687,8 @@ export declare const MetricKind: {
603
687
  readonly V8JS_RESOURCE_ACTIVE: 'gauge';
604
688
  };
605
689
  export declare const MetricDescription: {
690
+ readonly KICI_AGENT_BETWEEN_JOBS_RESET_DURATION_SECONDS: 'Between-jobs reset command duration in seconds';
691
+ readonly KICI_AGENT_BETWEEN_JOBS_RESET_TOTAL: 'Total operator between-jobs reset command invocations';
606
692
  readonly KICI_AGENT_CLONE_DURATION_SECONDS: 'Git clone duration in seconds';
607
693
  readonly KICI_AGENT_CONNECTION_STATUS: 'Orchestrator WebSocket connection status (0=disconnected, 1=connected)';
608
694
  readonly KICI_AGENT_JOBS_ACTIVE: 'Number of currently running jobs';
@@ -611,6 +697,8 @@ export declare const MetricDescription: {
611
697
  readonly KICI_AGENT_LOG_BACKPRESSURE_EVENTS_TOTAL: 'Total log-streamer backpressure rising-edge events';
612
698
  readonly KICI_AGENT_LOG_BYTES_TOTAL: 'Total log bytes streamed';
613
699
  readonly KICI_AGENT_LOG_LINES_DROPPED_TOTAL: 'Total log lines dropped due to backpressure';
700
+ readonly KICI_AGENT_ORPHAN_CLEANUP_TOTAL: 'Total out-of-band declared-cleanup re-runs';
701
+ readonly KICI_AGENT_ORPHANS_REAPED_TOTAL: 'Total processes killed by the between-jobs process-group reap';
614
702
  readonly KICI_AGENT_STEP_DURATION_SECONDS: 'Step execution duration in seconds';
615
703
  readonly KICI_AGENT_STEPS_TOTAL: 'Total number of completed steps';
616
704
  readonly KICI_BILLING_EMAIL_SEND_TOTAL: 'Billing emails sent, by kind and status';
@@ -640,6 +728,7 @@ export declare const MetricDescription: {
640
728
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: 'Current pending dispatch_queue depth per runs_on label (multi-label jobs fan out)';
641
729
  readonly KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: 'Terminal dispatch_queue rows deleted by the retention sweep';
642
730
  readonly KICI_ORCH_EVENT_ATTEMPTS: 'Distribution of dispatch attempts at terminal outcome (success or DLQ)';
731
+ readonly KICI_ORCH_EVENT_CATCH_UP_FAILURES_TOTAL: 'Startup internal-event catch-up scans that threw';
643
732
  readonly KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: 'Internal events delivered to all matching workflows successfully (after the lease commits processed=true)';
644
733
  readonly KICI_ORCH_EVENT_DLQ_DEPTH: 'Current count of events sitting in the DLQ awaiting operator triage';
645
734
  readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'Internal events moved to the DLQ after exhausting retries';
@@ -647,7 +736,13 @@ export declare const MetricDescription: {
647
736
  readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'Internal-event dispatch failures that triggered a retry (lease released, next_retry_at scheduled)';
648
737
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'Duration of execution runs in seconds';
649
738
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'Total number of execution runs';
739
+ readonly KICI_ORCH_FORK_EVENTS_IGNORED_TOTAL: 'Total fork pull-request events dropped by the org fork policy';
650
740
  readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'Total number of GitHub check run API calls';
741
+ readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'Tier-2 global eval round cache lookups by outcome';
742
+ readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'Global workflow candidates handed to a Tier-2 eval round';
743
+ readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'Jobs generated by a Tier-2 global eval round';
744
+ readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'Duration of one dispatched Tier-2 global eval round in seconds';
745
+ readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'Per-candidate verdicts produced by a Tier-2 global eval round';
651
746
  readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'Total webhook ingest admissions granted by the admission controller';
652
747
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'Event-loop delay max (ms) observed by the ingest admission sampler';
653
748
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'Event-loop delay p99 (ms) observed by the ingest admission sampler';
@@ -680,12 +775,25 @@ export declare const MetricDescription: {
680
775
  readonly KICI_ORCH_PENDING_ATTESTATIONS_CURRENT: 'Deferred attestations awaiting a later mint';
681
776
  readonly KICI_ORCH_PG_POOL_CLIENT_ERRORS_TOTAL: 'Total pg connection errors absorbed without a process restart';
682
777
  readonly KICI_ORCH_REJECTED_ATTESTATIONS_CURRENT: 'Deferred attestations permanently rejected (run/job absent on Platform); terminal, re-attempted only via kici-admin attestations retry --include-rejected';
778
+ readonly KICI_ORCH_SCALER_ADOPTION_LOOKUP_FAILURES_TOTAL: 'Cumulative event-scaler spawn-record adoption lookups that failed with a store error.';
779
+ readonly KICI_ORCH_SCALER_CAP_LOCK_FAILURES_TOTAL: 'Total event-scaler cluster-wide cap checks that failed, refusing their spawn without evaluating the cap. A rising rate means event autoscaling is not running; read reason to tell a stalled database from a contended lock.';
683
780
  readonly KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: 'Total number of scaler config reload operations';
684
781
  readonly KICI_ORCH_SCALER_CPUS_USED: 'Current CPU reservations summed by scaler / pool. scaler="__global__" is the orchestrator-wide total; machinePool="<name>" rows reflect the on-disk ledger.';
782
+ readonly KICI_ORCH_SCALER_EXTERNAL_PROVISION_TIMEOUT_TOTAL: 'Cumulative event-scaler provisions torn down for spawn-timeout (agent never registered), labeled by scaler.';
783
+ readonly KICI_ORCH_SCALER_EXTERNAL_PROVISIONING_ACTIVE: 'Current in-flight external (event-scaler) provisions, labeled by scaler (provisioning + active).';
685
784
  readonly KICI_ORCH_SCALER_MEMORY_BYTES_USED: 'Current memory reservations (bytes) summed by scaler / pool. scaler="__global__" is the orchestrator-wide total; machinePool="<name>" rows reflect the on-disk ledger.';
785
+ readonly KICI_ORCH_SCALER_REAP_BLOCKED: 'Whether the event-scaler provision reaper is standing down for lack of any connected coordinator peer (1) or sweeping (0).';
786
+ readonly KICI_ORCH_SCALER_REAP_UNSEEN_PROVISIONS: 'Event-scaler provisions whose agent has been registered on no coordinator for at least the flap grace, being timed by the leader-gated reaper.';
686
787
  readonly KICI_ORCH_SCALER_REDISPATCH_TOTAL: 'Cumulative count of pending jobs re-offered to the scaler after capacity freed, labeled by trigger (hook | sweep).';
788
+ readonly KICI_ORCH_SCALER_SCALE_DOWN_EMITTED_TOTAL: 'Cumulative kici.scaler.scale-down events emitted by event scalers, labeled by scaler + reason.';
789
+ readonly KICI_ORCH_SCALER_SCALE_UP_EMITTED_TOTAL: 'Cumulative kici.scaler.scale-up events emitted by event scalers, labeled by scaler.';
687
790
  readonly KICI_ORCH_SCALER_SPAWN_FAILURES_TOTAL: 'Total scaler agent spawn failures (job-bound and warm-pool)';
688
791
  readonly KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: 'Cumulative count of scaler spawn requests refused due to resource caps (maxAgents, resourceCap, globalResourceCap, machinePool).';
792
+ readonly KICI_ORCH_SCALER_WARM_POOL_IN_FLIGHT: 'Warm-pool spawns started but not yet registered. A deficit covered by these is filling, not failing.';
793
+ readonly KICI_ORCH_SCALER_WARM_POOL_READY: 'Agents able to serve a job for a warm pool label set — the same query the dispatcher makes.';
794
+ readonly KICI_ORCH_SCALER_WARM_POOL_REAPED_TOTAL: 'Total warm-pool agents destroyed as surplus — past their idle timeout, or above a lowered target, per scaler.';
795
+ readonly KICI_ORCH_SCALER_WARM_POOL_SPAWNS_TOTAL: 'Total warm-pool spawns started, per scaler.';
796
+ readonly KICI_ORCH_SCALER_WARM_POOL_TARGET: 'Configured number of agents a warm pool keeps ready for a label set.';
689
797
  readonly KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: 'Total number of source tarball cache hits';
690
798
  readonly KICI_ORCH_SOURCE_CACHE_MISSES_TOTAL: 'Total number of source tarball cache misses';
691
799
  readonly KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: 'Time between job becoming stale and detection (seconds)';
@@ -698,6 +806,7 @@ export declare const MetricDescription: {
698
806
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'Trust-resolution attempts refused because the provider numeric id was missing or did not match';
699
807
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'Total org trust-policy gate decisions by arm and action';
700
808
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'Jobs terminalized as unroutable by the fast-fail probe (not the queue timeout)';
809
+ readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'Webhook match-and-dispatch pipelines that threw. Labels: phase (post_ack — failed after the delivery was acknowledged)';
701
810
  readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'Total number of webhooks processed';
702
811
  readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'Total number of webhooks received';
703
812
  readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'NACKs received from the Platform for a message it could not process (version skew)';
@@ -736,6 +845,9 @@ export declare const MetricDescription: {
736
845
  readonly KICI_PLATFORM_LOG_LINES_FORWARDED_TOTAL: 'Total log lines forwarded from orchestrators';
737
846
  readonly KICI_PLATFORM_METRICS_QUERY_RATE_LIMITED_TOTAL: 'Total dashboard metric-query requests rate-limited (429).';
738
847
  readonly KICI_PLATFORM_MIMIR_RELAY_ERRORS_TOTAL: 'Total Mimir push-relay errors (Platform-embedded metrics). Labels: reason.';
848
+ readonly KICI_PLATFORM_MIMIR_RELAY_FINAL_DROPS_TOTAL: 'Total Mimir push-relay batches dropped permanently (data loss). Labels: reason.';
849
+ readonly KICI_PLATFORM_MIMIR_RELAY_RETRIES_TOTAL: 'Total Mimir push-relay retry attempts (Platform-embedded metrics). Labels: reason.';
850
+ readonly KICI_PLATFORM_MIMIR_RELAY_SHED_TOTAL: 'Total Mimir push-relay batches shed without retry (concurrent-retry cap reached).';
739
851
  readonly KICI_PLATFORM_NOTIFICATIONS_DELIVERED_TOTAL: 'Notification delivery attempts that reached a terminal outcome';
740
852
  readonly KICI_PLATFORM_NOTIFICATIONS_SUPPRESSED_TOTAL: 'Run-terminal notifications suppressed by the per-org notification quota';
741
853
  readonly KICI_PLATFORM_ORCH_METRICS_FILTERED_TOTAL: 'Orchestrator-pushed metric data points dropped or rewritten by the catalog allow-list. Labels: reason, metric.';
@@ -811,6 +923,8 @@ export declare const MetricDescription: {
811
923
  * the only valid push payloads.
812
924
  */
813
925
  export declare const MetricService: {
926
+ readonly KICI_AGENT_BETWEEN_JOBS_RESET_DURATION_SECONDS: 'agent';
927
+ readonly KICI_AGENT_BETWEEN_JOBS_RESET_TOTAL: 'agent';
814
928
  readonly KICI_AGENT_CLONE_DURATION_SECONDS: 'agent';
815
929
  readonly KICI_AGENT_CONNECTION_STATUS: 'agent';
816
930
  readonly KICI_AGENT_JOBS_ACTIVE: 'agent';
@@ -819,6 +933,8 @@ export declare const MetricService: {
819
933
  readonly KICI_AGENT_LOG_BACKPRESSURE_EVENTS_TOTAL: 'agent';
820
934
  readonly KICI_AGENT_LOG_BYTES_TOTAL: 'agent';
821
935
  readonly KICI_AGENT_LOG_LINES_DROPPED_TOTAL: 'agent';
936
+ readonly KICI_AGENT_ORPHAN_CLEANUP_TOTAL: 'agent';
937
+ readonly KICI_AGENT_ORPHANS_REAPED_TOTAL: 'agent';
822
938
  readonly KICI_AGENT_STEP_DURATION_SECONDS: 'agent';
823
939
  readonly KICI_AGENT_STEPS_TOTAL: 'agent';
824
940
  readonly KICI_BILLING_EMAIL_SEND_TOTAL: 'platform';
@@ -848,6 +964,7 @@ export declare const MetricService: {
848
964
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: 'orchestrator';
849
965
  readonly KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: 'orchestrator';
850
966
  readonly KICI_ORCH_EVENT_ATTEMPTS: 'orchestrator';
967
+ readonly KICI_ORCH_EVENT_CATCH_UP_FAILURES_TOTAL: 'orchestrator';
851
968
  readonly KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: 'orchestrator';
852
969
  readonly KICI_ORCH_EVENT_DLQ_DEPTH: 'orchestrator';
853
970
  readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'orchestrator';
@@ -855,7 +972,13 @@ export declare const MetricService: {
855
972
  readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'orchestrator';
856
973
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'orchestrator';
857
974
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'orchestrator';
975
+ readonly KICI_ORCH_FORK_EVENTS_IGNORED_TOTAL: 'orchestrator';
858
976
  readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'orchestrator';
977
+ readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'orchestrator';
978
+ readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'orchestrator';
979
+ readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'orchestrator';
980
+ readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'orchestrator';
981
+ readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'orchestrator';
859
982
  readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'orchestrator';
860
983
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'orchestrator';
861
984
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'orchestrator';
@@ -888,12 +1011,25 @@ export declare const MetricService: {
888
1011
  readonly KICI_ORCH_PENDING_ATTESTATIONS_CURRENT: 'orchestrator';
889
1012
  readonly KICI_ORCH_PG_POOL_CLIENT_ERRORS_TOTAL: 'orchestrator';
890
1013
  readonly KICI_ORCH_REJECTED_ATTESTATIONS_CURRENT: 'orchestrator';
1014
+ readonly KICI_ORCH_SCALER_ADOPTION_LOOKUP_FAILURES_TOTAL: 'orchestrator';
1015
+ readonly KICI_ORCH_SCALER_CAP_LOCK_FAILURES_TOTAL: 'orchestrator';
891
1016
  readonly KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: 'orchestrator';
892
1017
  readonly KICI_ORCH_SCALER_CPUS_USED: 'orchestrator';
1018
+ readonly KICI_ORCH_SCALER_EXTERNAL_PROVISION_TIMEOUT_TOTAL: 'orchestrator';
1019
+ readonly KICI_ORCH_SCALER_EXTERNAL_PROVISIONING_ACTIVE: 'orchestrator';
893
1020
  readonly KICI_ORCH_SCALER_MEMORY_BYTES_USED: 'orchestrator';
1021
+ readonly KICI_ORCH_SCALER_REAP_BLOCKED: 'orchestrator';
1022
+ readonly KICI_ORCH_SCALER_REAP_UNSEEN_PROVISIONS: 'orchestrator';
894
1023
  readonly KICI_ORCH_SCALER_REDISPATCH_TOTAL: 'orchestrator';
1024
+ readonly KICI_ORCH_SCALER_SCALE_DOWN_EMITTED_TOTAL: 'orchestrator';
1025
+ readonly KICI_ORCH_SCALER_SCALE_UP_EMITTED_TOTAL: 'orchestrator';
895
1026
  readonly KICI_ORCH_SCALER_SPAWN_FAILURES_TOTAL: 'orchestrator';
896
1027
  readonly KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: 'orchestrator';
1028
+ readonly KICI_ORCH_SCALER_WARM_POOL_IN_FLIGHT: 'orchestrator';
1029
+ readonly KICI_ORCH_SCALER_WARM_POOL_READY: 'orchestrator';
1030
+ readonly KICI_ORCH_SCALER_WARM_POOL_REAPED_TOTAL: 'orchestrator';
1031
+ readonly KICI_ORCH_SCALER_WARM_POOL_SPAWNS_TOTAL: 'orchestrator';
1032
+ readonly KICI_ORCH_SCALER_WARM_POOL_TARGET: 'orchestrator';
897
1033
  readonly KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: 'orchestrator';
898
1034
  readonly KICI_ORCH_SOURCE_CACHE_MISSES_TOTAL: 'orchestrator';
899
1035
  readonly KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: 'orchestrator';
@@ -906,6 +1042,7 @@ export declare const MetricService: {
906
1042
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'orchestrator';
907
1043
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'orchestrator';
908
1044
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'orchestrator';
1045
+ readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'orchestrator';
909
1046
  readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'orchestrator';
910
1047
  readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'orchestrator';
911
1048
  readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'orchestrator';
@@ -944,6 +1081,9 @@ export declare const MetricService: {
944
1081
  readonly KICI_PLATFORM_LOG_LINES_FORWARDED_TOTAL: 'platform';
945
1082
  readonly KICI_PLATFORM_METRICS_QUERY_RATE_LIMITED_TOTAL: 'platform';
946
1083
  readonly KICI_PLATFORM_MIMIR_RELAY_ERRORS_TOTAL: 'platform';
1084
+ readonly KICI_PLATFORM_MIMIR_RELAY_FINAL_DROPS_TOTAL: 'platform';
1085
+ readonly KICI_PLATFORM_MIMIR_RELAY_RETRIES_TOTAL: 'platform';
1086
+ readonly KICI_PLATFORM_MIMIR_RELAY_SHED_TOTAL: 'platform';
947
1087
  readonly KICI_PLATFORM_NOTIFICATIONS_DELIVERED_TOTAL: 'platform';
948
1088
  readonly KICI_PLATFORM_NOTIFICATIONS_SUPPRESSED_TOTAL: 'platform';
949
1089
  readonly KICI_PLATFORM_ORCH_METRICS_FILTERED_TOTAL: 'platform';