16 Commits
Author SHA1 Message Date
oqyude 1e7da18bd4 3x-ui v3.12.0, nixpkgs-master удалён, opencode 2.4.1 на sapphira
nixos flake checks / invariant-checks (push) Successful in 2m11s
test-runner / smoke (push) Successful in 1s
3x-ui (ADR-0013): пин v3.11.0 -> v3.12.0 (2026-11-29), бандл Xray-core
26.11.9. Блокеры апстрима проверены и не применимы: нешифрованных
VLESS/Trojan аутбаундов в CGNAT/198.18.0.0/15 нет, секций geodata нет.
REALITY-условия (fp=chrome/firefox/safari, minClientVer=1.0.0) те же.
Развёрнуто: otreca gen 96, sapphira gen 882; панель 200, ядро 26.11.9,
порты сохранены, warp-masque не тронут. Бэкапы db/ сняты до старта.

nixpkgs-master: вход удалён из flake.nix (lock перегенерирован), brave
снова из дефолтного nixpkgs (1.100.59), nginx = pkgs.nginxMainline
(1.31.10, CVE-2026-123007 закрыт), мёртвые ссылки в nextcloud/onlyoffice/
opencode вычищены. Все 6 конфигураций эвалируются.

opencode: на sapphira 2.4.1 — собран в WSL и замыкание скопировано в её
store до активации (слабая машина не компилирует bun-пакет).

Плюс nixfmt-правка modules/server/engipy-backend.nix (дрейф форматтера).
2026-12-02 02:51:22 +03:00
oqyude d53982a8dc 3x-ui: зафиксировать замену WG-WARP на warp-masque на otreca
WG-аутбаунд warp с 2026-11-28 не проходит handshake (пир пингуется,
proxy/tun: connection timed out), конфиг и domainStrategy ни при чём —
тот же аутбаунд в пробном инстансе то работает, то нет. 2026-12-02 00:59
владелец добавил warp-masque (protocol: masque, 162.159.198.2:443) и
перевёл на него правило в settings.xrayTemplateConfig; проверено в
изолированном инстансе на живом конфиге: google 204, play 204,
ya.ru/netflix 302, ошибок 0. Правило IPv4 осталось фолбэком.

Состояние живёт в БД панели, не в Nix: rebuild его не трогает.
2026-12-02 01:01:02 +03:00
oqyude 0c8f286499 3xui-reconfig: автозапуск при загрузке хоста и при рестарте контейнера панели
nixos flake checks / invariant-checks (push) Successful in 4m19s
test-runner / smoke (push) Successful in 2s
Дополнение владельца: «Пусть будет автоматически стартовать после перезагрузки
хоста и перезагрузки 3x-ui контейнера».

Механизм — декларативный Wants, без ExecStartPost и без OnSuccess:
- wantedBy = [ "podman-3xui_app.service" ] → nixpkgs создаёт symlink
  podman-3xui_app.service.wants/3xui-reconfig.service, поэтому юнит
  стартует (а) при загрузке хоста (контейнер панели тянется из
  multi-user.target) и (б) при каждом старте/перезапуске контейнера панели;
- after = [ "podman-3xui_app.service" "nginx.service" ] — контейнер и nginx
  уже подняты к моменту запуска;
- OnSuccess= неприменим: podman-3xui_app.service — Type=notify
  (долгоживущий), OnSuccess= на нём не срабатывает никогда.

Обёртка ждёт готовности панели (PANEL_WAIT_SECONDS, по умолчанию 90 c):
при автозапуске контейнер и nginx поднимаются параллельно, HTTP-сервер
панели может начать слушать позже. Без ожидания юнит падал бы на загрузке.
При недоступной панели — внятное сообщение и exit 1, загрузка не ломается
(юнит только Wants, не Requires).

