@openplanr/protocol 0.12.0 → 0.13.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openplanr/protocol",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "description": "Canonical OpenPlanr schemas, registries, typed errors, and portable contract validation",
6
6
  "license": "MIT",
@@ -147,9 +147,9 @@
147
147
  "access": "public"
148
148
  },
149
149
  "devDependencies": {
150
- "esbuild": "0.28.1",
151
- "miniflare": "4.20260708.1",
152
- "playwright": "1.61.1",
150
+ "esbuild": "0.28.2",
151
+ "miniflare": "4.20260730.0",
152
+ "playwright": "1.64.0",
153
153
  "typescript": "6.0.2"
154
154
  }
155
155
  }
@@ -356,7 +356,7 @@
356
356
  "ownerPackage": "openplanr",
357
357
  "source": {
358
358
  "path": "skills/planr-plan/SKILL.md",
359
- "digest": "sha256:1f4d7295484abacb0dbe8e0b59398248d9a7d272d9706a235d51bb3990ec9643"
359
+ "digest": "sha256:71ab2272efa19f817af597de0bf5aee163bcb1cd17418998107f21a412e91996"
360
360
  },
361
361
  "authorityClass": "workflow",
362
362
  "machineJson": false,
@@ -482,7 +482,7 @@
482
482
  "ownerPackage": "openplanr",
483
483
  "source": {
484
484
  "path": "packages/cli/src/cli/commands/init-deterministic.ts",
485
- "digest": "sha256:1b0096935b968df8ee70985a7100dd39b6d79febbcdcf396e5b65466fe589a41"
485
+ "digest": "sha256:cef1f26019ce66c7caf2cfec5c995c96e259e40e1c893e8bcfd7ad54c56c3f39"
486
486
  },
487
487
  "authorityClass": "workflow",
488
488
  "machineJson": false,
@@ -587,7 +587,7 @@
587
587
  "ownerPackage": "openplanr",
588
588
  "source": {
589
589
  "path": "skills/planr-plan/SKILL.md",
590
- "digest": "sha256:1f4d7295484abacb0dbe8e0b59398248d9a7d272d9706a235d51bb3990ec9643"
590
+ "digest": "sha256:71ab2272efa19f817af597de0bf5aee163bcb1cd17418998107f21a412e91996"
591
591
  },
592
592
  "authorityClass": "workflow",
593
593
  "machineJson": false,
@@ -1091,7 +1091,7 @@
1091
1091
  "ownerPackage": "planr-pipeline",
1092
1092
  "source": {
1093
1093
  "path": "skills/planr-plan/SKILL.md",
1094
- "digest": "sha256:1f4d7295484abacb0dbe8e0b59398248d9a7d272d9706a235d51bb3990ec9643"
1094
+ "digest": "sha256:71ab2272efa19f817af597de0bf5aee163bcb1cd17418998107f21a412e91996"
1095
1095
  },
1096
1096
  "authorityClass": "compatibility-router",
1097
1097
  "machineJson": false,
@@ -1112,7 +1112,7 @@
1112
1112
  "ownerPackage": "planr-pipeline",
1113
1113
  "source": {
1114
1114
  "path": "skills/planr-ship/SKILL.md",
1115
- "digest": "sha256:4a2a029a2a3557a621da8816c6905d7cfc19921da9ca74516838a2aff9f94245"
1115
+ "digest": "sha256:828f3b7a6bd1b6c42d257315bc3fcfc29a5db5ac478c797bb26d2a7553d010b1"
1116
1116
  },
1117
1117
  "authorityClass": "compatibility-router",
1118
1118
  "machineJson": false,
@@ -1133,7 +1133,7 @@
1133
1133
  "ownerPackage": "planr-pipeline",
1134
1134
  "source": {
1135
1135
  "path": "skills/planr-status/SKILL.md",
1136
- "digest": "sha256:d1d4ef34075312827cf9a4a67896977ed1608c1bf8881b8a8ed164340034c0cc"
1136
+ "digest": "sha256:09683973f4415f5356e9ab57b61df93106c4a2bc886e8b64e409fcfb539ad885"
1137
1137
  },
1138
1138
  "authorityClass": "compatibility-router",
1139
1139
  "machineJson": false,
@@ -1154,7 +1154,7 @@
1154
1154
  "ownerPackage": "planr-pipeline",
1155
1155
  "source": {
1156
1156
  "path": "skills/planr-sync/SKILL.md",
1157
- "digest": "sha256:0e63252ba06b2842f7d6005782056100930a1559ae393164d7afd615df63384b"
1157
+ "digest": "sha256:4fb542bc7a0685904b6d6f58ec9fae3c539531793e1933474fbc3c3d34702e24"
1158
1158
  },
1159
1159
  "authorityClass": "compatibility-router",
1160
1160
  "machineJson": false,
@@ -1948,5 +1948,5 @@
1948
1948
  ]
1949
1949
  }
1950
1950
  ],
1951
- "documentDigest": "sha256:735f3c5f9f5e3b1a14ea614361083192768652bd993ea0e47cda9384f1c85da1"
1951
+ "documentDigest": "sha256:0845b4b4bcc6cd45122ba6531c0c8793f05334012f18cfb58fb704940d3d9488"
1952
1952
  }
@@ -373,6 +373,67 @@
373
373
  "evaluation/skills/migrations/planr-cmo-review.json"
374
374
  ]
375
375
  },
