Отчёт и evidence: исправления по внешнему аудиту F01–F17, проверка из чистого clone

- раздел «Внешний аудит»: замечание -> исправление -> доказательство,
  что сознательно не сделано
- исправлены опровергнутые утверждения (draft и память, метаданные, лимиты)
- evidence/ из полного прогона run_all.sh в чистом clone: 30 проверок, overall=0;
  before-fix/ — воспроизведения дефектов до исправления
This commit is contained in:
2026-11-13 21:19:10 +03:00
parent 5d60a85cc1
commit 27f30afdad
50 changed files with 1435 additions and 651 deletions
+56 -56
View File
@@ -1,18 +1,18 @@
{
"scenario": "outbox: COMMIT/publish gap and API crash windows",
"date_utc": "2026-11-13T13:58:45+00:00",
"date_utc": "2026-11-13T18:10:13+00:00",
"steps": [
{
"t": 5.47,
"utc": "13:57:20.717",
"t": 5.58,
"utc": "18:08:49.620",
"step": "A: relay stopped, upload 202",
"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4",
"attachment_id": "fc2ea4ee-a3c2-42c6-873d-b813ee626738",
"outbox": [
{
"id": 98,
"id": 34,
"attempt": "1",
"available_at": "2026-11-13T13:57:16.395116Z",
"created_at": "2026-11-13T13:57:16.395116Z",
"available_at": "2026-11-13T18:08:45.257829Z",
"created_at": "2026-11-13T18:08:45.257829Z",
"published_at": null,
"publish_count": 0
}
@@ -25,10 +25,10 @@
}
},
{
"t": 12.08,
"utc": "13:57:27.326",
"t": 12.14,
"utc": "18:08:56.187",
"step": "A: relay started -> ready, same single job",
"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4",
"attachment_id": "fc2ea4ee-a3c2-42c6-873d-b813ee626738",
"events": [
"enqueued",
"claimed",
@@ -37,11 +37,11 @@
],
"outbox": [
{
"id": 98,
"id": 34,
"attempt": "1",
"available_at": "2026-11-13T13:57:16.395116Z",
"created_at": "2026-11-13T13:57:16.395116Z",
"published_at": "2026-11-13T13:57:22.711861Z",
"available_at": "2026-11-13T18:08:45.257829Z",
"created_at": "2026-11-13T18:08:45.257829Z",
"published_at": "2026-11-13T18:08:51.598785Z",
"publish_count": 1
}
],
@@ -61,10 +61,10 @@
}
},
{
"t": 21.46,
"utc": "13:57:36.707",
"t": 21.05,
"utc": "18:09:05.089",
"step": "B: relay crashed between COMMIT and publish -> restarted -> ready",
"attachment_id": "73a95268-17ba-4a02-b38b-b4b28ceda56f",
"attachment_id": "fe8bf90c-da25-421a-8b78-157edf749a41",
"relay_restart_count": [
[
0
@@ -81,11 +81,11 @@
],
"outbox": [
{
"id": 99,
"id": 35,
"attempt": "1",
"available_at": "2026-11-13T13:57:33.691351Z",
"created_at": "2026-11-13T13:57:33.691351Z",
"published_at": "2026-11-13T13:57:35.220697Z",
"available_at": "2026-11-13T18:09:02.520223Z",
"created_at": "2026-11-13T18:09:02.520223Z",
"published_at": "2026-11-13T18:09:03.849052Z",
"publish_count": 1
}
],
@@ -104,10 +104,10 @@
}
},
{
"t": 31.05,
"utc": "13:57:46.295",
"t": 30.69,
"utc": "18:09:14.735",
"step": "C: published twice (crash before marking) -> duplicate is a no-op",
"attachment_id": "b418c3c7-74cf-492a-ab07-8e94202f47e5",
"attachment_id": "93c21e96-2f17-4393-ae07-832a4ed7998b",
"relay_restart_count": [
1
],
@@ -120,11 +120,11 @@
],
"outbox": [
{
"id": 100,
"id": 36,
"attempt": "1",
"available_at": "2026-11-13T13:57:43.223035Z",
"created_at": "2026-11-13T13:57:43.223035Z",
"published_at": "2026-11-13T13:57:44.693510Z",
"available_at": "2026-11-13T18:09:11.699309Z",
"created_at": "2026-11-13T18:09:11.699309Z",
"published_at": "2026-11-13T18:09:13.034424Z",
"publish_count": 1
}
],
@@ -143,10 +143,10 @@
}
},
{
"t": 56.68,
"utc": "13:58:11.927",
"t": 55.99,
"utc": "18:09:40.030",
"step": "D: API died after COMMIT before 202 -> work still completed",
"attachment_id": "76c1ed67-220e-4fdd-bb63-7930dbad69be",
"attachment_id": "cef3cc48-5442-4a35-af41-f2b47ab32dd8",
"client_saw": {
"http": 502,
"x_instance_id": null,
@@ -173,10 +173,10 @@
}
},
{
"t": 65.79,
"utc": "13:58:21.034",
"t": 65.06,
"utc": "18:09:49.101",
"step": "E: API died after staging before COMMIT",
"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73",
"attachment_id": "6e0a7ed1-44c8-4485-923a-bd2fb20d00a7",
"client_saw": {
"http": 502,
"x_instance_id": null,
@@ -187,10 +187,10 @@
"api_get": 404
},
{
"t": 74.22,
"utc": "13:58:29.474",
"t": 74.28,
"utc": "18:09:58.321",
"step": "E: janitor removed pending row and staging object",
"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73",
"attachment_id": "6e0a7ed1-44c8-4485-923a-bd2fb20d00a7",
"janitor_dry_run": {
"abandoned_pending": 1,
"orphan_objects": 0,
@@ -207,14 +207,14 @@
"row_gone": true
},
{
"t": 90.61,
"utc": "13:58:45.855",
"t": 89.69,
"utc": "18:10:13.734",
"step": "relay and api restored to .env configuration"
}
],
"results": {
"A": {
"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4",
"attachment_id": "fc2ea4ee-a3c2-42c6-873d-b813ee626738",
"events": [
"enqueued",
"claimed",
@@ -223,11 +223,11 @@
],
"outbox": [
{
"id": 98,
"id": 34,
"attempt": "1",
"available_at": "2026-11-13T13:57:16.395116Z",
"created_at": "2026-11-13T13:57:16.395116Z",
"published_at": "2026-11-13T13:57:22.711861Z",
"available_at": "2026-11-13T18:08:45.257829Z",
"created_at": "2026-11-13T18:08:45.257829Z",
"published_at": "2026-11-13T18:08:51.598785Z",
"publish_count": 1
}
],
@@ -247,7 +247,7 @@
}
},
"B": {
"attachment_id": "73a95268-17ba-4a02-b38b-b4b28ceda56f",
"attachment_id": "fe8bf90c-da25-421a-8b78-157edf749a41",
"relay_restart_count": [
[
0
@@ -264,11 +264,11 @@
],
"outbox": [
{
"id": 99,
"id": 35,
"attempt": "1",
"available_at": "2026-11-13T13:57:33.691351Z",
"created_at": "2026-11-13T13:57:33.691351Z",
"published_at": "2026-11-13T13:57:35.220697Z",
"available_at": "2026-11-13T18:09:02.520223Z",
"created_at": "2026-11-13T18:09:02.520223Z",
"published_at": "2026-11-13T18:09:03.849052Z",
"publish_count": 1
}
],
@@ -287,7 +287,7 @@
}
},
"C": {
"attachment_id": "b418c3c7-74cf-492a-ab07-8e94202f47e5",
"attachment_id": "93c21e96-2f17-4393-ae07-832a4ed7998b",
"relay_restart_count": [
1
],
@@ -300,11 +300,11 @@
],
"outbox": [
{
"id": 100,
"id": 36,
"attempt": "1",
"available_at": "2026-11-13T13:57:43.223035Z",
"created_at": "2026-11-13T13:57:43.223035Z",
"published_at": "2026-11-13T13:57:44.693510Z",
"available_at": "2026-11-13T18:09:11.699309Z",
"created_at": "2026-11-13T18:09:11.699309Z",
"published_at": "2026-11-13T18:09:13.034424Z",
"publish_count": 1
}
],
@@ -323,7 +323,7 @@
}
},
"D": {
"attachment_id": "76c1ed67-220e-4fdd-bb63-7930dbad69be",
"attachment_id": "cef3cc48-5442-4a35-af41-f2b47ab32dd8",
"client_saw": {
"http": 502,
"x_instance_id": null,
@@ -350,7 +350,7 @@
}
},
"E": {
"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73",
"attachment_id": "6e0a7ed1-44c8-4485-923a-bd2fb20d00a7",
"janitor_dry_run": {
"abandoned_pending": 1,
"orphan_objects": 0,