@ifsoul/core 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/README.md +28 -34
  2. package/dist/packages/memory/src/sql.js +54 -5
  3. package/dist/packages/protocol/src/generated/validators.cjs +1 -1
  4. package/dist/packages/protocol/src/index.d.ts +1 -6
  5. package/dist/packages/protocol/src/index.js +3 -16
  6. package/dist/packages/protocol/src/types.d.ts +1 -1
  7. package/dist/packages/runtime/src/index.js +1 -1
  8. package/package.json +2 -3
  9. package/packages/protocol/schemas/current/archive.schema.json +16 -16
  10. package/packages/protocol/schemas/current/character.schema.json +21 -21
  11. package/packages/protocol/schemas/current/common.schema.json +15 -15
  12. package/packages/protocol/schemas/current/context.schema.json +24 -24
  13. package/packages/protocol/schemas/current/conversation.schema.json +39 -39
  14. package/packages/protocol/schemas/current/environment.schema.json +18 -18
  15. package/packages/protocol/schemas/current/memory.schema.json +66 -66
  16. package/packages/protocol/schemas/current/model-provider.schema.json +40 -40
  17. package/packages/protocol/schemas/current/planning.schema.json +61 -61
  18. package/packages/protocol/schemas/current/provider-common.schema.json +6 -6
  19. package/release.json +7 -12
  20. package/specs/README.md +3 -86
  21. package/specs/current/README.md +3 -5
  22. package/specs/current/examples/archive-fork.json +12 -12
  23. package/specs/current/examples/archive-resume.json +12 -12
  24. package/specs/current/examples/character-instance.json +1 -1
  25. package/specs/current/examples/character-template.json +1 -1
  26. package/specs/current/examples/context-after-inspection.json +1 -1
  27. package/specs/current/examples/context-chat.json +1 -1
  28. package/specs/current/examples/context-daily.json +1 -1
  29. package/specs/current/examples/context-no-speech.json +1 -1
  30. package/specs/current/examples/conversation-delivery.json +1 -1
  31. package/specs/current/examples/conversation-live-request.json +1 -1
  32. package/specs/current/examples/conversation-live-response.json +1 -1
  33. package/specs/current/examples/conversation-no-speech-request.json +1 -1
  34. package/specs/current/examples/conversation-no-speech-response.json +1 -1
  35. package/specs/current/examples/conversation-requested-request.json +1 -1
  36. package/specs/current/examples/conversation-requested-response.json +1 -1
  37. package/specs/current/examples/environment-chat.json +1 -1
  38. package/specs/current/examples/environment-game.json +1 -1
  39. package/specs/current/examples/environment-no-speech.json +1 -1
  40. package/specs/current/examples/intent-checkpoint.json +1 -1
  41. package/specs/current/examples/memory-episode.json +1 -1
  42. package/specs/current/examples/memory-event-conversation.json +1 -1
  43. package/specs/current/examples/memory-event-observed.json +2 -2
  44. package/specs/current/examples/memory-event-plan-proposal.json +2 -2
  45. package/specs/current/examples/memory-event-proposed.json +2 -2
  46. package/specs/current/examples/memory-fact.json +1 -1
  47. package/specs/current/examples/memory-relationship.json +1 -1
  48. package/specs/current/examples/memory-working-context.json +1 -1
  49. package/specs/current/examples/plan-cancel-request.json +1 -1
  50. package/specs/current/examples/plan-cancel-result.json +1 -1
  51. package/specs/current/examples/plan-daily.json +1 -1
  52. package/specs/current/examples/plan-partial-decision.json +1 -1
  53. package/specs/current/examples/portable-memory.jsonl +9 -9
  54. package/specs/current/examples/task-outcome.json +1 -1
  55. package/specs/current/examples/task-progress.json +1 -1
  56. package/specs/current/model-provider/examples/capabilities.json +1 -1
  57. package/specs/current/model-provider/examples/error.json +1 -1
  58. package/specs/current/model-provider/examples/request.json +1 -1
  59. package/specs/current/model-provider/examples/response.json +1 -1
  60. package/docs/npm-publishing.md +0 -44
  61. package/packages/protocol/schemas/action-result.schema.json +0 -187
  62. package/packages/protocol/schemas/action.schema.json +0 -68
  63. package/packages/protocol/schemas/archive-manifest.schema.json +0 -126
  64. package/packages/protocol/schemas/capability.schema.json +0 -131
  65. package/packages/protocol/schemas/character-instance.schema.json +0 -73
  66. package/packages/protocol/schemas/character-template.schema.json +0 -67
  67. package/packages/protocol/schemas/common.schema.json +0 -154
  68. package/packages/protocol/schemas/derived-memory.schema.json +0 -145
  69. package/packages/protocol/schemas/memory-event.schema.json +0 -123
  70. package/packages/protocol/schemas/model-provider.schema.json +0 -326
  71. package/packages/protocol/schemas/perception.schema.json +0 -89
  72. package/packages/protocol/schemas/permission-policy.schema.json +0 -153
  73. package/packages/protocol/schemas/v0.2/archive.schema.json +0 -205
  74. package/packages/protocol/schemas/v0.2/character.schema.json +0 -344
  75. package/packages/protocol/schemas/v0.2/common.schema.json +0 -239
  76. package/packages/protocol/schemas/v0.2/context.schema.json +0 -230
  77. package/packages/protocol/schemas/v0.2/conversation.schema.json +0 -340
  78. package/packages/protocol/schemas/v0.2/environment.schema.json +0 -244
  79. package/packages/protocol/schemas/v0.2/memory.schema.json +0 -495
  80. package/packages/protocol/schemas/v0.2/planning.schema.json +0 -443
  81. package/packages/protocol/schemas/world-event.schema.json +0 -74
  82. package/specs/character/README.md +0 -84
  83. package/specs/character/examples/archive-manifest.json +0 -32
  84. package/specs/character/examples/character-instance.json +0 -20
  85. package/specs/character/examples/character-template.json +0 -19
  86. package/specs/memory/README.md +0 -80
  87. package/specs/memory/examples/derived-memory.json +0 -21
  88. package/specs/memory/examples/memory-event.json +0 -35
  89. package/specs/model-provider/README.md +0 -85
  90. package/specs/model-provider/examples/capabilities.json +0 -10
  91. package/specs/model-provider/examples/error.json +0 -18
  92. package/specs/model-provider/examples/request.json +0 -17
  93. package/specs/model-provider/examples/response.json +0 -19
  94. package/specs/v0.2/README.md +0 -421
  95. package/specs/v0.2/examples/archive-fork.json +0 -64
  96. package/specs/v0.2/examples/archive-resume.json +0 -63
  97. package/specs/v0.2/examples/character-instance.json +0 -57
  98. package/specs/v0.2/examples/character-template.json +0 -45
  99. package/specs/v0.2/examples/context-after-inspection.json +0 -44
  100. package/specs/v0.2/examples/context-chat.json +0 -27
  101. package/specs/v0.2/examples/context-daily.json +0 -69
  102. package/specs/v0.2/examples/context-no-speech.json +0 -27
  103. package/specs/v0.2/examples/conversation-delivery.json +0 -17
  104. package/specs/v0.2/examples/conversation-live-request.json +0 -31
  105. package/specs/v0.2/examples/conversation-live-response.json +0 -23
  106. package/specs/v0.2/examples/conversation-no-speech-request.json +0 -23
  107. package/specs/v0.2/examples/conversation-no-speech-response.json +0 -22
  108. package/specs/v0.2/examples/conversation-requested-request.json +0 -31
  109. package/specs/v0.2/examples/conversation-requested-response.json +0 -23
  110. package/specs/v0.2/examples/environment-chat.json +0 -43
  111. package/specs/v0.2/examples/environment-game.json +0 -80
  112. package/specs/v0.2/examples/environment-no-speech.json +0 -47
  113. package/specs/v0.2/examples/intent-checkpoint.json +0 -29
  114. package/specs/v0.2/examples/memory-episode.json +0 -28
  115. package/specs/v0.2/examples/memory-event-conversation.json +0 -32
  116. package/specs/v0.2/examples/memory-event-observed.json +0 -50
  117. package/specs/v0.2/examples/memory-event-plan-proposal.json +0 -82
  118. package/specs/v0.2/examples/memory-event-proposed.json +0 -53
  119. package/specs/v0.2/examples/memory-fact.json +0 -23
  120. package/specs/v0.2/examples/memory-relationship.json +0 -25
  121. package/specs/v0.2/examples/memory-working-context.json +0 -24
  122. package/specs/v0.2/examples/plan-cancel-request.json +0 -16
  123. package/specs/v0.2/examples/plan-cancel-result.json +0 -21
  124. package/specs/v0.2/examples/plan-daily.json +0 -57
  125. package/specs/v0.2/examples/plan-partial-decision.json +0 -28
  126. package/specs/v0.2/examples/portable-memory.jsonl +0 -9
  127. package/specs/v0.2/examples/task-outcome.json +0 -21
  128. package/specs/v0.2/examples/task-progress.json +0 -19
  129. package/specs/world-adapter/README.md +0 -114
  130. package/specs/world-adapter/examples/action-result-unknown.json +0 -23
  131. package/specs/world-adapter/examples/action-result.json +0 -45
  132. package/specs/world-adapter/examples/action.json +0 -17
  133. package/specs/world-adapter/examples/capability.json +0 -44
  134. package/specs/world-adapter/examples/perception.json +0 -30
  135. package/specs/world-adapter/examples/permission-decision.json +0 -14
  136. package/specs/world-adapter/examples/permission-policy.json +0 -17
  137. package/specs/world-adapter/examples/world-event.json +0 -25