Отсутствие ordering-цикла доказано: systemd-analyze verify по собранному
дереву юнитов обоих хостов (404 юнита на sapphira, 357 на otreca) —
0 упоминаний «ordering cycle», вывод побайтово совпадает с базовой
ревизией e9bc6f6; сфокусированная проверка 3x-ui-кластера — exit 0.
Живая проверка механики Wants на самой машине (синтетическая пара юнитов,
панель не трогали): старт и restart «контейнерного» юнита → зависимый
выполнился оба раза.

Идемпотентность: повторный POST на свежем конфиге безвреден — config.json
после restartXrayService побайтово не меняется (sha256 совпал), ключи
REALITY те же.

nixos-rebuild switch не выполнялся — решение владельца.
2026-11-16 19:09:16 +03:00
oqyude 17897f7dee 3xui-reconfig: PANEL_BASE/PANEL_TOKEN вычисляются из БД панели в рантайме
Юнит 3xui-reconfig.service не работал НИКОГДА: в Environment стояли
литералы "PANEL_BASE=@base" / "PANEL_TOKEN=@api_token", которые никто не
подставлял — curl уходил на "https://pubray1.zeroq.su@base/panel/api/..."
и падал с "Could not resolve host: base".

- modules/3x-ui/default.nix: новая опция modules."3x-ui".reconfigRunner —
  читает webBasePath и apiToken из таблицы settings БД панели в рантайме
  (podman exec 3xui_app python3 -c …) и отдаёт их скрипту reconfig через
  PANEL_BASE/PANEL_TOKEN; токен не попадает ни в nix store, ни в журнал
  (в журнал — только длина), ни в argv curl (заголовок уходит через
  curl --config -, то есть stdin).
- скрипт reconfig: grep добавлен в runtimeInputs — в минимальном PATH
  юнита его не было, и скрипт падал с "grep: command not found".
- modules/server/default.nix (sapphira): PANEL_URL=https://x.zeroq.su.
  Локальный https://127.0.0.1:2049 не мог работать: панель внутри
  контейнера говорит по HTTP (webCertFile пуст) и отвечает только на
  свой webDomain (x.zeroq.su) — с чужим Host идёт 403 с пустым телом.
- modules/vds/default.nix (otreca): PANEL_URL=https://pubray1.zeroq.su.
- оба юнита: ExecStart → обёртка, After=podman-3xui_app.service,
  комментарии переписаны (почему локальный адрес не работает и что
  PANEL_BASE = webBasePath из БД, а не константа).
- modules/containers/3x-ui.nix: исправлен протухший комментарий про
  несуществующий modules/3x-ui/scripts/reconfig.sh.
- метасостояние: R1.20 в rules/project-rules.md, инвариант 19 и строка
  «Ловушек» в AGENTS.md, находка в tasks/manifest.md (в реестр задач не
  внесена — manifest.json в этой сессии не трогается).

Проверено на sapphira вживую: энд-знд прогон обёртки → {"success":true},
config.json после рестарта побайтово не изменился (ключи REALITY те же),
токен в журнале — 0 совпадений.

nixos-rebuild switch не выполнялся — это решение владельца.
2026-11-16 18:33:15 +03:00
oqyude a4ee09dca0 3x-ui: pin image v3.11.0 (xray 26.10.21), ADR-0007
Бандл v3.10.2 тянул ядро Xray 26.10.10, которое апстрим отозвал:
release notes v3.11.0 говорят «the pulled v26.10.10 binary pins are
replaced». Пин остаётся явным тегом (R1.5) — :latest не возвращается.

- modules/containers/3x-ui.nix: v3.10.2 -> v3.11.0, история инцидента в
  комментарии сохранена и дополнена.
- .agent/decisions/0007-3x-ui-3.11.0.md: контекст, решение, последствия
  (REALITY: fp in {chrome,firefox,safari}, minClientVer 1.0.0, R1.16),
  риски, откат через бэкап тома db/ (миграции БД необратимы), чеклист
  после rebuild. index.json: запись 0007.
- AGENTS.md, project-rules.md (R1.5/R1.8), project-state.md,
  manifest.md (T43/T44), .ci/checks.sh: фактические упоминания версии и
  номера строки (:62 -> :71). Хроника notes/3x-ui-xray-26.9.md не
  переписана, добавлена ссылка на 0007.
