@gmickel/gno 1.27.1 → 1.29.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.
- package/README.md +46 -20
- package/assets/skill/SKILL.md +59 -1
- package/browser-extension/artifacts/gno-browser-clipper-v1.29.0.zip +0 -0
- package/browser-extension/artifacts/gno-browser-clipper-v1.29.0.zip.sha256 +1 -0
- package/browser-extension/dist/chunk-b2zm0jjd.js +50 -0
- package/browser-extension/dist/manifest.json +1 -1
- package/browser-extension/dist/preview.html +1 -1
- package/browser-extension/dist/service-worker.js +6 -6
- package/package.json +2 -2
- package/spec/cli.md +82 -5
- package/spec/db/schema.sql +31 -0
- package/spec/mcp.md +71 -0
- package/spec/output-schemas/ask.schema.json +156 -1
- package/spec/output-schemas/browser-clip-preview.schema.json +30 -0
- package/spec/output-schemas/collection-egress-check.schema.json +91 -0
- package/spec/output-schemas/collection-egress-policy-set.schema.json +56 -0
- package/spec/output-schemas/collection-egress-policy.schema.json +41 -0
- package/spec/output-schemas/context-capsule-v1.schema.json +183 -3
- package/spec/output-schemas/context-capsule-verification.schema.json +1 -1
- package/spec/output-schemas/egress-audit-management.schema.json +88 -0
- package/spec/output-schemas/get.schema.json +94 -0
- package/spec/output-schemas/mcp-http-error.schema.json +113 -2
- package/spec/output-schemas/mcp-job-status.schema.json +28 -0
- package/spec/output-schemas/multi-get.schema.json +128 -0
- package/spec/output-schemas/publish-artifact.schema.json +32 -0
- package/spec/output-schemas/record-import.schema.json +223 -0
- package/spec/output-schemas/retrieval-trace-common.schema.json +31 -0
- package/spec/output-schemas/retrieval-trace-export.schema.json +3 -0
- package/spec/output-schemas/retrieval-trace-qrels.schema.json +3 -0
- package/spec/output-schemas/retrieval-trace-summary.schema.json +4 -0
- package/spec/output-schemas/search-result.schema.json +94 -0
- package/spec/output-schemas/search-results.schema.json +155 -0
- package/spec/project-profile.schema.json +66 -0
- package/src/app/context-format.ts +1 -1
- package/src/app/context-runtime-contract.ts +16 -7
- package/src/cli/commands/ask.ts +7 -0
- package/src/cli/commands/collection/index.ts +5 -0
- package/src/cli/commands/collection/policy.ts +126 -0
- package/src/cli/commands/context-build.ts +5 -0
- package/src/cli/commands/daemon.ts +45 -3
- package/src/cli/commands/egress-audit.ts +68 -0
- package/src/cli/commands/embed.ts +2 -0
- package/src/cli/commands/get.ts +12 -2
- package/src/cli/commands/index-cmd.ts +13 -0
- package/src/cli/commands/multi-get.ts +9 -2
- package/src/cli/commands/query.ts +12 -0
- package/src/cli/commands/replay.ts +13 -3
- package/src/cli/commands/shared.ts +28 -0
- package/src/cli/commands/update.ts +5 -0
- package/src/cli/commands/vsearch.ts +3 -1
- package/src/cli/program.ts +127 -0
- package/src/config/index.ts +9 -0
- package/src/config/project-profile.ts +2 -0
- package/src/config/types.ts +66 -0
- package/src/converters/adapters/browser-export/adapter.ts +199 -0
- package/src/converters/adapters/browser-export/formats.ts +358 -0
- package/src/converters/adapters/email/adapter.ts +429 -0
- package/src/converters/adapters/email/html.ts +162 -0
- package/src/converters/adapters/email/mime.ts +454 -0
- package/src/converters/adapters/email/parameters.ts +77 -0
- package/src/converters/adapters/ical/adapter.ts +475 -0
- package/src/converters/adapters/ical/recurrence.ts +186 -0
- package/src/converters/adapters/jsonl/adapter.ts +238 -0
- package/src/converters/adapters/jsonl/config.ts +105 -0
- package/src/converters/adapters/shared/html-text.ts +165 -0
- package/src/converters/adapters/shared/record-utils.ts +79 -0
- package/src/converters/adapters/shared/utf8-lines.ts +141 -0
- package/src/converters/adapters/transcript/adapter.ts +295 -0
- package/src/converters/adapters/transcript/json.ts +184 -0
- package/src/converters/adapters/transcript/model.ts +171 -0
- package/src/converters/adapters/transcript/text.ts +58 -0
- package/src/converters/adapters/transcript/timed.ts +152 -0
- package/src/converters/index.ts +11 -1
- package/src/converters/mime.ts +8 -0
- package/src/converters/pipeline.ts +15 -1
- package/src/converters/registry.ts +37 -1
- package/src/converters/types.ts +136 -0
- package/src/core/browser-clip.ts +16 -1
- package/src/core/collection-egress-policy-projection.ts +28 -0
- package/src/core/collection-egress-policy-service.ts +443 -0
- package/src/core/collection-egress-policy-validation.ts +242 -0
- package/src/core/config-mutation.ts +31 -19
- package/src/core/context-capsule-schema.ts +198 -1
- package/src/core/context-capsule-validation.ts +4 -4
- package/src/core/context-capsule-verification.ts +5 -1
- package/src/core/context-capsule.ts +177 -112
- package/src/core/context-evidence.ts +93 -15
- package/src/core/destination-classifier.ts +402 -0
- package/src/core/document-capabilities.ts +12 -0
- package/src/core/egress-audit.ts +239 -0
- package/src/core/egress-authorization.ts +50 -0
- package/src/core/egress-enforcement.ts +264 -0
- package/src/core/egress-policy.ts +440 -0
- package/src/core/egress-provenance.ts +336 -0
- package/src/core/job-manager.ts +37 -0
- package/src/core/network-boundary-inventory.ts +261 -0
- package/src/core/project-profile-apply-state.ts +5 -0
- package/src/core/project-profile.ts +4 -0
- package/src/core/record-metadata.ts +49 -0
- package/src/core/retrieval-qrels.ts +6 -0
- package/src/core/retrieval-replay.ts +18 -4
- package/src/core/retrieval-trace-export.ts +23 -4
- package/src/core/retrieval-trace-management-helpers.ts +1 -0
- package/src/core/retrieval-trace-management-types.ts +3 -0
- package/src/core/retrieval-trace-management.ts +9 -1
- package/src/core/retrieval-trace-session.ts +94 -0
- package/src/core/retrieval-trace.ts +22 -0
- package/src/ingestion/record-adapter-canonical.ts +433 -0
- package/src/ingestion/record-adapter.ts +448 -0
- package/src/ingestion/record-container.ts +704 -0
- package/src/ingestion/record-path.ts +20 -0
- package/src/ingestion/record-sync.ts +70 -0
- package/src/ingestion/sync.ts +243 -36
- package/src/ingestion/types.ts +71 -1
- package/src/ingestion/walker.ts +31 -11
- package/src/llm/errors.ts +10 -0
- package/src/llm/http-inference.ts +175 -0
- package/src/llm/http-policy.ts +537 -0
- package/src/llm/httpEmbedding.ts +47 -28
- package/src/llm/httpGeneration.ts +31 -18
- package/src/llm/httpRerank.ts +30 -18
- package/src/llm/index.ts +1 -0
- package/src/llm/nodeLlamaCpp/adapter.ts +55 -20
- package/src/llm/pinned-http-connection.ts +177 -0
- package/src/mcp/context.ts +53 -1
- package/src/mcp/http-egress.ts +220 -0
- package/src/mcp/http-security.ts +32 -21
- package/src/mcp/http-session.ts +13 -2
- package/src/mcp/http-transport.ts +96 -6
- package/src/mcp/sync-egress.ts +24 -0
- package/src/mcp/tools/add-collection.ts +4 -0
- package/src/mcp/tools/ask.ts +1 -1
- package/src/mcp/tools/context.ts +9 -2
- package/src/mcp/tools/egress.ts +247 -0
- package/src/mcp/tools/embed.ts +1 -0
- package/src/mcp/tools/get.ts +10 -2
- package/src/mcp/tools/index-cmd.ts +7 -0
- package/src/mcp/tools/index.ts +98 -0
- package/src/mcp/tools/multi-get.ts +9 -2
- package/src/mcp/tools/query.ts +10 -0
- package/src/mcp/tools/remove-collection.ts +4 -0
- package/src/mcp/tools/sync.ts +6 -0
- package/src/mcp/tools/trace.ts +7 -1
- package/src/mcp/tools/vsearch.ts +1 -0
- package/src/mcp/tools/workspace-write.ts +2 -0
- package/src/pipeline/egress-lineage.ts +124 -0
- package/src/pipeline/filters.ts +1 -1
- package/src/pipeline/graph-retrieval.ts +7 -4
- package/src/pipeline/hybrid.ts +21 -4
- package/src/pipeline/result-context.ts +12 -4
- package/src/pipeline/search.ts +23 -4
- package/src/pipeline/types.ts +6 -0
- package/src/pipeline/vsearch.ts +67 -28
- package/src/publish/artifact.ts +31 -3
- package/src/publish/export-service.ts +25 -0
- package/src/sdk/client.ts +119 -2
- package/src/sdk/documents.ts +13 -5
- package/src/sdk/embed.ts +1 -0
- package/src/sdk/types.ts +33 -0
- package/src/serve/browse-tree.ts +4 -2
- package/src/serve/clipper-capture.ts +5 -1
- package/src/serve/closed-json.ts +61 -0
- package/src/serve/config-sync.ts +4 -1
- package/src/serve/context.ts +1 -0
- package/src/serve/doc-events.ts +110 -39
- package/src/serve/public/components/CollectionEgressCheckPanel.tsx +411 -0
- package/src/serve/public/components/CollectionEgressPolicyEditor.tsx +78 -0
- package/src/serve/public/components/CollectionModelDialog.tsx +93 -9
- package/src/serve/public/components/EgressAuditPanel.tsx +278 -0
- package/src/serve/public/globals.built.css +1 -1
- package/src/serve/public/pages/Collections.tsx +3 -0
- package/src/serve/resident-request.ts +80 -3
- package/src/serve/resident-runtime.ts +63 -1
- package/src/serve/routes/api.ts +237 -65
- package/src/serve/routes/clipper.ts +64 -1
- package/src/serve/routes/mcp.ts +6 -0
- package/src/serve/routes/traces.ts +27 -4
- package/src/serve/server.ts +118 -7
- package/src/store/migrations/022-record-export-lineage.ts +42 -0
- package/src/store/migrations/023-collection-egress-policy.ts +61 -0
- package/src/store/migrations/024-egress-derived-lineage.ts +121 -0
- package/src/store/migrations/025-collection-egress-policy-revision.ts +40 -0
- package/src/store/migrations/index.ts +8 -0
- package/src/store/retrieval-trace-codec.ts +15 -0
- package/src/store/sqlite/adapter.ts +284 -14
- package/src/store/sqlite/change-journal-store.ts +41 -2
- package/src/store/sqlite/egress-audit-store.ts +485 -0
- package/src/store/sqlite/retrieval-trace-management-store.ts +47 -6
- package/src/store/sqlite/retrieval-trace-retention.ts +2 -0
- package/src/store/sqlite/retrieval-trace-rows.ts +8 -1
- package/src/store/sqlite/retrieval-trace-store.ts +104 -5
- package/src/store/types.ts +166 -1
- package/browser-extension/artifacts/gno-browser-clipper-v1.27.1.zip +0 -0
- package/browser-extension/artifacts/gno-browser-clipper-v1.27.1.zip.sha256 +0 -1
- package/browser-extension/dist/chunk-vn5f663b.js +0 -50
|
@@ -74,6 +74,34 @@
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
+
},
|
|
78
|
+
"files": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": {
|
|
81
|
+
"$ref": "#/$defs/fileSyncResult"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"fileSyncResult": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"required": ["relPath", "status"],
|
|
90
|
+
"properties": {
|
|
91
|
+
"relPath": { "type": "string" },
|
|
92
|
+
"status": {
|
|
93
|
+
"enum": ["added", "updated", "unchanged", "error", "skipped"]
|
|
94
|
+
},
|
|
95
|
+
"docid": { "type": "string" },
|
|
96
|
+
"mirrorHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
97
|
+
"contentType": { "type": "string" },
|
|
98
|
+
"contentTypeSource": {
|
|
99
|
+
"enum": ["frontmatter-type", "prefix", "path-ext", "fallback"]
|
|
100
|
+
},
|
|
101
|
+
"errorCode": { "type": "string" },
|
|
102
|
+
"errorMessage": { "type": "string" },
|
|
103
|
+
"recordImport": {
|
|
104
|
+
"$ref": "gno://schemas/record-import@1.0"
|
|
77
105
|
}
|
|
78
106
|
}
|
|
79
107
|
},
|
|
@@ -45,6 +45,134 @@
|
|
|
45
45
|
"mime": { "type": "string" },
|
|
46
46
|
"ext": { "type": "string", "pattern": "^\\.[a-zA-Z0-9]+$" }
|
|
47
47
|
}
|
|
48
|
+
},
|
|
49
|
+
"record": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"description": "Bounded logical-record provenance for a file/export source",
|
|
53
|
+
"required": ["recordKey", "sourceLocator", "anchors", "adapter"],
|
|
54
|
+
"properties": {
|
|
55
|
+
"recordKey": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
56
|
+
"sourceLocator": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"minLength": 1,
|
|
59
|
+
"maxLength": 512
|
|
60
|
+
},
|
|
61
|
+
"anchors": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"maxItems": 256,
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": ["kind", "value"],
|
|
68
|
+
"properties": {
|
|
69
|
+
"kind": {
|
|
70
|
+
"enum": [
|
|
71
|
+
"line",
|
|
72
|
+
"cue",
|
|
73
|
+
"timestamp",
|
|
74
|
+
"message",
|
|
75
|
+
"event",
|
|
76
|
+
"record"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"value": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 1,
|
|
82
|
+
"maxLength": 512
|
|
83
|
+
},
|
|
84
|
+
"endValue": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"maxLength": 512
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"adapter": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"required": ["id", "version", "fingerprint"],
|
|
96
|
+
"properties": {
|
|
97
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
98
|
+
"version": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"minLength": 1,
|
|
101
|
+
"maxLength": 64
|
|
102
|
+
},
|
|
103
|
+
"fingerprint": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"author": { "type": "string", "maxLength": 2048 },
|
|
110
|
+
"participants": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"maxItems": 256,
|
|
113
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 2048 }
|
|
114
|
+
},
|
|
115
|
+
"categories": {
|
|
116
|
+
"type": "array",
|
|
117
|
+
"maxItems": 256,
|
|
118
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 512 }
|
|
119
|
+
},
|
|
120
|
+
"dateFields": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"maxProperties": 256,
|
|
123
|
+
"propertyNames": { "type": "string", "maxLength": 128 },
|
|
124
|
+
"additionalProperties": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1,
|
|
127
|
+
"maxLength": 256
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"messageId": { "type": "string", "maxLength": 2048 },
|
|
131
|
+
"inReplyTo": { "type": "string", "maxLength": 2048 },
|
|
132
|
+
"references": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"maxItems": 256,
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"minLength": 1,
|
|
138
|
+
"maxLength": 2048
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"threadId": { "type": "string", "maxLength": 2048 },
|
|
142
|
+
"eventId": { "type": "string", "maxLength": 2048 },
|
|
143
|
+
"sessionId": { "type": "string", "maxLength": 2048 },
|
|
144
|
+
"attachments": {
|
|
145
|
+
"type": "array",
|
|
146
|
+
"maxItems": 256,
|
|
147
|
+
"items": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"additionalProperties": false,
|
|
150
|
+
"required": ["name"],
|
|
151
|
+
"properties": {
|
|
152
|
+
"name": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"minLength": 1,
|
|
155
|
+
"maxLength": 512
|
|
156
|
+
},
|
|
157
|
+
"mime": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"minLength": 1,
|
|
160
|
+
"maxLength": 256
|
|
161
|
+
},
|
|
162
|
+
"bytes": {
|
|
163
|
+
"type": "integer",
|
|
164
|
+
"minimum": 0,
|
|
165
|
+
"maximum": 9007199254740991
|
|
166
|
+
},
|
|
167
|
+
"disposition": { "enum": ["inline", "attachment"] },
|
|
168
|
+
"sha256": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
48
176
|
}
|
|
49
177
|
}
|
|
50
178
|
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"required": ["version", "source", "exportedAt", "spaces"],
|
|
14
14
|
"properties": {
|
|
15
15
|
"version": { "const": 1 },
|
|
16
|
+
"egressLineage": { "$ref": "#/definitions/egressLineage" },
|
|
16
17
|
"source": { "$ref": "#/definitions/slug" },
|
|
17
18
|
"exportedAt": { "type": "string", "format": "date-time" },
|
|
18
19
|
"spaces": {
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"required": ["version", "source", "exportedAt", "spaces"],
|
|
34
35
|
"properties": {
|
|
35
36
|
"version": { "const": 2 },
|
|
37
|
+
"egressLineage": { "$ref": "#/definitions/egressLineage" },
|
|
36
38
|
"source": { "$ref": "#/definitions/slug" },
|
|
37
39
|
"exportedAt": { "type": "string", "format": "date-time" },
|
|
38
40
|
"spaces": {
|
|
@@ -51,6 +53,35 @@
|
|
|
51
53
|
"type": "string",
|
|
52
54
|
"pattern": "^[a-f0-9]{64}$"
|
|
53
55
|
},
|
|
56
|
+
"egressLineage": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": false,
|
|
59
|
+
"required": ["effectivePolicy", "digest", "sources"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"effectivePolicy": { "enum": ["local_only", "lan", "remote"] },
|
|
62
|
+
"digest": { "$ref": "#/definitions/hash" },
|
|
63
|
+
"sources": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"minItems": 1,
|
|
66
|
+
"uniqueItems": true,
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"required": ["collection", "policy", "source"],
|
|
71
|
+
"properties": {
|
|
72
|
+
"collection": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
|
|
75
|
+
},
|
|
76
|
+
"policy": { "enum": ["local_only", "lan", "remote"] },
|
|
77
|
+
"source": {
|
|
78
|
+
"enum": ["explicit", "config_default", "legacy_default"]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
54
85
|
"docid": {
|
|
55
86
|
"type": "string",
|
|
56
87
|
"pattern": "^#[a-f0-9]{8}$"
|
|
@@ -145,6 +176,7 @@
|
|
|
145
176
|
"properties": {
|
|
146
177
|
"schemaVersion": { "const": "1.0" },
|
|
147
178
|
"projectionRevision": { "$ref": "#/definitions/hash" },
|
|
179
|
+
"egressLineage": { "$ref": "#/definitions/egressLineage" },
|
|
148
180
|
"generatedAt": { "type": "string", "format": "date-time" },
|
|
149
181
|
"visibility": { "const": "public" },
|
|
150
182
|
"capabilities": {
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "gno://schemas/record-import@1.0",
|
|
4
|
+
"title": "GNO Record Import Receipt",
|
|
5
|
+
"description": "Bounded reconciliation receipt for one multi-record export container.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"adapterId",
|
|
10
|
+
"adapterVersion",
|
|
11
|
+
"adapterFingerprint",
|
|
12
|
+
"snapshotState",
|
|
13
|
+
"authoritative",
|
|
14
|
+
"stoppedByCap",
|
|
15
|
+
"sourceBytesRead",
|
|
16
|
+
"records",
|
|
17
|
+
"items",
|
|
18
|
+
"itemsTruncated",
|
|
19
|
+
"warnings",
|
|
20
|
+
"failures"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"adapterId": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
24
|
+
"adapterVersion": { "type": "string", "minLength": 1, "maxLength": 64 },
|
|
25
|
+
"adapterFingerprint": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
28
|
+
},
|
|
29
|
+
"egressLineage": { "$ref": "#/$defs/egressLineage" },
|
|
30
|
+
"snapshotState": { "enum": ["complete", "partial"] },
|
|
31
|
+
"authoritative": { "type": "boolean" },
|
|
32
|
+
"stoppedByCap": { "type": "boolean" },
|
|
33
|
+
"sourceBytesRead": {
|
|
34
|
+
"type": "integer",
|
|
35
|
+
"minimum": 0
|
|
36
|
+
},
|
|
37
|
+
"records": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": [
|
|
41
|
+
"accepted",
|
|
42
|
+
"added",
|
|
43
|
+
"updated",
|
|
44
|
+
"reactivated",
|
|
45
|
+
"unchanged",
|
|
46
|
+
"deactivated",
|
|
47
|
+
"preserved",
|
|
48
|
+
"failed"
|
|
49
|
+
],
|
|
50
|
+
"properties": {
|
|
51
|
+
"accepted": { "type": "integer", "minimum": 0 },
|
|
52
|
+
"added": { "type": "integer", "minimum": 0 },
|
|
53
|
+
"updated": { "type": "integer", "minimum": 0 },
|
|
54
|
+
"reactivated": { "type": "integer", "minimum": 0 },
|
|
55
|
+
"unchanged": { "type": "integer", "minimum": 0 },
|
|
56
|
+
"deactivated": { "type": "integer", "minimum": 0 },
|
|
57
|
+
"preserved": { "type": "integer", "minimum": 0 },
|
|
58
|
+
"failed": { "type": "integer", "minimum": 0 }
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"maxItems": 1000,
|
|
64
|
+
"items": { "$ref": "#/$defs/item" }
|
|
65
|
+
},
|
|
66
|
+
"itemsTruncated": {
|
|
67
|
+
"type": "integer",
|
|
68
|
+
"minimum": 0
|
|
69
|
+
},
|
|
70
|
+
"warnings": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"maxItems": 1,
|
|
73
|
+
"items": { "$ref": "#/$defs/warning" }
|
|
74
|
+
},
|
|
75
|
+
"failures": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"maxItems": 1000,
|
|
78
|
+
"items": { "$ref": "#/$defs/failure" }
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"$defs": {
|
|
82
|
+
"egressLineage": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"required": ["effectivePolicy", "digest", "sources"],
|
|
86
|
+
"properties": {
|
|
87
|
+
"effectivePolicy": { "enum": ["local_only", "lan", "remote"] },
|
|
88
|
+
"digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
89
|
+
"sources": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"minItems": 1,
|
|
92
|
+
"uniqueItems": true,
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"additionalProperties": false,
|
|
96
|
+
"required": ["collection", "policy", "source"],
|
|
97
|
+
"properties": {
|
|
98
|
+
"collection": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
|
|
101
|
+
},
|
|
102
|
+
"policy": { "enum": ["local_only", "lan", "remote"] },
|
|
103
|
+
"source": {
|
|
104
|
+
"enum": ["explicit", "config_default", "legacy_default"]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"attachment": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": ["name"],
|
|
115
|
+
"properties": {
|
|
116
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
117
|
+
"mime": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
118
|
+
"bytes": { "type": "integer", "minimum": 0 },
|
|
119
|
+
"disposition": { "enum": ["inline", "attachment"] },
|
|
120
|
+
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"item": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"additionalProperties": false,
|
|
126
|
+
"required": [
|
|
127
|
+
"outcome",
|
|
128
|
+
"recordKey",
|
|
129
|
+
"sourceLocator",
|
|
130
|
+
"sourceHash",
|
|
131
|
+
"adapterFingerprint",
|
|
132
|
+
"attachments"
|
|
133
|
+
],
|
|
134
|
+
"properties": {
|
|
135
|
+
"outcome": {
|
|
136
|
+
"enum": [
|
|
137
|
+
"added",
|
|
138
|
+
"updated",
|
|
139
|
+
"reactivated",
|
|
140
|
+
"unchanged",
|
|
141
|
+
"deactivated",
|
|
142
|
+
"preserved"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"recordKey": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
148
|
+
},
|
|
149
|
+
"sourceLocator": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"minLength": 1,
|
|
152
|
+
"maxLength": 512
|
|
153
|
+
},
|
|
154
|
+
"sourceHash": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
157
|
+
},
|
|
158
|
+
"mirrorHash": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
161
|
+
},
|
|
162
|
+
"adapterFingerprint": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
165
|
+
},
|
|
166
|
+
"attachments": {
|
|
167
|
+
"type": "array",
|
|
168
|
+
"maxItems": 256,
|
|
169
|
+
"items": { "$ref": "#/$defs/attachment" }
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"warning": {
|
|
174
|
+
"type": "object",
|
|
175
|
+
"additionalProperties": false,
|
|
176
|
+
"required": ["code", "message", "retryable"],
|
|
177
|
+
"properties": {
|
|
178
|
+
"code": { "const": "PARTIAL_SNAPSHOT" },
|
|
179
|
+
"message": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"minLength": 1,
|
|
182
|
+
"maxLength": 240
|
|
183
|
+
},
|
|
184
|
+
"retryable": { "type": "boolean" }
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"failure": {
|
|
188
|
+
"type": "object",
|
|
189
|
+
"additionalProperties": false,
|
|
190
|
+
"required": ["code", "message", "retryable"],
|
|
191
|
+
"properties": {
|
|
192
|
+
"code": {
|
|
193
|
+
"enum": [
|
|
194
|
+
"MALFORMED_RECORD",
|
|
195
|
+
"MISSING_ID",
|
|
196
|
+
"DUPLICATE_ID",
|
|
197
|
+
"RECORD_TOO_LARGE",
|
|
198
|
+
"SOURCE_TOO_LARGE",
|
|
199
|
+
"TIMEOUT",
|
|
200
|
+
"RECORD_LIMIT",
|
|
201
|
+
"FAILURE_LIMIT",
|
|
202
|
+
"INVALID_LOCATOR",
|
|
203
|
+
"INVALID_SOURCE_HASH",
|
|
204
|
+
"ADAPTER_FAILURE",
|
|
205
|
+
"INVALID_SNAPSHOT"
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
"message": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"minLength": 1,
|
|
211
|
+
"maxLength": 240
|
|
212
|
+
},
|
|
213
|
+
"retryable": { "type": "boolean" },
|
|
214
|
+
"stableId": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
215
|
+
"sourceLocator": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"minLength": 1,
|
|
218
|
+
"maxLength": 512
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
@@ -27,6 +27,35 @@
|
|
|
27
27
|
"index": { "$ref": "#/definitions/sha256" }
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
+
"egressLineage": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"required": ["effectivePolicy", "digest", "sources"],
|
|
34
|
+
"properties": {
|
|
35
|
+
"effectivePolicy": { "enum": ["local_only", "lan", "remote"] },
|
|
36
|
+
"digest": { "$ref": "#/definitions/sha256" },
|
|
37
|
+
"sources": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"minItems": 1,
|
|
40
|
+
"uniqueItems": true,
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"required": ["collection", "policy", "source"],
|
|
45
|
+
"properties": {
|
|
46
|
+
"collection": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
|
|
49
|
+
},
|
|
50
|
+
"policy": { "enum": ["local_only", "lan", "remote"] },
|
|
51
|
+
"source": {
|
|
52
|
+
"enum": ["explicit", "config_default", "legacy_default"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
30
59
|
"summary": { "$ref": "gno://schemas/retrieval-trace-summary@1.0" },
|
|
31
60
|
"trace": {
|
|
32
61
|
"type": "object",
|
|
@@ -79,6 +108,7 @@
|
|
|
79
108
|
}
|
|
80
109
|
]
|
|
81
110
|
},
|
|
111
|
+
"egressLineage": { "$ref": "#/definitions/egressLineage" },
|
|
82
112
|
"fingerprints": { "$ref": "#/definitions/fingerprints" },
|
|
83
113
|
"createdAtMs": { "type": "integer", "minimum": 0 },
|
|
84
114
|
"updatedAtMs": { "type": "integer", "minimum": 0 },
|
|
@@ -465,6 +495,7 @@
|
|
|
465
495
|
},
|
|
466
496
|
"format": { "enum": ["agentic-receipt", "qrels"] },
|
|
467
497
|
"artifactHash": { "$ref": "#/definitions/sha256" },
|
|
498
|
+
"egressLineage": { "$ref": "#/definitions/egressLineage" },
|
|
468
499
|
"createdAtMs": { "type": "integer", "minimum": 0 }
|
|
469
500
|
}
|
|
470
501
|
},
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"properties": {
|
|
21
21
|
"schemaVersion": { "const": "1.0" },
|
|
22
22
|
"format": { "const": "agentic-receipt" },
|
|
23
|
+
"egressLineage": {
|
|
24
|
+
"$ref": "gno://schemas/retrieval-trace-common@1.0#/definitions/egressLineage"
|
|
25
|
+
},
|
|
23
26
|
"traces": {
|
|
24
27
|
"type": "array",
|
|
25
28
|
"minItems": 1,
|
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
"config": { "$ref": "#/definitions/sha256" },
|
|
27
27
|
"index": { "$ref": "#/definitions/sha256" }
|
|
28
28
|
}
|
|
29
|
+
},
|
|
30
|
+
"egressLineage": {
|
|
31
|
+
"$ref": "gno://schemas/retrieval-trace-common@1.0#/definitions/egressLineage"
|
|
29
32
|
}
|
|
30
33
|
},
|
|
31
34
|
"type": "object",
|
|
@@ -55,6 +58,7 @@
|
|
|
55
58
|
},
|
|
56
59
|
"queryShape": { "$ref": "#/definitions/textShape" },
|
|
57
60
|
"goalShape": { "$ref": "#/definitions/textShape" },
|
|
61
|
+
"egressLineage": { "$ref": "#/definitions/egressLineage" },
|
|
58
62
|
"fingerprints": { "$ref": "#/definitions/fingerprints" },
|
|
59
63
|
"createdAtMs": { "type": "integer", "minimum": 0 },
|
|
60
64
|
"updatedAtMs": { "type": "integer", "minimum": 0 },
|
|
@@ -149,6 +149,100 @@
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
+
},
|
|
153
|
+
"record": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"additionalProperties": false,
|
|
156
|
+
"description": "Bounded logical-record provenance for a file/export source",
|
|
157
|
+
"required": ["recordKey", "sourceLocator", "anchors", "adapter"],
|
|
158
|
+
"properties": {
|
|
159
|
+
"recordKey": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
160
|
+
"sourceLocator": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
161
|
+
"anchors": {
|
|
162
|
+
"type": "array",
|
|
163
|
+
"maxItems": 256,
|
|
164
|
+
"items": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"required": ["kind", "value"],
|
|
168
|
+
"properties": {
|
|
169
|
+
"kind": {
|
|
170
|
+
"enum": [
|
|
171
|
+
"line",
|
|
172
|
+
"cue",
|
|
173
|
+
"timestamp",
|
|
174
|
+
"message",
|
|
175
|
+
"event",
|
|
176
|
+
"record"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"value": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
180
|
+
"endValue": { "type": "string", "minLength": 1, "maxLength": 512 }
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"adapter": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"additionalProperties": false,
|
|
187
|
+
"required": ["id", "version", "fingerprint"],
|
|
188
|
+
"properties": {
|
|
189
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
190
|
+
"version": { "type": "string", "minLength": 1, "maxLength": 64 },
|
|
191
|
+
"fingerprint": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"author": { "type": "string", "maxLength": 2048 },
|
|
195
|
+
"participants": {
|
|
196
|
+
"type": "array",
|
|
197
|
+
"maxItems": 256,
|
|
198
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 2048 }
|
|
199
|
+
},
|
|
200
|
+
"categories": {
|
|
201
|
+
"type": "array",
|
|
202
|
+
"maxItems": 256,
|
|
203
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 512 }
|
|
204
|
+
},
|
|
205
|
+
"dateFields": {
|
|
206
|
+
"type": "object",
|
|
207
|
+
"maxProperties": 256,
|
|
208
|
+
"propertyNames": { "type": "string", "maxLength": 128 },
|
|
209
|
+
"additionalProperties": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"minLength": 1,
|
|
212
|
+
"maxLength": 256
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"messageId": { "type": "string", "maxLength": 2048 },
|
|
216
|
+
"inReplyTo": { "type": "string", "maxLength": 2048 },
|
|
217
|
+
"references": {
|
|
218
|
+
"type": "array",
|
|
219
|
+
"maxItems": 256,
|
|
220
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 2048 }
|
|
221
|
+
},
|
|
222
|
+
"threadId": { "type": "string", "maxLength": 2048 },
|
|
223
|
+
"eventId": { "type": "string", "maxLength": 2048 },
|
|
224
|
+
"sessionId": { "type": "string", "maxLength": 2048 },
|
|
225
|
+
"attachments": {
|
|
226
|
+
"type": "array",
|
|
227
|
+
"maxItems": 256,
|
|
228
|
+
"items": {
|
|
229
|
+
"type": "object",
|
|
230
|
+
"additionalProperties": false,
|
|
231
|
+
"required": ["name"],
|
|
232
|
+
"properties": {
|
|
233
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
234
|
+
"mime": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
235
|
+
"bytes": {
|
|
236
|
+
"type": "integer",
|
|
237
|
+
"minimum": 0,
|
|
238
|
+
"maximum": 9007199254740991
|
|
239
|
+
},
|
|
240
|
+
"disposition": { "enum": ["inline", "attachment"] },
|
|
241
|
+
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
152
246
|
}
|
|
153
247
|
}
|
|
154
248
|
}
|