376
+ {
377
+ "skillId": "planr-connect",
378
+ "skillVersion": "1.0.0",
379
+ "description": "Report which chat, project tracker and source control connections the host has, and guide connecting the missing ones through the host. Use when the user wants to connect a service for OpenPlanr or asks what is connected.",
380
+ "lifecycle": "active",
381
+ "authorityClass": "diagnostic",
382
+ "source": "skills/planr-connect/openplanr.skill.json",
383
+ "sourceDigest": "sha256:e231e5a446e409f860079f4df07c7abb5d160f35b578c4252516094e100d3994",
384
+ "triggerPolicy": {
385
+ "include": [
386
+ "Connect chat, a project tracker or source control for OpenPlanr",
387
+ "Check which services OpenPlanr can reach through the host's connections"
388
+ ],
389
+ "exclude": [
390
+ "Diagnose OpenPlanr installation or runtime health",
391
+ "Synchronize planning artifacts with a tracker"
392
+ ],
393
+ "deferTo": []
394
+ },
395
+ "contracts": {
396
+ "inputs": [],
397
+ "outputs": [
398
+ {
399
+ "id": "connect-result",
400
+ "version": "1.0.0"
401
+ }
402
+ ]
403
+ },
404
+ "cliRequirements": [],
405
+ "ruleIds": [
406
+ "R1",
407
+ "R5",
408
+ "R7"
409
+ ],
410
+ "contributionManifestRefs": [
411
+ "packages/skill-runtime/contributions/workflows.json"
412
+ ],
413
+ "hosts": [
414
+ {
415
+ "host": "claude-code",
416
+ "entrypoint": "/planr:connect",
417
+ "path": "dist/plugins/claude/openplanr/skills/connect/SKILL.md"
418
+ },
419
+ {
420
+ "host": "codex",
421
+ "entrypoint": "$planr:connect",
422
+ "path": "dist/plugins/openai/openplanr/skills/connect/SKILL.md"
423
+ },
424
+ {
425
+ "host": "cursor",
426
+ "entrypoint": "planr-connect",
427
+ "path": "dist/plugins/cursor/openplanr/rules/planr-connect.mdc"
428
+ }
429
+ ],
430
+ "testRefs": [
431
+ "tests/protocol/skill-catalog.test.mjs"
432
+ ],
433
+ "certificationRefs": [
434
+ "evaluation/skills/migrations/planr-connect.json"
435
+ ]
436
+ },
376
437
  {
377
438
  "skillId": "planr-coo-review",
378
439
  "skillVersion": "2.0.1",
@@ -694,7 +755,7 @@
694
755
  "lifecycle": "active",
695
756
  "authorityClass": "planning-write",
696
757
  "source": "skills/planr-design/openplanr.skill.json",
697
- "sourceDigest": "sha256:ec8ec0d5e7abf163604ba3932112c626480bc49613ec07bf2e9046f03633db2c",
758
+ "sourceDigest": "sha256:9572439c52794f550ec50012ca7b1ab695b39bd3cf7c1ec43a6606751133df43",
698
759
  "triggerPolicy": {
699
760
  "include": [
700
761
  "Create an initial product design direction",
@@ -755,7 +816,7 @@
755
816
  "lifecycle": "active",
756
817
  "authorityClass": "planning-write",
757
818
  "source": "skills/planr-design-loop/openplanr.skill.json",
758
- "sourceDigest": "sha256:8ef5762d5a6618b4ed0352d03e751f02fc99b7219a797650a538b284e09ef604",
819
+ "sourceDigest": "sha256:c86d4ca6988fd5c1471d7dc99188929ea7d2d695d15df43adb2340198895fc27",
759
820
  "triggerPolicy": {
760
821
  "include": [
761
822
  "Explore multiple design directions or variants",
@@ -816,7 +877,7 @@
816
877
  "lifecycle": "active",
817
878
  "authorityClass": "review-evidence",
818
879
  "source": "skills/planr-design-review/openplanr.skill.json",
819
- "sourceDigest": "sha256:ffea22b6ec59f0d48cfc3cc02689f62e59e69f33eba9135e6a2427515d722377",
880
+ "sourceDigest": "sha256:4a12e9dd2ae9a7246a6abb094623aa112591f58422e2632060a71564939ad592",
820
881
  "triggerPolicy": {
821
882
  "include": [
822
883
  "Review or critique an existing OpenPlanr design",
@@ -1424,6 +1485,67 @@
1424
1485
  "evaluation/skills/migrations/planr-release.json"
1425
1486
  ]
1426
1487
  },
1488
+ {
1489
+ "skillId": "planr-share",
1490
+ "skillVersion": "1.0.0",
1491
+ "description": "Share a status report, sprint note or release notes with the team as a chat message draft that the user approves and sends. Use when the user asks to post a planning update to chat.",
1492
+ "lifecycle": "active",
1493
+ "authorityClass": "external-write",
1494
+ "source": "skills/planr-share/openplanr.skill.json",
1495
+ "sourceDigest": "sha256:832195e643d77f5457d468a530c76512935b4df0d6acf7ab5f3d88b06338c4b2",
1496
+ "triggerPolicy": {
1497
+ "include": [
1498
+ "Share the delivery status, sprint note or release notes with the team in chat",
1499
+ "Post a planning update to a chat channel as a draft"
1500
+ ],
1501
+ "exclude": [
1502
+ "Report delivery status without sharing it",
1503
+ "Write or publish release notes"
1504
+ ],
1505
+ "deferTo": []
1506
+ },
1507
+ "contracts": {
1508
+ "inputs": [],
1509
+ "outputs": [
1510
+ {
1511
+ "id": "share-result",
1512
+ "version": "1.0.0"
1513
+ }
1514
+ ]
1515
+ },
1516
+ "cliRequirements": [],
1517
+ "ruleIds": [
1518
+ "R1",
1519
+ "R5",
1520
+ "R7"
1521
+ ],
1522
+ "contributionManifestRefs": [
1523
+ "packages/skill-runtime/contributions/workflows.json"
1524
+ ],
1525
+ "hosts": [
1526
+ {
1527
+ "host": "claude-code",
1528
+ "entrypoint": "/planr:share",
1529
+ "path": "dist/plugins/claude/openplanr/skills/share/SKILL.md"
1530
+ },
1531
+ {
1532
+ "host": "codex",
1533
+ "entrypoint": "$planr:share",
1534
+ "path": "dist/plugins/openai/openplanr/skills/share/SKILL.md"
1535
+ },
1536
+ {
1537
+ "host": "cursor",
1538
+ "entrypoint": "planr-share",
1539
+ "path": "dist/plugins/cursor/openplanr/rules/planr-share.mdc"
1540
+ }
1541
+ ],
1542
+ "testRefs": [
1543
+ "tests/protocol/skill-catalog.test.mjs"
1544
+ ],
1545
+ "certificationRefs": [
1546
+ "evaluation/skills/migrations/planr-share.json"
1547
+ ]
1548
+ },
1427
1549
  {
1428
1550
  "skillId": "planr-ship",
1429
1551
  "skillVersion": "1.2.1",
@@ -1563,7 +1685,7 @@
1563
1685
  "lifecycle": "active",
1564
1686
  "authorityClass": "planning-write",
1565
1687
  "source": "skills/planr-sprint/openplanr.skill.json",
1566
- "sourceDigest": "sha256:62a62e58bc27242c36c06e170bd875d38ceb1457e467556839e1a80e26a459c9",
1688
+ "sourceDigest": "sha256:95efe995ab6cd8ed38b09b6d503223d34ea4111de92117346c7984603502b895",
1567
1689
  "triggerPolicy": {
1568
1690
  "include": [
1569
1691
  "Refine the open backlog and select what fits the next sprint or release cut",
@@ -1625,7 +1747,7 @@
1625
1747
  "lifecycle": "active",
1626
1748
  "authorityClass": "read-only-view",
1627
1749
  "source": "skills/planr-status/openplanr.skill.json",
1628
- "sourceDigest": "sha256:414afb2187111d04a1c3030f28c7b20a58ad7b4eb3e0e724852a34e152ecceae",
1750
+ "sourceDigest": "sha256:e6c422eacd009a5db91e038fded747cfe25badae06e5cbde13775982dd258e01",
1629
1751
  "triggerPolicy": {
1630
1752
  "include": [
1631
1753
  "Report current OpenPlanr delivery status or outstanding work",
@@ -1686,7 +1808,7 @@
1686
1808
  "lifecycle": "active",
1687
1809
  "authorityClass": "planning-write",
1688
1810
  "source": "skills/planr-sync/openplanr.skill.json",
1689
- "sourceDigest": "sha256:e45162758f758bae447c126d121ec1a220b40e03bd09a14b9b4fc2e6643f53da",
1811
+ "sourceDigest": "sha256:c8061714181e6f4e330c65ba033a3586bf4118352e778865e3e3e0e802ad2cf6",
1690
1812
  "triggerPolicy": {
1691
1813
  "include": [
1692
1814
  "Audit planning artifacts for graph, schema, or protocol drift",
@@ -1742,5 +1864,5 @@
1742
1864
  }
1743
1865
  ],
1744
1866
  "compatibilityAliases": [],
1745
- "documentDigest": "sha256:163ce04f19cd71e9f2ed50eaa85085cd0c0e061570bda19c9c925350982b5764"
1867
+ "documentDigest": "sha256:5db46f86c838f03bdf20e17067463b4281465a286a0c8ad276e05e3f0fefda93"
1746
1868
  }
@@ -1507,7 +1507,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
1507
1507
  "ownerPackage": "openplanr",
1508
1508
  "source": {
1509
1509
  "path": "skills/planr-plan/SKILL.md",
1510
- "digest": "sha256:1f4d7295484abacb0dbe8e0b59398248d9a7d272d9706a235d51bb3990ec9643"
1510
+ "digest": "sha256:71ab2272efa19f817af597de0bf5aee163bcb1cd17418998107f21a412e91996"
1511
1511
  },
1512
1512
  "authorityClass": "workflow",
1513
1513
  "machineJson": false,
@@ -1633,7 +1633,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
1633
1633
  "ownerPackage": "openplanr",
1634
1634
  "source": {
1635
1635
  "path": "packages/cli/src/cli/commands/init-deterministic.ts",
1636
- "digest": "sha256:1b0096935b968df8ee70985a7100dd39b6d79febbcdcf396e5b65466fe589a41"
1636
+ "digest": "sha256:cef1f26019ce66c7caf2cfec5c995c96e259e40e1c893e8bcfd7ad54c56c3f39"
1637
1637
  },
1638
1638
  "authorityClass": "workflow",
1639
1639
  "machineJson": false,
@@ -1738,7 +1738,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
1738
1738
  "ownerPackage": "openplanr",
1739
1739
  "source": {
1740
1740
  "path": "skills/planr-plan/SKILL.md",
1741
- "digest": "sha256:1f4d7295484abacb0dbe8e0b59398248d9a7d272d9706a235d51bb3990ec9643"
1741
+ "digest": "sha256:71ab2272efa19f817af597de0bf5aee163bcb1cd17418998107f21a412e91996"
1742
1742
  },
1743
1743
  "authorityClass": "workflow",
1744
1744
  "machineJson": false,
@@ -2242,7 +2242,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
2242
2242
  "ownerPackage": "planr-pipeline",
2243
2243
  "source": {
2244
2244
  "path": "skills/planr-plan/SKILL.md",
2245
- "digest": "sha256:1f4d7295484abacb0dbe8e0b59398248d9a7d272d9706a235d51bb3990ec9643"
2245
+ "digest": "sha256:71ab2272efa19f817af597de0bf5aee163bcb1cd17418998107f21a412e91996"
2246
2246
  },
2247
2247
  "authorityClass": "compatibility-router",
2248
2248
  "machineJson": false,
@@ -2263,7 +2263,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
2263
2263
  "ownerPackage": "planr-pipeline",
2264
2264
  "source": {
2265
2265
  "path": "skills/planr-ship/SKILL.md",
2266
- "digest": "sha256:4a2a029a2a3557a621da8816c6905d7cfc19921da9ca74516838a2aff9f94245"
2266
+ "digest": "sha256:828f3b7a6bd1b6c42d257315bc3fcfc29a5db5ac478c797bb26d2a7553d010b1"
2267
2267
  },
2268
2268
  "authorityClass": "compatibility-router",
2269
2269
  "machineJson": false,
@@ -2284,7 +2284,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
2284
2284
  "ownerPackage": "planr-pipeline",
2285
2285
  "source": {
2286
2286
  "path": "skills/planr-status/SKILL.md",
2287
- "digest": "sha256:d1d4ef34075312827cf9a4a67896977ed1608c1bf8881b8a8ed164340034c0cc"
2287
+ "digest": "sha256:09683973f4415f5356e9ab57b61df93106c4a2bc886e8b64e409fcfb539ad885"
2288
2288
  },
2289
2289
  "authorityClass": "compatibility-router",
2290
2290
  "machineJson": false,
@@ -2305,7 +2305,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
2305
2305
  "ownerPackage": "planr-pipeline",
2306
2306
  "source": {
2307
2307
  "path": "skills/planr-sync/SKILL.md",
2308
- "digest": "sha256:0e63252ba06b2842f7d6005782056100930a1559ae393164d7afd615df63384b"
2308
+ "digest": "sha256:4fb542bc7a0685904b6d6f58ec9fae3c539531793e1933474fbc3c3d34702e24"
2309
2309
  },
2310
2310
  "authorityClass": "compatibility-router",
2311
2311
  "machineJson": false,
@@ -3099,7 +3099,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3099
3099
  ]
3100
3100
  }
3101
3101
  ],
3102
- "documentDigest": "sha256:735f3c5f9f5e3b1a14ea614361083192768652bd993ea0e47cda9384f1c85da1"
3102
+ "documentDigest": "sha256:0845b4b4bcc6cd45122ba6531c0c8793f05334012f18cfb58fb704940d3d9488"
3103
3103
  },
3104
3104
  "skills.json": {
3105
3105
  "kind": "skill-catalog",
@@ -3476,6 +3476,67 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3476
3476
  "evaluation/skills/migrations/planr-cmo-review.json"
3477
3477
  ]
3478
3478
  },
3479
+ {
3480
+ "skillId": "planr-connect",
3481
+ "skillVersion": "1.0.0",
3482
+ "description": "Report which chat, project tracker and source control connections the host has, and guide connecting the missing ones through the host. Use when the user wants to connect a service for OpenPlanr or asks what is connected.",
3483
+ "lifecycle": "active",
3484
+ "authorityClass": "diagnostic",
3485
+ "source": "skills/planr-connect/openplanr.skill.json",
3486
+ "sourceDigest": "sha256:e231e5a446e409f860079f4df07c7abb5d160f35b578c4252516094e100d3994",
3487
+ "triggerPolicy": {
3488
+ "include": [
3489
+ "Connect chat, a project tracker or source control for OpenPlanr",
3490
+ "Check which services OpenPlanr can reach through the host's connections"
3491
+ ],
3492
+ "exclude": [
3493
+ "Diagnose OpenPlanr installation or runtime health",
3494
+ "Synchronize planning artifacts with a tracker"
3495
+ ],
3496
+ "deferTo": []
3497
+ },
3498
+ "contracts": {
3499
+ "inputs": [],
3500
+ "outputs": [
3501
+ {
3502
+ "id": "connect-result",
3503
+ "version": "1.0.0"
3504
+ }
3505
+ ]
3506
+ },
3507
+ "cliRequirements": [],
3508
+ "ruleIds": [
3509
+ "R1",
3510
+ "R5",
3511
+ "R7"
3512
+ ],
3513
+ "contributionManifestRefs": [
3514
+ "packages/skill-runtime/contributions/workflows.json"
3515
+ ],
3516
+ "hosts": [
3517
+ {
3518
+ "host": "claude-code",
3519
+ "entrypoint": "/planr:connect",
3520
+ "path": "dist/plugins/claude/openplanr/skills/connect/SKILL.md"
3521
+ },
3522
+ {
3523
+ "host": "codex",
3524
+ "entrypoint": "$planr:connect",
3525
+ "path": "dist/plugins/openai/openplanr/skills/connect/SKILL.md"
3526
+ },
3527
+ {
3528
+ "host": "cursor",
3529
+ "entrypoint": "planr-connect",
3530
+ "path": "dist/plugins/cursor/openplanr/rules/planr-connect.mdc"
3531
+ }
3532
+ ],
3533
+ "testRefs": [
3534
+ "tests/protocol/skill-catalog.test.mjs"
3535
+ ],
3536
+ "certificationRefs": [
3537
+ "evaluation/skills/migrations/planr-connect.json"
3538
+ ]
3539
+ },
3479
3540
  {
3480
3541
  "skillId": "planr-coo-review",
3481
3542
  "skillVersion": "2.0.1",
@@ -3797,7 +3858,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3797
3858
  "lifecycle": "active",
3798
3859
  "authorityClass": "planning-write",
3799
3860
  "source": "skills/planr-design/openplanr.skill.json",
3800
- "sourceDigest": "sha256:ec8ec0d5e7abf163604ba3932112c626480bc49613ec07bf2e9046f03633db2c",
3861
+ "sourceDigest": "sha256:9572439c52794f550ec50012ca7b1ab695b39bd3cf7c1ec43a6606751133df43",
3801
3862
  "triggerPolicy": {
3802
3863
  "include": [
3803
3864
  "Create an initial product design direction",
@@ -3858,7 +3919,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3858
3919
  "lifecycle": "active",
3859
3920
  "authorityClass": "planning-write",
3860
3921
  "source": "skills/planr-design-loop/openplanr.skill.json",
3861
- "sourceDigest": "sha256:8ef5762d5a6618b4ed0352d03e751f02fc99b7219a797650a538b284e09ef604",
3922
+ "sourceDigest": "sha256:c86d4ca6988fd5c1471d7dc99188929ea7d2d695d15df43adb2340198895fc27",
3862
3923
  "triggerPolicy": {
3863
3924
  "include": [
3864
3925
  "Explore multiple design directions or variants",
@@ -3919,7 +3980,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3919
3980
  "lifecycle": "active",
3920
3981
  "authorityClass": "review-evidence",
3921
3982
  "source": "skills/planr-design-review/openplanr.skill.json",
3922
- "sourceDigest": "sha256:ffea22b6ec59f0d48cfc3cc02689f62e59e69f33eba9135e6a2427515d722377",
3983
+ "sourceDigest": "sha256:4a12e9dd2ae9a7246a6abb094623aa112591f58422e2632060a71564939ad592",
3923
3984
  "triggerPolicy": {
3924
3985
  "include": [
3925
3986
  "Review or critique an existing OpenPlanr design",
@@ -4527,6 +4588,67 @@ export const CANONICAL_REGISTRIES = deepFreeze({
4527
4588
  "evaluation/skills/migrations/planr-release.json"
4528
4589
  ]
4529
4590
  },
4591
+ {
4592
+ "skillId": "planr-share",
4593
+ "skillVersion": "1.0.0",
4594
+ "description": "Share a status report, sprint note or release notes with the team as a chat message draft that the user approves and sends. Use when the user asks to post a planning update to chat.",
4595
+ "lifecycle": "active",
4596
+ "authorityClass": "external-write",
4597
+ "source": "skills/planr-share/openplanr.skill.json",
4598
+ "sourceDigest": "sha256:832195e643d77f5457d468a530c76512935b4df0d6acf7ab5f3d88b06338c4b2",
4599
+ "triggerPolicy": {
4600
+ "include": [
4601
+ "Share the delivery status, sprint note or release notes with the team in chat",
4602
+ "Post a planning update to a chat channel as a draft"
4603
+ ],
4604
+ "exclude": [
4605
+ "Report delivery status without sharing it",
4606
+ "Write or publish release notes"
4607
+ ],
4608
+ "deferTo": []
4609
+ },
4610
+ "contracts": {
4611
+ "inputs": [],
4612
+ "outputs": [
4613
+ {
4614
+ "id": "share-result",
4615
+ "version": "1.0.0"
4616
+ }
4617
+ ]
4618
+ },
4619
+ "cliRequirements": [],
4620
+ "ruleIds": [
4621
+ "R1",
4622
+ "R5",
4623
+ "R7"
4624
+ ],
4625
+ "contributionManifestRefs": [
4626
+ "packages/skill-runtime/contributions/workflows.json"
4627
+ ],
4628
+ "hosts": [
4629
+ {
4630
+ "host": "claude-code",
4631
+ "entrypoint": "/planr:share",
4632
+ "path": "dist/plugins/claude/openplanr/skills/share/SKILL.md"
4633
+ },
4634
+ {
4635
+ "host": "codex",
4636
+ "entrypoint": "$planr:share",
4637
+ "path": "dist/plugins/openai/openplanr/skills/share/SKILL.md"
4638
+ },
4639
+ {
4640
+ "host": "cursor",
4641
+ "entrypoint": "planr-share",
4642
+ "path": "dist/plugins/cursor/openplanr/rules/planr-share.mdc"
4643
+ }
4644
+ ],
4645
+ "testRefs": [
4646
+ "tests/protocol/skill-catalog.test.mjs"
4647
+ ],
4648
+ "certificationRefs": [
4649
+ "evaluation/skills/migrations/planr-share.json"
4650
+ ]
4651
+ },
4530
4652
  {
4531
4653
  "skillId": "planr-ship",
4532
4654
  "skillVersion": "1.2.1",
@@ -4666,7 +4788,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
4666
4788
  "lifecycle": "active",
4667
4789
  "authorityClass": "planning-write",
4668
4790
  "source": "skills/planr-sprint/openplanr.skill.json",
4669
- "sourceDigest": "sha256:62a62e58bc27242c36c06e170bd875d38ceb1457e467556839e1a80e26a459c9",
4791
+ "sourceDigest": "sha256:95efe995ab6cd8ed38b09b6d503223d34ea4111de92117346c7984603502b895",
4670
4792
  "triggerPolicy": {
4671
4793
  "include": [
4672
4794
  "Refine the open backlog and select what fits the next sprint or release cut",
@@ -4728,7 +4850,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
4728
4850
  "lifecycle": "active",
4729
4851
  "authorityClass": "read-only-view",
4730
4852
  "source": "skills/planr-status/openplanr.skill.json",
4731
- "sourceDigest": "sha256:414afb2187111d04a1c3030f28c7b20a58ad7b4eb3e0e724852a34e152ecceae",
4853
+ "sourceDigest": "sha256:e6c422eacd009a5db91e038fded747cfe25badae06e5cbde13775982dd258e01",
4732
4854
  "triggerPolicy": {
4733
4855
  "include": [
4734
4856
  "Report current OpenPlanr delivery status or outstanding work",
@@ -4789,7 +4911,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
4789
4911
  "lifecycle": "active",
4790
4912
  "authorityClass": "planning-write",
4791
4913
  "source": "skills/planr-sync/openplanr.skill.json",
4792
- "sourceDigest": "sha256:e45162758f758bae447c126d121ec1a220b40e03bd09a14b9b4fc2e6643f53da",
4914
+ "sourceDigest": "sha256:c8061714181e6f4e330c65ba033a3586bf4118352e778865e3e3e0e802ad2cf6",
4793
4915
  "triggerPolicy": {
4794
4916
  "include": [
4795
4917
  "Audit planning artifacts for graph, schema, or protocol drift",
@@ -4845,7 +4967,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
4845
4967
  }
4846
4968
  ],
4847
4969
  "compatibilityAliases": [],
4848
- "documentDigest": "sha256:163ce04f19cd71e9f2ed50eaa85085cd0c0e061570bda19c9c925350982b5764"
4970
+ "documentDigest": "sha256:5db46f86c838f03bdf20e17067463b4281465a286a0c8ad276e05e3f0fefda93"
4849
4971
  },
4850
4972
  "outputs.json": {
4851
4973
  "kind": "output-catalog",
@@ -2,7 +2,8 @@
2
2
  /**
3
3
  * Minimal JSON Schema (draft 2020-12) subset extracted from conformance/runner.mjs.
4
4
  * Supports the constructs used by packaged Protocol schemas, including local
5
- * JSON-pointer and caller-resolved external `$ref` references.
5
+ * JSON-pointer and caller-resolved external `$ref` references. Any other keyword or
6
+ * format is reported as an error rather than ignored.
6
7
  *
7
8
  * Zero third-party deps. Safe to import from node:test suites.
8
9
  */
@@ -30,6 +31,146 @@ const matchesType = (v, t) => {
30
31
 
31
32
  const FORMAT_DATE = /^\d{4}-\d{2}-\d{2}$/;
32
33
  const FORMAT_DATETIME = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
34
+ const SUPPORTED_FORMATS = new Set(['date', 'date-time']);
35
+
36
+ const ANNOTATION_KEYWORDS = [
37
+ '$schema',
38
+ '$id',
39
+ '$defs',
40
+ '$comment',
41
+ 'title',
42
+ 'description',
43
+ 'default',
44
+ 'examples',
45
+ 'deprecated',
46
+ 'readOnly',
47
+ 'writeOnly',
48
+ ];
49
+ const VALIDATION_KEYWORDS = [
50
+ '$ref',
51
+ 'type',
52
+ 'const',
53
+ 'enum',
54
+ 'minLength',
55
+ 'maxLength',
56
+ 'pattern',
57
+ 'format',
58
+ 'minimum',
59
+ 'maximum',
60
+ 'exclusiveMinimum',
61
+ 'minItems',
62
+ 'maxItems',
63
+ 'prefixItems',
64
+ 'items',
65
+ 'uniqueItems',
66
+ 'contains',
67
+ 'minContains',
68
+ 'maxContains',
69
+ 'required',
70
+ 'properties',
71
+ 'additionalProperties',
72
+ 'maxProperties',
73
+ 'dependentRequired',
74
+ 'unevaluatedProperties',
75
+ 'oneOf',
76
+ 'anyOf',
77
+ 'allOf',
78
+ 'if',
79
+ 'then',
80
+ 'else',
81
+ 'not',
82
+ ];
83
+ const KNOWN_KEYWORDS = new Set([...ANNOTATION_KEYWORDS, ...VALIDATION_KEYWORDS]);
84
+ const TYPE_NAMES = new Set(['array', 'boolean', 'integer', 'null', 'number', 'object', 'string']);
85
+
86
+ const isSchema = (value) =>
87
+ typeof value === 'boolean' ||
88
+ (value !== null && typeof value === 'object' && !Array.isArray(value));
89
+ /** @type {(value: unknown) => value is Record<string, unknown>} */
90
+ const isPlainObject = (value) =>
91
+ value !== null && typeof value === 'object' && !Array.isArray(value);
92
+ const isCount = (value) => Number.isSafeInteger(value) && value >= 0;
93
+ /** @type {(value: unknown) => value is string[]} */
94
+ const isUniqueStrings = (value) =>
95
+ Array.isArray(value) &&
96
+ value.every((item) => typeof item === 'string') &&
97
+ new Set(value).size === value.length;
98
+ const isSchemaArray = (value) => Array.isArray(value) && value.length > 0 && value.every(isSchema);
99
+ const isSchemaMap = (value) => isPlainObject(value) && Object.values(value).every(isSchema);
100
+ /** @type {Map<string, RegExp | null>} */
101
+ const compiledPatterns = new Map();
102
+ const MAX_COMPILED_PATTERNS = 1024;
103
+ /** @type {(source: string) => RegExp | null} */
104
+ const tryCompilePattern = (source) => {
105
+ try {
106
+ return new RegExp(source);
107
+ } catch (error) {
108
+ if (error instanceof SyntaxError) return null;
109
+ throw error;
110
+ }
111
+ };
112
+ /** Returns the compiled pattern, or null when it is not a valid regular expression. */
113
+ const compilePattern = (source) => {
114
+ if (!compiledPatterns.has(source)) {
115
+ if (compiledPatterns.size >= MAX_COMPILED_PATTERNS) compiledPatterns.clear();
116
+ compiledPatterns.set(source, tryCompilePattern(source));
117
+ }
118
+ return compiledPatterns.get(source) ?? null;
119
+ };
120
+
121
+ const describeValue = (value) => {
122
+ const text = String(JSON.stringify(value));
123
+ return text.length > 80 ? `${text.slice(0, 77)}...` : text;
124
+ };
125
+
126
+ /**
127
+ * Expected value shape of each supported keyword, per draft 2020-12.
128
+ * @type {Record<string, [string, (value: unknown) => boolean]>}
129
+ */
130
+ const KEYWORD_SHAPES = {
131
+ $ref: ['a string', (value) => typeof value === 'string'],
132
+ $defs: ['an object of schemas', isSchemaMap],
133
+ type: [
134
+ 'a type name or a non-empty array of unique type names',
135
+ (value) =>
136
+ (typeof value === 'string' && TYPE_NAMES.has(value)) ||
137
+ (isUniqueStrings(value) && value.length > 0 && value.every((name) => TYPE_NAMES.has(name))),
138
+ ],
139
+ enum: ['an array', Array.isArray],
140
+ minLength: ['a non-negative integer', isCount],
141
+ maxLength: ['a non-negative integer', isCount],
142
+ pattern: [
143
+ 'a valid regular expression string',
144
+ (value) => typeof value === 'string' && compilePattern(value) !== null,
145
+ ],
146
+ minimum: ['a finite number', Number.isFinite],
147
+ maximum: ['a finite number', Number.isFinite],
148
+ exclusiveMinimum: ['a finite number', Number.isFinite],
149
+ minItems: ['a non-negative integer', isCount],
150
+ maxItems: ['a non-negative integer', isCount],
151
+ prefixItems: ['a non-empty array of schemas', isSchemaArray],
152
+ items: ['a schema', isSchema],
153
+ uniqueItems: ['a boolean', (value) => typeof value === 'boolean'],
154
+ contains: ['a schema', isSchema],
155
+ minContains: ['a non-negative integer', isCount],
156
+ maxContains: ['a non-negative integer', isCount],
157
+ required: ['an array of unique strings', isUniqueStrings],
158
+ properties: ['an object of schemas', isSchemaMap],
159
+ additionalProperties: ['a schema', isSchema],
160
+ maxProperties: ['a non-negative integer', isCount],
161
+ dependentRequired: [
162
+ 'an object of unique string arrays',
163
+ (value) => isPlainObject(value) && Object.values(value).every(isUniqueStrings),
164
+ ],
165
+ unevaluatedProperties: ['a schema', isSchema],
166
+ oneOf: ['a non-empty array of schemas', isSchemaArray],
167
+ anyOf: ['a non-empty array of schemas', isSchemaArray],
168
+ allOf: ['a non-empty array of schemas', isSchemaArray],
169
+ if: ['a schema', isSchema],
170
+ then: ['a schema', isSchema],
171
+ else: ['a schema', isSchema],
172
+ not: ['a schema', isSchema],
173
+ };
33
174
 
34
175
  function resolveJsonPointer(root, reference) {
35
176
  if (reference === '#') return root;
@@ -41,12 +182,73 @@ function resolveJsonPointer(root, reference) {
41
182
  .reduce((value, part) => value?.[part], root);
42
183
  }
43
184
 
185
+ /** Frozen schema nodes that passed every node check; a mutable node is re-checked on each call. */
186
+ const wellFormedSchemas = new WeakSet();
187
+
188
+ /** True when the node and every keyword value its checks read can no longer change. */
189
+ const isFrozenNode = (schema) =>
190
+ Object.isFrozen(schema) &&
191
+ Object.values(schema).every(Object.isFrozen) &&
192
+ (!isPlainObject(schema.dependentRequired) ||
193
+ Object.values(schema.dependentRequired).every(Object.isFrozen));
194
+
195
+ /**
196
+ * Records unsupported keywords and formats and malformed keyword values, once per schema node.
197
+ * They go to a shared sink so `not`, `if` and combinator branches cannot swallow them.
198
+ */
199
+ const checkSchemaNode = (schema, path, context) => {
200
+ if (wellFormedSchemas.has(schema) || context.checkedSchemas.has(schema)) return;
201
+ context.checkedSchemas.add(schema);
202
+ const errorCount = context.schemaErrors.length;
203
+ for (const keyword of Object.keys(schema)) {
204
+ if (!KNOWN_KEYWORDS.has(keyword) && !keyword.startsWith('x-')) {
205
+ context.schemaErrors.push({
206
+ path,
207
+ rule: 'unsupported-keyword',
208
+ detail: `schema keyword '${keyword}' is not supported by this validator`,
209
+ });
210
+ }
211
+ }
212
+ if (Object.hasOwn(schema, 'format') && !SUPPORTED_FORMATS.has(schema.format)) {
213
+ context.schemaErrors.push({
214
+ path,
215
+ rule: 'unsupported-format',
216
+ detail: `schema format ${JSON.stringify(schema.format)} is not supported by this validator`,
217
+ });
218
+ }
219
+ for (const [keyword, [expected, isValid]] of Object.entries(KEYWORD_SHAPES)) {
220
+ if (Object.hasOwn(schema, keyword) && !isValid(schema[keyword])) {
221
+ context.schemaErrors.push({
222
+ path,
223
+ rule: 'schema',
224
+ detail: `schema keyword '${keyword}' must be ${expected}, got ${describeValue(schema[keyword])}`,
225
+ });
226
+ }
227
+ }
228
+ if (context.schemaErrors.length === errorCount && isFrozenNode(schema)) {
229
+ wellFormedSchemas.add(schema);
230
+ }
231
+ };
232
+
233
+ /** Records an unresolvable or circular `$ref` once per schema node. */
234
+ const reportReference = (schema, path, detail, context) => {
235
+ if (context.reportedReferences.has(schema)) return;
236
+ context.reportedReferences.add(schema);
237
+ context.schemaErrors.push({ path, rule: '$ref', detail });
238
+ };
239
+
240
+ /** Validates one node and returns the object property names it evaluated. */
44
241
  const validateNode = (value, schema, path, errs, context) => {
45
- if (schema === true) return;
242
+ /** @type {Set<string>} */
243
+ const evaluated = new Set();
244
+ if (schema === true) return evaluated;
46
245
  if (schema === false) {
47
246
  errs.push({ path, rule: 'schema:false', detail: 'value not allowed' });
48
- return;
247
+ return evaluated;
49
248
  }
249
+ // A non-schema child is reported by its parent's keyword-shape check.
250
+ if (!isSchema(schema)) return evaluated;
251
+ checkSchemaNode(schema, path, context);
50
252
 
51
253
  if (typeof schema?.$ref === 'string') {
52
254
  const reference = schema.$ref;
@@ -61,21 +263,27 @@ const validateNode = (value, schema, path, errs, context) => {
61
263
  nextRoot = result?.rootSchema ?? resolved;
62
264
  resolvedBase = result?.base ?? resolved?.$id ?? context.base;
63
265
  }
64
- if (!resolved) {
65
- errs.push({ path, rule: '$ref', detail: `could not resolve schema reference ${reference}` });
66
- return;
266
+ if (!isSchema(resolved)) {
267
+ const detail =
268
+ resolved === undefined || resolved === null
269
+ ? `could not resolve schema reference ${reference}`
270
+ : `schema reference ${reference} resolved to ${typeOf(resolved)}, not a schema`;
271
+ reportReference(schema, path, detail, context);
272
+ return evaluated;
67
273
  }
68
- const referenceKey = `${context.base ?? '<root>'}:${reference}`;
274
+ // Recursion that descends into the instance changes `path`; only a repeat at the same location loops.
275
+ const referenceKey = `${path} ${context.base ?? '<root>'}:${reference}`;
69
276
  if (context.referenceStack.includes(referenceKey)) {
70
- errs.push({ path, rule: '$ref', detail: `circular schema reference ${reference}` });
71
- return;
277
+ reportReference(schema, path, `circular schema reference ${reference}`, context);
278
+ return evaluated;
72
279
  }
73
- validateNode(value, resolved, path, errs, {
280
+ const referenced = validateNode(value, resolved, path, errs, {
74
281
  ...context,
75
282
  rootSchema: nextRoot,
76
283
  base: resolvedBase,
77
284
  referenceStack: [...context.referenceStack, referenceKey],
78
285
  });
286
+ for (const key of referenced) evaluated.add(key);
79
287
  }
80
288
 
81
289
  if (schema.type !== undefined) {
@@ -86,7 +294,7 @@ const validateNode = (value, schema, path, errs, context) => {
86
294
  rule: 'type',
87
295
  detail: `expected ${types.join('|')}, got ${typeOf(value)}`,
88
296
  });
89
- return;
297
+ return evaluated;
90
298
  }
91
299
  }
92
300
 
@@ -125,22 +333,13 @@ const validateNode = (value, schema, path, errs, context) => {
125
333
  detail: `length ${value.length} > ${schema.maxLength}`,
126
334
  });
127
335
  }
128
- if (typeof schema.pattern === 'string') {
129
- try {
130
- if (!new RegExp(schema.pattern).test(value)) {
131
- errs.push({
132
- path,
133
- rule: 'pattern',
134
- detail: `value ${JSON.stringify(value)} does not match /${schema.pattern}/`,
135
- });
136
- }
137
- } catch (e) {
138
- errs.push({
139
- path,
140
- rule: 'pattern',
141
- detail: `invalid regex /${schema.pattern}/: ${e instanceof Error ? e.message : String(e)}`,
142
- });
143
- }
336
+ const pattern = typeof schema.pattern === 'string' ? compilePattern(schema.pattern) : null;
337
+ if (pattern && !pattern.test(value)) {
338
+ errs.push({
339
+ path,
340
+ rule: 'pattern',
341
+ detail: `value ${JSON.stringify(value)} does not match /${schema.pattern}/`,
342
+ });
144
343
  }
145
344
  if (typeof schema.format === 'string') {
146
345
  if (schema.format === 'date' && !FORMAT_DATE.test(value)) {
@@ -166,6 +365,13 @@ const validateNode = (value, schema, path, errs, context) => {
166
365
  if (typeof schema.maximum === 'number' && value > schema.maximum) {
167
366
  errs.push({ path, rule: 'maximum', detail: `value ${value} > ${schema.maximum}` });
168
367
  }
368
+ if (typeof schema.exclusiveMinimum === 'number' && value <= schema.exclusiveMinimum) {
369
+ errs.push({
370
+ path,
371
+ rule: 'exclusiveMinimum',
372
+ detail: `value ${value} <= ${schema.exclusiveMinimum}`,
373
+ });
374
+ }
169
375
  }
170
376
 
171
377
  if (Array.isArray(value)) {
@@ -231,8 +437,34 @@ const validateNode = (value, schema, path, errs, context) => {
231
437
  }
232
438
  }
233
439
  }
440
+ if (
441
+ typeof schema.maxProperties === 'number' &&
442
+ Object.keys(value).length > schema.maxProperties
443
+ ) {
444
+ errs.push({
445
+ path,
446
+ rule: 'maxProperties',
447
+ detail: `property count ${Object.keys(value).length} > ${schema.maxProperties}`,
448
+ });
449
+ }
450
+ if (schema.dependentRequired !== null && typeof schema.dependentRequired === 'object') {
451
+ for (const [trigger, dependencies] of Object.entries(schema.dependentRequired)) {
452
+ if (!Object.hasOwn(value, trigger) || !Array.isArray(dependencies)) continue;
453
+ for (const dependency of dependencies) {
454
+ if (!Object.hasOwn(value, dependency)) {
455
+ errs.push({
456
+ path,
457
+ rule: 'dependentRequired',
458
+ detail: `property '${trigger}' requires property '${dependency}'`,
459
+ });
460
+ }
461
+ }
462
+ }
463
+ }
234
464
  const props = schema.properties || {};
235
465
  for (const [k, v] of Object.entries(value)) {
466
+ if (Object.hasOwn(props, k)) evaluated.add(k);
467
+ else if (schema.additionalProperties !== undefined) evaluated.add(k);
236
468
  if (!Object.hasOwn(props, k)) {
237
469
  if (schema.additionalProperties === false) {
238
470
  errs.push({ path, rule: 'additionalProperties', detail: `unknown property '${k}'` });
@@ -253,8 +485,11 @@ const validateNode = (value, schema, path, errs, context) => {
253
485
  let matched = 0;
254
486
  for (const sub of schema.oneOf) {
255
487
  const e = [];
256
- validateNode(value, sub, path, e, context);
257
- if (e.length === 0) matched++;
488
+ const branch = validateNode(value, sub, path, e, context);
489
+ if (e.length === 0) {
490
+ matched++;
491
+ for (const key of branch) evaluated.add(key);
492
+ }
258
493
  }
259
494
  if (matched !== 1) {
260
495
  const titles = schema.oneOf.map((s) => s.title || '(unnamed)').join(' | ');
@@ -270,8 +505,11 @@ const validateNode = (value, schema, path, errs, context) => {
270
505
  let matched = 0;
271
506
  for (const sub of schema.anyOf) {
272
507
  const candidateErrors = [];
273
- validateNode(value, sub, path, candidateErrors, context);
274
- if (candidateErrors.length === 0) matched += 1;
508
+ const branch = validateNode(value, sub, path, candidateErrors, context);
509
+ if (candidateErrors.length === 0) {
510
+ matched += 1;
511
+ for (const key of branch) evaluated.add(key);
512
+ }
275
513
  }
276
514
  if (matched === 0) {
277
515
  const titles = schema.anyOf.map((sub) => sub.title || '(unnamed)').join(' | ');
@@ -285,15 +523,22 @@ const validateNode = (value, schema, path, errs, context) => {
285
523
 
286
524
  if (Array.isArray(schema.allOf)) {
287
525
  for (const sub of schema.allOf) {
288
- validateNode(value, sub, path, errs, context);
526
+ for (const key of validateNode(value, sub, path, errs, context)) evaluated.add(key);
289
527
  }
290
528
  }
291
529
 
292
530
  if (schema.if !== undefined) {
293
531
  const conditionErrors = [];
294
- validateNode(value, schema.if, path, conditionErrors, context);
295
- const branch = conditionErrors.length === 0 ? schema.then : schema.else;
296
- if (branch !== undefined) validateNode(value, branch, path, errs, context);
532
+ const condition = validateNode(value, schema.if, path, conditionErrors, context);
533
+ const passed = conditionErrors.length === 0;
534
+ if (passed) for (const key of condition) evaluated.add(key);
535
+ const branch = passed ? schema.then : schema.else;
536
+ if (branch !== undefined) {
537
+ const branchErrors = [];
538
+ const branchEvaluated = validateNode(value, branch, path, branchErrors, context);
539
+ errs.push(...branchErrors);
540
+ if (branchErrors.length === 0) for (const key of branchEvaluated) evaluated.add(key);
541
+ }
297
542
  }
298
543
 
299
544
  if (schema.not !== undefined) {
@@ -303,6 +548,24 @@ const validateNode = (value, schema, path, errs, context) => {
303
548
  errs.push({ path, rule: 'not', detail: 'value matched a forbidden subschema' });
304
549
  }
305
550
  }
551
+
552
+ if (
553
+ schema.unevaluatedProperties !== undefined &&
554
+ value !== null &&
555
+ typeof value === 'object' &&
556
+ !Array.isArray(value)
557
+ ) {
558
+ for (const [k, v] of Object.entries(value)) {
559
+ if (evaluated.has(k)) continue;
560
+ if (schema.unevaluatedProperties === false) {
561
+ errs.push({ path, rule: 'unevaluatedProperties', detail: `unevaluated property '${k}'` });
562
+ } else {
563
+ validateNode(v, schema.unevaluatedProperties, `${path}.${k}`, errs, context);
564
+ }
565
+ evaluated.add(k);
566
+ }
567
+ }
568
+ return evaluated;
306
569
  };
307
570
 
308
571
  /** @type {typeof import('./json-schema.d.mts').validateJson} */
@@ -315,13 +578,27 @@ export const validateJson = (
315
578
  } = {},
316
579
  ) => {
317
580
  const errs = [];
581
+ /** @type {{ path: string, rule: string, detail: string }[]} */
582
+ const schemaErrors = [];
583
+ if (!isSchema(schema)) {
584
+ return [
585
+ {
586
+ path: '$',
587
+ rule: 'schema',
588
+ detail: `expected a schema object or boolean, got ${typeOf(schema)}`,
589
+ },
590
+ ];
591
+ }
318
592
  validateNode(value, schema, '$', errs, {
319
593
  rootSchema: schema,
320
594
  resolveRef,
321
595
  base,
322
596
  referenceStack: [],
597
+ schemaErrors,
598
+ checkedSchemas: new WeakSet(),
599
+ reportedReferences: new WeakSet(),
323
600
  });
324
- return errs;
601
+ return [...schemaErrors, ...errs];
325
602
  };
326
603
 
327
604
  /**
@@ -111,6 +111,7 @@ const EXPECTED_SKILLS = Object.freeze([
111
111
  'planr-chair-review',
112
112
  'planr-challenger-review',
113
113
  'planr-cmo-review',
114
+ 'planr-connect',
114
115
  'planr-coo-review',
115
116
  'planr-cpo-review',
116
117
  'planr-cto-review',
@@ -128,6 +129,7 @@ const EXPECTED_SKILLS = Object.freeze([
128
129
  'planr-plan',
129
130
  'planr-plan-review',
130
131
  'planr-release',
132
+ 'planr-share',
131
133
  'planr-ship',
132
134
  'planr-spec',
133
135
  'planr-sprint',