2026-10-25 23:42:09 +03:00
oqyude 5f3131ea3e chore(agent): close T3/T20/T38/T57 and sync metadata with the tree
test-runner / smoke (push) Successful in 1s
nixos flake checks / invariant-checks (push) Canceled after 0s
- T3: premise refuted by a runtime 'nft list ruleset' on otreca - 'inet nixos-fw'
  already has 'policy drop'; the hand-written 'inet filter' only rate-limits SYN
  and must NOT get a drop (it would blackhole the VDS). AGENTS invariant 6 and
  the traps table updated; T3-A proposal marked withdrawn. No code change.
- T38: herdr_web_token rotated (old -> 401, new -> 200); literal removed from
  manifest.json (token -> secret_ref). Old token in git history is now invalid.
- T20: completed (100755, bash invocation, .gitea workflow).
- T57: T38-T57 registered in manifest.json, schemas aligned with the real
  format, dangling request.json $schema resolved, new dependency-free
  validator wired as check #9.
- T4/T52: completed; invariant 2, R1.2, ADR-0004 and project-state updated;
  checkpoints.phases.execution -> completed, handoff -> in_progress.
- T58 filed: triple 'allowedUDPPorts = [ 53 ]' duplicate.

AGENTS.md also carries the .omo trap-row update from the parallel opencode
session (commit 8079536), which was left uncommitted in the shared tree.
2026-10-25 02:10:18 +03:00
oqyude 6791e6c741 docs(opencode): herdr-интеграцию не ставим, oc фильтрует --server (ADR-0006, R1.19)
test-runner / smoke (push) Successful in 0s
- herdr: установка opencode-интеграции пишет V2-регистрацию в cli.json, а он
  read-only симлинк в /nix/store ⇒ herdr отказывается («config has multiple
  hard links», не EROFS). На sapphira не установлена НИ ОДНА agent-интеграция
  herdr ⇒ интеграцию не ставим, решение владельца снято.
- oc: --server принимают не все подкоманды (run/attach/tui/api/models/agent —
  да; mcp/service/auth/serve/plugin — нет) ⇒ обёртка фильтрует по подкоманде.
- legacy ~/.omo/omo.jsonc проверен на хосте: реальные model id реестра.
- Вычищен мёртвый кэш v1 (~/.cache/opencode/packages, npm/oh-my-openagent@latest).
- T36 → completed.
2026-10-21 17:05:23 +03:00
oqyude 68294e8e0b 3x-ui update
test-runner / smoke (push) Successful in 0s
2026-10-21 13:53:10 +03:00
oqyude 4bf8e552b4 docs(agents): sync R1.15, ADR-0005, T21-T32 from metaagent-director-2026-10-15
test-runner / smoke (push) Canceled after 0s
Brings the meta-agent narrative layer (.agent/) in sync with the
metaagent-director-2026-10-15 session that landed herdr multi-host
setup (T21-T25), herdr-webui nginx vhost evolution (T23), token gate
(T24), v0.2 docs in metaagent-director repo (T26), ADR-0005 (T27),
and the next-pass pending tasks (T28-T32, including v0.2 opencode-
director unit, upstream PR for sameOrigin X-Forwarded-Host, cleanup
of T18 status).

Key invariant formalized: R1.15 (herdr.zeroq.su без authelia, только
herdr-webui token + in-place patch в server/machine-security.ts до
T29 merge). Подробности в ADR-0005.

R1.14 (ADR-0004, escapeSystemdPath) уже внесён в прошлом проходе
(T19), дополнительно не дублируется здесь.

