@kici-dev/engine 0.6.1 → 0.7.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 (56) hide show
  1. package/dist/audit/access-log-policy.js +1 -0
  2. package/dist/audit/retention-policy.js +2 -0
  3. package/dist/billing/subscription-status.d.ts +38 -0
  4. package/dist/billing/subscription-status.js +63 -0
  5. package/dist/context/host-match.d.ts +25 -2
  6. package/dist/context/host-match.js +29 -7
  7. package/dist/index.d.ts +6 -1
  8. package/dist/index.js +10 -5
  9. package/dist/labels/compile.d.ts +3 -1
  10. package/dist/labels/compile.js +10 -5
  11. package/dist/labels-canonical.d.ts +36 -0
  12. package/dist/labels-canonical.js +21 -0
  13. package/dist/labels-match.d.ts +38 -7
  14. package/dist/labels-match.js +45 -9
  15. package/dist/metrics/catalog-policy.js +6 -1
  16. package/dist/metrics/metric-catalog.generated.d.ts +97 -2
  17. package/dist/metrics/metric-catalog.generated.js +116 -2
  18. package/dist/protocol/dashboard-write-operations.d.ts +17 -0
  19. package/dist/protocol/dashboard-write-operations.js +20 -3
  20. package/dist/protocol/messages/access-log.d.ts +5 -0
  21. package/dist/protocol/messages/access-log.js +1 -0
  22. package/dist/protocol/messages/config-paths.d.ts +20 -0
  23. package/dist/protocol/messages/config-paths.js +27 -0
  24. package/dist/protocol/messages/dashboard.d.ts +134 -0
  25. package/dist/protocol/messages/dashboard.js +68 -1
  26. package/dist/protocol/messages/event-log.d.ts +6 -0
  27. package/dist/protocol/messages/event-log.js +6 -0
  28. package/dist/protocol/messages/orchestrator-agent.d.ts +32 -0
  29. package/dist/protocol/messages/orchestrator-agent.js +52 -5
  30. package/dist/protocol/messages/peer.d.ts +3 -0
  31. package/dist/protocol/messages/peer.js +6 -1
  32. package/dist/protocol/messages/platform-orchestrator.d.ts +36 -0
  33. package/dist/protocol/messages/source-registration.d.ts +5 -0
  34. package/dist/protocol/messages/source-registration.js +8 -0
  35. package/dist/provenance/id-token-event-claims.d.ts +142 -0
  36. package/dist/provenance/id-token-event-claims.js +113 -0
  37. package/dist/provenance/statement-hash.d.ts +14 -5
  38. package/dist/provenance/statement-hash.js +14 -5
  39. package/dist/provenance/verify.d.ts +21 -0
  40. package/dist/provenance/verify.js +26 -16
  41. package/dist/regex-flags.d.ts +32 -0
  42. package/dist/regex-flags.js +43 -0
  43. package/dist/trigger/compiled-matchers.d.ts +9 -2
  44. package/dist/trigger/compiled-matchers.js +14 -5
  45. package/dist/trigger/decision-trace.d.ts +1 -1
  46. package/dist/trigger/decision-trace.js +1 -1
  47. package/dist/trigger/text-match.d.ts +8 -3
  48. package/dist/trigger/text-match.js +11 -5
  49. package/dist/trigger/trigger-event-type.d.ts +16 -0
  50. package/dist/trigger/trigger-event-type.js +25 -1
  51. package/dist/trigger/types.d.ts +55 -4
  52. package/dist/trigger/types.js +5 -1
  53. package/dist/ws/close-codes.d.ts +8 -0
  54. package/dist/ws/close-codes.js +9 -1
  55. package/package.json +1 -1
  56. package/sbom.spdx.json +5 -5
@@ -14,6 +14,8 @@ export declare const MetricNames: {
14
14
  readonly KICI_AGENT_STEP_DURATION_SECONDS: 'kici_agent_step_duration_seconds';
15
15
  readonly KICI_AGENT_STEPS_TOTAL: 'kici_agent_steps_total';
16
16
  readonly KICI_BILLING_EMAIL_SEND_TOTAL: 'kici_billing_email_send_total';
17
+ readonly KICI_BILLING_RECONCILE_CORRECTIONS_TOTAL: 'kici_billing_reconcile_corrections_total';
18
+ readonly KICI_BILLING_RECONCILE_ERRORS_TOTAL: 'kici_billing_reconcile_errors_total';
17
19
  readonly KICI_BUILD_JOBS_TOTAL: 'kici_build_jobs_total';
18
20
  readonly KICI_CACHE_HITS_TOTAL: 'kici_cache_hits_total';
19
21
  readonly KICI_CACHE_MISSES_TOTAL: 'kici_cache_misses_total';
@@ -31,11 +33,15 @@ export declare const MetricNames: {
31
33
  readonly KICI_ORCH_CHECK_RUN_TRACKING_ROWS_PRUNED_TOTAL: 'kici_orch_check_run_tracking_rows_pruned_total';
32
34
  readonly KICI_ORCH_CONFIG_RELOAD_TOTAL: 'kici_orch_config_reload_total';
33
35
  readonly KICI_ORCH_CONFIG_VERSION: 'kici_orch_config_version';
36
+ readonly KICI_ORCH_CONTAINER_REGISTRY_AUTH_CONTRIBUTOR_STRIPPED_TOTAL: 'kici_orch_container_registry_auth_contributor_stripped_total';
34
37
  readonly KICI_ORCH_DB_COLLATION_DRIFT: 'kici_orch_db_collation_drift';
35
38
  readonly KICI_ORCH_DECLARED_HOSTS_UNREACHABLE: 'kici_orch_declared_hosts_unreachable';
36
39
  readonly KICI_ORCH_DEDUP_HITS_TOTAL: 'kici_orch_dedup_hits_total';
40
+ readonly KICI_ORCH_DEFERRED_ATTESTATION_REJECTED_TOTAL: 'kici_orch_deferred_attestation_rejected_total';
41
+ readonly KICI_ORCH_DEFERRED_INDEX_BUILDS_TOTAL: 'kici_orch_deferred_index_builds_total';
37
42
  readonly KICI_ORCH_DEP_CACHE_HITS_TOTAL: 'kici_orch_dep_cache_hits_total';
38
43
  readonly KICI_ORCH_DEP_CACHE_MISSES_TOTAL: 'kici_orch_dep_cache_misses_total';
44
+ readonly KICI_ORCH_DISPATCH_OWNERSHIP_SKIPPED_TOTAL: 'kici_orch_dispatch_ownership_skipped_total';
39
45
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH: 'kici_orch_dispatch_queue_depth';
40
46
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: 'kici_orch_dispatch_queue_depth_by_label';
41
47
  readonly KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: 'kici_orch_dispatch_queue_rows_pruned_total';
@@ -46,6 +52,7 @@ export declare const MetricNames: {
46
52
  readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'kici_orch_event_dlq_total';
47
53
  readonly KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: 'kici_orch_event_lease_expirations_total';
48
54
  readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'kici_orch_event_retry_total';
55
+ readonly KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: 'kici_orch_excess_connections_closed_total';
49
56
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'kici_orch_execution_duration_seconds';
50
57
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'kici_orch_executions_total';
51
58
  readonly KICI_ORCH_FORK_EVENTS_IGNORED_TOTAL: 'kici_orch_fork_events_ignored_total';
@@ -68,6 +75,7 @@ export declare const MetricNames: {
68
75
  readonly KICI_ORCH_INGEST_OVERFLOW_CAPTURED_TOTAL: 'kici_orch_ingest_overflow_captured_total';
69
76
  readonly KICI_ORCH_INGEST_OVERFLOW_DROPPED_TOTAL: 'kici_orch_ingest_overflow_dropped_total';
70
77
  readonly KICI_ORCH_INGEST_OVERFLOW_MAX: 'kici_orch_ingest_overflow_max';
78
+ readonly KICI_ORCH_INGEST_OVERFLOW_REPLAY_REFUSED_TOTAL: 'kici_orch_ingest_overflow_replay_refused_total';
71
79
  readonly KICI_ORCH_INGEST_OVERFLOW_REPLAYED_TOTAL: 'kici_orch_ingest_overflow_replayed_total';
72
80
  readonly KICI_ORCH_INGEST_QUEUE_DEPTH: 'kici_orch_ingest_queue_depth';
73
81
  readonly KICI_ORCH_INGEST_SHED_TOTAL: 'kici_orch_ingest_shed_total';
@@ -83,10 +91,14 @@ export declare const MetricNames: {
83
91
  readonly KICI_ORCH_JOB_RUNS_TOTAL: 'kici_orch_job_runs_total';
84
92
  readonly KICI_ORCH_LOG_BYTES_STORED_TOTAL: 'kici_orch_log_bytes_stored_total';
85
93
  readonly KICI_ORCH_LOG_CHUNKS_RECEIVED_TOTAL: 'kici_orch_log_chunks_received_total';
94
+ readonly KICI_ORCH_NON_MONOTONIC_JOB_STATUS_WRITES_TOTAL: 'kici_orch_non_monotonic_job_status_writes_total';
86
95
  readonly KICI_ORCH_PENDING_ATTESTATION_OLDEST_AGE_SECONDS: 'kici_orch_pending_attestation_oldest_age_seconds';
87
96
  readonly KICI_ORCH_PENDING_ATTESTATIONS_CURRENT: 'kici_orch_pending_attestations_current';
97
+ readonly KICI_ORCH_PG_LISTEN_CONNECTED: 'kici_orch_pg_listen_connected';
98
+ readonly KICI_ORCH_PG_LISTEN_RECONNECTS_TOTAL: 'kici_orch_pg_listen_reconnects_total';
88
99
  readonly KICI_ORCH_PG_POOL_CLIENT_ERRORS_TOTAL: 'kici_orch_pg_pool_client_errors_total';
89
100
  readonly KICI_ORCH_REJECTED_ATTESTATIONS_CURRENT: 'kici_orch_rejected_attestations_current';
101
+ readonly KICI_ORCH_RETENTION_ROWS_DELETED_TOTAL: 'kici_orch_retention_rows_deleted_total';
90
102
  readonly KICI_ORCH_SCALER_ADOPTION_LOOKUP_FAILURES_TOTAL: 'kici_orch_scaler_adoption_lookup_failures_total';
91
103
  readonly KICI_ORCH_SCALER_CAP_LOCK_FAILURES_TOTAL: 'kici_orch_scaler_cap_lock_failures_total';
92
104
  readonly KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: 'kici_orch_scaler_config_reloads_total';
@@ -115,6 +127,7 @@ export declare const MetricNames: {
115
127
  readonly KICI_ORCH_STEP_LOGS_PRUNED_TOTAL: 'kici_orch_step_logs_pruned_total';
116
128
  readonly KICI_ORCH_STEPS_TOTAL: 'kici_orch_steps_total';
117
129
  readonly KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: 'kici_orch_trigger_match_duration_seconds';
130
+ readonly KICI_ORCH_TRUST_DIRECTORY_AGE_SECONDS: 'kici_orch_trust_directory_age_seconds';
118
131
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'kici_orch_trust_match_refused_no_id_total';
119
132
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'kici_orch_trust_policy_decisions_total';
120
133
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'kici_orch_unroutable_fast_failed_total';
@@ -170,20 +183,24 @@ export declare const MetricNames: {
170
183
  readonly KICI_PLATFORM_RELAY_BREAKER_TRIPS_TOTAL: 'kici_platform_relay_breaker_trips_total';
171
184
  readonly KICI_PLATFORM_RELAY_REQUEST_DURATION_MS: 'kici_platform_relay_request_duration_ms';
172
185
  readonly KICI_PLATFORM_RELAY_REQUEST_OUTCOME_TOTAL: 'kici_platform_relay_request_outcome_total';
186
+ readonly KICI_PLATFORM_RETENTION_ROWS_DELETED_TOTAL: 'kici_platform_retention_rows_deleted_total';
173
187
  readonly KICI_PLATFORM_RUN_RECONCILE_DEFERRED_TOTAL: 'kici_platform_run_reconcile_deferred_total';
174
188
  readonly KICI_PLATFORM_RUN_RECONCILE_RECONCILED_TOTAL: 'kici_platform_run_reconcile_reconciled_total';
175
189
  readonly KICI_PLATFORM_RUN_RECONCILE_SKIPPED_TOTAL: 'kici_platform_run_reconcile_skipped_total';
190
+ readonly KICI_PLATFORM_STALE_ORCH_SKIPPED_RECONNECTED_TOTAL: 'kici_platform_stale_orch_skipped_reconnected_total';
176
191
  readonly KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: 'kici_platform_stale_orchestrators_total';
177
192
  readonly KICI_PLATFORM_STALE_PLATFORM_CONNECTIONS_EVICTED_TOTAL: 'kici_platform_stale_platform_connections_evicted_total';
178
193
  readonly KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: 'kici_platform_stale_runs_failed_total';
179
194
  readonly KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: 'kici_platform_step_status_forwards_total';
180
195
  readonly KICI_PLATFORM_SUPPORT_SESSIONS_SWEPT_TOTAL: 'kici_platform_support_sessions_swept_total';
196
+ readonly KICI_PLATFORM_WORKER_REPORT_COLLAPSE_TOTAL: 'kici_platform_worker_report_collapse_total';
181
197
  readonly KICI_PLATFORM_WS_ORG_RATE_LIMITED_TOTAL: 'kici_platform_ws_org_rate_limited_total';
182
198
  readonly KICI_PLATFORM_WS_SLOW_CONSUMER_TERMINATED_TOTAL: 'kici_platform_ws_slow_consumer_terminated_total';
183
199
  readonly KICI_RBAC_PERMS_CACHE_HITS_TOTAL: 'kici_rbac_perms_cache_hits_total';
184
200
  readonly KICI_RBAC_PERMS_CACHE_MISSES_TOTAL: 'kici_rbac_perms_cache_misses_total';
185
201
  readonly KICI_READ_RATE_LIMIT_REJECTED_TOTAL: 'kici_read_rate_limit_rejected_total';
186
202
  readonly KICI_REGISTRATIONS_TOTAL: 'kici_registrations_total';
203
+ readonly KICI_STRIPE_WEBHOOK_FAILURES_TOTAL: 'kici_stripe_webhook_failures_total';
187
204
  readonly KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: 'kici_universal_git_registration_errors_total';
188
205
  readonly KICI_USER_REGISTRATION_NOTIFY_TOTAL: 'kici_user_registration_notify_total';
189
206
  readonly KICI_VALKEY_CONNECTION_STATUS: 'kici_valkey_connection_status';
@@ -193,6 +210,7 @@ export declare const MetricNames: {
193
210
  readonly KICI_WEBHOOK_BUFFER_BYTES: 'kici_webhook_buffer_bytes';
194
211
  readonly KICI_WEBHOOK_BUFFER_DEPTH: 'kici_webhook_buffer_depth';
195
212
  readonly KICI_WEBHOOK_BUFFER_OLDEST_AGE_SECONDS: 'kici_webhook_buffer_oldest_age_seconds';
213
+ readonly KICI_WEBHOOK_INGRESS_RATE_LIMITED_TOTAL: 'kici_webhook_ingress_rate_limited_total';
196
214
  readonly KICI_WEBHOOK_NO_ORCH_TOTAL: 'kici_webhook_no_orch_total';
197
215
  readonly KICI_WEBHOOK_PG_BREAKER_STATE: 'kici_webhook_pg_breaker_state';
198
216
  readonly KICI_WEBHOOK_PG_BREAKER_TRANSITIONS_TOTAL: 'kici_webhook_pg_breaker_transitions_total';
@@ -209,6 +227,7 @@ export declare const MetricNames: {
209
227
  readonly KICI_WS_MESSAGES_SENT_TOTAL: 'kici_ws_messages_sent_total';
210
228
  readonly KICI_WS_NACK_RECEIVED_TOTAL: 'kici_ws_nack_received_total';
211
229
  readonly KICI_WS_RELAY_ATTEMPTS_TOTAL: 'kici_ws_relay_attempts_total';
230
+ readonly KICI_WS_RELAY_BODY_OVERSIZE_TOTAL: 'kici_ws_relay_body_oversize_total';
212
231
  readonly KICI_WS_RELAY_DURATION_SECONDS: 'kici_ws_relay_duration_seconds';
213
232
  readonly KICI_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: 'kici_ws_unsupported_message_sent_total';
214
233
  readonly NODEJS_EVENTLOOP_DELAY_MAX: 'nodejs.eventloop.delay.max';
@@ -244,6 +263,8 @@ export declare const MetricLabels: {
244
263
  readonly KICI_AGENT_STEP_DURATION_SECONDS: readonly ['scaler'];
245
264
  readonly KICI_AGENT_STEPS_TOTAL: readonly ['status', 'scaler'];
246
265
  readonly KICI_BILLING_EMAIL_SEND_TOTAL: readonly ['kind', 'status'];
266
+ readonly KICI_BILLING_RECONCILE_CORRECTIONS_TOTAL: readonly ['direction'];
267
+ readonly KICI_BILLING_RECONCILE_ERRORS_TOTAL: readonly [];
247
268
  readonly KICI_BUILD_JOBS_TOTAL: readonly [];
248
269
  readonly KICI_CACHE_HITS_TOTAL: readonly ['cache_type'];
249
270
  readonly KICI_CACHE_MISSES_TOTAL: readonly ['cache_type'];
@@ -261,11 +282,15 @@ export declare const MetricLabels: {
261
282
  readonly KICI_ORCH_CHECK_RUN_TRACKING_ROWS_PRUNED_TOTAL: readonly [];
262
283
  readonly KICI_ORCH_CONFIG_RELOAD_TOTAL: readonly ['result', 'source'];
263
284
  readonly KICI_ORCH_CONFIG_VERSION: readonly [];
285
+ readonly KICI_ORCH_CONTAINER_REGISTRY_AUTH_CONTRIBUTOR_STRIPPED_TOTAL: readonly ['trust_tier'];
264
286
  readonly KICI_ORCH_DB_COLLATION_DRIFT: readonly ['database'];
265
287
  readonly KICI_ORCH_DECLARED_HOSTS_UNREACHABLE: readonly [];
266
288
  readonly KICI_ORCH_DEDUP_HITS_TOTAL: readonly [];
289
+ readonly KICI_ORCH_DEFERRED_ATTESTATION_REJECTED_TOTAL: readonly ['reason'];
290
+ readonly KICI_ORCH_DEFERRED_INDEX_BUILDS_TOTAL: readonly ['name', 'outcome'];
267
291
  readonly KICI_ORCH_DEP_CACHE_HITS_TOTAL: readonly [];
268
292
  readonly KICI_ORCH_DEP_CACHE_MISSES_TOTAL: readonly [];
293
+ readonly KICI_ORCH_DISPATCH_OWNERSHIP_SKIPPED_TOTAL: readonly ['action', 'reason'];
269
294
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH: readonly ['status'];
270
295
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: readonly ['status', 'label'];
271
296
  readonly KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: readonly [];
@@ -276,6 +301,7 @@ export declare const MetricLabels: {
276
301
  readonly KICI_ORCH_EVENT_DLQ_TOTAL: readonly ['event_name', 'reason'];
277
302
  readonly KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: readonly [];
278
303
  readonly KICI_ORCH_EVENT_RETRY_TOTAL: readonly ['event_name'];
304
+ readonly KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: readonly ['org_id'];
279
305
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: readonly [];
280
306
  readonly KICI_ORCH_EXECUTIONS_TOTAL: readonly ['status'];
281
307
  readonly KICI_ORCH_FORK_EVENTS_IGNORED_TOTAL: readonly ['provider'];
@@ -298,6 +324,7 @@ export declare const MetricLabels: {
298
324
  readonly KICI_ORCH_INGEST_OVERFLOW_CAPTURED_TOTAL: readonly [];
299
325
  readonly KICI_ORCH_INGEST_OVERFLOW_DROPPED_TOTAL: readonly [];
300
326
  readonly KICI_ORCH_INGEST_OVERFLOW_MAX: readonly [];
327
+ readonly KICI_ORCH_INGEST_OVERFLOW_REPLAY_REFUSED_TOTAL: readonly [];
301
328
  readonly KICI_ORCH_INGEST_OVERFLOW_REPLAYED_TOTAL: readonly [];
302
329
  readonly KICI_ORCH_INGEST_QUEUE_DEPTH: readonly [];
303
330
  readonly KICI_ORCH_INGEST_SHED_TOTAL: readonly ['reason'];
@@ -313,10 +340,14 @@ export declare const MetricLabels: {
313
340
  readonly KICI_ORCH_JOB_RUNS_TOTAL: readonly ['job', 'result'];
314
341
  readonly KICI_ORCH_LOG_BYTES_STORED_TOTAL: readonly ['source'];
315
342
  readonly KICI_ORCH_LOG_CHUNKS_RECEIVED_TOTAL: readonly ['source'];
343
+ readonly KICI_ORCH_NON_MONOTONIC_JOB_STATUS_WRITES_TOTAL: readonly ['rejected_status'];
316
344
  readonly KICI_ORCH_PENDING_ATTESTATION_OLDEST_AGE_SECONDS: readonly [];
317
345
  readonly KICI_ORCH_PENDING_ATTESTATIONS_CURRENT: readonly [];
346
+ readonly KICI_ORCH_PG_LISTEN_CONNECTED: readonly ['channel'];
347
+ readonly KICI_ORCH_PG_LISTEN_RECONNECTS_TOTAL: readonly ['channel'];
318
348
  readonly KICI_ORCH_PG_POOL_CLIENT_ERRORS_TOTAL: readonly ['source'];
319
349
  readonly KICI_ORCH_REJECTED_ATTESTATIONS_CURRENT: readonly [];
350
+ readonly KICI_ORCH_RETENTION_ROWS_DELETED_TOTAL: readonly ['table'];
320
351
  readonly KICI_ORCH_SCALER_ADOPTION_LOOKUP_FAILURES_TOTAL: readonly [];
321
352
  readonly KICI_ORCH_SCALER_CAP_LOCK_FAILURES_TOTAL: readonly ['reason'];
322
353
  readonly KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: readonly ['result'];
@@ -345,6 +376,7 @@ export declare const MetricLabels: {
345
376
  readonly KICI_ORCH_STEP_LOGS_PRUNED_TOTAL: readonly [];
346
377
  readonly KICI_ORCH_STEPS_TOTAL: readonly ['status'];
347
378
  readonly KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: readonly [];
379
+ readonly KICI_ORCH_TRUST_DIRECTORY_AGE_SECONDS: readonly [];
348
380
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: readonly ['reason'];
349
381
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: readonly ['arm', 'action'];
350
382
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: readonly [];
@@ -400,20 +432,24 @@ export declare const MetricLabels: {
400
432
  readonly KICI_PLATFORM_RELAY_BREAKER_TRIPS_TOTAL: readonly ['clusterName', 'connectionId'];
401
433
  readonly KICI_PLATFORM_RELAY_REQUEST_DURATION_MS: readonly ['kind'];
402
434
  readonly KICI_PLATFORM_RELAY_REQUEST_OUTCOME_TOTAL: readonly ['outcome', 'kind'];
435
+ readonly KICI_PLATFORM_RETENTION_ROWS_DELETED_TOTAL: readonly ['table'];
403
436
  readonly KICI_PLATFORM_RUN_RECONCILE_DEFERRED_TOTAL: readonly [];
404
437
  readonly KICI_PLATFORM_RUN_RECONCILE_RECONCILED_TOTAL: readonly [];
405
438
  readonly KICI_PLATFORM_RUN_RECONCILE_SKIPPED_TOTAL: readonly [];
439
+ readonly KICI_PLATFORM_STALE_ORCH_SKIPPED_RECONNECTED_TOTAL: readonly [];
406
440
  readonly KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: readonly [];
407
441
  readonly KICI_PLATFORM_STALE_PLATFORM_CONNECTIONS_EVICTED_TOTAL: readonly ['org_id'];
408
442
  readonly KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: readonly [];
409
443
  readonly KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: readonly ['state'];
410
444
  readonly KICI_PLATFORM_SUPPORT_SESSIONS_SWEPT_TOTAL: readonly ['close_kind'];
445
+ readonly KICI_PLATFORM_WORKER_REPORT_COLLAPSE_TOTAL: readonly ['org_id'];
411
446
  readonly KICI_PLATFORM_WS_ORG_RATE_LIMITED_TOTAL: readonly ['org_id'];
412
447
  readonly KICI_PLATFORM_WS_SLOW_CONSUMER_TERMINATED_TOTAL: readonly [];
413
448
  readonly KICI_RBAC_PERMS_CACHE_HITS_TOTAL: readonly [];
414
449
  readonly KICI_RBAC_PERMS_CACHE_MISSES_TOTAL: readonly [];
415
450
  readonly KICI_READ_RATE_LIMIT_REJECTED_TOTAL: readonly ['scope'];
416
451
  readonly KICI_REGISTRATIONS_TOTAL: readonly [];
452
+ readonly KICI_STRIPE_WEBHOOK_FAILURES_TOTAL: readonly ['event_type'];
417
453
  readonly KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: readonly ['reason'];
418
454
  readonly KICI_USER_REGISTRATION_NOTIFY_TOTAL: readonly ['result'];
419
455
  readonly KICI_VALKEY_CONNECTION_STATUS: readonly ['role'];
@@ -423,6 +459,7 @@ export declare const MetricLabels: {
423
459
  readonly KICI_WEBHOOK_BUFFER_BYTES: readonly [];
424
460
  readonly KICI_WEBHOOK_BUFFER_DEPTH: readonly [];
425
461
  readonly KICI_WEBHOOK_BUFFER_OLDEST_AGE_SECONDS: readonly [];
462
+ readonly KICI_WEBHOOK_INGRESS_RATE_LIMITED_TOTAL: readonly ['scope'];
426
463
  readonly KICI_WEBHOOK_NO_ORCH_TOTAL: readonly ['outcome', 'org_id'];
427
464
  readonly KICI_WEBHOOK_PG_BREAKER_STATE: readonly [];
428
465
  readonly KICI_WEBHOOK_PG_BREAKER_TRANSITIONS_TOTAL: readonly [];
@@ -439,6 +476,7 @@ export declare const MetricLabels: {
439
476
  readonly KICI_WS_MESSAGES_SENT_TOTAL: readonly ['type'];
440
477
  readonly KICI_WS_NACK_RECEIVED_TOTAL: readonly [];
441
478
  readonly KICI_WS_RELAY_ATTEMPTS_TOTAL: readonly ['status'];
479
+ readonly KICI_WS_RELAY_BODY_OVERSIZE_TOTAL: readonly ['routing_key'];
442
480
  readonly KICI_WS_RELAY_DURATION_SECONDS: readonly ['status'];
443
481
  readonly KICI_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: readonly [];
444
482
  readonly NODEJS_EVENTLOOP_DELAY_MAX: readonly ['scaler'];
@@ -473,6 +511,8 @@ export declare const MetricKind: {
473
511
  readonly KICI_AGENT_STEP_DURATION_SECONDS: 'histogram';
474
512
  readonly KICI_AGENT_STEPS_TOTAL: 'counter';
475
513
  readonly KICI_BILLING_EMAIL_SEND_TOTAL: 'counter';
514
+ readonly KICI_BILLING_RECONCILE_CORRECTIONS_TOTAL: 'counter';
515
+ readonly KICI_BILLING_RECONCILE_ERRORS_TOTAL: 'counter';
476
516
  readonly KICI_BUILD_JOBS_TOTAL: 'counter';
477
517
  readonly KICI_CACHE_HITS_TOTAL: 'counter';
478
518
  readonly KICI_CACHE_MISSES_TOTAL: 'counter';
@@ -490,11 +530,15 @@ export declare const MetricKind: {
490
530
  readonly KICI_ORCH_CHECK_RUN_TRACKING_ROWS_PRUNED_TOTAL: 'counter';
491
531
  readonly KICI_ORCH_CONFIG_RELOAD_TOTAL: 'counter';
492
532
  readonly KICI_ORCH_CONFIG_VERSION: 'observableGauge';
533
+ readonly KICI_ORCH_CONTAINER_REGISTRY_AUTH_CONTRIBUTOR_STRIPPED_TOTAL: 'counter';
493
534
  readonly KICI_ORCH_DB_COLLATION_DRIFT: 'observableGauge';
494
535
  readonly KICI_ORCH_DECLARED_HOSTS_UNREACHABLE: 'observableGauge';
495
536
  readonly KICI_ORCH_DEDUP_HITS_TOTAL: 'counter';
537
+ readonly KICI_ORCH_DEFERRED_ATTESTATION_REJECTED_TOTAL: 'counter';
538
+ readonly KICI_ORCH_DEFERRED_INDEX_BUILDS_TOTAL: 'counter';
496
539
  readonly KICI_ORCH_DEP_CACHE_HITS_TOTAL: 'counter';
497
540
  readonly KICI_ORCH_DEP_CACHE_MISSES_TOTAL: 'counter';
541
+ readonly KICI_ORCH_DISPATCH_OWNERSHIP_SKIPPED_TOTAL: 'counter';
498
542
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH: 'observableGauge';
499
543
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: 'observableGauge';
500
544
  readonly KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: 'counter';
@@ -505,6 +549,7 @@ export declare const MetricKind: {
505
549
  readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'counter';
506
550
  readonly KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: 'counter';
507
551
  readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'counter';
552
+ readonly KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: 'counter';
508
553
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'histogram';
509
554
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'counter';
510
555
  readonly KICI_ORCH_FORK_EVENTS_IGNORED_TOTAL: 'counter';
@@ -527,6 +572,7 @@ export declare const MetricKind: {
527
572
  readonly KICI_ORCH_INGEST_OVERFLOW_CAPTURED_TOTAL: 'counter';
528
573
  readonly KICI_ORCH_INGEST_OVERFLOW_DROPPED_TOTAL: 'counter';
529
574
  readonly KICI_ORCH_INGEST_OVERFLOW_MAX: 'observableGauge';
575
+ readonly KICI_ORCH_INGEST_OVERFLOW_REPLAY_REFUSED_TOTAL: 'counter';
530
576
  readonly KICI_ORCH_INGEST_OVERFLOW_REPLAYED_TOTAL: 'counter';
531
577
  readonly KICI_ORCH_INGEST_QUEUE_DEPTH: 'observableGauge';
532
578
  readonly KICI_ORCH_INGEST_SHED_TOTAL: 'counter';
@@ -542,10 +588,14 @@ export declare const MetricKind: {
542
588
  readonly KICI_ORCH_JOB_RUNS_TOTAL: 'counter';
543
589
  readonly KICI_ORCH_LOG_BYTES_STORED_TOTAL: 'counter';
544
590
  readonly KICI_ORCH_LOG_CHUNKS_RECEIVED_TOTAL: 'counter';
591
+ readonly KICI_ORCH_NON_MONOTONIC_JOB_STATUS_WRITES_TOTAL: 'counter';
545
592
  readonly KICI_ORCH_PENDING_ATTESTATION_OLDEST_AGE_SECONDS: 'observableGauge';
546
593
  readonly KICI_ORCH_PENDING_ATTESTATIONS_CURRENT: 'observableGauge';
594
+ readonly KICI_ORCH_PG_LISTEN_CONNECTED: 'observableGauge';
595
+ readonly KICI_ORCH_PG_LISTEN_RECONNECTS_TOTAL: 'counter';
547
596
  readonly KICI_ORCH_PG_POOL_CLIENT_ERRORS_TOTAL: 'counter';
548
597
  readonly KICI_ORCH_REJECTED_ATTESTATIONS_CURRENT: 'observableGauge';
598
+ readonly KICI_ORCH_RETENTION_ROWS_DELETED_TOTAL: 'counter';
549
599
  readonly KICI_ORCH_SCALER_ADOPTION_LOOKUP_FAILURES_TOTAL: 'counter';
550
600
  readonly KICI_ORCH_SCALER_CAP_LOCK_FAILURES_TOTAL: 'counter';
551
601
  readonly KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: 'counter';
@@ -574,6 +624,7 @@ export declare const MetricKind: {
574
624
  readonly KICI_ORCH_STEP_LOGS_PRUNED_TOTAL: 'counter';
575
625
  readonly KICI_ORCH_STEPS_TOTAL: 'counter';
576
626
  readonly KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: 'histogram';
627
+ readonly KICI_ORCH_TRUST_DIRECTORY_AGE_SECONDS: 'observableGauge';
577
628
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'counter';
578
629
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'counter';
579
630
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'counter';
@@ -629,20 +680,24 @@ export declare const MetricKind: {
629
680
  readonly KICI_PLATFORM_RELAY_BREAKER_TRIPS_TOTAL: 'counter';
630
681
  readonly KICI_PLATFORM_RELAY_REQUEST_DURATION_MS: 'histogram';
631
682
  readonly KICI_PLATFORM_RELAY_REQUEST_OUTCOME_TOTAL: 'counter';
683
+ readonly KICI_PLATFORM_RETENTION_ROWS_DELETED_TOTAL: 'counter';
632
684
  readonly KICI_PLATFORM_RUN_RECONCILE_DEFERRED_TOTAL: 'counter';
633
685
  readonly KICI_PLATFORM_RUN_RECONCILE_RECONCILED_TOTAL: 'counter';
634
686
  readonly KICI_PLATFORM_RUN_RECONCILE_SKIPPED_TOTAL: 'counter';
687
+ readonly KICI_PLATFORM_STALE_ORCH_SKIPPED_RECONNECTED_TOTAL: 'counter';
635
688
  readonly KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: 'counter';
636
689
  readonly KICI_PLATFORM_STALE_PLATFORM_CONNECTIONS_EVICTED_TOTAL: 'counter';
637
690
  readonly KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: 'counter';
638
691
  readonly KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: 'counter';
639
692
  readonly KICI_PLATFORM_SUPPORT_SESSIONS_SWEPT_TOTAL: 'counter';
693
+ readonly KICI_PLATFORM_WORKER_REPORT_COLLAPSE_TOTAL: 'counter';
640
694
  readonly KICI_PLATFORM_WS_ORG_RATE_LIMITED_TOTAL: 'counter';
641
695
  readonly KICI_PLATFORM_WS_SLOW_CONSUMER_TERMINATED_TOTAL: 'counter';
642
696
  readonly KICI_RBAC_PERMS_CACHE_HITS_TOTAL: 'counter';
643
697
  readonly KICI_RBAC_PERMS_CACHE_MISSES_TOTAL: 'counter';
644
698
  readonly KICI_READ_RATE_LIMIT_REJECTED_TOTAL: 'counter';
645
699
  readonly KICI_REGISTRATIONS_TOTAL: 'counter';
700
+ readonly KICI_STRIPE_WEBHOOK_FAILURES_TOTAL: 'counter';
646
701
  readonly KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: 'counter';
647
702
  readonly KICI_USER_REGISTRATION_NOTIFY_TOTAL: 'counter';
648
703
  readonly KICI_VALKEY_CONNECTION_STATUS: 'observableGauge';
@@ -652,6 +707,7 @@ export declare const MetricKind: {
652
707
  readonly KICI_WEBHOOK_BUFFER_BYTES: 'observableGauge';
653
708
  readonly KICI_WEBHOOK_BUFFER_DEPTH: 'observableGauge';
654
709
  readonly KICI_WEBHOOK_BUFFER_OLDEST_AGE_SECONDS: 'observableGauge';
710
+ readonly KICI_WEBHOOK_INGRESS_RATE_LIMITED_TOTAL: 'counter';
655
711
  readonly KICI_WEBHOOK_NO_ORCH_TOTAL: 'counter';
656
712
  readonly KICI_WEBHOOK_PG_BREAKER_STATE: 'observableGauge';
657
713
  readonly KICI_WEBHOOK_PG_BREAKER_TRANSITIONS_TOTAL: 'counter';
@@ -668,6 +724,7 @@ export declare const MetricKind: {
668
724
  readonly KICI_WS_MESSAGES_SENT_TOTAL: 'counter';
669
725
  readonly KICI_WS_NACK_RECEIVED_TOTAL: 'counter';
670
726
  readonly KICI_WS_RELAY_ATTEMPTS_TOTAL: 'counter';
727
+ readonly KICI_WS_RELAY_BODY_OVERSIZE_TOTAL: 'counter';
671
728
  readonly KICI_WS_RELAY_DURATION_SECONDS: 'histogram';
672
729
  readonly KICI_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: 'counter';
673
730
  readonly NODEJS_EVENTLOOP_DELAY_MAX: 'gauge';
@@ -702,6 +759,8 @@ export declare const MetricDescription: {
702
759
  readonly KICI_AGENT_STEP_DURATION_SECONDS: 'Step execution duration in seconds';
703
760
  readonly KICI_AGENT_STEPS_TOTAL: 'Total number of completed steps';
704
761
  readonly KICI_BILLING_EMAIL_SEND_TOTAL: 'Billing emails sent, by kind and status';
762
+ readonly KICI_BILLING_RECONCILE_CORRECTIONS_TOTAL: 'Total entitlement corrections applied by the billing reconcile job';
763
+ readonly KICI_BILLING_RECONCILE_ERRORS_TOTAL: 'Total orgs the billing reconcile job could not resolve against Stripe';
705
764
  readonly KICI_BUILD_JOBS_TOTAL: 'Total build jobs dispatched';
706
765
  readonly KICI_CACHE_HITS_TOTAL: 'Total cache hits by type';
707
766
  readonly KICI_CACHE_MISSES_TOTAL: 'Total cache misses by type';
@@ -719,11 +778,15 @@ export declare const MetricDescription: {
719
778
  readonly KICI_ORCH_CHECK_RUN_TRACKING_ROWS_PRUNED_TOTAL: 'check_run_tracking rows deleted by the retention sweep';
720
779
  readonly KICI_ORCH_CONFIG_RELOAD_TOTAL: 'Total number of config reload operations';
721
780
  readonly KICI_ORCH_CONFIG_VERSION: 'Current shared config version number';
781
+ readonly KICI_ORCH_CONTAINER_REGISTRY_AUTH_CONTRIBUTOR_STRIPPED_TOTAL: 'Job dispatches where container-registry credentials were withheld because the contributor tier was not `trusted`';
722
782
  readonly KICI_ORCH_DB_COLLATION_DRIFT: '1 when the orchestrator DB stamped collation version differs from the running libc (text indexes may silently miss present rows); 0 when consistent.';
723
783
  readonly KICI_ORCH_DECLARED_HOSTS_UNREACHABLE: 'Number of declared (static) roster hosts currently unreachable';
724
784
  readonly KICI_ORCH_DEDUP_HITS_TOTAL: 'Total number of deduplication cache hits';
785
+ readonly KICI_ORCH_DEFERRED_ATTESTATION_REJECTED_TOTAL: 'Deferred provenance attestations refused at capture because the frozen statement did not check out against the orchestrator run row.';
786
+ readonly KICI_ORCH_DEFERRED_INDEX_BUILDS_TOTAL: 'Total post-boot deferred index builds by outcome';
725
787
  readonly KICI_ORCH_DEP_CACHE_HITS_TOTAL: 'Total number of dep cache hits';
726
788
  readonly KICI_ORCH_DEP_CACHE_MISSES_TOTAL: 'Total number of dep cache misses';
789
+ readonly KICI_ORCH_DISPATCH_OWNERSHIP_SKIPPED_TOTAL: 'Dispatch-queue actions skipped because the row is owned elsewhere or already resolved';
727
790
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH: 'Current dispatch_queue depth per status (pending, dispatched)';
728
791
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: 'Current pending dispatch_queue depth per runs_on label (multi-label jobs fan out)';
729
792
  readonly KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: 'Terminal dispatch_queue rows deleted by the retention sweep';
@@ -734,6 +797,7 @@ export declare const MetricDescription: {
734
797
  readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'Internal events moved to the DLQ after exhausting retries';
735
798
  readonly KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: 'Dispatch leases that timed out before the holding node finalised them (signals node crash mid-dispatch)';
736
799
  readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'Internal-event dispatch failures that triggered a retry (lease released, next_retry_at scheduled)';
800
+ readonly KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: 'Total orchestrator connections closed for exceeding the org orchestrator cap';
737
801
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'Duration of execution runs in seconds';
738
802
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'Total number of execution runs';
739
803
  readonly KICI_ORCH_FORK_EVENTS_IGNORED_TOTAL: 'Total fork pull-request events dropped by the org fork policy';
@@ -754,8 +818,9 @@ export declare const MetricDescription: {
754
818
  readonly KICI_ORCH_INGEST_ORG_MAX_CONCURRENCY: 'Configured per-org fairness cap cluster default P (KICI_INGEST_ORG_MAX_CONCURRENCY)';
755
819
  readonly KICI_ORCH_INGEST_OVERFLOW_BUFFERED: 'Current webhook-ingest overflow buffer depth (buffered rows awaiting replay)';
756
820
  readonly KICI_ORCH_INGEST_OVERFLOW_CAPTURED_TOTAL: 'Total shed webhook-ingest deliveries captured into the durable overflow buffer';
757
- readonly KICI_ORCH_INGEST_OVERFLOW_DROPPED_TOTAL: 'Total overflow-buffered deliveries permanently dropped. Labels: reason (cap_full|max_attempts)';
821
+ readonly KICI_ORCH_INGEST_OVERFLOW_DROPPED_TOTAL: 'Total overflow-buffered deliveries permanently dropped. Labels: reason (cap_full|max_attempts|max_age)';
758
822
  readonly KICI_ORCH_INGEST_OVERFLOW_MAX: 'Configured overflow buffer row cap (KICI_INGEST_OVERFLOW_MAX)';
823
+ readonly KICI_ORCH_INGEST_OVERFLOW_REPLAY_REFUSED_TOTAL: 'Total overflow replay reservations refused by the admission controller (the row stays buffered and costs no attempt). Labels: reason (loop_overload|queue_full)';
759
824
  readonly KICI_ORCH_INGEST_OVERFLOW_REPLAYED_TOTAL: 'Total overflow-buffered deliveries successfully replayed through normal ingest';
760
825
  readonly KICI_ORCH_INGEST_QUEUE_DEPTH: 'Current webhook ingest admission queue depth (HTTP direct ingress)';
761
826
  readonly KICI_ORCH_INGEST_SHED_TOTAL: 'Webhook ingest admissions shed by the admission controller. Labels: reason (loop_overload|codel_drop|queue_full|max_sojourn)';
@@ -771,10 +836,14 @@ export declare const MetricDescription: {
771
836
  readonly KICI_ORCH_JOB_RUNS_TOTAL: 'Scheduled job run outcomes, by job and result (success/failure)';
772
837
  readonly KICI_ORCH_LOG_BYTES_STORED_TOTAL: 'Total bytes of log data written to storage';
773
838
  readonly KICI_ORCH_LOG_CHUNKS_RECEIVED_TOTAL: 'Total number of log chunks received from agents';
839
+ readonly KICI_ORCH_NON_MONOTONIC_JOB_STATUS_WRITES_TOTAL: 'execution_jobs status writes rejected because the terminal row contradicts the frame';
774
840
  readonly KICI_ORCH_PENDING_ATTESTATION_OLDEST_AGE_SECONDS: 'Age of the oldest deferred attestation in the outbox';
775
841
  readonly KICI_ORCH_PENDING_ATTESTATIONS_CURRENT: 'Deferred attestations awaiting a later mint';
842
+ readonly KICI_ORCH_PG_LISTEN_CONNECTED: '1 when the LISTEN subscription on this channel holds a live connection';
843
+ readonly KICI_ORCH_PG_LISTEN_RECONNECTS_TOTAL: 'Total LISTEN subscriptions re-established after a connection loss';
776
844
  readonly KICI_ORCH_PG_POOL_CLIENT_ERRORS_TOTAL: 'Total pg connection errors absorbed without a process restart';
777
845
  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';
846
+ readonly KICI_ORCH_RETENTION_ROWS_DELETED_TOTAL: 'Total rows deleted by the database retention sweep, by table';
778
847
  readonly KICI_ORCH_SCALER_ADOPTION_LOOKUP_FAILURES_TOTAL: 'Cumulative event-scaler spawn-record adoption lookups that failed with a store error.';
779
848
  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.';
780
849
  readonly KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: 'Total number of scaler config reload operations';
@@ -803,6 +872,7 @@ export declare const MetricDescription: {
803
872
  readonly KICI_ORCH_STEP_LOGS_PRUNED_TOTAL: 'Step-log objects deleted by the retention sweep';
804
873
  readonly KICI_ORCH_STEPS_TOTAL: 'Total number of steps executed';
805
874
  readonly KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: 'Duration of trigger matching operations in seconds';
875
+ readonly KICI_ORCH_TRUST_DIRECTORY_AGE_SECONDS: 'Seconds since the approval directory /kici approve is authorized against was last refreshed';
806
876
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'Trust-resolution attempts refused because the provider numeric id was missing or did not match';
807
877
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'Total org trust-policy gate decisions by arm and action';
808
878
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'Jobs terminalized as unroutable by the fast-fail probe (not the queue timeout)';
@@ -824,7 +894,7 @@ export declare const MetricDescription: {
824
894
  readonly KICI_PLATFORM_COORDINATOR_POOL_SIZE: 'Coordinator pool size per routing key';
825
895
  readonly KICI_PLATFORM_COORDINATOR_STALE_ENTRIES: 'Stale (non-OPEN socket) coordinator entries in the pool per routing key';
826
896
  readonly KICI_PLATFORM_COORDINATOR_ZOMBIE_ENTRIES_TOTAL: 'Zombie (non-OPEN) coordinator entries encountered during relay selection';
827
- readonly KICI_PLATFORM_CROSS_TENANT_REJECTIONS_TOTAL: 'Total cross-tenant WS messages rejected by the Platform (security invariant). Labels: reason.';
897
+ readonly KICI_PLATFORM_CROSS_TENANT_REJECTIONS_TOTAL: 'Total cross-tenant events rejected or flagged by the Platform, on the WS plane and the webhook ingest (security invariant). Labels: reason.';
828
898
  readonly KICI_PLATFORM_DASHBOARD_PROXY_DURATION_SECONDS: 'Dashboard proxy request round-trip duration in seconds';
829
899
  readonly KICI_PLATFORM_DASHBOARD_PROXY_PENDING: 'In-flight dashboard proxy requests (Platform → orchestrator)';
830
900
  readonly KICI_PLATFORM_DASHBOARD_PROXY_REQUESTS_TOTAL: 'Total dashboard proxy requests by terminal outcome';
@@ -858,20 +928,24 @@ export declare const MetricDescription: {
858
928
  readonly KICI_PLATFORM_RELAY_BREAKER_TRIPS_TOTAL: 'Relay circuit-breaker open transitions per coordinator';
859
929
  readonly KICI_PLATFORM_RELAY_REQUEST_DURATION_MS: 'End-to-end dashboard-proxy relay latency incl. failover, in ms';
860
930
  readonly KICI_PLATFORM_RELAY_REQUEST_OUTCOME_TOTAL: 'Dashboard-proxy relay request outcomes (incl. sibling failover)';
931
+ readonly KICI_PLATFORM_RETENTION_ROWS_DELETED_TOTAL: 'Rows deleted by the retention-purge sweep, labelled by table';
861
932
  readonly KICI_PLATFORM_RUN_RECONCILE_DEFERRED_TOTAL: 'Total run-mirror reconcile rows placed into backoff cooldown this cycle (unchanged status, or unreachable/null — deferred so they neither starve the batch nor are re-pulled every tick)';
862
933
  readonly KICI_PLATFORM_RUN_RECONCILE_RECONCILED_TOTAL: 'Total stuck non-terminal run mirrors whose status actually changed when pulled from an alive orchestrator (recovered drops), not merely re-polled';
863
934
  readonly KICI_PLATFORM_RUN_RECONCILE_SKIPPED_TOTAL: 'Total run-mirror reconcile attempts skipped (orchestrator unreachable or no run state returned)';
935
+ readonly KICI_PLATFORM_STALE_ORCH_SKIPPED_RECONNECTED_TOTAL: 'Stale-orchestrator scans skipped because the DB shows the orchestrator connected elsewhere in the fleet';
864
936
  readonly KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: 'Total orchestrators detected as permanently disconnected';
865
937
  readonly KICI_PLATFORM_STALE_PLATFORM_CONNECTIONS_EVICTED_TOTAL: 'platform_connections rows evicted by source.register DB dedup (same-instance reconnect path)';
866
938
  readonly KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: 'Total execution runs failed due to orchestrator staleness';
867
939
  readonly KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: 'Total step status forwards received';
868
940
  readonly KICI_PLATFORM_SUPPORT_SESSIONS_SWEPT_TOTAL: 'Total support-session activations closed by the janitor sweep';
941
+ readonly KICI_PLATFORM_WORKER_REPORT_COLLAPSE_TOTAL: 'Coordinators whose reported worker count collapsed away from its own peak';
869
942
  readonly KICI_PLATFORM_WS_ORG_RATE_LIMITED_TOTAL: 'Inbound orchestrator messages dropped by the per-org aggregate WS rate limit';
870
943
  readonly KICI_PLATFORM_WS_SLOW_CONSUMER_TERMINATED_TOTAL: 'Total browser WS connections terminated for exceeding the send-buffer watermark';
871
944
  readonly KICI_RBAC_PERMS_CACHE_HITS_TOTAL: 'Effective-permissions cache hits';
872
945
  readonly KICI_RBAC_PERMS_CACHE_MISSES_TOTAL: 'Effective-permissions cache misses (recomputed from Postgres)';
873
946
  readonly KICI_READ_RATE_LIMIT_REJECTED_TOTAL: 'Read-route requests rejected by the protective token bucket, by scope';
874
947
  readonly KICI_REGISTRATIONS_TOTAL: 'Total user registrations (new personal orgs created on first login)';
948
+ readonly KICI_STRIPE_WEBHOOK_FAILURES_TOTAL: 'Total Stripe webhook events whose handler failed and rolled back';
875
949
  readonly KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: 'Errors encountered while registering universal-git provider bundles';
876
950
  readonly KICI_USER_REGISTRATION_NOTIFY_TOTAL: 'New-user Telegram notifications by result (sent|failed)';
877
951
  readonly KICI_VALKEY_CONNECTION_STATUS: 'Valkey connection status per role (1=connected, 0=disconnected)';
@@ -881,6 +955,7 @@ export declare const MetricDescription: {
881
955
  readonly KICI_WEBHOOK_BUFFER_BYTES: 'Total buffered webhook bytes (global Valkey counter)';
882
956
  readonly KICI_WEBHOOK_BUFFER_DEPTH: 'Buffered webhook count per org';
883
957
  readonly KICI_WEBHOOK_BUFFER_OLDEST_AGE_SECONDS: 'Age of the oldest buffered webhook per org, in seconds';
958
+ readonly KICI_WEBHOOK_INGRESS_RATE_LIMITED_TOTAL: 'Webhook ingress requests rejected by the protective token bucket, by scope';
884
959
  readonly KICI_WEBHOOK_NO_ORCH_TOTAL: 'Webhooks handled by the no-orchestrator buffer, by outcome';
885
960
  readonly KICI_WEBHOOK_PG_BREAKER_STATE: 'PG circuit-breaker state on this instance (0=closed,1=degraded,2=open)';
886
961
  readonly KICI_WEBHOOK_PG_BREAKER_TRANSITIONS_TOTAL: 'PG circuit-breaker state transitions';
@@ -897,6 +972,7 @@ export declare const MetricDescription: {
897
972
  readonly KICI_WS_MESSAGES_SENT_TOTAL: 'Total messages sent to orchestrators';
898
973
  readonly KICI_WS_NACK_RECEIVED_TOTAL: 'NACKs received from an orchestrator for a message it could not process (version skew)';
899
974
  readonly KICI_WS_RELAY_ATTEMPTS_TOTAL: 'Total number of webhook relay attempts';
975
+ readonly KICI_WS_RELAY_BODY_OVERSIZE_TOTAL: 'Cross-instance relay notifications refused for exceeding the pub/sub payload size guard';
900
976
  readonly KICI_WS_RELAY_DURATION_SECONDS: 'Duration of webhook relay operations in seconds';
901
977
  readonly KICI_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: 'NACKs sent to an orchestrator for an unrecognized inbound message type (version skew)';
902
978
  readonly NODEJS_EVENTLOOP_DELAY_MAX: 'Event loop maximum delay';
@@ -938,6 +1014,8 @@ export declare const MetricService: {
938
1014
  readonly KICI_AGENT_STEP_DURATION_SECONDS: 'agent';
939
1015
  readonly KICI_AGENT_STEPS_TOTAL: 'agent';
940
1016
  readonly KICI_BILLING_EMAIL_SEND_TOTAL: 'platform';
1017
+ readonly KICI_BILLING_RECONCILE_CORRECTIONS_TOTAL: 'platform';
1018
+ readonly KICI_BILLING_RECONCILE_ERRORS_TOTAL: 'platform';
941
1019
  readonly KICI_BUILD_JOBS_TOTAL: 'platform';
942
1020
  readonly KICI_CACHE_HITS_TOTAL: 'platform';
943
1021
  readonly KICI_CACHE_MISSES_TOTAL: 'platform';
@@ -955,11 +1033,15 @@ export declare const MetricService: {
955
1033
  readonly KICI_ORCH_CHECK_RUN_TRACKING_ROWS_PRUNED_TOTAL: 'orchestrator';
956
1034
  readonly KICI_ORCH_CONFIG_RELOAD_TOTAL: 'orchestrator';
957
1035
  readonly KICI_ORCH_CONFIG_VERSION: 'orchestrator';
1036
+ readonly KICI_ORCH_CONTAINER_REGISTRY_AUTH_CONTRIBUTOR_STRIPPED_TOTAL: 'orchestrator';
958
1037
  readonly KICI_ORCH_DB_COLLATION_DRIFT: 'orchestrator';
959
1038
  readonly KICI_ORCH_DECLARED_HOSTS_UNREACHABLE: 'orchestrator';
960
1039
  readonly KICI_ORCH_DEDUP_HITS_TOTAL: 'orchestrator';
1040
+ readonly KICI_ORCH_DEFERRED_ATTESTATION_REJECTED_TOTAL: 'orchestrator';
1041
+ readonly KICI_ORCH_DEFERRED_INDEX_BUILDS_TOTAL: 'orchestrator';
961
1042
  readonly KICI_ORCH_DEP_CACHE_HITS_TOTAL: 'orchestrator';
962
1043
  readonly KICI_ORCH_DEP_CACHE_MISSES_TOTAL: 'orchestrator';
1044
+ readonly KICI_ORCH_DISPATCH_OWNERSHIP_SKIPPED_TOTAL: 'orchestrator';
963
1045
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH: 'orchestrator';
964
1046
  readonly KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: 'orchestrator';
965
1047
  readonly KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: 'orchestrator';
@@ -970,6 +1052,7 @@ export declare const MetricService: {
970
1052
  readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'orchestrator';
971
1053
  readonly KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: 'orchestrator';
972
1054
  readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'orchestrator';
1055
+ readonly KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: 'platform';
973
1056
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'orchestrator';
974
1057
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'orchestrator';
975
1058
  readonly KICI_ORCH_FORK_EVENTS_IGNORED_TOTAL: 'orchestrator';
@@ -992,6 +1075,7 @@ export declare const MetricService: {
992
1075
  readonly KICI_ORCH_INGEST_OVERFLOW_CAPTURED_TOTAL: 'orchestrator';
993
1076
  readonly KICI_ORCH_INGEST_OVERFLOW_DROPPED_TOTAL: 'orchestrator';
994
1077
  readonly KICI_ORCH_INGEST_OVERFLOW_MAX: 'orchestrator';
1078
+ readonly KICI_ORCH_INGEST_OVERFLOW_REPLAY_REFUSED_TOTAL: 'orchestrator';
995
1079
  readonly KICI_ORCH_INGEST_OVERFLOW_REPLAYED_TOTAL: 'orchestrator';
996
1080
  readonly KICI_ORCH_INGEST_QUEUE_DEPTH: 'orchestrator';
997
1081
  readonly KICI_ORCH_INGEST_SHED_TOTAL: 'orchestrator';
@@ -1007,10 +1091,14 @@ export declare const MetricService: {
1007
1091
  readonly KICI_ORCH_JOB_RUNS_TOTAL: 'orchestrator';
1008
1092
  readonly KICI_ORCH_LOG_BYTES_STORED_TOTAL: 'orchestrator';
1009
1093
  readonly KICI_ORCH_LOG_CHUNKS_RECEIVED_TOTAL: 'orchestrator';
1094
+ readonly KICI_ORCH_NON_MONOTONIC_JOB_STATUS_WRITES_TOTAL: 'orchestrator';
1010
1095
  readonly KICI_ORCH_PENDING_ATTESTATION_OLDEST_AGE_SECONDS: 'orchestrator';
1011
1096
  readonly KICI_ORCH_PENDING_ATTESTATIONS_CURRENT: 'orchestrator';
1097
+ readonly KICI_ORCH_PG_LISTEN_CONNECTED: 'orchestrator';
1098
+ readonly KICI_ORCH_PG_LISTEN_RECONNECTS_TOTAL: 'orchestrator';
1012
1099
  readonly KICI_ORCH_PG_POOL_CLIENT_ERRORS_TOTAL: 'orchestrator';
1013
1100
  readonly KICI_ORCH_REJECTED_ATTESTATIONS_CURRENT: 'orchestrator';
1101
+ readonly KICI_ORCH_RETENTION_ROWS_DELETED_TOTAL: 'orchestrator';
1014
1102
  readonly KICI_ORCH_SCALER_ADOPTION_LOOKUP_FAILURES_TOTAL: 'orchestrator';
1015
1103
  readonly KICI_ORCH_SCALER_CAP_LOCK_FAILURES_TOTAL: 'orchestrator';
1016
1104
  readonly KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: 'orchestrator';
@@ -1039,6 +1127,7 @@ export declare const MetricService: {
1039
1127
  readonly KICI_ORCH_STEP_LOGS_PRUNED_TOTAL: 'orchestrator';
1040
1128
  readonly KICI_ORCH_STEPS_TOTAL: 'orchestrator';
1041
1129
  readonly KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: 'orchestrator';
1130
+ readonly KICI_ORCH_TRUST_DIRECTORY_AGE_SECONDS: 'orchestrator';
1042
1131
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'orchestrator';
1043
1132
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'orchestrator';
1044
1133
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'orchestrator';
@@ -1094,20 +1183,24 @@ export declare const MetricService: {
1094
1183
  readonly KICI_PLATFORM_RELAY_BREAKER_TRIPS_TOTAL: 'platform';
1095
1184
  readonly KICI_PLATFORM_RELAY_REQUEST_DURATION_MS: 'platform';
1096
1185
  readonly KICI_PLATFORM_RELAY_REQUEST_OUTCOME_TOTAL: 'platform';
1186
+ readonly KICI_PLATFORM_RETENTION_ROWS_DELETED_TOTAL: 'platform';
1097
1187
  readonly KICI_PLATFORM_RUN_RECONCILE_DEFERRED_TOTAL: 'platform';
1098
1188
  readonly KICI_PLATFORM_RUN_RECONCILE_RECONCILED_TOTAL: 'platform';
1099
1189
  readonly KICI_PLATFORM_RUN_RECONCILE_SKIPPED_TOTAL: 'platform';
1190
+ readonly KICI_PLATFORM_STALE_ORCH_SKIPPED_RECONNECTED_TOTAL: 'platform';
1100
1191
  readonly KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: 'platform';
1101
1192
  readonly KICI_PLATFORM_STALE_PLATFORM_CONNECTIONS_EVICTED_TOTAL: 'platform';
1102
1193
  readonly KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: 'platform';
1103
1194
  readonly KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: 'platform';
1104
1195
  readonly KICI_PLATFORM_SUPPORT_SESSIONS_SWEPT_TOTAL: 'platform';
1196
+ readonly KICI_PLATFORM_WORKER_REPORT_COLLAPSE_TOTAL: 'platform';
1105
1197
  readonly KICI_PLATFORM_WS_ORG_RATE_LIMITED_TOTAL: 'platform';
1106
1198
  readonly KICI_PLATFORM_WS_SLOW_CONSUMER_TERMINATED_TOTAL: 'platform';
1107
1199
  readonly KICI_RBAC_PERMS_CACHE_HITS_TOTAL: 'platform';
1108
1200
  readonly KICI_RBAC_PERMS_CACHE_MISSES_TOTAL: 'platform';
1109
1201
  readonly KICI_READ_RATE_LIMIT_REJECTED_TOTAL: 'platform';
1110
1202
  readonly KICI_REGISTRATIONS_TOTAL: 'platform';
1203
+ readonly KICI_STRIPE_WEBHOOK_FAILURES_TOTAL: 'platform';
1111
1204
  readonly KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: 'orchestrator';
1112
1205
  readonly KICI_USER_REGISTRATION_NOTIFY_TOTAL: 'platform';
1113
1206
  readonly KICI_VALKEY_CONNECTION_STATUS: 'platform';
@@ -1117,6 +1210,7 @@ export declare const MetricService: {
1117
1210
  readonly KICI_WEBHOOK_BUFFER_BYTES: 'platform';
1118
1211
  readonly KICI_WEBHOOK_BUFFER_DEPTH: 'platform';
1119
1212
  readonly KICI_WEBHOOK_BUFFER_OLDEST_AGE_SECONDS: 'platform';
1213
+ readonly KICI_WEBHOOK_INGRESS_RATE_LIMITED_TOTAL: 'platform';
1120
1214
  readonly KICI_WEBHOOK_NO_ORCH_TOTAL: 'platform';
1121
1215
  readonly KICI_WEBHOOK_PG_BREAKER_STATE: 'platform';
1122
1216
  readonly KICI_WEBHOOK_PG_BREAKER_TRANSITIONS_TOTAL: 'platform';
@@ -1133,6 +1227,7 @@ export declare const MetricService: {
1133
1227
  readonly KICI_WS_MESSAGES_SENT_TOTAL: 'platform';
1134
1228
  readonly KICI_WS_NACK_RECEIVED_TOTAL: 'platform';
1135
1229
  readonly KICI_WS_RELAY_ATTEMPTS_TOTAL: 'platform';
1230
+ readonly KICI_WS_RELAY_BODY_OVERSIZE_TOTAL: 'platform';
1136
1231
  readonly KICI_WS_RELAY_DURATION_SECONDS: 'platform';
1137
1232
  readonly KICI_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: 'platform';
1138
1233
  readonly NODEJS_EVENTLOOP_DELAY_MAX: 'runtime';