Repository navigation
KIP Knowledge Fabric 3.15.0
What changed in 3.15.0
-
CI now exercises the shipped artifact, not only the source tree. The gate was
green for every release from 3.12.0 to 3.14.1 and roughly half of those still
shipped a defect that appeared the moment a human installed the package and
ran it. Six new CI checks and one scheduled workflow close most of that
gap, each with a script in
scripts/that runs the identical check locally so a red job can be
reproduced without a runner. Each works in its own throwaway PostgreSQL
container or Compose project and work tree. Every install,kip, Compose and backup command runs with
inheritedKIP_*,POSTGRES_*,COMPOSE_*andPG*variables removed,
installs pass an explicit--bin-dir, the real HOME'skiplauncher and
shell profiles are hashed before any write and checked again on exit, and a
KIP_E2E_DATABASE_URLnaming a live deployment database is refused../scripts/e2e-install.sh(CI: every push) builds the package archive the
release publishes, serves it from a local release mirror, installs it with
scripts/install.shinto a clean directory under a throwawayHOMEso the
global launcher and the shell-profile block are exercised without touching
the runner's own profile, bootstraps, migrates, syncs the bundled
sample-data, and asserts thesearch,readandxlsx-readenvelopes
(ok, alocatorandsource_uriper hit,source_verificationand the
three-valuedsource_changed_since_index, the workbook's own cell values)
plus the exit codesdocs/TRD.md29.4 publishes. Anymeta.warningsentry
the release does not declare fails the job../scripts/e2e-upgrade.sh(CI: tag and manual dispatch) installs the
previous published release, creates a second deployment that owns the
globalkiplauncher, upgrades the first withkip update --archive, and
asserts the version moved, the deployment-owned files survived byte for
byte, the second deployment's launcher was not repointed and no shell
profile changed - then repeats the launcher assertions for the download
update path where that defect actually lived. It falls back to an older
tag only when a release asset answers HTTP 404, retries any other network
error, and then fails naming the tags it tried; it never skips../scripts/e2e-db-roles.sh --mode database(CI: every push) proves the
3.13.0 claim at the database:kip_api,kip_workerandkip_reviewer
are neither superusers norBYPASSRLSwhilekip_backupis; akip_api
session reads nothing from another workspace through the application, and
nothing in raw SQL from any of the 34 tables that force row level security
and carry aworkspace_id, and cannot setrow_security = off; and a
backup taken as
kip_backupis a real dump thatscripts/restore.shloads back with the
same canonical row counts../scripts/e2e-db-roles.sh --mode compose(CI: tag and manual dispatch)
bootscompose.yamlwithdeploy/compose.roles.yamlthe way
./scripts/app-up.shdoes, under its own project name, ports and volumes,
with API-key identity, and asserts the API answers/readyzand that the
apiandworkerbackends really are the non-superuser logins. It does
not bootcompose.production.yaml../scripts/e2e-db-roles.sh --mode production-config(CI: every push)
renderscompose.production.yamlwith its migration profile and runs the
resolved environment ofapi,workerandmigratethrough the real
settings and identity construction, with an invalid identity mode onapi
as a control that must be rejected. It does not boot images, secrets or a
JWKS endpoint. It found the worker and migrate defect described below../scripts/e2e-semantic.sh --mode served-model(CI: every push) stands a
stub runtime in for Infinity that advertises one model and answers
POST /embeddingswith HTTP 200 for any name, and assertskip doctor
names the mismatch, default-mode search degrades withsemantic_degraded
instead of embedding against the wrong model, and an explicit
--mode vectorfails../scripts/e2e-semantic.sh --mode offline-runtimedownloads the pinned
1.2 GB snapshot and starts the runtime with the model hub forced offline.
That cost does not belong on a push, so it is a weekly and manually
dispatched workflow (.github/workflows/semantic-runtime.yml) rather than
a push job pretending to cover it;docs/OPERATIONS.mdlists dispatching
it as a step before tagging.
The tagpublishjob depends on every check above except the offline model
runtime, which is weekly and dispatched rather than gated, so an install
that cannot start its runtime offline can still publish unless someone
dispatches that workflow first. These jobs download from GitHub releases,
Docker Hub, npm and uv with bounded retries and a time limit on each
attempt, and skip pulling an image that is already present; when one still fails for a
network reason, re-run the failed jobs on the tag's run instead of moving
the tag.
-
The Compose application profile could not start.
compose.yaml'smigrate
service takesenv_file: .env, which carries the HOST path
KIP_CAS_PATH=./var/cas; inside the container that is/app/var/cason the
read-only root filesystem, and startup creates the CAS directory before it
runs anything, so./scripts/app-up.sh(and any
docker compose --profile app up) stopped atmigratewith
OSError: [Errno 30] Read-only file system: '/app/var/cas'. Theapiand
workerservices already pinnedKIP_CAS_PATH: /data/casagainst exactly
this hazard andmigratedid not. It does now. The defect is older than
this release:migratehas takenenv_file: .envon a read-only root
filesystem without that pin since at least 3.9.0, and.env.examplehas
shipped the relativeKIP_CAS_PATH=./var/casfor as long, so the app profile
could not start on any deployment configured from the example. Deployments
that only ran./scripts/app-up.sh --database-onlynever reached the
container. Afterkip update, run./scripts/app-up.shonce to start the
application profile.compose.production.yamlwas
never affected: it passes credentials as secrets and has noenv_file, so
its migrate service used the container config's/data/cas, which exists in
the image. Found by the new compose-roles check on its first real run. -
Each GitHub release carries its own notes. The publish job extracted the same
fixed body every time, so a visitor could not see what changed in a release
without openingCHANGELOG.md.scripts/changelog-section.shnow extracts
the section for the tag's version - matched on the version field alone, so no
release date has to be predicted - and the body opens with it under
## What changed in <version>, above the existing image, install, upgrade and
licensing block. The extraction runs in the tag-validation step, before any
image or attestation is published: a version with noCHANGELOG.mdsection
fails the tag rather than publishing first and explaining later. -
The repository now has the community files a visitor expects, each written
for this project rather than copied: issue forms for bugs, retrieval-quality
reports and change proposals that ask for the envelope'srequest_id,
meta.warnings,kip capabilitiesandkip doctoroutput and say what must
never be pasted; a pull request template that points at the completion gate;
a vulnerability reporting policy in.github/SECURITY.mdthat links the
operationaldocs/SECURITY.mdinstead of repeating it; a code of conduct; an
.editorconfigmatching the linters; and README badges for CI, the latest
release and the licence..github/ships inside the package archive, so the
new files are link-checked with the rest of the documentation. -
The test suite runs the same way on a developer machine and in CI. Two
releases in this series were tagged on a green local gate and then failed CI
because tests inherited the shell that launched them: 3.13.0 read the
repository config through an exportedKIP_CONFIG, and 3.14.0 matched help
text that CI renders on a narrow, coloured terminal.tests/conftest.pynow
starts every test from the environment CI exports, withCOLUMNS=80and
colour forced on, and fails a test that reads aKIP_*or terminal variable
it did not pin. A parity test ties that profile to.github/workflows/ci.yml,
and everyKIP_*name the code and bootstrap read must be pinned or listed
with a reason, so a new variable cannot quietly reopen the gap. -
Tests that need a real database now use only
KIP_TEST_POSTGRES_URLand skip
without it; they no longer fall back toKIP_DATABASE_URL, and the suite
refuses to start when the test URL names the deployment's own database
outside CI. Before this change a local run could write into the database
.envpoints at:tests/test_filename_discovery.pysearched as a workspace
it never created, which left anot-this-workspaceworkspace and its query
traces in a live deployment. CI exportsKIP_TEST_POSTGRES_URLfor its
service database. When the variable is unset,./scripts/verify.shstarts a throwaway
PostgreSQL container for the run, so a local gate cannot pass with the
database tests skipped; without Docker the gate fails. -
The production Compose worker and migrate services could not start.
Every KIP process builds the full container, which constructs the identity
resolver even when the process serves no requests.compose.production.yaml
setKIP_IDENTITY_MODE: proxy_jwtonly onapi, soworkerandmigrate
fell back to API-key mode, andKIP_ENV=productionrefuses that mode without
KIP_API_KEY: both aborted with "API-key identity mode requires KIP_API_KEY"
before doing any work. They now carry the same identity mode and JWT
settings asapi, which a production operator already supplies. The JWT
client fetches signing keys only when a token arrives, so neither service
needs to reach the issuer at startup. The new production-configuration check
found this by resolving each service's environment into the real identity
construction.
Container image: ghcr.io/64etuor/kip:3.15.0
Install (one command)
curl -fsSL https://github.com/64etuor/kip/releases/download/v3.15.0/install.sh | bash -s -- ~/kip --version 3.15.0The installer downloads kip-3.15.0.zip, verifies it
against kip-3.15.0.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.0 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.0/CHANGELOG.md