@ixo/topic-protocol 1.0.0-rc.3 → 1.0.0-rc.4

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 (55) hide show
  1. package/README.md +3 -1
  2. package/dist/profiles/releases/1.0.0-rc.3.json +8442 -0
  3. package/dist/schemas/project-projection.schema.json +178 -12
  4. package/dist/schemas/topic-operation.schema.json +155 -13
  5. package/dist/schemas/topic-shape.schema.json +1 -1
  6. package/dist/src/contracts/schemas.d.ts +8 -0
  7. package/dist/src/contracts/validator.js +34 -3
  8. package/dist/src/contracts/validator.js.map +1 -1
  9. package/dist/src/index.d.ts +7 -0
  10. package/dist/src/index.js +7 -0
  11. package/dist/src/index.js.map +1 -1
  12. package/dist/src/projector/payload.d.ts +6 -2
  13. package/dist/src/projector/payload.js +8 -2
  14. package/dist/src/projector/payload.js.map +1 -1
  15. package/dist/src/projector/state.js +11 -3
  16. package/dist/src/projector/state.js.map +1 -1
  17. package/dist/src/projector/types.d.ts +1 -1
  18. package/dist/src/projector/types.js.map +1 -1
  19. package/dist/src/projects/project.js +55 -19
  20. package/dist/src/projects/project.js.map +1 -1
  21. package/dist/src/projects/types.d.ts +1 -0
  22. package/dist/src/shapes/availability.d.ts +2 -0
  23. package/dist/src/shapes/availability.js +19 -0
  24. package/dist/src/shapes/availability.js.map +1 -0
  25. package/dist/src/shapes/commands.d.ts +3 -0
  26. package/dist/src/shapes/commands.js +10 -0
  27. package/dist/src/shapes/commands.js.map +1 -0
  28. package/dist/src/shapes/fields.d.ts +9 -0
  29. package/dist/src/shapes/fields.js +41 -0
  30. package/dist/src/shapes/fields.js.map +1 -0
  31. package/dist/src/shapes/now.js +4 -1
  32. package/dist/src/shapes/now.js.map +1 -1
  33. package/dist/src/shapes/progress.d.ts +3 -1
  34. package/dist/src/shapes/progress.js +60 -26
  35. package/dist/src/shapes/progress.js.map +1 -1
  36. package/dist/src/shapes/reachability.d.ts +3 -0
  37. package/dist/src/shapes/reachability.js +29 -0
  38. package/dist/src/shapes/reachability.js.map +1 -0
  39. package/dist/src/shapes/recipes.js +42 -18
  40. package/dist/src/shapes/recipes.js.map +1 -1
  41. package/dist/src/shapes/releases.d.ts +9 -0
  42. package/dist/src/shapes/releases.js +12 -0
  43. package/dist/src/shapes/releases.js.map +1 -0
  44. package/dist/src/shapes/resolver.d.ts +3 -0
  45. package/dist/src/shapes/resolver.js +56 -16
  46. package/dist/src/shapes/resolver.js.map +1 -1
  47. package/dist/src/shapes/types.d.ts +12 -0
  48. package/package.json +1 -1
  49. package/profiles/releases/1.0.0-rc.3.json +8442 -0
  50. package/recipes/agent-delivery.json +54 -4
  51. package/recipes/blueprint-design.json +4 -3
  52. package/recipes/registry.json +12 -12
  53. package/recipes/research-brief.json +53 -2
  54. package/recipes/software-build.json +2 -2
  55. package/recipes/verified-work-payment.json +56 -5
@@ -2,7 +2,7 @@
2
2
  "version": 1,
3
3
  "code": "agent-delivery",
4
4
  "id": "https://topic-protocol.ixo.world/recipes/agent-delivery",
5
- "recipeVersion": "1.0.0-rc.3",
5
+ "recipeVersion": "1.0.0-rc.4",
6
6
  "label": "Agent delivery",
7
7
  "description": "Commission agent work, review its delivery, and explicitly confirm any external Action.",
8
8
  "baseRecipe": "flow",
@@ -514,7 +514,8 @@
514
514
  "evidence": {
515
515
  "kind": "record",
516
516
  "type": "ixo.evaluation",
517
- "finality": "accepted"
517
+ "finality": "accepted",
518
+ "status": "verified"
518
519
  },
