877caa381d9f4bc1ef0d6b9def0ca6489f322b9a
12
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
1799cd3bc2 |
docs(agent): T59 + ADR-0008 — PowerShell в системные пакеты sapphira
T59 фиксирует задачу владельца 2026-10-27 и её проверки: pwsh 7.6.6 в systemPackages только у sapphira (otreca/atoridu/rydiwo/wsl — 0), сборка nixos-rebuild build --flake .#sapphira успешна, .ci/checks.sh --no-build PASS 4 / FAIL 0. ADR-0008 объясняет границу выбора: configurations/server.nix (тело модуля ровно одной записи реестра) вместо modules/essentials/packages.nix (общий список всех NixOS-хостов, замыкание powershell — 300.2 МиБ), и почему powershell в lib/ci-tools.nix при этом остаётся (PATH джобы раннера ≠ системный PATH). Отдельно зафиксировано, что правка НЕ развёрнута: бинарь появится только после nixos-rebuild switch|boot. |
||
|
|
9890786136 |
docs(agent): nix-checks CI verified (run 144, success ~97s)
After the runs-on: native fix the workflow finally executes: run 141 was
cancelled by the concurrency group, run 144 on
|
||
|
|
61c5f01b4b |
ci: evaluate only sapphira on the self-hosted runner
The only runner is gitea-runner-ci-sapphira, running on the same 2-core / 5.6 GiB host as ~20 production services. Evaluating all seven configurations took 40+ minutes and pushed the host into swap. - checks.sh is invoked with --no-build, so check #2 (full nix flake check, every host) no longer runs in push CI - only .#nixosConfigurations.sapphira is evaluated: a broken sapphira is an immediate CI-runner outage; other hosts are verified explicitly per change - workflow_dispatch added, timeout 45 -> 20 min, and concurrency group cancels superseded runs instead of queueing them on the same host Docs: AGENTS checks section, project-state test-runner row, T39 notes. |
||
|
|
b7bce546b6 |
chore(agent): record the sapphira activation (generation 859)
Live state after switch: guard condition present on 13/13 units under [Unit], phantom samba/nextcloud/immich units gone, nginx serves lamet with upstream 100.106.21.39:4096 (6061 no longer answers). systemctl --failed is empty. |
||
|
|
5f3131ea3e |
chore(agent): close T3/T20/T38/T57 and sync metadata with the tree
- 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
|
||
|
|
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 в
|
||
|
|
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 после «проверяться.» |
||
|
|
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 удалён в
|
||
|
|
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
|