vine-context 0.0.1 → 0.1.1
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/LICENSE +202 -0
- package/README.md +279 -3
- package/dist/apps/shell.html +149 -0
- package/dist/apps/views.html +144 -0
- package/dist/cli.js +7825 -0
- package/dist/cli.js.map +1 -0
- package/examples/data/graphs/party/.cypherlite/schema/schema.cypher +5 -0
- package/examples/data/graphs/party/.cypherlite.lock +1 -0
- package/examples/data/graphs/party/.cypherlite.writer +0 -0
- package/examples/data/graphs/party/manifest.json +215 -0
- package/examples/data/graphs/party/nodes/0-262144-7987dd27c85668d4810609133f705907.parquet +0 -0
- package/examples/data/graphs/party/wal/.cypherlite.lock +1 -0
- package/examples/data/graphs/party/wal/.cypherlite.writer +0 -0
- package/examples/data/graphs/party/wal/00000002.log +0 -0
- package/examples/data/hosts/party/changes.jsonl +19 -0
- package/examples/data/hosts/party/group.json +5 -0
- package/examples/data/hosts/party/sharing.json +1 -0
- package/examples/data/identity.json +4 -0
- package/models/temporal-claims/instructions.md +78 -0
- package/models/temporal-claims/model.yaml +99 -0
- package/models/temporal-claims/tools.yaml +344 -0
- package/package.json +71 -3
- package/plugin/.claude-plugin/plugin.json +8 -0
- package/plugin/.codex-plugin/plugin.json +17 -0
- package/plugin/.mcp.json +8 -0
- package/plugin/codex/hooks.json +11 -0
- package/plugin/commands/join.md +22 -0
- package/plugin/hooks/hooks.json +11 -0
- package/plugin/hooks/register.tsx +2310 -0
- package/plugin/hooks/vine-hook.mjs +25 -0
- package/plugin/skills/join-context-graph/SKILL.md +36 -0
- package/plugin/skills/vine-context/SKILL.md +235 -0
- package/plugin/tests/context-graph.test.tsx +830 -0
- package/plugin/types/index.d.ts +165 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
CREATE VECTOR INDEX `search_embedding` FOR (n:`Claim`|`Question`) ON (n.`embedding`) OPTIONS {indexConfig: {`vector.default_search_expansion_factor`: 3.0,`vector.dimensions`: 256,`vector.hnsw.ef_construction`: 100,`vector.hnsw.m`: 16,`vector.quantization.type`: 'BINARY',`vector.similarity_function`: 'COSINE'}};
|
|
2
|
+
CREATE FULLTEXT INDEX `search_text` FOR (n:`Claim`|`Question`) ON EACH [n.`text`] OPTIONS {indexConfig: {`fulltext.analyzer`: 'standard-no-stop-words',`fulltext.eventually_consistent`: false}};
|
|
3
|
+
CREATE CONSTRAINT `claim_id_key` FOR (n:`Claim`) REQUIRE (n.`id`) IS UNIQUE;
|
|
4
|
+
CREATE CONSTRAINT `question_id_key` FOR (n:`Question`) REQUIRE (n.`id`) IS UNIQUE;
|
|
5
|
+
CREATE CONSTRAINT `reply_id_key` FOR (n:`Reply`) REQUIRE (n.`id`) IS UNIQUE;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CYPHERLITE-LOCK-v1 root
|
|
File without changes
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": 5,
|
|
3
|
+
"next_node_id": 1,
|
|
4
|
+
"next_rel_id": 0,
|
|
5
|
+
"checkpoint_lsn": 6,
|
|
6
|
+
"commit_ts": 6,
|
|
7
|
+
"node_parts": [
|
|
8
|
+
{
|
|
9
|
+
"path": "nodes/0-262144-7987dd27c85668d4810609133f705907.parquet",
|
|
10
|
+
"id_lo": 0,
|
|
11
|
+
"id_hi": 262144,
|
|
12
|
+
"rows": 1,
|
|
13
|
+
"bytes": 1941
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"rel_parts": [],
|
|
17
|
+
"bytes_per_node": 1941.0,
|
|
18
|
+
"bytes_per_rel": 0.0,
|
|
19
|
+
"codec": "parquet",
|
|
20
|
+
"indexes": [
|
|
21
|
+
{
|
|
22
|
+
"name": "claim_id_key",
|
|
23
|
+
"label": "Claim",
|
|
24
|
+
"property": "id#RANGE#claim_id_key"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "question_id_key",
|
|
28
|
+
"label": "Question",
|
|
29
|
+
"property": "id#RANGE#question_id_key"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "reply_id_key",
|
|
33
|
+
"label": "Reply",
|
|
34
|
+
"property": "id#RANGE#reply_id_key"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "search_embedding",
|
|
38
|
+
"label": "Claim",
|
|
39
|
+
"property": "embedding#VECTOR#search_embedding"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "search_text",
|
|
43
|
+
"label": "Claim",
|
|
44
|
+
"property": "text#FULLTEXT#search_text"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"constraints": [
|
|
48
|
+
{
|
|
49
|
+
"name": "claim_id_key",
|
|
50
|
+
"relationship": false,
|
|
51
|
+
"label": "Claim",
|
|
52
|
+
"properties": [
|
|
53
|
+
"id"
|
|
54
|
+
],
|
|
55
|
+
"kind": "unique",
|
|
56
|
+
"property_type": null
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "question_id_key",
|
|
60
|
+
"relationship": false,
|
|
61
|
+
"label": "Question",
|
|
62
|
+
"properties": [
|
|
63
|
+
"id"
|
|
64
|
+
],
|
|
65
|
+
"kind": "unique",
|
|
66
|
+
"property_type": null
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "reply_id_key",
|
|
70
|
+
"relationship": false,
|
|
71
|
+
"label": "Reply",
|
|
72
|
+
"properties": [
|
|
73
|
+
"id"
|
|
74
|
+
],
|
|
75
|
+
"kind": "unique",
|
|
76
|
+
"property_type": null
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"theater": {
|
|
80
|
+
"databases": {
|
|
81
|
+
"neo4j": [
|
|
82
|
+
25,
|
|
83
|
+
false
|
|
84
|
+
],
|
|
85
|
+
"system": [
|
|
86
|
+
25,
|
|
87
|
+
false
|
|
88
|
+
],
|
|
89
|
+
"system_ontologies": [
|
|
90
|
+
25,
|
|
91
|
+
false
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"index_details": {
|
|
95
|
+
"claim_id_key": {
|
|
96
|
+
"kind": "Range",
|
|
97
|
+
"relationship": false,
|
|
98
|
+
"labels": [
|
|
99
|
+
"Claim"
|
|
100
|
+
],
|
|
101
|
+
"properties": [
|
|
102
|
+
"id"
|
|
103
|
+
],
|
|
104
|
+
"with_properties": []
|
|
105
|
+
},
|
|
106
|
+
"question_id_key": {
|
|
107
|
+
"kind": "Range",
|
|
108
|
+
"relationship": false,
|
|
109
|
+
"labels": [
|
|
110
|
+
"Question"
|
|
111
|
+
],
|
|
112
|
+
"properties": [
|
|
113
|
+
"id"
|
|
114
|
+
],
|
|
115
|
+
"with_properties": []
|
|
116
|
+
},
|
|
117
|
+
"reply_id_key": {
|
|
118
|
+
"kind": "Range",
|
|
119
|
+
"relationship": false,
|
|
120
|
+
"labels": [
|
|
121
|
+
"Reply"
|
|
122
|
+
],
|
|
123
|
+
"properties": [
|
|
124
|
+
"id"
|
|
125
|
+
],
|
|
126
|
+
"with_properties": []
|
|
127
|
+
},
|
|
128
|
+
"search_embedding": {
|
|
129
|
+
"kind": "Vector",
|
|
130
|
+
"relationship": false,
|
|
131
|
+
"labels": [
|
|
132
|
+
"Claim",
|
|
133
|
+
"Question"
|
|
134
|
+
],
|
|
135
|
+
"properties": [
|
|
136
|
+
"embedding"
|
|
137
|
+
],
|
|
138
|
+
"with_properties": []
|
|
139
|
+
},
|
|
140
|
+
"search_text": {
|
|
141
|
+
"kind": "Fulltext",
|
|
142
|
+
"relationship": false,
|
|
143
|
+
"labels": [
|
|
144
|
+
"Claim",
|
|
145
|
+
"Question"
|
|
146
|
+
],
|
|
147
|
+
"properties": [
|
|
148
|
+
"text"
|
|
149
|
+
],
|
|
150
|
+
"with_properties": []
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"index_options": {
|
|
154
|
+
"claim_id_key": {},
|
|
155
|
+
"question_id_key": {},
|
|
156
|
+
"reply_id_key": {},
|
|
157
|
+
"search_embedding": {
|
|
158
|
+
"indexConfig": {
|
|
159
|
+
"t": "map",
|
|
160
|
+
"v": {
|
|
161
|
+
"vector.default_search_expansion_factor": {
|
|
162
|
+
"t": "float",
|
|
163
|
+
"v": 3.0
|
|
164
|
+
},
|
|
165
|
+
"vector.dimensions": {
|
|
166
|
+
"t": "int",
|
|
167
|
+
"v": 256
|
|
168
|
+
},
|
|
169
|
+
"vector.hnsw.ef_construction": {
|
|
170
|
+
"t": "int",
|
|
171
|
+
"v": 100
|
|
172
|
+
},
|
|
173
|
+
"vector.hnsw.m": {
|
|
174
|
+
"t": "int",
|
|
175
|
+
"v": 16
|
|
176
|
+
},
|
|
177
|
+
"vector.quantization.type": {
|
|
178
|
+
"t": "string",
|
|
179
|
+
"v": "BINARY"
|
|
180
|
+
},
|
|
181
|
+
"vector.similarity_function": {
|
|
182
|
+
"t": "string",
|
|
183
|
+
"v": "COSINE"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"search_text": {
|
|
189
|
+
"indexConfig": {
|
|
190
|
+
"t": "map",
|
|
191
|
+
"v": {
|
|
192
|
+
"fulltext.analyzer": {
|
|
193
|
+
"t": "string",
|
|
194
|
+
"v": "standard-no-stop-words"
|
|
195
|
+
},
|
|
196
|
+
"fulltext.eventually_consistent": {
|
|
197
|
+
"t": "bool",
|
|
198
|
+
"v": false
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"graph_types": {},
|
|
205
|
+
"current_graph_type": {
|
|
206
|
+
"node_types": [],
|
|
207
|
+
"edge_types": [],
|
|
208
|
+
"constraints": [],
|
|
209
|
+
"drop_constraint_names": []
|
|
210
|
+
},
|
|
211
|
+
"derived_constraints": {}
|
|
212
|
+
},
|
|
213
|
+
"query_engine": "in-memory",
|
|
214
|
+
"write_engine": "local"
|
|
215
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CYPHERLITE-LOCK-v1 wal
|
|
File without changes
|
|
Binary file
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{"id":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"create","author":"IVfX9Gzfr7CeDfhmHLQgPqv1MtB6WoOlyQBKiKdOp1A","seq":1,"at":"2026-11-17T09:00:00.000Z","body":{"name":"party","creator_name":"alice","description":"The office Christmas party 2026: who is coming, where it is, what it costs, and what we still have to decide"},"sig":"o6d3VrmPPV0eFLu-Qh0lTVtLW-eVhJtGg-1dK9-aoWAxZqStjzCZtWyLiywNIPUuYharYeFMSWoGBKD5lPPMAA"}
|
|
2
|
+
{"id":"01a1e8bc-f4e0-7551-ac4d-484732f2a8f1","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"add_member","author":"IVfX9Gzfr7CeDfhmHLQgPqv1MtB6WoOlyQBKiKdOp1A","seq":2,"at":"2026-11-17T09:01:00.000Z","body":{"key":"p5iWm-Z1x7Ha6570vWZYaJiZ0-uQEDs2dkFGFNfE-nQ","name":"bob","role":"contributor","invite":{"id":"inv_bob","label":"for bob"},"about":{"agent":"claude-code","platform":"macOS arm64"}},"sig":"51nKLpdgag7de50zPR14XQjAdv5Xotlx5lsLcSjAZ0nmJKb0JsxgUVUgKBLi3u7YaBONPPo1B6ybmh1XPbbfAQ"}
|
|
3
|
+
{"id":"01a1e8bc-f4e0-7e4b-a374-72fa2f9c3512","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"add_member","author":"IVfX9Gzfr7CeDfhmHLQgPqv1MtB6WoOlyQBKiKdOp1A","seq":3,"at":"2026-11-17T09:01:00.000Z","body":{"key":"0vjZg9jNC_NB8fLYQQ-tf4AIjHCgO3yZjgdmvEJNd0U","name":"carol","role":"contributor","invite":{"id":"inv_carol","label":"for carol"},"about":{"agent":"claude-code","platform":"macOS arm64"}},"sig":"F-TD1zNoeW1woHvXadTwn-pNIPdnVh1wDvhxAsKHE5FOTLoHeGZ118cTUqSQ1__u-JIOrrXxQE1rpdRptGiKBg"}
|
|
4
|
+
{"id":"01a1e8c5-3240-7f43-88bd-40408e879b49","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"claim","author":"IVfX9Gzfr7CeDfhmHLQgPqv1MtB6WoOlyQBKiKdOp1A","seq":4,"at":"2026-11-17T09:10:00.000Z","body":{"node":"c_01a2112e-fc58-7034-9662-3cb344c85f96","text":"48 people are coming to the Christmas party, from the RSVP sheet that closed on 14 Nov","source":"RSVP sheet (closed 14 Nov)","about_from":"2026-11-14","about_to":"2026-11-14","supports":[],"contradicts":[],"replaces":[],"answers":[]},"sig":"khngko33r6DVMbq-_9ArzX-nTY3x_4IuQzRfY1QJn7Vxk5m2bZix1vjYszYIhltQUKMQ3BYbvs1MWZIkGV5FBg"}
|
|
5
|
+
{"id":"01a1e8c9-c620-7aed-880c-f6cd8e505370","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"question","author":"IVfX9Gzfr7CeDfhmHLQgPqv1MtB6WoOlyQBKiKdOp1A","seq":5,"at":"2026-11-17T09:15:00.000Z","body":{"node":"q_01a2112e-fc5f-799d-941c-d5bb00199171","text":"Which venue can take all of us on a Friday in December?","about":["c_01a2112e-fc58-7034-9662-3cb344c85f96"]},"sig":"3WvlwvK2Vs2joDBYE-n2gwXZyr983k8_d7a_upQSOg1eRl92dBTdUGJV03dgLKQuBxGabrt26KD7ufzebFNkBA"}
|
|
6
|
+
{"id":"01a1e917-9800-78ff-aa19-4cdf663c94a4","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"reply","author":"p5iWm-Z1x7Ha6570vWZYaJiZ0-uQEDs2dkFGFNfE-nQ","seq":1,"at":"2026-11-17T10:40:00.000Z","body":{"node":"r_01a2112e-fc64-7538-beba-9054da298aa9","text":"Riverside said yes on the phone. I'll get it in writing before we book.","question":"q_01a2112e-fc5f-799d-941c-d5bb00199171"},"sig":"y5dyQlaTB1Q70tx1STx9J1Xq5p3FSdUuqmv1BcecbPP8Eci_AA4Hj28NwdoHl-543NRSzOF2uYmFPBS3Cr5sCQ"}
|
|
7
|
+
{"id":"01a1e945-5ec0-73fb-8e62-97dd9c08dc2f","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"claim","author":"p5iWm-Z1x7Ha6570vWZYaJiZ0-uQEDs2dkFGFNfE-nQ","seq":2,"at":"2026-11-17T11:30:00.000Z","body":{"node":"c_01a2112e-fc66-763d-9c8c-dc3a1cfa00bc","text":"The Riverside Room can take the whole party on Friday 12 Dec","source":"phone call with the Riverside Room","about_from":"2026-12-12","about_to":"2026-12-12","supports":[],"contradicts":[],"replaces":[],"answers":[]},"sig":"FFjCatwoDWGV2fgqSjyzWYb7GaEQlCpJFOV0r4cgGEwgvFQGWibdv8d6CzgN-ouWYCqXro9yjZDmTZKfMhr2DA"}
|
|
8
|
+
{"id":"01a1e9d3-46e0-7900-9ccf-09083748751a","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"claim","author":"0vjZg9jNC_NB8fLYQQ-tf4AIjHCgO3yZjgdmvEJNd0U","seq":1,"at":"2026-11-17T14:05:00.000Z","body":{"node":"c_01a2112e-fc68-7572-a237-c2c8f4b96b02","text":"The Riverside Room's licence caps it at 40 seated, eight short of our 48","source":"Riverside Room premises licence, on the council's register","about_from":null,"about_to":null,"supports":["c_01a2112e-fc58-7034-9662-3cb344c85f96"],"contradicts":["c_01a2112e-fc66-763d-9c8c-dc3a1cfa00bc"],"replaces":[],"answers":[]},"sig":"ezGZ81QLM2S13SpSjxAfgp0j_vtpcAl-xCW9DXprdjXA_rS_bK_cG2lmsX5kNKa6A8S7S-9GLt6bPeCZTuBcCA"}
|
|
9
|
+
{"id":"01a1ea17-f100-7204-b5f3-59f99ee24f2d","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"claim","author":"p5iWm-Z1x7Ha6570vWZYaJiZ0-uQEDs2dkFGFNfE-nQ","seq":3,"at":"2026-11-17T15:20:00.000Z","body":{"node":"c_01a2112e-fc6b-70a9-9d76-f77029a649eb","text":"The budget is £2,400, which is £50 a head for 48","source":"finance: events budget 2026","about_from":null,"about_to":null,"supports":[],"contradicts":[],"replaces":[],"answers":[]},"sig":"zR2CLbLWx5IjzDMZVbpOvgTBlnkJaPHlWyT4BpKfIhllzgYcaGrYNen51ymPB7EteNTWKbhnSE5H5M-sYAvqAw"}
|
|
10
|
+
{"id":"01a1ea2a-4080-746a-b62c-d062c7a4c7d4","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"question","author":"IVfX9Gzfr7CeDfhmHLQgPqv1MtB6WoOlyQBKiKdOp1A","seq":6,"at":"2026-11-17T15:40:00.000Z","body":{"node":"q_01a2112e-fc6d-73f4-b189-184aa4ce350b","text":"Does the budget cover a venue hire fee as well as food?","about":["c_01a2112e-fc6b-70a9-9d76-f77029a649eb"]},"sig":"Ljbur_ct0n_ZEFK3pyub4YEy7X9HwclHJJpJIhj9qvJxUfMwhFROR1PaCB5TbGvoq_Je4R0-n-CPVfSpvwV-Bg"}
|
|
11
|
+
{"id":"01a1edfd-ddc0-74fb-a357-260a24014ca3","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"reply","author":"p5iWm-Z1x7Ha6570vWZYaJiZ0-uQEDs2dkFGFNfE-nQ","seq":4,"at":"2026-11-18T09:30:00.000Z","body":{"node":"r_01a2112e-fc70-7a61-920f-846ac4dc8e02","text":"Checking each venue's terms now. Hire fees are the sticking point; food alone fits.","question":"q_01a2112e-fc6d-73f4-b189-184aa4ce350b"},"sig":"DC4S0W_W_Nh9URxxpF-uTBrwX9Ccq-0N-iBYLoa0Sp-5P-uOegU-s5I3nsio3PP-Aw9GzG-ngS0GXzQZDk62Bw"}
|
|
12
|
+
{"id":"01a1ee19-5500-75f6-97e5-6f4623cabfc2","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"claim","author":"0vjZg9jNC_NB8fLYQQ-tf4AIjHCgO3yZjgdmvEJNd0U","seq":2,"at":"2026-11-18T10:00:00.000Z","body":{"node":"c_01a2112e-fc72-7357-b1b6-4d1aafe2f763","text":"The Orangery holds 60 and is free on Friday 19 Dec","source":"the Orangery's bookings page","about_from":"2026-12-19","about_to":"2026-12-19","supports":[],"contradicts":[],"replaces":[],"answers":[]},"sig":"v4C-LfHgmTbuYI7zVttnBiXdiMhjI0pm4SlGMe5RMVZcyYJ0465arJs7m5Adz-tJPlu09EpPjSVSyonQXIDuDg"}
|
|
13
|
+
{"id":"01a1ee2b-a480-7bf5-8662-c7bc58e5aaee","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"claim","author":"0vjZg9jNC_NB8fLYQQ-tf4AIjHCgO3yZjgdmvEJNd0U","seq":3,"at":"2026-11-18T10:20:00.000Z","body":{"node":"c_01a2112e-fc74-7945-a0d9-e8d9b20cf836","text":"The Orangery waives its hire fee at a £1,800 minimum spend on food and drink, which fits the £2,400 budget","source":"the Orangery's events pack","about_from":null,"about_to":null,"supports":["c_01a2112e-fc6b-70a9-9d76-f77029a649eb"],"contradicts":[],"replaces":[],"answers":["q_01a2112e-fc6d-73f4-b189-184aa4ce350b"]},"sig":"Rd-fwztdhb8fLrNyzjT05k_OIy1_XmwrO914l_7CLRrQdTbRu62yL096R8JZFVnpSJIKsyh9Iz2_PlNEjFg1BA"}
|
|
14
|
+
{"id":"01a1ee2c-8ee0-7fe6-8d1e-f73d22c0a53d","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"link","author":"0vjZg9jNC_NB8fLYQQ-tf4AIjHCgO3yZjgdmvEJNd0U","seq":4,"at":"2026-11-18T10:21:00.000Z","body":{"from":"c_01a2112e-fc72-7357-b1b6-4d1aafe2f763","relation":"SUPPORTS","to":"c_01a2112e-fc74-7945-a0d9-e8d9b20cf836"},"sig":"Vgbv1zGbQC5RdbOOZ-TNu2hDJCyxBb1ChhAIhDSxKUdlKHe3wMEOWtoejPgkgZa0Adj9vz9LbI7ZXllfI26KDw"}
|
|
15
|
+
{"id":"01a1ee8b-c5e0-7ff4-933a-46f5c1e1aafc","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"claim","author":"p5iWm-Z1x7Ha6570vWZYaJiZ0-uQEDs2dkFGFNfE-nQ","seq":5,"at":"2026-11-18T12:05:00.000Z","body":{"node":"c_01a2112e-fc7a-755f-bbfd-70f20c82d030","text":"Last year's party cost £2,300, so £2,400 is plenty","source":"finance: events spend 2025","about_from":"2025-12-01","about_to":"2025-12-31","supports":["c_01a2112e-fc6b-70a9-9d76-f77029a649eb"],"contradicts":[],"replaces":[],"answers":[]},"sig":"6oBbvimCpMF3ceikNqfQhSqWExQ5xJUfson3vTbGRg4QXkidmDBzU_KsoCMvg9jKF2ln6dMcOrguQ_2FxTG5BA"}
|
|
16
|
+
{"id":"01a1eea2-a940-73a1-8a83-c7c99dab3861","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"withdraw","author":"p5iWm-Z1x7Ha6570vWZYaJiZ0-uQEDs2dkFGFNfE-nQ","seq":6,"at":"2026-11-18T12:30:00.000Z","body":{"node":"c_01a2112e-fc7a-755f-bbfd-70f20c82d030","reason":"That figure was the summer party"},"sig":"spsKfQ3yubnbcNjXgcx2IDTXy4Y7j6_eUH5IkgqHMZAu0CK7XdTDSniKvbRQ6b0VbuwaqsppCcHfKiLHfdNOBA"}
|
|
17
|
+
{"id":"01a1ef8c-1ee0-7618-801f-492fd5bb59b1","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"claim","author":"p5iWm-Z1x7Ha6570vWZYaJiZ0-uQEDs2dkFGFNfE-nQ","seq":7,"at":"2026-11-18T16:45:00.000Z","body":{"node":"c_01a2112e-fc7e-7c9f-ae68-8b093a043683","text":"The party is at the Orangery on Friday 19 Dec, not the Riverside Room","source":null,"about_from":"2026-12-19","about_to":"2026-12-19","supports":["c_01a2112e-fc74-7945-a0d9-e8d9b20cf836"],"contradicts":[],"replaces":["c_01a2112e-fc66-763d-9c8c-dc3a1cfa00bc"],"answers":["q_01a2112e-fc5f-799d-941c-d5bb00199171"]},"sig":"h9rMXxiqg0l99i-K9cA1K2OrpVdlG9zM6YzM6DUHMRI6NB-35ETAW3l2XkSjc_MUjuyV8KkNCdRDrgMmLFyoCQ"}
|
|
18
|
+
{"id":"01a1f308-c280-7838-b062-146173eb227e","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"question","author":"IVfX9Gzfr7CeDfhmHLQgPqv1MtB6WoOlyQBKiKdOp1A","seq":7,"at":"2026-11-19T09:00:00.000Z","body":{"node":"q_01a2112e-fc82-7547-b76e-58285cd03275","text":"Should partners be invited, and is there budget for them?","about":[]},"sig":"p5xtIe9Nm1HWsnPFFFgMNCGSQL8HVKdcUfUVDDtLhzhaQZfOZrivvOW4or_Bi2m2hgV9SfuE-PCh8086K4sBBA"}
|
|
19
|
+
{"id":"01a1f32d-6180-72b5-b591-910fad279196","graph":"01a1e8bc-0a80-70ca-90ff-71f2a793d217","kind":"reply","author":"0vjZg9jNC_NB8fLYQQ-tf4AIjHCgO3yZjgdmvEJNd0U","seq":5,"at":"2026-11-19T09:40:00.000Z","body":{"node":"r_01a2112e-fc84-7b26-a16d-5798f767e04c","text":"Finance can't stretch to partners this year. A January drinks evening for partners might work; I'll ask.","question":"q_01a2112e-fc82-7547-b76e-58285cd03275"},"sig":"CNPI7WGLig4sYBvdgS_mgQFqGG04tCdPCG5L4V_douFCowYRaMlIqUUm3ufFxioOvFGYbPd_rON-F443kE7wBw"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"on":false}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Working with a Claims and Questions graph
|
|
2
|
+
|
|
3
|
+
This graph holds what a group knows about a piece of work. Other people and
|
|
4
|
+
their agents read and write the same graph, so record things they would want
|
|
5
|
+
to know, and write so that someone without this conversation can understand
|
|
6
|
+
them.
|
|
7
|
+
|
|
8
|
+
## What to record
|
|
9
|
+
|
|
10
|
+
- **A claim** is one statement someone believes is true: a finding, a decision,
|
|
11
|
+
a fact about the system, a measurement, a commitment. Keep it to one or two
|
|
12
|
+
sentences, and make it stand alone. Write "The orders database pool hit its
|
|
13
|
+
limit of 50 connections at 13:57 on 10 Nov", not "the pool ran out".
|
|
14
|
+
- **A question** is something the group needs to find out. Record it when the
|
|
15
|
+
person raises it or when you hit an unknown that matters to others.
|
|
16
|
+
- Add a `source` when there is one: a URL, a file path, a ticket, a meeting, a
|
|
17
|
+
person.
|
|
18
|
+
- Use `about_from` and `about_to` when the claim is about a period ("the
|
|
19
|
+
outages between 1 and 7 November"). Leave them out for timeless claims.
|
|
20
|
+
|
|
21
|
+
Don't record chit-chat, your own plans for this conversation, or anything the
|
|
22
|
+
person asked you to keep private. Don't record secrets, credentials or personal
|
|
23
|
+
data about other people.
|
|
24
|
+
|
|
25
|
+
## Before you add
|
|
26
|
+
|
|
27
|
+
1. `search` for the topic first. If a matching claim exists, link to it
|
|
28
|
+
instead of adding a duplicate.
|
|
29
|
+
2. If your claim is evidence for an existing one, use `supports`.
|
|
30
|
+
3. If it can't be true at the same time as an existing one, use `contradicts`.
|
|
31
|
+
Don't decide who is right. The conflict is visible to everyone until a
|
|
32
|
+
person settles it.
|
|
33
|
+
4. If it corrects or updates an existing claim, use `replaces`. Don't
|
|
34
|
+
withdraw. The old claim stays in the history, and `beliefs` stops listing
|
|
35
|
+
it.
|
|
36
|
+
5. If it answers an open question, use `answers`.
|
|
37
|
+
|
|
38
|
+
Tell the person what you recorded, with the ids, in one short line.
|
|
39
|
+
|
|
40
|
+
## Threads and answers
|
|
41
|
+
|
|
42
|
+
Each question has a thread of replies, where the group works it out.
|
|
43
|
+
|
|
44
|
+
- `thread` reads a question with its replies and any answering claims. Read it
|
|
45
|
+
before you reply or answer.
|
|
46
|
+
- `reply` adds a message to the thread: a partial finding, an idea to check, a
|
|
47
|
+
question back. Keep replies short and say who or what they come from.
|
|
48
|
+
- A reply never closes a question. When the person gives you an answer (they
|
|
49
|
+
may paste it, or pick a reply from the thread), paraphrase it as a claim that
|
|
50
|
+
stands alone, and record it with `add_claim` and `answers: [question id]`.
|
|
51
|
+
Credit the reply in `source` if it came from one. Don't copy a reply word for
|
|
52
|
+
word as the claim, and don't answer for the person: ask if it isn't settled.
|
|
53
|
+
|
|
54
|
+
## Reading the graph
|
|
55
|
+
|
|
56
|
+
| To find | Use |
|
|
57
|
+
|---|---|
|
|
58
|
+
| Anything about a topic | `search` |
|
|
59
|
+
| What the group believes now, or believed at some moment | `beliefs` (with `at` for the past) |
|
|
60
|
+
| What still needs finding out | `open_questions` |
|
|
61
|
+
| What's been said about a question | `thread` |
|
|
62
|
+
| Disagreements to settle | `conflicts` |
|
|
63
|
+
| The full story of one item | `history` |
|
|
64
|
+
| What changed since you last looked | `recent` |
|
|
65
|
+
|
|
66
|
+
At the start of a session on a shared graph, call `recent` with a `since` of
|
|
67
|
+
the last time you looked, or `open_questions`, so you work from what others
|
|
68
|
+
have found.
|
|
69
|
+
|
|
70
|
+
Every read tool takes `at`, an ISO 8601 time, to see the graph as it stood
|
|
71
|
+
then. Use it for questions like "what did we think on Tuesday?". It reads
|
|
72
|
+
record time: when the graph learned something, not when that thing happened.
|
|
73
|
+
`about_from` and `about_to` describe when it happened.
|
|
74
|
+
|
|
75
|
+
## Ids
|
|
76
|
+
|
|
77
|
+
Ids look like `c_k3m9p2qx` (claims), `q_7hd2mxwa` (questions) and `r_…` (replies). Copy them
|
|
78
|
+
exactly from tool results. Never invent one.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
name: temporal-claims
|
|
2
|
+
version: 1
|
|
3
|
+
title: Claims and Questions
|
|
4
|
+
description: >-
|
|
5
|
+
What a group knows about a piece of work, as dated claims and open questions.
|
|
6
|
+
Claims support, contradict or replace each other, and answer questions.
|
|
7
|
+
A question has a thread of replies, where people work it out before a
|
|
8
|
+
claim answers it.
|
|
9
|
+
Nothing is deleted: a replaced or withdrawn claim stays in the graph, so you
|
|
10
|
+
can ask what the group believed at any moment.
|
|
11
|
+
|
|
12
|
+
nodes:
|
|
13
|
+
Claim:
|
|
14
|
+
description: >-
|
|
15
|
+
One statement someone believes is true, in one or two sentences. It may be
|
|
16
|
+
about a period of time (about_from..about_to, the valid time).
|
|
17
|
+
key: id
|
|
18
|
+
properties:
|
|
19
|
+
id: { type: id, required: true }
|
|
20
|
+
text: { type: string, required: true, description: The statement itself }
|
|
21
|
+
source: { type: string, description: Where it came from (a URL, a file, a meeting, a person) }
|
|
22
|
+
about_from: { type: date, description: First day the statement is about }
|
|
23
|
+
about_to: { type: date, description: Last day the statement is about }
|
|
24
|
+
recorded_at: { type: datetime, required: true, description: When the graph learned it (record time) }
|
|
25
|
+
recorded_by: { type: string, required: true, description: The author's name }
|
|
26
|
+
author: { type: string, description: The author's public key (their machine) }
|
|
27
|
+
withdrawn_at: { type: datetime, description: When its author took it back }
|
|
28
|
+
withdrawn_by: { type: string }
|
|
29
|
+
withdraw_reason: { type: string }
|
|
30
|
+
|
|
31
|
+
Question:
|
|
32
|
+
description: >-
|
|
33
|
+
Something the group needs to find out. It is answered when a current
|
|
34
|
+
claim ANSWERS it.
|
|
35
|
+
key: id
|
|
36
|
+
properties:
|
|
37
|
+
id: { type: id, required: true }
|
|
38
|
+
text: { type: string, required: true }
|
|
39
|
+
recorded_at: { type: datetime, required: true }
|
|
40
|
+
recorded_by: { type: string, required: true, description: The author's name }
|
|
41
|
+
author: { type: string, description: The author's public key (their machine) }
|
|
42
|
+
withdrawn_at: { type: datetime }
|
|
43
|
+
withdrawn_by: { type: string }
|
|
44
|
+
withdraw_reason: { type: string }
|
|
45
|
+
|
|
46
|
+
Reply:
|
|
47
|
+
description: >-
|
|
48
|
+
One message in a question's thread: what someone (through their agent)
|
|
49
|
+
said about it, before or instead of an answer. A reply never answers the
|
|
50
|
+
question itself: a claim does, once the thread has settled it.
|
|
51
|
+
key: id
|
|
52
|
+
properties:
|
|
53
|
+
id: { type: id, required: true }
|
|
54
|
+
text: { type: string, required: true }
|
|
55
|
+
recorded_at: { type: datetime, required: true }
|
|
56
|
+
recorded_by: { type: string, required: true, description: The author's name }
|
|
57
|
+
author: { type: string, description: The author's public key (their machine) }
|
|
58
|
+
withdrawn_at: { type: datetime }
|
|
59
|
+
withdrawn_by: { type: string }
|
|
60
|
+
withdraw_reason: { type: string }
|
|
61
|
+
|
|
62
|
+
relationships:
|
|
63
|
+
SUPPORTS:
|
|
64
|
+
description: The first claim is evidence for the second.
|
|
65
|
+
from: [Claim]
|
|
66
|
+
to: [Claim]
|
|
67
|
+
CONTRADICTS:
|
|
68
|
+
description: The two claims cannot both be true. A person should settle it.
|
|
69
|
+
from: [Claim]
|
|
70
|
+
to: [Claim]
|
|
71
|
+
REPLACES:
|
|
72
|
+
description: >-
|
|
73
|
+
The first claim is the newer version of the second. From the moment it was
|
|
74
|
+
recorded, the second is no longer current.
|
|
75
|
+
from: [Claim]
|
|
76
|
+
to: [Claim]
|
|
77
|
+
ANSWERS:
|
|
78
|
+
description: The claim answers the question.
|
|
79
|
+
from: [Claim]
|
|
80
|
+
to: [Question]
|
|
81
|
+
ABOUT:
|
|
82
|
+
description: The question asks about this claim or question.
|
|
83
|
+
from: [Question]
|
|
84
|
+
to: [Claim, Question]
|
|
85
|
+
REPLIES_TO:
|
|
86
|
+
description: The reply is part of this question's thread.
|
|
87
|
+
from: [Reply]
|
|
88
|
+
to: [Question]
|
|
89
|
+
|
|
90
|
+
# Every relationship also carries recorded_at and recorded_by, so the graph
|
|
91
|
+
# can be read as it stood at any time.
|
|
92
|
+
|
|
93
|
+
search:
|
|
94
|
+
labels: [Claim, Question]
|
|
95
|
+
text: text
|
|
96
|
+
|
|
97
|
+
time:
|
|
98
|
+
recorded: recorded_at
|
|
99
|
+
ended: withdrawn_at
|