fix(kb): 13 pozostalych odwolan do sciezek sprzed migracji
Weryfikacja 0-odwolan z 01db57a liczyla tylko podzbior prefiksow — poza nim
zostalo 13 wskaznikow w plikach niemarkdownowych i w prozie dokumentow:
docs/kb/modules/05-faza3-plan.md -> kb/phases/kb-m5-faza3.md (2x systemd)
docs/kb/modules/05-faza4-plan.md -> kb/phases/kb-m5-faza4.md (kb-query app.js)
docs/kb/modules/DECYZJE-*.md -> kb/decisions/kb-dokumenty-otwarte.md
docs/backlog.md (npm panel admina) -> kb/decisions/backlog-aktywne.md
docs/backlog/ (uid/gid floty) -> kb/decisions/backlog-uid-gid-flota.md
docs/kb/modules/0X-*.md -> kb/phases/kb-m*.md
docs/incidents/2026-07-30-*.md -> kb/incidents/ (3x node-agent)
docs/architecture/RECON-multi*.md -> kb/subsystems/recon-multiagent.md
jobs/deploy-runner/README.md -> kb/services/job-deploy-runner.md
Wyjatek zamierzony: `docs/kb/modules/05-faza3-pilot-streszczen.md` w §11 planu
fazy 3 to nazwa artefaktu, ktory nigdy nie powstal — przepiety na docelowa
konwencje (kb/phases/kb-m5-faza3-pilot-streszczen.md), zeby przyszly plik
wyladowal w nowym drzewie, a nie w skasowanym katalogu.
Weryfikacja: skan po 67 sciezkach zmigrowanych w tej galezi (git grep -F na
kazdej) = 0 trafien poza docs/sessions (logi historyczne, celowo nietkniete);
0 martwych linkow markdown na 190 plikach; check_okf.py 190/190 ZGODNE.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6d52452a3d
commit
9128530589
|
|
@ -4,7 +4,7 @@ services:
|
||||||
- NODE_NAME=vps
|
- NODE_NAME=vps
|
||||||
- CHECK_INTERVAL=60
|
- CHECK_INTERVAL=60
|
||||||
# TEMPORARY mitigation (M1) for the unfiltered-prune incident
|
# TEMPORARY mitigation (M1) for the unfiltered-prune incident
|
||||||
# (docs/incidents/2026-07-30-ollama-solaria-vanish.md §7). node-agent runs
|
# (kb/incidents/2026-07-30-ollama-solaria-vanish.md §7). node-agent runs
|
||||||
# `docker container prune()` with NO filters every CHECK_INTERVAL, and the
|
# `docker container prune()` with NO filters every CHECK_INTERVAL, and the
|
||||||
# Docker API removes EVERY non-running container regardless of restart
|
# Docker API removes EVERY non-running container regardless of restart
|
||||||
# policy or compose labels — this already destroyed ollama@solaria. On VPS
|
# policy or compose labels — this already destroyed ollama@solaria. On VPS
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# homelab-deploy-runner.service — host-side executor for control-plane `redeploy`
|
# homelab-deploy-runner.service — host-side executor for control-plane `redeploy`
|
||||||
# actions (docs/architecture/RECON-multiagent-2026-07-27.md D14/D15).
|
# actions (kb/subsystems/recon-multiagent.md D14/D15).
|
||||||
#
|
#
|
||||||
# Host-level and NOT a container, deliberately: it runs `docker compose` the way
|
# Host-level and NOT a container, deliberately: it runs `docker compose` the way
|
||||||
# a human deploy does, so relative bind mounts and the compose project name
|
# a human deploy does, so relative bind mounts and the compose project name
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# kb-ingest.service — module 5 phase 3 step 5 (docs/kb/modules/05-faza3-plan.md §7.1).
|
# kb-ingest.service — module 5 phase 3 step 5 (kb/phases/kb-m5-faza3.md §7.1).
|
||||||
# First systemd unit in this repo: deliberately host-level, not a container — the job
|
# First systemd unit in this repo: deliberately host-level, not a container — the job
|
||||||
# needs simultaneous LAN (Paperless), local DB (kb-postgres@PIHA), and Tailscale (Ollama@
|
# needs simultaneous LAN (Paperless), local DB (kb-postgres@PIHA), and Tailscale (Ollama@
|
||||||
# SOLARIA) access; containerizing it buys nothing here.
|
# SOLARIA) access; containerizing it buys nothing here.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# kb-ingest.timer — module 5 phase 3 step 5 (docs/kb/modules/05-faza3-plan.md §7.1).
|
# kb-ingest.timer — module 5 phase 3 step 5 (kb/phases/kb-m5-faza3.md §7.1).
|
||||||
# Daily at 03:30, not hourly: the plan fixes this schedule explicitly (low-traffic window,
|
# Daily at 03:30, not hourly: the plan fixes this schedule explicitly (low-traffic window,
|
||||||
# and the underlying jobs are full-corpus re-scans each tick — cheap at 186 documents
|
# and the underlying jobs are full-corpus re-scans each tick — cheap at 186 documents
|
||||||
# today, but daily keeps headroom as the corpus grows). Persistent=true catches up after a
|
# today, but daily keeps headroom as the corpus grows). Persistent=true catches up after a
|
||||||
|
|
|
||||||
|
|
@ -448,7 +448,7 @@ Próbka 25 dokumentów (stratyfikowana: polisy, faktury, umowy, urzędowe, FLL/s
|
||||||
- **kompletność faktów kluczowych** (kwoty, daty, strony, numery),
|
- **kompletność faktów kluczowych** (kwoty, daty, strony, numery),
|
||||||
- **jakość tagów** (trafność + zgodność ze słownikiem).
|
- **jakość tagów** (trafność + zgodność ze słownikiem).
|
||||||
|
|
||||||
Wynik do `docs/kb/modules/05-faza3-pilot-streszczen.md`: tabela per dokument + wnioski.
|
Wynik do `kb/phases/kb-m5-faza3-pilot-streszczen.md`: tabela per dokument + wnioski.
|
||||||
**Kryterium „lokalny wystarcza na skalę mailową"**: mediana wierności = 2 (zero tolerancji
|
**Kryterium „lokalny wystarcza na skalę mailową"**: mediana wierności = 2 (zero tolerancji
|
||||||
dla przekręconych kwot — to trafia do wiki) i kompletność ≥ 80% punktów API. Jeśli lokalny
|
dla przekręconych kwot — to trafia do wiki) i kompletność ≥ 80% punktów API. Jeśli lokalny
|
||||||
nie daje rady → decyzja o skali mailowej rozważa API z polityką eskalacji fazy 5 (koszt
|
nie daje rady → decyzja o skali mailowej rozważa API z polityką eskalacji fazy 5 (koszt
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ so Paperless can read them. If the chown fails (e.g. the job isn't running as
|
||||||
root/uid 1000), a warning is logged but the run continues — the write itself
|
root/uid 1000), a warning is logged but the run continues — the write itself
|
||||||
already succeeded; fix ownership/perms on `consume/` separately if needed.
|
already succeeded; fix ownership/perms on `consume/` separately if needed.
|
||||||
PIHA's uid/gid convention across the fleet is tracked as its own tech-debt
|
PIHA's uid/gid convention across the fleet is tracked as its own tech-debt
|
||||||
item (see `docs/backlog/`), not solved here.
|
item (see `kb/decisions/backlog-uid-gid-flota.md`), not solved here.
|
||||||
|
|
||||||
## Idempotency — registry
|
## Idempotency — registry
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ links: []
|
||||||
> Dokument-master filaru dokumentow. Stoi pod `kb-00-overview.md`.
|
> Dokument-master filaru dokumentow. Stoi pod `kb-00-overview.md`.
|
||||||
> Cel: kazda sesja / Claude Code startuje z pelnym kontekstem decyzji.
|
> Cel: kazda sesja / Claude Code startuje z pelnym kontekstem decyzji.
|
||||||
> Status: ARCHITEKTURA ZAMKNIETA (2026-07-01), implementacja modulowa czeka.
|
> Status: ARCHITEKTURA ZAMKNIETA (2026-07-01), implementacja modulowa czeka.
|
||||||
> Moduly implementacyjne: `docs/kb/modules/0X-*.md` — puszczane CC jeden po drugim.
|
> Moduly implementacyjne: `kb/phases/kb-m*.md` — puszczane CC jeden po drugim.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ NPM_PIHA_PASS=CHANGEME
|
||||||
|
|
||||||
# VPS — public ingress. Panel admina osiagalny WYLACZNIE przez Tailscale mesh
|
# VPS — public ingress. Panel admina osiagalny WYLACZNIE przez Tailscale mesh
|
||||||
# (http://100.95.58.48:81). NIGDY nie uzywac publicznego IP (135.181.153.108:81) —
|
# (http://100.95.58.48:81). NIGDY nie uzywac publicznego IP (135.181.153.108:81) —
|
||||||
# patrz docs/backlog.md, wpis o publicznej ekspozycji panelu admina.
|
# patrz kb/decisions/backlog-aktywne.md, wpis o publicznej ekspozycji panelu admina.
|
||||||
NPM_VPS_USER=CHANGEME
|
NPM_VPS_USER=CHANGEME
|
||||||
NPM_VPS_PASS=CHANGEME
|
NPM_VPS_PASS=CHANGEME
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ services:
|
||||||
- /opt/homelab:/opt/homelab
|
- /opt/homelab:/opt/homelab
|
||||||
# Read-only since the redeploy fix: the executor used to run
|
# Read-only since the redeploy fix: the executor used to run
|
||||||
# scripts/deploy/deploy-node.sh out of this mount (it never worked — see
|
# scripts/deploy/deploy-node.sh out of this mount (it never worked — see
|
||||||
# jobs/deploy-runner/README.md). Deploys now happen on the node itself, so
|
# kb/services/job-deploy-runner.md). Deploys now happen on the node itself, so
|
||||||
# nothing here needs write access to the checkout.
|
# nothing here needs write access to the checkout.
|
||||||
- ../..:/repo:ro
|
- ../..:/repo:ro
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// kb-query frontend -- module 5 phase 4 (docs/kb/modules/05-faza4-plan.md §7). Vanilla JS, no
|
// kb-query frontend -- module 5 phase 4 (kb/phases/kb-m5-faza4.md §7). Vanilla JS, no
|
||||||
// build step (plan §2 decision 4): fetch()s /search, renders results grouped by envelope_id.
|
// build step (plan §2 decision 4): fetch()s /search, renders results grouped by envelope_id.
|
||||||
//
|
//
|
||||||
// Threshold rule (plan §7, task spec): dist < 0.45 green, 0.45-0.55 yellow (still rendered with
|
// Threshold rule (plan §7, task spec): dist < 0.45 green, 0.45-0.55 yellow (still rendered with
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# docker-compose.yml and fill in real values. Never commit .env.
|
# docker-compose.yml and fill in real values. Never commit .env.
|
||||||
|
|
||||||
# LAN IP of the node Nextcloud lands on. Host decided: PIHA (see
|
# LAN IP of the node Nextcloud lands on. Host decided: PIHA (see
|
||||||
# docs/kb/modules/DECYZJE-do-podjecia.md #1). The web port (8220) binds ONLY
|
# kb/decisions/kb-dokumenty-otwarte.md #1). The web port (8220) binds ONLY
|
||||||
# to this interface — never 0.0.0.0.
|
# to this interface — never 0.0.0.0.
|
||||||
LAN_BIND_IP=192.168.31.5
|
LAN_BIND_IP=192.168.31.5
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -638,7 +638,7 @@ class NodeAgent:
|
||||||
NEVER uses containers.prune(): the Docker API removes *every*
|
NEVER uses containers.prune(): the Docker API removes *every*
|
||||||
non-running container, ignoring RestartPolicy and compose labels. That
|
non-running container, ignoring RestartPolicy and compose labels. That
|
||||||
is what deleted `ollama` on SOLARIA 19 s after an operator stopped it
|
is what deleted `ollama` on SOLARIA 19 s after an operator stopped it
|
||||||
(docs/incidents/2026-07-30-ollama-solaria-vanish.md). No filter can fix
|
(kb/incidents/2026-07-30-ollama-solaria-vanish.md). No filter can fix
|
||||||
it either — `until` filters on creation time, not stop time, so it
|
it either — `until` filters on creation time, not stop time, so it
|
||||||
never protects a long-lived service.
|
never protects a long-lived service.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
"""Tests for NodeAgent Docker cleanup — regression cover for the 2026-07-30
|
"""Tests for NodeAgent Docker cleanup — regression cover for the 2026-07-30
|
||||||
unfiltered-prune incident (docs/incidents/2026-07-30-ollama-solaria-vanish.md).
|
unfiltered-prune incident (kb/incidents/2026-07-30-ollama-solaria-vanish.md).
|
||||||
|
|
||||||
`containers.prune()` removes EVERY non-running container, ignoring restart
|
`containers.prune()` removes EVERY non-running container, ignoring restart
|
||||||
policy and compose labels; that is what deleted `ollama` on SOLARIA 19 s after
|
policy and compose labels; that is what deleted `ollama` on SOLARIA 19 s after
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue