@lssm/lib.infra-ops-spec 2.0.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.
Files changed (64) hide show
  1. package/README.md +61 -0
  2. package/dist/fixtures-deployment.d.ts +249 -0
  3. package/dist/fixtures-deployment.js +2 -0
  4. package/dist/fixtures-incident.d.ts +219 -0
  5. package/dist/fixtures-incident.js +2 -0
  6. package/dist/fixtures.d.ts +2 -0
  7. package/dist/fixtures.js +2 -0
  8. package/dist/index.d.ts +8 -0
  9. package/dist/index.js +2 -0
  10. package/dist/infra-ops-spec.test.d.ts +1 -0
  11. package/dist/intent-architecture.d.ts +104 -0
  12. package/dist/intent-architecture.js +2 -0
  13. package/dist/intent-canonical.d.ts +4 -0
  14. package/dist/intent-canonical.js +2 -0
  15. package/dist/intent-comparison.d.ts +8 -0
  16. package/dist/intent-comparison.js +2 -0
  17. package/dist/intent-core.d.ts +98 -0
  18. package/dist/intent-core.js +2 -0
  19. package/dist/intent-decisions.d.ts +72 -0
  20. package/dist/intent-decisions.js +2 -0
  21. package/dist/intent-fixtures-decision.d.ts +4 -0
  22. package/dist/intent-fixtures-decision.js +2 -0
  23. package/dist/intent-fixtures.d.ts +3 -0
  24. package/dist/intent-fixtures.js +2 -0
  25. package/dist/intent-plans.d.ts +64 -0
  26. package/dist/intent-plans.js +2 -0
  27. package/dist/intent-types.d.ts +284 -0
  28. package/dist/intent-types.js +2 -0
  29. package/dist/intent-validation-bindings.d.ts +3 -0
  30. package/dist/intent-validation-bindings.js +2 -0
  31. package/dist/intent-validation-refs.d.ts +7 -0
  32. package/dist/intent-validation-refs.js +2 -0
  33. package/dist/intent-validation-rules.d.ts +3 -0
  34. package/dist/intent-validation-rules.js +2 -0
  35. package/dist/intent-validation-shared.d.ts +9 -0
  36. package/dist/intent-validation-shared.js +2 -0
  37. package/dist/intent-validation.d.ts +10 -0
  38. package/dist/intent-validation.js +2 -0
  39. package/dist/intent.test.d.ts +1 -0
  40. package/dist/node/fixtures-deployment.js +1 -0
  41. package/dist/node/fixtures-incident.js +1 -0
  42. package/dist/node/fixtures.js +1 -0
  43. package/dist/node/index.js +1 -0
  44. package/dist/node/intent-architecture.js +1 -0
  45. package/dist/node/intent-canonical.js +1 -0
  46. package/dist/node/intent-comparison.js +1 -0
  47. package/dist/node/intent-core.js +1 -0
  48. package/dist/node/intent-decisions.js +1 -0
  49. package/dist/node/intent-fixtures-decision.js +1 -0
  50. package/dist/node/intent-fixtures.js +1 -0
  51. package/dist/node/intent-plans.js +1 -0
  52. package/dist/node/intent-types.js +1 -0
  53. package/dist/node/intent-validation-bindings.js +1 -0
  54. package/dist/node/intent-validation-refs.js +1 -0
  55. package/dist/node/intent-validation-rules.js +1 -0
  56. package/dist/node/intent-validation-shared.js +1 -0
  57. package/dist/node/intent-validation.js +1 -0
  58. package/dist/node/types.js +1 -0
  59. package/dist/node/validation.js +1 -0
  60. package/dist/types.d.ts +748 -0
  61. package/dist/types.js +2 -0
  62. package/dist/validation.d.ts +13 -0
  63. package/dist/validation.js +2 -0
  64. package/package.json +421 -0
