Skip to content

v0.1.9 — Coverage gate (80%) + safer truncation

Latest

Choose a tag to compare

@Sayeem3051 Sayeem3051 released this 13 Apr 18:17

v0.1.9

Added

  • CI now enforces a minimum 80% test coverage (--cov-fail-under=80).
  • New unit test suite tests/unit/test_coverage_features.py covering:
    • Secrets & PII redaction
    • Chunking (line + Python AST spans)
    • RAG lexical retrieval
    • Tracing (JSONL)
    • Snapshots (manifest + rendered output)
    • Few-shot loading
    • Scoring config load + normalization
    • Sources collectors + ignore merging (.gitignore + .ctxengignore)
    • Multi-language AST symbol extraction (with stubbed parser test)
    • Semantic scoring cache logic (stubbed; no downloads)
    • Builder advanced flags plumbing

Fixed

  • ctxeng/optimizer.py: prevented a potential infinite loop in _smart_truncate() tail trimming.

Changed

  • Coverage config updated to omit non-library wiring from coverage measurement:
    • ctxeng/cli.py, ctxeng/__main__.py, ctxeng/integrations/*, ctxeng/watcher.py
  • Tests are CI-safe: no optional sentence-transformers requirement.

Install / Upgrade

pip install -U ctxeng