{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/danilo-aguiar-br/sqlite-graphrag/schemas/remember-batch-summary.schema.json",
"title": "RememberBatchSummary",
"description": "Summary line emitted as the last NDJSON line by `sqlite-graphrag remember-batch`. Corrected by GAP-SG-271: `BatchSummary` in src/commands/remember_batch.rs also serializes `entities_created`, `enrich_recommended` and `enqueued_entity_descriptions`, and all three were undeclared under `additionalProperties: false`. Because each is guarded by `skip_serializing_if`, an empty batch validated and only a batch that actually created entities was rejected — the silence held for exactly as long as nobody validated a useful run.",
"type": "object",
"required": ["summary", "total", "succeeded", "failed", "elapsed_ms"],
"additionalProperties": false,
"properties": {
"agent_surface": { "$ref": "https://github.com/danilo-aguiar-br/sqlite-graphrag/schemas/agent-surface.schema.json#/$defs/AgentSurfaceMeta" },
"truncated": { "type": "boolean", "description": "GAP-SG-142: raised by the agent-native surface whenever it removed data from this envelope." },
"count": { "type": "integer", "minimum": 0, "description": "GAP-SG-142: emitted under --count-only, which replaces the payload. See agent-surface.schema.json#/$defs/CountOnlyEnvelope." },
"summary": { "type": "boolean", "const": true },
"total": { "type": "integer", "minimum": 0 },
"succeeded": { "type": "integer", "minimum": 0 },
"failed": { "type": "integer", "minimum": 0 },
"elapsed_ms": { "type": "integer", "minimum": 0 },
"entities_created": {
"type": "array",
"items": { "type": "string" },
"description": "Entity names linked or created across the batch, normalized. Omitted when the batch created none."
},
"enrich_recommended": {
"type": "array",
"items": { "type": "string" },
"description": "Recommended enrich operations for automation to run next. Omitted when there is nothing to recommend."
},
"enqueued_entity_descriptions": {
"type": "integer",
"minimum": 0,
"description": "How many entity-descriptions were hot-enqueued. Present only under --enqueue-enrich."
}
}
}