Skip to content

Commit b7d9ca2

Browse files
itsthatriverclaude
andcommitted
Add execution_logging config to engine schema
Document the execution_logging configuration block that was deferred from PR #146 until the config shape stabilized (PLT-1106). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9f37066 commit b7d9ca2

1 file changed

Lines changed: 102 additions & 0 deletions

File tree

engine/config/2.0/schema.json

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,108 @@
320320
"oneOf": [{ "required": ["in_memory"] }, { "required": ["redis"] }],
321321
"additionalProperties": false
322322
},
323+
"execution_logging": {
324+
"type": "object",
325+
"description": "Configures execution logging for tool calls.",
326+
"properties": {
327+
"enabled": {
328+
"description": "Whether execution logging is enabled.",
329+
"oneOf": [
330+
{ "type": "boolean", "default": false },
331+
{ "$ref": "#/$defs/envVarPattern" },
332+
{ "$ref": "#/$defs/filePattern" }
333+
]
334+
},
335+
"max_output_size": {
336+
"description": "The maximum size in bytes of captured tool output.",
337+
"oneOf": [
338+
{ "type": "integer", "default": 10485760 },
339+
{ "$ref": "#/$defs/envVarPattern" },
340+
{ "$ref": "#/$defs/filePattern" }
341+
]
342+
},
343+
"buffer_size": {
344+
"description": "The number of execution log entries to buffer in memory before flushing.",
345+
"oneOf": [
346+
{ "type": "integer", "default": 10000, "minimum": 1, "maximum": 1000000 },
347+
{ "$ref": "#/$defs/envVarPattern" },
348+
{ "$ref": "#/$defs/filePattern" }
349+
]
350+
},
351+
"write_batch_size": {
352+
"description": "The number of execution log entries to write per batch.",
353+
"oneOf": [
354+
{ "type": "integer", "default": 100, "minimum": 1, "maximum": 10000 },
355+
{ "$ref": "#/$defs/envVarPattern" },
356+
{ "$ref": "#/$defs/filePattern" }
357+
]
358+
},
359+
"write_batch_timeout": {
360+
"description": "The maximum time to wait before flushing a partial batch as a duration string (e.g. '200ms'). Maximum '10s'.",
361+
"oneOf": [
362+
{ "type": "string", "default": "200ms" },
363+
{ "$ref": "#/$defs/envVarPattern" },
364+
{ "$ref": "#/$defs/filePattern" }
365+
]
366+
},
367+
"drain_timeout": {
368+
"description": "The maximum time to wait for buffered entries to drain on shutdown as a duration string (e.g. '30s'). Maximum '5m'.",
369+
"oneOf": [
370+
{ "type": "string", "default": "30s" },
371+
{ "$ref": "#/$defs/envVarPattern" },
372+
{ "$ref": "#/$defs/filePattern" }
373+
]
374+
},
375+
"config_cache_ttl": {
376+
"description": "The TTL for caching execution logging configuration as a duration string (e.g. '10s'). Maximum '1h'.",
377+
"oneOf": [
378+
{ "type": "string", "default": "10s" },
379+
{ "$ref": "#/$defs/envVarPattern" },
380+
{ "$ref": "#/$defs/filePattern" }
381+
]
382+
},
383+
"coordinator_url": {
384+
"description": "The URL of the execution logging coordinator service.",
385+
"oneOf": [
386+
{ "type": "string", "format": "uri" },
387+
{ "$ref": "#/$defs/envVarPattern" },
388+
{ "$ref": "#/$defs/filePattern" }
389+
]
390+
},
391+
"cleanup": {
392+
"type": "object",
393+
"description": "Configures automatic cleanup of old execution logs.",
394+
"properties": {
395+
"batch_size": {
396+
"description": "The number of execution log entries to process per cleanup batch.",
397+
"oneOf": [
398+
{ "type": "integer", "default": 1000, "minimum": 1, "maximum": 100000 },
399+
{ "$ref": "#/$defs/envVarPattern" },
400+
{ "$ref": "#/$defs/filePattern" }
401+
]
402+
},
403+
"mark_interval": {
404+
"description": "The interval between cleanup marking passes as a duration string (e.g. '30m').",
405+
"oneOf": [
406+
{ "type": "string", "default": "30m" },
407+
{ "$ref": "#/$defs/envVarPattern" },
408+
{ "$ref": "#/$defs/filePattern" }
409+
]
410+
},
411+
"sweep_batch_interval": {
412+
"description": "The interval between cleanup sweep batches as a duration string (e.g. '5s').",
413+
"oneOf": [
414+
{ "type": "string", "default": "5s" },
415+
{ "$ref": "#/$defs/envVarPattern" },
416+
{ "$ref": "#/$defs/filePattern" }
417+
]
418+
}
419+
},
420+
"additionalProperties": false
421+
}
422+
},
423+
"additionalProperties": false
424+
},
323425
"llm": {
324426
"type": "object",
325427
"description": "Configures the language models that can handle requests.",

0 commit comments

Comments
 (0)