S-32. Строка проверки хранит адрес и в «до», и в «после»: target_path_before, target_sheet_before, target_row_before пишутся при создании, возвращаются в карточке проверки и при выдаче строки. Без этого проверяющий после перезапуска или из другого окна не знал, какой файл «до» открывать. Тело создания описано схемой schemas/review_create.json с примером; схема строки дополнена полями пары. S-33. Описаны поток событий проверки (snapshot, item, done/failed/stopped; пример examples/stream_review.txt) и отчёт xlsx: тип, имя файла, столбцы. Mock хранит и отдаёт пару так же. Проверки: 205 зелёных; красная проверка пары краснеет, если поля не пишутся. Отпечаток набора: f07118c4…c810. Co-Authored-By: Claude Code <noreply@anthropic.com>
119 lines
1.5 KiB
JSON
119 lines
1.5 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "Строка проверки (как есть)",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"review_id",
|
|
"ord",
|
|
"source_text",
|
|
"target_path",
|
|
"target_sheet",
|
|
"target_row",
|
|
"state",
|
|
"reason",
|
|
"verdict",
|
|
"evidence_json",
|
|
"started_at",
|
|
"finished_at",
|
|
"lease_token",
|
|
"lease_until",
|
|
"target_path_before",
|
|
"target_sheet_before",
|
|
"target_row_before"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"review_id": {
|
|
"type": "integer"
|
|
},
|
|
"ord": {
|
|
"type": "integer"
|
|
},
|
|
"source_text": {
|
|
"type": "string"
|
|
},
|
|
"target_path": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"target_sheet": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"target_row": {
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"verdict": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"evidence_json": {
|
|
"type": "string"
|
|
},
|
|
"started_at": {
|
|
"type": [
|
|
"number",
|
|
"null"
|
|
]
|
|
},
|
|
"finished_at": {
|
|
"type": [
|
|
"number",
|
|
"null"
|
|
]
|
|
},
|
|
"lease_token": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"lease_until": {
|
|
"type": [
|
|
"number",
|
|
"null"
|
|
]
|
|
},
|
|
"target_path_before": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"target_sheet_before": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"target_row_before": {
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|