KB-25DA

9000x-onboarding · 09 — Evidence bundle pointers (repo + VPS + queryable state)

4 min read Revision 1
iu-corev0.69000xevidencepg_dumpbackup

9000x — Evidence bundle pointers

Repo (Mac ~/iu-cutter-build/repo/iu-cutter)

Path Role
cutter_agent/iu_core/qdrant_onboarding_driver.py runtime driver
cutter_agent/iu_core/qdrant_onboarding.py 6000x preflight + bounded substrate
cutter_agent/iu_core/vector_sync.py connector + embedder + boundary
cutter_agent/iu_core/healthcheck.py corrected vector_boundary SQL
ops/qdrant-onboarding-package-8000x/run_onboarding.py Mac CLI
ops/qdrant-onboarding-package-8000x/in_container_run.py agent-data CLI
ops/qdrant-onboarding-package-8000x/README.md rewritten to match shipped files
ops/piece-platform-dot-9000x/00-gap-matrix.md Piece Platform DOT gap matrix
ops/piece-platform-dot-9000x/02-event-roadmap.md Piece Event Runtime roadmap
tests/test_iu_core_9000x_qdrant_onboarding_driver.py 20 tests

Tests: 1232/1232 PASS (0.76s). Full suite locks the 9000x driver contract + the corrected healthcheck SQL.

VPS (contabo)

Path Role
/root/backups/directus-pre-iucore-9000x-onboarding-20260524T110610Z.dump 79.3 MB, sha256 9651...d7ba, TOC 3278 — restorable
/tmp/iu_onboard_9000x/ extracted bundle (cutter_agent + ops + driver)
incomex-agent-data:/tmp/iu_onboard_9000x/ docker-cp'd into the runner container
~/.iu-core-health/log/healthcheck.jsonl Mac cron log; latest entry overall_ok=true

Queryable production state

-- 88 9000x onboarded points
SELECT count(*) FROM public.iu_vector_sync_point
 WHERE last_actor = 'iu-core-9000x/qdrant_onboarding';   -- 88

-- 60 KT-B unique IUs untouched
SELECT count(DISTINCT unit_id) FROM public.iu_vector_sync_point
 WHERE last_actor IS DISTINCT FROM 'iu-core-9000x/qdrant_onboarding';

-- 86 DIEU IUs still enacted
SELECT count(*) FROM public.information_unit iu
  JOIN public.iu_three_axis_envelope e ON e.unit_id = iu.id
 WHERE e.axis_a_doc_code IN ('DIEU-28','DIEU-32','DIEU-35')
   AND iu.lifecycle_status = 'enacted';                  -- 86

-- All write gates inert
SELECT key, value FROM public.dot_config
 WHERE key LIKE 'iu_core.%_enabled%' ORDER BY key;

Qdrant queryable state (from inside incomex-agent-data):

import urllib.request, json, os
hdr = {"api-key": os.environ["QDRANT_API_KEY"]}
def get(p):
    r = urllib.request.Request(f"http://incomex-qdrant:6333{p}", headers=hdr)
    return json.load(urllib.request.urlopen(r, timeout=5))
get("/collections/iu_core_iu_chunks")["result"]["points_count"]    # 149
get("/collections/production_documents")["result"]["points_count"]  # 9379

Rollback recipes

Targeted (only 9000x points, no KT-B touch)

# From inside incomex-agent-data:
python3 /tmp/iu_onboard_9000x/ops/qdrant-onboarding-package-8000x/in_container_run.py \
    --rollback --actor iu-core-9000x/qdrant_onboarding \
    --collection iu_core_iu_chunks

This issues POST /points/delete {points: [<88 uuids>]} (ids derived from iu_vector_sync_point.point_key via point_id_for) and DELETE FROM iu_vector_sync_point WHERE last_actor=….

Full restore

ssh contabo "docker cp /root/backups/directus-pre-iucore-9000x-onboarding-20260524T110610Z.dump \
    postgres:/tmp/restore.dump && \
    docker exec postgres pg_restore -U directus -d directus --clean --if-exists /tmp/restore.dump"

(Use only on a full database-state regression — the targeted rollback above is strictly preferable.)

Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/v0.6-iu-core-9000x-qdrant-onboarding-piece-platform-open-goal/09-evidence-bundle-pointer.md