agent-dealer 1.2.7 → 1.2.8

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 (87) hide show
  1. package/bundle/server/dist/adapters/agent-deck-bind.js +16 -6
  2. package/bundle/server/dist/adapters/agent-deck-bind.test.js +74 -0
  3. package/bundle/server/dist/adapters/agent-health.js +14 -3
  4. package/bundle/server/dist/adapters/github.js +4 -1
  5. package/bundle/server/dist/adapters/muse-capability.js +443 -24
  6. package/bundle/server/dist/adapters/muse-capability.test.js +469 -25
  7. package/bundle/server/dist/adapters/muse-visual-qa.js +114 -0
  8. package/bundle/server/dist/adapters/muse-visual-qa.test.js +68 -0
  9. package/bundle/server/dist/capacity/muse-probe.js +56 -9
  10. package/bundle/server/dist/capacity/muse-probe.test.js +188 -1
  11. package/bundle/server/dist/coordinator/admission.js +14 -1
  12. package/bundle/server/dist/coordinator/admission.test.js +197 -4
  13. package/bundle/server/dist/coordinator/auto-merge.integration.test.js +276 -0
  14. package/bundle/server/dist/coordinator/auto-merge.js +39 -3
  15. package/bundle/server/dist/coordinator/commands.js +90 -5
  16. package/bundle/server/dist/coordinator/deck-outage.integration.test.js +4 -2
  17. package/bundle/server/dist/coordinator/developer-effect.js +79 -1
  18. package/bundle/server/dist/coordinator/execution-report.js +6 -0
  19. package/bundle/server/dist/coordinator/execution-report.test.js +7 -0
  20. package/bundle/server/dist/coordinator/failure-cause.js +64 -1
  21. package/bundle/server/dist/coordinator/failure-cause.test.js +92 -1
  22. package/bundle/server/dist/coordinator/failure-reason.js +7 -0
  23. package/bundle/server/dist/coordinator/failure-reason.test.js +14 -0
  24. package/bundle/server/dist/coordinator/human-resolution.js +17 -1
  25. package/bundle/server/dist/coordinator/merge-conflict-sync.js +647 -0
  26. package/bundle/server/dist/coordinator/merge-conflict-sync.test.js +121 -0
  27. package/bundle/server/dist/coordinator/muse-developer.integration.test.js +9 -4
  28. package/bundle/server/dist/coordinator/muse-spawn.js +122 -29
  29. package/bundle/server/dist/coordinator/muse-spawn.test.js +210 -0
  30. package/bundle/server/dist/coordinator/playbook-feedback.js +690 -0
  31. package/bundle/server/dist/coordinator/playbook-feedback.test.js +702 -0
  32. package/bundle/server/dist/coordinator/prompts-execution-contract.test.js +107 -0
  33. package/bundle/server/dist/coordinator/prompts.js +78 -2
  34. package/bundle/server/dist/coordinator/prompts.test.js +83 -0
  35. package/bundle/server/dist/coordinator/reflect-trigger.js +33 -169
  36. package/bundle/server/dist/coordinator/reflect-trigger.test.js +149 -200
  37. package/bundle/server/dist/coordinator/reviewer-effect.js +10 -1
  38. package/bundle/server/dist/coordinator/reviewer-result.js +6 -0
  39. package/bundle/server/dist/coordinator/routing.test.js +14 -0
  40. package/bundle/server/dist/coordinator/session-timeouts.js +30 -0
  41. package/bundle/server/dist/coordinator/usage-cap.integration.test.js +1 -1
  42. package/bundle/server/dist/coordinator/worker-loop.js +18 -4
  43. package/bundle/server/dist/db/index.js +5 -0
  44. package/bundle/server/dist/db/schema.sql +3 -0
  45. package/bundle/server/dist/docs-execution-analysis.test.js +1 -0
  46. package/bundle/server/dist/repository/artifacts-for-issue.js +3 -3
  47. package/bundle/server/dist/repository/human-actions.js +14 -0
  48. package/bundle/server/dist/repository/issues.js +29 -4
  49. package/bundle/server/dist/repository/worker-sessions.js +51 -2
  50. package/bundle/server/dist/routes/human-actions.js +10 -8
  51. package/bundle/server/dist/routes/issues-execution-contract.test.js +321 -0
  52. package/bundle/server/dist/routes/issues.js +19 -2
  53. package/bundle/server/dist/runners/muse-code-jsonl.js +106 -11
  54. package/bundle/server/dist/runners/muse-config-core.js +18 -1
  55. package/bundle/server/dist/runners/muse-config.test.js +37 -0
  56. package/bundle/server/dist/runners/muse-serve-session.js +5 -0
  57. package/bundle/server/dist/runners/spawn-cli.js +116 -0
  58. package/bundle/server/dist/runners/spawn-cli.test.js +124 -0
  59. package/bundle/server/package.json +2 -2
  60. package/bundle/server/static-ui/assets/{index-yLyxRd-7.js → index-B6SVCzMR.js} +14 -14
  61. package/bundle/server/static-ui/assets/{index-DyAJNyfV.css → index-K_YcYkQU.css} +1 -1
  62. package/bundle/server/static-ui/index.html +2 -2
  63. package/bundle/shared/dist/execution-analysis.d.ts +22 -22
  64. package/bundle/shared/dist/execution-contract.d.ts +117 -0
  65. package/bundle/shared/dist/execution-contract.js +307 -0
  66. package/bundle/shared/dist/execution-contract.test.d.ts +2 -0
  67. package/bundle/shared/dist/execution-contract.test.js +499 -0
  68. package/bundle/shared/dist/execution-report.d.ts +9 -9
  69. package/bundle/shared/dist/execution-report.js +2 -0
  70. package/bundle/shared/dist/failure-cause.d.ts +4 -4
  71. package/bundle/shared/dist/failure-cause.js +2 -0
  72. package/bundle/shared/dist/human-actions.d.ts +4 -4
  73. package/bundle/shared/dist/human-actions.js +9 -0
  74. package/bundle/shared/dist/index.d.ts +85 -84
  75. package/bundle/shared/dist/index.js +3 -0
  76. package/bundle/shared/dist/issues.d.ts +146 -16
  77. package/bundle/shared/dist/issues.js +8 -0
  78. package/bundle/shared/dist/issues.test.js +1 -0
  79. package/bundle/shared/dist/outbound-draft.d.ts +12 -12
  80. package/bundle/shared/dist/worker-sessions.d.ts +10 -0
  81. package/bundle/shared/dist/worker-sessions.js +8 -0
  82. package/bundle/shared/dist/worker-sessions.test.js +1 -0
  83. package/bundle/shared/dist/workflow.d.ts +4 -4
  84. package/bundle/shared/dist/workflow.js +10 -0
  85. package/bundle/shared/dist/workflow.test.js +2 -0
  86. package/bundle/shared/package.json +1 -1
  87. package/package.json +1 -1