@@ -6,11 +6,6 @@ export declare function canonical(value: unknown): string;
6
6
  export { resolveResourceLimits, BUFFERED_JSON_MAX_BYTES, MAX_TIMER_MS, } from "./resource-policy.js";
7
7
  export type { BudgetReport } from "./resource-policy.js";
8
8
  /** Current train identifier; wire families require exact kind/version validation. */
9
- export declare const IFSOUL_VERSION: "0.3.0";
10
- /** Reviewed shape-preserving v0.2 to current adapter. Never mutates stored evidence.
11
- * v0.1 has no generic semantic adapter. */
12
- export declare function upgradeDocument<T extends import("./types.js").Envelope>(value: T): Omit<T, "schemaVersion"> & {
13
- schemaVersion: typeof IFSOUL_VERSION;
14
- };
9
+ export declare const IFSOUL_VERSION: "0.4.0";
15
10
  /** Structural current ModelProvider spec validation; not a provider wire transport. */
16
11
  export declare function validateModelProviderDocument(value: unknown): boolean;
@@ -30,9 +30,9 @@ export function validateDocument(value, expectedKind) {
30
30
  !Object.hasOwn(kinds, kind))
31
31
  return false;
32
32
  const version = value.schemaVersion;
33
- if (version !== "draft-0.2.0" && version !== "0.3.0")
33
+ if (version !== "0.4.0")
34
34
  return false;
35
- return (validators[(version === "0.3.0" ? "current_" : "") + kinds[kind]](value) === true);
35
+ return validators["current_" + kinds[kind]](value) === true;
36
36
  }
37
37
  /** Canonical local equality for JSON documents; not a signature or authentication proof. */
38
38
  export function canonical(value) {
@@ -47,20 +47,7 @@ export function canonical(value) {
47
47
  }
48
48
  export { resolveResourceLimits, BUFFERED_JSON_MAX_BYTES, MAX_TIMER_MS, } from "./resource-policy.js";
49
49
  /** Current train identifier; wire families require exact kind/version validation. */
50
- export const IFSOUL_VERSION = "0.3.0";
51
- /** Reviewed shape-preserving v0.2 to current adapter. Never mutates stored evidence.
52
- * v0.1 has no generic semantic adapter. */
53
- export function upgradeDocument(value) {
54
- if (!validateDocument(value))
55
- throw new Error("Unsupported or invalid protocol document");
56
- const copy = structuredClone(value);
57
- copy.schemaVersion = IFSOUL_VERSION;
58
- if (copy.kind === "archive-manifest")
59
- throw new Error("Archive files require an explicit manifest rebuild; generic adaptation is unsupported");
60
- if (!validateDocument(copy))
61
- throw new Error("Unsupported protocol adaptation");
62
- return copy;
63
- }
50
+ export const IFSOUL_VERSION = "0.4.0";
64
51
  /** Structural current ModelProvider spec validation; not a provider wire transport. */
65
52
  export function validateModelProviderDocument(value) {
66
53
  return validators.current_provider(value) === true;
@@ -1,6 +1,6 @@
1
1
  /** Convenience views for the implemented slice. JSON Schemas remain normative. */
2
2
  export interface Envelope {
3
- schemaVersion: "0.3.0" | "draft-0.2.0";
3
+ schemaVersion: "0.4.0";
4
4
  kind: string;
5
5
  extensions?: Record<string, unknown>;
6
6
  requiredExtensions?: string[];
@@ -73,7 +73,7 @@ export function createRuntime(options) {
73
73
  result,
74
74
  });
75
75
  const event = (s, payload, category, id, recordedAt, sourceType) => ({
76
- schemaVersion: "0.3.0",
76
+ schemaVersion: "0.4.0",
77
77
  kind: "memory-event",
78
78
  memoryId: `event-${createHash("sha256")
79
79
  .update(key(s, category, id))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifsoul/core",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Experimental public IfSoul protocol, runtime, memory and provider primitives",
@@ -22,8 +22,7 @@
22
22
  "LICENSE",
23
23
  "LICENSES/CC-BY-4.0.txt",
24
24
  "LICENSES/CC0-1.0.txt",
25
- "release.json",
26
- "docs/npm-publishing.md"
25
+ "release.json"
27
26
  ],
28
27
  "sideEffects": false,
29
28
  "exports": {
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:ifsoul:protocol:0.3.0:archive",
3
+ "$id": "urn:ifsoul:protocol:0.4.0:archive",
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "schemaVersion": {
7
- "const": "0.3.0"
7
+ "const": "0.4.0"
8
8
  },
9
9
  "kind": {
10
10
  "const": "archive-manifest"
11
11
  },
12
12
  "archiveVersion": {
13
- "const": "0.3.0"
13
+ "const": "0.4.0"
14
14
  },
15
15
  "archiveId": {
16
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
16
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
17
17
  },
18
18
  "characterId": {
19
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
19
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
20
20
  },
21
21
  "createdAt": {
22
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
22
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
23
23
  },
24
24
  "transferIntent": {
25
25
  "oneOf": [
@@ -30,7 +30,7 @@
30
30
  "const": "resume"
31
31
  },
32
32
  "expectedCharacterId": {
33
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
33
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
34
34
  }
35
35
  },
36
36
  "required": ["mode", "expectedCharacterId"],
@@ -43,10 +43,10 @@
43
43
  "const": "fork"
44
44
  },
45
45
  "newCharacterId": {
46
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
46
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
47
47
  },
48
48
  "newParticipantId": {
49
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
49
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
50
50
  }
51
51
  },
52
52
  "required": ["mode", "newCharacterId", "newParticipantId"],
@@ -61,10 +61,10 @@
61
61
  "properties": {
62
62
  "schemaId": {
63
63
  "type": "string",
64
- "pattern": "^urn:ifsoul:protocol:0[.]3[.]0:(character|memory)$"
64
+ "pattern": "^urn:ifsoul:protocol:0[.]4[.]0:(character|memory)$"
65
65
  },
66
66
  "schemaVersion": {
67
- "const": "0.3.0"
67
+ "const": "0.4.0"
68
68
  }
69
69
  },
70
70
  "required": ["schemaId", "schemaVersion"],
@@ -88,7 +88,7 @@
88
88
  },
89
89
  "schemaId": {
90
90
  "type": "string",
91
- "pattern": "^urn:ifsoul:protocol:0[.]3[.]0:(character|memory)$"
91
+ "pattern": "^urn:ifsoul:protocol:0[.]4[.]0:(character|memory)$"
92
92
  },
93
93
  "recordCount": {
94
94
  "type": "integer",
@@ -164,23 +164,23 @@
164
164
  "additionalProperties": false
165
165
  },
166
166
  "provenance": {
167
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/provenance"
167
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/provenance"
168
168
  },
169
169
  "portableCheckpointIds": {
170
170
  "type": "array",
171
171
  "items": {
172
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
172
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
173
173
  },
174
174
  "minItems": 0,
175
175
  "uniqueItems": true
176
176
  },
177
177
  "extensions": {
178
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
178
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
179
179
  },
180
180
  "requiredExtensions": {
181
181
  "type": "array",
182
182
  "items": {
183
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
183
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
184
184
  },
185
185
  "minItems": 0,
186
186
  "maxItems": 16,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:ifsoul:protocol:0.3.0:character",
3
+ "$id": "urn:ifsoul:protocol:0.4.0:character",
4
4
  "oneOf": [
5
5
  {
6
6
  "$ref": "#/$defs/template"
@@ -14,13 +14,13 @@
14
14
  "type": "object",
15
15
  "properties": {
16
16
  "schemaVersion": {
17
- "const": "0.3.0"
17
+ "const": "0.4.0"
18
18
  },
19
19
  "kind": {
20
20
  "const": "character-template"
21
21
  },
22
22
  "templateId": {
23
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
23
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
24
24
  },
25
25
  "revision": {
26
26
  "type": "integer",
@@ -59,12 +59,12 @@
59
59
  "additionalProperties": false
60
60
  },
61
61
  "extensions": {
62
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
62
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
63
63
  },
64
64
  "requiredExtensions": {
65
65
  "type": "array",
66
66
  "items": {
67
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
67
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
68
68
  },
69
69
  "minItems": 0,
70
70
  "maxItems": 16,
@@ -85,25 +85,25 @@
85
85
  "type": "object",
86
86
  "properties": {
87
87
  "schemaVersion": {
88
- "const": "0.3.0"
88
+ "const": "0.4.0"
89
89
  },
90
90
  "kind": {
91
91
  "const": "character-instance"
92
92
  },
93
93
  "characterId": {
94
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
94
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
95
95
  },
96
96
  "participantId": {
97
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
97
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
98
98
  },
99
99
  "createdAt": {
100
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
100
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
101
101
  },
102
102
  "template": {
103
103
  "type": "object",
104
104
  "properties": {
105
105
  "templateId": {
106
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
106
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
107
107
  },
108
108
  "revision": {
109
109
  "type": "integer",
@@ -120,7 +120,7 @@
120
120
  "memoryRecordIds": {
121
121
  "type": "array",
122
122
  "items": {
123
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
123
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
124
124
  },
125
125
  "minItems": 0,
126
126
  "uniqueItems": true
@@ -128,7 +128,7 @@
128
128
  "relationshipMemoryIds": {
129
129
  "type": "array",
130
130
  "items": {
131
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
131
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
132
132
  },
133
133
  "minItems": 0,
134
134
  "uniqueItems": true
@@ -142,13 +142,13 @@
142
142
  "enum": ["fork", "import"]
143
143
  },
144
144
  "sourceCharacterId": {
145
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
145
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
146
146
  },
147
147
  "sourceArchiveId": {
148
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
148
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
149
149
  },
150
150
  "recordedAt": {
151
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
151
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
152
152
  }
153
153
  },
154
154
  "required": [
@@ -163,12 +163,12 @@
163
163
  "maxItems": 64
164
164
  },
165
165
  "extensions": {
166
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
166
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
167
167
  },
168
168
  "requiredExtensions": {
169
169
  "type": "array",
170
170
  "items": {
171
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
171
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
172
172
  },
173
173
  "minItems": 0,
174
174
  "maxItems": 16,
@@ -204,7 +204,7 @@
204
204
  "type": "object",
205
205
  "maxProperties": 32,
206
206
  "propertyNames": {
207
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
207
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
208
208
  },
209
209
  "additionalProperties": {
210
210
  "anyOf": [
@@ -227,7 +227,7 @@
227
227
  "type": "object",
228
228
  "properties": {
229
229
  "preferenceId": {
230
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
230
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
231
231
  },
232
232
  "subject": {
233
233
  "type": "string",
@@ -293,7 +293,7 @@
293
293
  "type": "object",
294
294
  "properties": {
295
295
  "goalId": {
296
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
296
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
297
297
  },
298
298
  "description": {
299
299
  "type": "string",
@@ -301,7 +301,7 @@
301
301
  "maxLength": 500
302
302
  },
303
303
  "priority": {
304
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/priority"
304
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/priority"
305
305
  },
306
306
  "status": {
307
307
  "enum": ["desired", "active", "paused", "complete"]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:ifsoul:protocol:0.3.0:common",
3
+ "$id": "urn:ifsoul:protocol:0.4.0:common",
4
4
  "description": "Shared definitions only; not an exchange document.",
5
5
  "$defs": {
6
6
  "id": {
@@ -20,7 +20,7 @@
20
20
  "type": "object",
21
21
  "maxProperties": 16,
22
22
  "propertyNames": {
23
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
23
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
24
24
  },
25
25
  "additionalProperties": true
26
26
  },
@@ -28,16 +28,16 @@
28
28
  "type": "object",
29
29
  "properties": {
30
30
  "environmentId": {
31
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
31
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
32
32
  },
33
33
  "sessionId": {
34
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
34
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
35
35
  },
36
36
  "characterId": {
37
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
37
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
38
38
  },
39
39
  "embodimentId": {
40
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
40
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
41
41
  }
42
42
  },
43
43
  "required": ["environmentId", "sessionId", "characterId", "embodimentId"],
@@ -47,7 +47,7 @@
47
47
  "type": "object",
48
48
  "properties": {
49
49
  "timelineId": {
50
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
50
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
51
51
  },
52
52
  "tick": {
53
53
  "type": "integer",
@@ -67,10 +67,10 @@
67
67
  "const": "utc"
68
68
  },
69
69
  "startAt": {
70
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
70
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
71
71
  },
72
72
  "endAt": {
73
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
73
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
74
74
  }
75
75
  },
76
76
  "required": ["basis", "startAt", "endAt"],
@@ -83,7 +83,7 @@
83
83
  "const": "world-ticks"
84
84
  },
85
85
  "timelineId": {
86
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
86
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
87
87
  },
88
88
  "fromTick": {
89
89
  "type": "integer",
@@ -110,7 +110,7 @@
110
110
  "const": "entity-ref"
111
111
  },
112
112
  "entityId": {
113
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
113
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
114
114
  }
115
115
  },
116
116
  "required": ["type", "entityId"],
@@ -123,7 +123,7 @@
123
123
  "const": "choice"
124
124
  },
125
125
  "value": {
126
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
126
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
127
127
  }
128
128
  },
129
129
  "required": ["type", "value"],
@@ -139,7 +139,7 @@
139
139
  "type": "number"
140
140
  },
141
141
  "unit": {
142
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
142
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
143
143
  }
144
144
  },
145
145
  "required": ["type", "value", "unit"],
@@ -169,7 +169,7 @@
169
169
  "participantIds": {
170
170
  "type": "array",
171
171
  "items": {
172
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
172
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
173
173
  },
174
174
  "minItems": 0,
175
175
  "maxItems": 32,
@@ -216,7 +216,7 @@
216
216
  ]
217
217
  },
218
218
  "sourceId": {
219
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
219
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
220
220
  }
221
221
  },
222
222
  "required": ["sourceType", "sourceId"],
@@ -1,34 +1,34 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:ifsoul:protocol:0.3.0:context",
3
+ "$id": "urn:ifsoul:protocol:0.4.0:context",
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "schemaVersion": {
7
- "const": "0.3.0"
7
+ "const": "0.4.0"
8
8
  },
9
9
  "kind": {
10
10
  "const": "context-report"
11
11
  },
12
12
  "reportId": {
13
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
13
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
14
14
  },
15
15
  "contextRevision": {
16
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
16
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
17
17
  },
18
18
  "environmentRevision": {
19
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
19
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
20
20
  },
21
21
  "correlationId": {
22
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
22
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
23
23
  },
24
24
  "binding": {
25
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/binding"
25
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/binding"
26
26
  },
27
27
  "recordedAt": {
28
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
28
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
29
29
  },
30
30
  "period": {
31
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/period"
31
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/period"
32
32
  },
33
33
  "observedState": {
34
34
  "type": "object",
@@ -44,10 +44,10 @@
44
44
  "type": "object",
45
45
  "properties": {
46
46
  "subjectId": {
47
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
47
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
48
48
  },
49
49
  "propertyId": {
50
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
50
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
51
51
  },
52
52
  "value": {
53
53
  "anyOf": [
@@ -80,7 +80,7 @@
80
80
  "type": "object",
81
81
  "properties": {
82
82
  "needId": {
83
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
83
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
84
84
  },
85
85
  "description": {
86
86
  "type": "string",
@@ -88,7 +88,7 @@
88
88
  "maxLength": 500
89
89
  },
90
90
  "priority": {
91
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/priority"
91
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/priority"
92
92
  },
93
93
  "status": {
94
94
  "enum": ["current", "resolved", "unknown"]
@@ -106,7 +106,7 @@
106
106
  "type": "object",
107
107
  "properties": {
108
108
  "planId": {
109
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
109
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
110
110
  },
111
111
  "taskStates": {
112
112
  "type": "array",
@@ -114,10 +114,10 @@
114
114
  "type": "object",
115
115
  "properties": {
116
116
  "taskId": {
117
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
117
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
118
118
  },
119
119
  "status": {
120
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/taskStatus"
120
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/taskStatus"
121
121
  }
122
122
  },
123
123
  "required": ["taskId", "status"],
@@ -139,13 +139,13 @@
139
139
  "type": "object",
140
140
  "properties": {
141
141
  "changeId": {
142
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
142
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
143
143
  },
144
144
  "kind": {
145
145
  "enum": ["change", "event"]
146
146
  },
147
147
  "recordedAt": {
148
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
148
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
149
149
  },
150
150
  "summary": {
151
151
  "type": "string",
@@ -153,7 +153,7 @@
153
153
  "maxLength": 1000
154
154
  },
155
155
  "worldTime": {
156
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/worldTime"
156
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/worldTime"
157
157
  }
158
158
  },
159
159
  "required": ["changeId", "kind", "recordedAt", "summary"],
@@ -166,13 +166,13 @@
166
166
  "type": "object",
167
167
  "properties": {
168
168
  "requestId": {
169
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
169
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
170
170
  },
171
171
  "cadence": {
172
172
  "enum": ["host-requested", "daily", "event-driven"]
173
173
  },
174
174
  "horizon": {
175
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/period"
175
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/period"
176
176
  },
177
177
  "maxTasks": {
178
178
  "type": "integer",
@@ -182,7 +182,7 @@
182
182
  "allowedIntentIds": {
183
183
  "type": "array",
184
184
  "items": {
185
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
185
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
186
186
  },
187
187
  "minItems": 0,
188
188
  "maxItems": 32,
@@ -199,12 +199,12 @@
199
199
  "additionalProperties": false
200
200
  },
201
201
  "extensions": {
202
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
202
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
203
203
  },
204
204
  "requiredExtensions": {
205
205
  "type": "array",
206
206
  "items": {
207
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
207
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
208
208
  },
209
209
  "minItems": 0,
210
210
  "maxItems": 16,