519
520
  "handoff": {
520
521
  "kind": "flow",
@@ -560,7 +561,8 @@
560
561
  "evidence": {
561
562
  "kind": "record",
562
563
  "type": "ixo.decision",
563
- "finality": "accepted"
564
+ "finality": "accepted",
565
+ "status": "approved"
564
566
  },
565
567
  "presentation": {
566
568
  "reasonCode": "decision-required",
@@ -643,7 +645,8 @@
643
645
  "evidence": {
644
646
  "kind": "receipt",
645
647
  "type": "ixo.action-receipt",
646
- "finality": "final"
648
+ "finality": "final",
649
+ "status": "succeeded"
647
650
  },
648
651
  "handoff": {
649
652
  "kind": "flow",
@@ -657,6 +660,53 @@
657
660
  "unlocksKey": "topic.action.confirm-action.unlocks",
658
661
  "priority": 900
659
662
  }
663
+ },
664
+ {
665
+ "code": "retry-action",
666
+ "phase": "effecting",
667
+ "predecessor": {
668
+ "axis": "effect",
669
+ "state": "requested"
670
+ },
671
+ "target": {
672
+ "axis": "effect",
673
+ "state": "requested"
674
+ },
675
+ "command": "topic.request-action",
676
+ "requiredAbility": "topic/request-action",
677
+ "assignedTo": {
678
+ "kind": "role",
679
+ "value": "action-requester"
680
+ },
681
+ "gates": [
682
+ {
683
+ "kind": "receipt",
684
+ "type": "ixo.action-receipt",
685
+ "status": "failed"
686
+ },
687
+ {
688
+ "kind": "binding",
689
+ "type": "flow"
690
+ }
691
+ ],
692
+ "confirmation": "viewer",
693
+ "consequence": "external-effect",
694
+ "evidence": {
695
+ "kind": "operation",
696
+ "type": "request-action"
697
+ },
698
+ "handoff": {
699
+ "kind": "flow",
700
+ "binding": "action"
701
+ },
702
+ "presentation": {
703
+ "reasonCode": "action-retry-required",
704
+ "actionLabelKey": "topic.action.retry-action.label",
705
+ "bodyKey": "topic.action.retry-action.prompt",
706
+ "purposeKey": "topic.action.retry-action.purpose",
707
+ "unlocksKey": "topic.action.retry-action.unlocks",
708
+ "priority": 900
709
+ }
660
710
  }
661
711
  ],
