Skip to content

Commit 6109145

Browse files
committed
Sync search packet cache schema
1 parent 3d6959f commit 6109145

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

schemas/semantic-search-packet.v1.schema.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@
144144
"runtimeCost": {
145145
"$ref": "#/$defs/runtimeCost"
146146
},
147+
"cache": {
148+
"$ref": "#/$defs/cache"
149+
},
147150
"searchSynthesis": {
148151
"$ref": "#/$defs/searchSynthesis"
149152
},
@@ -1186,6 +1189,43 @@
11861189
}
11871190
}
11881191
},
1192+
"cache": {
1193+
"type": "object",
1194+
"description": "Provider-owned cache invalidation facts for replay-safe search packets. Providers decide which workspace files affect the packet; clients only validate and compare these hashes.",
1195+
"additionalProperties": false,
1196+
"required": [
1197+
"fileHashes"
1198+
],
1199+
"properties": {
1200+
"fileHashes": {
1201+
"type": "array",
1202+
"minItems": 1,
1203+
"items": {
1204+
"$ref": "#/$defs/fileHash"
1205+
}
1206+
},
1207+
"rawSourceStored": {
1208+
"const": false
1209+
}
1210+
}
1211+
},
1212+
"fileHash": {
1213+
"type": "object",
1214+
"additionalProperties": false,
1215+
"required": [
1216+
"path",
1217+
"sha256"
1218+
],
1219+
"properties": {
1220+
"path": {
1221+
"$ref": "#/$defs/projectPath"
1222+
},
1223+
"sha256": {
1224+
"type": "string",
1225+
"pattern": "^[a-f0-9]{64}$"
1226+
}
1227+
}
1228+
},
11891229
"queryScope": {
11901230
"type": "object",
11911231
"additionalProperties": false,

0 commit comments

Comments
 (0)