bb8dcd38d58b1b7c19e0c13041082a7f4d3a4d27
20
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
fd09704c76 |
chore(agents): metastate cleanup — sync checkpoints↔manifest, fix handoff T18/T32, dedup AGENTS.md invariant 12, fix backlog_count 28→30
test-runner / smoke (push) Canceled after 0s
Detected drift: - checkpoints.json:tasks[] (T1-T20 + T35) устаревал vs manifest.json:tasks (T1-T33); tasks[] удалён полностью (manifest.json — единственный source of truth по задачам, per checkpoints-schema v3.0 + protocol 6.3 archival deviation). T35-призрак перенесён в closed_attempts[]. - checkpoints.json:phases (execution=completed, handoff=in_progress) расходились с manifest.json (execution=in_progress, handoff=pending). Синхронизированы на manifest-версию + AGENTS.md:159-163 обновлён до того же набора с комментарием про source of truth. - AGENTS.md:87 инвариант 12 заканчивался дублированным R1.14-блоком про escapeSystemdPath (остался с сессии 14:30). Удалён хвостовик, инвариант 12 теперь корректно заканчивается на R1.15, ADR-0005. - handoff-summary.md:74 T18 в pending таблице (формально completed в manifest с saga close-out), строка удалена. handoff-summary.md:90 T32 в pending таблице (тоже completed) — статус изменён на completed 2026-10-15T14:30. Сопутствующие ссылки T18/T32 в «Project State» и «Next Steps» тоже приведены к актуальному состоянию. - manifest.json:backlog_count=28 был арифметически неверен (22 F-вопроса + 8 pending задач = 30); F-листинг включал закрытый 5.6, а счётчик «новых pending» не учитывал T20. Исправлено на 30 с breakdown блоком и переписанной backlog_note. - checkpoints.json:resolved_doc_drift — 3 deferral'а (checkpoints↔manifest-tasks, agentsmd- invariant12-dup-r114, checkpoints-phases-vs-manifest) закрыты с resolved_at=2026-10-15T17:42Z и описанием фикса в каждом. - checkpoints.json:session_id и session_chain обновлены до текущей сессии metaagent-cleanup-2026-10-15T17:42Z. - manifest.json:session_id и date обновлены до 2026-10-15T17:42; session_id показывает всю цепочку init → director → attempt(rollback) → cleanup. - AGENTS.md frontmatter date-modified: 2026-10-15T03:00 → 2026-10-15T17:42. Not changed (out of scope): - metaagent-director/AGENTS.md + README.md (другой репо, не закоммичены) - 4 reflog-коммита от попытки шима ( |
||
|
|
df975804e8 |
chore(agents): meta-state refresh — herdr attach attempt reverted, dev force-reset to 3d4f1f5
test-runner / smoke (push) Canceled after 0s
Сессия metaagent-attempt-2026-10-15T20:25Z закрыта. Попытка ( |
||
|
|
999378a3a0 |
docs(agents): saga close-out — T18/T32 closed, T33 added, ADR-0005 maintenance procedure зафиксирована
test-runner / smoke (push) Canceled after 0s
Saga: пользовательский репорт «rydiwo — Connection failed / Could not start
dynamically linked executable: bun» → три слоя фиксов на NixOS + plugin
update + closeout. Закрыта 2026-10-15T15:00.
ADR-0005 (.agent/decisions/0005-herdr-webui-no-authelia.md):
• Maintenance procedure переписана с устаревшей «herdr plugin update» (такой
команды нет — veriried 2026-10-15, herdr plugin --help показывает
enable|disable|action|log|pane|list|install) на фактический 7-шаговый
flow, отработанный на переходе 79beb36 → 439ad38:
1. cp active → .patched.bak (НЕ в .orig, там upstream-версия от install)
2. git checkout -- server/machine-security.ts (сброс unstaged patch)
3. git pull --ff-only origin main
4. cp .patched.bak active (восстановить)
5. cd $PLUGIN_DIR && bun install + bun run build
6. **python-edit ~/.config/herdr/plugins.json:source.resolved_commit**
(это поле обновляется ТОЛЬКО через herdr plugin install; без шага 6
herdr plugin list будет показывать старый коммит после рестарта — главный gotcha)
7. systemctl --user restart herdr + herdr plugin list | grep devswha
• Новый раздел «Runtime prerequisites на NixOS» (3 слоя, каждый проявляется
после починки предыдущего): pkgs.bun + pkgs.nodejs_22 в shell PATH
(home/modules/herdr-runtime.nix) + programs.nix-ld.enable = true глобально
(modules/essentials/packages.nix, stdenv.cc.cc.lib). Trap: системный bun
в PATH НЕ чинит запуск скачанного плагином bun'а (plugin использует свой
runtime manager, а не fallback).
manifest.json:
• T18 → completed (fix в
|
||
|
|
fb36f78690 |
docs(agents): document deploy .#rydiwo as next physical action (T22 fix landed)
test-runner / smoke (push) Canceled after 0s
T22 в tasks/manifest.json: 'warning' (stale: «home/secondary.nix НЕ закоммичен») → три новых поля: • fix_landed: |
||
|
|
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 после «проверяться.» |
||
|
|
57182e2a4d |
agents(narrative): refresh project-state, handoff, roadmap
test-runner / smoke (push) Canceled after 0s
project-state.md: контейнеры 6 → 4 (3xui_app, taperotation-backend,
taperotation-frontend, open-webui); mkServiceStorage → mkStorageGuard;
T4 переписан под 13/12 + RequiresMountsFor отсутствует намеренно;
добавлен ADR-0002 в Decisions in Effect; дрейф manifest.md помечен
как устранённый; nftables атрибутирован configurations/vds.nix:71-91;
добавлена заметка про завис nix flake check в этой сессии (T2
не отзывается — коммит
|
||
|
|
817e7c3d32 |
agents(state): metastate refresh 2026-10-15 (T19, T20, ADR-0002, manifest.md)
Фаза 06_METASTATE: рефреш бухгалтерского слоя.
Фазы manifest.json и checkpoints.json синхронизированы (analyse,
roadmap, decomposition, metastate теперь completed).
T4 (мёртвый storage-guard): notes переписан под 13/12, убрана ложная
рекомендация RequiresMountsFor, направление починки через unitConfig/
unit., ссылка на ADR-0004.
T15 (CI/pre-commit): ложное «.ci/checks.sh (executable)» заменено
на факт режима 100644 (см. T20).
T16 (E3, закомментированные модули): notes отражает современное
состояние (0 закомментированных, 12 в archive/server-modules/ + 3 в
archive/containers/ + stirling-pdf.nix удалён в
|
||
|
|
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
отмечен как исправленный в
|
||
|
|
5dd98b8525 |
agents(decisions): add ADR-0004 — phantom systemd unit при переопределении upstream
Переопределяя systemd-юнит, который порождает upstream-модуль через nameValuePair (например services.gitea-actions-runner), имя атрибута в systemd.services.<…> должно побайтово совпадать с тем, что передаётся в nameValuePair. escapeSystemdPath превращает '-' в литеральный '\x2d', что для gitea-runner-ci-sapphira даёт ключ gitea-runner-ci\x2dsapphira (с обратным слэшем). Обе формы рендерятся в один и тот же файл, но это два разных атрибута; неэкранированный вариант создаёт фантомный юнит без ExecStart, который выигрывает рендер — и systemd отказывается стартовать. Юнит gitea-runner-ci-sapphira молчал 12 часов (2026-10-14 16:25 → 2026-10-15 01:23). Фикс — unitKey = "gitea-runner-ci\\x2dsapphira" плюс assertions- растяжка в modules/server/gitea-runner.nix, которая валит сборку при отсутствии ExecStart. Этот же ADR формализует инвариант R1.14 (см. .agent/rules/project-rules.md). Смежная находка: ConditionPathIsMountPoint в mkStorageGuard (lib/xlib/helpers.nix:180-189) попадает в [Service] и игнорируется systemd — задача T4 остаётся pending. |
||
|
|
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
|
||
|
|
31f13ae365 |
docs(3x-ui): ADR-0003 — record immutable parts of the otreca REALITY chain
T10 removal of reality443Forwarding killed REALITY for 1.5h and looked like a total server outage. Records the 16:25->19:19 timeline, the failure signature (panel answers, 15380 refused), and rejects 3 alternatives: raising worker_connections, banning the retry storm, pinning the image. |
||
|
|
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. |
||
|
|
07a0437c13 |
fix(3x-ui): restore reality443Forwarding — T10 removal broke Xray REALITY
Owner: 'reality443Forwarding точно ли стоило удалять? xray по прежнему
не работает, несмотря на то, что ssh и pubray1.zeroq.su работают.'
T10/C5 decision (б) was WRONG. modules/vds/nginx.nix was never touched
and still routes:
pubray1.zeroq.su → 127.0.0.1:2049 (panel)
pubrayx1.zeroq.su → 127.0.0.1:15380 (Xray REALITY)
default → 127.0.0.1:15380 (fallback)
Removing the container mapping 127.0.0.1:15380:443/tcp made the nginx
stream forward TLS to a dead port → Xray REALITY unreachable. SSH and
pubray1.zeroq.su kept working because they do NOT depend on 15380.
Restored (exact pre-T10 code from
|
||
|
|
37b4956a25 |
revert(vds-nftables): restore original config — T3 fix needs discussion
Owner request 2026-10-10: 'отмени вообще правки файрволла, верни пока какие были до твоих работ. это требует обсуждения, потому что по прежнему ничего не работает, сайт не открывается, reality не работает.' This reverts 5 T3 code commits + 2 T3 doc commits: |
||
|
|
677d39e967 | docs(T3): note correction — SSH on all interfaces, not just tailscale0 | ||
|
|
fafd3e2df7 |
docs(T3): mark nftables fix as applied + accepted
T3/A3 completed 2026-10-10: otreca nftables fix deployed via
nixos-rebuild switch. Verification on otreca:
- nft list ruleset: policy drop + 5 explicit accepts
(lo, established/related, ICMP, traceroute 33434-33534,
SSH on tailscale0, Xray REALITY 443) + log+drop
- iptables empty (no firewall.* shadow rules)
- SSH via Tailscale: works (the deploy itself proves it)
- Xray REALITY on 443: listening (sapphira → otreca XHTTP intact)
manifest.json T3 → completed with full notes.
.decisions/index.json T3-A proposal → accepted (status, files
updated to include configurations/vds.nix, notes with verification).
All 17 manifest tasks now resolved (1 truly deferred was T5 backups
risk — formalized as R1.9 in commit
|
||
|
|
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
|
||
|
|
0df9688643 |
fix(review-T17): apply review fixes B1/I1/I2/M1/M2 + T10+T15+any.nix+wsl cleanup
Review of dev vs |
||
|
|
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
|
||
|
|
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
|