@kici-dev/engine 0.13.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audit/access-log-policy.js +6 -0
- package/dist/audit/retention-policy.js +6 -0
- package/dist/index.js +2 -2
- package/dist/metrics/catalog-policy.js +10 -0
- package/dist/metrics/metric-catalog.generated.d.ts +5 -0
- package/dist/metrics/metric-catalog.generated.js +6 -0
- package/dist/protocol/messages/access-log.d.ts +15 -0
- package/dist/protocol/messages/access-log.js +3 -0
- package/dist/protocol/messages/dashboard.d.ts +6 -0
- package/dist/protocol/messages/peer.d.ts +335 -5
- package/dist/protocol/messages/peer.js +155 -9
- package/dist/protocol/messages/platform-orchestrator.d.ts +3 -0
- package/package.json +1 -1
- package/sbom.spdx.json +5 -5
|
@@ -120,6 +120,10 @@ const POLICY_BY_ACTION = {
|
|
|
120
120
|
kind: "rate_limit",
|
|
121
121
|
perMinutePerActor: 1
|
|
122
122
|
},
|
|
123
|
+
"scaler.orphans.read": {
|
|
124
|
+
kind: "rate_limit",
|
|
125
|
+
perMinutePerActor: 1
|
|
126
|
+
},
|
|
123
127
|
"fleet.read": {
|
|
124
128
|
kind: "rate_limit",
|
|
125
129
|
perMinutePerActor: 1
|
|
@@ -169,6 +173,8 @@ const POLICY_BY_ACTION = {
|
|
|
169
173
|
"trust_directory.updated": { kind: "always" },
|
|
170
174
|
"cluster_name.update": { kind: "always" },
|
|
171
175
|
"attestation.retry": { kind: "always" },
|
|
176
|
+
"scaler.orphan.stop": { kind: "always" },
|
|
177
|
+
"peer.forget": { kind: "always" },
|
|
172
178
|
"db.fresh": { kind: "always" },
|
|
173
179
|
"db.ensure": { kind: "always" },
|
|
174
180
|
"db.create_role": { kind: "always" },
|
|
@@ -34,6 +34,7 @@ const ACCESS_LOG_WARM_DAYS = {
|
|
|
34
34
|
"diagnostics.read": 30,
|
|
35
35
|
"scaler.capacity.read": 30,
|
|
36
36
|
"scaler.agents.read": 30,
|
|
37
|
+
"scaler.orphans.read": 30,
|
|
37
38
|
"fleet.read": 30,
|
|
38
39
|
"event_log.detail.read": 180,
|
|
39
40
|
"event_log.payload.read": 180,
|
|
@@ -76,6 +77,8 @@ const ACCESS_LOG_WARM_DAYS = {
|
|
|
76
77
|
"trust_directory.updated": 180,
|
|
77
78
|
"cluster_name.update": 180,
|
|
78
79
|
"attestation.retry": 180,
|
|
80
|
+
"scaler.orphan.stop": 180,
|
|
81
|
+
"peer.forget": 180,
|
|
79
82
|
"db.fresh": 180,
|
|
80
83
|
"db.ensure": 180,
|
|
81
84
|
"db.create_role": 180,
|
|
@@ -290,6 +293,7 @@ const ACCESS_LOG_COLD_DAYS = {
|
|
|
290
293
|
"diagnostics.read": 30,
|
|
291
294
|
"scaler.capacity.read": 30,
|
|
292
295
|
"scaler.agents.read": 30,
|
|
296
|
+
"scaler.orphans.read": 30,
|
|
293
297
|
"fleet.read": 30,
|
|
294
298
|
"event_log.detail.read": 730,
|
|
295
299
|
"event_log.payload.read": 730,
|
|
@@ -332,6 +336,8 @@ const ACCESS_LOG_COLD_DAYS = {
|
|
|
332
336
|
"trust_directory.updated": 730,
|
|
333
337
|
"cluster_name.update": 730,
|
|
334
338
|
"attestation.retry": 730,
|
|
339
|
+
"scaler.orphan.stop": 730,
|
|
340
|
+
"peer.forget": 730,
|
|
335
341
|
"db.fresh": 730,
|
|
336
342
|
"db.ensure": 730,
|
|
337
343
|
"db.create_role": 730,
|
package/dist/index.js
CHANGED
|
@@ -49,7 +49,7 @@ import { logPullOrchToPlatformSchema, logPullPlatformToOrchSchema } from "./prot
|
|
|
49
49
|
import { EVENT_LOG_PAYLOAD_CHUNK_BYTES } from "./protocol/event-log-payload.js";
|
|
50
50
|
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";
|
|
51
51
|
import { joinRequestSchema, joinResponseSchema } from "./protocol/messages/join.js";
|
|
52
|
-
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";
|
|
52
|
+
import { PeerForgetOutcome, ScalerOrphansAction, ScalerVmStatus, ScalerVmStopOutcome, ScalerVmTracker, fleetSelectionSchema, jobProgressAckSchema, jobProgressSchema, jobRerouteAckSchema, jobRerouteSchema, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerForgetRequestSchema, peerForgetResponseSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerScalerOrphansRequestSchema, peerScalerOrphansResponseSchema, peerToPeerMessageSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, rerouteSpawnRetrySchema, scalerLiveVmSchema, scalerVmStopResultSchema, workerClusterSettingsSchema } from "./protocol/messages/peer.js";
|
|
53
53
|
import { AGENT_API_REQUEST_TIMEOUT_MS, 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, invokeResultSchema, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobDispatchSchema, jobRejectSchema, jobStatusSchema, orchestratorToAgentMessageSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, rateLimitWarningSchema, registerAckSchema, scalerClaimCredentialsResponseSchema, scalerClaimCredentialsSchema, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, upstreamSnapshotSchema } from "./protocol/messages/orchestrator-agent.js";
|
|
54
54
|
import { KNOWN_LINUX_CAPABILITIES, canonicalizeCapability, isKnownCapability } from "./sandbox/capabilities.js";
|
|
55
55
|
import { compileSafeRegex, describeTextMatch, evaluateTextMatch, textMatchHasQuery } from "./trigger/text-match.js";
|
|
@@ -96,4 +96,4 @@ import { ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, ArtifactNameSch
|
|
|
96
96
|
import { PLAN_TYPES, PaidPlanType, PlanType, isPaidTier, planRank } from "./billing/plan-type.js";
|
|
97
97
|
import { SUBSCRIPTION_EXISTS_CODE, StripeSubscriptionStatus, blocksNewCheckout } from "./billing/subscription-status.js";
|
|
98
98
|
import { INFRA_ALERT_TYPES, InfraAlertSeverity, InfraAlertType, normalizeInfraAlertSeverity } from "./diagnostics/infra-alert.js";
|
|
99
|
-
export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, ACTOR_AGENT_SUFFIX, AGENT_API_REQUEST_TIMEOUT_MS, AGENT_CAPABILITIES, AGENT_FEATURE_LABELS, AGENT_FEATURE_LABEL_PREFIX, AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, AccessLogAction, AccessLogOutcome, AccessLogPolicyKind, AccessLogSource, AccessLogTargetType, ActivityFilterSource, ActivityRowSource, ActorType, AgentCapabilityFlag, AgentFailureCategory, AgentFeature, ApprovalDecision, ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactNameSchema, ArtifactRejectReason, ArtifactUploadOutcome, AttestationOrigin, BREAKING_FLOOR, CANONICAL_STATUSES, CAPABILITY_LABEL_PREFIX, CLUSTER_MEMBERSHIP_MAX_WORKERS, CONTAINER_BUILD_RUNTIME_LABEL, CONTEXTS_MAX, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, CiTrustLevel, ConcurrencyStrategy, ConfigPathsSchema, ContextDeleteErrorCode, ContextGateRejectReason, ContextType, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DEAD_ORCH_FAILURE_REASON, DEFAULT_APPROVAL_EXPIRY_HOURS, DEFAULT_APPROVAL_EXPIRY_SECONDS, DEFAULT_CONCURRENCY_STRATEGY, DEFAULT_HOLD_EXPIRY_SECONDS, DEFERRED_PATHS_SUMMARY_SUFFIX, DEVELOPER_OPERATIONS, DashboardResponseErrorCode, DeploymentContainerRuntimeSchema, DeploymentIdentitySchema, DeploymentModeSchema, DispatchInputError, DispatchInputType, EVENT_LOG_PAYLOAD_CHUNK_BYTES, EventLogPayloadStreamError, EventLogSource, EventLogStatus, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, FanoutCause, FanoutError, FleetHostDisposition, ForkPolicy, GLOBAL_APPROVAL_MIN_READER, GLOBAL_EVAL_SKIPS_RESULT_AWARE_LABEL, 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, ID_TOKEN_CLAIM_NAMES, INFRA_ALERT_TYPES, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, INSTALL_JOB_ID_PREFIX, INTERNAL_EVENT_NAME_PREFIX, InfraAlertSeverity, InfraAlertType, InitFailureCategory, InputDescriptor, InputsDescriptorMapSchema, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JOB_IMAGE_RUNTIME_LABEL, JobKind, JobRejectReason, KICI_AGENT_ENV_PREFIX, KICI_EVENT_NAME_PREFIX, KNOWN_LINUX_CAPABILITIES, KNOWN_ROLES, LEGACY_STATUS_ALIASES, LabelMatcher, LockFileParseError, LogStream, MAX_APPROVAL_EXPIRY_HOURS, MAX_APPROVAL_EXPIRY_SECONDS, MAX_FANOUT_JOBS, MAX_JOBS_PER_RUN, MAX_MATRIX_MATERIALIZATION, MIN_APPROVAL_EXPIRY_SECONDS, MIN_PROTOCOL_VERSION, MatrixShapeError, MinimumTrustSchema, 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, PULL_REQUEST_FAMILY_TRIGGER_EVENTS, PaidPlanType, PatKind, PayloadOmittedReason, PlanType, REDACTED_TRACE_FIELD, REGEX_NEGATIVE_ASSERTION, RELAY_INGRESS_MODES, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, RUNTIME_LABEL_PREFIX, RegisterableTriggerType, RunFailureClass, RunsOnPick, RuntimeFact, SANDBOX_DEFAULT_VARS, SANDBOX_NETWORK_MODES, SCALER_EVENT_NAMES, SCHEMA_VERSION, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, SECONDS_PER_HOUR, 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_EPOCH_MAX, STATUS_FAILURE_CLASS, STATUS_FREE_TEXT_MAX, STATUS_ID_MAX, STATUS_PRECEDENCE, SUBSCRIBABLE_WEBHOOK_EVENT_TYPES, SUBSCRIPTION_EXISTS_CODE, ScaleDownReason, ScalerArch, ScalerBackendType, ScalerEventType, ScalerOs, ScalerScaleDownPayload, ScalerScaleUpPayload, ScopeNameError, SecretKeyError, SetupStepType, SourceOrigin, SourceProvider, SourceSubtype, StatusFailureClass, StepApprovalOutcome, StepConcurrencyKind, StripeSubscriptionStatus, SubscribableWebhookEventType, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TERMINAL_STEP_STATES, TRACE_TEXT_MAX, TRACE_TRUNCATION_WORKFLOW_NAME, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TRIGGER_TYPE_TO_EVENT_TYPES, TRUSTED_ENV_SCRUB_EXACT, TestRelayType, TimeoutReason, TraceCheck, TraceVerdict, TriggerSource, TrustTierSchema, UNRESOLVED_CLAIM, UnavailablePathsTrace, 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_SUPERSEDED_BY_RECONNECT, WS_CLOSE_UNAUTHORIZED, WS_MAX_PAYLOAD_BYTES, WebhookEventType, WebhookRelayResult, WsRateLimiter, accessLogFilterSchema, accessLogItemSchema, accessLogWarmSqlCase, ackSchema, activityCursorSchema, activityFilterSchema, activityRowSchema, actorPrincipalSchema, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentCapabilitiesSchema, agentDiagnosticsConnectionSchema, agentDiagnosticsSchema, agentFeatureLabel, agentJobResultSchema, agentLabelOf, agentLogChunkSchema, agentMetricsSchema, agentOrchestratorSummarySchema, agentOrgSummarySchema, agentRegisterSchema, agentRunListItemSchema, agentRunResultSchema, agentSecretScopeSchema, agentStatusSchema, agentStepLogsSchema, agentStepResultSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, agentTypeLabel, agentWorkflowSummarySchema, apiKeyActorSchema, appendChecks, applyIncludeExclude, approvalExpiryHoursOf, approvalExpirySecondsOf, 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, blocksNewCheckout, 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, buildEventClaims, buildIdTokenSubject, buildTrustedPassthroughEnv, buildUnsupportedMessageNack, buildZodFromDescriptor, buildZodObjectFromMap, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, cancelRunToolSchema, cancelRunsByBranchToolSchema, canonicalizeCapability, canonicalizeLabel, canonicalizeLabelSet, canonicalizeLabels, canonicalizeMatcher, capabilityLabel, changedFilesStatusSchema, checkArtifactName, clusterMembershipSchema, 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, createDispatchFailureTraceEntry, createGlobalFilterTraceEntry, createTraceEntry, createTraceTruncationMarker, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, dashboardAdminTokenSummarySchema, dashboardAdminTokensListRequestSchema, dashboardAdminTokensListResponseSchema, 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, diffRangeKindSchema, 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, hasAgentCapability, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, heartbeatSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, hostEnvelopeFields, hostLabel, hostSatisfiesTarget, hostToScalerPlatform, identityLinkItemSchema, identityLinkListResponseSchema, initFailureSchema, installGateJobId, invokeResultSchema, isDeferrableRange, isFailureStatus, isInputSatisfiableFromDefaults, isKnownCapability, isLockDynamicJobFn, isLockParallelStep, isLockStaticJob, isMintedRef, isNegatedPattern, isPaidTier, isPullRequestFamilyTriggerEvent, isSecurityHoldJobId, isSelfReportedLabel, isSetupStepType, isTrustedEnvScrubbed, isZeroSha, 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, negatedPatternReason, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeInfraAlertSeverity, normalizeMatrixInput, normalizePersistedHoldType, normalizeRegexFlags, 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, planHeadroomSchema, planRank, platformCapabilitiesMessageSchema, platformCapabilitiesSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, platformToOsArchLabels, platformToTaints, prepareEventBuckets, provenanceContextSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, rateLimitWarningSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, rejectRunToolSchema, renderFenced, rerunRunToolSchema, reservedEventNamePrefix, resolveContentFormat, resolveDiffRange, resolveHeldRunId, resolveRoleLabels, resolveRunIdSugar, resolveScheduleInputs, resolveSecretsForContext, resolveSecretsWithProvenance, resolveWhenToRunOn, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, runtimeLabel, scalerAgentLabels, scalerClaimCredentialsResponseSchema, scalerClaimCredentialsSchema, scalerLabel, scalerPlatformSchema, scheduleTriggerKey, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplayRunSchema, stateReplaySchema, statusOptionsForLevel, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, stripStatefulRegexFlags, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, textMatchHasQuery, toCanonicalStatus, triggerRunToolSchema, truncateDecisionsToByteBudget, truncateTraceText, trustPolicyResponseSchema, trustPolicySchema, trustPolicyUpdateSchema, trustedContributorHoldReason, untrusted, upstreamSnapshotSchema, userActorSchema, utf8ByteLength, validateNoReservedLabels, validateResourceRequest, validateScopeName, validateSecretKey, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema, workerClusterSettingsSchema, worstStatus, wrapUntrusted };
|
|
99
|
+
export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, ACTOR_AGENT_SUFFIX, AGENT_API_REQUEST_TIMEOUT_MS, AGENT_CAPABILITIES, AGENT_FEATURE_LABELS, AGENT_FEATURE_LABEL_PREFIX, AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, AccessLogAction, AccessLogOutcome, AccessLogPolicyKind, AccessLogSource, AccessLogTargetType, ActivityFilterSource, ActivityRowSource, ActorType, AgentCapabilityFlag, AgentFailureCategory, AgentFeature, ApprovalDecision, ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactNameSchema, ArtifactRejectReason, ArtifactUploadOutcome, AttestationOrigin, BREAKING_FLOOR, CANONICAL_STATUSES, CAPABILITY_LABEL_PREFIX, CLUSTER_MEMBERSHIP_MAX_WORKERS, CONTAINER_BUILD_RUNTIME_LABEL, CONTEXTS_MAX, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, CiTrustLevel, ConcurrencyStrategy, ConfigPathsSchema, ContextDeleteErrorCode, ContextGateRejectReason, ContextType, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DEAD_ORCH_FAILURE_REASON, DEFAULT_APPROVAL_EXPIRY_HOURS, DEFAULT_APPROVAL_EXPIRY_SECONDS, DEFAULT_CONCURRENCY_STRATEGY, DEFAULT_HOLD_EXPIRY_SECONDS, DEFERRED_PATHS_SUMMARY_SUFFIX, DEVELOPER_OPERATIONS, DashboardResponseErrorCode, DeploymentContainerRuntimeSchema, DeploymentIdentitySchema, DeploymentModeSchema, DispatchInputError, DispatchInputType, EVENT_LOG_PAYLOAD_CHUNK_BYTES, EventLogPayloadStreamError, EventLogSource, EventLogStatus, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, FanoutCause, FanoutError, FleetHostDisposition, ForkPolicy, GLOBAL_APPROVAL_MIN_READER, GLOBAL_EVAL_SKIPS_RESULT_AWARE_LABEL, 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, ID_TOKEN_CLAIM_NAMES, INFRA_ALERT_TYPES, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, INSTALL_JOB_ID_PREFIX, INTERNAL_EVENT_NAME_PREFIX, InfraAlertSeverity, InfraAlertType, InitFailureCategory, InputDescriptor, InputsDescriptorMapSchema, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JOB_IMAGE_RUNTIME_LABEL, JobKind, JobRejectReason, KICI_AGENT_ENV_PREFIX, KICI_EVENT_NAME_PREFIX, KNOWN_LINUX_CAPABILITIES, KNOWN_ROLES, LEGACY_STATUS_ALIASES, LabelMatcher, LockFileParseError, LogStream, MAX_APPROVAL_EXPIRY_HOURS, MAX_APPROVAL_EXPIRY_SECONDS, MAX_FANOUT_JOBS, MAX_JOBS_PER_RUN, MAX_MATRIX_MATERIALIZATION, MIN_APPROVAL_EXPIRY_SECONDS, MIN_PROTOCOL_VERSION, MatrixShapeError, MinimumTrustSchema, 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, PULL_REQUEST_FAMILY_TRIGGER_EVENTS, PaidPlanType, PatKind, PayloadOmittedReason, PeerForgetOutcome, PlanType, REDACTED_TRACE_FIELD, REGEX_NEGATIVE_ASSERTION, RELAY_INGRESS_MODES, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, RUNTIME_LABEL_PREFIX, RegisterableTriggerType, RunFailureClass, RunsOnPick, RuntimeFact, SANDBOX_DEFAULT_VARS, SANDBOX_NETWORK_MODES, SCALER_EVENT_NAMES, SCHEMA_VERSION, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, SECONDS_PER_HOUR, 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_EPOCH_MAX, STATUS_FAILURE_CLASS, STATUS_FREE_TEXT_MAX, STATUS_ID_MAX, STATUS_PRECEDENCE, SUBSCRIBABLE_WEBHOOK_EVENT_TYPES, SUBSCRIPTION_EXISTS_CODE, ScaleDownReason, ScalerArch, ScalerBackendType, ScalerEventType, ScalerOrphansAction, ScalerOs, ScalerScaleDownPayload, ScalerScaleUpPayload, ScalerVmStatus, ScalerVmStopOutcome, ScalerVmTracker, ScopeNameError, SecretKeyError, SetupStepType, SourceOrigin, SourceProvider, SourceSubtype, StatusFailureClass, StepApprovalOutcome, StepConcurrencyKind, StripeSubscriptionStatus, SubscribableWebhookEventType, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TERMINAL_STEP_STATES, TRACE_TEXT_MAX, TRACE_TRUNCATION_WORKFLOW_NAME, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TRIGGER_TYPE_TO_EVENT_TYPES, TRUSTED_ENV_SCRUB_EXACT, TestRelayType, TimeoutReason, TraceCheck, TraceVerdict, TriggerSource, TrustTierSchema, UNRESOLVED_CLAIM, UnavailablePathsTrace, 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_SUPERSEDED_BY_RECONNECT, WS_CLOSE_UNAUTHORIZED, WS_MAX_PAYLOAD_BYTES, WebhookEventType, WebhookRelayResult, WsRateLimiter, accessLogFilterSchema, accessLogItemSchema, accessLogWarmSqlCase, ackSchema, activityCursorSchema, activityFilterSchema, activityRowSchema, actorPrincipalSchema, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentCapabilitiesSchema, agentDiagnosticsConnectionSchema, agentDiagnosticsSchema, agentFeatureLabel, agentJobResultSchema, agentLabelOf, agentLogChunkSchema, agentMetricsSchema, agentOrchestratorSummarySchema, agentOrgSummarySchema, agentRegisterSchema, agentRunListItemSchema, agentRunResultSchema, agentSecretScopeSchema, agentStatusSchema, agentStepLogsSchema, agentStepResultSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, agentTypeLabel, agentWorkflowSummarySchema, apiKeyActorSchema, appendChecks, applyIncludeExclude, approvalExpiryHoursOf, approvalExpirySecondsOf, 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, blocksNewCheckout, 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, buildEventClaims, buildIdTokenSubject, buildTrustedPassthroughEnv, buildUnsupportedMessageNack, buildZodFromDescriptor, buildZodObjectFromMap, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, cancelRunToolSchema, cancelRunsByBranchToolSchema, canonicalizeCapability, canonicalizeLabel, canonicalizeLabelSet, canonicalizeLabels, canonicalizeMatcher, capabilityLabel, changedFilesStatusSchema, checkArtifactName, clusterMembershipSchema, 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, createDispatchFailureTraceEntry, createGlobalFilterTraceEntry, createTraceEntry, createTraceTruncationMarker, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, dashboardAdminTokenSummarySchema, dashboardAdminTokensListRequestSchema, dashboardAdminTokensListResponseSchema, 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, diffRangeKindSchema, 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, hasAgentCapability, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, heartbeatSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, hostEnvelopeFields, hostLabel, hostSatisfiesTarget, hostToScalerPlatform, identityLinkItemSchema, identityLinkListResponseSchema, initFailureSchema, installGateJobId, invokeResultSchema, isDeferrableRange, isFailureStatus, isInputSatisfiableFromDefaults, isKnownCapability, isLockDynamicJobFn, isLockParallelStep, isLockStaticJob, isMintedRef, isNegatedPattern, isPaidTier, isPullRequestFamilyTriggerEvent, isSecurityHoldJobId, isSelfReportedLabel, isSetupStepType, isTrustedEnvScrubbed, isZeroSha, 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, negatedPatternReason, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeInfraAlertSeverity, normalizeMatrixInput, normalizePersistedHoldType, normalizeRegexFlags, normalizeRunsOn, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, orchLogChunkSchema, orchMetricsSchema, orchestratorToAgentMessageSchema, orchestratorToPlatformMessageSchema, orgMemberSchema, parseActor, parseHostLabel, parseHostPropertyAssignments, parseInputPairs, parseMemoryString, partitionMatchers, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerDiscoverSchema, peerForgetRequestSchema, peerForgetResponseSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerScalerOrphansRequestSchema, peerScalerOrphansResponseSchema, peerToPeerMessageSchema, peerUpdateSchema, persistedHoldTypeSpellings, planHeadroomSchema, planRank, platformCapabilitiesMessageSchema, platformCapabilitiesSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, platformToOsArchLabels, platformToTaints, prepareEventBuckets, provenanceContextSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, rateLimitWarningSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, rejectRunToolSchema, renderFenced, rerouteSpawnRetrySchema, rerunRunToolSchema, reservedEventNamePrefix, resolveContentFormat, resolveDiffRange, resolveHeldRunId, resolveRoleLabels, resolveRunIdSugar, resolveScheduleInputs, resolveSecretsForContext, resolveSecretsWithProvenance, resolveWhenToRunOn, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, runtimeLabel, scalerAgentLabels, scalerClaimCredentialsResponseSchema, scalerClaimCredentialsSchema, scalerLabel, scalerLiveVmSchema, scalerPlatformSchema, scalerVmStopResultSchema, scheduleTriggerKey, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplayRunSchema, stateReplaySchema, statusOptionsForLevel, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, stripStatefulRegexFlags, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, textMatchHasQuery, toCanonicalStatus, triggerRunToolSchema, truncateDecisionsToByteBudget, truncateTraceText, trustPolicyResponseSchema, trustPolicySchema, trustPolicyUpdateSchema, trustedContributorHoldReason, untrusted, upstreamSnapshotSchema, userActorSchema, utf8ByteLength, validateNoReservedLabels, validateResourceRequest, validateScopeName, validateSecretKey, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema, workerClusterSettingsSchema, worstStatus, wrapUntrusted };
|
|
@@ -212,6 +212,16 @@ const METRIC_LABEL_POLICY = {
|
|
|
212
212
|
event_name: { maxUniqueValues: 50 },
|
|
213
213
|
reason: { values: ["exhausted_retries"] }
|
|
214
214
|
},
|
|
215
|
+
kici_orch_event_unmatched_total: {
|
|
216
|
+
event_name: { maxUniqueValues: 50 },
|
|
217
|
+
reason: { values: [
|
|
218
|
+
"buffered",
|
|
219
|
+
"no-registration",
|
|
220
|
+
"no-target-repo",
|
|
221
|
+
"trust-blocked",
|
|
222
|
+
"no-trigger-match"
|
|
223
|
+
] }
|
|
224
|
+
},
|
|
215
225
|
kici_orch_event_attempts: {
|
|
216
226
|
event_name: { maxUniqueValues: 50 },
|
|
217
227
|
result: { values: ["success", "dlq"] }
|
|
@@ -52,6 +52,7 @@ export declare const MetricNames: {
|
|
|
52
52
|
readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'kici_orch_event_dlq_total';
|
|
53
53
|
readonly KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: 'kici_orch_event_lease_expirations_total';
|
|
54
54
|
readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'kici_orch_event_retry_total';
|
|
55
|
+
readonly KICI_ORCH_EVENT_UNMATCHED_TOTAL: 'kici_orch_event_unmatched_total';
|
|
55
56
|
readonly KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: 'kici_orch_excess_connections_closed_total';
|
|
56
57
|
readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'kici_orch_execution_duration_seconds';
|
|
57
58
|
readonly KICI_ORCH_EXECUTIONS_TOTAL: 'kici_orch_executions_total';
|
|
@@ -301,6 +302,7 @@ export declare const MetricLabels: {
|
|
|
301
302
|
readonly KICI_ORCH_EVENT_DLQ_TOTAL: readonly ['event_name', 'reason'];
|
|
302
303
|
readonly KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: readonly [];
|
|
303
304
|
readonly KICI_ORCH_EVENT_RETRY_TOTAL: readonly ['event_name'];
|
|
305
|
+
readonly KICI_ORCH_EVENT_UNMATCHED_TOTAL: readonly ['event_name', 'reason'];
|
|
304
306
|
readonly KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: readonly ['org_id'];
|
|
305
307
|
readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: readonly [];
|
|
306
308
|
readonly KICI_ORCH_EXECUTIONS_TOTAL: readonly ['status'];
|
|
@@ -549,6 +551,7 @@ export declare const MetricKind: {
|
|
|
549
551
|
readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'counter';
|
|
550
552
|
readonly KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: 'counter';
|
|
551
553
|
readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'counter';
|
|
554
|
+
readonly KICI_ORCH_EVENT_UNMATCHED_TOTAL: 'counter';
|
|
552
555
|
readonly KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: 'counter';
|
|
553
556
|
readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'histogram';
|
|
554
557
|
readonly KICI_ORCH_EXECUTIONS_TOTAL: 'counter';
|
|
@@ -797,6 +800,7 @@ export declare const MetricDescription: {
|
|
|
797
800
|
readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'Internal events moved to the DLQ after exhausting retries';
|
|
798
801
|
readonly KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: 'Dispatch leases that timed out before the holding node finalised them (signals node crash mid-dispatch)';
|
|
799
802
|
readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'Internal-event dispatch failures that triggered a retry (lease released, next_retry_at scheduled)';
|
|
803
|
+
readonly KICI_ORCH_EVENT_UNMATCHED_TOTAL: 'Reserved kici.-prefixed internal events that matched no subscribing workflow';
|
|
800
804
|
readonly KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: 'Total orchestrator connections closed for exceeding the org orchestrator cap';
|
|
801
805
|
readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'Duration of execution runs in seconds';
|
|
802
806
|
readonly KICI_ORCH_EXECUTIONS_TOTAL: 'Total number of execution runs';
|
|
@@ -1052,6 +1056,7 @@ export declare const MetricService: {
|
|
|
1052
1056
|
readonly KICI_ORCH_EVENT_DLQ_TOTAL: 'orchestrator';
|
|
1053
1057
|
readonly KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: 'orchestrator';
|
|
1054
1058
|
readonly KICI_ORCH_EVENT_RETRY_TOTAL: 'orchestrator';
|
|
1059
|
+
readonly KICI_ORCH_EVENT_UNMATCHED_TOTAL: 'orchestrator';
|
|
1055
1060
|
readonly KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: 'platform';
|
|
1056
1061
|
readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'orchestrator';
|
|
1057
1062
|
readonly KICI_ORCH_EXECUTIONS_TOTAL: 'orchestrator';
|
|
@@ -54,6 +54,7 @@ const MetricNames = {
|
|
|
54
54
|
KICI_ORCH_EVENT_DLQ_TOTAL: "kici_orch_event_dlq_total",
|
|
55
55
|
KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: "kici_orch_event_lease_expirations_total",
|
|
56
56
|
KICI_ORCH_EVENT_RETRY_TOTAL: "kici_orch_event_retry_total",
|
|
57
|
+
KICI_ORCH_EVENT_UNMATCHED_TOTAL: "kici_orch_event_unmatched_total",
|
|
57
58
|
KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: "kici_orch_excess_connections_closed_total",
|
|
58
59
|
KICI_ORCH_EXECUTION_DURATION_SECONDS: "kici_orch_execution_duration_seconds",
|
|
59
60
|
KICI_ORCH_EXECUTIONS_TOTAL: "kici_orch_executions_total",
|
|
@@ -302,6 +303,7 @@ const MetricLabels = {
|
|
|
302
303
|
KICI_ORCH_EVENT_DLQ_TOTAL: ["event_name", "reason"],
|
|
303
304
|
KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: [],
|
|
304
305
|
KICI_ORCH_EVENT_RETRY_TOTAL: ["event_name"],
|
|
306
|
+
KICI_ORCH_EVENT_UNMATCHED_TOTAL: ["event_name", "reason"],
|
|
305
307
|
KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: ["org_id"],
|
|
306
308
|
KICI_ORCH_EXECUTION_DURATION_SECONDS: [],
|
|
307
309
|
KICI_ORCH_EXECUTIONS_TOTAL: ["status"],
|
|
@@ -566,6 +568,7 @@ const MetricKind = {
|
|
|
566
568
|
KICI_ORCH_EVENT_DLQ_TOTAL: "counter",
|
|
567
569
|
KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: "counter",
|
|
568
570
|
KICI_ORCH_EVENT_RETRY_TOTAL: "counter",
|
|
571
|
+
KICI_ORCH_EVENT_UNMATCHED_TOTAL: "counter",
|
|
569
572
|
KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: "counter",
|
|
570
573
|
KICI_ORCH_EXECUTION_DURATION_SECONDS: "histogram",
|
|
571
574
|
KICI_ORCH_EXECUTIONS_TOTAL: "counter",
|
|
@@ -814,6 +817,7 @@ const MetricDescription = {
|
|
|
814
817
|
KICI_ORCH_EVENT_DLQ_TOTAL: "Internal events moved to the DLQ after exhausting retries",
|
|
815
818
|
KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: "Dispatch leases that timed out before the holding node finalised them (signals node crash mid-dispatch)",
|
|
816
819
|
KICI_ORCH_EVENT_RETRY_TOTAL: "Internal-event dispatch failures that triggered a retry (lease released, next_retry_at scheduled)",
|
|
820
|
+
KICI_ORCH_EVENT_UNMATCHED_TOTAL: "Reserved kici.-prefixed internal events that matched no subscribing workflow",
|
|
817
821
|
KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: "Total orchestrator connections closed for exceeding the org orchestrator cap",
|
|
818
822
|
KICI_ORCH_EXECUTION_DURATION_SECONDS: "Duration of execution runs in seconds",
|
|
819
823
|
KICI_ORCH_EXECUTIONS_TOTAL: "Total number of execution runs",
|
|
@@ -1069,6 +1073,7 @@ const MetricService = {
|
|
|
1069
1073
|
KICI_ORCH_EVENT_DLQ_TOTAL: "orchestrator",
|
|
1070
1074
|
KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: "orchestrator",
|
|
1071
1075
|
KICI_ORCH_EVENT_RETRY_TOTAL: "orchestrator",
|
|
1076
|
+
KICI_ORCH_EVENT_UNMATCHED_TOTAL: "orchestrator",
|
|
1072
1077
|
KICI_ORCH_EXCESS_CONNECTIONS_CLOSED_TOTAL: "platform",
|
|
1073
1078
|
KICI_ORCH_EXECUTION_DURATION_SECONDS: "orchestrator",
|
|
1074
1079
|
KICI_ORCH_EXECUTIONS_TOTAL: "orchestrator",
|
|
@@ -1318,6 +1323,7 @@ const ALL_METRIC_NAMES = [
|
|
|
1318
1323
|
"kici_orch_event_dlq_total",
|
|
1319
1324
|
"kici_orch_event_lease_expirations_total",
|
|
1320
1325
|
"kici_orch_event_retry_total",
|
|
1326
|
+
"kici_orch_event_unmatched_total",
|
|
1321
1327
|
"kici_orch_excess_connections_closed_total",
|
|
1322
1328
|
"kici_orch_execution_duration_seconds",
|
|
1323
1329
|
"kici_orch_executions_total",
|
|
@@ -106,6 +106,7 @@ export declare const AccessLogAction: z.ZodEnum<{
|
|
|
106
106
|
"held_run.request": "held_run.request";
|
|
107
107
|
"job.cancel": "job.cancel";
|
|
108
108
|
"org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
|
|
109
|
+
"peer.forget": "peer.forget";
|
|
109
110
|
purge_chunk: "purge_chunk";
|
|
110
111
|
"registration.delete": "registration.delete";
|
|
111
112
|
"registration.disable": "registration.disable";
|
|
@@ -122,6 +123,8 @@ export declare const AccessLogAction: z.ZodEnum<{
|
|
|
122
123
|
"runs.list.read": "runs.list.read";
|
|
123
124
|
"scaler.agents.read": "scaler.agents.read";
|
|
124
125
|
"scaler.capacity.read": "scaler.capacity.read";
|
|
126
|
+
"scaler.orphan.stop": "scaler.orphan.stop";
|
|
127
|
+
"scaler.orphans.read": "scaler.orphans.read";
|
|
125
128
|
"secret.delete": "secret.delete";
|
|
126
129
|
"secret.list.read": "secret.list.read";
|
|
127
130
|
"secret.reveal": "secret.reveal";
|
|
@@ -212,6 +215,7 @@ export declare const accessLogItemSchema: z.ZodObject<{
|
|
|
212
215
|
"held_run.request": "held_run.request";
|
|
213
216
|
"job.cancel": "job.cancel";
|
|
214
217
|
"org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
|
|
218
|
+
"peer.forget": "peer.forget";
|
|
215
219
|
purge_chunk: "purge_chunk";
|
|
216
220
|
"registration.delete": "registration.delete";
|
|
217
221
|
"registration.disable": "registration.disable";
|
|
@@ -228,6 +232,8 @@ export declare const accessLogItemSchema: z.ZodObject<{
|
|
|
228
232
|
"runs.list.read": "runs.list.read";
|
|
229
233
|
"scaler.agents.read": "scaler.agents.read";
|
|
230
234
|
"scaler.capacity.read": "scaler.capacity.read";
|
|
235
|
+
"scaler.orphan.stop": "scaler.orphan.stop";
|
|
236
|
+
"scaler.orphans.read": "scaler.orphans.read";
|
|
231
237
|
"secret.delete": "secret.delete";
|
|
232
238
|
"secret.list.read": "secret.list.read";
|
|
233
239
|
"secret.reveal": "secret.reveal";
|
|
@@ -345,6 +351,7 @@ export declare const accessLogFilterSchema: z.ZodObject<{
|
|
|
345
351
|
"held_run.request": "held_run.request";
|
|
346
352
|
"job.cancel": "job.cancel";
|
|
347
353
|
"org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
|
|
354
|
+
"peer.forget": "peer.forget";
|
|
348
355
|
purge_chunk: "purge_chunk";
|
|
349
356
|
"registration.delete": "registration.delete";
|
|
350
357
|
"registration.disable": "registration.disable";
|
|
@@ -361,6 +368,8 @@ export declare const accessLogFilterSchema: z.ZodObject<{
|
|
|
361
368
|
"runs.list.read": "runs.list.read";
|
|
362
369
|
"scaler.agents.read": "scaler.agents.read";
|
|
363
370
|
"scaler.capacity.read": "scaler.capacity.read";
|
|
371
|
+
"scaler.orphan.stop": "scaler.orphan.stop";
|
|
372
|
+
"scaler.orphans.read": "scaler.orphans.read";
|
|
364
373
|
"secret.delete": "secret.delete";
|
|
365
374
|
"secret.list.read": "secret.list.read";
|
|
366
375
|
"secret.reveal": "secret.reveal";
|
|
@@ -508,6 +517,7 @@ export declare const dashboardAccessLogListRequestSchema: z.ZodObject<{
|
|
|
508
517
|
"held_run.request": "held_run.request";
|
|
509
518
|
"job.cancel": "job.cancel";
|
|
510
519
|
"org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
|
|
520
|
+
"peer.forget": "peer.forget";
|
|
511
521
|
purge_chunk: "purge_chunk";
|
|
512
522
|
"registration.delete": "registration.delete";
|
|
513
523
|
"registration.disable": "registration.disable";
|
|
@@ -524,6 +534,8 @@ export declare const dashboardAccessLogListRequestSchema: z.ZodObject<{
|
|
|
524
534
|
"runs.list.read": "runs.list.read";
|
|
525
535
|
"scaler.agents.read": "scaler.agents.read";
|
|
526
536
|
"scaler.capacity.read": "scaler.capacity.read";
|
|
537
|
+
"scaler.orphan.stop": "scaler.orphan.stop";
|
|
538
|
+
"scaler.orphans.read": "scaler.orphans.read";
|
|
527
539
|
"secret.delete": "secret.delete";
|
|
528
540
|
"secret.list.read": "secret.list.read";
|
|
529
541
|
"secret.reveal": "secret.reveal";
|
|
@@ -652,6 +664,7 @@ export declare const dashboardAccessLogListResponseSchema: z.ZodObject<{
|
|
|
652
664
|
"held_run.request": "held_run.request";
|
|
653
665
|
"job.cancel": "job.cancel";
|
|
654
666
|
"org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
|
|
667
|
+
"peer.forget": "peer.forget";
|
|
655
668
|
purge_chunk: "purge_chunk";
|
|
656
669
|
"registration.delete": "registration.delete";
|
|
657
670
|
"registration.disable": "registration.disable";
|
|
@@ -668,6 +681,8 @@ export declare const dashboardAccessLogListResponseSchema: z.ZodObject<{
|
|
|
668
681
|
"runs.list.read": "runs.list.read";
|
|
669
682
|
"scaler.agents.read": "scaler.agents.read";
|
|
670
683
|
"scaler.capacity.read": "scaler.capacity.read";
|
|
684
|
+
"scaler.orphan.stop": "scaler.orphan.stop";
|
|
685
|
+
"scaler.orphans.read": "scaler.orphans.read";
|
|
671
686
|
"secret.delete": "secret.delete";
|
|
672
687
|
"secret.list.read": "secret.list.read";
|
|
673
688
|
"secret.reveal": "secret.reveal";
|
|
@@ -107,6 +107,7 @@ const AccessLogAction = z.enum([
|
|
|
107
107
|
"diagnostics.read",
|
|
108
108
|
"scaler.capacity.read",
|
|
109
109
|
"scaler.agents.read",
|
|
110
|
+
"scaler.orphans.read",
|
|
110
111
|
"fleet.read",
|
|
111
112
|
"fleet.host.declare",
|
|
112
113
|
"fleet.host.remove",
|
|
@@ -124,6 +125,8 @@ const AccessLogAction = z.enum([
|
|
|
124
125
|
"trust_directory.updated",
|
|
125
126
|
"cluster_name.update",
|
|
126
127
|
"attestation.retry",
|
|
128
|
+
"scaler.orphan.stop",
|
|
129
|
+
"peer.forget",
|
|
127
130
|
"access_log.list.read",
|
|
128
131
|
"event_dlq.list.read",
|
|
129
132
|
"event_dlq.retry",
|
|
@@ -6851,6 +6851,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
6851
6851
|
"held_run.request": "held_run.request";
|
|
6852
6852
|
"job.cancel": "job.cancel";
|
|
6853
6853
|
"org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
|
|
6854
|
+
"peer.forget": "peer.forget";
|
|
6854
6855
|
purge_chunk: "purge_chunk";
|
|
6855
6856
|
"registration.delete": "registration.delete";
|
|
6856
6857
|
"registration.disable": "registration.disable";
|
|
@@ -6867,6 +6868,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
6867
6868
|
"runs.list.read": "runs.list.read";
|
|
6868
6869
|
"scaler.agents.read": "scaler.agents.read";
|
|
6869
6870
|
"scaler.capacity.read": "scaler.capacity.read";
|
|
6871
|
+
"scaler.orphan.stop": "scaler.orphan.stop";
|
|
6872
|
+
"scaler.orphans.read": "scaler.orphans.read";
|
|
6870
6873
|
"secret.delete": "secret.delete";
|
|
6871
6874
|
"secret.list.read": "secret.list.read";
|
|
6872
6875
|
"secret.reveal": "secret.reveal";
|
|
@@ -8592,6 +8595,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8592
8595
|
"held_run.request": "held_run.request";
|
|
8593
8596
|
"job.cancel": "job.cancel";
|
|
8594
8597
|
"org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
|
|
8598
|
+
"peer.forget": "peer.forget";
|
|
8595
8599
|
purge_chunk: "purge_chunk";
|
|
8596
8600
|
"registration.delete": "registration.delete";
|
|
8597
8601
|
"registration.disable": "registration.disable";
|
|
@@ -8608,6 +8612,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8608
8612
|
"runs.list.read": "runs.list.read";
|
|
8609
8613
|
"scaler.agents.read": "scaler.agents.read";
|
|
8610
8614
|
"scaler.capacity.read": "scaler.capacity.read";
|
|
8615
|
+
"scaler.orphan.stop": "scaler.orphan.stop";
|
|
8616
|
+
"scaler.orphans.read": "scaler.orphans.read";
|
|
8611
8617
|
"secret.delete": "secret.delete";
|
|
8612
8618
|
"secret.list.read": "secret.list.read";
|
|
8613
8619
|
"secret.reveal": "secret.reveal";
|
|
@@ -131,6 +131,15 @@ export declare const peerHeartbeatSchema: z.ZodObject<{
|
|
|
131
131
|
runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
132
132
|
version: z.ZodOptional<z.ZodString>;
|
|
133
133
|
}, z.core.$strip>;
|
|
134
|
+
/**
|
|
135
|
+
* The spawn-retry budget a worker applies to one rerouted job: how many agent
|
|
136
|
+
* spawns it attempts, and how long it waits after a failed one. The sending
|
|
137
|
+
* coordinator resolves it per org and enforces the same budget on its side.
|
|
138
|
+
*/
|
|
139
|
+
export declare const rerouteSpawnRetrySchema: z.ZodObject<{
|
|
140
|
+
maxAttempts: z.ZodNumber;
|
|
141
|
+
backoffMs: z.ZodNumber;
|
|
142
|
+
}, z.core.$strip>;
|
|
134
143
|
/** Request to reroute a job to another orchestrator (no local agent can handle it). */
|
|
135
144
|
export declare const jobRerouteSchema: z.ZodObject<{
|
|
136
145
|
type: z.ZodLiteral<"job.reroute">;
|
|
@@ -164,6 +173,10 @@ export declare const jobRerouteSchema: z.ZodObject<{
|
|
|
164
173
|
}, z.core.$strip>], "kind">>>;
|
|
165
174
|
triedConnections: z.ZodArray<z.ZodString>;
|
|
166
175
|
maxHops: z.ZodNumber;
|
|
176
|
+
spawnRetry: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
maxAttempts: z.ZodNumber;
|
|
178
|
+
backoffMs: z.ZodNumber;
|
|
179
|
+
}, z.core.$strip>>;
|
|
167
180
|
coordinatorId: z.ZodString;
|
|
168
181
|
requestId: z.ZodOptional<z.ZodString>;
|
|
169
182
|
traceId: z.ZodOptional<z.ZodString>;
|
|
@@ -351,8 +364,177 @@ export declare const peerConfigReloadResponseSchema: z.ZodObject<{
|
|
|
351
364
|
restartRequired: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
352
365
|
fieldsChanged: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
353
366
|
}, z.core.$strip>;
|
|
367
|
+
/** How a live Firecracker VM relates to the orchestrator on its host. */
|
|
368
|
+
export declare const ScalerVmStatus: z.ZodEnum<{
|
|
369
|
+
orphaned: "orphaned";
|
|
370
|
+
tracked: "tracked";
|
|
371
|
+
unverified: "unverified";
|
|
372
|
+
}>;
|
|
373
|
+
export type ScalerVmStatus = z.infer<typeof ScalerVmStatus>;
|
|
374
|
+
/** What tracks a live VM. `bound-job` is answered from a coordinator's dispatch queue. */
|
|
375
|
+
export declare const ScalerVmTracker: z.ZodEnum<{
|
|
376
|
+
backend: "backend";
|
|
377
|
+
"bound-job": "bound-job";
|
|
378
|
+
registered: "registered";
|
|
379
|
+
spawning: "spawning";
|
|
380
|
+
}>;
|
|
381
|
+
export type ScalerVmTracker = z.infer<typeof ScalerVmTracker>;
|
|
382
|
+
/** What a stop did to one VM. Only `stopped` signalled anything. */
|
|
383
|
+
export declare const ScalerVmStopOutcome: z.ZodEnum<{
|
|
384
|
+
error: "error";
|
|
385
|
+
"not-found": "not-found";
|
|
386
|
+
"not-live": "not-live";
|
|
387
|
+
stopped: "stopped";
|
|
388
|
+
tracked: "tracked";
|
|
389
|
+
unverified: "unverified";
|
|
390
|
+
}>;
|
|
391
|
+
export type ScalerVmStopOutcome = z.infer<typeof ScalerVmStopOutcome>;
|
|
392
|
+
/** What a scaler orphan request asks the target node to do. */
|
|
393
|
+
export declare const ScalerOrphansAction: z.ZodEnum<{
|
|
394
|
+
list: "list";
|
|
395
|
+
stop: "stop";
|
|
396
|
+
}>;
|
|
397
|
+
export type ScalerOrphansAction = z.infer<typeof ScalerOrphansAction>;
|
|
398
|
+
/** One live Firecracker VM on a node, as its orchestrator sees it. */
|
|
399
|
+
export declare const scalerLiveVmSchema: z.ZodObject<{
|
|
400
|
+
vmId: z.ZodString;
|
|
401
|
+
scaler: z.ZodString;
|
|
402
|
+
pid: z.ZodNumber;
|
|
403
|
+
startedAt: z.ZodString;
|
|
404
|
+
ageSeconds: z.ZodNumber;
|
|
405
|
+
chrootDir: z.ZodString;
|
|
406
|
+
status: z.ZodEnum<{
|
|
407
|
+
orphaned: "orphaned";
|
|
408
|
+
tracked: "tracked";
|
|
409
|
+
unverified: "unverified";
|
|
410
|
+
}>;
|
|
411
|
+
trackedBy: z.ZodArray<z.ZodEnum<{
|
|
412
|
+
backend: "backend";
|
|
413
|
+
"bound-job": "bound-job";
|
|
414
|
+
registered: "registered";
|
|
415
|
+
spawning: "spawning";
|
|
416
|
+
}>>;
|
|
417
|
+
reason: z.ZodString;
|
|
418
|
+
}, z.core.$strip>;
|
|
419
|
+
export type ScalerLiveVm = z.infer<typeof scalerLiveVmSchema>;
|
|
420
|
+
/** The result of stopping one VM. `pid` is the process that was (or would be) signalled. */
|
|
421
|
+
export declare const scalerVmStopResultSchema: z.ZodObject<{
|
|
422
|
+
vmId: z.ZodString;
|
|
423
|
+
outcome: z.ZodEnum<{
|
|
424
|
+
error: "error";
|
|
425
|
+
"not-found": "not-found";
|
|
426
|
+
"not-live": "not-live";
|
|
427
|
+
stopped: "stopped";
|
|
428
|
+
tracked: "tracked";
|
|
429
|
+
unverified: "unverified";
|
|
430
|
+
}>;
|
|
431
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
432
|
+
detail: z.ZodString;
|
|
433
|
+
}, z.core.$strip>;
|
|
434
|
+
export type ScalerVmStopResult = z.infer<typeof scalerVmStopResultSchema>;
|
|
435
|
+
/**
|
|
436
|
+
* Scaler orphan request: forwarded by a coordinator to the node an operator
|
|
437
|
+
* targeted with `kici-admin scaler orphans --target`. The node answers from
|
|
438
|
+
* its own host and its own tracking with peer.scaler.orphans.response.
|
|
439
|
+
*/
|
|
440
|
+
export declare const peerScalerOrphansRequestSchema: z.ZodObject<{
|
|
441
|
+
type: z.ZodLiteral<"peer.scaler.orphans.request">;
|
|
442
|
+
messageId: z.ZodString;
|
|
443
|
+
action: z.ZodEnum<{
|
|
444
|
+
list: "list";
|
|
445
|
+
stop: "stop";
|
|
446
|
+
}>;
|
|
447
|
+
vmIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
448
|
+
}, z.core.$strip>;
|
|
449
|
+
/**
|
|
450
|
+
* Scaler orphan response. `vms` answers a `list`, `results` answers a `stop`;
|
|
451
|
+
* `ok: false` carries the node's `error` instead.
|
|
452
|
+
*/
|
|
453
|
+
export declare const peerScalerOrphansResponseSchema: z.ZodObject<{
|
|
454
|
+
type: z.ZodLiteral<"peer.scaler.orphans.response">;
|
|
455
|
+
messageId: z.ZodString;
|
|
456
|
+
ok: z.ZodBoolean;
|
|
457
|
+
error: z.ZodOptional<z.ZodString>;
|
|
458
|
+
firecrackerScalers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
459
|
+
vms: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
460
|
+
vmId: z.ZodString;
|
|
461
|
+
scaler: z.ZodString;
|
|
462
|
+
pid: z.ZodNumber;
|
|
463
|
+
startedAt: z.ZodString;
|
|
464
|
+
ageSeconds: z.ZodNumber;
|
|
465
|
+
chrootDir: z.ZodString;
|
|
466
|
+
status: z.ZodEnum<{
|
|
467
|
+
orphaned: "orphaned";
|
|
468
|
+
tracked: "tracked";
|
|
469
|
+
unverified: "unverified";
|
|
470
|
+
}>;
|
|
471
|
+
trackedBy: z.ZodArray<z.ZodEnum<{
|
|
472
|
+
backend: "backend";
|
|
473
|
+
"bound-job": "bound-job";
|
|
474
|
+
registered: "registered";
|
|
475
|
+
spawning: "spawning";
|
|
476
|
+
}>>;
|
|
477
|
+
reason: z.ZodString;
|
|
478
|
+
}, z.core.$strip>>>;
|
|
479
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
480
|
+
vmId: z.ZodString;
|
|
481
|
+
outcome: z.ZodEnum<{
|
|
482
|
+
error: "error";
|
|
483
|
+
"not-found": "not-found";
|
|
484
|
+
"not-live": "not-live";
|
|
485
|
+
stopped: "stopped";
|
|
486
|
+
tracked: "tracked";
|
|
487
|
+
unverified: "unverified";
|
|
488
|
+
}>;
|
|
489
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
490
|
+
detail: z.ZodString;
|
|
491
|
+
}, z.core.$strip>>>;
|
|
492
|
+
}, z.core.$strip>;
|
|
493
|
+
/**
|
|
494
|
+
* What forgetting a departed peer did on one coordinator. `recent`: the peer
|
|
495
|
+
* was heard from inside the window this coordinator still treats it as alive
|
|
496
|
+
* for (the longer of the stale window and the reroute flap grace, or the
|
|
497
|
+
* backstop grace of a peer that adopted provisions), so it may be partitioned
|
|
498
|
+
* rather than gone. `acknowledgement-required`: forgetting it would switch this
|
|
499
|
+
* coordinator's event-provision backstop back on, and the request did not
|
|
500
|
+
* acknowledge that. Every outcome but `forgotten` keeps the peer.
|
|
501
|
+
*/
|
|
502
|
+
export declare const PeerForgetOutcome: z.ZodEnum<{
|
|
503
|
+
"acknowledgement-required": "acknowledgement-required";
|
|
504
|
+
connected: "connected";
|
|
505
|
+
error: "error";
|
|
506
|
+
forgotten: "forgotten";
|
|
507
|
+
"not-found": "not-found";
|
|
508
|
+
recent: "recent";
|
|
509
|
+
}>;
|
|
510
|
+
export type PeerForgetOutcome = z.infer<typeof PeerForgetOutcome>;
|
|
511
|
+
/**
|
|
512
|
+
* Forget request: a coordinator that forgot a departed peer (`kici-admin peer
|
|
513
|
+
* forget`) asks each connected sibling coordinator to drop it from its own
|
|
514
|
+
* live peer registry too.
|
|
515
|
+
*/
|
|
516
|
+
export declare const peerForgetRequestSchema: z.ZodObject<{
|
|
517
|
+
type: z.ZodLiteral<"peer.forget.request">;
|
|
518
|
+
messageId: z.ZodString;
|
|
519
|
+
instanceId: z.ZodString;
|
|
520
|
+
acknowledgeBackstop: z.ZodOptional<z.ZodBoolean>;
|
|
521
|
+
}, z.core.$strip>;
|
|
522
|
+
/** Forget response: what the sibling did with the request. */
|
|
523
|
+
export declare const peerForgetResponseSchema: z.ZodObject<{
|
|
524
|
+
type: z.ZodLiteral<"peer.forget.response">;
|
|
525
|
+
messageId: z.ZodString;
|
|
526
|
+
outcome: z.ZodEnum<{
|
|
527
|
+
"acknowledgement-required": "acknowledgement-required";
|
|
528
|
+
connected: "connected";
|
|
529
|
+
error: "error";
|
|
530
|
+
forgotten: "forgotten";
|
|
531
|
+
"not-found": "not-found";
|
|
532
|
+
recent: "recent";
|
|
533
|
+
}>;
|
|
534
|
+
detail: z.ZodString;
|
|
535
|
+
}, z.core.$strip>;
|
|
354
536
|
/**
|
|
355
|
-
* Worker-relevant cluster settings a DB-less worker pulls from
|
|
537
|
+
* Worker-relevant cluster settings a DB-less worker pulls from a coordinator.
|
|
356
538
|
*
|
|
357
539
|
* A typed, concrete snapshot (not an open key/value bus): each worker-consumed
|
|
358
540
|
* cluster knob is a field here. Adding the next worker-relevant knob is one
|
|
@@ -360,11 +542,12 @@ export declare const peerConfigReloadResponseSchema: z.ZodObject<{
|
|
|
360
542
|
*/
|
|
361
543
|
export declare const workerClusterSettingsSchema: z.ZodObject<{
|
|
362
544
|
agentTokenTtlMs: z.ZodNumber;
|
|
545
|
+
firecrackerApiSocketWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
363
546
|
}, z.core.$strip>;
|
|
364
547
|
/**
|
|
365
|
-
* Cluster-settings pull request: a DB-less worker asks
|
|
366
|
-
* current worker-settings snapshot after
|
|
367
|
-
* clusterSettingsVersion ahead of its own. The
|
|
548
|
+
* Cluster-settings pull request: a DB-less worker asks a connected coordinator
|
|
549
|
+
* for the current worker-settings snapshot after a coordinator advertised a
|
|
550
|
+
* clusterSettingsVersion ahead of its own. The coordinator replies with
|
|
368
551
|
* peer.clusterSettings.response.
|
|
369
552
|
*/
|
|
370
553
|
export declare const peerClusterSettingsRequestSchema: z.ZodObject<{
|
|
@@ -372,7 +555,7 @@ export declare const peerClusterSettingsRequestSchema: z.ZodObject<{
|
|
|
372
555
|
messageId: z.ZodString;
|
|
373
556
|
}, z.core.$strip>;
|
|
374
557
|
/**
|
|
375
|
-
* Cluster-settings pull response: the
|
|
558
|
+
* Cluster-settings pull response: the coordinator resolves the snapshot from
|
|
376
559
|
* cluster_settings and replies with it plus the current version.
|
|
377
560
|
*/
|
|
378
561
|
export declare const peerClusterSettingsResponseSchema: z.ZodObject<{
|
|
@@ -381,6 +564,7 @@ export declare const peerClusterSettingsResponseSchema: z.ZodObject<{
|
|
|
381
564
|
version: z.ZodNumber;
|
|
382
565
|
settings: z.ZodObject<{
|
|
383
566
|
agentTokenTtlMs: z.ZodNumber;
|
|
567
|
+
firecrackerApiSocketWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
384
568
|
}, z.core.$strip>;
|
|
385
569
|
}, z.core.$strip>;
|
|
386
570
|
/** Which of THIS peer's downstream nodes to gather. all=true ignores the id lists. */
|
|
@@ -455,6 +639,7 @@ export declare const peerScalerEventSchema: z.ZodObject<{
|
|
|
455
639
|
}>;
|
|
456
640
|
detail: z.ZodString;
|
|
457
641
|
timestampMs: z.ZodNumber;
|
|
642
|
+
final: z.ZodOptional<z.ZodBoolean>;
|
|
458
643
|
}, z.core.$strip>;
|
|
459
644
|
/** All peer-to-peer messages (outbound from this node). */
|
|
460
645
|
export declare const peerToPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -588,6 +773,10 @@ export declare const peerToPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
588
773
|
}, z.core.$strip>], "kind">>>;
|
|
589
774
|
triedConnections: z.ZodArray<z.ZodString>;
|
|
590
775
|
maxHops: z.ZodNumber;
|
|
776
|
+
spawnRetry: z.ZodOptional<z.ZodObject<{
|
|
777
|
+
maxAttempts: z.ZodNumber;
|
|
778
|
+
backoffMs: z.ZodNumber;
|
|
779
|
+
}, z.core.$strip>>;
|
|
591
780
|
coordinatorId: z.ZodString;
|
|
592
781
|
requestId: z.ZodOptional<z.ZodString>;
|
|
593
782
|
traceId: z.ZodOptional<z.ZodString>;
|
|
@@ -718,6 +907,70 @@ export declare const peerToPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
718
907
|
errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
719
908
|
restartRequired: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
720
909
|
fieldsChanged: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
910
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
911
|
+
type: z.ZodLiteral<"peer.scaler.orphans.request">;
|
|
912
|
+
messageId: z.ZodString;
|
|
913
|
+
action: z.ZodEnum<{
|
|
914
|
+
list: "list";
|
|
915
|
+
stop: "stop";
|
|
916
|
+
}>;
|
|
917
|
+
vmIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
918
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
919
|
+
type: z.ZodLiteral<"peer.scaler.orphans.response">;
|
|
920
|
+
messageId: z.ZodString;
|
|
921
|
+
ok: z.ZodBoolean;
|
|
922
|
+
error: z.ZodOptional<z.ZodString>;
|
|
923
|
+
firecrackerScalers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
924
|
+
vms: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
925
|
+
vmId: z.ZodString;
|
|
926
|
+
scaler: z.ZodString;
|
|
927
|
+
pid: z.ZodNumber;
|
|
928
|
+
startedAt: z.ZodString;
|
|
929
|
+
ageSeconds: z.ZodNumber;
|
|
930
|
+
chrootDir: z.ZodString;
|
|
931
|
+
status: z.ZodEnum<{
|
|
932
|
+
orphaned: "orphaned";
|
|
933
|
+
tracked: "tracked";
|
|
934
|
+
unverified: "unverified";
|
|
935
|
+
}>;
|
|
936
|
+
trackedBy: z.ZodArray<z.ZodEnum<{
|
|
937
|
+
backend: "backend";
|
|
938
|
+
"bound-job": "bound-job";
|
|
939
|
+
registered: "registered";
|
|
940
|
+
spawning: "spawning";
|
|
941
|
+
}>>;
|
|
942
|
+
reason: z.ZodString;
|
|
943
|
+
}, z.core.$strip>>>;
|
|
944
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
945
|
+
vmId: z.ZodString;
|
|
946
|
+
outcome: z.ZodEnum<{
|
|
947
|
+
error: "error";
|
|
948
|
+
"not-found": "not-found";
|
|
949
|
+
"not-live": "not-live";
|
|
950
|
+
stopped: "stopped";
|
|
951
|
+
tracked: "tracked";
|
|
952
|
+
unverified: "unverified";
|
|
953
|
+
}>;
|
|
954
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
955
|
+
detail: z.ZodString;
|
|
956
|
+
}, z.core.$strip>>>;
|
|
957
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
958
|
+
type: z.ZodLiteral<"peer.forget.request">;
|
|
959
|
+
messageId: z.ZodString;
|
|
960
|
+
instanceId: z.ZodString;
|
|
961
|
+
acknowledgeBackstop: z.ZodOptional<z.ZodBoolean>;
|
|
962
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
963
|
+
type: z.ZodLiteral<"peer.forget.response">;
|
|
964
|
+
messageId: z.ZodString;
|
|
965
|
+
outcome: z.ZodEnum<{
|
|
966
|
+
"acknowledgement-required": "acknowledgement-required";
|
|
967
|
+
connected: "connected";
|
|
968
|
+
error: "error";
|
|
969
|
+
forgotten: "forgotten";
|
|
970
|
+
"not-found": "not-found";
|
|
971
|
+
recent: "recent";
|
|
972
|
+
}>;
|
|
973
|
+
detail: z.ZodString;
|
|
721
974
|
}, z.core.$strip>, z.ZodObject<{
|
|
722
975
|
type: z.ZodLiteral<"peer.clusterSettings.request">;
|
|
723
976
|
messageId: z.ZodString;
|
|
@@ -727,6 +980,7 @@ export declare const peerToPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
727
980
|
version: z.ZodNumber;
|
|
728
981
|
settings: z.ZodObject<{
|
|
729
982
|
agentTokenTtlMs: z.ZodNumber;
|
|
983
|
+
firecrackerApiSocketWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
730
984
|
}, z.core.$strip>;
|
|
731
985
|
}, z.core.$strip>, z.ZodObject<{
|
|
732
986
|
type: z.ZodLiteral<"peer.logs.collect.request">;
|
|
@@ -770,6 +1024,7 @@ export declare const peerToPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
770
1024
|
}>;
|
|
771
1025
|
detail: z.ZodString;
|
|
772
1026
|
timestampMs: z.ZodNumber;
|
|
1027
|
+
final: z.ZodOptional<z.ZodBoolean>;
|
|
773
1028
|
}, z.core.$strip>], "type">;
|
|
774
1029
|
/** All peer-to-peer messages (inbound to this node). */
|
|
775
1030
|
export declare const peerFromPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -903,6 +1158,10 @@ export declare const peerFromPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
903
1158
|
}, z.core.$strip>], "kind">>>;
|
|
904
1159
|
triedConnections: z.ZodArray<z.ZodString>;
|
|
905
1160
|
maxHops: z.ZodNumber;
|
|
1161
|
+
spawnRetry: z.ZodOptional<z.ZodObject<{
|
|
1162
|
+
maxAttempts: z.ZodNumber;
|
|
1163
|
+
backoffMs: z.ZodNumber;
|
|
1164
|
+
}, z.core.$strip>>;
|
|
906
1165
|
coordinatorId: z.ZodString;
|
|
907
1166
|
requestId: z.ZodOptional<z.ZodString>;
|
|
908
1167
|
traceId: z.ZodOptional<z.ZodString>;
|
|
@@ -1033,6 +1292,70 @@ export declare const peerFromPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1033
1292
|
errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1034
1293
|
restartRequired: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1035
1294
|
fieldsChanged: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1295
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1296
|
+
type: z.ZodLiteral<"peer.scaler.orphans.request">;
|
|
1297
|
+
messageId: z.ZodString;
|
|
1298
|
+
action: z.ZodEnum<{
|
|
1299
|
+
list: "list";
|
|
1300
|
+
stop: "stop";
|
|
1301
|
+
}>;
|
|
1302
|
+
vmIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1304
|
+
type: z.ZodLiteral<"peer.scaler.orphans.response">;
|
|
1305
|
+
messageId: z.ZodString;
|
|
1306
|
+
ok: z.ZodBoolean;
|
|
1307
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1308
|
+
firecrackerScalers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1309
|
+
vms: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1310
|
+
vmId: z.ZodString;
|
|
1311
|
+
scaler: z.ZodString;
|
|
1312
|
+
pid: z.ZodNumber;
|
|
1313
|
+
startedAt: z.ZodString;
|
|
1314
|
+
ageSeconds: z.ZodNumber;
|
|
1315
|
+
chrootDir: z.ZodString;
|
|
1316
|
+
status: z.ZodEnum<{
|
|
1317
|
+
orphaned: "orphaned";
|
|
1318
|
+
tracked: "tracked";
|
|
1319
|
+
unverified: "unverified";
|
|
1320
|
+
}>;
|
|
1321
|
+
trackedBy: z.ZodArray<z.ZodEnum<{
|
|
1322
|
+
backend: "backend";
|
|
1323
|
+
"bound-job": "bound-job";
|
|
1324
|
+
registered: "registered";
|
|
1325
|
+
spawning: "spawning";
|
|
1326
|
+
}>>;
|
|
1327
|
+
reason: z.ZodString;
|
|
1328
|
+
}, z.core.$strip>>>;
|
|
1329
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1330
|
+
vmId: z.ZodString;
|
|
1331
|
+
outcome: z.ZodEnum<{
|
|
1332
|
+
error: "error";
|
|
1333
|
+
"not-found": "not-found";
|
|
1334
|
+
"not-live": "not-live";
|
|
1335
|
+
stopped: "stopped";
|
|
1336
|
+
tracked: "tracked";
|
|
1337
|
+
unverified: "unverified";
|
|
1338
|
+
}>;
|
|
1339
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
1340
|
+
detail: z.ZodString;
|
|
1341
|
+
}, z.core.$strip>>>;
|
|
1342
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1343
|
+
type: z.ZodLiteral<"peer.forget.request">;
|
|
1344
|
+
messageId: z.ZodString;
|
|
1345
|
+
instanceId: z.ZodString;
|
|
1346
|
+
acknowledgeBackstop: z.ZodOptional<z.ZodBoolean>;
|
|
1347
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1348
|
+
type: z.ZodLiteral<"peer.forget.response">;
|
|
1349
|
+
messageId: z.ZodString;
|
|
1350
|
+
outcome: z.ZodEnum<{
|
|
1351
|
+
"acknowledgement-required": "acknowledgement-required";
|
|
1352
|
+
connected: "connected";
|
|
1353
|
+
error: "error";
|
|
1354
|
+
forgotten: "forgotten";
|
|
1355
|
+
"not-found": "not-found";
|
|
1356
|
+
recent: "recent";
|
|
1357
|
+
}>;
|
|
1358
|
+
detail: z.ZodString;
|
|
1036
1359
|
}, z.core.$strip>, z.ZodObject<{
|
|
1037
1360
|
type: z.ZodLiteral<"peer.clusterSettings.request">;
|
|
1038
1361
|
messageId: z.ZodString;
|
|
@@ -1042,6 +1365,7 @@ export declare const peerFromPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1042
1365
|
version: z.ZodNumber;
|
|
1043
1366
|
settings: z.ZodObject<{
|
|
1044
1367
|
agentTokenTtlMs: z.ZodNumber;
|
|
1368
|
+
firecrackerApiSocketWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
1045
1369
|
}, z.core.$strip>;
|
|
1046
1370
|
}, z.core.$strip>, z.ZodObject<{
|
|
1047
1371
|
type: z.ZodLiteral<"peer.logs.collect.request">;
|
|
@@ -1085,11 +1409,13 @@ export declare const peerFromPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1085
1409
|
}>;
|
|
1086
1410
|
detail: z.ZodString;
|
|
1087
1411
|
timestampMs: z.ZodNumber;
|
|
1412
|
+
final: z.ZodOptional<z.ZodBoolean>;
|
|
1088
1413
|
}, z.core.$strip>], "type">;
|
|
1089
1414
|
export type PeerCapabilities = z.infer<typeof peerCapabilitiesSchema>;
|
|
1090
1415
|
export type ScalerCapacitySummary = z.infer<typeof scalerCapacitySummarySchema>;
|
|
1091
1416
|
export type PeerHeartbeat = z.infer<typeof peerHeartbeatSchema>;
|
|
1092
1417
|
export type JobReroute = z.infer<typeof jobRerouteSchema>;
|
|
1418
|
+
export type RerouteSpawnRetry = z.infer<typeof rerouteSpawnRetrySchema>;
|
|
1093
1419
|
export type JobProgress = z.infer<typeof jobProgressSchema>;
|
|
1094
1420
|
export type JobProgressAck = z.infer<typeof jobProgressAckSchema>;
|
|
1095
1421
|
export type PeerScalerEvent = z.infer<typeof peerScalerEventSchema>;
|
|
@@ -1102,6 +1428,10 @@ export type PeerCacheUploadRequest = z.infer<typeof peerCacheUploadRequestSchema
|
|
|
1102
1428
|
export type PeerCacheUploadResponse = z.infer<typeof peerCacheUploadResponseSchema>;
|
|
1103
1429
|
export type PeerConfigReload = z.infer<typeof peerConfigReloadSchema>;
|
|
1104
1430
|
export type PeerConfigReloadResponse = z.infer<typeof peerConfigReloadResponseSchema>;
|
|
1431
|
+
export type PeerScalerOrphansRequest = z.infer<typeof peerScalerOrphansRequestSchema>;
|
|
1432
|
+
export type PeerScalerOrphansResponse = z.infer<typeof peerScalerOrphansResponseSchema>;
|
|
1433
|
+
export type PeerForgetRequest = z.infer<typeof peerForgetRequestSchema>;
|
|
1434
|
+
export type PeerForgetResponse = z.infer<typeof peerForgetResponseSchema>;
|
|
1105
1435
|
export type WorkerClusterSettings = z.infer<typeof workerClusterSettingsSchema>;
|
|
1106
1436
|
export type PeerClusterSettingsRequest = z.infer<typeof peerClusterSettingsRequestSchema>;
|
|
1107
1437
|
export type PeerClusterSettingsResponse = z.infer<typeof peerClusterSettingsResponseSchema>;
|
|
@@ -126,7 +126,7 @@ const peerHeartbeatSchema = z.object({
|
|
|
126
126
|
configVersion: z.number().optional(),
|
|
127
127
|
/** Registry version for cross-orchestrator registration sync (backward compatible). */
|
|
128
128
|
registryVersion: z.number().optional(),
|
|
129
|
-
/**
|
|
129
|
+
/** Cluster-settings version for the coordinator→worker settings pull (backward compatible). */
|
|
130
130
|
clusterSettingsVersion: z.number().optional(),
|
|
131
131
|
timestamp: z.number(),
|
|
132
132
|
hostname: z.string().optional(),
|
|
@@ -141,6 +141,15 @@ const peerHeartbeatSchema = z.object({
|
|
|
141
141
|
runningAsUid: z.number().nullable().optional(),
|
|
142
142
|
version: z.string().optional()
|
|
143
143
|
});
|
|
144
|
+
/**
|
|
145
|
+
* The spawn-retry budget a worker applies to one rerouted job: how many agent
|
|
146
|
+
* spawns it attempts, and how long it waits after a failed one. The sending
|
|
147
|
+
* coordinator resolves it per org and enforces the same budget on its side.
|
|
148
|
+
*/
|
|
149
|
+
const rerouteSpawnRetrySchema = z.object({
|
|
150
|
+
maxAttempts: z.number().int().min(1),
|
|
151
|
+
backoffMs: z.number().int().min(0)
|
|
152
|
+
});
|
|
144
153
|
/** Request to reroute a job to another orchestrator (no local agent can handle it). */
|
|
145
154
|
const jobRerouteSchema = z.object({
|
|
146
155
|
type: z.literal("job.reroute"),
|
|
@@ -178,6 +187,11 @@ const jobRerouteSchema = z.object({
|
|
|
178
187
|
excludePatterns: z.array(LabelMatcher).optional(),
|
|
179
188
|
triedConnections: z.array(z.string()),
|
|
180
189
|
maxHops: z.number(),
|
|
190
|
+
/**
|
|
191
|
+
* The worker's spawn-retry budget for this job. Absent from an older sender:
|
|
192
|
+
* the worker applies its own configured default.
|
|
193
|
+
*/
|
|
194
|
+
spawnRetry: rerouteSpawnRetrySchema.optional(),
|
|
181
195
|
coordinatorId: z.string(),
|
|
182
196
|
requestId: z.string().optional(),
|
|
183
197
|
traceId: z.string().optional(),
|
|
@@ -346,18 +360,135 @@ const peerConfigReloadResponseSchema = z.object({
|
|
|
346
360
|
restartRequired: z.array(z.string()).optional(),
|
|
347
361
|
fieldsChanged: z.array(z.string()).optional()
|
|
348
362
|
});
|
|
363
|
+
/** How a live Firecracker VM relates to the orchestrator on its host. */
|
|
364
|
+
const ScalerVmStatus = z.enum([
|
|
365
|
+
"orphaned",
|
|
366
|
+
"unverified",
|
|
367
|
+
"tracked"
|
|
368
|
+
]);
|
|
369
|
+
/** What tracks a live VM. `bound-job` is answered from a coordinator's dispatch queue. */
|
|
370
|
+
const ScalerVmTracker = z.enum([
|
|
371
|
+
"backend",
|
|
372
|
+
"spawning",
|
|
373
|
+
"registered",
|
|
374
|
+
"bound-job"
|
|
375
|
+
]);
|
|
376
|
+
/** What a stop did to one VM. Only `stopped` signalled anything. */
|
|
377
|
+
const ScalerVmStopOutcome = z.enum([
|
|
378
|
+
"stopped",
|
|
379
|
+
"tracked",
|
|
380
|
+
"unverified",
|
|
381
|
+
"not-live",
|
|
382
|
+
"not-found",
|
|
383
|
+
"error"
|
|
384
|
+
]);
|
|
385
|
+
/** What a scaler orphan request asks the target node to do. */
|
|
386
|
+
const ScalerOrphansAction = z.enum(["list", "stop"]);
|
|
387
|
+
/** One live Firecracker VM on a node, as its orchestrator sees it. */
|
|
388
|
+
const scalerLiveVmSchema = z.object({
|
|
389
|
+
vmId: z.string(),
|
|
390
|
+
scaler: z.string(),
|
|
391
|
+
pid: z.number().int().positive(),
|
|
392
|
+
startedAt: z.string(),
|
|
393
|
+
ageSeconds: z.number().nonnegative(),
|
|
394
|
+
chrootDir: z.string(),
|
|
395
|
+
status: ScalerVmStatus,
|
|
396
|
+
trackedBy: z.array(ScalerVmTracker),
|
|
397
|
+
reason: z.string()
|
|
398
|
+
});
|
|
399
|
+
/** The result of stopping one VM. `pid` is the process that was (or would be) signalled. */
|
|
400
|
+
const scalerVmStopResultSchema = z.object({
|
|
401
|
+
vmId: z.string(),
|
|
402
|
+
outcome: ScalerVmStopOutcome,
|
|
403
|
+
pid: z.number().int().positive().optional(),
|
|
404
|
+
detail: z.string()
|
|
405
|
+
});
|
|
406
|
+
/**
|
|
407
|
+
* Scaler orphan request: forwarded by a coordinator to the node an operator
|
|
408
|
+
* targeted with `kici-admin scaler orphans --target`. The node answers from
|
|
409
|
+
* its own host and its own tracking with peer.scaler.orphans.response.
|
|
410
|
+
*/
|
|
411
|
+
const peerScalerOrphansRequestSchema = z.object({
|
|
412
|
+
type: z.literal("peer.scaler.orphans.request"),
|
|
413
|
+
messageId: z.string(),
|
|
414
|
+
action: ScalerOrphansAction,
|
|
415
|
+
/** `stop` only: the VM ids the operator approved. */
|
|
416
|
+
vmIds: z.array(z.string()).optional()
|
|
417
|
+
});
|
|
418
|
+
/**
|
|
419
|
+
* Scaler orphan response. `vms` answers a `list`, `results` answers a `stop`;
|
|
420
|
+
* `ok: false` carries the node's `error` instead.
|
|
421
|
+
*/
|
|
422
|
+
const peerScalerOrphansResponseSchema = z.object({
|
|
423
|
+
type: z.literal("peer.scaler.orphans.response"),
|
|
424
|
+
messageId: z.string(),
|
|
425
|
+
ok: z.boolean(),
|
|
426
|
+
error: z.string().optional(),
|
|
427
|
+
/** The node's Firecracker scaler names; empty when it runs none. */
|
|
428
|
+
firecrackerScalers: z.array(z.string()).optional(),
|
|
429
|
+
vms: z.array(scalerLiveVmSchema).optional(),
|
|
430
|
+
results: z.array(scalerVmStopResultSchema).optional()
|
|
431
|
+
});
|
|
349
432
|
/**
|
|
350
|
-
*
|
|
433
|
+
* What forgetting a departed peer did on one coordinator. `recent`: the peer
|
|
434
|
+
* was heard from inside the window this coordinator still treats it as alive
|
|
435
|
+
* for (the longer of the stale window and the reroute flap grace, or the
|
|
436
|
+
* backstop grace of a peer that adopted provisions), so it may be partitioned
|
|
437
|
+
* rather than gone. `acknowledgement-required`: forgetting it would switch this
|
|
438
|
+
* coordinator's event-provision backstop back on, and the request did not
|
|
439
|
+
* acknowledge that. Every outcome but `forgotten` keeps the peer.
|
|
440
|
+
*/
|
|
441
|
+
const PeerForgetOutcome = z.enum([
|
|
442
|
+
"forgotten",
|
|
443
|
+
"not-found",
|
|
444
|
+
"connected",
|
|
445
|
+
"recent",
|
|
446
|
+
"acknowledgement-required",
|
|
447
|
+
"error"
|
|
448
|
+
]);
|
|
449
|
+
/**
|
|
450
|
+
* Forget request: a coordinator that forgot a departed peer (`kici-admin peer
|
|
451
|
+
* forget`) asks each connected sibling coordinator to drop it from its own
|
|
452
|
+
* live peer registry too.
|
|
453
|
+
*/
|
|
454
|
+
const peerForgetRequestSchema = z.object({
|
|
455
|
+
type: z.literal("peer.forget.request"),
|
|
456
|
+
messageId: z.string(),
|
|
457
|
+
/** The departed peer's instance id. */
|
|
458
|
+
instanceId: z.string(),
|
|
459
|
+
/**
|
|
460
|
+
* The operator acknowledged that forgetting the peer may switch the
|
|
461
|
+
* event-provision backstop back on. Absent means not acknowledged.
|
|
462
|
+
*/
|
|
463
|
+
acknowledgeBackstop: z.boolean().optional()
|
|
464
|
+
});
|
|
465
|
+
/** Forget response: what the sibling did with the request. */
|
|
466
|
+
const peerForgetResponseSchema = z.object({
|
|
467
|
+
type: z.literal("peer.forget.response"),
|
|
468
|
+
messageId: z.string(),
|
|
469
|
+
outcome: PeerForgetOutcome,
|
|
470
|
+
detail: z.string()
|
|
471
|
+
});
|
|
472
|
+
/**
|
|
473
|
+
* Worker-relevant cluster settings a DB-less worker pulls from a coordinator.
|
|
351
474
|
*
|
|
352
475
|
* A typed, concrete snapshot (not an open key/value bus): each worker-consumed
|
|
353
476
|
* cluster knob is a field here. Adding the next worker-relevant knob is one
|
|
354
477
|
* field on this schema, not a new protocol message.
|
|
355
478
|
*/
|
|
356
|
-
const workerClusterSettingsSchema = z.object({
|
|
479
|
+
const workerClusterSettingsSchema = z.object({
|
|
480
|
+
agentTokenTtlMs: z.number(),
|
|
481
|
+
/**
|
|
482
|
+
* How long a Firecracker spawn waits for the VM's API socket. Optional: a
|
|
483
|
+
* leader that predates the knob omits it, and the worker keeps its own
|
|
484
|
+
* configured default.
|
|
485
|
+
*/
|
|
486
|
+
firecrackerApiSocketWaitMs: z.number().optional()
|
|
487
|
+
});
|
|
357
488
|
/**
|
|
358
|
-
* Cluster-settings pull request: a DB-less worker asks
|
|
359
|
-
* current worker-settings snapshot after
|
|
360
|
-
* clusterSettingsVersion ahead of its own. The
|
|
489
|
+
* Cluster-settings pull request: a DB-less worker asks a connected coordinator
|
|
490
|
+
* for the current worker-settings snapshot after a coordinator advertised a
|
|
491
|
+
* clusterSettingsVersion ahead of its own. The coordinator replies with
|
|
361
492
|
* peer.clusterSettings.response.
|
|
362
493
|
*/
|
|
363
494
|
const peerClusterSettingsRequestSchema = z.object({
|
|
@@ -365,7 +496,7 @@ const peerClusterSettingsRequestSchema = z.object({
|
|
|
365
496
|
messageId: z.string()
|
|
366
497
|
});
|
|
367
498
|
/**
|
|
368
|
-
* Cluster-settings pull response: the
|
|
499
|
+
* Cluster-settings pull response: the coordinator resolves the snapshot from
|
|
369
500
|
* cluster_settings and replies with it plus the current version.
|
|
370
501
|
*/
|
|
371
502
|
const peerClusterSettingsResponseSchema = z.object({
|
|
@@ -443,7 +574,14 @@ const peerScalerEventSchema = z.object({
|
|
|
443
574
|
/** Human-readable detail, including any captured spawn stderr tail. */
|
|
444
575
|
detail: z.string(),
|
|
445
576
|
/** Event timestamp in epoch milliseconds. */
|
|
446
|
-
timestampMs: z.number()
|
|
577
|
+
timestampMs: z.number(),
|
|
578
|
+
/**
|
|
579
|
+
* The worker's retry verdict on a `scaler.failed` for a job under its spawn-retry
|
|
580
|
+
* budget: false while attempts remain, true on the last one. Absent on a repeated
|
|
581
|
+
* report of one failed spawn, on every other relay, and from an older worker; the
|
|
582
|
+
* coordinator then keeps its spawn window running unchanged.
|
|
583
|
+
*/
|
|
584
|
+
final: z.boolean().optional()
|
|
447
585
|
});
|
|
448
586
|
/** All peer-to-peer messages (outbound from this node). */
|
|
449
587
|
const peerToPeerMessageSchema = z.discriminatedUnion("type", [
|
|
@@ -465,6 +603,10 @@ const peerToPeerMessageSchema = z.discriminatedUnion("type", [
|
|
|
465
603
|
peerCacheUploadResponseSchema,
|
|
466
604
|
peerConfigReloadSchema,
|
|
467
605
|
peerConfigReloadResponseSchema,
|
|
606
|
+
peerScalerOrphansRequestSchema,
|
|
607
|
+
peerScalerOrphansResponseSchema,
|
|
608
|
+
peerForgetRequestSchema,
|
|
609
|
+
peerForgetResponseSchema,
|
|
468
610
|
peerClusterSettingsRequestSchema,
|
|
469
611
|
peerClusterSettingsResponseSchema,
|
|
470
612
|
peerLogsCollectRequestSchema,
|
|
@@ -494,6 +636,10 @@ const peerFromPeerMessageSchema = z.discriminatedUnion("type", [
|
|
|
494
636
|
peerCacheUploadResponseSchema,
|
|
495
637
|
peerConfigReloadSchema,
|
|
496
638
|
peerConfigReloadResponseSchema,
|
|
639
|
+
peerScalerOrphansRequestSchema,
|
|
640
|
+
peerScalerOrphansResponseSchema,
|
|
641
|
+
peerForgetRequestSchema,
|
|
642
|
+
peerForgetResponseSchema,
|
|
497
643
|
peerClusterSettingsRequestSchema,
|
|
498
644
|
peerClusterSettingsResponseSchema,
|
|
499
645
|
peerLogsCollectRequestSchema,
|
|
@@ -504,6 +650,6 @@ const peerFromPeerMessageSchema = z.discriminatedUnion("type", [
|
|
|
504
650
|
peerScalerEventSchema
|
|
505
651
|
]);
|
|
506
652
|
//#endregion
|
|
507
|
-
export { 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 };
|
|
653
|
+
export { PeerForgetOutcome, ScalerOrphansAction, ScalerVmStatus, ScalerVmStopOutcome, ScalerVmTracker, fleetSelectionSchema, jobProgressAckSchema, jobProgressSchema, jobRerouteAckSchema, jobRerouteSchema, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerForgetRequestSchema, peerForgetResponseSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerScalerOrphansRequestSchema, peerScalerOrphansResponseSchema, peerToPeerMessageSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, rerouteSpawnRetrySchema, scalerLiveVmSchema, scalerVmStopResultSchema, workerClusterSettingsSchema };
|
|
508
654
|
|
|
509
655
|
//# sourceMappingURL=peer.js.map
|
|
@@ -2985,6 +2985,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2985
2985
|
"held_run.request": "held_run.request";
|
|
2986
2986
|
"job.cancel": "job.cancel";
|
|
2987
2987
|
"org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
|
|
2988
|
+
"peer.forget": "peer.forget";
|
|
2988
2989
|
purge_chunk: "purge_chunk";
|
|
2989
2990
|
"registration.delete": "registration.delete";
|
|
2990
2991
|
"registration.disable": "registration.disable";
|
|
@@ -3001,6 +3002,8 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3001
3002
|
"runs.list.read": "runs.list.read";
|
|
3002
3003
|
"scaler.agents.read": "scaler.agents.read";
|
|
3003
3004
|
"scaler.capacity.read": "scaler.capacity.read";
|
|
3005
|
+
"scaler.orphan.stop": "scaler.orphan.stop";
|
|
3006
|
+
"scaler.orphans.read": "scaler.orphans.read";
|
|
3004
3007
|
"secret.delete": "secret.delete";
|
|
3005
3008
|
"secret.list.read": "secret.list.read";
|
|
3006
3009
|
"secret.reveal": "secret.reveal";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kici-dev/engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "Shared business logic for the KiCI CI/CD stack: protocol, triggers, state machine, and provider interfaces used by the Platform relay, orchestrator, and compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
package/sbom.spdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@kici-dev/engine@0.
|
|
6
|
-
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fengine/0.
|
|
5
|
+
"name": "@kici-dev/engine@0.14.1",
|
|
6
|
+
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fengine/0.14.1/bdf9966d-24d2-432a-b69d-6100cb893919",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-
|
|
8
|
+
"created": "2026-10-02T17:53:08Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: kici-sbom-generator"
|
|
11
11
|
]
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
{
|
|
55
55
|
"SPDXID": "SPDXRef-RootPackage",
|
|
56
56
|
"name": "@kici-dev/engine",
|
|
57
|
-
"versionInfo": "0.
|
|
57
|
+
"versionInfo": "0.14.1",
|
|
58
58
|
"downloadLocation": "NOASSERTION",
|
|
59
59
|
"filesAnalyzed": false,
|
|
60
60
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
{
|
|
66
66
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
67
67
|
"referenceType": "purl",
|
|
68
|
-
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.
|
|
68
|
+
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.14.1"
|
|
69
69
|
}
|
|
70
70
|
],
|
|
71
71
|
"description": "Shared business logic for the KiCI CI/CD stack: protocol, triggers, state machine, and provider interfaces used by the Platform relay, orchestrator, and compiler.",
|