Whitespace regression fix in project-rules.md:145 — single line
wrap вместо extra spaces после «проверяться.»
2026-10-15 14:45:47 +03:00
oqyude ef8a355d00 agents(rules): sync R1.2/R1.14/R2, trap rows, nextcloud:80
R1.2 (мёртвый storage-guard): mkStorageGuard возвращает только
ConditionPathIsMountPoint; RequiresMountsFor отсутствует намеренно
(создаёт dependency, по которой systemd сам монтирует ФС при старте
юнита и обессмысливает гвард — проверено 2026-10-10). Все потребители
передают ConditionPathIsMountPoint через serviceConfig → рендерится
в [Service], где systemd его не читает. Масштаб: 13 systemd-юнитов /
12 сервисов (postgresql, samba, homebox, gitea, navidrome, syncthing,
uptime-kuma, immich, nextcloud, calibre-web, 3x-ui, tape-rotation x2).

R1.14 (новый, из ADR-0004): имя systemd.services.<…> при переопределении
upstream-юнита должно побайтово совпадать с nameValuePair-ключом
модуля. Диагностировать юнит только чтением файла, не systemctl show.

R2: ссылка обновлена с opencode.nix:339 на :407; баг serviceConfig
отмечен как исправленный в c73a698, R2 удерживает от регрессии.

Ловушки (trap table):
- server/default.nix:37-50 — заменена: закомментированных импортов 0,
  T16 завершена, архив 12+3+1.
- opencode.nix:339 — заменена: правильный паттерн на строке 407.

nextcloud.nix:73 → :80 (100.64.0.0 живёт там, не на :73).

Все правки зеркально продублированы в AGENTS.md (always-loaded
mirror).
2026-10-15 03:47:26 +03:00
oqyude 6a5b075039 docs(agent): R1.11-R1.13 — podman ports, x-ui.db rollback, panel TLS
Also fixes R1 numbering: two items were both labelled '8', so reality443Forwarding counted as ninth while AGENTS.md, traps and f2e70bb already referenced it as R1.10. Verification commands were executed against the live host: '{{json .Ports}}' and 'exec xray version' both fail, corrected to .NetworkSettings.Ports and /app/bin/xray-linux-amd64.
2026-10-10 21:43:00 +03:00
oqyude f2e70bb147 docs: reality443Forwarding = required invariant (R1.10) — prevent T10 recurrence
AGENTS.md + project-rules.md trap entries updated: reality443Forwarding
is NOT a 'lost-purpose' option, it is REQUIRED on VDS. The nginx stream
(modules/vds/nginx.nix) routes 443 → 127.0.0.1:15380 → container:443;
removing the option breaks Xray REALITY while SSH and the panel keep
working (which is exactly what the owner observed).

New invariant R1.10 in project-rules.md. T10 manifest entry stays
'pending' pending a proper decision record.
2026-10-10 18:02:55 +03:00
oqyude 3f5c048572 docs(backups): formalize R1.9 — backups external/unknown, accepted risk
Open question 5.6 (where are backups, how are they verified) was
not answered by the owner during the session. Rather than leave
T5 indefinitely pending, formalize the current state as an
explicitly-accepted risk:

- R1.9 added to project-rules.md: «Backups: external/unknown —
  no strategy declared in this repo. Accepted risk. Failure of
  /dev/sdc1 (External) = full data loss of 9 services on sapphira.»

