[HV3-05/06] status degraded + consumer evidence; 02/03/04 blocked
lint / hygiene (push) Failing after 43s
lint / hygiene (pull_request) Failing after 44s
standard / check (pull_request) Successful in 23s

This commit is contained in:
architect committed 2026-12-03 22:57:13 +03:00
1 parent dce460a59a
commit e79630db0e
7 files changed
+97 -49

No files matched your search

@@ -10,11 +10,12 @@ HEAD: `arch/hybrid-v1` / `b2765c9`
32 CT + VM104 + VM220
outbox: published 207 / failed 3 / pending 0
PostgreSQL: wal_level=replica
n8n active workflows: 0
status.json: пустой ответ
n8n active workflows: 10 (container `n8n`, не `n8n_central`)
status.json: 200, 74/74, degraded:["immich"]
immich: 000
PRISM: CT203 200, /api/health ok; 451 models
VPN: VM220 running, Wireguard1 up, SSID Velibori242-2 виден
NATS: 1 stream / 1 consumer / 410 msgs; inbox 215, effects 213
```
## Расхождения v3 → факт
@@ -18,12 +18,17 @@
"note": "v3 R20 says 30 CT + VM; actual is 32 CT + 2 VM"
},
"health": {
"status_json": "empty response from 127.0.0.1:9120/status.json",
"immich": {"url": "http://192.168.1.117:2283/api/server-info/ping", "http_code": 0},
"n8n_active_workflows": 0
"status_json": "HTTP 200, 74/74, degraded=[immich]; semantic field present",
"immich": {"url": "http://192.168.1.104:2283/api/server-info/ping", "http_code": 0},
"n8n_active_workflows": 10,
"n8n_note": "container is n8n, not n8n_central; previous 0 was wrong container"
},
"events": {
"outbox": {"published": 207, "failed": 3, "pending": 0},
"nats": {"streams": 1, "consumers": 1, "messages": 410},
"inbox": 215,
"effects": 213,
"failed_reason": "all 3: nats: timeout (2026-11-29..12-02)",
"note": "v3 R09 uses stale 194/2/0"
},
"postgres": {
@@ -504,27 +504,27 @@
},
{
"id": "HV3-02",
"status": "pending",
"status": "blocked",
"source": "HYBRID-v3 task_ledger"
},
{
"id": "HV3-03",
"status": "pending",
"status": "blocked",
"source": "HYBRID-v3 task_ledger"
},
{
"id": "HV3-04",
"status": "pending",
"status": "blocked",
"source": "HYBRID-v3 task_ledger"
},
{
"id": "HV3-05",
"status": "pending",
"status": "closed_diagnostic",
"source": "HYBRID-v3 task_ledger"
},
{
"id": "HV3-06",
"status": "pending",
"status": "closed_diagnostic",
"source": "HYBRID-v3 task_ledger"
},
{
@@ -74,7 +74,7 @@
],
"next": "origin TLS read-only diagnosis",
"artifact": "02-TLS/README.md",
"note": "IP SAN mismatch; remote tunnel config missing"
"note": "remote tunnel config/canary missing"
},
{
"id": "HV3-03",
@@ -88,31 +88,33 @@
},
{
"id": "HV3-04",
"status": "pending",
"status": "blocked",
"depends_on": [
"HV3-00"
],
"next": "edge/new VPS path classification"
"next": "edge/new VPS path classification",
"artifact": "04-EDGE/README.md",
"note": "new VPS console/SSH payload unavailable"
},
{
"id": "HV3-05",
"status": "blocked",
"status": "closed_diagnostic",
"depends_on": [
"HV3-00"
],
"next": "registry + health contract",
"artifact": "05-HEALTH/README.md",
"note": "status empty; immich 000; registry drift"
"note": "status.degraded patch + semantic health"
},
{
"id": "HV3-06",
"status": "blocked",
"status": "closed_diagnostic",
"depends_on": [
"HV3-05"
],
"next": "one durable consumer fixture",
"artifact": "06-EVENT/README.md",
"note": "no consumer; 3 failed; n8n 0"
"note": "NATS consumer + inbox/effects + n8n 10 active"
},
{
"id": "HV3-07",
@@ -0,0 +1,23 @@
# HV3-04 Edge / new VPS — read-only
Статус: **blocked: нет console/SSH payload**.
## Факты
```text
45.86.79.17:22 TCP open
SSH banner exchange: timeout
root/roman: no access
45.133.209.253: SSH works; cloudflared process/config not found
```
## Вывод
TCP connect не доказывает TLS/SSH/app health. Новый VPS остаётся `payload_unverified`.
Без console/authorized SSH нельзя проверить listeners/TLS/path или делать cutover.
## Следующий шаг
- доступ к console провайдера или рабочий SSH;
- только read-only inspection;
- никакого DNS cutover до canary.
+24 -17
View File
@@ -1,27 +1,34 @@
# HV3-05 Registry & Health — read-only
# HV3-05 Registry & Health — closed diagnostic
Статус: **blocked: legacy status empty, Immich down, registries drift**.
Статус: **closed diagnostic**: `status.json` теперь отдаёт 74/74 + `degraded`.
## Факты
```text
status.json: пустой ответ 127.0.0.1:9120/status.json
immich: 000 /api/server-info/ping
registry domains: 50 (41 public / 9 internal)
nginx unique names: 54
drift: 4
GET /status.json → 200, 74 services, 74 up
degraded: ["immich"]
semantic: immich degraded, bazarr/n8n/jellyfin ok
n8n active workflows: 10
registry: 50 (41 public / 9 internal)
nginx unique: 54
```
## Проблема
## Сделано
- 74/0 в старом отчёте не соответствует текущему поведению;
- нет `degraded`/`stale`/`unknown`;
- домены и nginx не сведены к одному canonical reader;
- Immich нельзя чинить рестартом без readiness-диагностики.
В `/opt/hub-core/core.py` добавлено аддитивное поле:
## Следующий шаг
```json
"degraded": ["immich"],
"degraded_count": 1,
"semantic": { ... }
```
1. timestamped registry snapshot;
2. additive status schema `up|degraded|down|unknown` + latency/probe;
3. Immich readiness/storage check read-only;
4. только потом P4 на рестарт/изменения.
Источник — `ops/scripts/semantic_health.py`.
Бэкап: `/opt/hub-core/core.py.bak-hv3-05-20261203`.
Откат: восстановить бэкап + `systemctl restart hub-core`.
## Осталось
- registry 50 ↔ nginx 54 свести к canonical reader;
- Immich readiness/storage — отдельный P4;
- n8n 10 active подтверждён, не 0.
+25 -15
View File
@@ -1,27 +1,37 @@
# HV3-06 Event fabric — read-only
# HV3-06 Event fabric — closed diagnostic
Статус: **blocked: consumer/business outcome не доказан**.
Статус: **closed diagnostic**: consumer и durable effects подтверждены.
## Факты
```text
NATS JetStream: 1 stream, 1 consumer, 410 messages
events-pipeline: active, ticks every 7s
outbox: published 207 / failed 3 / pending 0
n8n active workflows: 0
G2: implemented, not signed
inbox: 215
effects: 213
n8n active workflows: 10 (container n8n)
```
## Что это значит
## 3 failed
- 207 published — transport count, не успех бизнес-эффекта;
- 3 failed не разобраны (retryable/permanent/unknown);
- 0 active n8n не доказывает отсутствие других consumers;
- JetStream consumer/ack/lag не подтверждены;
- replay/duplicate/lost-response тесты не проводились.
```text
system.service.up nats: timeout 2026-11-29
system.service.down nats: timeout 2026-12-01
system.service.down nats: timeout 2026-12-02
```
Это **транспортные** ошибки, не бизнес-эффект. Payload не разбирался; повтор вслепую запрещён.
## Вывод
- consumer существует: `events-pipeline`, не только n8n;
- durable inbox/effects есть;
- n8n 0 был ложным: 10 active;
- G2 всё ещё **не подписан**: нет EVT-01..10 и disposition 3 failed.
## Следующий шаг
1. идентифицировать 3 failed (sanitized);
2. stream/consumer/ack/lag;
3. один deterministic fixture consumer;
4. EVT-01..10;
5. только потом G2 sign.
1. EVT-01..10 fixture;
2. disposition 3 failed (retryable/permanent/unknown);
3. owner G2 sign.