@harness-control/protocol 0.4.10 → 0.4.11

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/LICENSE +202 -202
  2. package/README.md +26 -26
  3. package/dist/accounts.d.ts +0 -0
  4. package/dist/accounts.js +0 -0
  5. package/dist/bin/conformance.d.ts +0 -0
  6. package/dist/bin/conformance.js +0 -0
  7. package/dist/bin/generate-json-schema.d.ts +0 -0
  8. package/dist/bin/generate-json-schema.js +0 -0
  9. package/dist/conformance.d.ts +0 -0
  10. package/dist/conformance.js +0 -0
  11. package/dist/conversation.d.ts +0 -0
  12. package/dist/conversation.js +0 -0
  13. package/dist/index.d.ts +30 -30
  14. package/dist/index.js +0 -0
  15. package/dist/json-schema.d.ts +0 -0
  16. package/dist/json-schema.js +0 -0
  17. package/dist/mcp-review.d.ts +0 -0
  18. package/dist/mcp-review.js +0 -0
  19. package/dist/native-review.d.ts +0 -0
  20. package/dist/native-review.js +0 -0
  21. package/dist/pairing.d.ts +0 -0
  22. package/dist/pairing.js +0 -0
  23. package/dist/session-reducer.d.ts +0 -0
  24. package/dist/session-reducer.js +0 -0
  25. package/fixtures/conformance/invalid/accounts-negative-quota.json +35 -35
  26. package/fixtures/conformance/invalid/accounts-secret.json +36 -36
  27. package/fixtures/conformance/invalid/arbitrary-event-family.json +13 -13
  28. package/fixtures/conformance/invalid/local-action-lease-binding-mismatch.json +49 -49
  29. package/fixtures/conformance/invalid/local-action-missing-turn-id.json +20 -20
  30. package/fixtures/conformance/invalid/local-action-patch-missing-base-hash.json +51 -51
  31. package/fixtures/conformance/invalid/local-action-shell-missing-approval.json +56 -56
  32. package/fixtures/conformance/invalid/mcp-stdio-attachment.json +27 -27
  33. package/fixtures/conformance/invalid/session-snapshot-unsafe-omission.json +26 -26
  34. package/fixtures/conformance/invalid/terminal-turn-missing-final-output.json +16 -16
  35. package/fixtures/conformance/invalid/unknown-payload-field.json +14 -14
  36. package/fixtures/conformance/invalid/unknown-top-level-field.json +14 -14
  37. package/fixtures/conformance/valid/accounts-read.json +11 -11
  38. package/fixtures/conformance/valid/accounts-snapshot.json +35 -35
  39. package/fixtures/conformance/valid/accounts-unavailable.json +21 -21
  40. package/fixtures/conformance/valid/command-ack.json +11 -11
  41. package/fixtures/conformance/valid/extension-event.json +18 -18
  42. package/fixtures/conformance/valid/host-hello.json +22 -22
  43. package/fixtures/conformance/valid/host-replay-unavailable.json +15 -15
  44. package/fixtures/conformance/valid/local-action-dev-server-start.json +68 -68
  45. package/fixtures/conformance/valid/local-action-dev-server-stop.json +52 -52
  46. package/fixtures/conformance/valid/local-action-error.json +38 -38
  47. package/fixtures/conformance/valid/local-action-filesystem-list.json +52 -52
  48. package/fixtures/conformance/valid/local-action-filesystem-patch.json +53 -53
  49. package/fixtures/conformance/valid/local-action-filesystem-read.json +51 -51
  50. package/fixtures/conformance/valid/local-action-filesystem-write.json +53 -53
  51. package/fixtures/conformance/valid/local-action-git-diff.json +53 -53
  52. package/fixtures/conformance/valid/local-action-git-status.json +51 -51
  53. package/fixtures/conformance/valid/local-action-response.json +49 -49
  54. package/fixtures/conformance/valid/local-action-shell-exec.json +63 -63
  55. package/fixtures/conformance/valid/provider-event.json +18 -18
  56. package/fixtures/conformance/valid/session-snapshot-request.json +9 -9
  57. package/fixtures/conformance/valid/session-snapshot.json +28 -28
  58. package/fixtures/conformance/valid/session-start-with-leases.json +85 -85
  59. package/fixtures/conformance/valid/session-start-with-runner-stdio-profile.json +27 -27
  60. package/fixtures/conformance/valid/turn-completed.json +30 -30
  61. package/fixtures/mcp-review.json +20 -20
  62. package/package.json +68 -68
  63. package/schemas/hcp-message.schema.json +0 -0
  64. package/schemas/mcp-review.json +0 -0
