Repository navigation
KIP Knowledge Fabric 3.15.7
What changed in 3.15.7
The first published release of this work. Git tags v3.15.5 and v3.15.6 were
not published (no install archives) and were removed.
- PostgreSQL moves from
pgvector/pgvector0.8.2 to 0.8.6, pinned by digest
(ADR-068). 0.8.6 includes the 0.8.3-0.8.4 fixes for HNSW index corruption
when VACUUM runs alongside INSERT; KIP uses HNSW under sync churn. One more
INSERT/VACUUM race (pgvector #1010) is fixed only in the unreleased 0.8.7.- Migration
0029_vector_extension_updaterunsALTER EXTENSION vector UPDATEwhen the catalog is older than the server. It never reindexes: the
fix is in the library and the index format is unchanged. A migration runs
only once, so if code migrated before the image changed it would have been
recorded as a no-op. Everykip migratetherefore also runs the same
idempotent update after pending migrations, even when none are pending,
and reports it indata.extension_updates(for example{"vector": {"from": "0.8.2", "to": "0.8.6"}}).data.appliedis unchanged. Neither
migration 0029 nor this step fails a migrate. Three cases leave the catalog
alone and exit 0 with onemeta.warningsentry giving the fix: the
migration role does not own the extension (as when a DBA pre-created it on
external PostgreSQL), the image is older than the catalog, or another
session holds the extension past a 5-second lock timeout. A real throwaway volume went through
each stage: migrated on 0.8.2, image switched, the second migrate updated
the catalog, and a third changed nothing. - Restore verification accepts a
vectorextension restored at a newer
0.8.x patch than the backup, becausepg_restorerecreates it at the
server's default version, and records the difference as
extension_updates. Every other extension difference still fails.
Backups taken at 0.8.2 restore onto the new image. 3.15.4's comparison
rejected them. - Throwaway containers verified four paths: a fresh migrate, a 0.8.2 volume
moved to the 0.8.6 image with HNSW queries still matching exact order,
backups from before and after the update restored and verified, and
e2e-db-roles.sh --mode database. docs/TROUBLESHOOTING.mddescribes the corruption symptoms and the
recovery:kip projection rebuild --name semantic, orREINDEX INDEX CONCURRENTLYonce after heavy churn on 0.8.2.- Existing deployments get the new image.
.env.examplehas always set
KIP_POSTGRES_IMAGE, and an existing.envoverrides the Compose
default, so updating KIP alone never pulled the new image.kip update
(upgrade.sh --finish) andbootstrap.shnow rewrite that line when its
value is one KIP itself shipped: the 0.8.2 tag, with or without its
digest. They write the current pin, change only that line and keep the
file mode. A test checks this list against git history, so a later pin
bump cannot forget the outgoing value. A custom image is kept, with a
warning naming the current pin.--checkandupgrade.sh --archive ZIP --dry-runonly report. The upgrade's own migrate still runs on the old
image. The next./scripts/app-up.sh --database-onlypulls 0.8.6,
restarts PostgreSQL on the same volume and migrates, and that migrate
updates the extension (docs/DEPLOYMENT_GUIDE.md11.9).
- Migration
- Setup and install fixes from the 3.15.4 agent install test:
-
Both READMEs and the quickstart show the version-pinned installer command
beside the latest-release command. The agent request now asks the agent to
report the versionscripts/kip versionprints. -
setup planlistsreplaced_files: existing files that apply will
overwrite, such as the package's.mcp.json. They are shown before
approval. The apply receipt addsreplaced_filesentries with
previous_copyandoriginal_copy, plus asummaryline. Apply now keeps
FILE.original, the earliest copy, written once and never overwritten,
besideFILE.previous, so a second apply no longer loses the package's
original file. Plans written before this change still verify. -
The
source_ownershipquestion now says bundled sample data iscompany.
The sample is fictional company documents, andcompanydefaults
classification torestricted, which keeps it outside remote-model
egress. No new option was added, because any other default would either
loosen egress or duplicatecompany. -
With semantic search turned off,
kip doctorreportssemantic_searchas
state: disabled_by_configurationand names the configuration value that
disabled it (search.semantic_enabled). The summary says lexical search is
the intended mode. Existing keys are unchanged. -
An ACL scope containing a comma is now rejected. Scopes are
comma-separated inKIP_ACL_SCOPES, theX-KIP-ACL-Scopesheader and the
database session, so such a scope silently became several scopes and could
widen access. The check applies wherever a single scope comes in:- root
--acl-scope(exit 3, includingkip mcp); kip ontology entity-create --acl-scopeand its REST and MCP equivalents;- connector events;
- JWT scope claims and group names;
- configured source, connector-policy and API-key scopes;
- evaluation datasets;
- the repository session itself, as a final fail-closed check.
List forms such as
--acl-scopes a,band the header still separate on
commas. Setup rejects a comma in a sourceacl_scopewhen you answer the
question. A saved state that already holds one is no longer complete, and
inspect, plan, apply and verify flag it, including through a new
source_acl_scopescheck. JWT group names and scope claims, configured
API-key/source/connector-policy scopes, evaluation datasets, RequestContext
and the PostgreSQL session GUC (session_acl_scopes_value) now reject a
comma too. The siblingkip.rolesGUC is split the same way
(kip.current_is_admin()is'admin' = ANY(...)), so--roleand
session_roles_valuereject a comma inside one role before
set_config('kip.roles', ...).workspace:,group:andproject:
scopes without a comma keep working. - root
-
- Agent and retrieval CX:
- Search and context report
semantic_disabledinmeta.warningswhen
semantic search is off by configuration, so a paraphrase miss is not
treated as absence. kip setup preset samplefills remaining questions with bundled
sample-datadefaults. Plan approval is still required.- MCP
kip_doctoris the same read-only payload askip doctor, with
summary_enbeside the Koreansummary. Daily-path instructions name
seven retrieval tools plus doctor; ontology review still needs an explicit
human decision. - Context packs keep the head and tail of a long unit around an explicit
marker instead of cutting only from the start.body_truncatedmeans that
shape; it is not a leading prefix and cannot prove absence. XLSX shallow
units overlap like HWP, and chunk locators use the real span offsets.
A Korean+English query splitter exists as_codeswitch_expansionbut is
not on the default lexical path: injecting it dropped private-gate lexical
recall below 0.84.
- Search and context report
- Remaining guard gaps:
migrate.sh,mcp.sh,backup.shandscripts/kip(except
doctor,setup,versionand help) now apply the same check as
app-up.sh. They refuse, with exit code 2, a loopbackKIP_DATABASE_URLor
KIP_BACKUP_DATABASE_URLwhose port differs fromKIP_POSTGRES_PORT.
Before, onlyapp-up.sh --database-onlychecked, so running migrations,
sync, MCP or a backup directly could reach another deployment's database.
restore.shdoes not run that guard on its nested kip calls: it sets
KIP_DATABASE_PORT_CHECK=offso a restore onto a separate local PostgreSQL
still works. The bash preflight is 0.07 ms per call. The Python CLI and
kip-mcpconsole scripts apply the same refuse (exit 2) so
.venv/bin/kip migrateandpython -m kip.cli migratecannot walk around
the wrapper. A test holds bash URL parsing tourlspliton 28 URLs. It
applies only whenKIP_POSTGRES_PORTis set, which every bootstrapped
.envdoes. It skips external hosts and generated deployments, which
setup_compose.pyalready checks.KIP_DATABASE_PORT_CHECK=offdisables
it for a deliberately separate local PostgreSQL.scripts/kipfinds the
subcommand after root options, sokip --config FILE doctorand
kip --workspace=X setupstay exempt, as does--helpanywhere.
kip doctorreports the same mismatch as thedatabase_url_portcheck,
which is required only when the port check applies, and reads
KIP_DATABASE_URL_FILE/KIP_BACKUP_DATABASE_URL_FILEwhen the env var
is empty, the way the bash guard does.kip doctoralso has a new non-requiredpostgres_extensionscheck. It
compares thevectorcatalog version with the server's pgvector through
a newextension_versionsoperations port.outdatedpoints to
./scripts/kip migrate.newer_than_servermeans the database runs on an
older image than the one it was migrated with.installed_but_unavailable
means the database hasvectorbut the server has no pgvector.
unknown_versioncovers a version that cannot be ordered, such as
0.8.7-dev, instead of wrongly advising a migrate. The memory repository
reportsnot_applicable, and a failed query reportsnot_checked.
database_url_portalso fails a URL whose port is not a number from 1 to
65535, because such a URL can never connect.- Bootstrap now also recognises volumes of the project name it would derive
for this directory (kip-<directory>,-2to-100). If they exist
without.envand no other directory's containers own that name, it names
the volumes, writes nothing and exits 75. ExportingCOMPOSE_PROJECT_NAME
skips the check. - uv moves from 0.12.12 to 0.12.14 in bootstrap and CI, with every platform
hash checked against the published digest. uv 0.12.14 exits 1 for
expected failures and 2 for operational ones. No KIP script or workflow
tests for a specific code, and both codes stop bootstrap, so old and new uv
behave the same. - The Docker Desktop pin moves from 4.90.0 to 4.91.0 (Compose 5.5.1, Engine
29.8.0), with both DMGs hashed. - End-to-end checks set throwaway PostgreSQL ports on both database URLs
andKIP_POSTGRES_PORT, accept lexical-onlysemantic_disabled, and
allow the intended.envKIP_POSTGRES_IMAGErefresh on upgrade, so
installer, upgrade and compose-roles jobs can publish.
Container image: ghcr.io/64etuor/kip:3.15.7
Install (one command)
curl -fsSL https://github.com/64etuor/kip/releases/download/v3.15.7/install.sh | bash -s -- ~/kip --version 3.15.7The installer downloads kip-3.15.7.zip, verifies it against kip-3.15.7.zip.sha256 before extracting, then runs ./scripts/bootstrap.sh.
Upgrading an existing deployment
Run the same command with the existing directory, or ./scripts/upgrade.sh --version 3.15.7 inside it.
Full history: https://github.com/64etuor/kip/blob/v3.15.7/CHANGELOG.md