@kici-dev/engine 0.4.0 → 0.5.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 (41) hide show
  1. package/dist/context/host-match.js +2 -1
  2. package/dist/index.d.ts +3 -1
  3. package/dist/index.js +7 -5
  4. package/dist/labels/compile.d.ts +2 -7
  5. package/dist/labels/compile.js +1 -10
  6. package/dist/labels.d.ts +8 -0
  7. package/dist/labels.js +9 -1
  8. package/dist/metrics/catalog-policy.d.ts +11 -0
  9. package/dist/metrics/catalog-policy.js +13 -3
  10. package/dist/metrics/metric-catalog.generated.d.ts +30 -0
  11. package/dist/metrics/metric-catalog.generated.js +36 -0
  12. package/dist/protocol/messages/dashboard-global-workflows.d.ts +8 -3
  13. package/dist/protocol/messages/dashboard-global-workflows.js +20 -3
  14. package/dist/protocol/messages/dashboard.d.ts +5 -2
  15. package/dist/protocol/messages/dashboard.js +7 -0
  16. package/dist/protocol/messages/execution-status.d.ts +3 -0
  17. package/dist/protocol/messages/execution-status.js +16 -0
  18. package/dist/protocol/messages/orchestrator-agent.d.ts +49 -0
  19. package/dist/protocol/messages/orchestrator-agent.js +34 -1
  20. package/dist/protocol/messages/platform-orchestrator.d.ts +5 -2
  21. package/dist/protocol/messages/platform-orchestrator.js +14 -0
  22. package/dist/provider/check-status-poster.d.ts +14 -0
  23. package/dist/provider/file-contents-fetcher.d.ts +39 -0
  24. package/dist/provider/file-contents-fetcher.js +2 -0
  25. package/dist/provider/index.d.ts +2 -0
  26. package/dist/safe-regex.d.ts +16 -0
  27. package/dist/safe-regex.js +24 -0
  28. package/dist/trigger/compiled-matchers.d.ts +21 -1
  29. package/dist/trigger/compiled-matchers.js +30 -3
  30. package/dist/trigger/content-requirements.d.ts +31 -0
  31. package/dist/trigger/content-requirements.js +125 -0
  32. package/dist/trigger/decision-trace.d.ts +89 -0
  33. package/dist/trigger/decision-trace.js +96 -1
  34. package/dist/trigger/jsonpath-matcher.js +5 -1
  35. package/dist/trigger/matcher.js +57 -8
  36. package/dist/trigger/text-match.d.ts +27 -0
  37. package/dist/trigger/text-match.js +86 -0
  38. package/dist/trigger/types.d.ts +179 -17
  39. package/dist/trigger/types.js +32 -5
  40. package/package.json +10 -1
  41. package/sbom.spdx.json +30 -5
@@ -1,6 +1,7 @@
1
1
  import "../rolldown-runtime-ClRpJifh.js";
2
2
  import { matcherMatches } from "../labels-match.js";
3
- import { assertSafeRegex, toLabelMatcher } from "../labels/compile.js";
3
+ import { assertSafeRegex } from "../safe-regex.js";
4
+ import { toLabelMatcher } from "../labels/compile.js";
4
5
  //#region src/context/host-match.ts
5
6
  /** `'**'`, empty, or absent means "matches every host". */