662
712
  "progressRules": [
@@ -2,9 +2,9 @@
2
2
  "version": 1,
3
3
  "code": "blueprint-design",
4
4
  "id": "https://topic-protocol.ixo.world/recipes/blueprint-design",
5
- "recipeVersion": "1.0.0-rc.3",
5
+ "recipeVersion": "1.0.0-rc.4",
6
6
  "label": "Blueprint Design",
7
- "description": "Discover, design, validate, rehearse, independently review, and explicitly accept a decision-complete blueprint.",
7
+ "description": "Coordinate a pinned design method and require independent-review evidence before explicitly closing the blueprint Project.",
8
8
  "baseRecipe": "project",
9
9
  "creates": "draft",
10
10
  "shape": {
@@ -481,7 +481,8 @@
481
481
  "evidence": {
482
482
  "kind": "record",
483
483
  "type": "ixo.evaluation",
484
- "finality": "accepted"
484
+ "finality": "accepted",
485
+ "status": "verified"
485
486
  },
486
487
  "handoff": {
487
488
  "kind": "flow",
@@ -9,8 +9,8 @@
9
9
  "creates": "draft",
10
10
  "ref": {
11
11
  "id": "https://topic-protocol.ixo.world/recipes/research-brief",
12
- "version": "1.0.0-rc.3",
13
- "digest": "sha256:589cc7c3ccc530d09b5671f04e39245ea69f87fcb13dbaece11f14f86ae6f636"
12
+ "version": "1.0.0-rc.4",
13
+ "digest": "sha256:319d13281c2aaaed6162269199ef2f46eec9f52e4ccb813c5916a02da341862d"
14
14
  }
15
15
  },
16
16
  {
@@ -21,8 +21,8 @@
21
21
  "creates": "draft",
22
22
  "ref": {
23
23
  "id": "https://topic-protocol.ixo.world/recipes/agent-delivery",
24
- "version": "1.0.0-rc.3",
25
- "digest": "sha256:44b431fe10da12336880fcf3f51dc4822d9114c267fe109ae86aff3b348038a0"
24
+ "version": "1.0.0-rc.4",
25
+ "digest": "sha256:ad9ad2bc1a7f5ae33a464931117f1366fc9f8927a5a189e2638be61fd82cfb5a"
26
26
  }
27
27
  },
28
28
  {
@@ -33,32 +33,32 @@
33
33
  "creates": "draft",
34
34
  "ref": {
35
35
  "id": "https://topic-protocol.ixo.world/recipes/verified-work-payment",
36
- "version": "1.0.0-rc.3",
37
- "digest": "sha256:39e4821728caef116b639be135c04aae8cd462d730b7bc4881fc3970a48c2841"
36
+ "version": "1.0.0-rc.4",
37
+ "digest": "sha256:b4544db76e0628bea78377f73408e355529cd63e5065221918597b63eaeec777"
38
38
  }
39
39
  },
40
40
  {
41
41
  "code": "software-build",
42
42
  "label": "Software Build",
43
- "description": "Coordinate reviewed software work through implementation, verification, release, and operational-readiness evidence.",
43
+ "description": "Coordinate reviewed software work through user-defined milestones and explicitly accepted delivery evidence.",
44
44
  "baseRecipe": "project",
45
45
  "creates": "draft",
46
46
  "ref": {
47
47
  "id": "https://topic-protocol.ixo.world/recipes/software-build",
48
- "version": "1.0.0-rc.3",
49
- "digest": "sha256:fd8cb41290b9886b4686ca2b8240d6d5a4ed947649a47d2b9983d4215ab5d370"
48
+ "version": "1.0.0-rc.4",
49
+ "digest": "sha256:1abb6c50759d9c7a9c505ceeb55b384ceaa9d0838d0391a0729e778192d5e576"
50
50
  }
51
51
  },
52
52
  {
53
53
  "code": "blueprint-design",
54
54
  "label": "Blueprint Design",
55
- "description": "Discover, design, validate, rehearse, independently review, and explicitly accept a decision-complete blueprint.",
55
+ "description": "Coordinate a pinned design method and require independent-review evidence before explicitly closing the blueprint Project.",
56
56
  "baseRecipe": "project",
57
57
  "creates": "draft",
58
58
  "ref": {
59
59
  "id": "https://topic-protocol.ixo.world/recipes/blueprint-design",
60
- "version": "1.0.0-rc.3",
61
- "digest": "sha256:f0673d33d6c7e29fa4211a511520be181158e840fe673f942a202b9bf2e20cdf"
60
+ "version": "1.0.0-rc.4",
61
+ "digest": "sha256:d3afd59a470507bdbdb0a2ed55adf3c348979369d1d1b54bd94ff5f49ce4dc9f"
62
62
  }
63
63
  }
64
64
  ]
@@ -2,7 +2,7 @@
2
2
  "version": 1,
3
3
  "code": "research-brief",
4
4
  "id": "https://topic-protocol.ixo.world/recipes/research-brief",
5
- "recipeVersion": "1.0.0-rc.3",
5
+ "recipeVersion": "1.0.0-rc.4",
6
6
  "label": "Research brief",
7
7
  "description": "Frame a question, do the research, verify the sources, and close the brief explicitly.",
8
8
  "baseRecipe": "research",
@@ -481,7 +481,8 @@
481
481
  "evidence": {
482
482
  "kind": "record",
483
483
  "type": "ixo.evaluation",
484
- "finality": "accepted"
484
+ "finality": "accepted",
485
+ "status": "verified"
485
486
  },
486
487
  "handoff": {
487
488
  "kind": "flow",
@@ -495,6 +496,56 @@
495
496
  "unlocksKey": "topic.action.record-verification.unlocks",
496
497
  "priority": 900
497
498
  }
499
+ },
500
+ {
501
+ "code": "accept-answer",
502
+ "phase": "verifying",
503
+ "predecessor": {
504
+ "axis": "answer",
505
+ "state": "pending"
506
+ },
507
+ "target": {
508
+ "axis": "answer",
509
+ "state": "accepted"
510
+ },
511
+ "command": "topic.record-verification",
512
+ "requiredAbility": "topic/accept-answer",
513
+ "assignedTo": {
514
+ "kind": "role",
515
+ "value": "completion-authority"
516
+ },
517
+ "gates": [
518
+ {
519
+ "kind": "axis",
520
+ "axis": "work",
521
+ "states": [
522
+ "submitted"
523
+ ]
524
+ },
525
+ {
526
+ "kind": "axis",
527
+ "axis": "verification",
528
+ "states": [
529
+ "verified"
530
+ ]
531
+ }
532
+ ],
533
+ "confirmation": "authority",
534
+ "consequence": "shared-state",
535
+ "evidence": {
536
+ "kind": "record",
537
+ "type": "ixo.topic.answer-acceptance",
538
+ "finality": "accepted",
539
+ "status": "accepted"
540
+ },
541
+ "presentation": {
542
+ "reasonCode": "accept-answer",
543
+ "actionLabelKey": "topic.action.accept-answer.label",
544
+ "bodyKey": "topic.action.accept-answer.prompt",
545
+ "purposeKey": "topic.action.accept-answer.purpose",
546
+ "unlocksKey": "topic.action.accept-answer.unlocks",
547
+ "priority": 900
548
+ }
498
549
  }
