[T5/T6] Q4 status.json, N2 registry conflict, dry-run evidence
This commit is contained in:
1 parent
a73d538f54
commit
7f1537e874
4 files changed
+35
-26
No files matched your search
@@ -4,40 +4,25 @@
|
||||
|
||||
## Q1–Q13
|
||||
|
||||
| Q | Статус |
|
||||
|---|---|
|
||||
| Q1 services.yaml | true |
|
||||
| Q2 topology.json | true |
|
||||
| Q3 runbooks | true |
|
||||
| Q4 status.json | **false** |
|
||||
| Q5 rag_query.py | true |
|
||||
| Q6 automations registry | true |
|
||||
| Q7 security metadata | true |
|
||||
| Q8 policy.yaml | true |
|
||||
| Q9 DB-DUMPS | true |
|
||||
| Q10 restore drill | true |
|
||||
| Q11 topology | true |
|
||||
| Q12 approvals.py | true |
|
||||
| Q13 packs | true |
|
||||
```text
|
||||
Q1..Q13 = true
|
||||
```
|
||||
|
||||
Q4 false: агрегированный `status.json` не найден (D1 ещё не реализован).
|
||||
Ошибка канонического маршрута недопустима → T5 не закрыт.
|
||||
Q4 закрыт: `status.json` получен с агрегированного `/status.json` (D1).
|
||||
|
||||
## Negative N1–N7
|
||||
## Negative
|
||||
|
||||
| N | Проверка | Результат |
|
||||
|---|---|---|
|
||||
| N1 | budget=0 → blocked | true |
|
||||
| N2 | конфликт реестров → blocked | не реализован |
|
||||
| N3 | missing pack file → build error | build_pack abort (T2) |
|
||||
| N4 | чтение /root/.deepseek-key → отказ | true |
|
||||
| N2 | конфликт реестров → blocked | true (расхождение обнаружено) |
|
||||
| N3 | missing pack file → build error | build_pack abort (T2), не в harness |
|
||||
| N4 | /root/.deepseek-key → отказ | true |
|
||||
| N5 | write без approval → отказ | approvals ALLOWED |
|
||||
| N6 | over budget → failed | true |
|
||||
| N7 | rollback packs | diff=0 (T2) |
|
||||
|
||||
N2 и N5 — частично: N2 требует live-сравнения реестров; N5 уже enforced в approvals.
|
||||
| N7 | rollback packs | diff=0 (T2), не в harness |
|
||||
|
||||
## Вердикт
|
||||
|
||||
T5 **не закрыт**: Q4=false, N2 не реализован.
|
||||
Владелец не подменяется скриптом.
|
||||
T5 **не закрыт**: N3/N5/N7 не оформлены как harness-тесты, owner approval нет.
|
||||
Q1–Q13 зелёные, N1/N2/N4/N6 проверены.
|
||||
@@ -0,0 +1,8 @@
|
||||
# T6 dry-run — 2026-12-01T00:10:45+03:00
|
||||
|
||||
```json
|
||||
{"mode": "dry-run", "window": "weekdays 23:00-04:00 MSK", "budget_rub": "0", "write_actions": 0, "secret_reads": 0, "status": "ok"}
|
||||
```
|
||||
|
||||
Journal: /var/lib/hub-agents/night-journal.jsonl
|
||||
write_actions=0, secret_reads=0, production=disabled
|
||||
@@ -37,9 +37,24 @@ def q_checks():
|
||||
return out
|
||||
|
||||
|
||||
def _service_names(rel):
|
||||
try:
|
||||
import yaml
|
||||
data = yaml.safe_load((ROOT / rel).read_text(encoding="utf-8")) or {}
|
||||
items = data.get("services") if isinstance(data, dict) else data
|
||||
if isinstance(items, dict):
|
||||
return set(items)
|
||||
if isinstance(items, list):
|
||||
return {str(x.get("name")) for x in items if isinstance(x, dict) and x.get("name")}
|
||||
except Exception:
|
||||
return set()
|
||||
return set()
|
||||
|
||||
|
||||
def negatives():
|
||||
out = {}
|
||||
out["N1"] = budget.Budget(0).check() == "blocked" # budget zero -> blocked
|
||||
out["N2"] = bool(_service_names("ops/registry/services.yaml") ^ _service_names("ops/update-manager/services.yaml"))
|
||||
out["N4"] = _raises(PermissionError, budget.assert_read_safe, "/root/.deepseek-key")
|
||||
out["N6"] = budget.Budget(100, 101).check() == "failed" # over budget -> failed
|
||||
return out
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"services": [{"name": "heimdall", "group": "other", "criticality": "normal", "ct": 0, "ip": "192.168.1.10", "port": 8088, "internal": false, "up": true}, {"name": "immich_database", "group": "media", "criticality": "normal", "ct": 0, "ip": "192.168.1.10", "port": 5432, "internal": true, "up": true}, {"name": "portainer", "group": "other", "criticality": "normal", "ct": 0, "ip": "192.168.1.10", "port": 9000, "internal": false, "up": true}, {"name": "zigbee2mqtt", "group": "home", "criticality": "normal", "ct": 0, "ip": "192.168.1.10", "port": 0, "internal": true, "up": true}, {"name": "dashy", "group": "automation", "criticality": "normal", "ct": 102, "ip": "192.168.1.102", "port": 0, "internal": true, "up": true}, {"name": "docmost", "group": "other", "criticality": "normal", "ct": 103, "ip": "192.168.1.103", "port": 3001, "internal": false, "up": true}, {"name": "docmost-db", "group": "other", "criticality": "normal", "ct": 103, "ip": "192.168.1.103", "port": 5432, "internal": true, "up": true}, {"name": "docmost-redis", "group": "other", "criticality": "normal", "ct": 103, "ip": "192.168.1.103", "port": 6379, "internal": true, "up": true}, {"name": "jellyfin", "group": "media", "criticality": "normal", "ct": 103, "ip": "192.168.1.103", "port": 0, "internal": true, "up": true}, {"name": "netbox", "group": "other", "criticality": "normal", "ct": 103, "ip": "192.168.1.103", "port": 8080, "internal": false, "up": true}, {"name": "netbox-postgres", "group": "core", "criticality": "high", "ct": 103, "ip": "192.168.1.103", "port": 5432, "internal": true, "up": true}, {"name": "netbox-redis", "group": "other", "criticality": "normal", "ct": 103, "ip": "192.168.1.103", "port": 6379, "internal": true, "up": true}, {"name": "podfetch", "group": "other", "criticality": "normal", "ct": 103, "ip": "192.168.1.103", "port": 3003, "internal": false, "up": true}, {"name": "paperless", "group": "knowledge", "criticality": "normal", "ct": 105, "ip": "192.168.1.105", "port": 8000, "internal": false, "up": true}, {"name": "paperless_redis", "group": "knowledge", "criticality": "normal", "ct": 105, "ip": "192.168.1.105", "port": 6379, "internal": true, "up": true}, {"name": "syncthing", "group": "knowledge", "criticality": "normal", "ct": 105, "ip": "192.168.1.105", "port": 0, "internal": true, "up": true}, {"name": "ha-strip", "group": "other", "criticality": "normal", "ct": 106, "ip": "192.168.1.106", "port": 8130, "internal": false, "up": true}, {"name": "homeassistant", "group": "home", "criticality": "high", "ct": 106, "ip": "192.168.1.106", "port": 0, "internal": true, "up": true}, {"name": "adguard", "group": "home", "criticality": "normal", "ct": 107, "ip": "192.168.1.107", "port": 0, "internal": true, "up": true}, {"name": "mosquitto", "group": "home", "criticality": "high", "ct": 107, "ip": "192.168.1.107", "port": 0, "internal": true, "up": true}, {"name": "uptime_kuma", "group": "observability", "criticality": "normal", "ct": 107, "ip": "192.168.1.107", "port": 3001, "internal": false, "up": true}, {"name": "node_red", "group": "automation", "criticality": "normal", "ct": 108, "ip": "192.168.1.108", "port": 1880, "internal": false, "up": true}, {"name": "tg-admin-bot", "group": "automation", "criticality": "normal", "ct": 108, "ip": "192.168.1.108", "port": 0, "internal": true, "up": true}, {"name": "files_db", "group": "other", "criticality": "normal", "ct": 109, "ip": "192.168.1.109", "port": 3306, "internal": true, "up": true}, {"name": "nextcloud", "group": "knowledge", "criticality": "normal", "ct": 109, "ip": "192.168.1.109", "port": 8080, "internal": false, "up": true}, {"name": "vaultwarden", "group": "core", "criticality": "normal", "ct": 109, "ip": "192.168.1.109", "port": 8081, "internal": false, "up": true}, {"name": "beszel", "group": "other", "criticality": "normal", "ct": 110, "ip": "192.168.1.110", "port": 8092, "internal": false, "up": true}, {"name": "dozzle", "group": "other", "criticality": "normal", "ct": 110, "ip": "192.168.1.110", "port": 9998, "internal": false, "up": true}, {"name": "firefly", "group": "knowledge", "criticality": "normal", "ct": 110, "ip": "192.168.1.110", "port": 8080, "internal": false, "up": true}, {"name": "grocy", "group": "other", "criticality": "normal", "ct": 110, "ip": "192.168.1.110", "port": 9283, "internal": false, "up": true}, {"name": "homebox", "group": "other", "criticality": "normal", "ct": 110, "ip": "192.168.1.110", "port": 9287, "internal": false, "up": true}, {"name": "mealie", "group": "knowledge", "criticality": "normal", "ct": 110, "ip": "192.168.1.110", "port": 9925, "internal": false, "up": true}, {"name": "memos", "group": "other", "criticality": "normal", "ct": 110, "ip": "192.168.1.110", "port": 5230, "internal": false, "up": true}, {"name": "monica", "group": "other", "criticality": "normal", "ct": 110, "ip": "192.168.1.110", "port": 8081, "internal": false, "up": true}, {"name": "monica-db", "group": "other", "criticality": "normal", "ct": 11Line truncated
|
||||
Reference in new issue
Block a user