@@ -20,6 +20,7 @@ export * from "./findings.js";
20
20
  export * from "./usage-events.js";
21
21
  export * from "./runtime-availability.js";
22
22
  export * from "./runtime-capacity.js";
23
+ export * from "./execution-contract.js";
23
24
  export * from "./queue-entries.js";
24
25
  export * from "./execution-analysis.js";
25
26
  export * from "./execution-report.js";
@@ -27,7 +28,7 @@ export declare const RunStatus: z.ZodEnum<["queued", "plan_pending", "plan_appro
27
28
  export type RunStatus = z.infer<typeof RunStatus>;
28
29
  export declare const TaskCategory: z.ZodEnum<["code", "communication", "email", "research", "content", "other"]>;
29
30
  export type TaskCategory = z.infer<typeof TaskCategory>;
30
- export declare const ArtifactKind: z.ZodEnum<["task_snapshot", "draft_plan", "approved_plan", "plan_triage", "plan_answers", "acceptance_criteria", "transcript", "stream_trace", "usage", "agent_session", "execution_result", "diff", "pr", "email_draft", "slack_draft", "service_draft", "document", "research_brief", "deliverable", "feedback", "playbook_patch", "reflect_status", "linear_sync", "send_receipt", "result_qa"]>;
31
+ export declare const ArtifactKind: z.ZodEnum<["task_snapshot", "draft_plan", "approved_plan", "plan_triage", "plan_answers", "acceptance_criteria", "transcript", "stream_trace", "usage", "agent_session", "execution_result", "diff", "pr", "email_draft", "slack_draft", "service_draft", "document", "research_brief", "deliverable", "feedback", "playbook_patch", "playbook_use_receipt", "deck_feedback_signal", "reflect_status", "linear_sync", "send_receipt", "result_qa"]>;
31
32
  export type ArtifactKind = z.infer<typeof ArtifactKind>;
32
33
  export declare const RunPhase: z.ZodEnum<["plan", "execute", "reflect", "qa"]>;
33
34
  export type RunPhase = z.infer<typeof RunPhase>;
@@ -539,12 +540,12 @@ export declare const Run: z.ZodObject<{
539
540
  deckName: string | null;
540
541
  playbookId: string | null;
541
542
  repo: string | null;
543
+ acceptanceCriteria: string | null;
544
+ description: string | null;
542
545
  title: string;
543
546
  source: "manual" | "linear";
544
547
  externalId: string | null;
545
548
  externalLabel: string | null;
546
- description: string | null;
547
- acceptanceCriteria: string | null;
548
549
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
549
550
  artifactWorkspace: string | null;
550
551
  agentName: string | null;
@@ -564,12 +565,12 @@ export declare const Run: z.ZodObject<{
564
565
  deckName: string | null;
565
566
  playbookId: string | null;
566
567
  repo: string | null;
568
+ acceptanceCriteria: string | null;
569
+ description: string | null;
567
570
  title: string;
568
571
  source: "manual" | "linear";
569
572
  externalId: string | null;
570
573
  externalLabel: string | null;
571
- description: string | null;
572
- acceptanceCriteria: string | null;
573
574
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
574
575
  artifactWorkspace: string | null;
575
576
  agentName: string | null;
@@ -582,7 +583,7 @@ export type Run = z.infer<typeof Run>;
582
583
  export declare const Artifact: z.ZodObject<{
583
584
  id: z.ZodString;
584
585
  runId: z.ZodString;
585
- kind: z.ZodEnum<["task_snapshot", "draft_plan", "approved_plan", "plan_triage", "plan_answers", "acceptance_criteria", "transcript", "stream_trace", "usage", "agent_session", "execution_result", "diff", "pr", "email_draft", "slack_draft", "service_draft", "document", "research_brief", "deliverable", "feedback", "playbook_patch", "reflect_status", "linear_sync", "send_receipt", "result_qa"]>;
586
+ kind: z.ZodEnum<["task_snapshot", "draft_plan", "approved_plan", "plan_triage", "plan_answers", "acceptance_criteria", "transcript", "stream_trace", "usage", "agent_session", "execution_result", "diff", "pr", "email_draft", "slack_draft", "service_draft", "document", "research_brief", "deliverable", "feedback", "playbook_patch", "playbook_use_receipt", "deck_feedback_signal", "reflect_status", "linear_sync", "send_receipt", "result_qa"]>;
586
587
  contentJson: z.ZodNullable<z.ZodString>;
587
588
  blobPath: z.ZodNullable<z.ZodString>;
588
589
  author: z.ZodEnum<["human", "agent", "system"]>;
@@ -590,7 +591,7 @@ export declare const Artifact: z.ZodObject<{
590
591
  }, "strip", z.ZodTypeAny, {
591
592
  id: string;
592
593
  createdAt: string;
593
- kind: "slack_draft" | "email_draft" | "service_draft" | "task_snapshot" | "draft_plan" | "approved_plan" | "plan_triage" | "plan_answers" | "acceptance_criteria" | "transcript" | "stream_trace" | "usage" | "agent_session" | "execution_result" | "diff" | "pr" | "document" | "research_brief" | "deliverable" | "feedback" | "playbook_patch" | "reflect_status" | "linear_sync" | "send_receipt" | "result_qa";
594
+ kind: "slack_draft" | "email_draft" | "service_draft" | "task_snapshot" | "draft_plan" | "approved_plan" | "plan_triage" | "plan_answers" | "acceptance_criteria" | "transcript" | "stream_trace" | "usage" | "agent_session" | "execution_result" | "diff" | "pr" | "document" | "research_brief" | "deliverable" | "feedback" | "playbook_patch" | "playbook_use_receipt" | "deck_feedback_signal" | "reflect_status" | "linear_sync" | "send_receipt" | "result_qa";
594
595
  runId: string;
595
596
  contentJson: string | null;
596
597
  blobPath: string | null;
@@ -598,7 +599,7 @@ export declare const Artifact: z.ZodObject<{
598
599
  }, {
599
600
  id: string;
600
601
  createdAt: string;
601
- kind: "slack_draft" | "email_draft" | "service_draft" | "task_snapshot" | "draft_plan" | "approved_plan" | "plan_triage" | "plan_answers" | "acceptance_criteria" | "transcript" | "stream_trace" | "usage" | "agent_session" | "execution_result" | "diff" | "pr" | "document" | "research_brief" | "deliverable" | "feedback" | "playbook_patch" | "reflect_status" | "linear_sync" | "send_receipt" | "result_qa";
602
+ kind: "slack_draft" | "email_draft" | "service_draft" | "task_snapshot" | "draft_plan" | "approved_plan" | "plan_triage" | "plan_answers" | "acceptance_criteria" | "transcript" | "stream_trace" | "usage" | "agent_session" | "execution_result" | "diff" | "pr" | "document" | "research_brief" | "deliverable" | "feedback" | "playbook_patch" | "playbook_use_receipt" | "deck_feedback_signal" | "reflect_status" | "linear_sync" | "send_receipt" | "result_qa";
602
603
  runId: string;
603
604
  contentJson: string | null;
604
605
  blobPath: string | null;
@@ -701,8 +702,8 @@ export declare const CreateRunInput: z.ZodObject<{
701
702
  title: string;
702
703
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
703
704
  repo?: string | undefined;
704
- description?: string | undefined;
705
705
  acceptanceCriteria?: string | undefined;
706
+ description?: string | undefined;
706
707
  artifactWorkspace?: string | undefined;
707
708
  planModel?: string | null | undefined;
708
709
  executeModel?: string | null | undefined;
@@ -725,8 +726,8 @@ export declare const CreateRunInput: z.ZodObject<{
725
726
  title: string;
726
727
  status?: "queued" | "plan_pending" | "plan_approved" | undefined;
727
728
  repo?: string | undefined;
728
- description?: string | undefined;
729
729
  acceptanceCriteria?: string | undefined;
730
+ description?: string | undefined;
730
731
  taskCategory?: "other" | "code" | "email" | "communication" | "research" | "content" | undefined;
731
732
  artifactWorkspace?: string | undefined;
732
733
  planModel?: string | null | undefined;
@@ -1021,8 +1022,8 @@ export declare const LinearCandidate: z.ZodObject<{
1021
1022
  title: string;
1022
1023
  url: string;
1023
1024
  identifier: string;
1024
- labels?: string[] | undefined;
1025
1025
  description?: string | undefined;
1026
+ labels?: string[] | undefined;
1026
1027
  state?: string | undefined;
1027
1028
  teamId?: string | undefined;
1028
1029
  repoResolution?: {
@@ -1037,8 +1038,8 @@ export declare const LinearCandidate: z.ZodObject<{
1037
1038
  title: string;
1038
1039
  url: string;
1039
1040
  identifier: string;
1040
- labels?: string[] | undefined;
1041
1041
  description?: string | undefined;
1042
+ labels?: string[] | undefined;
1042
1043
  state?: string | undefined;
1043
1044
  teamId?: string | undefined;
1044
1045
  repoResolution?: {
@@ -1253,12 +1254,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1253
1254
  deckName: string | null;
1254
1255
  playbookId: string | null;
1255
1256
  repo: string | null;
1257
+ acceptanceCriteria: string | null;
1258
+ description: string | null;
1256
1259
  title: string;
1257
1260
  source: "manual" | "linear";
1258
1261
  externalId: string | null;
1259
1262
  externalLabel: string | null;
1260
- description: string | null;
1261
- acceptanceCriteria: string | null;
1262
1263
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1263
1264
  artifactWorkspace: string | null;
1264
1265
  agentName: string | null;
@@ -1278,12 +1279,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1278
1279
  deckName: string | null;
1279
1280
  playbookId: string | null;
1280
1281
  repo: string | null;
1282
+ acceptanceCriteria: string | null;
1283
+ description: string | null;
1281
1284
  title: string;
1282
1285
  source: "manual" | "linear";
1283
1286
  externalId: string | null;
1284
1287
  externalLabel: string | null;
1285
- description: string | null;
1286
- acceptanceCriteria: string | null;
1287
1288
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1288
1289
  artifactWorkspace: string | null;
1289
1290
  agentName: string | null;
@@ -1332,12 +1333,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1332
1333
  deckName: string | null;
1333
1334
  playbookId: string | null;
1334
1335
  repo: string | null;
1336
+ acceptanceCriteria: string | null;
1337
+ description: string | null;
1335
1338
  title: string;
1336
1339
  source: "manual" | "linear";
1337
1340
  externalId: string | null;
1338
1341
  externalLabel: string | null;
1339
- description: string | null;
1340
- acceptanceCriteria: string | null;
1341
1342
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1342
1343
  artifactWorkspace: string | null;
1343
1344
  agentName: string | null;
@@ -1357,12 +1358,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1357
1358
  deckName: string | null;
1358
1359
  playbookId: string | null;
1359
1360
  repo: string | null;
1361
+ acceptanceCriteria: string | null;
1362
+ description: string | null;
1360
1363
  title: string;
1361
1364
  source: "manual" | "linear";
1362
1365
  externalId: string | null;
1363
1366
  externalLabel: string | null;
1364
- description: string | null;
1365
- acceptanceCriteria: string | null;
1366
1367
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1367
1368
  artifactWorkspace: string | null;
1368
1369
  agentName: string | null;
@@ -1411,12 +1412,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1411
1412
  deckName: string | null;
1412
1413
  playbookId: string | null;
1413
1414
  repo: string | null;
1415
+ acceptanceCriteria: string | null;
1416
+ description: string | null;
1414
1417
  title: string;
1415
1418
  source: "manual" | "linear";
1416
1419
  externalId: string | null;
1417
1420
  externalLabel: string | null;
1418
- description: string | null;
1419
- acceptanceCriteria: string | null;
1420
1421
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1421
1422
  artifactWorkspace: string | null;
1422
1423
  agentName: string | null;
@@ -1436,12 +1437,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1436
1437
  deckName: string | null;
1437
1438
  playbookId: string | null;
1438
1439
  repo: string | null;
1440
+ acceptanceCriteria: string | null;
1441
+ description: string | null;
1439
1442
  title: string;
1440
1443
  source: "manual" | "linear";
1441
1444
  externalId: string | null;
1442
1445
  externalLabel: string | null;
1443
- description: string | null;
1444
- acceptanceCriteria: string | null;
1445
1446
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1446
1447
  artifactWorkspace: string | null;
1447
1448
  agentName: string | null;
@@ -1490,12 +1491,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1490
1491
  deckName: string | null;
1491
1492
  playbookId: string | null;
1492
1493
  repo: string | null;
1494
+ acceptanceCriteria: string | null;
1495
+ description: string | null;
1493
1496
  title: string;
1494
1497
  source: "manual" | "linear";
1495
1498
  externalId: string | null;
1496
1499
  externalLabel: string | null;
1497
- description: string | null;
1498
- acceptanceCriteria: string | null;
1499
1500
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1500
1501
  artifactWorkspace: string | null;
1501
1502
  agentName: string | null;
@@ -1515,12 +1516,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1515
1516
  deckName: string | null;
1516
1517
  playbookId: string | null;
1517
1518
  repo: string | null;
1519
+ acceptanceCriteria: string | null;
1520
+ description: string | null;
1518
1521
  title: string;
1519
1522
  source: "manual" | "linear";
1520
1523
  externalId: string | null;
1521
1524
  externalLabel: string | null;
1522
- description: string | null;
1523
- acceptanceCriteria: string | null;
1524
1525
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1525
1526
  artifactWorkspace: string | null;
1526
1527
  agentName: string | null;
@@ -1569,12 +1570,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1569
1570
  deckName: string | null;
1570
1571
  playbookId: string | null;
1571
1572
  repo: string | null;
1573
+ acceptanceCriteria: string | null;
1574
+ description: string | null;
1572
1575
  title: string;
1573
1576
  source: "manual" | "linear";
1574
1577
  externalId: string | null;
1575
1578
  externalLabel: string | null;
1576
- description: string | null;
1577
- acceptanceCriteria: string | null;
1578
1579
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1579
1580
  artifactWorkspace: string | null;
1580
1581
  agentName: string | null;
@@ -1594,12 +1595,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1594
1595
  deckName: string | null;
1595
1596
  playbookId: string | null;
1596
1597
  repo: string | null;
1598
+ acceptanceCriteria: string | null;
1599
+ description: string | null;
1597
1600
  title: string;
1598
1601
  source: "manual" | "linear";
1599
1602
  externalId: string | null;
1600
1603
  externalLabel: string | null;
1601
- description: string | null;
1602
- acceptanceCriteria: string | null;
1603
1604
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1604
1605
  artifactWorkspace: string | null;
1605
1606
  agentName: string | null;
@@ -1648,12 +1649,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1648
1649
  deckName: string | null;
1649
1650
  playbookId: string | null;
1650
1651
  repo: string | null;
1652
+ acceptanceCriteria: string | null;
1653
+ description: string | null;
1651
1654
  title: string;
1652
1655
  source: "manual" | "linear";
1653
1656
  externalId: string | null;
1654
1657
  externalLabel: string | null;
1655
- description: string | null;
1656
- acceptanceCriteria: string | null;
1657
1658
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1658
1659
  artifactWorkspace: string | null;
1659
1660
  agentName: string | null;
@@ -1673,12 +1674,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1673
1674
  deckName: string | null;
1674
1675
  playbookId: string | null;
1675
1676
  repo: string | null;
1677
+ acceptanceCriteria: string | null;
1678
+ description: string | null;
1676
1679
  title: string;
1677
1680
  source: "manual" | "linear";
1678
1681
  externalId: string | null;
1679
1682
  externalLabel: string | null;
1680
- description: string | null;
1681
- acceptanceCriteria: string | null;
1682
1683
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1683
1684
  artifactWorkspace: string | null;
1684
1685
  agentName: string | null;
@@ -1727,12 +1728,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1727
1728
  deckName: string | null;
1728
1729
  playbookId: string | null;
1729
1730
  repo: string | null;
1731
+ acceptanceCriteria: string | null;
1732
+ description: string | null;
1730
1733
  title: string;
1731
1734
  source: "manual" | "linear";
1732
1735
  externalId: string | null;
1733
1736
  externalLabel: string | null;
1734
- description: string | null;
1735
- acceptanceCriteria: string | null;
1736
1737
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1737
1738
  artifactWorkspace: string | null;
1738
1739
  agentName: string | null;
@@ -1752,12 +1753,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1752
1753
  deckName: string | null;
1753
1754
  playbookId: string | null;
1754
1755
  repo: string | null;
1756
+ acceptanceCriteria: string | null;
1757
+ description: string | null;
1755
1758
  title: string;
1756
1759
  source: "manual" | "linear";
1757
1760
  externalId: string | null;
1758
1761
  externalLabel: string | null;
1759
- description: string | null;
1760
- acceptanceCriteria: string | null;
1761
1762
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1762
1763
  artifactWorkspace: string | null;
1763
1764
  agentName: string | null;
@@ -1806,12 +1807,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1806
1807
  deckName: string | null;
1807
1808
  playbookId: string | null;
1808
1809
  repo: string | null;
1810
+ acceptanceCriteria: string | null;
1811
+ description: string | null;
1809
1812
  title: string;
1810
1813
  source: "manual" | "linear";
1811
1814
  externalId: string | null;
1812
1815
  externalLabel: string | null;
1813
- description: string | null;
1814
- acceptanceCriteria: string | null;
1815
1816
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1816
1817
  artifactWorkspace: string | null;
1817
1818
  agentName: string | null;
@@ -1831,12 +1832,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1831
1832
  deckName: string | null;
1832
1833
  playbookId: string | null;
1833
1834
  repo: string | null;
1835
+ acceptanceCriteria: string | null;
1836
+ description: string | null;
1834
1837
  title: string;
1835
1838
  source: "manual" | "linear";
1836
1839
  externalId: string | null;
1837
1840
  externalLabel: string | null;
1838
- description: string | null;
1839
- acceptanceCriteria: string | null;
1840
1841
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1841
1842
  artifactWorkspace: string | null;
1842
1843
  agentName: string | null;
@@ -1889,12 +1890,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1889
1890
  deckName: string | null;
1890
1891
  playbookId: string | null;
1891
1892
  repo: string | null;
1893
+ acceptanceCriteria: string | null;
1894
+ description: string | null;
1892
1895
  title: string;
1893
1896
  source: "manual" | "linear";
1894
1897
  externalId: string | null;
1895
1898
  externalLabel: string | null;
1896
- description: string | null;
1897
- acceptanceCriteria: string | null;
1898
1899
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1899
1900
  artifactWorkspace: string | null;
1900
1901
  agentName: string | null;
@@ -1914,12 +1915,12 @@ export declare const QueueSnapshot: z.ZodObject<{
1914
1915
  deckName: string | null;
1915
1916
  playbookId: string | null;
1916
1917
  repo: string | null;
1918
+ acceptanceCriteria: string | null;
1919
+ description: string | null;
1917
1920
  title: string;
1918
1921
  source: "manual" | "linear";
1919
1922
  externalId: string | null;
1920
1923
  externalLabel: string | null;
1921
- description: string | null;
1922
- acceptanceCriteria: string | null;
1923
1924
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
1924
1925
  artifactWorkspace: string | null;
1925
1926
  agentName: string | null;
@@ -2063,12 +2064,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2063
2064
  deckName: string | null;
2064
2065
  playbookId: string | null;
2065
2066
  repo: string | null;
2067
+ acceptanceCriteria: string | null;
2068
+ description: string | null;
2066
2069
  title: string;
2067
2070
  source: "manual" | "linear";
2068
2071
  externalId: string | null;
2069
2072
  externalLabel: string | null;
2070
- description: string | null;
2071
- acceptanceCriteria: string | null;
2072
2073
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2073
2074
  artifactWorkspace: string | null;
2074
2075
  agentName: string | null;
@@ -2089,12 +2090,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2089
2090
  deckName: string | null;
2090
2091
  playbookId: string | null;
2091
2092
  repo: string | null;
2093
+ acceptanceCriteria: string | null;
2094
+ description: string | null;
2092
2095
  title: string;
2093
2096
  source: "manual" | "linear";
2094
2097
  externalId: string | null;
2095
2098
  externalLabel: string | null;
2096
- description: string | null;
2097
- acceptanceCriteria: string | null;
2098
2099
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2099
2100
  artifactWorkspace: string | null;
2100
2101
  agentName: string | null;
@@ -2115,12 +2116,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2115
2116
  deckName: string | null;
2116
2117
  playbookId: string | null;
2117
2118
  repo: string | null;
2119
+ acceptanceCriteria: string | null;
2120
+ description: string | null;
2118
2121
  title: string;
2119
2122
  source: "manual" | "linear";
2120
2123
  externalId: string | null;
2121
2124
  externalLabel: string | null;
2122
- description: string | null;
2123
- acceptanceCriteria: string | null;
2124
2125
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2125
2126
  artifactWorkspace: string | null;
2126
2127
  agentName: string | null;
@@ -2141,12 +2142,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2141
2142
  deckName: string | null;
2142
2143
  playbookId: string | null;
2143
2144
  repo: string | null;
2145
+ acceptanceCriteria: string | null;
2146
+ description: string | null;
2144
2147
  title: string;
2145
2148
  source: "manual" | "linear";
2146
2149
  externalId: string | null;
2147
2150
  externalLabel: string | null;
2148
- description: string | null;
2149
- acceptanceCriteria: string | null;
2150
2151
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2151
2152
  artifactWorkspace: string | null;
2152
2153
  agentName: string | null;
@@ -2167,12 +2168,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2167
2168
  deckName: string | null;
2168
2169
  playbookId: string | null;
2169
2170
  repo: string | null;
2171
+ acceptanceCriteria: string | null;
2172
+ description: string | null;
2170
2173
  title: string;
2171
2174
  source: "manual" | "linear";
2172
2175
  externalId: string | null;
2173
2176
  externalLabel: string | null;
2174
- description: string | null;
2175
- acceptanceCriteria: string | null;
2176
2177
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2177
2178
  artifactWorkspace: string | null;
2178
2179
  agentName: string | null;
@@ -2193,12 +2194,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2193
2194
  deckName: string | null;
2194
2195
  playbookId: string | null;
2195
2196
  repo: string | null;
2197
+ acceptanceCriteria: string | null;
2198
+ description: string | null;
2196
2199
  title: string;
2197
2200
  source: "manual" | "linear";
2198
2201
  externalId: string | null;
2199
2202
  externalLabel: string | null;
2200
- description: string | null;
2201
- acceptanceCriteria: string | null;
2202
2203
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2203
2204
  artifactWorkspace: string | null;
2204
2205
  agentName: string | null;
@@ -2219,12 +2220,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2219
2220
  deckName: string | null;
2220
2221
  playbookId: string | null;
2221
2222
  repo: string | null;
2223
+ acceptanceCriteria: string | null;
2224
+ description: string | null;
2222
2225
  title: string;
2223
2226
  source: "manual" | "linear";
2224
2227
  externalId: string | null;
2225
2228
  externalLabel: string | null;
2226
- description: string | null;
2227
- acceptanceCriteria: string | null;
2228
2229
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2229
2230
  artifactWorkspace: string | null;
2230
2231
  agentName: string | null;
@@ -2245,12 +2246,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2245
2246
  deckName: string | null;
2246
2247
  playbookId: string | null;
2247
2248
  repo: string | null;
2249
+ acceptanceCriteria: string | null;
2250
+ description: string | null;
2248
2251
  title: string;
2249
2252
  source: "manual" | "linear";
2250
2253
  externalId: string | null;
2251
2254
  externalLabel: string | null;
2252
- description: string | null;
2253
- acceptanceCriteria: string | null;
2254
2255
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2255
2256
  artifactWorkspace: string | null;
2256
2257
  agentName: string | null;
@@ -2274,12 +2275,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2274
2275
  deckName: string | null;
2275
2276
  playbookId: string | null;
2276
2277
  repo: string | null;
2278
+ acceptanceCriteria: string | null;
2279
+ description: string | null;
2277
2280
  title: string;
2278
2281
  source: "manual" | "linear";
2279
2282
  externalId: string | null;
2280
2283
  externalLabel: string | null;
2281
- description: string | null;
2282
- acceptanceCriteria: string | null;
2283
2284
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2284
2285
  artifactWorkspace: string | null;
2285
2286
  agentName: string | null;
@@ -2335,12 +2336,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2335
2336
  deckName: string | null;
2336
2337
  playbookId: string | null;
2337
2338
  repo: string | null;
2339
+ acceptanceCriteria: string | null;
2340
+ description: string | null;
2338
2341
  title: string;
2339
2342
  source: "manual" | "linear";
2340
2343
  externalId: string | null;
2341
2344
  externalLabel: string | null;
2342
- description: string | null;
2343
- acceptanceCriteria: string | null;
2344
2345
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2345
2346
  artifactWorkspace: string | null;
2346
2347
  agentName: string | null;
@@ -2361,12 +2362,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2361
2362
  deckName: string | null;
2362
2363
  playbookId: string | null;
2363
2364
  repo: string | null;
2365
+ acceptanceCriteria: string | null;
2366
+ description: string | null;
2364
2367
  title: string;
2365
2368
  source: "manual" | "linear";
2366
2369
  externalId: string | null;
2367
2370
  externalLabel: string | null;
2368
- description: string | null;
2369
- acceptanceCriteria: string | null;
2370
2371
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2371
2372
  artifactWorkspace: string | null;
2372
2373
  agentName: string | null;
@@ -2387,12 +2388,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2387
2388
  deckName: string | null;
2388
2389
  playbookId: string | null;
2389
2390
  repo: string | null;
2391
+ acceptanceCriteria: string | null;
2392
+ description: string | null;
2390
2393
  title: string;
2391
2394
  source: "manual" | "linear";
2392
2395
  externalId: string | null;
2393
2396
  externalLabel: string | null;
2394
- description: string | null;
2395
- acceptanceCriteria: string | null;
2396
2397
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2397
2398
  artifactWorkspace: string | null;
2398
2399
  agentName: string | null;
@@ -2413,12 +2414,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2413
2414
  deckName: string | null;
2414
2415
  playbookId: string | null;
2415
2416
  repo: string | null;
2417
+ acceptanceCriteria: string | null;
2418
+ description: string | null;
2416
2419
  title: string;
2417
2420
  source: "manual" | "linear";
2418
2421
  externalId: string | null;
2419
2422
  externalLabel: string | null;
2420
- description: string | null;
2421
- acceptanceCriteria: string | null;
2422
2423
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2423
2424
  artifactWorkspace: string | null;
2424
2425
  agentName: string | null;
@@ -2439,12 +2440,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2439
2440
  deckName: string | null;
2440
2441
  playbookId: string | null;
2441
2442
  repo: string | null;
2443
+ acceptanceCriteria: string | null;
2444
+ description: string | null;
2442
2445
  title: string;
2443
2446
  source: "manual" | "linear";
2444
2447
  externalId: string | null;
2445
2448
  externalLabel: string | null;
2446
- description: string | null;
2447
- acceptanceCriteria: string | null;
2448
2449
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2449
2450
  artifactWorkspace: string | null;
2450
2451
  agentName: string | null;
@@ -2465,12 +2466,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2465
2466
  deckName: string | null;
2466
2467
  playbookId: string | null;
2467
2468
  repo: string | null;
2469
+ acceptanceCriteria: string | null;
2470
+ description: string | null;
2468
2471
  title: string;
2469
2472
  source: "manual" | "linear";
2470
2473
  externalId: string | null;
2471
2474
  externalLabel: string | null;
2472
- description: string | null;
2473
- acceptanceCriteria: string | null;
2474
2475
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2475
2476
  artifactWorkspace: string | null;
2476
2477
  agentName: string | null;
@@ -2491,12 +2492,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2491
2492
  deckName: string | null;
2492
2493
  playbookId: string | null;
2493
2494
  repo: string | null;
2495
+ acceptanceCriteria: string | null;
2496
+ description: string | null;
2494
2497
  title: string;
2495
2498
  source: "manual" | "linear";
2496
2499
  externalId: string | null;
2497
2500
  externalLabel: string | null;
2498
- description: string | null;
2499
- acceptanceCriteria: string | null;
2500
2501
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2501
2502
  artifactWorkspace: string | null;
2502
2503
  agentName: string | null;
@@ -2517,12 +2518,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2517
2518
  deckName: string | null;
2518
2519
  playbookId: string | null;
2519
2520
  repo: string | null;
2521
+ acceptanceCriteria: string | null;
2522
+ description: string | null;
2520
2523
  title: string;
2521
2524
  source: "manual" | "linear";
2522
2525
  externalId: string | null;
2523
2526
  externalLabel: string | null;
2524
- description: string | null;
2525
- acceptanceCriteria: string | null;
2526
2527
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2527
2528
  artifactWorkspace: string | null;
2528
2529
  agentName: string | null;
@@ -2546,12 +2547,12 @@ export declare const QueueSnapshot: z.ZodObject<{
2546
2547
  deckName: string | null;
2547
2548
  playbookId: string | null;
2548
2549
  repo: string | null;
2550
+ acceptanceCriteria: string | null;
2551
+ description: string | null;
2549
2552
  title: string;
2550
2553
  source: "manual" | "linear";
2551
2554
  externalId: string | null;
2552
2555
  externalLabel: string | null;
2553
- description: string | null;
2554
- acceptanceCriteria: string | null;
2555
2556
  taskCategory: "other" | "code" | "email" | "communication" | "research" | "content";
2556
2557
  artifactWorkspace: string | null;
2557
2558
  agentName: string | null;
@@ -24,6 +24,7 @@ export * from "./findings.js";
24
24
  export * from "./usage-events.js";
25
25
  export * from "./runtime-availability.js";
26
26
  export * from "./runtime-capacity.js";
27
+ export * from "./execution-contract.js";
27
28
  export * from "./queue-entries.js";
28
29
  export * from "./execution-analysis.js";
29
30
  export * from "./execution-report.js";
@@ -67,6 +68,8 @@ export const ArtifactKind = z.enum([
67
68
  "deliverable",
68
69
  "feedback",
69
70
  "playbook_patch",
71
+ "playbook_use_receipt",
72
+ "deck_feedback_signal",
70
73
  "reflect_status",
71
74
  "linear_sync",
72
75
  "send_receipt",