package/dist/index.d.ts CHANGED
@@ -731,8 +731,8 @@ export declare const hcpHostHeartbeatPayloadSchema: z.ZodObject<{
731
731
  export declare const localCapabilitySnapshotSchema: z.ZodObject<{
732
732
  id: z.ZodString;
733
733
  status: z.ZodEnum<{
734
- unknown: "unknown";
735
734
  available: "available";
735
+ unknown: "unknown";
736
736
  unavailable: "unavailable";
737
737
  disabled: "disabled";
738
738
  }>;
@@ -743,8 +743,8 @@ export declare const localCapabilitySnapshotSchema: z.ZodObject<{
743
743
  export declare const providerAuthSnapshotSchema: z.ZodObject<{
744
744
  status: z.ZodEnum<{
745
745
  unknown: "unknown";
746
- authenticated: "authenticated";
747
746
  unauthenticated: "unauthenticated";
747
+ authenticated: "authenticated";
748
748
  }>;
749
749
  type: z.ZodOptional<z.ZodString>;
750
750
  label: z.ZodOptional<z.ZodString>;
@@ -836,8 +836,8 @@ export declare const harnessProviderSnapshotSchema: z.ZodObject<{
836
836
  auth: z.ZodOptional<z.ZodObject<{
837
837
  status: z.ZodEnum<{
838
838
  unknown: "unknown";
839
- authenticated: "authenticated";
840
839
  unauthenticated: "unauthenticated";
840
+ authenticated: "authenticated";
841
841
  }>;
842
842
  type: z.ZodOptional<z.ZodString>;
843
843
  label: z.ZodOptional<z.ZodString>;
@@ -1021,8 +1021,8 @@ export declare const hcpHostCapabilitiesUpdatedPayloadSchema: z.ZodObject<{
1021
1021
  auth: z.ZodOptional<z.ZodObject<{
1022
1022
  status: z.ZodEnum<{
1023
1023
  unknown: "unknown";
1024
- authenticated: "authenticated";
1025
1024
  unauthenticated: "unauthenticated";
1025
+ authenticated: "authenticated";
1026
1026
  }>;
1027
1027
  type: z.ZodOptional<z.ZodString>;
1028
1028
  label: z.ZodOptional<z.ZodString>;
@@ -1074,8 +1074,8 @@ export declare const hcpHostCapabilitiesUpdatedPayloadSchema: z.ZodObject<{
1074
1074
  local_capabilities: z.ZodArray<z.ZodObject<{
1075
1075
  id: z.ZodString;
1076
1076
  status: z.ZodEnum<{
1077
- unknown: "unknown";
1078
1077
  available: "available";
1078
+ unknown: "unknown";
1079
1079
  unavailable: "unavailable";
1080
1080
  disabled: "disabled";
1081
1081
  }>;
@@ -1385,8 +1385,8 @@ export declare const hcpSessionStartPayloadSchema: z.ZodObject<{
1385
1385
  input: z.ZodString;
1386
1386
  not_after: z.ZodString;
1387
1387
  mode: z.ZodOptional<z.ZodEnum<{
1388
- execute: "execute";
1389
1388
  plan: "plan";
1389
+ execute: "execute";
1390
1390
  }>>;
1391
1391
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
1392
1392
  mime_type: z.ZodEnum<{
@@ -1407,8 +1407,8 @@ export declare const hcpTurnSendPayloadSchema: z.ZodObject<{
1407
1407
  turn_id: z.ZodString;
1408
1408
  input: z.ZodString;
1409
1409
  mode: z.ZodOptional<z.ZodEnum<{
1410
- execute: "execute";
1411
1410
  plan: "plan";
1411
+ execute: "execute";
1412
1412
  }>>;
1413
1413
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
1414
1414
  mime_type: z.ZodEnum<{
@@ -1485,8 +1485,8 @@ export declare const localFilesystemReadRequestPayloadSchema: z.ZodObject<{
1485
1485
  input: z.ZodObject<{
1486
1486
  path: z.ZodString;
1487
1487
  encoding: z.ZodOptional<z.ZodEnum<{
1488
- utf8: "utf8";
1489
1488
  base64: "base64";
1489
+ utf8: "utf8";
1490
1490
  }>>;
1491
1491
  range: z.ZodOptional<z.ZodObject<{
1492
1492
  start: z.ZodOptional<z.ZodNumber>;
@@ -1619,8 +1619,8 @@ export declare const localFilesystemWriteRequestPayloadSchema: z.ZodObject<{
1619
1619
  path: z.ZodString;
1620
1620
  content: z.ZodString;
1621
1621
  encoding: z.ZodOptional<z.ZodEnum<{
1622
- utf8: "utf8";
1623
1622
  base64: "base64";
1623
+ utf8: "utf8";
1624
1624
  }>>;
1625
1625
  mode: z.ZodEnum<{
1626
1626
  create: "create";
@@ -2124,8 +2124,8 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
2124
2124
  input: z.ZodObject<{
2125
2125
  path: z.ZodString;
2126
2126
  encoding: z.ZodOptional<z.ZodEnum<{
2127
- utf8: "utf8";
2128
2127
  base64: "base64";
2128
+ utf8: "utf8";
2129
2129
  }>>;
2130
2130
  range: z.ZodOptional<z.ZodObject<{
2131
2131
  start: z.ZodOptional<z.ZodNumber>;
@@ -2256,8 +2256,8 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
2256
2256
  path: z.ZodString;
2257
2257
  content: z.ZodString;
2258
2258
  encoding: z.ZodOptional<z.ZodEnum<{
2259
- utf8: "utf8";
2260
2259
  base64: "base64";
2260
+ utf8: "utf8";
2261
2261
  }>>;
2262
2262
  mode: z.ZodEnum<{
2263
2263
  create: "create";
@@ -2748,8 +2748,8 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
2748
2748
  path: z.ZodString;
2749
2749
  content: z.ZodString;
2750
2750
  encoding: z.ZodEnum<{
2751
- utf8: "utf8";
2752
2751
  base64: "base64";
2752
+ utf8: "utf8";
2753
2753
  }>;
2754
2754
  hash: z.ZodString;
2755
2755
  truncated: z.ZodOptional<z.ZodBoolean>;
@@ -3503,8 +3503,8 @@ export declare const hcpHostCapabilitiesUpdatedMessageSchema: z.ZodObject<{
3503
3503
  auth: z.ZodOptional<z.ZodObject<{
3504
3504
  status: z.ZodEnum<{
3505
3505
  unknown: "unknown";
3506
- authenticated: "authenticated";
3507
3506
  unauthenticated: "unauthenticated";
3507
+ authenticated: "authenticated";
3508
3508
  }>;
3509
3509
  type: z.ZodOptional<z.ZodString>;
3510
3510
  label: z.ZodOptional<z.ZodString>;
@@ -3556,8 +3556,8 @@ export declare const hcpHostCapabilitiesUpdatedMessageSchema: z.ZodObject<{
3556
3556
  local_capabilities: z.ZodArray<z.ZodObject<{
3557
3557
  id: z.ZodString;
3558
3558
  status: z.ZodEnum<{
3559
- unknown: "unknown";
3560
3559
  available: "available";
3560
+ unknown: "unknown";
3561
3561
  unavailable: "unavailable";
3562
3562
  disabled: "disabled";
3563
3563
  }>;
@@ -3705,8 +3705,8 @@ export declare const hcpSessionStartMessageSchema: z.ZodObject<{
3705
3705
  input: z.ZodString;
3706
3706
  not_after: z.ZodString;
3707
3707
  mode: z.ZodOptional<z.ZodEnum<{
3708
- execute: "execute";
3709
3708
  plan: "plan";
3709
+ execute: "execute";
3710
3710
  }>>;
3711
3711
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
3712
3712
  mime_type: z.ZodEnum<{
@@ -3811,8 +3811,8 @@ export declare const hcpTurnSendMessageSchema: z.ZodObject<{
3811
3811
  turn_id: z.ZodString;
3812
3812
  input: z.ZodString;
3813
3813
  mode: z.ZodOptional<z.ZodEnum<{
3814
- execute: "execute";
3815
3814
  plan: "plan";
3815
+ execute: "execute";
3816
3816
  }>>;
3817
3817
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
3818
3818
  mime_type: z.ZodEnum<{
@@ -3931,8 +3931,8 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
3931
3931
  input: z.ZodObject<{
3932
3932
  path: z.ZodString;
3933
3933
  encoding: z.ZodOptional<z.ZodEnum<{
3934
- utf8: "utf8";
3935
3934
  base64: "base64";
3935
+ utf8: "utf8";
3936
3936
  }>>;
3937
3937
  range: z.ZodOptional<z.ZodObject<{
3938
3938
  start: z.ZodOptional<z.ZodNumber>;
@@ -4063,8 +4063,8 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
4063
4063
  path: z.ZodString;
4064
4064
  content: z.ZodString;
4065
4065
  encoding: z.ZodOptional<z.ZodEnum<{
4066
- utf8: "utf8";
4067
4066
  base64: "base64";
4067
+ utf8: "utf8";
4068
4068
  }>>;
4069
4069
  mode: z.ZodEnum<{
4070
4070
  create: "create";
@@ -4562,8 +4562,8 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
4562
4562
  path: z.ZodString;
4563
4563
  content: z.ZodString;
4564
4564
  encoding: z.ZodEnum<{
4565
- utf8: "utf8";
4566
4565
  base64: "base64";
4566
+ utf8: "utf8";
4567
4567
  }>;
4568
4568
  hash: z.ZodString;
4569
4569
  truncated: z.ZodOptional<z.ZodBoolean>;
@@ -5090,9 +5090,9 @@ export declare const hcpAccountsSnapshotMessageSchema: z.ZodObject<{
5090
5090
  key: z.ZodString;
5091
5091
  provider: z.ZodString;
5092
5092
  scope_source: z.ZodEnum<{
5093
+ local: "local";
5093
5094
  provider: "provider";
5094
5095
  operator: "operator";
5095
- local: "local";
5096
5096
  }>;
5097
5097
  label: z.ZodString;
5098
5098
  }, z.core.$strict>;
@@ -5117,8 +5117,8 @@ export declare const hcpAccountsSnapshotMessageSchema: z.ZodObject<{
5117
5117
  observed_at: z.ZodISODateTime;
5118
5118
  reason: z.ZodEnum<{
5119
5119
  disabled: "disabled";
5120
- unauthenticated: "unauthenticated";
5121
5120
  unsupported: "unsupported";
5121
+ unauthenticated: "unauthenticated";
5122
5122
  not_applicable: "not_applicable";
5123
5123
  timeout: "timeout";
5124
5124
  provider_error: "provider_error";
@@ -5246,9 +5246,9 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5246
5246
  key: z.ZodString;
5247
5247
  provider: z.ZodString;
5248
5248
  scope_source: z.ZodEnum<{
5249
+ local: "local";
5249
5250
  provider: "provider";
5250
5251
  operator: "operator";
5251
- local: "local";
5252
5252
  }>;
5253
5253
  label: z.ZodString;
5254
5254
  }, z.core.$strict>;
@@ -5273,8 +5273,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5273
5273
  observed_at: z.ZodISODateTime;
5274
5274
  reason: z.ZodEnum<{
5275
5275
  disabled: "disabled";
5276
- unauthenticated: "unauthenticated";
5277
5276
  unsupported: "unsupported";
5277
+ unauthenticated: "unauthenticated";
5278
5278
  not_applicable: "not_applicable";
5279
5279
  timeout: "timeout";
5280
5280
  provider_error: "provider_error";
@@ -5486,8 +5486,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5486
5486
  auth: z.ZodOptional<z.ZodObject<{
5487
5487
  status: z.ZodEnum<{
5488
5488
  unknown: "unknown";
5489
- authenticated: "authenticated";
5490
5489
  unauthenticated: "unauthenticated";
5490
+ authenticated: "authenticated";
5491
5491
  }>;
5492
5492
  type: z.ZodOptional<z.ZodString>;
5493
5493
  label: z.ZodOptional<z.ZodString>;
@@ -5539,8 +5539,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5539
5539
  local_capabilities: z.ZodArray<z.ZodObject<{
5540
5540
  id: z.ZodString;
5541
5541
  status: z.ZodEnum<{
5542
- unknown: "unknown";
5543
5542
  available: "available";
5543
+ unknown: "unknown";
5544
5544
  unavailable: "unavailable";
5545
5545
  disabled: "disabled";
5546
5546
  }>;
@@ -5686,8 +5686,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5686
5686
  input: z.ZodString;
5687
5687
  not_after: z.ZodString;
5688
5688
  mode: z.ZodOptional<z.ZodEnum<{
5689
- execute: "execute";
5690
5689
  plan: "plan";
5690
+ execute: "execute";
5691
5691
  }>>;
5692
5692
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
5693
5693
  mime_type: z.ZodEnum<{
@@ -5789,8 +5789,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5789
5789
  turn_id: z.ZodString;
5790
5790
  input: z.ZodString;
5791
5791
  mode: z.ZodOptional<z.ZodEnum<{
5792
- execute: "execute";
5793
5792
  plan: "plan";
5793
+ execute: "execute";
5794
5794
  }>>;
5795
5795
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
5796
5796
  mime_type: z.ZodEnum<{
@@ -5903,8 +5903,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5903
5903
  input: z.ZodObject<{
5904
5904
  path: z.ZodString;
5905
5905
  encoding: z.ZodOptional<z.ZodEnum<{
5906
- utf8: "utf8";
5907
5906
  base64: "base64";
5907
+ utf8: "utf8";
5908
5908
  }>>;
5909
5909
  range: z.ZodOptional<z.ZodObject<{
5910
5910
  start: z.ZodOptional<z.ZodNumber>;
@@ -6035,8 +6035,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6035
6035
  path: z.ZodString;
6036
6036
  content: z.ZodString;
6037
6037
  encoding: z.ZodOptional<z.ZodEnum<{
6038
- utf8: "utf8";
6039
6038
  base64: "base64";
6039
+ utf8: "utf8";
6040
6040
  }>>;
6041
6041
  mode: z.ZodEnum<{
6042
6042
  create: "create";
@@ -6533,8 +6533,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6533
6533
  path: z.ZodString;
6534
6534
  content: z.ZodString;
6535
6535
  encoding: z.ZodEnum<{
6536
- utf8: "utf8";
6537
6536
  base64: "base64";
6537
+ utf8: "utf8";
6538
6538
  }>;
6539
6539
  hash: z.ZodString;
6540
6540
  truncated: z.ZodOptional<z.ZodBoolean>;
package/dist/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/pairing.d.ts CHANGED
File without changes
package/dist/pairing.js CHANGED
File without changes
File without changes
File without changes
@@ -1,35 +1,35 @@
1
- {
2
- "id": "account-fixture",
3
- "version": "hcp.v0",
4
- "sent_at": "2026-09-12T00:00:00Z",
5
- "type": "host.accounts.snapshot",
6
- "payload": {
7
- "request_id": "read-1",
8
- "host_id": "host-1",
9
- "providers": [
10
- {
11
- "provider_instance_id": "codex",
12
- "observation": {
13
- "status": "available",
14
- "observed_at": "2026-09-12T00:00:00Z",
15
- "account": {
16
- "key": "account-1",
17
- "provider": "codex",
18
- "scope_source": "operator",
19
- "label": "Work"
20
- },
21
- "source": "codex_app_server",
22
- "limits": [
23
- {
24
- "id": "weekly",
25
- "label": "Weekly",
26
- "kind": "quota",
27
- "used_percent": -1,
28
- "resets_at": "2026-09-19T00:00:00Z"
29
- }
30
- ]
31
- }
32
- }
33
- ]
34
- }
35
- }
1
+ {
2
+ "id": "account-fixture",
3
+ "version": "hcp.v0",
4
+ "sent_at": "2026-09-12T00:00:00Z",
5
+ "type": "host.accounts.snapshot",
6
+ "payload": {
7
+ "request_id": "read-1",
8
+ "host_id": "host-1",
9
+ "providers": [
10
+ {
11
+ "provider_instance_id": "codex",
12
+ "observation": {
13
+ "status": "available",
14
+ "observed_at": "2026-09-12T00:00:00Z",
15
+ "account": {
16
+ "key": "account-1",
17
+ "provider": "codex",
18
+ "scope_source": "operator",
19
+ "label": "Work"
20
+ },
21
+ "source": "codex_app_server",
22
+ "limits": [
23
+ {
24
+ "id": "weekly",
25
+ "label": "Weekly",
26
+ "kind": "quota",
27
+ "used_percent": -1,
28
+ "resets_at": "2026-09-19T00:00:00Z"
29
+ }
30
+ ]
31
+ }
32
+ }
33
+ ]
34
+ }
35
+ }
@@ -1,36 +1,36 @@
1
- {
2
- "id": "account-fixture",
3
- "version": "hcp.v0",
4
- "sent_at": "2026-09-12T00:00:00Z",
5
- "type": "host.accounts.snapshot",
6
- "payload": {
7
- "request_id": "read-1",
8
- "host_id": "host-1",
9
- "providers": [
10
- {
11
- "provider_instance_id": "codex",
12
- "observation": {
13
- "status": "available",
14
- "observed_at": "2026-09-12T00:00:00Z",
15
- "account": {
16
- "key": "account-1",
17
- "provider": "codex",
18
- "scope_source": "operator",
19
- "label": "Work"
20
- },
21
- "source": "codex_app_server",
22
- "limits": [
23
- {
24
- "id": "weekly",
25
- "label": "Weekly",
26
- "kind": "quota",
27
- "used_percent": 95,
28
- "resets_at": "2026-09-19T00:00:00Z"
29
- }
30
- ]
31
- }
32
- }
33
- ],
34
- "api_key": "not-permitted"
35
- }
36
- }
1
+ {
2
+ "id": "account-fixture",
3
+ "version": "hcp.v0",
4
+ "sent_at": "2026-09-12T00:00:00Z",
5
+ "type": "host.accounts.snapshot",
6
+ "payload": {
7
+ "request_id": "read-1",
8
+ "host_id": "host-1",
9
+ "providers": [
10
+ {
11
+ "provider_instance_id": "codex",
12
+ "observation": {
13
+ "status": "available",
14
+ "observed_at": "2026-09-12T00:00:00Z",
15
+ "account": {
16
+ "key": "account-1",
17
+ "provider": "codex",
18
+ "scope_source": "operator",
19
+ "label": "Work"
20
+ },
21
+ "source": "codex_app_server",
22
+ "limits": [
23
+ {
24
+ "id": "weekly",
25
+ "label": "Weekly",
26
+ "kind": "quota",
27
+ "used_percent": 95,
28
+ "resets_at": "2026-09-19T00:00:00Z"
29
+ }
30
+ ]
31
+ }
32
+ }
33
+ ],
34
+ "api_key": "not-permitted"
35
+ }
36
+ }
@@ -1,13 +1,13 @@
1
- {
2
- "id": "message-arbitrary-event-family",
3
- "type": "harness.event",
4
- "version": "hcp.v0",
5
- "sent_at": "2026-01-01T00:00:00.000Z",
6
- "payload": {
7
- "session_id": "session-1",
8
- "sequence": 1,
9
- "event_type": "custom.raw",
10
- "created_at": "2026-01-01T00:00:01.000Z",
11
- "data": {}
12
- }
13
- }
1
+ {
2
+ "id": "message-arbitrary-event-family",
3
+ "type": "harness.event",
4
+ "version": "hcp.v0",
5
+ "sent_at": "2026-01-01T00:00:00.000Z",
6
+ "payload": {
7
+ "session_id": "session-1",
8
+ "sequence": 1,
9
+ "event_type": "custom.raw",
10
+ "created_at": "2026-01-01T00:00:01.000Z",
11
+ "data": {}
12
+ }
13
+ }
@@ -1,49 +1,49 @@
1
- {
2
- "id": "message-local-action-lease-binding-mismatch",
3
- "type": "local.action.request",
4
- "version": "hcp.v0",
5
- "sent_at": "2026-01-01T00:00:00.000Z",
6
- "payload": {
7
- "request_id": "local-action-read-bad",
8
- "action": "local.filesystem.read",
9
- "issued_at": "2026-01-01T00:00:01.000Z",
10
- "attribution": {
11
- "session_id": "session-1",
12
- "turn_id": "turn-1",
13
- "workspace_id": "workspace-1",
14
- "provider_instance_id": "provider-1"
15
- },
16
- "lease": {
17
- "lease_id": "local-lease-read",
18
- "capability_id": "git",
19
- "scope": "workspace_read",
20
- "hcp_session_id": "session-1",
21
- "execution_host_id": "host-1",
22
- "provider_instance_id": "provider-1",
23
- "workspace_id": "workspace-1"
24
- },
25
- "sandbox": {
26
- "mode": "workspace_write",
27
- "workspace_root": "/tmp/workspace",
28
- "cwd": "/tmp/workspace",
29
- "requires_workspace_containment": true
30
- },
31
- "approval": {
32
- "status": "not_required"
33
- },
34
- "output_limits": {
35
- "content_bytes": 65536
36
- },
37
- "cancellation": {
38
- "cancellable": false
39
- },
40
- "audit": {
41
- "started_event_type": "local_capability.action.started",
42
- "completed_event_type": "local_capability.action.completed",
43
- "failed_event_type": "local_capability.action.failed"
44
- },
45
- "input": {
46
- "path": "README.md"
47
- }
48
- }
49
- }
1
+ {
2
+ "id": "message-local-action-lease-binding-mismatch",
3
+ "type": "local.action.request",
4
+ "version": "hcp.v0",
5
+ "sent_at": "2026-01-01T00:00:00.000Z",
6
+ "payload": {
7
+ "request_id": "local-action-read-bad",
8
+ "action": "local.filesystem.read",
9
+ "issued_at": "2026-01-01T00:00:01.000Z",
10
+ "attribution": {
11
+ "session_id": "session-1",
12
+ "turn_id": "turn-1",
13
+ "workspace_id": "workspace-1",
14
+ "provider_instance_id": "provider-1"
15
+ },
16
+ "lease": {
17
+ "lease_id": "local-lease-read",
18
+ "capability_id": "git",
19
+ "scope": "workspace_read",
20
+ "hcp_session_id": "session-1",
21
+ "execution_host_id": "host-1",
22
+ "provider_instance_id": "provider-1",
23
+ "workspace_id": "workspace-1"
24
+ },
25
+ "sandbox": {
26
+ "mode": "workspace_write",
27
+ "workspace_root": "/tmp/workspace",
28
+ "cwd": "/tmp/workspace",
29
+ "requires_workspace_containment": true
30
+ },
31
+ "approval": {
32
+ "status": "not_required"
33
+ },
34
+ "output_limits": {
35
+ "content_bytes": 65536
36
+ },
37
+ "cancellation": {
38
+ "cancellable": false
39
+ },
40
+ "audit": {
41
+ "started_event_type": "local_capability.action.started",
42
+ "completed_event_type": "local_capability.action.completed",
43
+ "failed_event_type": "local_capability.action.failed"
44
+ },
45
+ "input": {
46
+ "path": "README.md"
47
+ }
48
+ }
49
+ }
@@ -1,20 +1,20 @@
1
- {
2
- "id": "message-local-action-missing-turn-id",
3
- "type": "harness.event",
4
- "version": "hcp.v0",
5
- "sent_at": "2026-01-01T00:00:00.000Z",
6
- "payload": {
7
- "session_id": "session-1",
8
- "sequence": 1,
9
- "event_type": "local_capability.action.started",
10
- "created_at": "2026-01-01T00:00:01.000Z",
11
- "data": {
12
- "lease_id": "local-lease-1",
13
- "workspace_id": "workspace-1",
14
- "provider_instance_id": "provider-1",
15
- "capability_id": "filesystem",
16
- "action": "read_file",
17
- "status": "started"
18
- }
19
- }
20
- }
1
+ {
2
+ "id": "message-local-action-missing-turn-id",
3
+ "type": "harness.event",
4
+ "version": "hcp.v0",
5
+ "sent_at": "2026-01-01T00:00:00.000Z",
6
+ "payload": {
7
+ "session_id": "session-1",
8
+ "sequence": 1,
9
+ "event_type": "local_capability.action.started",
10
+ "created_at": "2026-01-01T00:00:01.000Z",
11
+ "data": {
12
+ "lease_id": "local-lease-1",
13
+ "workspace_id": "workspace-1",
14
+ "provider_instance_id": "provider-1",
15
+ "capability_id": "filesystem",
16
+ "action": "read_file",
17
+ "status": "started"
18
+ }
19
+ }
20
+ }