opensource-align2: engine 0.164.0-alpha.9 -> 0.166.0 (schema re-derived, method map pinned)

- protocol/ bundles re-derived from official 0.166.0 binary
  (generate-json-schema); v1 83 defs, v2 665 -> 677 defs,
  0 removals; all 21 host methods present, params refs unchanged
- README pin + start.sh comment follow the verified binary
- docs/upstream-166-alignment.md: 0.166.0 alignment record
- tests/test_host_protocol_mapping.py: 21 host methods pinned
  against protocol/ bundles (corrects alignment table's 17-count:
  18 requests incl. initialize + 3 inbound notifications)
- config.example.toml: [[skills.config]] disable semantics doc
  comment only (no effective config change)
- No production binary touched; no push, merge, or deploy.
This commit is contained in:
host committed 2026-11-04 21:04:07 +00:00
1 parent 6ba822daa2
commit ce98aaa448
7 files changed
+1584 -21

No files matched your search

+657 -9
View File
@@ -2394,6 +2394,30 @@
"title": "Feedback/uploadRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"feedback/save"
],
"title": "Feedback/saveRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/FeedbackSaveParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Feedback/saveRequest",
"type": "object"
},
{
"description": "Execute a standalone command (argv vector) under the server's sandbox.",
"properties": {
@@ -6781,6 +6805,13 @@
],
"title": "ChatgptAccountType",
"type": "string"
},
"workspaceName": {
"description": "Display name of the selected ChatGPT workspace, when available.",
"type": [
"string",
"null"
]
}
},
"required": [
@@ -6810,6 +6841,23 @@
],
"title": "AmazonBedrockAccount",
"type": "object"
},
{
"description": "Google Cloud Vertex AI with externally managed credentials.",
"properties": {
"type": {
"enum": [
"gcp"
],
"title": "GcpAccountType",
"type": "string"
}
},
"required": [
"type"
],
"title": "GcpAccount",
"type": "object"
}
]
},
@@ -6871,6 +6919,103 @@
],
"type": "string"
},
"AccountSession": {
"properties": {
"displayName": {
"type": [
"string",
"null"
]
},
"email": {
"type": [
"string",
"null"
]
},
"imageUrl": {
"type": [
"string",
"null"
]
},
"isActive": {
"type": "boolean"
},
"lastUsedAt": {
"format": "int64",
"type": "integer"
},
"selectedWorkspaceAccountId": {
"type": [
"string",
"null"
]
},
"sessionId": {
"type": "string"
},
"userId": {
"type": [
"string",
"null"
]
},
"workspaces": {
"items": {
"$ref": "#/definitions/v2/AccountSessionWorkspace"
},
"type": "array"
}
},
"required": [
"isActive",
"lastUsedAt",
"sessionId",
"workspaces"
],
"type": "object"
},
"AccountSessionWorkspace": {
"properties": {
"accountId": {
"type": "string"
},
"imageUrl": {
"type": [
"string",
"null"
]
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/v2/AccountSessionWorkspaceKind"
},
{
"type": "null"
}
]
},
"name": {
"type": [
"string",
"null"
]
}
},
"required": [
"accountId"
],
"type": "object"
},
"AccountSessionWorkspaceKind": {
"enum": [
"personal",
"workspace"
],
"type": "string"
},
"AccountTokenUsageDailyBucket": {
"properties": {
"startDate": {
@@ -6993,6 +7138,13 @@
"kind": {
"$ref": "#/definitions/v2/AdditionalContextKind"
},
"name": {
"description": "Optional name for untrusted context, used to label its tool output.",
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
@@ -7756,6 +7908,42 @@
"type": "null"
}
]
},
"storage": {
"anyOf": [
{
"$ref": "#/definitions/v2/ApplicationStorageRequirements"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"ApplicationStorageRequirements": {
"description": "Managed storage settings for new Desktop workspaces, not filesystem access restrictions.",
"properties": {
"defaultProjectParent": {
"anyOf": [
{
"$ref": "#/definitions/v2/LegacyAppPathString"
},
{
"type": "null"
}
]
},
"projectlessWorkspaceRoot": {
"anyOf": [
{
"$ref": "#/definitions/v2/LegacyAppPathString"
},
{
"type": "null"
}
]
}
},
"type": "object"
@@ -8502,6 +8690,8 @@
"rateLimitExceeded",
"flexUnavailable",
"serverOverloaded",
"modelNotFound",
"policyCapacityUnavailable",
"cyberPolicy",
"misalignmentPolicyViolation",
"tooManyDenials",
@@ -10216,6 +10406,16 @@
}
]
},
"otel": {
"anyOf": [
{
"$ref": "#/definitions/v2/OtelRequirements"
},
{
"type": "null"
}
]
},
"sqliteHome": {
"type": [
"string",
@@ -11807,6 +12007,85 @@
},
"type": "object"
},
"FeedbackSaveParams": {
"$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"
]
},
"savePath": {
"allOf": [
{
"$ref": "#/definitions/v2/LegacyAppPathString"
}
],
"description": "Absolute, previously unused ZIP path on the app-server host. The caller owns this file, including after a disconnected RPC."
},
"tags": {
"additionalProperties": {
"type": "string"
},
"type": [
"object",
"null"
]
},
"threadId": {
"type": [
"string",
"null"
]
}
},
"required": [
"classification",
"savePath"
],
"title": "FeedbackSaveParams",
"type": "object"
},
"FeedbackSaveResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"promptHash": {
"description": "Same prompt hash as feedback/upload; null when prompt metadata is absent.",
"type": [
"string",
"null"
]
},
"savedPath": {
"$ref": "#/definitions/v2/LegacyAppPathString"
},
"threadId": {
"type": "string"
}
},
"required": [
"savedPath",
"threadId"
],
"title": "FeedbackSaveResponse",
"type": "object"
},
"FeedbackUploadParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -13455,6 +13734,13 @@
"enabled": {
"type": "boolean"
},
"environmentId": {
"description": "The owning execution environment, if this hook came from its requirements.",
"type": [
"string",
"null"
]
},
"eventName": {
"$ref": "#/definitions/v2/HookEventName"
},
@@ -13622,7 +13908,7 @@
"default": "unknown"
},
"sourcePath": {
"$ref": "#/definitions/v2/AbsolutePathBuf"
"$ref": "#/definitions/v2/LegacyAppPathString"
},
"startedAt": {
"format": "int64",
@@ -13743,11 +14029,18 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"cwds": {
"description": "When empty, defaults to the current session working directory.",
"description": "Working directories to inspect when no thread is specified. An empty list uses the session cwd.",
"items": {
"type": "string"
},
"type": "array"
},
"threadId": {
"description": "List a loaded thread's hooks, including its selected environments. Omit `cwds` in this mode.",
"type": [
"string",
"null"
]
}
},
"title": "HooksListParams",
@@ -15818,6 +16111,81 @@
"title": "ModelProviderCapabilitiesReadResponse",
"type": "object"
},
"ModelProviderError": {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Structured JSON-RPC error data. Unknown errors must retain the client's normal fallback.",
"oneOf": [
{
"properties": {
"currentModelProvider": {
"type": "string"
},
"modelProvider": {
"type": "string"
},
"type": {
"enum": [
"modelProviderMismatch"
],
"title": "ModelProviderMismatchv2::ModelProviderErrorType",
"type": "string"
}
},
"required": [
"currentModelProvider",
"modelProvider",
"type"
],
"title": "ModelProviderMismatchv2::ModelProviderError",
"type": "object"
},
{
"properties": {
"modelProvider": {
"type": "string"
},
"type": {
"enum": [
"modelProviderNotConfigured"
],
"title": "ModelProviderNotConfiguredv2::ModelProviderErrorType",
"type": "string"
}
},
"required": [
"modelProvider",
"type"
],
"title": "ModelProviderNotConfiguredv2::ModelProviderError",
"type": "object"
},
{
"properties": {
"modelProvider": {
"type": "string"
},
"requiredModelProvider": {
"type": "string"
},
"type": {
"enum": [
"modelProviderPolicyConflict"
],
"title": "ModelProviderPolicyConflictv2::ModelProviderErrorType",
"type": "string"
}
},
"required": [
"modelProvider",
"requiredModelProvider",
"type"
],
"title": "ModelProviderPolicyConflictv2::ModelProviderError",
"type": "object"
}
],
"title": "ModelProviderError"
},
"ModelRerouteReason": {
"enum": [
"highRiskCyberActivity"
@@ -16116,7 +16484,7 @@
"additionalProperties": {
"$ref": "#/definitions/v2/NetworkDomainPermission"
},
"description": "Canonical network permission map for `experimental_network`.",
"description": "Canonical managed network permission map.",
"type": [
"object",
"null"
@@ -16143,6 +16511,16 @@
"null"
]
},
"reviewDomains": {
"description": "Host patterns routed to network approval before ordinary allow rules.",
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
},
"socksPort": {
"format": "uint16",
"minimum": 0.0,
@@ -16155,7 +16533,7 @@
"additionalProperties": {
"$ref": "#/definitions/v2/NetworkUnixSocketPermission"
},
"description": "Canonical unix socket permission map for `experimental_network`.",
"description": "Canonical managed unix socket permission map.",
"type": [
"object",
"null"
@@ -16229,6 +16607,232 @@
],
"title": "Nullable_GetAccountTokenUsageParams"
},
"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/v2/OtelHttpProtocol"
},
"tls": {
"anyOf": [
{
"$ref": "#/definitions/v2/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/v2/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/v2/OtelExporter"
},
{
"type": "null"
}
]
},
"log_agent_responses": {
"type": [
"boolean",
"null"
]
},
"log_guardian_assessments": {
"type": [
"boolean",
"null"
]
},
"log_user_prompt": {
"type": [
"boolean",
"null"
]
},
"metrics_exporter": {
"anyOf": [
{
"$ref": "#/definitions/v2/OtelExporter"
},
{
"type": "null"
}
]
},
"span_attributes": {
"additionalProperties": {
"type": "string"
},
"type": [
"object",
"null"
]
},
"tool_result": {
"anyOf": [
{
"$ref": "#/definitions/v2/OtelToolResultLogConfig"
},
{
"type": "null"
}
]
},
"trace_exporter": {
"anyOf": [
{
"$ref": "#/definitions/v2/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"
},
"OtelToolResultLogConfig": {
"properties": {
"max_bytes": {
"format": "uint",
"minimum": 0.0,
"type": "integer"
}
},
"required": [
"max_bytes"
],
"type": "object"
},
"OverriddenMetadata": {
"properties": {
"effectiveValue": true,
@@ -17824,6 +18428,13 @@
"format": "int32",
"type": "integer"
},
"outputDrainTimedOut": {
"description": "Whether output collection hit its post-exit deadline before seeing EOF or reaching the requested byte cap on either stream. Older servers omit this field.",
"type": [
"boolean",
"null"
]
},
"processHandle": {
"description": "Client-supplied, connection-scoped `processHandle` from `process/spawn`.",
"type": "string"
@@ -19801,8 +20412,7 @@
},
"ReviewDelivery": {
"enum": [
"inline",
"detached"
"inline"
],
"type": "string"
},
@@ -19819,7 +20429,7 @@
}
],
"default": null,
"description": "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`). Detached delivery is deprecated and emits `deprecationNotice`. Use `thread/start` followed by an inline review for a separate review thread."
"description": "Reviews run inline on the supplied thread. Omit this field or pass `inline`. To review on a separate thread, start a thread first and use its id."
},
"target": {
"$ref": "#/definitions/v2/ReviewTarget"
@@ -19839,7 +20449,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"reviewThreadId": {
"description": "Identifies the thread where the review runs.\n\nFor inline reviews, this is the original thread id. For detached reviews, this is the id of the new review thread.",
"description": "The thread id supplied to `review/start`.",
"type": "string"
},
"turn": {
@@ -22135,6 +22745,7 @@
"type": "object"
},
"ThreadItem": {
"description": "A thread item and its recorded lifecycle times. The payload stays flat on the wire.",
"oneOf": [
{
"properties": {
@@ -22917,6 +23528,14 @@
],
"default": null
},
"generationId": {
"default": null,
"description": "Image generation identifier for the generated image, when provided by the image backend.",
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
@@ -23037,7 +23656,28 @@
"title": "ContextCompactionThreadItem",
"type": "object"
}
]
],
"properties": {
"completedAtMs": {
"default": null,
"description": "Unix timestamp in milliseconds when the item completed, if recorded.",
"format": "int64",
"type": [
"integer",
"null"
]
},
"startedAtMs": {
"default": null,
"description": "Unix timestamp in milliseconds when the item started, if recorded.",
"format": "int64",
"type": [
"integer",
"null"
]
}
},
"type": "object"
},
"ThreadItemEntry": {
"properties": {
@@ -25689,6 +26329,14 @@
},
"type": "array"
},
"nativeUsageUsdMicros": {
"description": "Native dollar usage, independent of credit estimates. None means unknown, not zero.",
"format": "int64",
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
}