499
550
  ],
500
551
  "progressRules": [
@@ -2,9 +2,9 @@
2
2
  "version": 1,
3
3
  "code": "software-build",
4
4
  "id": "https://topic-protocol.ixo.world/recipes/software-build",
5
- "recipeVersion": "1.0.0-rc.3",
5
+ "recipeVersion": "1.0.0-rc.4",
6
6
  "label": "Software Build",
7
- "description": "Coordinate reviewed software work through implementation, verification, release, and operational-readiness evidence.",
7
+ "description": "Coordinate reviewed software work through user-defined milestones and explicitly accepted delivery evidence.",
8
8
  "baseRecipe": "project",
9
9
  "creates": "draft",
10
10
  "shape": {
@@ -2,7 +2,7 @@
2
2
  "version": 1,
3
3
  "code": "verified-work-payment",
4
4
  "id": "https://topic-protocol.ixo.world/recipes/verified-work-payment",
5
- "recipeVersion": "1.0.0-rc.3",
5
+ "recipeVersion": "1.0.0-rc.4",
6
6
  "label": "Verified work payment",
7
7
  "description": "Bind one entity and claim collection, verify work, decide, execute through Flow, and observe settlement finality.",
8
8
  "baseRecipe": "claims",
@@ -529,7 +529,8 @@
529
529
  "evidence": {
530
530
  "kind": "record",
531
531
  "type": "ixo.evaluation",
532
- "finality": "accepted"
532
+ "finality": "accepted",
533
+ "status": "verified"
533
534
  },
534
535
  "handoff": {
535
536
  "kind": "flow",
@@ -575,7 +576,8 @@
575
576
  "evidence": {
576
577
  "kind": "record",
577
578
  "type": "ixo.decision",
578
- "finality": "accepted"
579
+ "finality": "accepted",
580
+ "status": "approved"
579
581
  },
580
582
  "presentation": {
581
583
  "reasonCode": "decision-required",
@@ -658,7 +660,8 @@
658
660
  "evidence": {
659
661
  "kind": "receipt",
660
662
  "type": "ixo.action-receipt",
661
- "finality": "final"
663
+ "finality": "final",
664
+ "status": "succeeded"
662
665
  },
663
666
  "handoff": {
664
667
  "kind": "flow",
@@ -673,6 +676,53 @@
673
676
  "priority": 900
674
677
  }
675
678
  },
679
+ {
680
+ "code": "retry-action",
681
+ "phase": "effecting",
682
+ "predecessor": {
683
+ "axis": "effect",
684
+ "state": "requested"
685
+ },
686
+ "target": {
687
+ "axis": "effect",
688
+ "state": "requested"
689
+ },
690
+ "command": "topic.request-action",
691
+ "requiredAbility": "topic/request-action",
692
+ "assignedTo": {
693
+ "kind": "role",
694
+ "value": "action-requester"
695
+ },
696
+ "gates": [
697
+ {
698
+ "kind": "receipt",
699
+ "type": "ixo.action-receipt",
700
+ "status": "failed"
701
+ },
702
+ {
703
+ "kind": "binding",
704
+ "type": "flow"
705
+ }
706
+ ],
707
+ "confirmation": "viewer",
708
+ "consequence": "external-effect",
709
+ "evidence": {
710
+ "kind": "operation",
711
+ "type": "request-action"
712
+ },
713
+ "handoff": {
714
+ "kind": "flow",
715
+ "binding": "action"
716
+ },
717
+ "presentation": {
718
+ "reasonCode": "action-retry-required",
719
+ "actionLabelKey": "topic.action.retry-action.label",
720
+ "bodyKey": "topic.action.retry-action.prompt",
721
+ "purposeKey": "topic.action.retry-action.purpose",
722
+ "unlocksKey": "topic.action.retry-action.unlocks",
723
+ "priority": 900
724
+ }
725
+ },
676
726
  {
677
727
  "code": "record-settlement",
678
728
  "phase": "settling",
@@ -704,7 +754,8 @@
704
754
  "evidence": {
705
755
  "kind": "receipt",
706
756
  "type": "ixo.settlement-receipt",
707
- "finality": "final"
757
+ "finality": "final",
758
+ "status": "confirmed"
708
759
  },
709
760
  "handoff": {
710
761
  "kind": "flow",