6
7
  function matchesAllHosts(pattern) {
package/dist/index.d.ts CHANGED
@@ -45,9 +45,11 @@ export * from './protocol/messages/log-stream.js';
45
45
  export * from './protocol/messages/orchestrator-agent.js';
46
46
  export * from './sandbox/capabilities.js';
47
47
  export * from './trigger/types.js';
48
+ export * from './trigger/text-match.js';
48
49
  export * from './trigger/trigger-event-type.js';
49
50
  export * from './trigger/decision-trace.js';
50
51
  export * from './trigger/matcher.js';
52
+ export { getRepoGlobMatcher } from './trigger/compiled-matchers.js';
51
53
  export * from './trigger/event-buckets.js';
52
54
  export { scheduleTriggerKey } from './trigger/schedule-key.js';
53
55
  export * from './inputs/index.js';
@@ -61,7 +63,7 @@ export type { RateLimiterConfig, RateLimitResult } from './ws/rate-limiter.js';
61
63
  export * from './env/environment-allowlist.js';
62
64
  export * from './secrets/index.js';
63
65
  export * from './context/index.js';
64
- export { deriveOsArchLabels, derivePlatformTaints, PLATFORM_TAINT_LABELS, ScalerOs, ScalerArch, scalerPlatformSchema, platformToOsArchLabels, platformToTaints, nodePlatformToScalerOs, nodeArchToScalerArch, hostToScalerPlatform, hostLabel, parseHostLabel, HOST_LABEL_PREFIX, agentTypeLabel, scalerLabel, mergeAutoLabels, normalizeRunsOn, KNOWN_ROLES, resolveRoleLabels, validateNoReservedLabels, scalerAgentLabels, isSelfReportedLabel, SELF_REPORTED_LABEL_PREFIXES, CAPABILITY_LABEL_PREFIX, capabilityLabel, SSH_TRANSPORT_CAPABILITY, INIT_LABEL, PRIVILEGED_ROOT_LABEL, } from './labels.js';
66
+ export { deriveOsArchLabels, derivePlatformTaints, PLATFORM_TAINT_LABELS, ScalerOs, ScalerArch, scalerPlatformSchema, platformToOsArchLabels, platformToTaints, nodePlatformToScalerOs, nodeArchToScalerArch, hostToScalerPlatform, hostLabel, parseHostLabel, HOST_LABEL_PREFIX, agentTypeLabel, scalerLabel, mergeAutoLabels, normalizeRunsOn, KNOWN_ROLES, resolveRoleLabels, validateNoReservedLabels, scalerAgentLabels, isSelfReportedLabel, SELF_REPORTED_LABEL_PREFIXES, CAPABILITY_LABEL_PREFIX, capabilityLabel, SSH_TRANSPORT_CAPABILITY, INIT_LABEL, PRIVILEGED_ROOT_LABEL, INIT_RUNNER_ROLE_LABEL, } from './labels.js';
65
67
  export type { NormalizedRunsOn } from './labels.js';
66
68
  export type { AgentRole } from './labels.js';
67
69
  export type { ScalerPlatform } from './labels.js';
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ import { OWN_INGRESS_MODES, OrchestratorMode, PLATFORM_CONNECTED_MODES, RELAY_IN
21
21
  import { ScalerBackendType } from "./scaler/scaler-backend-type.js";
22
22
  import { ApprovalDecision, HoldScope, TriggerSource, approvalRequirementSchema, approvalTimeoutSecondsSchema, approverClauseSchema } from "./approval/types.js";
23
23
  import { CANONICAL_STATUSES, LEGACY_STATUS_ALIASES, STATUS_FAILURE_CLASS, STATUS_PRECEDENCE, StatusFailureClass, isFailureStatus, toCanonicalStatus, worstStatus } from "./status/presentation.js";
24
- import { BREAKING_FLOOR, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, OnUnreachableMode, RunsOnPick, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, changedFilesStatusSchema, isLockDynamicJobFn, isLockInlineValue, isLockParallelStep, isLockStaticJob, resolveWhenToRunOn } from "./trigger/types.js";
24
+ import { BREAKING_FLOOR, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, OnUnreachableMode, RunsOnPick, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, changedFilesStatusSchema, isLockDynamicJobFn, isLockInlineValue, isLockParallelStep, isLockStaticJob, resolveContentFormat, resolveWhenToRunOn } from "./trigger/types.js";
25
25
  import { HostTargetSelector, HostTargetValue, LabelMatcher, compileRegexMatcher, hostSatisfiesTarget, matcherMatches, matcherSatisfiedBy, partitionMatchers } from "./labels-match.js";
26
26
  import { ConcurrencyStrategy, DEFAULT_CONCURRENCY_STRATEGY } from "./context/concurrency-strategy.js";
27
27
  import { HostInventoryEntry, HostPropertyValue, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, coerceHostPropertyValue, parseHostPropertyAssignments } from "./inventory.js";
@@ -42,10 +42,12 @@ import { EVENT_LOG_PAYLOAD_CHUNK_BYTES } from "./protocol/event-log-payload.js";
42
42
  import { browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserOrchLogLinesSchema, browserOrchLogSubscribeSchema, browserOrchLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, platformToBrowserMessageSchema } from "./protocol/messages/browser.js";
43
43
  import { joinRequestSchema, joinResponseSchema } from "./protocol/messages/join.js";
44
44
  import { fleetSelectionSchema, jobProgressAckSchema, jobProgressSchema, jobRerouteAckSchema, jobRerouteSchema, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerToPeerMessageSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, workerClusterSettingsSchema } from "./protocol/messages/peer.js";
45
- import { ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactRejectReason, ArtifactUploadOutcome, CacheRefScope, JobRejectReason, StepApprovalOutcome, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentLogChunkSchema, agentMetricsSchema, agentRegisterSchema, agentStatusSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, configAckSchema, eventEmitResponseSchema, eventEmitSchema, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetLogsRequestSchema, gitAuthSchema, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobDispatchSchema, jobRejectSchema, jobStatusSchema, orchestratorToAgentMessageSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, registerAckSchema, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, upstreamSnapshotSchema } from "./protocol/messages/orchestrator-agent.js";
45
+ import { ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactRejectReason, ArtifactUploadOutcome, CacheRefScope, JobRejectReason, StepApprovalOutcome, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentLogChunkSchema, agentMetricsSchema, agentRegisterSchema, agentStatusSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, configAckSchema, eventEmitResponseSchema, eventEmitSchema, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetLogsRequestSchema, gitAuthSchema, globalEvalCandidateResultSchema, globalEvalRoundResultSchema, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobDispatchSchema, jobRejectSchema, jobStatusSchema, orchestratorToAgentMessageSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, registerAckSchema, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, upstreamSnapshotSchema } from "./protocol/messages/orchestrator-agent.js";
46
46
  import { KNOWN_LINUX_CAPABILITIES, canonicalizeCapability, isKnownCapability } from "./sandbox/capabilities.js";
47
+ import { compileSafeRegex, describeTextMatch, evaluateTextMatch, textMatchHasQuery } from "./trigger/text-match.js";
47
48
  import { TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES } from "./trigger/trigger-event-type.js";
48
- import { createTraceEntry, createWorkflowDecision } from "./trigger/decision-trace.js";
49
+ import { TraceCheck, TraceVerdict, appendChecks, createCommitMessageTraceEntry, createContentRequirementsTraceEntry, createGlobalFilterTraceEntry, createTraceEntry, createWorkflowDecision } from "./trigger/decision-trace.js";
50
+ import { getRepoGlobMatcher } from "./trigger/compiled-matchers.js";
49
51
  import { matchAllWorkflows, matchBranchPattern, matchPathPatterns, matchRepoPatterns, matchTrigger, matchWorkflowTriggers } from "./trigger/matcher.js";
50
52
  import { TRIGGER_TYPE_TO_EVENT_TYPES, matchWorkflowsForEvent, prepareEventBuckets } from "./trigger/event-buckets.js";
51
53
  import { scheduleTriggerKey } from "./trigger/schedule-key.js";
@@ -73,7 +75,7 @@ import { ContextGateRejectReason, mergeOrderedMaps } from "./context/multi-conte
73
75
  import { SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, ScopeNameError, assertValidScopeName, validateScopeName } from "./context/scope-name.js";
74
76
  import { SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SecretKeyError, assertValidSecretKey, validateSecretKey } from "./context/secret-key.js";
75
77
  import "./context/index.js";
76
- import { CAPABILITY_LABEL_PREFIX, HOST_LABEL_PREFIX, INIT_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, ScalerArch, ScalerOs, agentTypeLabel, capabilityLabel, deriveOsArchLabels, derivePlatformTaints, hostLabel, hostToScalerPlatform, isSelfReportedLabel, mergeAutoLabels, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeRunsOn, parseHostLabel, platformToOsArchLabels, platformToTaints, resolveRoleLabels, scalerAgentLabels, scalerLabel, scalerPlatformSchema, validateNoReservedLabels } from "./labels.js";
78
+ import { CAPABILITY_LABEL_PREFIX, HOST_LABEL_PREFIX, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, ScalerArch, ScalerOs, agentTypeLabel, capabilityLabel, deriveOsArchLabels, derivePlatformTaints, hostLabel, hostToScalerPlatform, isSelfReportedLabel, mergeAutoLabels, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeRunsOn, parseHostLabel, platformToOsArchLabels, platformToTaints, resolveRoleLabels, scalerAgentLabels, scalerLabel, scalerPlatformSchema, validateNoReservedLabels } from "./labels.js";
77
79
  import { parseMemoryString, resourceRequestNestedSchema, resourceSpecSchema, validateResourceRequest } from "./scaler/resource-types.js";
78
80
  import { RegisterableTriggerType } from "./registration/registerable-trigger-type.js";
79
81
  import { createWorkflowBundleConfig } from "./bundler/rolldown-config.js";
@@ -84,4 +86,4 @@ import { FanoutCause, FanoutError, MAX_FANOUT_JOBS, MAX_MATRIX_MATERIALIZATION,
84
86
  import { ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, ArtifactNameSchema, artifactInvalidNameError, checkArtifactName } from "./artifacts/name.js";
85
87
  import { PLAN_TYPES, PaidPlanType, PlanType, isPaidTier, planRank } from "./billing/plan-type.js";
86
88
  import { INFRA_ALERT_TYPES, InfraAlertSeverity, InfraAlertType, normalizeInfraAlertSeverity } from "./diagnostics/infra-alert.js";
87
- export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, AccessLogAction, AccessLogOutcome, AccessLogPolicyKind, AccessLogSource, AccessLogTargetType, ActivityFilterSource, ActivityRowSource, ActorType, AgentFailureCategory, ApprovalDecision, ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactNameSchema, ArtifactRejectReason, ArtifactUploadOutcome, AttestationOrigin, BREAKING_FLOOR, CANONICAL_STATUSES, CAPABILITY_LABEL_PREFIX, CONTEXTS_MAX, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, ConcurrencyStrategy, ContextDeleteErrorCode, ContextGateRejectReason, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DEAD_ORCH_FAILURE_REASON, DEFAULT_APPROVAL_EXPIRY_HOURS, DEFAULT_CONCURRENCY_STRATEGY, DEFAULT_HOLD_EXPIRY_SECONDS, DEVELOPER_OPERATIONS, DashboardResponseErrorCode, DeploymentContainerRuntimeSchema, DeploymentIdentitySchema, DeploymentModeSchema, DispatchInputError, DispatchInputType, EVENT_LOG_PAYLOAD_CHUNK_BYTES, EventLogPayloadStreamError, EventLogSource, EventLogStatus, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, FanoutCause, FanoutError, FleetHostDisposition, HEARTBEAT_CLOSE_MS, HEARTBEAT_DEGRADED_MS, HEARTBEAT_FRESH_MS, HEARTBEAT_STALE_THRESHOLD_SECONDS, HEARTBEAT_UNHEALTHY_MARK_MS, HOST_LABEL_PREFIX, HeldRunQueueType, HeldRunStatus, HoldScope, HoldType, HostInventoryEntry, HostPropertyValue, HostTargetSelector, HostTargetValue, INFRA_ALERT_TYPES, INIT_LABEL, INSTALL_JOB_ID_PREFIX, InfraAlertSeverity, InfraAlertType, InitFailureCategory, InputDescriptor, InputsDescriptorMapSchema, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JobRejectReason, KICI_AGENT_ENV_PREFIX, KNOWN_LINUX_CAPABILITIES, KNOWN_ROLES, LEGACY_STATUS_ALIASES, LabelMatcher, LockFileParseError, LogStream, MAX_FANOUT_JOBS, MAX_JOBS_PER_RUN, MAX_MATRIX_MATERIALIZATION, MIN_PROTOCOL_VERSION, MatrixShapeError, NACK_EXEMPT_MESSAGE_TYPES, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, ORCH_TO_PLATFORM_RECOGNIZED_TYPES, OWN_INGRESS_MODES, OnUnreachableMode, OrchLogPhase, OrchRole, OrchestratorMode, PING_EVENT_TYPE, PLAN_TYPES, PLATFORM_CAPABILITIES, PLATFORM_CONNECTED_MODES, PLATFORM_TAINT_LABELS, PLATFORM_TO_ORCH_RECOGNIZED_TYPES, POLICY_BY_ACTION, PRIVILEGED_ROOT_LABEL, PROTOCOL_VERSION, PaidPlanType, PatKind, PayloadOmittedReason, PlanType, RELAY_INGRESS_MODES, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, RegisterableTriggerType, RunFailureClass, RunsOnPick, SANDBOX_DEFAULT_VARS, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, STATE_REPLAY_MAX_RUNS, STATUS_FAILURE_CLASS, STATUS_FREE_TEXT_MAX, STATUS_ID_MAX, STATUS_PRECEDENCE, SUBSCRIBABLE_WEBHOOK_EVENT_TYPES, ScalerArch, ScalerBackendType, ScalerEventType, ScalerOs, ScopeNameError, SecretKeyError, SourceOrigin, SourceProvider, SourceSubtype, StatusFailureClass, StepApprovalOutcome, StepConcurrencyKind, SubscribableWebhookEventType, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TERMINAL_STEP_STATES, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TRIGGER_TYPE_TO_EVENT_TYPES, TRUSTED_ENV_SCRUB_EXACT, TestRelayType, TimeoutReason, TriggerSource, TrustTierSchema, UnsupportedDispatchInputError, VariantKind, WEBHOOK_RELAY_CHUNK_SIZE, WEBHOOK_RELAY_MAX_BODY_BYTES, WORKFLOW_MODIFICATION_JOB_ID, WS_CLOSE_AGENT_AUTH_FAILED, WS_CLOSE_AUTH_TIMEOUT, WS_CLOSE_CLUSTER_NAME_CONFLICT, WS_CLOSE_DISPATCH_ACK_TIMEOUT, WS_CLOSE_GOING_AWAY, WS_CLOSE_HEARTBEAT_TIMEOUT, WS_CLOSE_INTERNAL_ERROR, WS_CLOSE_INVALID_MESSAGE, WS_CLOSE_PLAN_LIMIT, WS_CLOSE_PROTOCOL_ERROR, WS_CLOSE_REBALANCE, WS_CLOSE_UNAUTHORIZED, WS_MAX_PAYLOAD_BYTES, WebhookEventType, WebhookRelayResult, WsRateLimiter, accessLogFilterSchema, accessLogItemSchema, accessLogWarmSqlCase, ackSchema, activityCursorSchema, activityFilterSchema, activityRowSchema, actorPrincipalSchema, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentDiagnosticsConnectionSchema, agentDiagnosticsSchema, agentJobResultSchema, agentLabelOf, agentLogChunkSchema, agentMetricsSchema, agentOrchestratorSummarySchema, agentOrgSummarySchema, agentRegisterSchema, agentRunListItemSchema, agentRunResultSchema, agentSecretScopeSchema, agentStatusSchema, agentStepLogsSchema, agentStepResultSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, agentTypeLabel, agentWorkflowSummarySchema, apiKeyActorSchema, applyIncludeExclude, approvalRequirementSchema, approvalTimeoutSecondsSchema, approveRunToolSchema, approverClauseSchema, artifactInvalidNameError, artifactListItemSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, assertScheduleInputsSatisfiable, assertValidScopeName, assertValidSecretKey, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, auditLogColdDays, auditLogWarmDays, auditLogWarmSqlCase, authFailureSchema, authRequestSchema, authSuccessSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadChunkSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobContextSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserOrchLogLinesSchema, browserOrchLogSubscribeSchema, browserOrchLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunEventSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, buildTrustedPassthroughEnv, buildUnsupportedMessageNack, buildZodFromDescriptor, buildZodObjectFromMap, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, cancelRunToolSchema, cancelRunsByBranchToolSchema, canonicalizeCapability, capabilityLabel, changedFilesStatusSchema, checkArtifactName, coerceDispatchInputs, coerceHostPropertyValue, collectDiscriminatorTypes, compileRegexMatcher, configAckSchema, connectionHealthStatusSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, createTraceEntry, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchLogsRequestSchema, dashboardOrchLogsResponseSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, decodeActivityCursor, deriveOsArchLabels, derivePlatformTaints, developerOpsForEntrypoint, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, encodeActivityCursor, errorSchema, eventEmitResponseSchema, eventEmitSchema, eventLogActivityCountsSchema, eventLogListItemSchema, executionEventSchema, executionStatusSchema, expandMatrix, expandMultiDimension, expandSingleDimension, extractInputDescriptor, extractInputsDescriptorMap, fanoutEnvelopeFields, findDuplicateCombination, flattenActor, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetLogsRequestSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, fleetSelectionSchema, fnv1a32, formatExpandedJobName, formatMatrixSuffix, getAccessLogColdDays, getAccessLogWarmDays, getAuditLogColdDays, getAuditLogWarmDays, getDiagnosticsToolSchema, getRunToolSchema, getSecretAuditLogColdDays, getSecretAuditLogWarmDays, getStepLogsToolSchema, gitAuthSchema, githubIngressPath, githubWebhookPath, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, heartbeatSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, hostEnvelopeFields, hostLabel, hostSatisfiesTarget, hostToScalerPlatform, identityLinkItemSchema, identityLinkListResponseSchema, initFailureSchema, installGateJobId, isFailureStatus, isInputSatisfiableFromDefaults, isKnownCapability, isLockDynamicJobFn, isLockInlineValue, isLockParallelStep, isLockStaticJob, isPaidTier, isSelfReportedLabel, isTrustedEnvScrubbed, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobContextMessageSchema, jobDispatchSchema, jobProgressAckSchema, jobProgressSchema, jobRejectSchema, jobRerouteAckSchema, jobRerouteSchema, jobStatusForwardSchema, jobStatusSchema, joinRequestSchema, joinResponseSchema, listOrchestratorsToolSchema, listOrgsToolSchema, listRunsToolSchema, listSecretsToolSchema, listWorkflowsToolSchema, logChunkSchema, logPullOrchToPlatformSchema, logPullPlatformToOrchSchema, manualScheduleRequestSchema, matchAllWorkflows, matchBranchPattern, matchPathPatterns, matchRepoPatterns, matchScopePattern, matchTrigger, matchWorkflowTriggers, matchWorkflowsForEvent, matcherMatches, matcherSatisfiedBy, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixCombinationCount, matrixEnvelopeFields, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, mergeAutoLabels, mergeOrderedMaps, minAccessLogWarmDays, minAuditLogWarmDays, minSecretAuditLogWarmDays, nackSchema, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeInfraAlertSeverity, normalizeMatrixInput, normalizePersistedHoldType, normalizeRunsOn, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, orchLogChunkSchema, orchMetricsSchema, orchestratorToAgentMessageSchema, orchestratorToPlatformMessageSchema, orgMemberSchema, parseActor, parseHostLabel, parseHostPropertyAssignments, parseInputPairs, parseMemoryString, partitionMatchers, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerDiscoverSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerToPeerMessageSchema, peerUpdateSchema, persistedHoldTypeSpellings, planRank, platformCapabilitiesMessageSchema, platformCapabilitiesSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, platformToOsArchLabels, platformToTaints, prepareEventBuckets, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, rejectRunToolSchema, renderFenced, rerunRunToolSchema, resolveHeldRunId, resolveRoleLabels, resolveRunIdSugar, resolveScheduleInputs, resolveSecretsForContext, resolveSecretsWithProvenance, resolveWhenToRunOn, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, scalerAgentLabels, scalerLabel, scalerPlatformSchema, scheduleTriggerKey, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplayRunSchema, stateReplaySchema, statusOptionsForLevel, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, toCanonicalStatus, triggerRunToolSchema, trustPolicyResponseSchema, trustPolicySchema, trustPolicyUpdateSchema, trustedContributorHoldReason, unknownContributorHoldReason, untrusted, upstreamSnapshotSchema, userActorSchema, validateNoReservedLabels, validateResourceRequest, validateScopeName, validateSecretKey, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema, workerClusterSettingsSchema, worstStatus, wrapUntrusted };
89
+ export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, AccessLogAction, AccessLogOutcome, AccessLogPolicyKind, AccessLogSource, AccessLogTargetType, ActivityFilterSource, ActivityRowSource, ActorType, AgentFailureCategory, ApprovalDecision, ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactNameSchema, ArtifactRejectReason, ArtifactUploadOutcome, AttestationOrigin, BREAKING_FLOOR, CANONICAL_STATUSES, CAPABILITY_LABEL_PREFIX, CONTEXTS_MAX, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, ConcurrencyStrategy, ContextDeleteErrorCode, ContextGateRejectReason, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DEAD_ORCH_FAILURE_REASON, DEFAULT_APPROVAL_EXPIRY_HOURS, DEFAULT_CONCURRENCY_STRATEGY, DEFAULT_HOLD_EXPIRY_SECONDS, DEVELOPER_OPERATIONS, DashboardResponseErrorCode, DeploymentContainerRuntimeSchema, DeploymentIdentitySchema, DeploymentModeSchema, DispatchInputError, DispatchInputType, EVENT_LOG_PAYLOAD_CHUNK_BYTES, EventLogPayloadStreamError, EventLogSource, EventLogStatus, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, FanoutCause, FanoutError, FleetHostDisposition, HEARTBEAT_CLOSE_MS, HEARTBEAT_DEGRADED_MS, HEARTBEAT_FRESH_MS, HEARTBEAT_STALE_THRESHOLD_SECONDS, HEARTBEAT_UNHEALTHY_MARK_MS, HOST_LABEL_PREFIX, HeldRunQueueType, HeldRunStatus, HoldScope, HoldType, HostInventoryEntry, HostPropertyValue, HostTargetSelector, HostTargetValue, INFRA_ALERT_TYPES, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, INSTALL_JOB_ID_PREFIX, InfraAlertSeverity, InfraAlertType, InitFailureCategory, InputDescriptor, InputsDescriptorMapSchema, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JobRejectReason, KICI_AGENT_ENV_PREFIX, KNOWN_LINUX_CAPABILITIES, KNOWN_ROLES, LEGACY_STATUS_ALIASES, LabelMatcher, LockFileParseError, LogStream, MAX_FANOUT_JOBS, MAX_JOBS_PER_RUN, MAX_MATRIX_MATERIALIZATION, MIN_PROTOCOL_VERSION, MatrixShapeError, NACK_EXEMPT_MESSAGE_TYPES, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, ORCH_TO_PLATFORM_RECOGNIZED_TYPES, OWN_INGRESS_MODES, OnUnreachableMode, OrchLogPhase, OrchRole, OrchestratorMode, PING_EVENT_TYPE, PLAN_TYPES, PLATFORM_CAPABILITIES, PLATFORM_CONNECTED_MODES, PLATFORM_TAINT_LABELS, PLATFORM_TO_ORCH_RECOGNIZED_TYPES, POLICY_BY_ACTION, PRIVILEGED_ROOT_LABEL, PROTOCOL_VERSION, PaidPlanType, PatKind, PayloadOmittedReason, PlanType, RELAY_INGRESS_MODES, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, RegisterableTriggerType, RunFailureClass, RunsOnPick, SANDBOX_DEFAULT_VARS, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, STATE_REPLAY_MAX_RUNS, STATUS_FAILURE_CLASS, STATUS_FREE_TEXT_MAX, STATUS_ID_MAX, STATUS_PRECEDENCE, SUBSCRIBABLE_WEBHOOK_EVENT_TYPES, ScalerArch, ScalerBackendType, ScalerEventType, ScalerOs, ScopeNameError, SecretKeyError, SourceOrigin, SourceProvider, SourceSubtype, StatusFailureClass, StepApprovalOutcome, StepConcurrencyKind, SubscribableWebhookEventType, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TERMINAL_STEP_STATES, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TRIGGER_TYPE_TO_EVENT_TYPES, TRUSTED_ENV_SCRUB_EXACT, TestRelayType, TimeoutReason, TraceCheck, TraceVerdict, TriggerSource, TrustTierSchema, UnsupportedDispatchInputError, VariantKind, WEBHOOK_RELAY_CHUNK_SIZE, WEBHOOK_RELAY_MAX_BODY_BYTES, WORKFLOW_MODIFICATION_JOB_ID, WS_CLOSE_AGENT_AUTH_FAILED, WS_CLOSE_AUTH_TIMEOUT, WS_CLOSE_CLUSTER_NAME_CONFLICT, WS_CLOSE_DISPATCH_ACK_TIMEOUT, WS_CLOSE_GOING_AWAY, WS_CLOSE_HEARTBEAT_TIMEOUT, WS_CLOSE_INTERNAL_ERROR, WS_CLOSE_INVALID_MESSAGE, WS_CLOSE_PLAN_LIMIT, WS_CLOSE_PROTOCOL_ERROR, WS_CLOSE_REBALANCE, WS_CLOSE_UNAUTHORIZED, WS_MAX_PAYLOAD_BYTES, WebhookEventType, WebhookRelayResult, WsRateLimiter, accessLogFilterSchema, accessLogItemSchema, accessLogWarmSqlCase, ackSchema, activityCursorSchema, activityFilterSchema, activityRowSchema, actorPrincipalSchema, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentDiagnosticsConnectionSchema, agentDiagnosticsSchema, agentJobResultSchema, agentLabelOf, agentLogChunkSchema, agentMetricsSchema, agentOrchestratorSummarySchema, agentOrgSummarySchema, agentRegisterSchema, agentRunListItemSchema, agentRunResultSchema, agentSecretScopeSchema, agentStatusSchema, agentStepLogsSchema, agentStepResultSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, agentTypeLabel, agentWorkflowSummarySchema, apiKeyActorSchema, appendChecks, applyIncludeExclude, approvalRequirementSchema, approvalTimeoutSecondsSchema, approveRunToolSchema, approverClauseSchema, artifactInvalidNameError, artifactListItemSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, assertScheduleInputsSatisfiable, assertValidScopeName, assertValidSecretKey, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, auditLogColdDays, auditLogWarmDays, auditLogWarmSqlCase, authFailureSchema, authRequestSchema, authSuccessSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadChunkSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobContextSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserOrchLogLinesSchema, browserOrchLogSubscribeSchema, browserOrchLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunEventSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, buildTrustedPassthroughEnv, buildUnsupportedMessageNack, buildZodFromDescriptor, buildZodObjectFromMap, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, cancelRunToolSchema, cancelRunsByBranchToolSchema, canonicalizeCapability, capabilityLabel, changedFilesStatusSchema, checkArtifactName, coerceDispatchInputs, coerceHostPropertyValue, collectDiscriminatorTypes, compileRegexMatcher, compileSafeRegex, configAckSchema, connectionHealthStatusSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, createCommitMessageTraceEntry, createContentRequirementsTraceEntry, createGlobalFilterTraceEntry, createTraceEntry, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchLogsRequestSchema, dashboardOrchLogsResponseSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, decodeActivityCursor, deriveOsArchLabels, derivePlatformTaints, describeTextMatch, developerOpsForEntrypoint, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, encodeActivityCursor, errorSchema, evaluateTextMatch, eventEmitResponseSchema, eventEmitSchema, eventLogActivityCountsSchema, eventLogListItemSchema, executionEventSchema, executionStatusSchema, expandMatrix, expandMultiDimension, expandSingleDimension, extractInputDescriptor, extractInputsDescriptorMap, fanoutEnvelopeFields, findDuplicateCombination, flattenActor, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetLogsRequestSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, fleetSelectionSchema, fnv1a32, formatExpandedJobName, formatMatrixSuffix, getAccessLogColdDays, getAccessLogWarmDays, getAuditLogColdDays, getAuditLogWarmDays, getDiagnosticsToolSchema, getRepoGlobMatcher, getRunToolSchema, getSecretAuditLogColdDays, getSecretAuditLogWarmDays, getStepLogsToolSchema, gitAuthSchema, githubIngressPath, githubWebhookPath, globalEvalCandidateResultSchema, globalEvalRoundResultSchema, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, heartbeatSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, hostEnvelopeFields, hostLabel, hostSatisfiesTarget, hostToScalerPlatform, identityLinkItemSchema, identityLinkListResponseSchema, initFailureSchema, installGateJobId, isFailureStatus, isInputSatisfiableFromDefaults, isKnownCapability, isLockDynamicJobFn, isLockInlineValue, isLockParallelStep, isLockStaticJob, isPaidTier, isSelfReportedLabel, isTrustedEnvScrubbed, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobContextMessageSchema, jobDispatchSchema, jobProgressAckSchema, jobProgressSchema, jobRejectSchema, jobRerouteAckSchema, jobRerouteSchema, jobStatusForwardSchema, jobStatusSchema, joinRequestSchema, joinResponseSchema, listOrchestratorsToolSchema, listOrgsToolSchema, listRunsToolSchema, listSecretsToolSchema, listWorkflowsToolSchema, logChunkSchema, logPullOrchToPlatformSchema, logPullPlatformToOrchSchema, manualScheduleRequestSchema, matchAllWorkflows, matchBranchPattern, matchPathPatterns, matchRepoPatterns, matchScopePattern, matchTrigger, matchWorkflowTriggers, matchWorkflowsForEvent, matcherMatches, matcherSatisfiedBy, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixCombinationCount, matrixEnvelopeFields, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, mergeAutoLabels, mergeOrderedMaps, minAccessLogWarmDays, minAuditLogWarmDays, minSecretAuditLogWarmDays, nackSchema, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeInfraAlertSeverity, normalizeMatrixInput, normalizePersistedHoldType, normalizeRunsOn, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, orchLogChunkSchema, orchMetricsSchema, orchestratorToAgentMessageSchema, orchestratorToPlatformMessageSchema, orgMemberSchema, parseActor, parseHostLabel, parseHostPropertyAssignments, parseInputPairs, parseMemoryString, partitionMatchers, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerDiscoverSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerToPeerMessageSchema, peerUpdateSchema, persistedHoldTypeSpellings, planRank, platformCapabilitiesMessageSchema, platformCapabilitiesSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, platformToOsArchLabels, platformToTaints, prepareEventBuckets, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, rejectRunToolSchema, renderFenced, rerunRunToolSchema, resolveContentFormat, resolveHeldRunId, resolveRoleLabels, resolveRunIdSugar, resolveScheduleInputs, resolveSecretsForContext, resolveSecretsWithProvenance, resolveWhenToRunOn, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, scalerAgentLabels, scalerLabel, scalerPlatformSchema, scheduleTriggerKey, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplayRunSchema, stateReplaySchema, statusOptionsForLevel, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, textMatchHasQuery, toCanonicalStatus, triggerRunToolSchema, trustPolicyResponseSchema, trustPolicySchema, trustPolicyUpdateSchema, trustedContributorHoldReason, unknownContributorHoldReason, untrusted, upstreamSnapshotSchema, userActorSchema, validateNoReservedLabels, validateResourceRequest, validateScopeName, validateSecretKey, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema, workerClusterSettingsSchema, worstStatus, wrapUntrusted };
@@ -1,11 +1,6 @@
1
1
  import type { LabelMatcher } from '../labels-match.js';
2
- /**
3
- * Reject a ReDoS-prone regex. `safe-regex` is a star-height heuristic — the
4
- * orchestrator is single-tenant, so a slipped-through pattern only stalls the
5
- * author's own orchestrator. Globs are linear by construction but pass through
6
- * here for uniformity.
7
- */
8
- export declare function assertSafeRegex(source: string, flags: string, ctx: string): void;
2
+ import { assertSafeRegex } from '../safe-regex.js';
3
+ export { assertSafeRegex };
9
4
  /**
10
5
  * Convert one author selector element into a `LabelMatcher`.
11
6
  * - `RegExp` → regex matcher (source + flags captured verbatim).
@@ -1,17 +1,8 @@
1
1
  import "../rolldown-runtime-ClRpJifh.js";
2
+ import { assertSafeRegex } from "../safe-regex.js";
2
3
  import picomatch from "picomatch";
3
- import safeRegex from "safe-regex";
4
4
  //#region src/labels/compile.ts
5
5
  /**
6
- * Reject a ReDoS-prone regex. `safe-regex` is a star-height heuristic — the
7
- * orchestrator is single-tenant, so a slipped-through pattern only stalls the
8
- * author's own orchestrator. Globs are linear by construction but pass through
9
- * here for uniformity.
10
- */
11
- function assertSafeRegex(source, flags, ctx) {
12
- if (!safeRegex(new RegExp(source, flags))) throw new Error(`${ctx}: regex /${source}/${flags} is ReDoS-prone — rejected`);
13
- }
14
- /**
15
6
  * Convert one author selector element into a `LabelMatcher`.
16
7
  * - `RegExp` → regex matcher (source + flags captured verbatim).
17
8
  * - string that picomatch detects as a glob → regex via `picomatch.makeRe`.
package/dist/labels.d.ts CHANGED
@@ -194,6 +194,14 @@ export declare const ROLE_LABEL_PREFIX = "kici:role:";
194
194
  * Convert a role name to its corresponding label.
195
195
  */
196
196
  export declare function roleToLabel(role: AgentRole): string;
197
+ /**
198
+ * The label every pre-run evaluation job routes to.
199
+ *
200
+ * Exported because three dispatch sites and the global eval round all target
201
+ * it, and each had spelled the string out. Derived from {@link roleToLabel} so
202
+ * it cannot drift from the prefix or from `KNOWN_ROLES`.
203
+ */
204
+ export declare const INIT_RUNNER_ROLE_LABEL: string;
197
205
  /**
198
206
  * Resolve a roles configuration into role labels.
199
207
  *
package/dist/labels.js CHANGED
@@ -274,6 +274,14 @@ function roleToLabel(role) {
274
274
  return `${ROLE_LABEL_PREFIX}${role}`;
275
275
  }
276
276
  /**
277
+ * The label every pre-run evaluation job routes to.
278
+ *
279
+ * Exported because three dispatch sites and the global eval round all target
280
+ * it, and each had spelled the string out. Derived from {@link roleToLabel} so
281
+ * it cannot drift from the prefix or from `KNOWN_ROLES`.
282
+ */
283
+ const INIT_RUNNER_ROLE_LABEL = roleToLabel("init-runner");
284
+ /**
277
285
  * Resolve a roles configuration into role labels.
278
286
  *
279
287
  * - undefined → all roles (backward compat: existing agents get all capabilities)
@@ -352,6 +360,6 @@ function separateLabels(labels) {
352
360
  };
353
361
  }
354
362
  //#endregion
355
- export { CAPABILITY_LABEL_PREFIX, HOST_LABEL_PREFIX, INIT_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, RESERVED_LABEL_PREFIX, ROLE_LABEL_PREFIX, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, ScalerArch, ScalerOs, agentTypeLabel, capabilityLabel, deriveOsArchLabels, derivePlatformTaints, hostLabel, hostToScalerPlatform, isAutoLabel, isSelfReportedLabel, mergeAutoLabels, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeRunsOn, parseHostLabel, platformToOsArchLabels, platformToTaints, resolveRoleLabels, roleToLabel, scalerAgentLabels, scalerLabel, scalerPlatformSchema, separateLabels, validateNoReservedLabels };
363
+ export { CAPABILITY_LABEL_PREFIX, HOST_LABEL_PREFIX, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, RESERVED_LABEL_PREFIX, ROLE_LABEL_PREFIX, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, ScalerArch, ScalerOs, agentTypeLabel, capabilityLabel, deriveOsArchLabels, derivePlatformTaints, hostLabel, hostToScalerPlatform, isAutoLabel, isSelfReportedLabel, mergeAutoLabels, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeRunsOn, parseHostLabel, platformToOsArchLabels, platformToTaints, resolveRoleLabels, roleToLabel, scalerAgentLabels, scalerLabel, scalerPlatformSchema, separateLabels, validateNoReservedLabels };
356
364
 
357
365
  //# sourceMappingURL=labels.js.map
@@ -59,6 +59,17 @@ export declare const ORCH_PUSHED_METRIC_NAMES: ReadonlySet<MetricName>;
59
59
  * `AGENT_SCALER_VALUES`. Exported so the policy tests can assert against it.
60
60
  */
61
61
  export declare const ORCH_SCALER_VALUES: readonly ["__global__", "stateful", "container", "firecracker", "bare-metal"];
62
+ /**
63
+ * Closed enum of the scheduled jobs the orchestrator runs. MUST mirror
64
+ * `OrchestratorScheduledJobName` (`packages/orchestrator/src/queue/scheduled-job.ts`)
65
+ * exactly — a job missing here has its whole `kici_orch_job_*` series
66
+ * dropped by the Platform filter with `reason="bad_label_value"`, so the
67
+ * job silently loses every health metric. The engine cannot import the
68
+ * orchestrator (dependency runs the other way), so the parity assertion
69
+ * lives on the orchestrator side in `scheduled-job.test.ts`. Exported so
70
+ * that test can assert against it.
71
+ */
72
+ export declare const ORCH_JOB_VALUES: readonly ['cleanup', 'orphan-secret-cleanup', 'token-cleanup', 'cold-store-archive', 'cold-store-purge', 'unroutable-probe'];
62
73
  /**
63
74
  * Per-metric, per-label value policy. Missing entries (or missing label
64
75
  * keys within an entry) mean "no value-level constraint" — the label key
@@ -55,13 +55,23 @@ const AGENT_SCALER_VALUES = [
55
55
  * `AGENT_SCALER_VALUES`. Exported so the policy tests can assert against it.
56
56
  */
57
57
  const ORCH_SCALER_VALUES = ["__global__", ...AGENT_SCALER_VALUES];
58
- /** Closed enum of the five scheduled jobs the orchestrator runs (mirrors `OrchestratorScheduledJobName`). */
58
+ /**
59
+ * Closed enum of the scheduled jobs the orchestrator runs. MUST mirror
60
+ * `OrchestratorScheduledJobName` (`packages/orchestrator/src/queue/scheduled-job.ts`)
61
+ * exactly — a job missing here has its whole `kici_orch_job_*` series
62
+ * dropped by the Platform filter with `reason="bad_label_value"`, so the
63
+ * job silently loses every health metric. The engine cannot import the
64
+ * orchestrator (dependency runs the other way), so the parity assertion
65
+ * lives on the orchestrator side in `scheduled-job.test.ts`. Exported so
66
+ * that test can assert against it.
67
+ */
59
68
  const ORCH_JOB_VALUES = [
60
69
  "cleanup",
61
70
  "orphan-secret-cleanup",
62
71
  "token-cleanup",
63
72
  "cold-store-archive",
64
- "cold-store-purge"
73
+ "cold-store-purge",
74
+ "unroutable-probe"
65
75
  ];
66
76
  /**
67
77
  * Per-metric, per-label value policy. Missing entries (or missing label
@@ -277,6 +287,6 @@ const METRIC_LABEL_POLICY = {
277
287
  }
278
288
  };
279
289
  //#endregion
280
- export { METRIC_LABEL_POLICY, ORCH_PUSHED_METRIC_NAMES, ORCH_SCALER_VALUES, OVERFLOW_LABEL_VALUE };
290
+ export { METRIC_LABEL_POLICY, ORCH_JOB_VALUES, ORCH_PUSHED_METRIC_NAMES, ORCH_SCALER_VALUES, OVERFLOW_LABEL_VALUE };
281
291
 
282
292
  //# sourceMappingURL=catalog-policy.js.map
@@ -44,6 +44,11 @@ export declare const MetricNames: {
44
44
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'kici_orch_execution_duration_seconds';
45
45
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'kici_orch_executions_total';
46
46
  readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'kici_orch_github_check_run_total';
47
+ readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'kici_orch_global_eval_cache_lookups_total';
48
+ readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'kici_orch_global_eval_candidates_total';
49
+ readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'kici_orch_global_eval_jobs_generated';
50
+ readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'kici_orch_global_eval_round_duration_seconds';
51
+ readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'kici_orch_global_eval_verdicts_total';
47
52
  readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'kici_orch_ingest_admitted_total';
48
53
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'kici_orch_ingest_event_loop_delay_max_ms';
49
54
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'kici_orch_ingest_event_loop_delay_p99_ms';
@@ -94,6 +99,7 @@ export declare const MetricNames: {
94
99
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'kici_orch_trust_match_refused_no_id_total';
95
100
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'kici_orch_trust_policy_decisions_total';
96
101
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'kici_orch_unroutable_fast_failed_total';
102
+ readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'kici_orch_webhook_pipeline_failures_total';
97
103
  readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'kici_orch_webhooks_processed_total';
98
104
  readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'kici_orch_webhooks_received_total';
99
105
  readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'kici_orch_ws_nack_received_total';
@@ -246,6 +252,11 @@ export declare const MetricLabels: {
246
252
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: readonly [];
247
253
  readonly KICI_ORCH_EXECUTIONS_TOTAL: readonly ['status'];
248
254
  readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: readonly ['operation'];
255
+ readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: readonly ['result'];
256
+ readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: readonly [];
257
+ readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: readonly [];
258
+ readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: readonly ['result'];
259
+ readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: readonly ['outcome'];
249
260
  readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: readonly [];
250
261
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: readonly [];
251
262
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: readonly [];
@@ -296,6 +307,7 @@ export declare const MetricLabels: {
296
307
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: readonly ['reason'];
297
308
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: readonly ['arm', 'action'];
298
309
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: readonly [];
310
+ readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: readonly ['phase'];
299
311
  readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: readonly ['result'];
300
312
  readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: readonly ['source', 'event'];
301
313
  readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: readonly [];
@@ -447,6 +459,11 @@ export declare const MetricKind: {
447
459
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'histogram';
448
460
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'counter';
449
461
  readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'counter';
462
+ readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'counter';
463
+ readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'counter';
464
+ readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'histogram';
465
+ readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'histogram';
466
+ readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'counter';
450
467
  readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'counter';
451
468
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'observableGauge';
452
469
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'observableGauge';
@@ -497,6 +514,7 @@ export declare const MetricKind: {
497
514
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'counter';
498
515
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'counter';
499
516
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'counter';
517
+ readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'counter';
500
518
  readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'counter';
501
519
  readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'counter';
502
520
  readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'counter';
@@ -648,6 +666,11 @@ export declare const MetricDescription: {
648
666
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'Duration of execution runs in seconds';
649
667
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'Total number of execution runs';
650
668
  readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'Total number of GitHub check run API calls';
669
+ readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'Tier-2 global eval round cache lookups by outcome';
670
+ readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'Global workflow candidates handed to a Tier-2 eval round';
671
+ readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'Jobs generated by a Tier-2 global eval round';
672
+ readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'Duration of one dispatched Tier-2 global eval round in seconds';
673
+ readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'Per-candidate verdicts produced by a Tier-2 global eval round';
651
674
  readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'Total webhook ingest admissions granted by the admission controller';
652
675
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'Event-loop delay max (ms) observed by the ingest admission sampler';
653
676
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'Event-loop delay p99 (ms) observed by the ingest admission sampler';
@@ -698,6 +721,7 @@ export declare const MetricDescription: {
698
721
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'Trust-resolution attempts refused because the provider numeric id was missing or did not match';
699
722
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'Total org trust-policy gate decisions by arm and action';
700
723
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'Jobs terminalized as unroutable by the fast-fail probe (not the queue timeout)';
724
+ readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'Webhook match-and-dispatch pipelines that threw. Labels: phase (post_ack — failed after the delivery was acknowledged)';
701
725
  readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'Total number of webhooks processed';
702
726
  readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'Total number of webhooks received';
703
727
  readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'NACKs received from the Platform for a message it could not process (version skew)';
@@ -856,6 +880,11 @@ export declare const MetricService: {
856
880
  readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'orchestrator';
857
881
  readonly KICI_ORCH_EXECUTIONS_TOTAL: 'orchestrator';
858
882
  readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'orchestrator';
883
+ readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'orchestrator';
884
+ readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'orchestrator';
885
+ readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'orchestrator';
886
+ readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'orchestrator';
887
+ readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'orchestrator';
859
888
  readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'orchestrator';
860
889
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'orchestrator';
861
890
  readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'orchestrator';
@@ -906,6 +935,7 @@ export declare const MetricService: {
906
935
  readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'orchestrator';
907
936
  readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'orchestrator';
908
937
  readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'orchestrator';
938
+ readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'orchestrator';
909
939
  readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'orchestrator';
910
940
  readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'orchestrator';
911
941
  readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'orchestrator';
@@ -46,6 +46,11 @@ const MetricNames = {
46
46
  KICI_ORCH_EXECUTION_DURATION_SECONDS: "kici_orch_execution_duration_seconds",
47
47
  KICI_ORCH_EXECUTIONS_TOTAL: "kici_orch_executions_total",
48
48
  KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "kici_orch_github_check_run_total",
49
+ KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: "kici_orch_global_eval_cache_lookups_total",
50
+ KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: "kici_orch_global_eval_candidates_total",
51
+ KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: "kici_orch_global_eval_jobs_generated",
52
+ KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: "kici_orch_global_eval_round_duration_seconds",
53
+ KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: "kici_orch_global_eval_verdicts_total",
49
54
  KICI_ORCH_INGEST_ADMITTED_TOTAL: "kici_orch_ingest_admitted_total",
50
55
  KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: "kici_orch_ingest_event_loop_delay_max_ms",
51
56
  KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: "kici_orch_ingest_event_loop_delay_p99_ms",
@@ -96,6 +101,7 @@ const MetricNames = {
96
101
  KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: "kici_orch_trust_match_refused_no_id_total",
97
102
  KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: "kici_orch_trust_policy_decisions_total",
98
103
  KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: "kici_orch_unroutable_fast_failed_total",
104
+ KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: "kici_orch_webhook_pipeline_failures_total",
99
105
  KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: "kici_orch_webhooks_processed_total",
100
106
  KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: "kici_orch_webhooks_received_total",
101
107
  KICI_ORCH_WS_NACK_RECEIVED_TOTAL: "kici_orch_ws_nack_received_total",
@@ -247,6 +253,11 @@ const MetricLabels = {
247
253
  KICI_ORCH_EXECUTION_DURATION_SECONDS: [],
248
254
  KICI_ORCH_EXECUTIONS_TOTAL: ["status"],
249
255
  KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: ["operation"],
256
+ KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: ["result"],
257
+ KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: [],
258
+ KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: [],
259
+ KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: ["result"],
260
+ KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: ["outcome"],
250
261
  KICI_ORCH_INGEST_ADMITTED_TOTAL: [],
251
262
  KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: [],
252
263
  KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: [],
@@ -309,6 +320,7 @@ const MetricLabels = {
309
320
  KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: ["reason"],
310
321
  KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: ["arm", "action"],
311
322
  KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: [],
323
+ KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: ["phase"],
312
324
  KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: ["result"],
313
325
  KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: ["source", "event"],
314
326
  KICI_ORCH_WS_NACK_RECEIVED_TOTAL: [],
@@ -464,6 +476,11 @@ const MetricKind = {
464
476
  KICI_ORCH_EXECUTION_DURATION_SECONDS: "histogram",
465
477
  KICI_ORCH_EXECUTIONS_TOTAL: "counter",
466
478
  KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "counter",
479
+ KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: "counter",
480
+ KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: "counter",
481
+ KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: "histogram",
482
+ KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: "histogram",
483
+ KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: "counter",
467
484
  KICI_ORCH_INGEST_ADMITTED_TOTAL: "counter",
468
485
  KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: "observableGauge",
469
486
  KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: "observableGauge",
@@ -514,6 +531,7 @@ const MetricKind = {
514
531
  KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: "counter",
515
532
  KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: "counter",
516
533
  KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: "counter",
534
+ KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: "counter",
517
535
  KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: "counter",
518
536
  KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: "counter",
519
537
  KICI_ORCH_WS_NACK_RECEIVED_TOTAL: "counter",
@@ -665,6 +683,11 @@ const MetricDescription = {
665
683
  KICI_ORCH_EXECUTION_DURATION_SECONDS: "Duration of execution runs in seconds",
666
684
  KICI_ORCH_EXECUTIONS_TOTAL: "Total number of execution runs",
667
685
  KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "Total number of GitHub check run API calls",
686
+ KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: "Tier-2 global eval round cache lookups by outcome",
687
+ KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: "Global workflow candidates handed to a Tier-2 eval round",
688
+ KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: "Jobs generated by a Tier-2 global eval round",
689
+ KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: "Duration of one dispatched Tier-2 global eval round in seconds",
690
+ KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: "Per-candidate verdicts produced by a Tier-2 global eval round",
668
691
  KICI_ORCH_INGEST_ADMITTED_TOTAL: "Total webhook ingest admissions granted by the admission controller",
669
692
  KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: "Event-loop delay max (ms) observed by the ingest admission sampler",
670
693
  KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: "Event-loop delay p99 (ms) observed by the ingest admission sampler",
@@ -715,6 +738,7 @@ const MetricDescription = {
715
738
  KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: "Trust-resolution attempts refused because the provider numeric id was missing or did not match",
716
739
  KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: "Total org trust-policy gate decisions by arm and action",
717
740
  KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: "Jobs terminalized as unroutable by the fast-fail probe (not the queue timeout)",
741
+ KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: "Webhook match-and-dispatch pipelines that threw. Labels: phase (post_ack — failed after the delivery was acknowledged)",
718
742
  KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: "Total number of webhooks processed",
719
743
  KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: "Total number of webhooks received",
720
744
  KICI_ORCH_WS_NACK_RECEIVED_TOTAL: "NACKs received from the Platform for a message it could not process (version skew)",
@@ -873,6 +897,11 @@ const MetricService = {
873
897
  KICI_ORCH_EXECUTION_DURATION_SECONDS: "orchestrator",
874
898
  KICI_ORCH_EXECUTIONS_TOTAL: "orchestrator",
875
899
  KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "orchestrator",
900
+ KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: "orchestrator",
901
+ KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: "orchestrator",
902
+ KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: "orchestrator",
903
+ KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: "orchestrator",
904
+ KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: "orchestrator",
876
905
  KICI_ORCH_INGEST_ADMITTED_TOTAL: "orchestrator",
877
906
  KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: "orchestrator",
878
907
  KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: "orchestrator",
@@ -923,6 +952,7 @@ const MetricService = {
923
952
  KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: "orchestrator",
924
953
  KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: "orchestrator",
925
954
  KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: "orchestrator",
955
+ KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: "orchestrator",
926
956
  KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: "orchestrator",
927
957
  KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: "orchestrator",
928
958
  KICI_ORCH_WS_NACK_RECEIVED_TOTAL: "orchestrator",
@@ -1075,6 +1105,11 @@ const ALL_METRIC_NAMES = [
1075
1105
  "kici_orch_execution_duration_seconds",
1076
1106
  "kici_orch_executions_total",
1077
1107
  "kici_orch_github_check_run_total",
1108
+ "kici_orch_global_eval_cache_lookups_total",
1109
+ "kici_orch_global_eval_candidates_total",
1110
+ "kici_orch_global_eval_jobs_generated",
1111
+ "kici_orch_global_eval_round_duration_seconds",
1112
+ "kici_orch_global_eval_verdicts_total",
1078
1113
  "kici_orch_ingest_admitted_total",
1079
1114
  "kici_orch_ingest_event_loop_delay_max_ms",
1080
1115
  "kici_orch_ingest_event_loop_delay_p99_ms",
@@ -1125,6 +1160,7 @@ const ALL_METRIC_NAMES = [
1125
1160
  "kici_orch_trust_match_refused_no_id_total",
1126
1161
  "kici_orch_trust_policy_decisions_total",
1127
1162
  "kici_orch_unroutable_fast_failed_total",
1163
+ "kici_orch_webhook_pipeline_failures_total",
1128
1164
  "kici_orch_webhooks_processed_total",
1129
1165
  "kici_orch_webhooks_received_total",
1130
1166
  "kici_orch_ws_nack_received_total",
@@ -17,7 +17,8 @@
17
17
  * Three independent policy axes (see GlobalWorkflowPolicy in the orchestrator):
18
18
  * - `allowedRepos` restricts which repos may AUTHOR global workflows.
19
19
  * - `deniedRepos` blocks global dispatches for events FROM these SOURCE repos.
20
- * - `elevatedRepos` lists workflow-author repos with access to source secrets.
20
+ * - `elevatedRepos` is DEPRECATED and not enforced see the field comments
21
+ * below and `docs/user/deprecations.md`.
21
22
  */
22
23
  import { z } from 'zod';
23
24
  /**
@@ -85,6 +86,11 @@ export declare const globalWorkflowsGetRequestSchema: z.ZodObject<{
85
86
  *
86
87
  * Every field is optional. `null` clears the corresponding list column
87
88
  * (e.g., `allowedRepos: null` means "all repos pass the allow-list").
89
+ *
90
+ * The master enable switch is NOT here: it is fleet-wide
91
+ * (`cluster_settings.global_workflows_enabled`, set with `kici-admin
92
+ * cluster-settings`), not per-org. `.strict()` so a client that still sends
93
+ * `enabled` gets a validation failure instead of a silently dropped field.
88
94
  */
89
95
  export declare const globalWorkflowsUpdateRequestSchema: z.ZodObject<{
90
96
  type: z.ZodLiteral<"dashboard.global-workflows.update">;
@@ -115,7 +121,6 @@ export declare const globalWorkflowsUpdateRequestSchema: z.ZodObject<{
115
121
  type: z.ZodLiteral<"system">;
116
122
  component: z.ZodString;
117
123
  }, z.core.$strip>], "type">;
118
- enabled: z.ZodOptional<z.ZodBoolean>;
119
124
  allowedRepos: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
120
125
  routingKey: z.ZodOptional<z.ZodString>;
121
126
  pattern: z.ZodString;
@@ -128,7 +133,7 @@ export declare const globalWorkflowsUpdateRequestSchema: z.ZodObject<{
128
133
  routingKey: z.ZodOptional<z.ZodString>;
129
134
  pattern: z.ZodString;
130
135
  }, z.core.$strip>>>>;
131
- }, z.core.$strip>;
136
+ }, z.core.$strict>;
132
137
  export declare const globalWorkflowsGetResponseSchema: z.ZodObject<{
133
138
  type: z.ZodLiteral<"dashboard.global-workflows.get.response">;
134
139
  requestId: z.ZodString;
@@ -21,7 +21,8 @@ import { z } from "zod";
21
21
  * Three independent policy axes (see GlobalWorkflowPolicy in the orchestrator):
22
22
  * - `allowedRepos` restricts which repos may AUTHOR global workflows.
23
23
  * - `deniedRepos` blocks global dispatches for events FROM these SOURCE repos.
24
- * - `elevatedRepos` lists workflow-author repos with access to source secrets.
24
+ * - `elevatedRepos` is DEPRECATED and not enforced see the field comments
25
+ * below and `docs/user/deprecations.md`.
25
26
  */
26
27
  /**
27
28
  * One entry in any of the three repo-pattern lists. `routingKey` is the
@@ -34,9 +35,20 @@ const repoPatternEntrySchema = z.object({
34
35
  /** Projected org-level global workflow settings. */
35
36
  const globalWorkflowSettingsSchema = z.object({
36
37
  customerId: z.string(),
38
+ /**
39
+ * The effective fleet-wide master switch
40
+ * (`cluster_settings.global_workflows_enabled`, set with `kici-admin
41
+ * cluster-settings`). Read-only here — the dashboard renders it as a status
42
+ * badge; it is not a per-org value and cannot be flipped from the dashboard.
43
+ */
37
44
  enabled: z.boolean(),
38
45
  allowedRepos: z.array(repoPatternEntrySchema).nullable(),
39
46
  deniedRepos: z.array(repoPatternEntrySchema).nullable(),
47
+ /**
48
+ * @deprecated Stored and echoed back, but never enforced: an organization-wide
49
+ * workflow's job is dispatched with no secret material at all, so there is no
50
+ * secret access for this list to widen. Removal at v1.0.0.
51
+ */
40
52
  elevatedRepos: z.array(repoPatternEntrySchema).nullable(),
41
53
  createdAt: z.string().nullable(),
42
54
  updatedAt: z.string().nullable()
@@ -52,16 +64,21 @@ const globalWorkflowsGetRequestSchema = z.object({
52
64
  *
53
65
  * Every field is optional. `null` clears the corresponding list column
54
66
  * (e.g., `allowedRepos: null` means "all repos pass the allow-list").
67
+ *
68
+ * The master enable switch is NOT here: it is fleet-wide
69
+ * (`cluster_settings.global_workflows_enabled`, set with `kici-admin
70
+ * cluster-settings`), not per-org. `.strict()` so a client that still sends
71
+ * `enabled` gets a validation failure instead of a silently dropped field.
55
72
  */
56
73
  const globalWorkflowsUpdateRequestSchema = z.object({
57
74
  type: z.literal("dashboard.global-workflows.update"),
58
75
  requestId: z.string(),
59
76
  actor: actorPrincipalSchema,
60
- enabled: z.boolean().optional(),
61
77
  allowedRepos: z.array(repoPatternEntrySchema).nullable().optional(),
62
78
  deniedRepos: z.array(repoPatternEntrySchema).nullable().optional(),
79
+ /** @deprecated Accepted and stored, but never enforced. Removal at v1.0.0. */
63
80
  elevatedRepos: z.array(repoPatternEntrySchema).nullable().optional()
64
- });
81
+ }).strict();
65
82
  const globalWorkflowsGetResponseSchema = z.object({
66
83
  type: z.literal("dashboard.global-workflows.get.response"),
67
84
  requestId: z.string(),