1d32eab7e36ea25474e16408ef34e7129965edff
9
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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.
|
||
|
|
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
|
||
|
|
2ed525b9f5 |
chore: anchor the scripts ignore rule and keep the guard verifier (T48)
.gitignore had `scripts` as an unanchored pattern. A pattern without a slash
matches a directory of that name at ANY depth, so a future
modules/*/scripts/ would have been silently ignored — the kind of thing that
only shows up as "why is my file not in git". It is anchored to /scripts/
now. No tracked file was matched before or after (verified with
`git ls-files | git check-ignore --stdin --no-index`, empty both ways).
The 22 scripts in .temp/ are not committed wholesale: they are eight
iterations of one T4 test (t4-final-v5..v8), three of another
(t4-live-test{,v2,v3}), plus one-shot deploy/cleanup/diagnose scripts that
hardcode `cd /mnt/s/Git/nixos` and perform umount / mount --move. Committing
them would be noise, not knowledge.
One of them is reusable and non-destructive, so it is preserved:
.ci/verify/guard-non-destructive-verify.sh. It creates two throwaway systemd
units (ConditionPathIsMountPoint=/nonexistent must refuse to start,
=/mnt/services must start) and resets them, so it can be run against a live
host to prove the condition is evaluated at all. That is the check the owner
needs for T52. Content is byte-identical to the .temp original
(md5 b0ac8081aae568a3db921fb64f4c0a05) and passes shellcheck -S error.
Not pushed.
|
||
|
|
3fb1f3ca6e |
fix(ci): drop the stale 3x-ui whitelist entry and the wrong helper name (T43)
Check #1 allows `:latest` images listed in LATEST_ALLOWLIST. The list still carried `ghcr.io/mhsanaei/3x-ui:latest` with the comment "panel frozen on :latest", but the panel has been pinned to `ghcr.io/mhsanaei/3x-ui:v3.10.2` since 2026-10-20 (modules/containers/3x-ui.nix:62, R1.5). The entry matched nothing, and the comment stated the opposite of the invariant it cited. Consequence of the stale entry: if someone reverted the pin to `:latest`, the check would have stayed green and said nothing. Verified by mutation — with v3.10.2 temporarily replaced by :latest the check now reports "Images using :latest (not in whitelist): ghcr.io/mhsanaei/3x-ui:latest"; before this commit the same mutation passed silently. Also: check #4's description named `mkServiceStorage`, while the guard the consumers actually call is `mkStorageGuard` (lib/xlib/helpers.nix:180). Both names exist in that file and mean different things, so the comment pointed at the wrong helper. Now it names the right one and says so explicitly. `bash .ci/checks.sh --no-build` -> PASS 3 / FAIL 0, before and after; the current tree contains exactly two `:latest` images, both tape-rotation, both still whitelisted. Not pushed. |
||
|
|
1b188fbdb5 |
test(ci): add an import-graph check, green on the current tree (T41 net)
Nothing in this repo verifies that an import actually resolves. That matters
here more than usual: several modules are referenced only through
commented-out import lines, and 15 .nix files sit outside the import graph
entirely, so a stale reference is invisible until someone uncomments it or
nix evaluation happens to touch that file.
The check is deliberately narrow: it matches only two import shapes — a line
whose whole content (after an optional `#`) is a relative path, and
`import ../foo` / single-line `imports = [ ./a ./b ]`. Prose and shell-script
bodies are not matched, and anything containing `${...}` is skipped because it
cannot be resolved statically. Commented-out import lines ARE matched on
purpose: a comment naming a deleted file still misleads the next reader.
Baseline on the current tree: 132 .nix files, 120 import references, all
resolve. Wired in as check #8 of .ci/checks.sh; skips when python3 is absent.
`bash .ci/checks.sh --no-build` → PASS 3 / FAIL 0.
Not pushed.
|
||
|
|
95a4f92075 |
fix(ci): проверка sops должна обходить все secrets/, а не только корневой
Проверка #7 искала файлы только в secrets/ и не замечала вложенные каталоги: modules/server/secrets/, modules/containers/secrets/, modules/essentials/secrets/, modules/wsl/secrets/. Теперь обходятся все файлы под */secrets/*, а совпадения, требующие непривязанного правила (поведение sops для вложенных каталогов), перечисляются отдельно — предположение видно, а не спрятано. PASS: 2 FAIL: 0; 13 файлов помечены как требующие непривязанного правила. |
||
|
|
ca450f1332 |
fix(ci): mark .ci/checks.sh executable (T39a)
The script has a shebang and its own usage header documents `./.ci/checks.sh`, but git tracked it as mode 100644. Both call sites exec it directly: .pre-commit-config.yaml:10 entry: .ci/checks.sh --no-build .github/workflows/nix-checks.yml:20 run: .ci/checks.sh so both failed with "Permission denied" before running a single check. This was already tracked as T20 in .agent/tasks/manifest.json. core.fileMode is false in this checkout, which is why the on-disk permission never made it into the index. `git update-index --chmod=+x` sets the mode in the index explicitly, regardless of core.fileMode. Mode-only change: no content of the script is touched. Not pushed. |
||
|
|
55fc093ec6 |
ci(checks): whitelist tape-rotation-backend/frontend for :latest
tape-rotation is an SQLite-backed tape tracking app, similar to
3x-ui in that:
- data lives on /home/ooyude/External (storage-guarded as of T4)
- images are small and updated manually via Nix
- :latest is acceptable because breaking image changes would
fail fast at container start (storage guard + systemd)
Three image :latest entries are now whitelisted (with rationale):
- ghcr.io/mhsanaei/3x-ui:latest (R1.5 — panel frozen, Xray is panel state)
- docker.io/elizaroveugene/taperotation-backend:latest (this commit)
- docker.io/elizaroveugene/taperotation-frontend:latest (this commit)
Two :latest violations remain (both in modules/containers/ but NOT
imported in modules/server/default.nix — effectively dead code):
- localhost/kokoro-tts:latest
- ghcr.io/openhands/openhands:latest
Decision pending: archive like T16, whitelist, or remove. They are
not running on sapphira, so the check failure is informational only.
|
||
|
|
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
|