Skip to content

Release v0.4.0 - #91

Merged
jayantp2003 merged 55 commits into
mainfrom
release/v0.4.0
Aug 30, 2026
Merged

jayantp2003 merged 55 commits into
mainfrom
release/v0.4.0

Conversation

@krish1925

Copy link
Copy Markdown
Owner

Release v0.4.0 — batch release PR (development → main)

Everything since tag v0.3.0: PRs #67–#84 + #89.

Major changes

Fixes & hygiene

Known issues (2026-08-29 barrage, filed, fixes pending)

#85 · #86 · #87 · #88 · #90 — full audit in verification/REPORT.md (claims reproduction 8/8, Δ ≤ 0.013)

Release mechanics

  • pyproject.toml + __init__.py → 0.4.0; CHANGELOG → [0.4.0] - 2026-08-30 (with Known-issues)
  • @isotrieve/core → 0.2.0 (npm not auto-published — no workflow exists by design)
  • Tag v0.4.0 after merge triggers release.yml: tests → PyPI (trusted publishing) → GitHub Release from CHANGELOG

Krish Patel and others added 30 commits July 28, 2026 02:35
…opy ready

Binary format changes (format v2):
- Pad JSON header to 8-byte boundary for zero-copy Float64Array views
- Add CRC32 checksum over entire file (excluding checksum field)
- Cap headerLen at 1MB before allocation (DoS mitigation)
- Assert payload size = rows × cols × 8 exactly (catches truncation)
- Strict reader: unknown keys throw, missing required keys throw
- normalizeHeaderKeys uses Object.create(null) (prototype pollution fix)
- Module-init endianness assertion (LE required)
- Backward compatible: v1 files still loadable

Also includes:
- SVD one-sided Jacobi with m<n transpose fix
- Cross-compat test suite (22 tests) with Python fixture parity
- Correctness test suite (127 tests) with Python-generated fixtures
- 268 total tests passing across 8 suites
- Python writer updated to v2 format
- CHANGELOGs updated in both npm and Python packages
feat: binary format v2 — CRC32, header padding, strict reader, zero-copy ready
- Rewrite isotrieve-npm/README.md with full mapping classes, options,
  quality gate, recalibration, confidence scoring, serve mode, migration,
  binary format, notebooks table, and package comparison
- Create isotrieve-website/npm.html — standalone docs page for TypeScript
  package, with sidebar nav, code examples, options tables, notebooks
- Add NPM nav link to all 6 website pages (index, docs, protocol,
  integrations, performance, playground)
- Update root README to describe TypeScript package as beta port
docs: comprehensive NPM package docs, website updates + TypedMatrix refactoring
- QualityGate.seed_sensitivity(): refit RidgeMapping on subsamples across
  seeds, report per-seed retention/top1, mean/std/min/max, unstable flag
- SeedSensitivityReport dataclass with to_dict()
- CLI gate: --seed-sensitivity / --seed-sensitivity-runs / --seed-sensitivity-threshold / --seed-sensitivity-seed
- mapping optional when --seed-sensitivity (standalone run), reject
  queries/corpus mode, WARN + exit 1 when unstable
