Repository navigation
KIP Knowledge Fabric 3.15.4
What changed in 3.15.4
- A second deployment on one machine no longer needs a hand-edited
.env.
Two agents installed KIP from the repository URL beside a running
deployment. Both finished, but both had to rewrite the new.env: bootstrap
wrote the ports5432and8080and no project name, even though the
environment exported other values.-
When bootstrap creates
.env, it now writes the exported
COMPOSE_PROJECT_NAME,KIP_POSTGRES_PORTandKIP_API_PORT. The port
also goes intoKIP_DATABASE_URLandKIP_BACKUP_DATABASE_URL. A port
outside 1-65535, or a project name Compose would reject, stops bootstrap
before anything is written. -
When
COMPOSE_PROJECT_NAMEis not exported, bootstrap checks for a
collision before choosing values. It looks for containers or volumes of
thekipproject, and for listeners on the PostgreSQL or API port. If it
finds one, it chooses the values itself and prints them:kip-<directory>
for the project, trying at most 100 names (the plain name, then-2to
-100), and the first free ports at or above 55432 and 18080. The new
.envholds no data yet, so this is safe. A plain listener is reported
as "already in use". "Another KIP deployment" is claimed only when Compose
labels prove it. An exported port is kept even when it is busy. An
existing.envkeeps its project name and ports: bootstrap still appends
missing role credentials, as before, but never rewrites these values.
KIP_SEMANTIC_PORTstays on the one model runtime per machine. -
If this directory's own containers exist but
.envis missing, bootstrap
writes nothing and exits 75. A new.envwould carry a new random
database password that cannot open the existing volume, so it asks for
.envto be restored from backup. -
Volumes of the
kipproject with no containers, such as those left by a
deployment stopped withapp-up.sh --down, count as a collision.
Bootstrap chooses new values and adds a hint: Docker does not record which
directory created a volume, so these may be this deployment's own, and
then.envshould be restored instead. Volumes of a derived project,
such askip-second, are not recognised this way. -
setup verifyhas a newruntime_readinesscheck,
compose_project_isolation. It fails with the fix for each problem it
finds:- another directory's containers in this Compose project;
- project volumes it cannot attribute to a directory;
- a PostgreSQL or API port held by something other than this
deployment's container (the API port matters only for the app profile); - a
name:it cannot resolve, or a Compose file it cannot read.
Here a port published by this deployment's own container is not a
collision. It reads.envwith the same rules asscripts/common.sh.
When the Docker CLI is missing the check is omitted, and when Docker
cannot be queried it reportsnot checked.verifiedis unchanged. -
The
kip-setupskill now asks the agent only to confirm the printed
values..envstill showsKIP_WORKSPACE=defaultafter setup, but this is
not a defect: once setup has generated its config, the host CLI, MCP and
containers ignore those keys. A test now pins that behaviour.
-
- Dependency refresh. Nothing below changes stored data, search results or
contracts.- Security: the Kordoc npm graph now overrides
adm-zipto 0.6.1, which
closes GHSA-vwc7-r8mq-g2x9, sonpm auditreports no findings. The
advisory was never reachable, because installs run with
--ignore-scripts. Kordoc stays at 4.13.1 and the lock change is only
adm-zip, so OCR and parser output are unchanged and nothing needs
re-extraction. Bootstrap reinstalls the Kordoc runtime from the lock on
every run, sokip updatebrings existing deployments to 0.6.1. - Python: patch and minor updates inside the existing bounds, among them
click 8.5.0, uvicorn 0.53.0, pydantic 2.13.5, psycopg 3.3.5, typer
0.27.2, PyJWT 2.14.0, cryptography 50.0.1, lxml 6.1.3 and ruff 0.16.7.
uv.lockandrequirements/runtime.txtare regenerated. The semantic
runtime lock takes posthog 7.53.0 and tqdm 4.70.1. Infinity 0.0.77, torch
2.14.0 and the model revisions are unchanged, so vectors and the
projection identity are unchanged. - Images and CI:
python:3.12-slimmoves to 3.12.14,
node:22-trixie-slimto its rebuilt digest, the Dockerfile syntax to
1.27, andastral-sh/setup-uvto v10.1.0. - Not updated:
pgvector/pgvectorstays at 0.8.2. KIP uses HNSW, and
0.8.3-0.8.4 fix HNSW index corruption when VACUUM runs alongside INSERT.
A further INSERT/VACUUM race (pgvector #1010) is fixed only in the
unreleased 0.8.7, so the target is 0.8.7, not 0.8.6. The embeddings are a
rebuildable projection, sokip projection rebuild --name semanticor a
REINDEXrecovers a damaged index without touching canonical data.
docs/TROUBLESHOOTING.mdnow describes the symptoms and the recovery.
Butrestore.shrecreates
the extension at the server's default version, and restore verification
requires matching extension versions, so an existing volume at 0.8.2
restored onto a 0.8.6 server would fail that check. The upgrade needs an
ALTER EXTENSION vector UPDATEmigration and a restore drill first.
Kordoc's other transitive packages are mostly major versions, and
ADR-064 requires measured re-extraction before the OCR graph changes. uv
0.12.14, released today with changed exit codes, and Docker Desktop
4.91.0 are deferred.
- Security: the Kordoc npm graph now overrides
Container image: ghcr.io/64etuor/kip:3.15.4
Install (one command)
curl -fsSL https://github.com/64etuor/kip/releases/download/v3.15.4/install.sh | bash -s -- ~/kip --version 3.15.4The installer downloads kip-3.15.4.zip, verifies it
against kip-3.15.4.zip.sha256 before extracting, then
runs ./scripts/bootstrap.sh. Review install.sh first if your
policy requires it; the manual path (download, verify, unzip, follow
docs/DEPLOYMENT_GUIDE.md section 2) is unchanged.
Upgrading an existing deployment
Run the same command with the existing directory, or
./scripts/upgrade.sh --version 3.15.4 inside it. Only package-owned
files listed in the manifests are replaced; .env, config/kip*.toml,
.mcp.json, var/ and ontology additions are preserved, previous package
files are kept under var/upgrades/ for --rollback. See
docs/DEPLOYMENT_GUIDE.md section 11.
Licensing
KIP is MIT. It ships AGPL-3.0 PyMuPDF and LGPL-3.0 psycopg; see
THIRD-PARTY-NOTICES.md before redistributing or offering KIP as a
network service.
Full history: https://github.com/64etuor/kip/blob/v3.15.4/CHANGELOG.md