@onlooker-community/schema 0.1.0 → 1.2.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.
@@ -1,174 +1,174 @@
1
1
  {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://onlooker.community/schemas/payload/plugins-memory.json",
4
- "title": "Memory plugin payloads",
5
- "description": "Payload schemas for archivist.*, relay.*, scribe.*, oracle.*, cues.*, and cartographer.* events.",
6
- "$defs": {
7
- "archivist.extract.complete": {
8
- "type": "object",
9
- "additionalProperties": false,
10
- "required": ["session_id", "item_count"],
11
- "properties": {
12
- "session_id": { "type": "string" },
13
- "item_count": { "type": "integer", "minimum": 0 },
14
- "decision_count": { "type": "integer", "minimum": 0 },
15
- "dead_end_count": { "type": "integer", "minimum": 0 },
16
- "open_question_count": { "type": "integer", "minimum": 0 },
17
- "file_count": { "type": "integer", "minimum": 0 },
18
- "trigger": {
19
- "type": "string",
20
- "enum": ["pre_compact", "session_end", "manual"]
21
- }
22
- }
23
- },
24
- "archivist.inject.complete": {
25
- "type": "object",
26
- "additionalProperties": false,
27
- "required": ["source_session_id", "items_injected"],
28
- "properties": {
29
- "source_session_id": { "type": "string" },
30
- "items_injected": { "type": "integer", "minimum": 0 },
31
- "items_available": { "type": "integer", "minimum": 0 }
32
- }
33
- },
34
- "relay.handoff.captured": {
35
- "type": "object",
36
- "additionalProperties": false,
37
- "required": ["session_id"],
38
- "properties": {
39
- "session_id": { "type": "string" },
40
- "tasks_in_progress": { "type": "integer", "minimum": 0 },
41
- "blocking_questions": { "type": "integer", "minimum": 0 },
42
- "files_in_flight": { "type": "integer", "minimum": 0 }
43
- }
44
- },
45
- "relay.handoff.injected": {
46
- "type": "object",
47
- "additionalProperties": false,
48
- "required": ["source_session_id"],
49
- "properties": {
50
- "source_session_id": { "type": "string" },
51
- "age_ms": { "type": "integer", "minimum": 0 }
52
- }
53
- },
54
- "scribe.capture.complete": {
55
- "type": "object",
56
- "additionalProperties": false,
57
- "required": ["file_path", "operation"],
58
- "properties": {
59
- "file_path": { "type": "string" },
60
- "operation": { "type": "string", "enum": ["write", "edit"] },
61
- "intent_summary": { "type": "string" }
62
- }
63
- },
64
- "scribe.distill.complete": {
65
- "type": "object",
66
- "additionalProperties": false,
67
- "required": ["session_id", "captures_processed", "artifacts_produced"],
68
- "properties": {
69
- "session_id": { "type": "string" },
70
- "captures_processed": { "type": "integer", "minimum": 0 },
71
- "artifacts_produced": { "type": "integer", "minimum": 0 }
72
- }
73
- },
74
- "oracle.calibration.requested": {
75
- "type": "object",
76
- "additionalProperties": false,
77
- "required": ["trigger"],
78
- "properties": {
79
- "trigger": {
80
- "type": "string",
81
- "enum": ["user_prompt", "pre_write", "pre_bash"]
82
- },
83
- "task_summary": { "type": "string" }
84
- }
85
- },
86
- "oracle.calibration.complete": {
87
- "type": "object",
88
- "additionalProperties": false,
89
- "required": ["trigger", "confidence_score", "intervened"],
90
- "properties": {
91
- "trigger": {
92
- "type": "string",
93
- "enum": ["user_prompt", "pre_write", "pre_bash"]
94
- },
95
- "confidence_score": { "type": "number", "minimum": 0, "maximum": 1 },
96
- "intervened": { "type": "boolean" },
97
- "misalignment_detected": { "type": "boolean" }
98
- }
99
- },
100
- "cues.matched": {
101
- "type": "object",
102
- "additionalProperties": false,
103
- "required": ["cue_id", "match_type", "trigger_source"],
104
- "properties": {
105
- "cue_id": { "type": "string" },
106
- "match_type": {
107
- "type": "string",
108
- "enum": ["regex", "vocabulary", "semantic"]
109
- },
110
- "trigger_source": {
111
- "type": "string",
112
- "enum": ["prompt", "command", "file_path"]
113
- },
114
- "cue_name": { "type": "string" }
115
- }
116
- },
117
- "cues.applied": {
118
- "type": "object",
119
- "additionalProperties": false,
120
- "required": ["cue_id"],
121
- "properties": {
122
- "cue_id": { "type": "string" },
123
- "cue_name": { "type": "string" },
124
- "guidance_length": { "type": "integer", "minimum": 0 }
125
- }
126
- },
127
- "cartographer.audit.complete": {
128
- "type": "object",
129
- "additionalProperties": false,
130
- "required": ["files_audited", "issues_found"],
131
- "properties": {
132
- "files_audited": { "type": "integer", "minimum": 0 },
133
- "issues_found": { "type": "integer", "minimum": 0 },
134
- "trigger": {
135
- "type": "string",
136
- "enum": ["instructions_loaded", "config_change", "manual"]
137
- },
138
- "issue_categories": {
139
- "type": "object",
140
- "additionalProperties": false,
141
- "properties": {
142
- "contradictions": { "type": "integer", "minimum": 0 },
143
- "stale_references": { "type": "integer", "minimum": 0 },
144
- "orphaned_plugins": { "type": "integer", "minimum": 0 },
145
- "dead_tools": { "type": "integer", "minimum": 0 },
146
- "duplicates": { "type": "integer", "minimum": 0 },
147
- "hierarchy_conflicts": { "type": "integer", "minimum": 0 }
148
- }
149
- }
150
- }
151
- },
152
- "cartographer.issue.found": {
153
- "type": "object",
154
- "additionalProperties": false,
155
- "required": ["issue_type", "file_path", "severity"],
156
- "properties": {
157
- "issue_type": {
158
- "type": "string",
159
- "enum": [
160
- "contradiction",
161
- "stale_reference",
162
- "orphaned_plugin",
163
- "dead_tool",
164
- "duplicate",
165
- "hierarchy_conflict"
166
- ]
167
- },
168
- "file_path": { "type": "string" },
169
- "severity": { "type": "string", "enum": ["error", "warning", "info"] },
170
- "description": { "type": "string" }
171
- }
172
- }
173
- }
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://onlooker.community/schemas/payload/plugins-memory.json",
4
+ "title": "Memory plugin payloads",
5
+ "description": "Payload schemas for archivist.*, relay.*, scribe.*, oracle.*, cues.*, and cartographer.* events.",
6
+ "$defs": {
7
+ "archivist.extract.complete": {
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "required": ["session_id", "item_count"],
11
+ "properties": {
12
+ "session_id": { "type": "string" },
13
+ "item_count": { "type": "integer", "minimum": 0 },
14
+ "decision_count": { "type": "integer", "minimum": 0 },
15
+ "dead_end_count": { "type": "integer", "minimum": 0 },
16
+ "open_question_count": { "type": "integer", "minimum": 0 },
17
+ "file_count": { "type": "integer", "minimum": 0 },
18
+ "trigger": {
19
+ "type": "string",
20
+ "enum": ["pre_compact", "session_end", "manual"]
21
+ }
22
+ }
23
+ },
24
+ "archivist.inject.complete": {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "required": ["source_session_id", "items_injected"],
28
+ "properties": {
29
+ "source_session_id": { "type": "string" },
30
+ "items_injected": { "type": "integer", "minimum": 0 },
31
+ "items_available": { "type": "integer", "minimum": 0 }
32
+ }
33
+ },
34
+ "relay.handoff.captured": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": ["session_id"],
38
+ "properties": {
39
+ "session_id": { "type": "string" },
40
+ "tasks_in_progress": { "type": "integer", "minimum": 0 },
41
+ "blocking_questions": { "type": "integer", "minimum": 0 },
42
+ "files_in_flight": { "type": "integer", "minimum": 0 }
43
+ }
44
+ },
45
+ "relay.handoff.injected": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": ["source_session_id"],
49
+ "properties": {
50
+ "source_session_id": { "type": "string" },
51
+ "age_ms": { "type": "integer", "minimum": 0 }
52
+ }
53
+ },
54
+ "scribe.capture.complete": {
55
+ "type": "object",
56
+ "additionalProperties": false,
57
+ "required": ["file_path", "operation"],
58
+ "properties": {
59
+ "file_path": { "type": "string" },
60
+ "operation": { "type": "string", "enum": ["write", "edit"] },
61
+ "intent_summary": { "type": "string" }
62
+ }
63
+ },
64
+ "scribe.distill.complete": {
65
+ "type": "object",
66
+ "additionalProperties": false,
67
+ "required": ["session_id", "captures_processed", "artifacts_produced"],
68
+ "properties": {
69
+ "session_id": { "type": "string" },
70
+ "captures_processed": { "type": "integer", "minimum": 0 },
71
+ "artifacts_produced": { "type": "integer", "minimum": 0 }
72
+ }
73
+ },
74
+ "oracle.calibration.requested": {
75
+ "type": "object",
76
+ "additionalProperties": false,
77
+ "required": ["trigger"],
78
+ "properties": {
79
+ "trigger": {
80
+ "type": "string",
81
+ "enum": ["user_prompt", "pre_write", "pre_bash"]
82
+ },
83
+ "task_summary": { "type": "string" }
84
+ }
85
+ },
86
+ "oracle.calibration.complete": {
87
+ "type": "object",
88
+ "additionalProperties": false,
89
+ "required": ["trigger", "confidence_score", "intervened"],
90
+ "properties": {
91
+ "trigger": {
92
+ "type": "string",
93
+ "enum": ["user_prompt", "pre_write", "pre_bash"]
94
+ },
95
+ "confidence_score": { "type": "number", "minimum": 0, "maximum": 1 },
96
+ "intervened": { "type": "boolean" },
97
+ "misalignment_detected": { "type": "boolean" }
98
+ }
99
+ },
100
+ "cues.matched": {
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": ["cue_id", "match_type", "trigger_source"],
104
+ "properties": {
105
+ "cue_id": { "type": "string" },
106
+ "match_type": {
107
+ "type": "string",
108
+ "enum": ["regex", "vocabulary", "semantic"]
109
+ },
110
+ "trigger_source": {
111
+ "type": "string",
112
+ "enum": ["prompt", "command", "file_path"]
113
+ },
114
+ "cue_name": { "type": "string" }
115
+ }
116
+ },
117
+ "cues.applied": {
118
+ "type": "object",
119
+ "additionalProperties": false,
120
+ "required": ["cue_id"],
121
+ "properties": {
122
+ "cue_id": { "type": "string" },
123
+ "cue_name": { "type": "string" },
124
+ "guidance_length": { "type": "integer", "minimum": 0 }
125
+ }
126
+ },
127
+ "cartographer.audit.complete": {
128
+ "type": "object",
129
+ "additionalProperties": false,
130
+ "required": ["files_audited", "issues_found"],
131
+ "properties": {
132
+ "files_audited": { "type": "integer", "minimum": 0 },
133
+ "issues_found": { "type": "integer", "minimum": 0 },
134
+ "trigger": {
135
+ "type": "string",
136
+ "enum": ["instructions_loaded", "config_change", "manual"]
137
+ },
138
+ "issue_categories": {
139
+ "type": "object",
140
+ "additionalProperties": false,
141
+ "properties": {
142
+ "contradictions": { "type": "integer", "minimum": 0 },
143
+ "stale_references": { "type": "integer", "minimum": 0 },
144
+ "orphaned_plugins": { "type": "integer", "minimum": 0 },
145
+ "dead_tools": { "type": "integer", "minimum": 0 },
146
+ "duplicates": { "type": "integer", "minimum": 0 },
147
+ "hierarchy_conflicts": { "type": "integer", "minimum": 0 }
148
+ }
149
+ }
150
+ }
151
+ },
152
+ "cartographer.issue.found": {
153
+ "type": "object",
154
+ "additionalProperties": false,
155
+ "required": ["issue_type", "file_path", "severity"],
156
+ "properties": {
157
+ "issue_type": {
158
+ "type": "string",
159
+ "enum": [
160
+ "contradiction",
161
+ "stale_reference",
162
+ "orphaned_plugin",
163
+ "dead_tool",
164
+ "duplicate",
165
+ "hierarchy_conflict"
166
+ ]
167
+ },
168
+ "file_path": { "type": "string" },
169
+ "severity": { "type": "string", "enum": ["error", "warning", "info"] },
170
+ "description": { "type": "string" }
171
+ }
172
+ }
173
+ }
174
174
  }