- JSON/MD/HTML output includes seed_sensitivity; HTML renders section
- fix: .isotrieve v2 reader misaligned payload start by 4 bytes
  (_find_payload_start aligned to 8-boundary though FIXED_HEADER_SIZE=12);
  now uses FIXED_HEADER_SIZE + ceil(header_len/8)*8, matching TS writer.
  v1 files read at offset 8 with no padding. Fixes save/load roundtrip
  regression from binary-format-v2 (#62).
- tests: seed-sensitivity unit + CLI coverage
- Backfill CHANGELOG.md with [0.2.1] section from git history
- Add docs/RELEASE_CHECKLIST.md (ruff/mypy/pytest/claims-lint + CI + GH Release)
- Fix release.sh: take version arg, use correct repo, drop hardcoded 0.2.0
- release.yml: add release job that creates/edits the GitHub Release from
  the CHANGELOG section for the tagged version
- mypy --strict for src/isotrieve (type annotations in cli_doctor, cli,
  cli_gate, mapping/base, quality/gate, calib_v1)
- fix pre-existing F541/F841 and unused-ignore in mapping/base + cli_doctor
- add Python 3.13 to CI test matrix
Keep the linter internal/informational (continue-on-error in CI) so
maintainer/agent sees warnings; not a public-failing gate.
Keep linter internal/informational so failures are maintainer/agent-visible,
not public-failing gates.
- Capability class attrs (serve_mode/offline_migration/idempotency_guard/
  resume/rollback_strategy/tested_in_ci) as source of truth
- gen_adapter_matrix.py generates docs/adapters.md; --check flags drift
- CI stale-check is internal/informational (continue-on-error)
- gate-action: optional JUnit XML summary + upload
- gate-template.yml starter workflow
- docs/gh-action.md usage, inputs, outputs, demo link
Adds a clear pre-1.0/Beta banner to the website npm.html overview stating
the Python package is the maintained, benchmark-validated artifact — so a
visitor can tell in <10s which package is current.
- Runnable CLI example for --queries-only (no source docs needed)
- fixture tests: queries-only fits w/o source docs; missing --queries exits 2
Research-synthesis claims (Hermes/OpenClaw, '3-month cliff') were already
removed/banned in 334af32 and AGENTS.md is gitignored; the public-facing
CITATION.cff lagged (0.1.0 vs current 0.3.0) and used stale repo casing.
_find_payload_start used _FIXED_HEADER_SIZE + header_len, but the writer
pads the JSON header to 8 bytes, so payload reads were off by up to 4
bytes. Compute the padded header length (v2) and the unpadded layout
(v1) explicitly, and thread format_version through the payload reader.
Port ContrastiveMapping (InfoNCE), CLIP/SigLIP embedding providers, and the
image calibration pipeline onto the current v2 mapping format, fixing the
three known issues from the stale feat/image-multimodal-support branch:
- _contrastive_validation n_holdout used len(X) - n_train (negative); now
  reports the actual holdout count.
- Nelder-Mead fine-tuning over a ~394k-parameter W hung on 512->768 maps;
  skipped above 200k params (falls back to ridge init with a warning).
- test_validation_report asserted cosine >= 0 on unrelated random data;
  now uses correlated data so the metric is well-defined.

CLIPEmbedder coerces file paths to PIL images for current
sentence-transformers, and ContrastiveMapping is registered for .isotrieve
load dispatch. Adds scipy dependency. Full suite + slow CLIP e2e tests pass.
ndcg_at_k scored queries against the full Y_docs but R was truncated to
5000 docs, so relevance indexing overflowed. Truncate X_docs/Y_docs and
R to the same subset. Adds fresh BEIR/SciFact artifact (MiniLM-L6-v2 ->
bge-small-en-v1.5, ridge, k=1000, seed 0).
# Conflicts:
#	isotrieve-python/src/isotrieve/mapping/base.py
feat: gate seed-sensitivity report + CLI flags (#36)
Krish Patel and others added 25 commits August 5, 2026 02:16
feat(website): Stripe-style docs redesign — paired prose/sticky-code, design tokens
chore: release tooling + 0.2.1 changelog backfill (#61)
lint: CLAIMS linter stale-date + number-drift checks (#14)
feat: adapter parity capability matrix (#16)
test: Qdrant adapter to Chroma parity (#17)
feat: GitHub Action gate + JUnit + template (#20)
docs: npm/Python split-brain framing (#19)
docs: queries-only calibrate runnable example (#21)
# Conflicts:
#	isotrieve-python/src/isotrieve/cli_gate.py
#	isotrieve-python/src/isotrieve/mapping/base.py
#	isotrieve-python/src/isotrieve/quality/gate.py
# Conflicts:
#	isotrieve-python/CHANGELOG.md
ci: mypy --strict + py3.13 matrix (#13)
- ruff format: reformat ContrastiveMapping, image calibration, and image
  migration test (would fail the ci 'lint' job).
- mypy --strict: narrow optionals in ContrastiveMapping.transform/
  inverse_transform, cast json.loads in gate threshold/model loaders, and
  annotate dict type params in cli_gate output helpers (ci 'typecheck').
- Add Pillow to the dev extra: test_image_migration.py imports PIL at module
  level, so the CI 'test' job failed at collection with ModuleNotFoundError.
- Mark test_embed_image_pairs as slow and run the CI test job with -m 'not
  slow' so heavy CLIP model downloads don't happen on every push.
Co-authored-by: Krish Patel <knpatel@g.ucla.edu>
* feat: pgvector adapter with shadow-column atomic swap safety (#22)

* fix: register pgvector vector type and coerce query params for psycopg (#22)

psycopg returns pgvector columns as strings unless pgvector.psycopg
register_vector() is registered, and Python lists are dumped as Postgres
arrays (double precision[]) which do not match the <=> operator. Register
the type on each connection, coerce column values via Vector.to_numpy() /
text parsing, and pass numpy arrays (not .tolist()) as <=> query params.

Verified against real pgvector/pgvector:pg16 container locally.

---------

Co-authored-by: Krish Patel <knpatel@g.ucla.edu>
, #24)

Co-authored-by: Krish Patel <knpatel@g.ucla.edu>
…robe retention (#37)

Co-authored-by: Krish Patel <knpatel@g.ucla.edu>
…ies (#60)

Co-authored-by: Krish Patel <knpatel@g.ucla.edu>
…) (#83)

- LICENSE copyright lines in both packages -> Isotrieve Contributors
- packages/aecp-demo-cli -> packages/isotrieve-demo-cli (matches package-lock.json)
- demo-cli internal variable names startAecp/endAecp -> startIsotrieve/endIsotrieve
- notebook Colab badges: krish1925/AECP -> krish1925/isotrieve (broken links)
- root README project tree: AGENTS.md -> SKILLS.md
- drop stale aecp-python/ .gitignore entry

Co-authored-by: Krish Patel <knpatel@g.ucla.edu>
- @isotrieve/demo-cli: extract buildResultsTable() into src/results.ts,
  add 6-test jest suite; npm test at monorepo root previously failed
  because the package had no test script
- fix npm install: @isotrieve/core ranges ^1.0.0 -> * in adapters-* and
  demo-cli (core is an unpublished workspace dep at 0.1.0; ^1.0.0 could
  resolve neither to the workspace nor the registry)
- tests/test_naming_conventions.py (13 tests): pin the AECP -> Isotrieve
  rename across both packages (LICENSEs, live sources, notebooks,
  npm package metadata, website, lockfile layout)
- demo-cli: drop 'Agent Embedding Communication Protocol' framing from
  README/description/keywords

Co-authored-by: Krish Patel <knpatel@g.ucla.edu>
… bugs filed (#89)

* docs: local test barrage plan (execution handoff)

* chore(verification): pre-register barrage criteria before results (binding)

* test(barrage): full local test barrage — report, artifacts, new test suites, docs reconciliation

- 4 product bugs filed: #85 (TS→PY binary format), #86 (bootstrap CI bias),
  #87 (legacy artifact declarations), #88 (device=auto crash + margin-compression degeneracy)
- P6: 8/8 committed claim configs reproduced independently (Δ ≤ 0.013, orderings preserved)
- new tests: property invariants (13), bias audit (11 items), npm golden-parity suite
- docs: PyPI/GitHub README + website reconciled to generated adapter matrix;
  retention headline corrected to 86–92%; absolute PyPI links; badge fixes;
  mermaid arrow edges removed from main README per owner request

* release: prepare v0.4.0 — version bumps, changelogs, verification scripts structured

- pyproject + __init__ -> 0.4.0; dev extras gain hypothesis + ir-datasets (permanent test deps)
- @isotrieve/core -> 0.2.0 (lockfile synced)
- CHANGELOGs: [0.4.0]/[0.2.0] sections finalized with Known-issues (#85-#90)
- one-off barrage scripts removed; reusable verification tools moved to verification/scripts/

* fix: correct ir-datasets pin (>=0.4; no 2.x exists on PyPI)

* test: mark filed findings as xfail (#86, #87) + slow (coverage sim) — regression tests stay active, XPASS when fixed

* test: P5-01 overlap check skips when BEIR host unreachable (CI egress refused)

---------

Co-authored-by: Krish Patel <knpatel@g.ucla.edu>
…es respect rank-deficiency floor (n >= 10*min(d))
@jayantp2003

Copy link
Copy Markdown
Collaborator

Seems Good!

@jayantp2003 jayantp2003 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes seems good, hence approving!

@jayantp2003
jayantp2003 merged commit 0ff02e8 into main Aug 30, 2026
9 checks passed
@jayantp2003
jayantp2003 deleted the release/v0.4.0 branch August 30, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants