@kici-dev/engine 0.1.27 → 0.3.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 (148) hide show
  1. package/dist/approval/types.d.ts +8 -1
  2. package/dist/approval/types.js +8 -1
  3. package/dist/artifacts/name.d.ts +60 -0
  4. package/dist/artifacts/name.js +71 -0
  5. package/dist/audit/access-log-policy.d.ts +1 -1
  6. package/dist/audit/access-log-policy.js +8 -0
  7. package/dist/audit/activity.d.ts +12 -12
  8. package/dist/audit/retention-policy.js +16 -0
  9. package/dist/billing/plan-type.d.ts +53 -0
  10. package/dist/billing/plan-type.js +70 -0
  11. package/dist/bundler/rolldown-config.d.ts +3 -3
  12. package/dist/check-mode.d.ts +1 -1
  13. package/dist/context/concurrency-strategy.d.ts +34 -0
  14. package/dist/context/concurrency-strategy.js +35 -0
  15. package/dist/context/held-run-job-id.d.ts +45 -0
  16. package/dist/context/held-run-job-id.js +56 -0
  17. package/dist/context/held-run-status.d.ts +33 -0
  18. package/dist/context/held-run-status.js +37 -0
  19. package/dist/context/hold-expiry.d.ts +20 -0
  20. package/dist/context/hold-expiry.js +25 -0
  21. package/dist/context/hold-reason.d.ts +33 -0
  22. package/dist/context/hold-reason.js +23 -0
  23. package/dist/context/hold-type.d.ts +40 -0
  24. package/dist/context/hold-type.js +61 -0
  25. package/dist/context/index.d.ts +9 -1
  26. package/dist/context/index.js +9 -2
  27. package/dist/context/multi-context.d.ts +3 -3
  28. package/dist/context/scope-name.d.ts +29 -0
  29. package/dist/context/scope-name.js +49 -0
  30. package/dist/context/scope-resolver.d.ts +33 -0
  31. package/dist/context/scope-resolver.js +45 -15
  32. package/dist/context/types.d.ts +8 -5
  33. package/dist/dev-ops/operations.d.ts +8 -0
  34. package/dist/dev-ops/operations.js +36 -19
  35. package/dist/diagnostics/infra-alert.d.ts +71 -0
  36. package/dist/diagnostics/infra-alert.js +60 -0
  37. package/dist/env/environment-allowlist.d.ts +4 -4
  38. package/dist/fanout/materialize.d.ts +16 -0
  39. package/dist/fanout/materialize.js +32 -3
  40. package/dist/index.d.ts +15 -6
  41. package/dist/index.js +34 -19
  42. package/dist/inputs/descriptor.d.ts +9 -9
  43. package/dist/inventory.d.ts +4 -4
  44. package/dist/labels.d.ts +82 -2
  45. package/dist/labels.js +119 -1
  46. package/dist/matrix/expand.d.ts +49 -2
  47. package/dist/matrix/expand.js +102 -13
  48. package/dist/matrix/format.d.ts +6 -1
  49. package/dist/matrix/format.js +6 -1
  50. package/dist/mcp/held-run-resolve.d.ts +7 -10
  51. package/dist/mcp/held-run-resolve.js +33 -7
  52. package/dist/metrics/catalog-policy.js +4 -4
  53. package/dist/metrics/metric-catalog.generated.d.ts +959 -739
  54. package/dist/metrics/metric-catalog.generated.js +284 -20
  55. package/dist/metrics/metric-kind-compat.d.ts +26 -0
  56. package/dist/metrics/metric-kind-compat.js +33 -0
  57. package/dist/protocol/analytics-events.d.ts +6 -6
  58. package/dist/protocol/dashboard-api-errors.d.ts +1 -0
  59. package/dist/protocol/dashboard-api-errors.js +5 -1
  60. package/dist/protocol/dashboard-write-operations.d.ts +143 -86
  61. package/dist/protocol/dashboard-write-operations.js +91 -17
  62. package/dist/protocol/messages/access-log.d.ts +437 -392
  63. package/dist/protocol/messages/access-log.js +11 -2
  64. package/dist/protocol/messages/actor.d.ts +2 -2
  65. package/dist/protocol/messages/agent-dev-ops.d.ts +4 -2
  66. package/dist/protocol/messages/agent-dev-ops.js +2 -5
  67. package/dist/protocol/messages/agent-run-result.d.ts +72 -62
  68. package/dist/protocol/messages/auth.d.ts +35 -23
  69. package/dist/protocol/messages/browser.d.ts +81 -5
  70. package/dist/protocol/messages/browser.js +53 -2
  71. package/dist/protocol/messages/capabilities.d.ts +106 -31
  72. package/dist/protocol/messages/capabilities.js +94 -10
  73. package/dist/protocol/messages/common.d.ts +45 -2
  74. package/dist/protocol/messages/common.js +64 -3
  75. package/dist/protocol/messages/dashboard-sealed-write.d.ts +52 -0
  76. package/dist/protocol/messages/dashboard-sealed-write.js +57 -0
  77. package/dist/protocol/messages/dashboard.d.ts +1026 -498
  78. package/dist/protocol/messages/dashboard.js +208 -31
  79. package/dist/protocol/messages/deployment-identity.d.ts +37 -10
  80. package/dist/protocol/messages/deployment-identity.js +30 -3
  81. package/dist/protocol/messages/event-log.d.ts +5 -5
  82. package/dist/protocol/messages/execution-status.d.ts +189 -53
  83. package/dist/protocol/messages/execution-status.js +108 -40
  84. package/dist/protocol/messages/heartbeat-health.d.ts +83 -0
  85. package/dist/protocol/messages/heartbeat-health.js +87 -0
  86. package/dist/protocol/messages/log-stream.d.ts +18 -0
  87. package/dist/protocol/messages/log-stream.js +19 -0
  88. package/dist/protocol/messages/oidc-mint.d.ts +7 -0
  89. package/dist/protocol/messages/oidc-mint.js +7 -0
  90. package/dist/protocol/messages/orchestrator-agent.d.ts +264 -67
  91. package/dist/protocol/messages/orchestrator-agent.js +170 -5
  92. package/dist/protocol/messages/pat-kind.d.ts +1 -1
  93. package/dist/protocol/messages/peer.d.ts +122 -58
  94. package/dist/protocol/messages/peer.js +37 -2
  95. package/dist/protocol/messages/platform-orchestrator.d.ts +561 -217
  96. package/dist/protocol/messages/platform-orchestrator.js +131 -21
  97. package/dist/protocol/messages/run-events.d.ts +5 -5
  98. package/dist/protocol/messages/scaler-event.d.ts +3 -3
  99. package/dist/protocol/messages/source-registration.d.ts +56 -13
  100. package/dist/protocol/messages/source-registration.js +49 -6
  101. package/dist/protocol/source-origin.d.ts +1 -1
  102. package/dist/provenance/attestation-origin.d.ts +1 -1
  103. package/dist/provenance/schema.d.ts +11 -11
  104. package/dist/provenance/verify.js +2 -1
  105. package/dist/provider/changed-files-fetcher.d.ts +21 -2
  106. package/dist/provider/check-run-conclusion.d.ts +2 -2
  107. package/dist/provider/check-status-poster.d.ts +23 -0
  108. package/dist/provider/index.d.ts +2 -2
  109. package/dist/registration/registerable-trigger-type.d.ts +14 -13
  110. package/dist/registration/registerable-trigger-type.js +1 -0
  111. package/dist/sandbox/capabilities.d.ts +6 -0
  112. package/dist/sandbox/capabilities.js +57 -0
  113. package/dist/scaler/scaler-backend-type.d.ts +1 -1
  114. package/dist/status/presentation.d.ts +89 -0
  115. package/dist/status/presentation.js +163 -0
  116. package/dist/trigger/compiled-matchers.d.ts +13 -0
  117. package/dist/trigger/compiled-matchers.js +44 -0
  118. package/dist/trigger/event-buckets.d.ts +44 -0
  119. package/dist/trigger/event-buckets.js +93 -0
  120. package/dist/trigger/matcher.d.ts +7 -3
  121. package/dist/trigger/matcher.js +53 -15
  122. package/dist/trigger/schedule-key.d.ts +14 -0
  123. package/dist/trigger/schedule-key.js +21 -0
  124. package/dist/trigger/trigger-event-type.d.ts +1 -1
  125. package/dist/trigger/trigger-event-type.js +2 -0
  126. package/dist/trigger/types.d.ts +173 -43
  127. package/dist/trigger/types.js +82 -25
  128. package/dist/webhook/event-types.d.ts +56 -0
  129. package/dist/webhook/event-types.js +59 -0
  130. package/dist/ws/ws-like.d.ts +13 -0
  131. package/package.json +12 -4
  132. package/sbom.spdx.json +10 -10
  133. package/dist/environment/host-match.d.ts +0 -25
  134. package/dist/environment/index.d.ts +0 -6
  135. package/dist/environment/multi-env.d.ts +0 -30
  136. package/dist/environment/scope-resolver.d.ts +0 -46
  137. package/dist/environment/scope-template.d.ts +0 -18
  138. package/dist/environment/types.d.ts +0 -119
  139. package/dist/package-manager.d.ts +0 -20
  140. package/dist/protocol/messages/observe.d.ts +0 -76
  141. package/dist/protocol/messages/saas-orchestrator.d.ts +0 -2179
  142. package/dist/protocol/messages/test-run.d.ts +0 -59
  143. package/dist/state-machine/index.d.ts +0 -2
  144. package/dist/state-machine/index.js +0 -3
  145. package/dist/state-machine/machine.d.ts +0 -34
  146. package/dist/state-machine/machine.js +0 -103
  147. package/dist/state-machine/types.d.ts +0 -34
  148. package/dist/state-machine/types.js +0 -15
@@ -26,6 +26,7 @@ const MetricNames = {
26
26
  KICI_MCP_TOOL_REQUESTS_TOTAL: "kici_mcp_tool_requests_total",
27
27
  KICI_ORCH_AGENTS_ACTIVE: "kici_orch_agents_active",
28
28
  KICI_ORCH_BUILD_DURATION_SECONDS: "kici_orch_build_duration_seconds",
29
+ KICI_ORCH_CHECK_RUN_TRACKING_ROWS_PRUNED_TOTAL: "kici_orch_check_run_tracking_rows_pruned_total",
29
30
  KICI_ORCH_CONFIG_RELOAD_TOTAL: "kici_orch_config_reload_total",
30
31
  KICI_ORCH_CONFIG_VERSION: "kici_orch_config_version",
31
32
  KICI_ORCH_DB_COLLATION_DRIFT: "kici_orch_db_collation_drift",
@@ -35,6 +36,7 @@ const MetricNames = {
35
36
  KICI_ORCH_DEP_CACHE_MISSES_TOTAL: "kici_orch_dep_cache_misses_total",
36
37
  KICI_ORCH_DISPATCH_QUEUE_DEPTH: "kici_orch_dispatch_queue_depth",
37
38
  KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: "kici_orch_dispatch_queue_depth_by_label",
39
+ KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: "kici_orch_dispatch_queue_rows_pruned_total",
38
40
  KICI_ORCH_EVENT_ATTEMPTS: "kici_orch_event_attempts",
39
41
  KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: "kici_orch_event_dispatch_success_total",
40
42
  KICI_ORCH_EVENT_DLQ_DEPTH: "kici_orch_event_dlq_depth",
@@ -44,6 +46,23 @@ const MetricNames = {
44
46
  KICI_ORCH_EXECUTION_DURATION_SECONDS: "kici_orch_execution_duration_seconds",
45
47
  KICI_ORCH_EXECUTIONS_TOTAL: "kici_orch_executions_total",
46
48
  KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "kici_orch_github_check_run_total",
49
+ KICI_ORCH_INGEST_ADMITTED_TOTAL: "kici_orch_ingest_admitted_total",
50
+ KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: "kici_orch_ingest_event_loop_delay_max_ms",
51
+ KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: "kici_orch_ingest_event_loop_delay_p99_ms",
52
+ KICI_ORCH_INGEST_INFLIGHT: "kici_orch_ingest_inflight",
53
+ KICI_ORCH_INGEST_LOOP_LAG_RESUME_MS: "kici_orch_ingest_loop_lag_resume_ms",
54
+ KICI_ORCH_INGEST_LOOP_LAG_SHED_MS: "kici_orch_ingest_loop_lag_shed_ms",
55
+ KICI_ORCH_INGEST_MAX_CONCURRENCY: "kici_orch_ingest_max_concurrency",
56
+ KICI_ORCH_INGEST_MAX_QUEUE_DEPTH: "kici_orch_ingest_max_queue_depth",
57
+ KICI_ORCH_INGEST_ORG_MAX_CONCURRENCY: "kici_orch_ingest_org_max_concurrency",
58
+ KICI_ORCH_INGEST_OVERFLOW_BUFFERED: "kici_orch_ingest_overflow_buffered",
59
+ KICI_ORCH_INGEST_OVERFLOW_CAPTURED_TOTAL: "kici_orch_ingest_overflow_captured_total",
60
+ KICI_ORCH_INGEST_OVERFLOW_DROPPED_TOTAL: "kici_orch_ingest_overflow_dropped_total",
61
+ KICI_ORCH_INGEST_OVERFLOW_MAX: "kici_orch_ingest_overflow_max",
62
+ KICI_ORCH_INGEST_OVERFLOW_REPLAYED_TOTAL: "kici_orch_ingest_overflow_replayed_total",
63
+ KICI_ORCH_INGEST_QUEUE_DEPTH: "kici_orch_ingest_queue_depth",
64
+ KICI_ORCH_INGEST_SHED_TOTAL: "kici_orch_ingest_shed_total",
65
+ KICI_ORCH_INGEST_SHEDDING_ACTIVE: "kici_orch_ingest_shedding_active",
47
66
  KICI_ORCH_INSTALL_SECRETS_CONTRIBUTOR_STRIPPED_TOTAL: "kici_orch_install_secrets_contributor_stripped_total",
48
67
  KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: "kici_orch_install_secrets_decisions_total",
49
68
  KICI_ORCH_INSTALL_SECRETS_NPM_REGISTRY_USED_TOTAL: "kici_orch_install_secrets_npm_registry_used_total",
@@ -62,6 +81,7 @@ const MetricNames = {
62
81
  KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: "kici_orch_scaler_config_reloads_total",
63
82
  KICI_ORCH_SCALER_CPUS_USED: "kici_orch_scaler_cpus_used",
64
83
  KICI_ORCH_SCALER_MEMORY_BYTES_USED: "kici_orch_scaler_memory_bytes_used",
84
+ KICI_ORCH_SCALER_REDISPATCH_TOTAL: "kici_orch_scaler_redispatch_total",
65
85
  KICI_ORCH_SCALER_SPAWN_FAILURES_TOTAL: "kici_orch_scaler_spawn_failures_total",
66
86
  KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: "kici_orch_scaler_spawn_refusals_total",
67
87
  KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: "kici_orch_source_cache_hits_total",
@@ -69,11 +89,19 @@ const MetricNames = {
69
89
  KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: "kici_orch_stale_detection_duration_seconds",
70
90
  KICI_ORCH_STALE_RUNS_CURRENT: "kici_orch_stale_runs_current",
71
91
  KICI_ORCH_STALE_RUNS_DETECTED_TOTAL: "kici_orch_stale_runs_detected_total",
92
+ KICI_ORCH_STATE_REPLAY_BREAKER_TRIPS_TOTAL: "kici_orch_state_replay_breaker_trips_total",
93
+ KICI_ORCH_STEP_LOGS_PRUNED_TOTAL: "kici_orch_step_logs_pruned_total",
72
94
  KICI_ORCH_STEPS_TOTAL: "kici_orch_steps_total",
73
95
  KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: "kici_orch_trigger_match_duration_seconds",
74
96
  KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: "kici_orch_trust_match_refused_no_id_total",
97
+ KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: "kici_orch_trust_policy_decisions_total",
98
+ KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: "kici_orch_unroutable_fast_failed_total",
75
99
  KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: "kici_orch_webhooks_processed_total",
76
100
  KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: "kici_orch_webhooks_received_total",
101
+ KICI_ORCH_WS_NACK_RECEIVED_TOTAL: "kici_orch_ws_nack_received_total",
102
+ KICI_ORCH_WS_PLATFORM_CAPABILITY_GAP_TOTAL: "kici_orch_ws_platform_capability_gap_total",
103
+ KICI_ORCH_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: "kici_orch_ws_unsupported_message_sent_total",
104
+ KICI_ORCHESTRATOR_DRAINING: "kici_orchestrator_draining",
77
105
  KICI_ORG_AGENT_MINUTES: "kici_org_agent_minutes",
78
106
  KICI_ORG_CONNECTIONS: "kici_org_connections",
79
107
  KICI_ORG_EXECUTIONS_COUNT: "kici_org_executions_count",
@@ -89,6 +117,10 @@ const MetricNames = {
89
117
  KICI_PLATFORM_DASHBOARD_PROXY_DURATION_SECONDS: "kici_platform_dashboard_proxy_duration_seconds",
90
118
  KICI_PLATFORM_DASHBOARD_PROXY_PENDING: "kici_platform_dashboard_proxy_pending",
91
119
  KICI_PLATFORM_DASHBOARD_PROXY_REQUESTS_TOTAL: "kici_platform_dashboard_proxy_requests_total",
120
+ KICI_PLATFORM_DB_POOL_ACQUIRE_TIMEOUTS_TOTAL: "kici_platform_db_pool_acquire_timeouts_total",
121
+ KICI_PLATFORM_DB_POOL_CONNECTIONS: "kici_platform_db_pool_connections",
122
+ KICI_PLATFORM_DB_POOL_SATURATED: "kici_platform_db_pool_saturated",
123
+ KICI_PLATFORM_DEGRADED_BUFFER_KEYS_GC_TOTAL: "kici_platform_degraded_buffer_keys_gc_total",
92
124
  KICI_PLATFORM_EXECUTION_EVENTS_TOTAL: "kici_platform_execution_events_total",
93
125
  KICI_PLATFORM_EXECUTION_STATUS_UPDATES_TOTAL: "kici_platform_execution_status_updates_total",
94
126
  KICI_PLATFORM_IDENTITY_LINKS_MISSING_PROVIDER_USER_ID: "kici_platform_identity_links_missing_provider_user_id",
@@ -112,11 +144,19 @@ const MetricNames = {
112
144
  KICI_PLATFORM_RELAY_BREAKER_TRIPS_TOTAL: "kici_platform_relay_breaker_trips_total",
113
145
  KICI_PLATFORM_RELAY_REQUEST_DURATION_MS: "kici_platform_relay_request_duration_ms",
114
146
  KICI_PLATFORM_RELAY_REQUEST_OUTCOME_TOTAL: "kici_platform_relay_request_outcome_total",
147
+ KICI_PLATFORM_RUN_RECONCILE_DEFERRED_TOTAL: "kici_platform_run_reconcile_deferred_total",
148
+ KICI_PLATFORM_RUN_RECONCILE_RECONCILED_TOTAL: "kici_platform_run_reconcile_reconciled_total",
149
+ KICI_PLATFORM_RUN_RECONCILE_SKIPPED_TOTAL: "kici_platform_run_reconcile_skipped_total",
115
150
  KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: "kici_platform_stale_orchestrators_total",
116
151
  KICI_PLATFORM_STALE_PLATFORM_CONNECTIONS_EVICTED_TOTAL: "kici_platform_stale_platform_connections_evicted_total",
117
152
  KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: "kici_platform_stale_runs_failed_total",
118
153
  KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: "kici_platform_step_status_forwards_total",
154
+ KICI_PLATFORM_SUPPORT_SESSIONS_SWEPT_TOTAL: "kici_platform_support_sessions_swept_total",
119
155
  KICI_PLATFORM_WS_ORG_RATE_LIMITED_TOTAL: "kici_platform_ws_org_rate_limited_total",
156
+ KICI_PLATFORM_WS_SLOW_CONSUMER_TERMINATED_TOTAL: "kici_platform_ws_slow_consumer_terminated_total",
157
+ KICI_RBAC_PERMS_CACHE_HITS_TOTAL: "kici_rbac_perms_cache_hits_total",
158
+ KICI_RBAC_PERMS_CACHE_MISSES_TOTAL: "kici_rbac_perms_cache_misses_total",
159
+ KICI_READ_RATE_LIMIT_REJECTED_TOTAL: "kici_read_rate_limit_rejected_total",
120
160
  KICI_REGISTRATIONS_TOTAL: "kici_registrations_total",
121
161
  KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: "kici_universal_git_registration_errors_total",
122
162
  KICI_USER_REGISTRATION_NOTIFY_TOTAL: "kici_user_registration_notify_total",
@@ -127,9 +167,11 @@ const MetricNames = {
127
167
  KICI_WEBHOOK_BUFFER_BYTES: "kici_webhook_buffer_bytes",
128
168
  KICI_WEBHOOK_BUFFER_DEPTH: "kici_webhook_buffer_depth",
129
169
  KICI_WEBHOOK_BUFFER_OLDEST_AGE_SECONDS: "kici_webhook_buffer_oldest_age_seconds",
170
+ KICI_WEBHOOK_NO_ORCH_TOTAL: "kici_webhook_no_orch_total",
130
171
  KICI_WEBHOOK_PG_BREAKER_STATE: "kici_webhook_pg_breaker_state",
131
172
  KICI_WEBHOOK_PG_BREAKER_TRANSITIONS_TOTAL: "kici_webhook_pg_breaker_transitions_total",
132
173
  KICI_WEBHOOK_PG_DEGRADED_TOTAL: "kici_webhook_pg_degraded_total",
174
+ KICI_WEBHOOK_PG_PROBE_TOTAL: "kici_webhook_pg_probe_total",
133
175
  KICI_WEBHOOK_PROCESSING_SECONDS: "kici_webhook_processing_seconds",
134
176
  KICI_WEBHOOK_REPLAY_DURATION_SECONDS: "kici_webhook_replay_duration_seconds",
135
177
  KICI_WEBHOOK_SIGNATURE_FAILURES_TOTAL: "kici_webhook_signature_failures_total",
@@ -139,8 +181,10 @@ const MetricNames = {
139
181
  KICI_WS_HEARTBEAT_AGE_SECONDS: "kici_ws_heartbeat_age_seconds",
140
182
  KICI_WS_MESSAGES_RECEIVED_TOTAL: "kici_ws_messages_received_total",
141
183
  KICI_WS_MESSAGES_SENT_TOTAL: "kici_ws_messages_sent_total",
184
+ KICI_WS_NACK_RECEIVED_TOTAL: "kici_ws_nack_received_total",
142
185
  KICI_WS_RELAY_ATTEMPTS_TOTAL: "kici_ws_relay_attempts_total",
143
186
  KICI_WS_RELAY_DURATION_SECONDS: "kici_ws_relay_duration_seconds",
187
+ KICI_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: "kici_ws_unsupported_message_sent_total",
144
188
  NODEJS_EVENTLOOP_DELAY_MAX: "nodejs.eventloop.delay.max",
145
189
  NODEJS_EVENTLOOP_DELAY_MEAN: "nodejs.eventloop.delay.mean",
146
190
  NODEJS_EVENTLOOP_DELAY_MIN: "nodejs.eventloop.delay.min",
@@ -151,11 +195,11 @@ const MetricNames = {
151
195
  NODEJS_EVENTLOOP_TIME: "nodejs.eventloop.time",
152
196
  NODEJS_EVENTLOOP_UTILIZATION: "nodejs.eventloop.utilization",
153
197
  V8JS_GC_DURATION: "v8js.gc.duration",
154
- V8JS_MEMORY_HEAP_LIMIT: "v8js.memory.heap.limit",
155
198
  V8JS_MEMORY_HEAP_SPACE_AVAILABLE_SIZE: "v8js.memory.heap.space.available_size",
156
199
  V8JS_MEMORY_HEAP_SPACE_PHYSICAL_SIZE: "v8js.memory.heap.space.physical_size",
157
200
  V8JS_MEMORY_HEAP_SPACE_SIZE: "v8js.memory.heap.space.size",
158
- V8JS_MEMORY_HEAP_USED: "v8js.memory.heap.used"
201
+ V8JS_MEMORY_HEAP_USED: "v8js.memory.heap.used",
202
+ V8JS_RESOURCE_ACTIVE: "v8js.resource.active"
159
203
  };
160
204
  const MetricLabels = {
161
205
  KICI_AGENT_CLONE_DURATION_SECONDS: ["scaler"],
@@ -183,6 +227,7 @@ const MetricLabels = {
183
227
  KICI_MCP_TOOL_REQUESTS_TOTAL: ["tool", "outcome"],
184
228
  KICI_ORCH_AGENTS_ACTIVE: [],
185
229
  KICI_ORCH_BUILD_DURATION_SECONDS: [],
230
+ KICI_ORCH_CHECK_RUN_TRACKING_ROWS_PRUNED_TOTAL: [],
186
231
  KICI_ORCH_CONFIG_RELOAD_TOTAL: ["result", "source"],
187
232
  KICI_ORCH_CONFIG_VERSION: [],
188
233
  KICI_ORCH_DB_COLLATION_DRIFT: ["database"],
@@ -192,6 +237,7 @@ const MetricLabels = {
192
237
  KICI_ORCH_DEP_CACHE_MISSES_TOTAL: [],
193
238
  KICI_ORCH_DISPATCH_QUEUE_DEPTH: ["status"],
194
239
  KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: ["status", "label"],
240
+ KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: [],
195
241
  KICI_ORCH_EVENT_ATTEMPTS: ["event_name", "result"],
196
242
  KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: ["event_name"],
197
243
  KICI_ORCH_EVENT_DLQ_DEPTH: [],
@@ -201,6 +247,23 @@ const MetricLabels = {
201
247
  KICI_ORCH_EXECUTION_DURATION_SECONDS: [],
202
248
  KICI_ORCH_EXECUTIONS_TOTAL: ["status"],
203
249
  KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: ["operation"],
250
+ KICI_ORCH_INGEST_ADMITTED_TOTAL: [],
251
+ KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: [],
252
+ KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: [],
253
+ KICI_ORCH_INGEST_INFLIGHT: [],
254
+ KICI_ORCH_INGEST_LOOP_LAG_RESUME_MS: [],
255
+ KICI_ORCH_INGEST_LOOP_LAG_SHED_MS: [],
256
+ KICI_ORCH_INGEST_MAX_CONCURRENCY: [],
257
+ KICI_ORCH_INGEST_MAX_QUEUE_DEPTH: [],
258
+ KICI_ORCH_INGEST_ORG_MAX_CONCURRENCY: [],
259
+ KICI_ORCH_INGEST_OVERFLOW_BUFFERED: [],
260
+ KICI_ORCH_INGEST_OVERFLOW_CAPTURED_TOTAL: [],
261
+ KICI_ORCH_INGEST_OVERFLOW_DROPPED_TOTAL: [],
262
+ KICI_ORCH_INGEST_OVERFLOW_MAX: [],
263
+ KICI_ORCH_INGEST_OVERFLOW_REPLAYED_TOTAL: [],
264
+ KICI_ORCH_INGEST_QUEUE_DEPTH: [],
265
+ KICI_ORCH_INGEST_SHED_TOTAL: ["reason"],
266
+ KICI_ORCH_INGEST_SHEDDING_ACTIVE: [],
204
267
  KICI_ORCH_INSTALL_SECRETS_CONTRIBUTOR_STRIPPED_TOTAL: ["trust_tier"],
205
268
  KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: ["decision", "reason"],
206
269
  KICI_ORCH_INSTALL_SECRETS_NPM_REGISTRY_USED_TOTAL: [
@@ -214,8 +277,8 @@ const MetricLabels = {
214
277
  KICI_ORCH_JOB_LAST_FAILURE_TIMESTAMP_SECONDS: ["job"],
215
278
  KICI_ORCH_JOB_LAST_SUCCESS_TIMESTAMP_SECONDS: ["job"],
216
279
  KICI_ORCH_JOB_RUNS_TOTAL: ["job", "result"],
217
- KICI_ORCH_LOG_BYTES_STORED_TOTAL: [],
218
- KICI_ORCH_LOG_CHUNKS_RECEIVED_TOTAL: [],
280
+ KICI_ORCH_LOG_BYTES_STORED_TOTAL: ["source"],
281
+ KICI_ORCH_LOG_CHUNKS_RECEIVED_TOTAL: ["source"],
219
282
  KICI_ORCH_PENDING_ATTESTATION_OLDEST_AGE_SECONDS: [],
220
283
  KICI_ORCH_PENDING_ATTESTATIONS_CURRENT: [],
221
284
  KICI_ORCH_PG_POOL_CLIENT_ERRORS_TOTAL: ["source"],
@@ -231,6 +294,7 @@ const MetricLabels = {
231
294
  "scalerType",
232
295
  "machinePool"
233
296
  ],
297
+ KICI_ORCH_SCALER_REDISPATCH_TOTAL: ["trigger"],
234
298
  KICI_ORCH_SCALER_SPAWN_FAILURES_TOTAL: ["backend", "bound"],
235
299
  KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: [],
236
300
  KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: [],
@@ -238,11 +302,19 @@ const MetricLabels = {
238
302
  KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: [],
239
303
  KICI_ORCH_STALE_RUNS_CURRENT: [],
240
304
  KICI_ORCH_STALE_RUNS_DETECTED_TOTAL: [],
305
+ KICI_ORCH_STATE_REPLAY_BREAKER_TRIPS_TOTAL: [],
306
+ KICI_ORCH_STEP_LOGS_PRUNED_TOTAL: [],
241
307
  KICI_ORCH_STEPS_TOTAL: ["status"],
242
308
  KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: [],
243
309
  KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: ["reason"],
310
+ KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: ["arm", "action"],
311
+ KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: [],
244
312
  KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: ["result"],
245
313
  KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: ["source", "event"],
314
+ KICI_ORCH_WS_NACK_RECEIVED_TOTAL: [],
315
+ KICI_ORCH_WS_PLATFORM_CAPABILITY_GAP_TOTAL: [],
316
+ KICI_ORCH_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: [],
317
+ KICI_ORCHESTRATOR_DRAINING: [],
246
318
  KICI_ORG_AGENT_MINUTES: ["org_id", "status"],
247
319
  KICI_ORG_CONNECTIONS: ["org_id"],
248
320
  KICI_ORG_EXECUTIONS_COUNT: ["org_id", "status"],
@@ -258,6 +330,10 @@ const MetricLabels = {
258
330
  KICI_PLATFORM_DASHBOARD_PROXY_DURATION_SECONDS: ["outcome"],
259
331
  KICI_PLATFORM_DASHBOARD_PROXY_PENDING: [],
260
332
  KICI_PLATFORM_DASHBOARD_PROXY_REQUESTS_TOTAL: ["outcome"],
333
+ KICI_PLATFORM_DB_POOL_ACQUIRE_TIMEOUTS_TOTAL: [],
334
+ KICI_PLATFORM_DB_POOL_CONNECTIONS: ["state"],
335
+ KICI_PLATFORM_DB_POOL_SATURATED: [],
336
+ KICI_PLATFORM_DEGRADED_BUFFER_KEYS_GC_TOTAL: ["kind"],
261
337
  KICI_PLATFORM_EXECUTION_EVENTS_TOTAL: ["event"],
262
338
  KICI_PLATFORM_EXECUTION_STATUS_UPDATES_TOTAL: ["status"],
263
339
  KICI_PLATFORM_IDENTITY_LINKS_MISSING_PROVIDER_USER_ID: [],
@@ -281,11 +357,19 @@ const MetricLabels = {
281
357
  KICI_PLATFORM_RELAY_BREAKER_TRIPS_TOTAL: ["clusterName", "connectionId"],
282
358
  KICI_PLATFORM_RELAY_REQUEST_DURATION_MS: ["kind"],
283
359
  KICI_PLATFORM_RELAY_REQUEST_OUTCOME_TOTAL: ["outcome", "kind"],
360
+ KICI_PLATFORM_RUN_RECONCILE_DEFERRED_TOTAL: [],
361
+ KICI_PLATFORM_RUN_RECONCILE_RECONCILED_TOTAL: [],
362
+ KICI_PLATFORM_RUN_RECONCILE_SKIPPED_TOTAL: [],
284
363
  KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: [],
285
364
  KICI_PLATFORM_STALE_PLATFORM_CONNECTIONS_EVICTED_TOTAL: ["org_id"],
286
365
  KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: [],
287
366
  KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: ["state"],
367
+ KICI_PLATFORM_SUPPORT_SESSIONS_SWEPT_TOTAL: ["close_kind"],
288
368
  KICI_PLATFORM_WS_ORG_RATE_LIMITED_TOTAL: ["org_id"],
369
+ KICI_PLATFORM_WS_SLOW_CONSUMER_TERMINATED_TOTAL: [],
370
+ KICI_RBAC_PERMS_CACHE_HITS_TOTAL: [],
371
+ KICI_RBAC_PERMS_CACHE_MISSES_TOTAL: [],
372
+ KICI_READ_RATE_LIMIT_REJECTED_TOTAL: ["scope"],
289
373
  KICI_REGISTRATIONS_TOTAL: [],
290
374
  KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: ["reason"],
291
375
  KICI_USER_REGISTRATION_NOTIFY_TOTAL: ["result"],
@@ -296,9 +380,11 @@ const MetricLabels = {
296
380
  KICI_WEBHOOK_BUFFER_BYTES: [],
297
381
  KICI_WEBHOOK_BUFFER_DEPTH: [],
298
382
  KICI_WEBHOOK_BUFFER_OLDEST_AGE_SECONDS: [],
383
+ KICI_WEBHOOK_NO_ORCH_TOTAL: ["outcome", "org_id"],
299
384
  KICI_WEBHOOK_PG_BREAKER_STATE: [],
300
385
  KICI_WEBHOOK_PG_BREAKER_TRANSITIONS_TOTAL: [],
301
386
  KICI_WEBHOOK_PG_DEGRADED_TOTAL: ["outcome", "org_id"],
387
+ KICI_WEBHOOK_PG_PROBE_TOTAL: ["outcome"],
302
388
  KICI_WEBHOOK_PROCESSING_SECONDS: ["event"],
303
389
  KICI_WEBHOOK_REPLAY_DURATION_SECONDS: [],
304
390
  KICI_WEBHOOK_SIGNATURE_FAILURES_TOTAL: ["source", "org_id"],
@@ -312,8 +398,10 @@ const MetricLabels = {
312
398
  KICI_WS_HEARTBEAT_AGE_SECONDS: ["routing_key"],
313
399
  KICI_WS_MESSAGES_RECEIVED_TOTAL: ["type"],
314
400
  KICI_WS_MESSAGES_SENT_TOTAL: ["type"],
401
+ KICI_WS_NACK_RECEIVED_TOTAL: [],
315
402
  KICI_WS_RELAY_ATTEMPTS_TOTAL: ["status"],
316
403
  KICI_WS_RELAY_DURATION_SECONDS: ["status"],
404
+ KICI_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: [],
317
405
  NODEJS_EVENTLOOP_DELAY_MAX: ["scaler"],
318
406
  NODEJS_EVENTLOOP_DELAY_MEAN: ["scaler"],
319
407
  NODEJS_EVENTLOOP_DELAY_MIN: ["scaler"],
@@ -324,11 +412,11 @@ const MetricLabels = {
324
412
  NODEJS_EVENTLOOP_TIME: ["nodejs.eventloop.state", "scaler"],
325
413
  NODEJS_EVENTLOOP_UTILIZATION: ["scaler"],
326
414
  V8JS_GC_DURATION: ["v8js.gc.type", "scaler"],
327
- V8JS_MEMORY_HEAP_LIMIT: ["v8js.heap.space.name", "scaler"],
328
415
  V8JS_MEMORY_HEAP_SPACE_AVAILABLE_SIZE: ["v8js.heap.space.name", "scaler"],
329
416
  V8JS_MEMORY_HEAP_SPACE_PHYSICAL_SIZE: ["v8js.heap.space.name", "scaler"],
330
417
  V8JS_MEMORY_HEAP_SPACE_SIZE: ["v8js.heap.space.name", "scaler"],
331
- V8JS_MEMORY_HEAP_USED: ["v8js.heap.space.name", "scaler"]
418
+ V8JS_MEMORY_HEAP_USED: ["v8js.heap.space.name", "scaler"],
419
+ V8JS_RESOURCE_ACTIVE: ["v8js.resource.type", "scaler"]
332
420
  };
333
421
  const MetricKind = {
334
422
  KICI_AGENT_CLONE_DURATION_SECONDS: "histogram",
@@ -356,6 +444,7 @@ const MetricKind = {
356
444
  KICI_MCP_TOOL_REQUESTS_TOTAL: "counter",
357
445
  KICI_ORCH_AGENTS_ACTIVE: "observableGauge",
358
446
  KICI_ORCH_BUILD_DURATION_SECONDS: "histogram",
447
+ KICI_ORCH_CHECK_RUN_TRACKING_ROWS_PRUNED_TOTAL: "counter",
359
448
  KICI_ORCH_CONFIG_RELOAD_TOTAL: "counter",
360
449
  KICI_ORCH_CONFIG_VERSION: "observableGauge",
361
450
  KICI_ORCH_DB_COLLATION_DRIFT: "observableGauge",
@@ -365,6 +454,7 @@ const MetricKind = {
365
454
  KICI_ORCH_DEP_CACHE_MISSES_TOTAL: "counter",
366
455
  KICI_ORCH_DISPATCH_QUEUE_DEPTH: "observableGauge",
367
456
  KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: "observableGauge",
457
+ KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: "counter",
368
458
  KICI_ORCH_EVENT_ATTEMPTS: "histogram",
369
459
  KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: "counter",
370
460
  KICI_ORCH_EVENT_DLQ_DEPTH: "observableGauge",
@@ -374,6 +464,23 @@ const MetricKind = {
374
464
  KICI_ORCH_EXECUTION_DURATION_SECONDS: "histogram",
375
465
  KICI_ORCH_EXECUTIONS_TOTAL: "counter",
376
466
  KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "counter",
467
+ KICI_ORCH_INGEST_ADMITTED_TOTAL: "counter",
468
+ KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: "observableGauge",
469
+ KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: "observableGauge",
470
+ KICI_ORCH_INGEST_INFLIGHT: "observableGauge",
471
+ KICI_ORCH_INGEST_LOOP_LAG_RESUME_MS: "observableGauge",
472
+ KICI_ORCH_INGEST_LOOP_LAG_SHED_MS: "observableGauge",
473
+ KICI_ORCH_INGEST_MAX_CONCURRENCY: "observableGauge",
474
+ KICI_ORCH_INGEST_MAX_QUEUE_DEPTH: "observableGauge",
475
+ KICI_ORCH_INGEST_ORG_MAX_CONCURRENCY: "observableGauge",
476
+ KICI_ORCH_INGEST_OVERFLOW_BUFFERED: "observableGauge",
477
+ KICI_ORCH_INGEST_OVERFLOW_CAPTURED_TOTAL: "counter",
478
+ KICI_ORCH_INGEST_OVERFLOW_DROPPED_TOTAL: "counter",
479
+ KICI_ORCH_INGEST_OVERFLOW_MAX: "observableGauge",
480
+ KICI_ORCH_INGEST_OVERFLOW_REPLAYED_TOTAL: "counter",
481
+ KICI_ORCH_INGEST_QUEUE_DEPTH: "observableGauge",
482
+ KICI_ORCH_INGEST_SHED_TOTAL: "counter",
483
+ KICI_ORCH_INGEST_SHEDDING_ACTIVE: "observableGauge",
377
484
  KICI_ORCH_INSTALL_SECRETS_CONTRIBUTOR_STRIPPED_TOTAL: "counter",
378
485
  KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: "counter",
379
486
  KICI_ORCH_INSTALL_SECRETS_NPM_REGISTRY_USED_TOTAL: "counter",
@@ -392,6 +499,7 @@ const MetricKind = {
392
499
  KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: "counter",
393
500
  KICI_ORCH_SCALER_CPUS_USED: "observableGauge",
394
501
  KICI_ORCH_SCALER_MEMORY_BYTES_USED: "observableGauge",
502
+ KICI_ORCH_SCALER_REDISPATCH_TOTAL: "counter",
395
503
  KICI_ORCH_SCALER_SPAWN_FAILURES_TOTAL: "counter",
396
504
  KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: "observableGauge",
397
505
  KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: "counter",
@@ -399,11 +507,19 @@ const MetricKind = {
399
507
  KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: "histogram",
400
508
  KICI_ORCH_STALE_RUNS_CURRENT: "observableGauge",
401
509
  KICI_ORCH_STALE_RUNS_DETECTED_TOTAL: "counter",
510
+ KICI_ORCH_STATE_REPLAY_BREAKER_TRIPS_TOTAL: "counter",
511
+ KICI_ORCH_STEP_LOGS_PRUNED_TOTAL: "counter",
402
512
  KICI_ORCH_STEPS_TOTAL: "counter",
403
513
  KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: "histogram",
404
514
  KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: "counter",
515
+ KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: "counter",
516
+ KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: "counter",
405
517
  KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: "counter",
406
518
  KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: "counter",
519
+ KICI_ORCH_WS_NACK_RECEIVED_TOTAL: "counter",
520
+ KICI_ORCH_WS_PLATFORM_CAPABILITY_GAP_TOTAL: "counter",
521
+ KICI_ORCH_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: "counter",
522
+ KICI_ORCHESTRATOR_DRAINING: "observableGauge",
407
523
  KICI_ORG_AGENT_MINUTES: "observableGauge",
408
524
  KICI_ORG_CONNECTIONS: "observableGauge",
409
525
  KICI_ORG_EXECUTIONS_COUNT: "observableGauge",
@@ -419,6 +535,10 @@ const MetricKind = {
419
535
  KICI_PLATFORM_DASHBOARD_PROXY_DURATION_SECONDS: "histogram",
420
536
  KICI_PLATFORM_DASHBOARD_PROXY_PENDING: "observableGauge",
421
537
  KICI_PLATFORM_DASHBOARD_PROXY_REQUESTS_TOTAL: "counter",
538
+ KICI_PLATFORM_DB_POOL_ACQUIRE_TIMEOUTS_TOTAL: "counter",
539
+ KICI_PLATFORM_DB_POOL_CONNECTIONS: "observableGauge",
540
+ KICI_PLATFORM_DB_POOL_SATURATED: "observableGauge",
541
+ KICI_PLATFORM_DEGRADED_BUFFER_KEYS_GC_TOTAL: "counter",
422
542
  KICI_PLATFORM_EXECUTION_EVENTS_TOTAL: "counter",
423
543
  KICI_PLATFORM_EXECUTION_STATUS_UPDATES_TOTAL: "counter",
424
544
  KICI_PLATFORM_IDENTITY_LINKS_MISSING_PROVIDER_USER_ID: "observableGauge",
@@ -442,11 +562,19 @@ const MetricKind = {
442
562
  KICI_PLATFORM_RELAY_BREAKER_TRIPS_TOTAL: "counter",
443
563
  KICI_PLATFORM_RELAY_REQUEST_DURATION_MS: "histogram",
444
564
  KICI_PLATFORM_RELAY_REQUEST_OUTCOME_TOTAL: "counter",
565
+ KICI_PLATFORM_RUN_RECONCILE_DEFERRED_TOTAL: "counter",
566
+ KICI_PLATFORM_RUN_RECONCILE_RECONCILED_TOTAL: "counter",
567
+ KICI_PLATFORM_RUN_RECONCILE_SKIPPED_TOTAL: "counter",
445
568
  KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: "counter",
446
569
  KICI_PLATFORM_STALE_PLATFORM_CONNECTIONS_EVICTED_TOTAL: "counter",
447
570
  KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: "counter",
448
571
  KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: "counter",
572
+ KICI_PLATFORM_SUPPORT_SESSIONS_SWEPT_TOTAL: "counter",
449
573
  KICI_PLATFORM_WS_ORG_RATE_LIMITED_TOTAL: "counter",
574
+ KICI_PLATFORM_WS_SLOW_CONSUMER_TERMINATED_TOTAL: "counter",
575
+ KICI_RBAC_PERMS_CACHE_HITS_TOTAL: "counter",
576
+ KICI_RBAC_PERMS_CACHE_MISSES_TOTAL: "counter",
577
+ KICI_READ_RATE_LIMIT_REJECTED_TOTAL: "counter",
450
578
  KICI_REGISTRATIONS_TOTAL: "counter",
451
579
  KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: "counter",
452
580
  KICI_USER_REGISTRATION_NOTIFY_TOTAL: "counter",
@@ -457,9 +585,11 @@ const MetricKind = {
457
585
  KICI_WEBHOOK_BUFFER_BYTES: "observableGauge",
458
586
  KICI_WEBHOOK_BUFFER_DEPTH: "observableGauge",
459
587
  KICI_WEBHOOK_BUFFER_OLDEST_AGE_SECONDS: "observableGauge",
588
+ KICI_WEBHOOK_NO_ORCH_TOTAL: "counter",
460
589
  KICI_WEBHOOK_PG_BREAKER_STATE: "observableGauge",
461
590
  KICI_WEBHOOK_PG_BREAKER_TRANSITIONS_TOTAL: "counter",
462
591
  KICI_WEBHOOK_PG_DEGRADED_TOTAL: "counter",
592
+ KICI_WEBHOOK_PG_PROBE_TOTAL: "counter",
463
593
  KICI_WEBHOOK_PROCESSING_SECONDS: "histogram",
464
594
  KICI_WEBHOOK_REPLAY_DURATION_SECONDS: "histogram",
465
595
  KICI_WEBHOOK_SIGNATURE_FAILURES_TOTAL: "counter",
@@ -469,8 +599,10 @@ const MetricKind = {
469
599
  KICI_WS_HEARTBEAT_AGE_SECONDS: "observableGauge",
470
600
  KICI_WS_MESSAGES_RECEIVED_TOTAL: "counter",
471
601
  KICI_WS_MESSAGES_SENT_TOTAL: "counter",
602
+ KICI_WS_NACK_RECEIVED_TOTAL: "counter",
472
603
  KICI_WS_RELAY_ATTEMPTS_TOTAL: "counter",
473
604
  KICI_WS_RELAY_DURATION_SECONDS: "histogram",
605
+ KICI_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: "counter",
474
606
  NODEJS_EVENTLOOP_DELAY_MAX: "gauge",
475
607
  NODEJS_EVENTLOOP_DELAY_MEAN: "gauge",
476
608
  NODEJS_EVENTLOOP_DELAY_MIN: "gauge",
@@ -481,11 +613,11 @@ const MetricKind = {
481
613
  NODEJS_EVENTLOOP_TIME: "counter",
482
614
  NODEJS_EVENTLOOP_UTILIZATION: "gauge",
483
615
  V8JS_GC_DURATION: "histogram",
484
- V8JS_MEMORY_HEAP_LIMIT: "gauge",
485
616
  V8JS_MEMORY_HEAP_SPACE_AVAILABLE_SIZE: "gauge",
486
617
  V8JS_MEMORY_HEAP_SPACE_PHYSICAL_SIZE: "gauge",
487
- V8JS_MEMORY_HEAP_SPACE_SIZE: "gauge",
488
- V8JS_MEMORY_HEAP_USED: "gauge"
618
+ V8JS_MEMORY_HEAP_SPACE_SIZE: "upDownCounter",
619
+ V8JS_MEMORY_HEAP_USED: "gauge",
620
+ V8JS_RESOURCE_ACTIVE: "gauge"
489
621
  };
490
622
  const MetricDescription = {
491
623
  KICI_AGENT_CLONE_DURATION_SECONDS: "Git clone duration in seconds",
@@ -513,6 +645,7 @@ const MetricDescription = {
513
645
  KICI_MCP_TOOL_REQUESTS_TOTAL: "Total developer-MCP tool invocations by tool and outcome",
514
646
  KICI_ORCH_AGENTS_ACTIVE: "Current number of active agents connected",
515
647
  KICI_ORCH_BUILD_DURATION_SECONDS: "Duration of build agent operations in seconds",
648
+ KICI_ORCH_CHECK_RUN_TRACKING_ROWS_PRUNED_TOTAL: "check_run_tracking rows deleted by the retention sweep",
516
649
  KICI_ORCH_CONFIG_RELOAD_TOTAL: "Total number of config reload operations",
517
650
  KICI_ORCH_CONFIG_VERSION: "Current shared config version number",
518
651
  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.",
@@ -522,6 +655,7 @@ const MetricDescription = {
522
655
  KICI_ORCH_DEP_CACHE_MISSES_TOTAL: "Total number of dep cache misses",
523
656
  KICI_ORCH_DISPATCH_QUEUE_DEPTH: "Current dispatch_queue depth per status (pending, dispatched)",
524
657
  KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: "Current pending dispatch_queue depth per runs_on label (multi-label jobs fan out)",
658
+ KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: "Terminal dispatch_queue rows deleted by the retention sweep",
525
659
  KICI_ORCH_EVENT_ATTEMPTS: "Distribution of dispatch attempts at terminal outcome (success or DLQ)",
526
660
  KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: "Internal events delivered to all matching workflows successfully (after the lease commits processed=true)",
527
661
  KICI_ORCH_EVENT_DLQ_DEPTH: "Current count of events sitting in the DLQ awaiting operator triage",
@@ -531,6 +665,23 @@ const MetricDescription = {
531
665
  KICI_ORCH_EXECUTION_DURATION_SECONDS: "Duration of execution runs in seconds",
532
666
  KICI_ORCH_EXECUTIONS_TOTAL: "Total number of execution runs",
533
667
  KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "Total number of GitHub check run API calls",
668
+ KICI_ORCH_INGEST_ADMITTED_TOTAL: "Total webhook ingest admissions granted by the admission controller",
669
+ KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: "Event-loop delay max (ms) observed by the ingest admission sampler",
670
+ KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: "Event-loop delay p99 (ms) observed by the ingest admission sampler",
671
+ KICI_ORCH_INGEST_INFLIGHT: "Current in-flight webhook ingest pipelines",
672
+ KICI_ORCH_INGEST_LOOP_LAG_RESUME_MS: "Configured loop-lag hysteresis resume threshold L_resume (KICI_INGEST_LOOP_LAG_RESUME_MS)",
673
+ KICI_ORCH_INGEST_LOOP_LAG_SHED_MS: "Configured loop-lag shed threshold L_shed (KICI_INGEST_LOOP_LAG_SHED_MS)",
674
+ KICI_ORCH_INGEST_MAX_CONCURRENCY: "Configured global in-flight concurrency cap G (KICI_INGEST_MAX_CONCURRENCY)",
675
+ KICI_ORCH_INGEST_MAX_QUEUE_DEPTH: "Configured CoDel queue depth cap Q (KICI_INGEST_MAX_QUEUE_DEPTH)",
676
+ KICI_ORCH_INGEST_ORG_MAX_CONCURRENCY: "Configured per-org fairness cap cluster default P (KICI_INGEST_ORG_MAX_CONCURRENCY)",
677
+ KICI_ORCH_INGEST_OVERFLOW_BUFFERED: "Current webhook-ingest overflow buffer depth (buffered rows awaiting replay)",
678
+ KICI_ORCH_INGEST_OVERFLOW_CAPTURED_TOTAL: "Total shed webhook-ingest deliveries captured into the durable overflow buffer",
679
+ KICI_ORCH_INGEST_OVERFLOW_DROPPED_TOTAL: "Total overflow-buffered deliveries permanently dropped. Labels: reason (cap_full|max_attempts)",
680
+ KICI_ORCH_INGEST_OVERFLOW_MAX: "Configured overflow buffer row cap (KICI_INGEST_OVERFLOW_MAX)",
681
+ KICI_ORCH_INGEST_OVERFLOW_REPLAYED_TOTAL: "Total overflow-buffered deliveries successfully replayed through normal ingest",
682
+ KICI_ORCH_INGEST_QUEUE_DEPTH: "Current webhook ingest admission queue depth (HTTP direct ingress)",
683
+ KICI_ORCH_INGEST_SHED_TOTAL: "Webhook ingest admissions shed by the admission controller. Labels: reason (loop_overload|codel_drop|queue_full|max_sojourn)",
684
+ KICI_ORCH_INGEST_SHEDDING_ACTIVE: "Delay circuit breaker engaged (1) — loop-lag gate open or CoDel dropping",
534
685
  KICI_ORCH_INSTALL_SECRETS_CONTRIBUTOR_STRIPPED_TOTAL: "Dispatches where registry tokens were stripped because the contributor tier was not `trusted`",
535
686
  KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: "Total install-secrets resolution decisions (pass / reject / hold + reason)",
536
687
  KICI_ORCH_INSTALL_SECRETS_NPM_REGISTRY_USED_TOTAL: "Total registry / installEnv entries successfully resolved per channel / provider / scope",
@@ -549,6 +700,7 @@ const MetricDescription = {
549
700
  KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: "Total number of scaler config reload operations",
550
701
  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.",
551
702
  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.",
703
+ KICI_ORCH_SCALER_REDISPATCH_TOTAL: "Cumulative count of pending jobs re-offered to the scaler after capacity freed, labeled by trigger (hook | sweep).",
552
704
  KICI_ORCH_SCALER_SPAWN_FAILURES_TOTAL: "Total scaler agent spawn failures (job-bound and warm-pool)",
553
705
  KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: "Cumulative count of scaler spawn requests refused due to resource caps (maxAgents, resourceCap, globalResourceCap, machinePool).",
554
706
  KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: "Total number of source tarball cache hits",
@@ -556,17 +708,25 @@ const MetricDescription = {
556
708
  KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: "Time between job becoming stale and detection (seconds)",
557
709
  KICI_ORCH_STALE_RUNS_CURRENT: "Current number of stale runs detected in last scan",
558
710
  KICI_ORCH_STALE_RUNS_DETECTED_TOTAL: "Total number of stale runs detected and marked as failed",
711
+ KICI_ORCH_STATE_REPLAY_BREAKER_TRIPS_TOTAL: "Times the state.replay circuit breaker opened after consecutive replay-attributed disconnects, causing the orchestrator to connect without a replay (Platform run mirror knowingly stale)",
712
+ KICI_ORCH_STEP_LOGS_PRUNED_TOTAL: "Step-log objects deleted by the retention sweep",
559
713
  KICI_ORCH_STEPS_TOTAL: "Total number of steps executed",
560
714
  KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: "Duration of trigger matching operations in seconds",
561
715
  KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: "Trust-resolution attempts refused because the provider numeric id was missing or did not match",
716
+ KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: "Total org trust-policy gate decisions by arm and action",
717
+ KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: "Jobs terminalized as unroutable by the fast-fail probe (not the queue timeout)",
562
718
  KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: "Total number of webhooks processed",
563
719
  KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: "Total number of webhooks received",
564
- KICI_ORG_AGENT_MINUTES: "Per-org total agent runtime in minutes, by terminal status (DB-derived, operator-side capacity-planning aggregate)",
565
- KICI_ORG_CONNECTIONS: "Active orchestrator connections per org",
566
- KICI_ORG_EXECUTIONS_COUNT: "Per-org count of execution_runs in each terminal status (DB-derived, operator-side capacity-planning aggregate)",
567
- KICI_ORG_LOG_BYTES: "Per-org total raw log bytes streamed by agents, by terminal status (DB-derived, operator-side capacity-planning aggregate)",
720
+ KICI_ORCH_WS_NACK_RECEIVED_TOTAL: "NACKs received from the Platform for a message it could not process (version skew)",
721
+ KICI_ORCH_WS_PLATFORM_CAPABILITY_GAP_TOTAL: "Feature-gated sends suppressed because the Platform does not advertise the capability",
722
+ KICI_ORCH_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: "NACKs sent to the Platform for an unrecognized inbound message type (version skew)",
723
+ KICI_ORCHESTRATOR_DRAINING: "Whether this coordinator is draining (1) or accepting new jobs (0)",
724
+ KICI_ORG_AGENT_MINUTES: "Per-org total agent runtime in minutes, by terminal status over a rolling window (DB-derived, top-N active orgs, leader-only, operator-side capacity-planning aggregate)",
725
+ KICI_ORG_CONNECTIONS: "Active orchestrator connections per org (top-N active orgs, leader-only)",
726
+ KICI_ORG_EXECUTIONS_COUNT: "Per-org count of execution_runs in each terminal status over a rolling window (DB-derived, top-N active orgs, leader-only, operator-side capacity-planning aggregate)",
727
+ KICI_ORG_LOG_BYTES: "Per-org total raw log bytes streamed by agents, by terminal status over a rolling window (DB-derived, top-N active orgs, leader-only, operator-side capacity-planning aggregate)",
568
728
  KICI_ORG_STATUS_EVENTS_TOTAL: "Total execution.status WS messages received per org/status (observability)",
569
- KICI_ORGS_TOTAL: "Total organizations by plan type",
729
+ KICI_ORGS_TOTAL: "Total organizations by plan type (leader-only)",
570
730
  KICI_PLAN_CAP_EXCEEDED_TOTAL: "Total times an org hit a plan cap (per dimension)",
571
731
  KICI_PLAN_USAGE_RATIO: "Per-org per-dimension usage ratio (current / cap)",
572
732
  KICI_PLATFORM_COORDINATOR_POOL_SIZE: "Coordinator pool size per routing key",
@@ -576,6 +736,10 @@ const MetricDescription = {
576
736
  KICI_PLATFORM_DASHBOARD_PROXY_DURATION_SECONDS: "Dashboard proxy request round-trip duration in seconds",
577
737
  KICI_PLATFORM_DASHBOARD_PROXY_PENDING: "In-flight dashboard proxy requests (Platform → orchestrator)",
578
738
  KICI_PLATFORM_DASHBOARD_PROXY_REQUESTS_TOTAL: "Total dashboard proxy requests by terminal outcome",
739
+ KICI_PLATFORM_DB_POOL_ACQUIRE_TIMEOUTS_TOTAL: "Main-pool acquires refused because the Postgres pool acquire timed out",
740
+ KICI_PLATFORM_DB_POOL_CONNECTIONS: "Main Platform Postgres pool connection counts",
741
+ KICI_PLATFORM_DB_POOL_SATURATED: "Whether this instance is shedding webhook ingress on Postgres pool saturation (1=saturated)",
742
+ KICI_PLATFORM_DEGRADED_BUFFER_KEYS_GC_TOTAL: "Degraded webhook-buffer Valkey keys garbage-collected",
579
743
  KICI_PLATFORM_EXECUTION_EVENTS_TOTAL: "Total execution events received from orchestrators",
580
744
  KICI_PLATFORM_EXECUTION_STATUS_UPDATES_TOTAL: "Total execution status updates received",
581
745
  KICI_PLATFORM_IDENTITY_LINKS_MISSING_PROVIDER_USER_ID: "identity_links rows where provider_user_id is still NULL after reconcile",
@@ -599,11 +763,19 @@ const MetricDescription = {
599
763
  KICI_PLATFORM_RELAY_BREAKER_TRIPS_TOTAL: "Relay circuit-breaker open transitions per coordinator",
600
764
  KICI_PLATFORM_RELAY_REQUEST_DURATION_MS: "End-to-end dashboard-proxy relay latency incl. failover, in ms",
601
765
  KICI_PLATFORM_RELAY_REQUEST_OUTCOME_TOTAL: "Dashboard-proxy relay request outcomes (incl. sibling failover)",
766
+ 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)",
767
+ 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",
768
+ KICI_PLATFORM_RUN_RECONCILE_SKIPPED_TOTAL: "Total run-mirror reconcile attempts skipped (orchestrator unreachable or no run state returned)",
602
769
  KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: "Total orchestrators detected as permanently disconnected",
603
770
  KICI_PLATFORM_STALE_PLATFORM_CONNECTIONS_EVICTED_TOTAL: "platform_connections rows evicted by source.register DB dedup (same-instance reconnect path)",
604
771
  KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: "Total execution runs failed due to orchestrator staleness",
605
772
  KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: "Total step status forwards received",
773
+ KICI_PLATFORM_SUPPORT_SESSIONS_SWEPT_TOTAL: "Total support-session activations closed by the janitor sweep",
606
774
  KICI_PLATFORM_WS_ORG_RATE_LIMITED_TOTAL: "Inbound orchestrator messages dropped by the per-org aggregate WS rate limit",
775
+ KICI_PLATFORM_WS_SLOW_CONSUMER_TERMINATED_TOTAL: "Total browser WS connections terminated for exceeding the send-buffer watermark",
776
+ KICI_RBAC_PERMS_CACHE_HITS_TOTAL: "Effective-permissions cache hits",
777
+ KICI_RBAC_PERMS_CACHE_MISSES_TOTAL: "Effective-permissions cache misses (recomputed from Postgres)",
778
+ KICI_READ_RATE_LIMIT_REJECTED_TOTAL: "Read-route requests rejected by the protective token bucket, by scope",
607
779
  KICI_REGISTRATIONS_TOTAL: "Total user registrations (new personal orgs created on first login)",
608
780
  KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: "Errors encountered while registering universal-git provider bundles",
609
781
  KICI_USER_REGISTRATION_NOTIFY_TOTAL: "New-user Telegram notifications by result (sent|failed)",
@@ -614,9 +786,11 @@ const MetricDescription = {
614
786
  KICI_WEBHOOK_BUFFER_BYTES: "Total buffered webhook bytes (global Valkey counter)",
615
787
  KICI_WEBHOOK_BUFFER_DEPTH: "Buffered webhook count per org",
616
788
  KICI_WEBHOOK_BUFFER_OLDEST_AGE_SECONDS: "Age of the oldest buffered webhook per org, in seconds",
789
+ KICI_WEBHOOK_NO_ORCH_TOTAL: "Webhooks handled by the no-orchestrator buffer, by outcome",
617
790
  KICI_WEBHOOK_PG_BREAKER_STATE: "PG circuit-breaker state on this instance (0=closed,1=degraded,2=open)",
618
791
  KICI_WEBHOOK_PG_BREAKER_TRANSITIONS_TOTAL: "PG circuit-breaker state transitions",
619
792
  KICI_WEBHOOK_PG_DEGRADED_TOTAL: "Webhooks handled in PG-degraded mode, by outcome",
793
+ KICI_WEBHOOK_PG_PROBE_TOTAL: "PG-reachability probe outcomes, by outcome",
620
794
  KICI_WEBHOOK_PROCESSING_SECONDS: "Webhook processing duration in seconds",
621
795
  KICI_WEBHOOK_REPLAY_DURATION_SECONDS: "Buffered-webhook replay latency (enqueue → delivered) in seconds",
622
796
  KICI_WEBHOOK_SIGNATURE_FAILURES_TOTAL: "Total number of webhooks rejected at orchestrator signature verification",
@@ -626,8 +800,10 @@ const MetricDescription = {
626
800
  KICI_WS_HEARTBEAT_AGE_SECONDS: "Seconds since last heartbeat per routing key",
627
801
  KICI_WS_MESSAGES_RECEIVED_TOTAL: "Total messages received from orchestrators",
628
802
  KICI_WS_MESSAGES_SENT_TOTAL: "Total messages sent to orchestrators",
803
+ KICI_WS_NACK_RECEIVED_TOTAL: "NACKs received from an orchestrator for a message it could not process (version skew)",
629
804
  KICI_WS_RELAY_ATTEMPTS_TOTAL: "Total number of webhook relay attempts",
630
805
  KICI_WS_RELAY_DURATION_SECONDS: "Duration of webhook relay operations in seconds",
806
+ KICI_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: "NACKs sent to an orchestrator for an unrecognized inbound message type (version skew)",
631
807
  NODEJS_EVENTLOOP_DELAY_MAX: "Event loop maximum delay",
632
808
  NODEJS_EVENTLOOP_DELAY_MEAN: "Event loop mean delay",
633
809
  NODEJS_EVENTLOOP_DELAY_MIN: "Event loop minimum delay",
@@ -638,11 +814,11 @@ const MetricDescription = {
638
814
  NODEJS_EVENTLOOP_TIME: "Cumulative event loop time by state",
639
815
  NODEJS_EVENTLOOP_UTILIZATION: "Event loop utilization ratio",
640
816
  V8JS_GC_DURATION: "Garbage-collection pause duration by GC type",
641
- V8JS_MEMORY_HEAP_LIMIT: "V8 heap size limit by heap space",
642
817
  V8JS_MEMORY_HEAP_SPACE_AVAILABLE_SIZE: "V8 available heap size by heap space",
643
818
  V8JS_MEMORY_HEAP_SPACE_PHYSICAL_SIZE: "V8 physical heap size by heap space",
644
819
  V8JS_MEMORY_HEAP_SPACE_SIZE: "V8 total heap size by heap space",
645
- V8JS_MEMORY_HEAP_USED: "V8 used heap size by heap space"
820
+ V8JS_MEMORY_HEAP_USED: "V8 used heap size by heap space",
821
+ V8JS_RESOURCE_ACTIVE: "Active resources currently keeping the event loop alive, by libuv handle type"
646
822
  };
647
823
  /**
648
824
  * Service that owns each metric (the package whose meter created it).
@@ -677,6 +853,7 @@ const MetricService = {
677
853
  KICI_MCP_TOOL_REQUESTS_TOTAL: "platform",
678
854
  KICI_ORCH_AGENTS_ACTIVE: "orchestrator",
679
855
  KICI_ORCH_BUILD_DURATION_SECONDS: "orchestrator",
856
+ KICI_ORCH_CHECK_RUN_TRACKING_ROWS_PRUNED_TOTAL: "orchestrator",
680
857
  KICI_ORCH_CONFIG_RELOAD_TOTAL: "orchestrator",
681
858
  KICI_ORCH_CONFIG_VERSION: "orchestrator",
682
859
  KICI_ORCH_DB_COLLATION_DRIFT: "orchestrator",
@@ -686,6 +863,7 @@ const MetricService = {
686
863
  KICI_ORCH_DEP_CACHE_MISSES_TOTAL: "orchestrator",
687
864
  KICI_ORCH_DISPATCH_QUEUE_DEPTH: "orchestrator",
688
865
  KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: "orchestrator",
866
+ KICI_ORCH_DISPATCH_QUEUE_ROWS_PRUNED_TOTAL: "orchestrator",
689
867
  KICI_ORCH_EVENT_ATTEMPTS: "orchestrator",
690
868
  KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: "orchestrator",
691
869
  KICI_ORCH_EVENT_DLQ_DEPTH: "orchestrator",
@@ -695,6 +873,23 @@ const MetricService = {
695
873
  KICI_ORCH_EXECUTION_DURATION_SECONDS: "orchestrator",
696
874
  KICI_ORCH_EXECUTIONS_TOTAL: "orchestrator",
697
875
  KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "orchestrator",
876
+ KICI_ORCH_INGEST_ADMITTED_TOTAL: "orchestrator",
877
+ KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: "orchestrator",
878
+ KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: "orchestrator",
879
+ KICI_ORCH_INGEST_INFLIGHT: "orchestrator",
880
+ KICI_ORCH_INGEST_LOOP_LAG_RESUME_MS: "orchestrator",
881
+ KICI_ORCH_INGEST_LOOP_LAG_SHED_MS: "orchestrator",
882
+ KICI_ORCH_INGEST_MAX_CONCURRENCY: "orchestrator",
883
+ KICI_ORCH_INGEST_MAX_QUEUE_DEPTH: "orchestrator",
884
+ KICI_ORCH_INGEST_ORG_MAX_CONCURRENCY: "orchestrator",
885
+ KICI_ORCH_INGEST_OVERFLOW_BUFFERED: "orchestrator",
886
+ KICI_ORCH_INGEST_OVERFLOW_CAPTURED_TOTAL: "orchestrator",
887
+ KICI_ORCH_INGEST_OVERFLOW_DROPPED_TOTAL: "orchestrator",
888
+ KICI_ORCH_INGEST_OVERFLOW_MAX: "orchestrator",
889
+ KICI_ORCH_INGEST_OVERFLOW_REPLAYED_TOTAL: "orchestrator",
890
+ KICI_ORCH_INGEST_QUEUE_DEPTH: "orchestrator",
891
+ KICI_ORCH_INGEST_SHED_TOTAL: "orchestrator",
892
+ KICI_ORCH_INGEST_SHEDDING_ACTIVE: "orchestrator",
698
893
  KICI_ORCH_INSTALL_SECRETS_CONTRIBUTOR_STRIPPED_TOTAL: "orchestrator",
699
894
  KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: "orchestrator",
700
895
  KICI_ORCH_INSTALL_SECRETS_NPM_REGISTRY_USED_TOTAL: "orchestrator",
@@ -713,6 +908,7 @@ const MetricService = {
713
908
  KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: "orchestrator",
714
909
  KICI_ORCH_SCALER_CPUS_USED: "orchestrator",
715
910
  KICI_ORCH_SCALER_MEMORY_BYTES_USED: "orchestrator",
911
+ KICI_ORCH_SCALER_REDISPATCH_TOTAL: "orchestrator",
716
912
  KICI_ORCH_SCALER_SPAWN_FAILURES_TOTAL: "orchestrator",
717
913
  KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: "orchestrator",
718
914
  KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: "orchestrator",
@@ -720,11 +916,19 @@ const MetricService = {
720
916
  KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: "orchestrator",
721
917
  KICI_ORCH_STALE_RUNS_CURRENT: "orchestrator",
722
918
  KICI_ORCH_STALE_RUNS_DETECTED_TOTAL: "orchestrator",
919
+ KICI_ORCH_STATE_REPLAY_BREAKER_TRIPS_TOTAL: "orchestrator",
920
+ KICI_ORCH_STEP_LOGS_PRUNED_TOTAL: "orchestrator",
723
921
  KICI_ORCH_STEPS_TOTAL: "orchestrator",
724
922
  KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: "orchestrator",
725
923
  KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: "orchestrator",
924
+ KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: "orchestrator",
925
+ KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: "orchestrator",
726
926
  KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: "orchestrator",
727
927
  KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: "orchestrator",
928
+ KICI_ORCH_WS_NACK_RECEIVED_TOTAL: "orchestrator",
929
+ KICI_ORCH_WS_PLATFORM_CAPABILITY_GAP_TOTAL: "orchestrator",
930
+ KICI_ORCH_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: "orchestrator",
931
+ KICI_ORCHESTRATOR_DRAINING: "orchestrator",
728
932
  KICI_ORG_AGENT_MINUTES: "platform",
729
933
  KICI_ORG_CONNECTIONS: "platform",
730
934
  KICI_ORG_EXECUTIONS_COUNT: "platform",
@@ -740,6 +944,10 @@ const MetricService = {
740
944
  KICI_PLATFORM_DASHBOARD_PROXY_DURATION_SECONDS: "platform",
741
945
  KICI_PLATFORM_DASHBOARD_PROXY_PENDING: "platform",
742
946
  KICI_PLATFORM_DASHBOARD_PROXY_REQUESTS_TOTAL: "platform",
947
+ KICI_PLATFORM_DB_POOL_ACQUIRE_TIMEOUTS_TOTAL: "platform",
948
+ KICI_PLATFORM_DB_POOL_CONNECTIONS: "platform",
949
+ KICI_PLATFORM_DB_POOL_SATURATED: "platform",
950
+ KICI_PLATFORM_DEGRADED_BUFFER_KEYS_GC_TOTAL: "platform",
743
951
  KICI_PLATFORM_EXECUTION_EVENTS_TOTAL: "platform",
744
952
  KICI_PLATFORM_EXECUTION_STATUS_UPDATES_TOTAL: "platform",
745
953
  KICI_PLATFORM_IDENTITY_LINKS_MISSING_PROVIDER_USER_ID: "platform",
@@ -763,11 +971,19 @@ const MetricService = {
763
971
  KICI_PLATFORM_RELAY_BREAKER_TRIPS_TOTAL: "platform",
764
972
  KICI_PLATFORM_RELAY_REQUEST_DURATION_MS: "platform",
765
973
  KICI_PLATFORM_RELAY_REQUEST_OUTCOME_TOTAL: "platform",
974
+ KICI_PLATFORM_RUN_RECONCILE_DEFERRED_TOTAL: "platform",
975
+ KICI_PLATFORM_RUN_RECONCILE_RECONCILED_TOTAL: "platform",
976
+ KICI_PLATFORM_RUN_RECONCILE_SKIPPED_TOTAL: "platform",
766
977
  KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: "platform",
767
978
  KICI_PLATFORM_STALE_PLATFORM_CONNECTIONS_EVICTED_TOTAL: "platform",
768
979
  KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: "platform",
769
980
  KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: "platform",
981
+ KICI_PLATFORM_SUPPORT_SESSIONS_SWEPT_TOTAL: "platform",
770
982
  KICI_PLATFORM_WS_ORG_RATE_LIMITED_TOTAL: "platform",
983
+ KICI_PLATFORM_WS_SLOW_CONSUMER_TERMINATED_TOTAL: "platform",
984
+ KICI_RBAC_PERMS_CACHE_HITS_TOTAL: "platform",
985
+ KICI_RBAC_PERMS_CACHE_MISSES_TOTAL: "platform",
986
+ KICI_READ_RATE_LIMIT_REJECTED_TOTAL: "platform",
771
987
  KICI_REGISTRATIONS_TOTAL: "platform",
772
988
  KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: "orchestrator",
773
989
  KICI_USER_REGISTRATION_NOTIFY_TOTAL: "platform",
@@ -778,9 +994,11 @@ const MetricService = {
778
994
  KICI_WEBHOOK_BUFFER_BYTES: "platform",
779
995
  KICI_WEBHOOK_BUFFER_DEPTH: "platform",
780
996
  KICI_WEBHOOK_BUFFER_OLDEST_AGE_SECONDS: "platform",
997
+ KICI_WEBHOOK_NO_ORCH_TOTAL: "platform",
781
998
  KICI_WEBHOOK_PG_BREAKER_STATE: "platform",
782
999
  KICI_WEBHOOK_PG_BREAKER_TRANSITIONS_TOTAL: "platform",
783
1000
  KICI_WEBHOOK_PG_DEGRADED_TOTAL: "platform",
1001
+ KICI_WEBHOOK_PG_PROBE_TOTAL: "platform",
784
1002
  KICI_WEBHOOK_PROCESSING_SECONDS: "platform",
785
1003
  KICI_WEBHOOK_REPLAY_DURATION_SECONDS: "platform",
786
1004
  KICI_WEBHOOK_SIGNATURE_FAILURES_TOTAL: "platform",
@@ -790,8 +1008,10 @@ const MetricService = {
790
1008
  KICI_WS_HEARTBEAT_AGE_SECONDS: "platform",
791
1009
  KICI_WS_MESSAGES_RECEIVED_TOTAL: "platform",
792
1010
  KICI_WS_MESSAGES_SENT_TOTAL: "platform",
1011
+ KICI_WS_NACK_RECEIVED_TOTAL: "platform",
793
1012
  KICI_WS_RELAY_ATTEMPTS_TOTAL: "platform",
794
1013
  KICI_WS_RELAY_DURATION_SECONDS: "platform",
1014
+ KICI_WS_UNSUPPORTED_MESSAGE_SENT_TOTAL: "platform",
795
1015
  NODEJS_EVENTLOOP_DELAY_MAX: "runtime",
796
1016
  NODEJS_EVENTLOOP_DELAY_MEAN: "runtime",
797
1017
  NODEJS_EVENTLOOP_DELAY_MIN: "runtime",
@@ -802,11 +1022,11 @@ const MetricService = {
802
1022
  NODEJS_EVENTLOOP_TIME: "runtime",
803
1023
  NODEJS_EVENTLOOP_UTILIZATION: "runtime",
804
1024
  V8JS_GC_DURATION: "runtime",
805
- V8JS_MEMORY_HEAP_LIMIT: "runtime",
806
1025
  V8JS_MEMORY_HEAP_SPACE_AVAILABLE_SIZE: "runtime",
807
1026
  V8JS_MEMORY_HEAP_SPACE_PHYSICAL_SIZE: "runtime",
808
1027
  V8JS_MEMORY_HEAP_SPACE_SIZE: "runtime",
809
- V8JS_MEMORY_HEAP_USED: "runtime"
1028
+ V8JS_MEMORY_HEAP_USED: "runtime",
1029
+ V8JS_RESOURCE_ACTIVE: "runtime"
810
1030
  };
811
1031
  /** Set of every catalog metric name — O(1) membership for lint / filter UI. */
812
1032
  const ALL_METRIC_NAMES = [
@@ -835,6 +1055,7 @@ const ALL_METRIC_NAMES = [
835
1055
  "kici_mcp_tool_requests_total",
836
1056
  "kici_orch_agents_active",
837
1057
  "kici_orch_build_duration_seconds",
1058
+ "kici_orch_check_run_tracking_rows_pruned_total",
838
1059
  "kici_orch_config_reload_total",
839
1060
  "kici_orch_config_version",
840
1061
  "kici_orch_db_collation_drift",
@@ -844,6 +1065,7 @@ const ALL_METRIC_NAMES = [
844
1065
  "kici_orch_dep_cache_misses_total",
845
1066
  "kici_orch_dispatch_queue_depth",
846
1067
  "kici_orch_dispatch_queue_depth_by_label",
1068
+ "kici_orch_dispatch_queue_rows_pruned_total",
847
1069
  "kici_orch_event_attempts",
848
1070
  "kici_orch_event_dispatch_success_total",
849
1071
  "kici_orch_event_dlq_depth",
@@ -853,6 +1075,23 @@ const ALL_METRIC_NAMES = [
853
1075
  "kici_orch_execution_duration_seconds",
854
1076
  "kici_orch_executions_total",
855
1077
  "kici_orch_github_check_run_total",
1078
+ "kici_orch_ingest_admitted_total",
1079
+ "kici_orch_ingest_event_loop_delay_max_ms",
1080
+ "kici_orch_ingest_event_loop_delay_p99_ms",
1081
+ "kici_orch_ingest_inflight",
1082
+ "kici_orch_ingest_loop_lag_resume_ms",
1083
+ "kici_orch_ingest_loop_lag_shed_ms",
1084
+ "kici_orch_ingest_max_concurrency",
1085
+ "kici_orch_ingest_max_queue_depth",
1086
+ "kici_orch_ingest_org_max_concurrency",
1087
+ "kici_orch_ingest_overflow_buffered",
1088
+ "kici_orch_ingest_overflow_captured_total",
1089
+ "kici_orch_ingest_overflow_dropped_total",
1090
+ "kici_orch_ingest_overflow_max",
1091
+ "kici_orch_ingest_overflow_replayed_total",
1092
+ "kici_orch_ingest_queue_depth",
1093
+ "kici_orch_ingest_shed_total",
1094
+ "kici_orch_ingest_shedding_active",
856
1095
  "kici_orch_install_secrets_contributor_stripped_total",
857
1096
  "kici_orch_install_secrets_decisions_total",
858
1097
  "kici_orch_install_secrets_npm_registry_used_total",
@@ -871,6 +1110,7 @@ const ALL_METRIC_NAMES = [
871
1110
  "kici_orch_scaler_config_reloads_total",
872
1111
  "kici_orch_scaler_cpus_used",
873
1112
  "kici_orch_scaler_memory_bytes_used",
1113
+ "kici_orch_scaler_redispatch_total",
874
1114
  "kici_orch_scaler_spawn_failures_total",
875
1115
  "kici_orch_scaler_spawn_refusals_total",
876
1116
  "kici_orch_source_cache_hits_total",
@@ -878,11 +1118,19 @@ const ALL_METRIC_NAMES = [
878
1118
  "kici_orch_stale_detection_duration_seconds",
879
1119
  "kici_orch_stale_runs_current",
880
1120
  "kici_orch_stale_runs_detected_total",
1121
+ "kici_orch_state_replay_breaker_trips_total",
1122
+ "kici_orch_step_logs_pruned_total",
881
1123
  "kici_orch_steps_total",
882
1124
  "kici_orch_trigger_match_duration_seconds",
883
1125
  "kici_orch_trust_match_refused_no_id_total",
1126
+ "kici_orch_trust_policy_decisions_total",
1127
+ "kici_orch_unroutable_fast_failed_total",
884
1128
  "kici_orch_webhooks_processed_total",
885
1129
  "kici_orch_webhooks_received_total",
1130
+ "kici_orch_ws_nack_received_total",
1131
+ "kici_orch_ws_platform_capability_gap_total",
1132
+ "kici_orch_ws_unsupported_message_sent_total",
1133
+ "kici_orchestrator_draining",
886
1134
  "kici_org_agent_minutes",
887
1135
  "kici_org_connections",
888
1136
  "kici_org_executions_count",
@@ -898,6 +1146,10 @@ const ALL_METRIC_NAMES = [
898
1146
  "kici_platform_dashboard_proxy_duration_seconds",
899
1147
  "kici_platform_dashboard_proxy_pending",
900
1148
  "kici_platform_dashboard_proxy_requests_total",
1149
+ "kici_platform_db_pool_acquire_timeouts_total",
1150
+ "kici_platform_db_pool_connections",
1151
+ "kici_platform_db_pool_saturated",
1152
+ "kici_platform_degraded_buffer_keys_gc_total",
901
1153
  "kici_platform_execution_events_total",
902
1154
  "kici_platform_execution_status_updates_total",
903
1155
  "kici_platform_identity_links_missing_provider_user_id",
@@ -921,11 +1173,19 @@ const ALL_METRIC_NAMES = [
921
1173
  "kici_platform_relay_breaker_trips_total",
922
1174
  "kici_platform_relay_request_duration_ms",
923
1175
  "kici_platform_relay_request_outcome_total",
1176
+ "kici_platform_run_reconcile_deferred_total",
1177
+ "kici_platform_run_reconcile_reconciled_total",
1178
+ "kici_platform_run_reconcile_skipped_total",
924
1179
  "kici_platform_stale_orchestrators_total",
925
1180
  "kici_platform_stale_platform_connections_evicted_total",
926
1181
  "kici_platform_stale_runs_failed_total",
927
1182
  "kici_platform_step_status_forwards_total",
1183
+ "kici_platform_support_sessions_swept_total",
928
1184
  "kici_platform_ws_org_rate_limited_total",
1185
+ "kici_platform_ws_slow_consumer_terminated_total",
1186
+ "kici_rbac_perms_cache_hits_total",
1187
+ "kici_rbac_perms_cache_misses_total",
1188
+ "kici_read_rate_limit_rejected_total",
929
1189
  "kici_registrations_total",
930
1190
  "kici_universal_git_registration_errors_total",
931
1191
  "kici_user_registration_notify_total",
@@ -936,9 +1196,11 @@ const ALL_METRIC_NAMES = [
936
1196
  "kici_webhook_buffer_bytes",
937
1197
  "kici_webhook_buffer_depth",
938
1198
  "kici_webhook_buffer_oldest_age_seconds",
1199
+ "kici_webhook_no_orch_total",
939
1200
  "kici_webhook_pg_breaker_state",
940
1201
  "kici_webhook_pg_breaker_transitions_total",
941
1202
  "kici_webhook_pg_degraded_total",
1203
+ "kici_webhook_pg_probe_total",
942
1204
  "kici_webhook_processing_seconds",
943
1205
  "kici_webhook_replay_duration_seconds",
944
1206
  "kici_webhook_signature_failures_total",
@@ -948,8 +1210,10 @@ const ALL_METRIC_NAMES = [
948
1210
  "kici_ws_heartbeat_age_seconds",
949
1211
  "kici_ws_messages_received_total",
950
1212
  "kici_ws_messages_sent_total",
1213
+ "kici_ws_nack_received_total",
951
1214
  "kici_ws_relay_attempts_total",
952
1215
  "kici_ws_relay_duration_seconds",
1216
+ "kici_ws_unsupported_message_sent_total",
953
1217
  "nodejs.eventloop.delay.max",
954
1218
  "nodejs.eventloop.delay.mean",
955
1219
  "nodejs.eventloop.delay.min",
@@ -960,11 +1224,11 @@ const ALL_METRIC_NAMES = [
960
1224
  "nodejs.eventloop.time",
961
1225
  "nodejs.eventloop.utilization",
962
1226
  "v8js.gc.duration",
963
- "v8js.memory.heap.limit",
964
1227
  "v8js.memory.heap.space.available_size",
965
1228
  "v8js.memory.heap.space.physical_size",
966
1229
  "v8js.memory.heap.space.size",
967
- "v8js.memory.heap.used"
1230
+ "v8js.memory.heap.used",
1231
+ "v8js.resource.active"
968
1232
  ];
969
1233
  //#endregion
970
1234
  export { ALL_METRIC_NAMES, MetricDescription, MetricKind, MetricLabels, MetricNames, MetricService };