aKode fase 2c: eliminato il codice di invio dati (crate analytics, otel-trace-websocket, sentry, esportatori OTLP); /feedback salva solo in locale; chiavi legacy [analytics]/[otel] accettate e ignorate; test di analytics/OTLP/upload rimossi
Some checks failed
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled

This commit is contained in:
Andrea
2026-11-09 18:45:41 +01:00
parent 981745ccc8
commit 60532b6337
509 changed files with 2043 additions and 46606 deletions

View File

@@ -12,18 +12,6 @@
],
"type": "string"
},
"AnalyticsConfig": {
"additionalProperties": true,
"properties": {
"enabled": {
"type": [
"boolean",
"null"
]
}
},
"type": "object"
},
"AppConfig": {
"properties": {
"approvals_reviewer": {
@@ -470,16 +458,6 @@
"Config": {
"additionalProperties": true,
"properties": {
"analytics": {
"anyOf": [
{
"$ref": "#/definitions/AnalyticsConfig"
},
{
"type": "null"
}
]
},
"approval_policy": {
"anyOf": [
{

View File

@@ -1148,136 +1148,8 @@
},
"type": "object"
},
"OtelExporter": {
"oneOf": [
{
"enum": [
"none",
"statsig"
],
"type": "string"
},
{
"additionalProperties": false,
"properties": {
"otlp-http": {
"properties": {
"endpoint": {
"type": "string"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"description": "Header names are retained; values are redacted by the server.",
"type": "object"
},
"protocol": {
"$ref": "#/definitions/OtelHttpProtocol"
},
"tls": {
"anyOf": [
{
"$ref": "#/definitions/OtelTlsConfig"
},
{
"type": "null"
}
]
}
},
"required": [
"endpoint",
"headers",
"protocol"
],
"type": "object"
}
},
"required": [
"otlp-http"
],
"title": "OtlpHttpOtelExporter",
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"otlp-grpc": {
"properties": {
"endpoint": {
"type": "string"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"description": "Header names are retained; values are redacted by the server.",
"type": "object"
},
"tls": {
"anyOf": [
{
"$ref": "#/definitions/OtelTlsConfig"
},
{
"type": "null"
}
]
}
},
"required": [
"endpoint",
"headers"
],
"type": "object"
}
},
"required": [
"otlp-grpc"
],
"title": "OtlpGrpcOtelExporter",
"type": "object"
}
]
},
"OtelHttpProtocol": {
"enum": [
"binary",
"json"
],
"type": "string"
},
"OtelRequirements": {
"properties": {
"environment": {
"type": [
"string",
"null"
]
},
"exporter": {
"anyOf": [
{
"$ref": "#/definitions/OtelExporter"
},
{
"type": "null"
}
]
},
"log_agent_responses": {
"type": [
"boolean",
"null"
]
},
"log_guardian_assessments": {
"type": [
"boolean",
"null"
]
},
"log_sse_deltas": {
"type": [
"boolean",
@@ -1290,25 +1162,6 @@
"null"
]
},
"metrics_exporter": {
"anyOf": [
{
"$ref": "#/definitions/OtelExporter"
},
{
"type": "null"
}
]
},
"span_attributes": {
"additionalProperties": {
"type": "string"
},
"type": [
"object",
"null"
]
},
"tool_result": {
"anyOf": [
{
@@ -1318,51 +1171,6 @@
"type": "null"
}
]
},
"trace_exporter": {
"anyOf": [
{
"$ref": "#/definitions/OtelExporter"
},
{
"type": "null"
}
]
},
"tracestate": {
"additionalProperties": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"type": [
"object",
"null"
]
}
},
"type": "object"
},
"OtelTlsConfig": {
"properties": {
"ca-certificate": {
"type": [
"string",
"null"
]
},
"client-certificate": {
"type": [
"string",
"null"
]
},
"client-private-key": {
"type": [
"string",
"null"
]
}
},
"type": "object"

View File

@@ -218,7 +218,7 @@
]
},
"providerId": {
"description": "Opaque provider identifier supplied by the caller for analytics attribution and import history display. This does not select the migration source.",
"description": "Opaque provider identifier supplied by the caller for attribution and import history display. This does not select the migration source.",
"type": [
"string",
"null"

View File

@@ -5,6 +5,7 @@
"type": "string"
}
},
"description": "Report contents for `feedback/save`. Feedback is only ever saved locally.",
"properties": {
"classification": {
"type": "string"

View File

@@ -7,7 +7,7 @@
},
"properties": {
"promptHash": {
"description": "Same prompt hash as feedback/upload; null when prompt metadata is absent.",
"description": "Whitespace-normalized SHA-256 of the session base instructions, matching the saved `prompt_hash` tag. Does not include later developer messages. Null when the reported rollout has no prompt metadata.",
"type": [
"string",
"null"

View File

@@ -1,46 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"classification": {
"type": "string"
},
"extraLogFiles": {
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
},
"includeLogs": {
"type": "boolean"
},
"reason": {
"type": [
"string",
"null"
]
},
"tags": {
"additionalProperties": {
"type": "string"
},
"type": [
"object",
"null"
]
},
"threadId": {
"type": [
"string",
"null"
]
}
},
"required": [
"classification"
],
"title": "FeedbackUploadParams",
"type": "object"
}

View File

@@ -1,21 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"promptHash": {
"default": null,
"description": "Whitespace-normalized SHA-256 of the session base instructions, matching the uploaded `prompt_hash` tag. Does not include later developer messages. Null when the reported rollout has no prompt metadata.",
"type": [
"string",
"null"
]
},
"threadId": {
"type": "string"
}
},
"required": [
"threadId"
],
"title": "FeedbackUploadResponse",
"type": "object"
}

View File

@@ -178,7 +178,7 @@
"type": "null"
}
],
"description": "Optional client-supplied analytics source classification for this forked thread."
"description": "Optional client-supplied source classification for this forked thread."
}
},
"required": [

View File

@@ -1591,7 +1591,7 @@
"type": "null"
}
],
"description": "Optional analytics source classification for this thread."
"description": "Optional source classification for this thread."
},
"turns": {
"description": "Only populated on `thread/resume`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",

View File

@@ -1382,7 +1382,7 @@
"type": "null"
}
],
"description": "Optional analytics source classification for this thread."
"description": "Optional source classification for this thread."
},
"turns": {
"description": "Only populated on `thread/resume`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",

View File

@@ -1382,7 +1382,7 @@
"type": "null"
}
],
"description": "Optional analytics source classification for this thread."
"description": "Optional source classification for this thread."
},
"turns": {
"description": "Only populated on `thread/resume`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",

View File

@@ -1382,7 +1382,7 @@
"type": "null"
}
],
"description": "Optional analytics source classification for this thread."
"description": "Optional source classification for this thread."
},
"turns": {
"description": "Only populated on `thread/resume`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",

View File

@@ -1643,7 +1643,7 @@
"type": "null"
}
],
"description": "Optional analytics source classification for this thread."
"description": "Optional source classification for this thread."
},
"turns": {
"description": "Only populated on `thread/resume`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",

View File

@@ -1382,7 +1382,7 @@
"type": "null"
}
],
"description": "Optional analytics source classification for this thread."
"description": "Optional source classification for this thread."
},
"turns": {
"description": "Only populated on `thread/resume`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",

View File

@@ -418,7 +418,7 @@
"type": "null"
}
],
"description": "Optional client-supplied analytics source classification for this thread."
"description": "Optional client-supplied source classification for this thread."
}
},
"title": "ThreadStartParams",

View File

@@ -1591,7 +1591,7 @@
"type": "null"
}
],
"description": "Optional analytics source classification for this thread."
"description": "Optional source classification for this thread."
},
"turns": {
"description": "Only populated on `thread/resume`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",

View File

@@ -1382,7 +1382,7 @@
"type": "null"
}
],
"description": "Optional analytics source classification for this thread."
"description": "Optional source classification for this thread."
},
"turns": {
"description": "Only populated on `thread/resume`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",

View File

@@ -1382,7 +1382,7 @@
"type": "null"
}
],
"description": "Optional analytics source classification for this thread."
"description": "Optional source classification for this thread."
},
"turns": {
"description": "Only populated on `thread/resume`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",