mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
P1 — runtime-breaking API mismatches: - decision record/list/query/trace/similar/impact/check: all six decision commands now call decision_methods / decision_query using a GraphStore from _get_graph_store(cli_ctx) instead of passing config= kwargs that don't exist on the underlying API signatures. - embed index: load vectors from the Parquet/JSON file into List[np.ndarray] before calling create_index(), which expects vectors not a file path string. P2 — stub implementations replaced with real logic: - backup sync: now collects local data sources via _collect_backup_sources and performs an incremental copy (skips files whose dst mtime >= src mtime). - backup restore: detects .enc / tar.gz / .tar / directory, decrypts SEM1 format when --enc, extracts tar archives with leading prefix stripped, or copies directory trees back to cwd. P3 — correctness bugs: - backup create: archive now includes actual config/ontology/store data files via _collect_backup_sources; manifest records the file list. - extract: --output now works for all formats (table/rdf/yaml), not only JSON. - backup create: empty keyfile now raises a clear error instead of silently producing an unencrypted archive. - normalize: use Path.is_file() instead of Path.exists() to avoid accidentally reading a directory that matches the input text. - visualize: without --output, emit to stdout; do not silently write kg.html. Minor: - _setup_cli_logging: replace opaque _ = (quiet, json_output, exc) tuple with del to suppress unused-variable lint. - reason list: try to source engines from the reasoning module registry; fall back to the hardcoded list. - deduplicate --action report: use method="pairwise" to produce individual pair objects with similarity scores, distinct from --action detect. - tests: remove mixed import (from semantica.cli import main) — all 192 runner.invoke calls now use cli_module.main as CodeQL flagged. - tests: add two focused embed-index regression tests that verify vectors are loaded from the file before create_index is called.