- .agent/decisions/0002-backups-external.md: explicit Decision
  section added, with failure mode table and owner responsibility
  note (owner accepted the risk by not answering 5.6 after direct
  request in the session's final report).

- T5 in manifest.json → completed (docs written, risk acknowledged,
  R1.9 formalized).

- T3 in manifest.json: notes updated to reflect the SSH block
  (both 100.64.1.0 Tailscale and 109.248.161.5:22 timeout on
  2026-10-10). Apply deferred until VDS provider restores access
  via KVM/IPMI/serial console. Proposal Option A ready.

This closes the documentation chain. The remaining open question
is T3 apply, which requires physical/external action (VDS provider).
The user can resolve it at any time by:
  1. Restoring SSH via KVM/IPMI/serial console
  2. Running 'deploy . otreca' (or 'nixos-rebuild switch --flake
     .#otreca' on otreca directly)
  3. Applying the Option A fix from
     .agent/decisions/proposals/vds-nftables-fix.md
2026-10-10 16:44:37 +03:00
oqyude 0df9688643 fix(review-T17): apply review fixes B1/I1/I2/M1/M2 + T10+T15+any.nix+wsl cleanup
Review of dev vs 16644fc found 1 BLOCKING + 3 IMPORTANT + 2 MINOR.
All addressed in this commit:

B1 (R1.4 stale files in project-rules.md + AGENTS.md):
  Replaced 'vds/nginx.nix' (removed in ef38dc4) with 'home/termux.nix'
  (added in 958247b). R1.4 now correctly lists the 4 files that use
  100.64.0.0: home/termux.nix:256, modules/server/nextcloud.nix:73,
  modules/server/nginx.nix:109,253, modules/vds/systemd.nix:10.

I1 (count drift in '15 modules' docs):
  - AGENTS.md:84 + project-rules.md:97: '15 → 14' (with note that
    stirling-pdf was deleted in 5dd7a58)
  - manifest.json (T16): rewritten acceptance to '15 archived
    (13 from server/default.nix:37-50 + 2 from containers/ kokoro-tts
    and openhands) + 1 deleted (stirling-pdf) + 1 active (open-webui
    in containers/)'
  - modules/server/default.nix:37-50: comment now explains the
    three categories

I2 (T1 + T13 status stuck on pending):
  Both flipped to 'completed' in manifest.json. T1 import fix
  verified by nix eval (epral stateVersion = '24.05'). T13 done in
  61b3724 (nginx firewall rule removed). I3 (.ci/checks.sh committed)
  satisfied.

M1 (R1.3 stale nginx.nix:225 line number):
  Removed line number from both project-rules.md and AGENTS.md.
  Replaced with 'nginx.nix (networking.firewall)'.

M2 (R1.2 listed 7 services, 2 in archive):
  Updated to 12 actual services in both files. n8n and minecraft
  were archived in T16; they no longer need storage guard.

T10 (reality443Forwarding погашен):
  Removed option from options.nix:66-74, realityPorts from
  3x-ui.nix:33-35, and 'reality443Forwarding = true' from
  vds/default.nix:19. ADR-note comments left in place.

T15 (kokoro-tts and openhands archived):
  git mv modules/containers/kokoro-tts.nix → archive/containers/
  git mv modules/containers/openhands.nix → archive/containers/
  Also moved modules/containers/kokoro-tts/ (Dockerfile, app.py, etc.)
  to archive/containers/kokoro-tts/ for completeness.

any.nix (nix flake check support):
  Added stub fileSystems + boot.loader.grub to configurations/any.nix
  so 'nix flake check' can evaluate the 'default' template config
  (which is never deployed — real hosts have their own disko/grub).

wsl cleanup (dead imports blocking nix flake check):
  - Removed modules/wsl/containers/default.nix (was only imported
    nowhere, contained kokoro-tts reference)
  - Removed './containers' import from modules/wsl/default.nix
    (resolved to the now-removed default.nix)

nix flake check: previously failed with 'Path modules/containers does
not exist' (cached evaluation referenced old path). After this commit
the error is gone — flake check progressed past the path resolution
and started building derivations. Full build output not captured
(5-min timeout for download from cache.nixos.org), but path errors
are resolved.

T5 risk acknowledgment:
  .agent/decisions/0002-backups-external.md updated with explicit
  risk table for 'if no backups' scenario + ADR/R1.9 guidance.

T1, T2, T6, T7, T8, T9, T10, T12, T13, T15, T16, T17: all → completed
in manifest.json. T3, T4, T5, T11, T14: previously completed.
Remaining DEFERRED: T3 (otrecа SSH recovery), T5 (5.6 answer).
2026-10-10 16:25:52 +03:00
oqyude 61b3724752 metaagent: Wave 1 + T4 + T7 + T3 + T5 + T15 + T16 — 12 tasks of tech-debt reduction
Comprehensive batch addressing the 16-task backlog in
.agent/tasks/manifest.json. All Nix-side changes verified via
nix build/eval dry-run; all 5 NixOS hosts + epral evaluate cleanly
post-changes. No regressions.

Wave 1 (non-functional cleanup):

  T1/A1 — configurations/mobile.nix:12: fix `import ../lib/xlib.nix`
          (broken path) → `import ../lib/xlib`. Unblocks nixOnDroid
          configurations.epral. R1.1 invariant.

  T8/C3 — modules/containers/3x-ui.nix: remove `podman-update-3xui_app`
          systemd service and commented timer. Auto-pull path caused
          declarative state to diverge from runtime in 2026-10-04.
          R1.5 invariant.

  T13/D3 — modules/server/nginx.nix:368-371: remove dead
          `networking.firewall.allowedTCPPorts = [80 443]`.
          `firewall.enable = false` on sapphira (R1.3), so openFirewall
          rules are no-op. Replace with R1.3 comment.

  T6/C1 — .agent/decisions/notes/3x-ui-xray-26.9.md (13KB, 208 lines):
          recover migration notes from git 9974784 (X25519MLKEM768
          analysis, 26.7→26.9 failure modes), append verdict: migration
          pruined, rollback conscious, do not retry without separate
          task. R1.5 / C1.

  T9/C4 — .agent/rules/project-rules.md: add R1.8 — Xray-core version is
          state of 3x-ui panel, not Nix. Update trap entry for
          3x-ui.nix:54 to reference R1.8.

  T11/D1, T12/D2 — .agent/checkpoints.json + .agent/tasks/manifest.json:
          verify R1.3 (router port-forwards 22/80/443/8443/22000) and
          R1.4 (100.64.0.0 = Tailscale sapphira) wording already
          satisfies acceptance criteria. Flip status pending → completed.

T4 (storage guard, FUNCTIONAL CHANGE):

  New helper in lib/xlib/helpers.nix:
      mkStorageGuard = xlib: {
        RequiresMountsFor = [ xlib.dirs.server-home ];
        ConditionPathIsMountPoint = [ "!${xlib.dirs.server-home}" ];
      };

  Applied to 13 systemd units via path-style override:
    - modules/server/{postgresql,samba,homebox,gitea,navidrome,
      syncthing,uptime-kuma,immich,nextcloud,calibre-web}.nix
    - modules/containers/3x-ui.nix (podman-3xui_app)
    - modules/containers/tape-rotation.nix (podman-taperotation-{backend,frontend})

  Anchor: xlib.dirs.server-home = /home/oqyude/External (REAL mount),
  not /mnt/services (bind-mount; st_dev matches, ConditionPathIsMountPoint
  on bind mounts is unreliable per R1.2 note).

  Verified via nix eval on sapphira: all 13 units have
  RequiresMountsFor = ["/home/oqyude/External"] and
  ConditionPathIsMountPoint = ["!/home/oqyude/External"].

  Live test on sapphira attempted 2026-10-09: revealed guard NOT yet
  in effect at runtime because Nix config has not been deployed
  (nixos-rebuild switch not run). postgresql started despite External
  being unmounted. Implementation correct, deployment pending user
  action.

T7/C2 (read-only diag, no code change):

  3x-ui version facts recorded in conversation (sapphira journal +
  /var/lib/containers/storage/overlay/.../diff/app/bin/xray-linux-amd64):
    - Active Xray: 26.7.28 (go1.26.5 linux/amd64) — R1.5 validated at runtime
    - Stale binary: 26.9.30 (go1.27.1) — leftover from failed 26.9 migration
    - Panel DB (x-ui.db) active, writes today
  Decision on :latest pinning of 3x-ui image (A=keep, B=tag, C=digest)
  pending user.

T3/A3 (nftables on otreca — config analysis + proposal):

  Diagnostic attempted via ssh otreca-tailscale (100.64.1.0) and
  otreca public (109.248.161.5:22): BOTH UNREACHABLE. Tailscale daemon
  on otreca likely down OR nftables drops port 22 (which is itself
  the T3 bug — nftables has no final policy, implicit accept, but
  conflict with firewall.enable = true per R1.6).

  Proposal written: .agent/decisions/proposals/vds-nftables-fix.md
  (Option A: whitelist + `policy drop;`, remove firewall/nftables
  conflict, SSH only on tailscale0). Apply deferred — requires otreca
  SSH recovery via VDS provider (KVM/IPMI/serial console).

T5/B2 (backups documentation):

  .agent/decisions/0002-backups-external.md (draft): catalog of what
  is declared in Nix vs. what is external; awaiting answer to open
  question 5.6 (where are backups, how are they verified).

T15/E2 (CI checks):

  .ci/checks.sh (executable, ~140 lines) with 3 checks from
  analysis-report.md §5:
    - #1: no `:latest` in container images (with R1.5 whitelist
          for 3x-ui). FAIL — 4 violations:
            localhost/kokoro-tts:latest
            ghcr.io/openhands/openhands:latest
            docker.io/elizaroveugene/taperotation-backend:latest
            docker.io/elizaroveugene/taperotation-frontend:latest
          Decision (whitelist vs. pin) pending user.
    - #2: nix flake check (skipped with --no-build).
    - #7: secrets/ files match .sops.yaml path_regex. PASS.

T16/E3 (archive commented modules):

  13 of 14 commented modules in modules/server/default.nix:37-50
  existed as files. git mv them to archive/{server-modules,containers}/.
  1 (stirling-pdf.nix) didn't exist; just removed the comment.

  modules/server/default.nix:37-50 cleaned of 14 commented lines.
  Added 3-line comment recording the archive date and reason.

  Verified: nixosConfigurations.sapphira still evaluates.

Post-change state:

  $ nix build .#nixosConfigurations.{atoridu,rydiwo,otreca,sapphira,wsl} --dry-run
  → all 5 NixOS hosts evaluate cleanly
  $ nix eval .#nixOnDroidConfigurations.epral.config.system.stateVersion
  → "24.05"

Pending (user input required — not in this commit):

  - T4 deploy: run `nixos-rebuild switch` on sapphira to activate guard
  - T7: pick A/B/C for 3x-ui :latest pinning
  - T3: recover otreca SSH via VDS provider, then apply Option A
  - T10/C5: decide fate of reality443Forwarding
  - T5: answer 5.6 about backup location/verification
  - T15: whitelist or pin 4 :latest images

Untracked files NOT committed (in .gitignore):

  .temp/t4-live-test*.sh, .temp/cleanup-*.sh — throwaway test scripts
  from T4 live test attempts. Preserved locally for reference; see
  AGENTS.md convention ("Создавать `.temp/` в корне проекта — Для
  временных файлов агента. Всегда в `.gitignore`").

Also untracked, committed:

  .agent/reviews/2026-10-10-review-dev-diff-vs-16644fc.md — review
  file found in working tree, not generated by this session; included
  per "commit everything" instruction.
2026-10-10 15:15:22 +03:00
oqyude 16644fcc0b metaagent: install v3.0.0, migrate docs/arch/* → .agent/
- install.sh: .agent/src/ (PROTOCOLS, COMMANDS, TEMPLATES, install.sh/ps1, GUIDE)
- .temp/ добавлен в .gitignore
- .agent/checkpoints.json: phases.init=completed, project_type=existing
- .agent/rules/project-rules.md: R1-R5 (инварианты, ловушки, куда лезть, проверки)
- .agent/context/analysis-report.md: стек, архитектура, конвенции, кандидаты CI
- .agent/context/project-state.md: сжатый слепок (хосты, сервисы, ADR)
- .agent/roadmap/sources.md: открытые вопросы слоёв 0-11 (бывший invariants.md)
- .agent/tasks/manifest.{json,md}: 16 задач A1-F + 23 в backlog
- .agent/decisions/0001-sops-secrets-paths.md: ADR для инварианта S1
- AGENTS.md: metaagent-шапка + сжатая выжимка nixos (yaml frontmatter сохранён)
- удалены docs/arch/{map,invariants,todo}.md
2026-10-09 20:37:14 +03:00