package/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # `@lssm/lib.infra-ops-spec`
2
+
3
+ Provider-neutral infrastructure operations contracts and evidence for autonomous-company deployment and incident loops.
4
+
5
+ This package closes the Phase 2 infra-ops gap as a **contract/evidence** layer. It does not deploy services, page humans, resolve secrets, run migrations, or call provider APIs.
6
+
7
+ ## Public entrypoints
8
+
9
+ - `@lssm/lib.infra-ops-spec` — root barrel
10
+ - `@lssm/lib.infra-ops-spec/types` — schemas and TypeScript types
11
+ - `@lssm/lib.infra-ops-spec/fixtures` — canonical deployment and incident fixtures
12
+ - `@lssm/lib.infra-ops-spec/validation` — semantic validation helpers
13
+ - `@lssm/lib.infra-ops-spec/intent-types` — additive V2 infrastructure-intent schemas and types
14
+ - `@lssm/lib.infra-ops-spec/intent-fixtures` — canonical provider-neutral V2 fixture
15
+ - `@lssm/lib.infra-ops-spec/intent-validation` — V2 reference, waiver, policy, decision, and leakage validation
16
+
17
+ ## Contract families
18
+
19
+ The package models:
20
+
21
+ - environments, runtime targets, and services;
22
+ - deployments, releases, migration windows, rollbacks, and pipelines;
23
+ - health/readiness/liveness checks, SLOs, monitors, and alerts;
24
+ - incidents, on-call ownership, escalation, mitigation, and postmortems;
25
+ - capacity plans, cost budgets, secret refs, operational risks, approvals, and evidence receipts.
26
+
27
+ ## Boundary
28
+
29
+ Adjacent systems are referenced through branded refs only:
30
+
31
+ - progressive delivery rollout/rollback refs;
32
+ - observability metric/trace/log refs;
33
+ - job schedule refs;
34
+ - integration capability refs;
35
+ - CompanyOS policy/owner refs;
36
+ - orchestration workflow refs;
37
+ - cost budget and metering usage refs.
38
+
39
+ No provider SDKs, credentials, live provider config, network calls, deployment runners, incident automation, queues, or secret resolution are included.
40
+
41
+ ## Infrastructure intent V2
42
+
43
+ V2 is additive: every V1 entrypoint and schema remains supported unchanged. The
44
+ new contract graph captures operational goals and requirements, quantified
45
+ workload envelopes, restrictions and provider policy, logical capabilities,
46
+ bindings, evolution triggers, scoped expiring waivers, architecture candidates,
47
+ Pareto comparisons, ADRs, implementation-neutral plans, handoff evidence, and
48
+ unsatisfiable-requirement reports.
49
+
50
+ Candidate comparison first rejects candidates with hard violations. It then
51
+ computes a deterministic Pareto frontier across cost, reliability, performance,
52
+ scalability, portability, complexity, and migration risk; IDs provide stable
53
+ ordering but never override the multi-objective frontier. Waiver inheritance is
54
+ tightening-only: a child cannot broaden scope, change the waived restriction, or
55
+ outlive its parent. Provider policy can mark restrictions non-waivable.
56
+
57
+ `validateInfrastructureIntentV2` performs strict schema and semantic validation.
58
+ `canonicalizeInfrastructureIntent` and `digestInfrastructureIntent` provide a
59
+ stable JSON projection and SHA-256 binding for review and handoff receipts. These
60
+ contracts contain target classes and redacted references only—never provider
61
+ credentials, SDK configuration, resolved secrets, or execution behavior.
@@ -0,0 +1,249 @@
1
+ export declare const deploymentReleaseLoopFixture: {
2
+ id: string;
3
+ version: string;
4
+ environments: {
5
+ id: string;
6
+ name: string;
7
+ tier: "production";
8
+ ownerRef: {
9
+ readonly id: 'owner_platform_ops';
10
+ readonly kind: 'companyos_owner';
11
+ };
12
+ }[];
13
+ runtimeTargets: {
14
+ id: string;
15
+ type: "web";
16
+ capabilityRefs: {
17
+ id: string;
18
+ kind: "integration_capability";
19
+ }[];
20
+ }[];
21
+ services: {
22
+ id: string;
23
+ name: string;
24
+ runtimeTargetId: string;
25
+ ownerRef: {
26
+ readonly id: 'owner_platform_ops';
27
+ readonly kind: 'companyos_owner';
28
+ };
29
+ }[];
30
+ pipelines: {
31
+ id: string;
32
+ jobScheduleRef: {
33
+ id: string;
34
+ kind: "job_schedule";
35
+ };
36
+ capabilityRefs: {
37
+ id: string;
38
+ kind: "integration_capability";
39
+ }[];
40
+ ownerRef: {
41
+ readonly id: 'owner_platform_ops';
42
+ readonly kind: 'companyos_owner';
43
+ };
44
+ }[];
45
+ migrationWindows: {
46
+ id: string;
47
+ serviceId: string;
48
+ windowRef: string;
49
+ rollbackRef: {
50
+ id: string;
51
+ kind: "progressive_delivery_rollback";
52
+ };
53
+ ownerRef: {
54
+ readonly id: 'owner_platform_ops';
55
+ readonly kind: 'companyos_owner';
56
+ };
57
+ evidenceReceiptIds: string[];
58
+ }[];
59
+ deployments: {
60
+ id: string;
61
+ environmentId: string;
62
+ serviceId: string;
63
+ pipelineId: string;
64
+ rolloutRef: {
65
+ id: string;
66
+ kind: "progressive_delivery_rollout";
67
+ };
68
+ rollbackRef: {
69
+ id: string;
70
+ kind: "progressive_delivery_rollback";
71
+ };
72
+ approvalRequirementId: string;
73
+ healthCheckIds: string[];
74
+ sloIds: string[];
75
+ evidenceReceiptIds: string[];
76
+ highRisk: true;
77
+ }[];
78
+ releases: {
79
+ id: string;
80
+ deploymentId: string;
81
+ version: string;
82
+ orchestrationRef: {
83
+ id: string;
84
+ kind: "orchestration_workflow";
85
+ };
86
+ }[];
87
+ rollbacks: {
88
+ id: string;
89
+ deploymentId: string;
90
+ rollbackRef: {
91
+ id: string;
92
+ kind: "progressive_delivery_rollback";
93
+ };
94
+ priorEvidenceReceiptId: string;
95
+ }[];
96
+ healthChecks: ({
97
+ id: string;
98
+ serviceId: string;
99
+ kind: "health";
100
+ metricRef: {
101
+ id: string;
102
+ kind: "observability_metric";
103
+ };
104
+ } | {
105
+ id: string;
106
+ serviceId: string;
107
+ kind: "readiness";
108
+ metricRef: {
109
+ id: string;
110
+ kind: "observability_metric";
111
+ };
112
+ } | {
113
+ id: string;
114
+ serviceId: string;
115
+ kind: "liveness";
116
+ metricRef: {
117
+ id: string;
118
+ kind: "observability_metric";
119
+ };
120
+ })[];
121
+ slos: {
122
+ id: string;
123
+ serviceId: string;
124
+ objective: string;
125
+ threshold: string;
126
+ metricRefs: {
127
+ id: string;
128
+ kind: "observability_metric";
129
+ }[];
130
+ ownerRef: {
131
+ readonly id: 'owner_platform_ops';
132
+ readonly kind: 'companyos_owner';
133
+ };
134
+ }[];
135
+ monitors: {
136
+ id: string;
137
+ serviceId: string;
138
+ metricRefs: {
139
+ id: string;
140
+ kind: "observability_metric";
141
+ }[];
142
+ traceRefs: {
143
+ id: string;
144
+ kind: "observability_trace";
145
+ }[];
146
+ logRefs: {
147
+ id: string;
148
+ kind: "observability_log";
149
+ }[];
150
+ }[];
151
+ alerts: never[];
152
+ onCall: never[];
153
+ escalations: never[];
154
+ incidents: never[];
155
+ postmortems: never[];
156
+ capacityPlans: {
157
+ id: string;
158
+ serviceId: string;
159
+ expectedLoad: string;
160
+ thresholds: string[];
161
+ ownerRef: {
162
+ readonly id: 'owner_platform_ops';
163
+ readonly kind: 'companyos_owner';
164
+ };
165
+ evidenceReceiptIds: string[];
166
+ }[];
167
+ costBudgets: {
168
+ id: string;
169
+ serviceId: string;
170
+ budgetRef: {
171
+ id: string;
172
+ kind: "cost_budget";
173
+ };
174
+ usageRef: {
175
+ id: string;
176
+ kind: "metering_usage";
177
+ };
178
+ thresholds: string[];
179
+ ownerRef: {
180
+ readonly id: 'owner_platform_ops';
181
+ readonly kind: 'companyos_owner';
182
+ };
183
+ }[];
184
+ secretRefs: {
185
+ id: string;
186
+ purpose: string;
187
+ ref: string;
188
+ ownerRef: {
189
+ readonly id: 'owner_platform_ops';
190
+ readonly kind: 'companyos_owner';
191
+ };
192
+ }[];
193
+ operationalRisks: {
194
+ id: string;
195
+ serviceId: string;
196
+ level: "high";
197
+ mitigationRef: string;
198
+ ownerRef: {
199
+ readonly id: 'owner_platform_ops';
200
+ readonly kind: 'companyos_owner';
201
+ };
202
+ }[];
203
+ approvalRequirements: {
204
+ id: string;
205
+ policyGateRef: {
206
+ readonly id: 'policy_gate_production_release';
207
+ readonly kind: 'companyos_policy_gate';
208
+ };
209
+ ownerRef: {
210
+ readonly id: 'owner_platform_ops';
211
+ readonly kind: 'companyos_owner';
212
+ };
213
+ requiredFor: string[];
214
+ }[];
215
+ evidenceReceipts: ({
216
+ id: string;
217
+ sourceRef: string;
218
+ action: string;
219
+ actorRef: {
220
+ readonly id: 'owner_platform_ops';
221
+ readonly kind: 'companyos_owner';
222
+ };
223
+ targetRef: string;
224
+ outcome: "planned";
225
+ observedAt: string;
226
+ } | {
227
+ id: string;
228
+ sourceRef: string;
229
+ action: string;
230
+ actorRef: {
231
+ readonly id: 'owner_platform_ops';
232
+ readonly kind: 'companyos_owner';
233
+ };
234
+ targetRef: string;
235
+ outcome: "approved";
236
+ observedAt: string;
237
+ } | {
238
+ id: string;
239
+ sourceRef: string;
240
+ action: string;
241
+ actorRef: {
242
+ readonly id: 'owner_platform_ops';
243
+ readonly kind: 'companyos_owner';
244
+ };
245
+ targetRef: string;
246
+ outcome: "succeeded";
247
+ observedAt: string;
248
+ })[];
249
+ };
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ var e={id:"owner_platform_ops",kind:"companyos_owner"},r={id:"policy_gate_production_release",kind:"companyos_policy_gate"},t={id:"infra_ops_deployment_release_loop",version:"1.0.0",environments:[{id:"env_production",name:"Production",tier:"production",ownerRef:e}],runtimeTargets:[{id:"runtime_web_edge",type:"web",capabilityRefs:[{id:"capability_static_web_runtime",kind:"integration_capability"}]}],services:[{id:"service_customer_portal",name:"Customer portal",runtimeTargetId:"runtime_web_edge",ownerRef:e}],pipelines:[{id:"pipeline_customer_portal_release",jobScheduleRef:{id:"job_release_pipeline",kind:"job_schedule"},capabilityRefs:[{id:"capability_release_artifact",kind:"integration_capability"}],ownerRef:e}],migrationWindows:[{id:"migration_customer_portal_content",serviceId:"service_customer_portal",windowRef:"window:2026-05-09T20:00:00Z/PT1H",rollbackRef:{id:"rollback_customer_portal",kind:"progressive_delivery_rollback"},ownerRef:e,evidenceReceiptIds:["evidence_migration_plan"]}],deployments:[{id:"deployment_customer_portal_v2",environmentId:"env_production",serviceId:"service_customer_portal",pipelineId:"pipeline_customer_portal_release",rolloutRef:{id:"rollout_customer_portal_canary",kind:"progressive_delivery_rollout"},rollbackRef:{id:"rollback_customer_portal",kind:"progressive_delivery_rollback"},approvalRequirementId:"approval_customer_portal_release",healthCheckIds:["health_customer_portal","ready_customer_portal","live_customer_portal"],sloIds:["slo_customer_portal_availability"],evidenceReceiptIds:["evidence_release_plan","evidence_release_approval","evidence_rollout_started","evidence_health_passed"],highRisk:!0}],releases:[{id:"release_customer_portal_v2",deploymentId:"deployment_customer_portal_v2",version:"2.0.0",orchestrationRef:{id:"orchestration_release_customer_portal",kind:"orchestration_workflow"}}],rollbacks:[{id:"rollback_customer_portal_v2",deploymentId:"deployment_customer_portal_v2",rollbackRef:{id:"rollback_customer_portal",kind:"progressive_delivery_rollback"},priorEvidenceReceiptId:"evidence_rollout_started"}],healthChecks:[{id:"health_customer_portal",serviceId:"service_customer_portal",kind:"health",metricRef:{id:"metric_http_200",kind:"observability_metric"}},{id:"ready_customer_portal",serviceId:"service_customer_portal",kind:"readiness",metricRef:{id:"metric_ready",kind:"observability_metric"}},{id:"live_customer_portal",serviceId:"service_customer_portal",kind:"liveness",metricRef:{id:"metric_live",kind:"observability_metric"}}],slos:[{id:"slo_customer_portal_availability",serviceId:"service_customer_portal",objective:"monthly availability",threshold:"99.9%",metricRefs:[{id:"metric_http_200",kind:"observability_metric"}],ownerRef:e}],monitors:[{id:"monitor_customer_portal",serviceId:"service_customer_portal",metricRefs:[{id:"metric_http_200",kind:"observability_metric"}],traceRefs:[{id:"trace_checkout",kind:"observability_trace"}],logRefs:[{id:"log_edge_errors",kind:"observability_log"}]}],alerts:[],onCall:[],escalations:[],incidents:[],postmortems:[],capacityPlans:[{id:"capacity_customer_portal_peak",serviceId:"service_customer_portal",expectedLoad:"1000 rpm",thresholds:["cpu < 70%","p95 < 250ms"],ownerRef:e,evidenceReceiptIds:["evidence_capacity_review"]}],costBudgets:[{id:"cost_customer_portal_monthly",serviceId:"service_customer_portal",budgetRef:{id:"budget_customer_portal",kind:"cost_budget"},usageRef:{id:"usage_customer_portal",kind:"metering_usage"},thresholds:["warn at 80%","block at 120%"],ownerRef:e}],secretRefs:[{id:"secret_customer_portal_runtime",purpose:"runtime configuration",ref:"secretref:customer-portal-runtime",ownerRef:e}],operationalRisks:[{id:"risk_customer_portal_release",serviceId:"service_customer_portal",level:"high",mitigationRef:"rollback_customer_portal_v2",ownerRef:e}],approvalRequirements:[{id:"approval_customer_portal_release",policyGateRef:r,ownerRef:e,requiredFor:["deployment_customer_portal_v2"]}],evidenceReceipts:[{id:"evidence_migration_plan",sourceRef:"migration_customer_portal_content",action:"plan_migration",actorRef:e,targetRef:"service_customer_portal",outcome:"planned",observedAt:"2026-05-09T10:00:00Z"},{id:"evidence_release_plan",sourceRef:"release_customer_portal_v2",action:"plan_release",actorRef:e,targetRef:"deployment_customer_portal_v2",outcome:"planned",observedAt:"2026-05-09T10:05:00Z"},{id:"evidence_release_approval",sourceRef:"approval_customer_portal_release",action:"approve_release",actorRef:e,targetRef:"deployment_customer_portal_v2",outcome:"approved",observedAt:"2026-05-09T10:10:00Z"},{id:"evidence_rollout_started",sourceRef:"rollout_customer_portal_canary",action:"record_rollout",actorRef:e,targetRef:"deployment_customer_portal_v2",outcome:"succeeded",observedAt:"2026-05-09T10:15:00Z"},{id:"evidence_health_passed",sourceRef:"health_customer_portal",action:"verify_health",actorRef:e,targetRef:"deployment_customer_portal_v2",outcome:"succeeded",observedAt:"2026-05-09T10:20:00Z"},{id:"evidence_capacity_review",sourceRef:"capacity_customer_portal_peak",action:"review_capacity",actorRef:e,targetRef:"service_customer_portal",outcome:"succeeded",observedAt:"2026-05-09T10:25:00Z"}]};export{t as deploymentReleaseLoopFixture};
@@ -0,0 +1,219 @@
1
+ export declare const incidentLoopFixture: {
2
+ id: string;
3
+ version: string;
4
+ environments: {
5
+ id: string;
6
+ name: string;
7
+ tier: "production";
8
+ ownerRef: {
9
+ readonly id: 'owner_reliability_ops';
10
+ readonly kind: 'companyos_owner';
11
+ };
12
+ }[];
13
+ runtimeTargets: {
14
+ id: string;
15
+ type: "api";
16
+ capabilityRefs: {
17
+ id: string;
18
+ kind: "integration_capability";
19
+ }[];
20
+ }[];
21
+ services: {
22
+ id: string;
23
+ name: string;
24
+ runtimeTargetId: string;
25
+ ownerRef: {
26
+ readonly id: 'owner_reliability_ops';
27
+ readonly kind: 'companyos_owner';
28
+ };
29
+ }[];
30
+ pipelines: never[];
31
+ migrationWindows: never[];
32
+ deployments: never[];
33
+ releases: never[];
34
+ rollbacks: never[];
35
+ healthChecks: {
36
+ id: string;
37
+ serviceId: string;
38
+ kind: "health";
39
+ metricRef: {
40
+ id: string;
41
+ kind: "observability_metric";
42
+ };
43
+ }[];
44
+ slos: {
45
+ id: string;
46
+ serviceId: string;
47
+ objective: string;
48
+ threshold: string;
49
+ metricRefs: {
50
+ id: string;
51
+ kind: "observability_metric";
52
+ }[];
53
+ ownerRef: {
54
+ readonly id: 'owner_reliability_ops';
55
+ readonly kind: 'companyos_owner';
56
+ };
57
+ }[];
58
+ monitors: {
59
+ id: string;
60
+ serviceId: string;
61
+ metricRefs: {
62
+ id: string;
63
+ kind: "observability_metric";
64
+ }[];
65
+ traceRefs: {
66
+ id: string;
67
+ kind: "observability_trace";
68
+ }[];
69
+ logRefs: {
70
+ id: string;
71
+ kind: "observability_log";
72
+ }[];
73
+ }[];
74
+ alerts: {
75
+ id: string;
76
+ serviceId: string;
77
+ severity: "high";
78
+ monitorId: string;
79
+ sloId: string;
80
+ }[];
81
+ onCall: {
82
+ id: string;
83
+ serviceId: string;
84
+ ownerRef: {
85
+ readonly id: 'owner_reliability_ops';
86
+ readonly kind: 'companyos_owner';
87
+ };
88
+ scheduleRef: {
89
+ id: string;
90
+ kind: "job_schedule";
91
+ };
92
+ }[];
93
+ escalations: {
94
+ id: string;
95
+ incidentId: string;
96
+ onCallId: string;
97
+ ownerRef: {
98
+ readonly id: 'owner_reliability_ops';
99
+ readonly kind: 'companyos_owner';
100
+ };
101
+ }[];
102
+ incidents: {
103
+ id: string;
104
+ alertId: string;
105
+ environmentId: string;
106
+ serviceId: string;
107
+ severity: "high";
108
+ escalationId: string;
109
+ mitigationOwnerRef: {
110
+ readonly id: 'owner_reliability_ops';
111
+ readonly kind: 'companyos_owner';
112
+ };
113
+ postmortemId: string;
114
+ evidenceReceiptIds: string[];
115
+ }[];
116
+ postmortems: {
117
+ id: string;
118
+ incidentId: string;
119
+ ownerRef: {
120
+ readonly id: 'owner_reliability_ops';
121
+ readonly kind: 'companyos_owner';
122
+ };
123
+ evidenceReceiptIds: string[];
124
+ followUpRefs: string[];
125
+ }[];
126
+ capacityPlans: {
127
+ id: string;
128
+ serviceId: string;
129
+ expectedLoad: string;
130
+ thresholds: string[];
131
+ ownerRef: {
132
+ readonly id: 'owner_reliability_ops';
133
+ readonly kind: 'companyos_owner';
134
+ };
135
+ evidenceReceiptIds: string[];
136
+ }[];
137
+ costBudgets: {
138
+ id: string;
139
+ serviceId: string;
140
+ budgetRef: {
141
+ id: string;
142
+ kind: "cost_budget";
143
+ };
144
+ usageRef: {
145
+ id: string;
146
+ kind: "metering_usage";
147
+ };
148
+ thresholds: string[];
149
+ ownerRef: {
150
+ readonly id: 'owner_reliability_ops';
151
+ readonly kind: 'companyos_owner';
152
+ };
153
+ }[];
154
+ secretRefs: {
155
+ id: string;
156
+ purpose: string;
157
+ ref: string;
158
+ ownerRef: {
159
+ readonly id: 'owner_reliability_ops';
160
+ readonly kind: 'companyos_owner';
161
+ };
162
+ }[];
163
+ operationalRisks: {
164
+ id: string;
165
+ serviceId: string;
166
+ level: "high";
167
+ mitigationRef: string;
168
+ ownerRef: {
169
+ readonly id: 'owner_reliability_ops';
170
+ readonly kind: 'companyos_owner';
171
+ };
172
+ }[];
173
+ approvalRequirements: never[];
174
+ evidenceReceipts: ({
175
+ id: string;
176
+ sourceRef: string;
177
+ action: string;
178
+ actorRef: {
179
+ readonly id: 'owner_reliability_ops';
180
+ readonly kind: 'companyos_owner';
181
+ };
182
+ targetRef: string;
183
+ outcome: "failed";
184
+ observedAt: string;
185
+ } | {
186
+ id: string;
187
+ sourceRef: string;
188
+ action: string;
189
+ actorRef: {
190
+ readonly id: 'owner_reliability_ops';
191
+ readonly kind: 'companyos_owner';
192
+ };
193
+ targetRef: string;
194
+ outcome: "planned";
195
+ observedAt: string;
196
+ } | {
197
+ id: string;
198
+ sourceRef: string;
199
+ action: string;
200
+ actorRef: {
201
+ readonly id: 'owner_reliability_ops';
202
+ readonly kind: 'companyos_owner';
203
+ };
204
+ targetRef: string;
205
+ outcome: "mitigated";
206
+ observedAt: string;
207
+ } | {
208
+ id: string;
209
+ sourceRef: string;
210
+ action: string;
211
+ actorRef: {
212
+ readonly id: 'owner_reliability_ops';
213
+ readonly kind: 'companyos_owner';
214
+ };
215
+ targetRef: string;
216
+ outcome: "succeeded";
217
+ observedAt: string;
218
+ })[];
219
+ };
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ var e={id:"owner_reliability_ops",kind:"companyos_owner"},i={id:"infra_ops_incident_loop",version:"1.0.0",environments:[{id:"env_production",name:"Production",tier:"production",ownerRef:e}],runtimeTargets:[{id:"runtime_api_worker",type:"api",capabilityRefs:[{id:"capability_api_runtime",kind:"integration_capability"}]}],services:[{id:"service_billing_api",name:"Billing API",runtimeTargetId:"runtime_api_worker",ownerRef:e}],pipelines:[],migrationWindows:[],deployments:[],releases:[],rollbacks:[],healthChecks:[{id:"health_billing_api",serviceId:"service_billing_api",kind:"health",metricRef:{id:"metric_billing_http_200",kind:"observability_metric"}}],slos:[{id:"slo_billing_latency",serviceId:"service_billing_api",objective:"p95 latency",threshold:"< 300ms",metricRefs:[{id:"metric_billing_latency",kind:"observability_metric"}],ownerRef:e}],monitors:[{id:"monitor_billing_latency",serviceId:"service_billing_api",metricRefs:[{id:"metric_billing_latency",kind:"observability_metric"}],traceRefs:[{id:"trace_billing_api",kind:"observability_trace"}],logRefs:[{id:"log_billing_errors",kind:"observability_log"}]}],alerts:[{id:"alert_billing_latency",serviceId:"service_billing_api",severity:"high",monitorId:"monitor_billing_latency",sloId:"slo_billing_latency"}],onCall:[{id:"oncall_billing_api",serviceId:"service_billing_api",ownerRef:e,scheduleRef:{id:"job_oncall_rotation",kind:"job_schedule"}}],escalations:[{id:"escalation_billing_latency",incidentId:"incident_billing_latency",onCallId:"oncall_billing_api",ownerRef:e}],incidents:[{id:"incident_billing_latency",alertId:"alert_billing_latency",environmentId:"env_production",serviceId:"service_billing_api",severity:"high",escalationId:"escalation_billing_latency",mitigationOwnerRef:e,postmortemId:"postmortem_billing_latency",evidenceReceiptIds:["evidence_alert_triggered","evidence_incident_triaged","evidence_mitigation_applied"]}],postmortems:[{id:"postmortem_billing_latency",incidentId:"incident_billing_latency",ownerRef:e,evidenceReceiptIds:["evidence_postmortem_written"],followUpRefs:["work_followup_billing_cache_guardrail"]}],capacityPlans:[{id:"capacity_billing_api_peak",serviceId:"service_billing_api",expectedLoad:"500 rpm",thresholds:["p95 < 300ms"],ownerRef:e,evidenceReceiptIds:["evidence_capacity_review"]}],costBudgets:[{id:"cost_billing_api_monthly",serviceId:"service_billing_api",budgetRef:{id:"budget_billing_api",kind:"cost_budget"},usageRef:{id:"usage_billing_api",kind:"metering_usage"},thresholds:["warn at 80%","block at 120%"],ownerRef:e}],secretRefs:[{id:"secret_billing_runtime",purpose:"runtime configuration",ref:"secretref:billing-runtime",ownerRef:e}],operationalRisks:[{id:"risk_billing_latency",serviceId:"service_billing_api",level:"high",mitigationRef:"work_followup_billing_cache_guardrail",ownerRef:e}],approvalRequirements:[],evidenceReceipts:[{id:"evidence_alert_triggered",sourceRef:"alert_billing_latency",action:"record_alert",actorRef:e,targetRef:"incident_billing_latency",outcome:"failed",observedAt:"2026-05-09T11:00:00Z"},{id:"evidence_incident_triaged",sourceRef:"incident_billing_latency",action:"triage_incident",actorRef:e,targetRef:"service_billing_api",outcome:"planned",observedAt:"2026-05-09T11:05:00Z"},{id:"evidence_mitigation_applied",sourceRef:"incident_billing_latency",action:"apply_mitigation",actorRef:e,targetRef:"service_billing_api",outcome:"mitigated",observedAt:"2026-05-09T11:20:00Z"},{id:"evidence_postmortem_written",sourceRef:"postmortem_billing_latency",action:"write_postmortem",actorRef:e,targetRef:"incident_billing_latency",outcome:"succeeded",observedAt:"2026-05-09T12:00:00Z"},{id:"evidence_capacity_review",sourceRef:"capacity_billing_api_peak",action:"review_capacity",actorRef:e,targetRef:"service_billing_api",outcome:"succeeded",observedAt:"2026-05-09T12:10:00Z"}]};export{i as incidentLoopFixture};
@@ -0,0 +1,2 @@
1
+ export * from './fixtures-deployment.js';
2
+ export * from './fixtures-incident.js';
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ var e={id:"owner_platform_ops",kind:"companyos_owner"},t={id:"policy_gate_production_release",kind:"companyos_policy_gate"},r={id:"infra_ops_deployment_release_loop",version:"1.0.0",environments:[{id:"env_production",name:"Production",tier:"production",ownerRef:e}],runtimeTargets:[{id:"runtime_web_edge",type:"web",capabilityRefs:[{id:"capability_static_web_runtime",kind:"integration_capability"}]}],services:[{id:"service_customer_portal",name:"Customer portal",runtimeTargetId:"runtime_web_edge",ownerRef:e}],pipelines:[{id:"pipeline_customer_portal_release",jobScheduleRef:{id:"job_release_pipeline",kind:"job_schedule"},capabilityRefs:[{id:"capability_release_artifact",kind:"integration_capability"}],ownerRef:e}],migrationWindows:[{id:"migration_customer_portal_content",serviceId:"service_customer_portal",windowRef:"window:2026-05-09T20:00:00Z/PT1H",rollbackRef:{id:"rollback_customer_portal",kind:"progressive_delivery_rollback"},ownerRef:e,evidenceReceiptIds:["evidence_migration_plan"]}],deployments:[{id:"deployment_customer_portal_v2",environmentId:"env_production",serviceId:"service_customer_portal",pipelineId:"pipeline_customer_portal_release",rolloutRef:{id:"rollout_customer_portal_canary",kind:"progressive_delivery_rollout"},rollbackRef:{id:"rollback_customer_portal",kind:"progressive_delivery_rollback"},approvalRequirementId:"approval_customer_portal_release",healthCheckIds:["health_customer_portal","ready_customer_portal","live_customer_portal"],sloIds:["slo_customer_portal_availability"],evidenceReceiptIds:["evidence_release_plan","evidence_release_approval","evidence_rollout_started","evidence_health_passed"],highRisk:!0}],releases:[{id:"release_customer_portal_v2",deploymentId:"deployment_customer_portal_v2",version:"2.0.0",orchestrationRef:{id:"orchestration_release_customer_portal",kind:"orchestration_workflow"}}],rollbacks:[{id:"rollback_customer_portal_v2",deploymentId:"deployment_customer_portal_v2",rollbackRef:{id:"rollback_customer_portal",kind:"progressive_delivery_rollback"},priorEvidenceReceiptId:"evidence_rollout_started"}],healthChecks:[{id:"health_customer_portal",serviceId:"service_customer_portal",kind:"health",metricRef:{id:"metric_http_200",kind:"observability_metric"}},{id:"ready_customer_portal",serviceId:"service_customer_portal",kind:"readiness",metricRef:{id:"metric_ready",kind:"observability_metric"}},{id:"live_customer_portal",serviceId:"service_customer_portal",kind:"liveness",metricRef:{id:"metric_live",kind:"observability_metric"}}],slos:[{id:"slo_customer_portal_availability",serviceId:"service_customer_portal",objective:"monthly availability",threshold:"99.9%",metricRefs:[{id:"metric_http_200",kind:"observability_metric"}],ownerRef:e}],monitors:[{id:"monitor_customer_portal",serviceId:"service_customer_portal",metricRefs:[{id:"metric_http_200",kind:"observability_metric"}],traceRefs:[{id:"trace_checkout",kind:"observability_trace"}],logRefs:[{id:"log_edge_errors",kind:"observability_log"}]}],alerts:[],onCall:[],escalations:[],incidents:[],postmortems:[],capacityPlans:[{id:"capacity_customer_portal_peak",serviceId:"service_customer_portal",expectedLoad:"1000 rpm",thresholds:["cpu < 70%","p95 < 250ms"],ownerRef:e,evidenceReceiptIds:["evidence_capacity_review"]}],costBudgets:[{id:"cost_customer_portal_monthly",serviceId:"service_customer_portal",budgetRef:{id:"budget_customer_portal",kind:"cost_budget"},usageRef:{id:"usage_customer_portal",kind:"metering_usage"},thresholds:["warn at 80%","block at 120%"],ownerRef:e}],secretRefs:[{id:"secret_customer_portal_runtime",purpose:"runtime configuration",ref:"secretref:customer-portal-runtime",ownerRef:e}],operationalRisks:[{id:"risk_customer_portal_release",serviceId:"service_customer_portal",level:"high",mitigationRef:"rollback_customer_portal_v2",ownerRef:e}],approvalRequirements:[{id:"approval_customer_portal_release",policyGateRef:t,ownerRef:e,requiredFor:["deployment_customer_portal_v2"]}],evidenceReceipts:[{id:"evidence_migration_plan",sourceRef:"migration_customer_portal_content",action:"plan_migration",actorRef:e,targetRef:"service_customer_portal",outcome:"planned",observedAt:"2026-05-09T10:00:00Z"},{id:"evidence_release_plan",sourceRef:"release_customer_portal_v2",action:"plan_release",actorRef:e,targetRef:"deployment_customer_portal_v2",outcome:"planned",observedAt:"2026-05-09T10:05:00Z"},{id:"evidence_release_approval",sourceRef:"approval_customer_portal_release",action:"approve_release",actorRef:e,targetRef:"deployment_customer_portal_v2",outcome:"approved",observedAt:"2026-05-09T10:10:00Z"},{id:"evidence_rollout_started",sourceRef:"rollout_customer_portal_canary",action:"record_rollout",actorRef:e,targetRef:"deployment_customer_portal_v2",outcome:"succeeded",observedAt:"2026-05-09T10:15:00Z"},{id:"evidence_health_passed",sourceRef:"health_customer_portal",action:"verify_health",actorRef:e,targetRef:"deployment_customer_portal_v2",outcome:"succeeded",observedAt:"2026-05-09T10:20:00Z"},{id:"evidence_capacity_review",sourceRef:"capacity_customer_portal_peak",action:"review_capacity",actorRef:e,targetRef:"service_customer_portal",outcome:"succeeded",observedAt:"2026-05-09T10:25:00Z"}]};var i={id:"owner_reliability_ops",kind:"companyos_owner"},l={id:"infra_ops_incident_loop",version:"1.0.0",environments:[{id:"env_production",name:"Production",tier:"production",ownerRef:i}],runtimeTargets:[{id:"runtime_api_worker",type:"api",capabilityRefs:[{id:"capability_api_runtime",kind:"integration_capability"}]}],services:[{id:"service_billing_api",name:"Billing API",runtimeTargetId:"runtime_api_worker",ownerRef:i}],pipelines:[],migrationWindows:[],deployments:[],releases:[],rollbacks:[],healthChecks:[{id:"health_billing_api",serviceId:"service_billing_api",kind:"health",metricRef:{id:"metric_billing_http_200",kind:"observability_metric"}}],slos:[{id:"slo_billing_latency",serviceId:"service_billing_api",objective:"p95 latency",threshold:"< 300ms",metricRefs:[{id:"metric_billing_latency",kind:"observability_metric"}],ownerRef:i}],monitors:[{id:"monitor_billing_latency",serviceId:"service_billing_api",metricRefs:[{id:"metric_billing_latency",kind:"observability_metric"}],traceRefs:[{id:"trace_billing_api",kind:"observability_trace"}],logRefs:[{id:"log_billing_errors",kind:"observability_log"}]}],alerts:[{id:"alert_billing_latency",serviceId:"service_billing_api",severity:"high",monitorId:"monitor_billing_latency",sloId:"slo_billing_latency"}],onCall:[{id:"oncall_billing_api",serviceId:"service_billing_api",ownerRef:i,scheduleRef:{id:"job_oncall_rotation",kind:"job_schedule"}}],escalations:[{id:"escalation_billing_latency",incidentId:"incident_billing_latency",onCallId:"oncall_billing_api",ownerRef:i}],incidents:[{id:"incident_billing_latency",alertId:"alert_billing_latency",environmentId:"env_production",serviceId:"service_billing_api",severity:"high",escalationId:"escalation_billing_latency",mitigationOwnerRef:i,postmortemId:"postmortem_billing_latency",evidenceReceiptIds:["evidence_alert_triggered","evidence_incident_triaged","evidence_mitigation_applied"]}],postmortems:[{id:"postmortem_billing_latency",incidentId:"incident_billing_latency",ownerRef:i,evidenceReceiptIds:["evidence_postmortem_written"],followUpRefs:["work_followup_billing_cache_guardrail"]}],capacityPlans:[{id:"capacity_billing_api_peak",serviceId:"service_billing_api",expectedLoad:"500 rpm",thresholds:["p95 < 300ms"],ownerRef:i,evidenceReceiptIds:["evidence_capacity_review"]}],costBudgets:[{id:"cost_billing_api_monthly",serviceId:"service_billing_api",budgetRef:{id:"budget_billing_api",kind:"cost_budget"},usageRef:{id:"usage_billing_api",kind:"metering_usage"},thresholds:["warn at 80%","block at 120%"],ownerRef:i}],secretRefs:[{id:"secret_billing_runtime",purpose:"runtime configuration",ref:"secretref:billing-runtime",ownerRef:i}],operationalRisks:[{id:"risk_billing_latency",serviceId:"service_billing_api",level:"high",mitigationRef:"work_followup_billing_cache_guardrail",ownerRef:i}],approvalRequirements:[],evidenceReceipts:[{id:"evidence_alert_triggered",sourceRef:"alert_billing_latency",action:"record_alert",actorRef:i,targetRef:"incident_billing_latency",outcome:"failed",observedAt:"2026-05-09T11:00:00Z"},{id:"evidence_incident_triaged",sourceRef:"incident_billing_latency",action:"triage_incident",actorRef:i,targetRef:"service_billing_api",outcome:"planned",observedAt:"2026-05-09T11:05:00Z"},{id:"evidence_mitigation_applied",sourceRef:"incident_billing_latency",action:"apply_mitigation",actorRef:i,targetRef:"service_billing_api",outcome:"mitigated",observedAt:"2026-05-09T11:20:00Z"},{id:"evidence_postmortem_written",sourceRef:"postmortem_billing_latency",action:"write_postmortem",actorRef:i,targetRef:"incident_billing_latency",outcome:"succeeded",observedAt:"2026-05-09T12:00:00Z"},{id:"evidence_capacity_review",sourceRef:"capacity_billing_api_peak",action:"review_capacity",actorRef:i,targetRef:"service_billing_api",outcome:"succeeded",observedAt:"2026-05-09T12:10:00Z"}]};export{r as deploymentReleaseLoopFixture,l as incidentLoopFixture};
@@ -0,0 +1,8 @@
1
+ export * from './fixtures.js';
2
+ export * from './intent-canonical.js';
3
+ export * from './intent-comparison.js';
4
+ export * from './intent-fixtures.js';
5
+ export * from './intent-types.js';
6
+ export * from './intent-validation.js';
7
+ export * from './types.js';
8
+ export * from './validation.js';