owlrunkit 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +50 -11
  3. package/integrations/codex/skills/owlcoda-runkit/SKILL.md +39 -14
  4. package/integrations/codex/skills/owlcoda-runkit/assets/templates/config.json +3 -3
  5. package/package.json +1 -1
  6. package/packages/attest/distribution-manifest-v1.json +10 -0
  7. package/packages/attest/src/quick.mjs +10 -0
  8. package/registry-release-policy-v2.json +5 -5
  9. package/sbom.spdx.json +4 -4
  10. package/scripts/runkit-contract/core-contract.mjs +6 -1
  11. package/scripts/runkit-contract/formal-workflow.mjs +1 -1
  12. package/scripts/runkit-contract/hook-recovery.mjs +496 -0
  13. package/scripts/runkit-contract/inspect-presentation.mjs +131 -0
  14. package/scripts/runkit-contract/onboarding-doctor.mjs +179 -4
  15. package/scripts/runkit-contract/project-cli-resolver.mjs +8 -0
  16. package/scripts/runkit-contract/registry-adoption.mjs +4 -4
  17. package/scripts/runkit-contract/runkit-bootstrap.mjs +1 -0
  18. package/scripts/runkit-contract/runkit-cli.mjs +62 -30
  19. package/scripts/runkit-contract/schemas/fleet-skill-upgrade-plan-v1.schema.json +1 -1
  20. package/scripts/runkit-contract/schemas/hook-recovery-v1.schema.json +592 -0
  21. package/scripts/runkit-contract/schemas/inspect-compact-v2.schema.json +122 -0
  22. package/scripts/runkit-contract/schemas/team-delivery-status-v3.schema.json +113 -0
  23. package/scripts/runkit-contract/schemas/team-recommendation-v2.schema.json +120 -0
  24. package/scripts/runkit-contract/sync-release-identity.mjs +1 -1
  25. package/scripts/runkit-contract/team-delivery.mjs +75 -0
  26. package/scripts/runkit-contract/team-project.mjs +62 -2
