config: add cloud-managed layer provenance

This commit is contained in:
hefuc-oai
2026-07-07 22:09:22 +00:00
parent 2589f7a52d
commit 4ec0da7e88
23 changed files with 497 additions and 8 deletions
@@ -7083,6 +7083,14 @@
}
]
},
"CloudManagedLayer": {
"description": "Position of a fragment within the cloud-managed configuration contract.",
"enum": [
"baseline",
"systemOverlay"
],
"type": "string"
},
"CodexErrorInfo": {
"description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",
"oneOf": [
@@ -8160,6 +8168,42 @@
"title": "EnterpriseManagedConfigLayerSource",
"type": "object"
},
{
"description": "Config fragment delivered through the cloud-managed layer contract.",
"properties": {
"id": {
"description": "Stable identifier for the delivered fragment.",
"type": "string"
},
"layer": {
"allOf": [
{
"$ref": "#/definitions/v2/CloudManagedLayer"
}
],
"description": "Precedence tier that contains the fragment."
},
"name": {
"description": "Human-readable name for diagnostics and source attribution.",
"type": "string"
},
"type": {
"enum": [
"cloudManaged"
],
"title": "CloudManagedConfigLayerSourceType",
"type": "string"
}
},
"required": [
"id",
"layer",
"name",
"type"
],
"title": "CloudManagedConfigLayerSource",
"type": "object"
},
{
"description": "User config layer from $CODEX_HOME/config.toml. This layer is special in that it is expected to be: - writable by the user - generally outside the workspace directory",
"properties": {