{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "LocaleReport",
"type": "object",
"properties": {
"type": {
"type": "string"
},
"resolved": {
"type": "string"
},
"source": {
"type": "string"
},
"system_raw": {
"type": [
"string",
"null"
]
},
"available": {
"type": "array",
"items": {
"type": "string"
}
},
"persisted": {
"type": [
"string",
"null"
]
},
"preference_path": {
"type": [
"string",
"null"
]
},
"detection_failed": {
"type": "boolean"
},
"direction": {
"type": "string"
},
"ndjson_policy": {
"description": "Machine NDJSON codes/Display stay English; suggestions follow locale.",
"type": "string"
},
"preference_action": {
"description": "Present when `--set` / `--clear` mutated the preference file.",
"type": [
"string",
"null"
]
},
"write_strategy": {
"description": "Write strategy the atomic layer used for the preference file.\n\nPresent only when this run wrote or removed the preference, so a plain\nreport never claims a mechanism it did not use. `--clear` reports\n`none`, because it unlinks the file instead of writing content.",
"type": "string"
},
"backup_skipped": {
"description": "Why the requested backup was skipped, when the directory refused it.",
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"ok": {
"description": "Outcome of the run, stamped by the writer",
"type": "boolean"
},
"code": {
"description": "Machine error code, present when ok is false",
"type": "string"
},
"exit": {
"description": "Process exit status, present when ok is false",
"type": "integer",
"minimum": 0
},
"target_resolved": {
"description": "Absolute targets the run resolved, in invocation order, and never a joined string, so a path holding `,` stays readable; a run with one target publishes a one-item array, so the shape never depends on the count",
"type": "array",
"items": {
"type": "string"
}
},
"target_source": {
"description": "Where the target came from: named in the invocation line, inherited from the workspace slot, or the standard-input stream",
"type": "string",
"enum": [
"argv",
"workspace",
"stdin"
]
},
"workspace_source": {
"description": "Where the workspace root came from: the `--workspace` flag or the process working directory",
"type": "string",
"enum": [
"argv",
"cwd"
]
},
"records_suppressed": {
"description": "Records the writer dropped before the terminal event: `--filter` rejections, `--select` projections that emptied the record, dedupe duplicates and `--limit` cuts. It counts records, never files, so it does not compare with `files_matched`: one file can contribute several records",
"type": "integer",
"minimum": 0
},
"files_budget_dropped": {
"description": "Entries the `--limit` budget dropped, in the unit the verb produces: files for walking verbs, records for streaming ones; a floor, because workers may stop before producing the rest",
"type": "integer",
"minimum": 0
},
"files_planned": {
"description": "Files the run would have modified in `--dry-run` or `--preview`; absent from a run that really wrote",
"type": "integer",
"minimum": 0
},
"truncated": {
"description": "The record itself was cut by `--truncate-content` or `--max-output-bytes`, so the fields are shorter than the source",
"type": "boolean"
},
"truncated_records": {
"description": "Records the writer cut this run, counted once per record",
"type": "integer",
"minimum": 0
}
},
"required": [
"type",
"resolved",
"source",
"available",
"detection_failed",
"direction",
"ndjson_policy"
]
}