@@ -0,0 +1,592 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/hook-recovery-v1.schema.json",
4
+ "title": "OwlCoda RunKit Hook Recovery V1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "status",
10
+ "exitCode",
11
+ "projectId",
12
+ "projectTruthHash",
13
+ "objectiveDigest",
14
+ "objectivePreview",
15
+ "objectiveTruncated",
16
+ "projectTextTrust",
17
+ "overall",
18
+ "progress",
19
+ "headline",
20
+ "dominantGap",
21
+ "nextActorId",
22
+ "nextAction",
23
+ "deliveryDisposition",
24
+ "execution",
25
+ "warnings",
26
+ "latestProjectFactAt",
27
+ "textTruncated",
28
+ "readOnly",
29
+ "writesPerformed",
30
+ "authorityBoundary",
31
+ "authorizationGranted"
32
+ ],
33
+ "properties": {
34
+ "schemaVersion": {
35
+ "const": "OwlCodaRunKitHookRecoveryV1"
36
+ },
37
+ "status": {
38
+ "enum": [
39
+ "hook_recovery_ready",
40
+ "no_project_driver",
41
+ "invalid_control_truth"
42
+ ]
43
+ },
44
+ "exitCode": {
45
+ "enum": [
46
+ 0,
47
+ 2
48
+ ]
49
+ },
50
+ "projectId": {
51
+ "oneOf": [
52
+ {
53
+ "type": "null"
54
+ },
55
+ {
56
+ "$ref": "#/$defs/id"
57
+ }
58
+ ]
59
+ },
60
+ "projectTruthHash": {
61
+ "oneOf": [
62
+ {
63
+ "type": "null"
64
+ },
65
+ {
66
+ "$ref": "#/$defs/hash"
67
+ }
68
+ ]
69
+ },
70
+ "objectiveDigest": {
71
+ "oneOf": [
72
+ {
73
+ "type": "null"
74
+ },
75
+ {
76
+ "$ref": "#/$defs/sha256Ref"
77
+ }
78
+ ]
79
+ },
80
+ "objectivePreview": {
81
+ "oneOf": [
82
+ {
83
+ "type": "null"
84
+ },
85
+ {
86
+ "type": "string",
87
+ "maxLength": 180
88
+ }
89
+ ]
90
+ },
91
+ "objectiveTruncated": {
92
+ "type": "boolean"
93
+ },
94
+ "projectTextTrust": {
95
+ "const": "untrusted_data"
96
+ },
97
+ "overall": {
98
+ "oneOf": [
99
+ {
100
+ "type": "null"
101
+ },
102
+ {
103
+ "enum": [
104
+ "planned",
105
+ "active",
106
+ "active_with_blockers",
107
+ "completed"
108
+ ]
109
+ }
110
+ ]
111
+ },
112
+ "progress": {
113
+ "type": "object",
114
+ "additionalProperties": false,
115
+ "required": [
116
+ "completedWorkItems",
117
+ "totalWorkItems"
118
+ ],
119
+ "properties": {
120
+ "completedWorkItems": {
121
+ "oneOf": [
122
+ {
123
+ "type": "null"
124
+ },
125
+ {
126
+ "type": "integer",
127
+ "minimum": 0
128
+ }
129
+ ]
130
+ },
131
+ "totalWorkItems": {
132
+ "oneOf": [
133
+ {
134
+ "type": "null"
135
+ },
136
+ {
137
+ "type": "integer",
138
+ "minimum": 0
139
+ }
140
+ ]
141
+ }
142
+ }
143
+ },
144
+ "headline": {
145
+ "oneOf": [
146
+ {
147
+ "type": "null"
148
+ },
149
+ {
150
+ "type": "string",
151
+ "maxLength": 120
152
+ }
153
+ ]
154
+ },
155
+ "dominantGap": {
156
+ "$ref": "#/$defs/dominantGap"
157
+ },
158
+ "nextActorId": {
159
+ "oneOf": [
160
+ {
161
+ "type": "null"
162
+ },
163
+ {
164
+ "$ref": "#/$defs/id"
165
+ }
166
+ ]
167
+ },
168
+ "nextAction": {
169
+ "oneOf": [
170
+ {
171
+ "type": "null"
172
+ },
173
+ {
174
+ "type": "string",
175
+ "maxLength": 120
176
+ }
177
+ ]
178
+ },
179
+ "deliveryDisposition": {
180
+ "oneOf": [
181
+ {
182
+ "type": "null"
183
+ },
184
+ {
185
+ "enum": [
186
+ "work_ledger_incomplete",
187
+ "work_ledger_complete",
188
+ "source_accepted",
189
+ "integrated",
190
+ "materialized",
191
+ "deployed",
192
+ "live_readback_passed",
193
+ "product_accepted"
194
+ ]
195
+ }
196
+ ]
197
+ },
198
+ "execution": {
199
+ "$ref": "#/$defs/execution"
200
+ },
201
+ "warnings": {
202
+ "$ref": "#/$defs/warnings"
203
+ },
204
+ "latestProjectFactAt": {
205
+ "oneOf": [
206
+ {
207
+ "type": "null"
208
+ },
209
+ {
210
+ "$ref": "#/$defs/timestamp"
211
+ }
212
+ ]
213
+ },
214
+ "textTruncated": {
215
+ "type": "boolean"
216
+ },
217
+ "readOnly": {
218
+ "const": true
219
+ },
220
+ "writesPerformed": {
221
+ "const": false
222
+ },
223
+ "authorityBoundary": {
224
+ "$ref": "#/$defs/authorityBoundary"
225
+ },
226
+ "authorizationGranted": {
227
+ "const": false
228
+ }
229
+ },
230
+ "allOf": [
231
+ {
232
+ "if": {
233
+ "properties": {
234
+ "status": {
235
+ "const": "hook_recovery_ready"
236
+ }
237
+ },
238
+ "required": [
239
+ "status"
240
+ ]
241
+ },
242
+ "then": {
243
+ "properties": {
244
+ "exitCode": {
245
+ "const": 0
246
+ },
247
+ "projectId": {
248
+ "$ref": "#/$defs/id"
249
+ },
250
+ "projectTruthHash": {
251
+ "$ref": "#/$defs/hash"
252
+ },
253
+ "objectiveDigest": {
254
+ "$ref": "#/$defs/sha256Ref"
255
+ },
256
+ "objectivePreview": {
257
+ "type": "string",
258
+ "maxLength": 180
259
+ }
260
+ }
261
+ }
262
+ },
263
+ {
264
+ "if": {
265
+ "properties": {
266
+ "status": {
267
+ "const": "no_project_driver"
268
+ }
269
+ },
270
+ "required": [
271
+ "status"
272
+ ]
273
+ },
274
+ "then": {
275
+ "properties": {
276
+ "exitCode": {
277
+ "const": 0
278
+ },
279
+ "projectId": {
280
+ "type": "null"
281
+ },
282
+ "projectTruthHash": {
283
+ "type": "null"
284
+ },
285
+ "objectiveDigest": {
286
+ "type": "null"
287
+ },
288
+ "objectivePreview": {
289
+ "type": "null"
290
+ },
291
+ "overall": {
292
+ "type": "null"
293
+ },
294
+ "deliveryDisposition": {
295
+ "type": "null"
296
+ },
297
+ "latestProjectFactAt": {
298
+ "type": "null"
299
+ }
300
+ }
301
+ }
302
+ },
303
+ {
304
+ "if": {
305
+ "properties": {
306
+ "status": {
307
+ "const": "invalid_control_truth"
308
+ }
309
+ },
310
+ "required": [
311
+ "status"
312
+ ]
313
+ },
314
+ "then": {
315
+ "properties": {
316
+ "exitCode": {
317
+ "const": 2
318
+ }
319
+ }
320
+ }
321
+ }
322
+ ],
323
+ "$defs": {
324
+ "id": {
325
+ "type": "string",
326
+ "minLength": 1,
327
+ "maxLength": 96,
328
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
329
+ },
330
+ "hash": {
331
+ "type": "string",
332
+ "pattern": "^[a-f0-9]{64}$"
333
+ },
334
+ "sha256Ref": {
335
+ "type": "string",
336
+ "pattern": "^sha256:[a-f0-9]{64}$"
337
+ },
338
+ "timestamp": {
339
+ "type": "string",
340
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
341
+ },
342
+ "dominantGap": {
343
+ "type": "object",
344
+ "additionalProperties": false,
345
+ "required": [
346
+ "kind",
347
+ "id",
348
+ "reason",
349
+ "truncated"
350
+ ],
351
+ "properties": {
352
+ "kind": {
353
+ "type": "string",
354
+ "minLength": 1,
355
+ "maxLength": 64,
356
+ "pattern": "^[a-z0-9][a-z0-9._:-]*$"
357
+ },
358
+ "id": {
359
+ "oneOf": [
360
+ {
361
+ "type": "null"
362
+ },
363
+ {
364
+ "$ref": "#/$defs/id"
365
+ }
366
+ ]
367
+ },
368
+ "reason": {
369
+ "oneOf": [
370
+ {
371
+ "type": "null"
372
+ },
373
+ {
374
+ "type": "string",
375
+ "maxLength": 120
376
+ }
377
+ ]
378
+ },
379
+ "truncated": {
380
+ "type": "boolean"
381
+ }
382
+ }
383
+ },
384
+ "execution": {
385
+ "type": "object",
386
+ "additionalProperties": false,
387
+ "required": [
388
+ "state",
389
+ "openCount",
390
+ "activeLeaseCount"
391
+ ],
392
+ "properties": {
393
+ "state": {
394
+ "enum": [
395
+ "no_active_execution",
396
+ "single_active_execution",
397
+ "multiple_active_executions",
398
+ "invalid_control_truth"
399
+ ]
400
+ },
401
+ "openCount": {
402
+ "type": "integer",
403
+ "minimum": 0
404
+ },
405
+ "activeLeaseCount": {
406
+ "type": "integer",
407
+ "minimum": 0
408
+ }
409
+ }
410
+ },
411
+ "warnings": {
412
+ "type": "object",
413
+ "additionalProperties": false,
414
+ "required": [
415
+ "count",
416
+ "blockingCount",
417
+ "codes",
418
+ "truncated"
419
+ ],
420
+ "properties": {
421
+ "count": {
422
+ "type": "integer",
423
+ "minimum": 0
424
+ },
425
+ "blockingCount": {
426
+ "type": "integer",
427
+ "minimum": 0
428
+ },
429
+ "codes": {
430
+ "type": "array",
431
+ "maxItems": 4,
432
+ "uniqueItems": true,
433
+ "items": {
434
+ "type": "string",
435
+ "minLength": 1,
436
+ "maxLength": 64,
437
+ "pattern": "^[a-z0-9][a-z0-9._:-]*$"
438
+ }
439
+ },
440
+ "truncated": {
441
+ "type": "boolean"
442
+ }
443
+ }
444
+ },
445
+ "authorityBoundary": {
446
+ "type": "object",
447
+ "additionalProperties": false,
448
+ "required": [
449
+ "agentDispatch",
450
+ "git",
451
+ "release",
452
+ "deployment",
453
+ "production",
454
+ "business",
455
+ "automation",
456
+ "money"
457
+ ],
458
+ "properties": {
459
+ "agentDispatch": {
460
+ "const": false
461
+ },
462
+ "git": {
463
+ "const": false
464
+ },
465
+ "release": {
466
+ "const": false
467
+ },
468
+ "deployment": {
469
+ "const": false
470
+ },
471
+ "production": {
472
+ "const": false
473
+ },
474
+ "business": {
475
+ "const": false
476
+ },
477
+ "automation": {
478
+ "const": false
479
+ },
480
+ "money": {
481
+ "const": false
482
+ }
483
+ }
484
+ }
485
+ },
486
+ "examples": [
487
+ {
488
+ "schemaVersion": "OwlCodaRunKitHookRecoveryV1",
489
+ "status": "hook_recovery_ready",
490
+ "exitCode": 0,
491
+ "projectId": "release-022",
492
+ "projectTruthHash": "1111111111111111111111111111111111111111111111111111111111111111",
493
+ "objectiveDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
494
+ "objectivePreview": "Ship the bounded Hook recovery contract",
495
+ "objectiveTruncated": false,
496
+ "projectTextTrust": "untrusted_data",
497
+ "overall": "active",
498
+ "progress": {
499
+ "completedWorkItems": 1,
500
+ "totalWorkItems": 2
501
+ },
502
+ "headline": "Dominant gap: work item verification.",
503
+ "dominantGap": {
504
+ "kind": "work_item",
505
+ "id": "verification",
506
+ "reason": "Verification is ready.",
507
+ "truncated": false
508
+ },
509
+ "nextActorId": "reviewer",
510
+ "nextAction": "Verify verification.",
511
+ "deliveryDisposition": "work_ledger_incomplete",
512
+ "execution": {
513
+ "state": "no_active_execution",
514
+ "openCount": 0,
515
+ "activeLeaseCount": 0
516
+ },
517
+ "warnings": {
518
+ "count": 0,
519
+ "blockingCount": 0,
520
+ "codes": [],
521
+ "truncated": false
522
+ },
523
+ "latestProjectFactAt": "2026-08-24T01:03:00.000Z",
524
+ "textTruncated": false,
525
+ "readOnly": true,
526
+ "writesPerformed": false,
527
+ "authorityBoundary": {
528
+ "agentDispatch": false,
529
+ "git": false,
530
+ "release": false,
531
+ "deployment": false,
532
+ "production": false,
533
+ "business": false,
534
+ "automation": false,
535
+ "money": false
536
+ },
537
+ "authorizationGranted": false
538
+ },
539
+ {
540
+ "schemaVersion": "OwlCodaRunKitHookRecoveryV1",
541
+ "status": "no_project_driver",
542
+ "exitCode": 0,
543
+ "projectId": null,
544
+ "projectTruthHash": null,
545
+ "objectiveDigest": null,
546
+ "objectivePreview": null,
547
+ "objectiveTruncated": false,
548
+ "projectTextTrust": "untrusted_data",
549
+ "overall": null,
550
+ "progress": {
551
+ "completedWorkItems": null,
552
+ "totalWorkItems": null
553
+ },
554
+ "headline": null,
555
+ "dominantGap": {
556
+ "kind": "no_project_driver",
557
+ "id": null,
558
+ "reason": "No Project Driver is initialized.",
559
+ "truncated": false
560
+ },
561
+ "nextActorId": null,
562
+ "nextAction": null,
563
+ "deliveryDisposition": null,
564
+ "execution": {
565
+ "state": "no_active_execution",
566
+ "openCount": 0,
567
+ "activeLeaseCount": 0
568
+ },
569
+ "warnings": {
570
+ "count": 0,
571
+ "blockingCount": 0,
572
+ "codes": [],
573
+ "truncated": false
574
+ },
575
+ "latestProjectFactAt": null,
576
+ "textTruncated": false,
577
+ "readOnly": true,
578
+ "writesPerformed": false,
579
+ "authorityBoundary": {
580
+ "agentDispatch": false,
581
+ "git": false,
582
+ "release": false,
583
+ "deployment": false,
584
+ "production": false,
585
+ "business": false,
586
+ "automation": false,
587
+ "money": false
588
+ },
589
+ "authorizationGranted": false
590
+ }
591
+ ]
592
+ }
@@ -0,0 +1,122 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/inspect-compact-v2.schema.json",
4
+ "title": "OwlCoda RunKit Inspect Compact V2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion", "status", "exitCode", "projectTruthHash", "progress",
9
+ "dominantGap", "ownerAgentId", "nextAction", "lifecycleNextAction",
10
+ "projectNextAction", "maintenanceNextAction", "projectWarnings",
11
+ "maintenanceWarnings", "skillDriftWarnings", "advisorySummary",
12
+ "warningSummary", "execution", "authorityBoundary", "authorizationGranted"
13
+ ],
14
+ "properties": {
15
+ "schemaVersion": { "const": "OwlCodaRunKitInspectCompactV2" },
16
+ "status": { "const": "inspected_compact" },
17
+ "exitCode": { "enum": [0, 2] },
18
+ "projectTruthHash": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/hash" }] },
19
+ "progress": {
20
+ "type": "object",
21
+ "additionalProperties": false,
22
+ "required": ["overall", "completedWorkItems", "totalWorkItems"],
23
+ "properties": {
24
+ "overall": { "$ref": "#/$defs/nullableText" },
25
+ "completedWorkItems": { "$ref": "#/$defs/nullableCount" },
26
+ "totalWorkItems": { "$ref": "#/$defs/nullableCount" }
27
+ }
28
+ },
29
+ "dominantGap": {
30
+ "type": "object",
31
+ "additionalProperties": false,
32
+ "required": ["code", "reason"],
33
+ "properties": {
34
+ "code": { "$ref": "#/$defs/text" },
35
+ "reason": { "$ref": "#/$defs/nullableText" }
36
+ }
37
+ },
38
+ "ownerAgentId": { "$ref": "#/$defs/nullableText" },
39
+ "nextAction": { "$ref": "#/$defs/text" },
40
+ "lifecycleNextAction": { "$ref": "#/$defs/text" },
41
+ "projectNextAction": { "$ref": "#/$defs/nullableText" },
42
+ "maintenanceNextAction": { "$ref": "#/$defs/nullableText" },
43
+ "projectWarnings": { "$ref": "#/$defs/warningSummary" },
44
+ "maintenanceWarnings": { "$ref": "#/$defs/warningSummary" },
45
+ "skillDriftWarnings": { "$ref": "#/$defs/warningSummary" },
46
+ "advisorySummary": { "$ref": "#/$defs/warningSummary" },
47
+ "warningSummary": { "$ref": "#/$defs/warningSummary" },
48
+ "execution": {
49
+ "type": "object",
50
+ "additionalProperties": false,
51
+ "required": ["state", "openCount", "activeLeaseCount"],
52
+ "properties": {
53
+ "state": { "$ref": "#/$defs/text" },
54
+ "openCount": { "type": "integer", "minimum": 0 },
55
+ "activeLeaseCount": { "type": "integer", "minimum": 0 }
56
+ }
57
+ },
58
+ "authorityBoundary": { "$ref": "#/$defs/authorityBoundary" },
59
+ "authorizationGranted": { "const": false }
60
+ },
61
+ "$defs": {
62
+ "text": { "type": "string", "minLength": 1 },
63
+ "nullableText": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/text" }] },
64
+ "nullableCount": { "oneOf": [{ "type": "null" }, { "type": "integer", "minimum": 0 }] },
65
+ "hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
66
+ "warningSummary": {
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "required": ["count", "groups"],
70
+ "properties": {
71
+ "count": { "type": "integer", "minimum": 0 },
72
+ "groups": {
73
+ "type": "array",
74
+ "items": {
75
+ "type": "object",
76
+ "additionalProperties": false,
77
+ "required": ["code", "count", "blocking", "recommendedAction"],
78
+ "properties": {
79
+ "code": { "$ref": "#/$defs/text" },
80
+ "count": { "type": "integer", "minimum": 1 },
81
+ "blocking": { "type": "boolean" },
82
+ "recommendedAction": { "$ref": "#/$defs/text" }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ },
88
+ "authorityBoundary": {
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "required": ["git", "release", "deployment", "production", "business"],
92
+ "properties": {
93
+ "git": { "const": false },
94
+ "release": { "const": false },
95
+ "deployment": { "const": false },
96
+ "production": { "const": false },
97
+ "business": { "const": false }
98
+ }
99
+ }
100
+ },
101
+ "examples": [{
102
+ "schemaVersion": "OwlCodaRunKitInspectCompactV2",
103
+ "status": "inspected_compact",
104
+ "exitCode": 0,
105
+ "projectTruthHash": null,
106
+ "progress": { "overall": null, "completedWorkItems": null, "totalWorkItems": null },
107
+ "dominantGap": { "code": "plan_new_execution", "reason": null },
108
+ "ownerAgentId": null,
109
+ "nextAction": "plan_new_execution",
110
+ "lifecycleNextAction": "plan_new_execution",
111
+ "projectNextAction": null,
112
+ "maintenanceNextAction": null,
113
+ "projectWarnings": { "count": 0, "groups": [] },
114
+ "maintenanceWarnings": { "count": 0, "groups": [] },
115
+ "skillDriftWarnings": { "count": 0, "groups": [] },
116
+ "advisorySummary": { "count": 0, "groups": [] },
117
+ "warningSummary": { "count": 0, "groups": [] },
118
+ "execution": { "state": "no_active_execution", "openCount": 0, "activeLeaseCount": 0 },
119
+ "authorityBoundary": { "git": false, "release": false, "deployment": false, "production": false, "business": false },
120
+ "authorizationGranted": false
121
+ }]
122
+ }