为semantica打分
给出您宝贵的评分:
手机端可长按图片保存,分享到朋友圈 / 社群
使用 semantica,你可以:
面向上下文管理与可问责 AI 系统的图原生底层基础设施,依托图结构存储数据,保障 AI 输出可追溯可核验。
用户评论 (0)
2026年02月15日
2026年08月13日
2026年02月23日
2026年01月31日
2026年01月12日
v0.7.0
2026年09月22日
Semantica v0.7.0
Released: 2026-09-22
Tag: v0.7.0 · Compare: v0.6.8...v0.7.0 · PyPI: semantica 0.7.0
Highlights
Core install is now 4x lighter — direct dependencies dropped from 44 to 22 packages, with heavy ML/NLP, visualization, document-parsing, and ingestion libraries (torch, spacy, sentence-transformers, matplotlib, faiss-cpu, python-docx, and more) moved into granular optional extras; pip install "semantica[all]" keeps the previous fully-bundled behavior. This is also the first release requiring Python 3.10+ (3.8/3.9 dropped, 3.14 not yet supported), with a committed uv.lock for reproducible dev installs.
Ships: Hierarchical Community GraphRAG (multi-level Louvain/Leiden community detection, LLM-summarized community reports, and global Map-Reduce + DRIFT hybrid search); six new data connectors — BigQuery, Amazon Redshift, Power BI, Apache Airflow, plus line-delimited JSON ingestion; schema-guided extraction (SchemaValidator + bootstrap_schema); source-aware truth maintenance with corroboration-based trust tiers for graph facts; a persistent SQLite backend for ExtractionCache; new MCP semantic retrieval tools (store_document/retrieve_context/update_document/remove_document); and SPARQLReasoner.execute_query running real queries instead of a no-op.
Also fixes 40+ correctness bugs (in-memory vector-ID reuse corrupting live vectors, FAISS/Qdrant/Milvus vector-store gaps, Explorer temporal-scrubber and ontology-linking bugs, CLI commands calling nonexistent APIs, and more) and closes a Neptune credential-logging leak, a pip-audit CVE-alias matching gap, and unpatched chromadb/json-repair CVEs via removing the crewai extra — see CHANGELOG.md for the full breakdown.
Breaking changes: Entity.confidence is now Optional[float] (was float = 1.0); PolicyEngine.check_compliance now raises ProcessingError instead of returning False for unevaluable rules; the dev extra is replaced by a PEP 735 dependency group (pip install -e . --group dev); semantica[crewai] no longer installs crewai automatically; Python 3.8/3.9 are no longer supported.
What's Changed
- #1473 ·
a5994497· fix: correct production env var to SEMANTICA_API_KEY (fixes #1429) · @v01dst - #1455 ·
ce0ae1cb· refactor(context): expose public temporal normalizer · @Saket7002 - #1381 ·
754fe5fd· fix(context): deep-copy store results in ErasureReceipt.to_dict() · @BinarySpecter - #1465 ·
ebd659a9· Closes #1351: [BUG] semantica ingest reports "✓ Ingested" but persists nothing to a configured Neo4j backend (silent no-op) · @evgenyponomarev - #1476 ·
a65874e4· chore(release): prepare v0.6.8 · @KaifAhmad1 - #1372 ·
14d25cab· fix(cli): dispatch reason run and store connect to real APIs · @7487 - #1441 ·
c25b88c0· perf(explorer): bound the ontology graph fetch and hydrate external nodes concurrently · @taoche - #1475 ·
30fc6447· fix(cli): prevent doctor Note/Hint columns from wrapping into unreadable fragments (#1428) · @ALDRIN121 - #1484 ·
2b866c86· docs(embeddings): tighten reference prose · @Parsiffall1 - #1474 ·
34fe1960· fix(scripts): broaden Windows Mintlify noise filter to EBUSY (#1427) · @ALDRIN121 - #1196 ·
8460ede2· feat(explorer): complete ARIA tab pattern for markdown viewer (#1117) · @pravit-amp - #1360 ·
ec55385b· fix(context): dedupe heuristic causes in trace_decision_causality · @cxzg007 - #1318 ·
7e8c47ba· fix(NER): Add explicit consensus merge strategy · @Inference1 - #1488 ·
9cb85d1f· test(gemini): regression tests for per-call model override · @sakshi04-ui - #1464 ·
1ec8de5d· fix(kg): promote synthetic relation endpoints into the graph · @pkupt - #1483 ·
008b9e0b· fix(explorer): align visible legend with semantic node colors · @taoche - #1391 ·
28f4fc7b· feat(milvus): add delete_vectors to MilvusStore · @pkupt - #1290 ·
1773d8b5· docker(deps): bump python from 3.13-slim to 3.14-slim · @app/dependabot - #1505 ·
6ad2e8b6· docs(mcp): update stale MCP tool count from 12 to 15 · @7487 - #1509 ·
b8011eb4· fix(docker): revert runtime base image to python:3.13-slim · @KaifAhmad1 - #1495 ·
97840da5· security(deps): bump pinecone from 9.1.0 to 10.0.0 · @app/dependabot - #1511 ·
82fd1b8d· docs(learning-more): fix broken pipeline and dedup snippets · @ZohaibHassan16 - #1504 ·
0babf0d7· fix(cli): route JSON-mode failures to stderr as structured JSON · @7487 - #1250 ·
9c38fd49· feat(mcp): semantic retrieval tools (store, retrieve, update, remove) · @pkupt - #1507 ·
07c74cc5· feat(faiss): add native vector deletion support · @Sameer6305 - #1512 ·
3a69721a· test(gemini): cover legacy-SDK per-model instance cache · @sakshi04-ui - #1529 ·
7be15827· fix: correct vector store installation extras · @Sameer6305 - #1368 ·
c4492091· fix(cli): dispatch mcp call through semantica_mcp.mcp.server · @7487 - #1528 ·
7dbad0b1· feat(deps): slim core dependencies and move 22 heavy packages to opti… · @ZohaibHassan16 - #1530 ·
384c6929· fix: update Qdrant client compatibility · @Sameer6305 - #1508 ·
5a0d6ea4· Fix/parse and qdrant vector store · @yanyushuai - #1532 ·
2383d228· fix(explorer): place static causal-distance route before dynamic decision_id route · @nilaymallikk - #1367 ·
1c6296a5· fix(mcp): repair GraphML and Parquet exports · @Sameer6305 - #1527 ·
44c0c7a7· feat(semantic_extract): schema-guided validation — SchemaValidator + ExtractionSchema (PR 1/3) · @Besokus - #1539 ·
4b11660f· fix(cli): report the graph backend actually used, not a nonexistent memory one · @dex0shubham - #1540 ·
42bbe513· fix(ci): ignore upstream accelerate vulnerability in security scan · @ZohaibHassan16 - #1543 ·
d4127131· fix(ci): match pip-audit ignore list against vuln aliases, not just id · @KaifAhmad1 - #1547 ·
fa8002e5· docker(deps): bump python from 3.13-slim to 3.14-slim · @app/dependabot - #1546 ·
bd41a5a2· fix(vector-store): prevent in-memory vector ID reuse · @Sameer6305 - #1541 ·
6b55cf11· fix(explorer): end the temporal scrubber at now instead of inventing 2030 · @taoche - #1549 ·
def18cd5· fix(explorer): remove stale 2030 temporal bound · @Sameer6305 - #1440 ·
0338f90b· refactor(explorer): own Ontology Hub URL state in one module · @taoche - #1439 ·
a9f1b292· fix(explorer): resolve ontology ownership on the backend for entity deep links · @taoche - #1552 ·
9d93a808· fix(explorer): label the graph view control "Focus" · @taoche - #1558 ·
365d4737· docs(readme): tighten intro copy and enterprise data platform framing · @KaifAhmad1 - #1559 ·
375ffc85· docs(readme): remove unshipped 0.7.0 references and duplicate content · @KaifAhmad1 - #1069 ·
1914dd50· fix: replace bare except with except Exception in 3 sites · @yzxcj797 - #1561 ·
3bb0d281· docs(readme): note LLM use is optional and vendor-neutral · @KaifAhmad1 - #1073 ·
6afe90e4· fix(context): stamp AgentMemory in aware UTC, not mixed naive conventions · @yzxcj797 - #1564 ·
161748f0· fix(vector-store): train PQ indexes in FAISSIndexBuilder · @Evanwang-3 - #1535 ·
9905e432· fix(mcp): repair extraction handlers and pipeline serialization · @zhfeng - #1567 ·
76515280· docs: add multilingual README links · @Sameer6305 - #1579 ·
f36a2645· fix(docs-check): preserve Mintlify output on Windows · @dajiaohuang - #1588 ·
888c2c4e· deps(deps): bump litellm from 1.99.0 to 1.100.0 · @app/dependabot - #1563 ·
6148cb6f· fix(plugins): repair broken API references in five skills · @gyroscope1110 - #1580 ·
bea9b2aa· docs: rewrite remaining bare relative links that 404 on the live site · @csy20 - #1587 ·
05aec197· feat: add Amazon Redshift ingestor · @Sameer6305 - #1593 ·
40478426· fix: resolve 23 pre-existing test failures across pipeline, Snowflake, Salesforce, and CLI · @Sameer6305 - #1598 ·
70573877· fix(context): forget(days_old=) deleted recent memories instead of stale ones · @nilaymallikk - #1604 ·
440014b5· fix: patch base-image OS packages flagged by Trivy (12 CVEs) · @KaifAhmad1 - #1315 ·
5b818da9· fix(parser): preserve indentation inside fenced code blocks during normalization · @AhmadBilalDSA - #1594 ·
251ecf75· feat(ingest): add Power BI connector for REST metadata (#1572) · @pkupt - #1599 ·
63cd6989· refactor(explorer): split focused view from layout modes · @csy20 - #1603 ·
d7a9d987· fix(mcp): resolve nested metadata filtering in handle_query_decisions (#1247) · @JohnnyWilson16 - #1602 ·
159db11d· feat: add pi plugin with all 17 Semantica skills · @tkoyama010 - #1601 ·
5bba1487· test(kg): remove shadowed duplicate Test*EdgeCases classes · @Anai-Guo - #1591 ·
5544777e· feat(semantic_extract): pluggable persistent backend for ExtractionCache · @Besokus - #1586 ·
b4a92245· fix(explorer): map enrich dedup pairs to the Entity Resolution shape · @nilaymallikk - #1538 ·
ae94686e· fix(cli): fail when kg build produces an empty knowledge graph · @dex0shubham - #1537 ·
7c4d6284· feat(ontology): bootstrap a draft domain schema from extracted data (PR 2/3) · @pkupt - #1550 ·
f6657709· feat(evals): repeated sampling for nondeterministic targets · @pkupt - #1632 ·
23c15bd0· feat(cli): dispatch reason run to real deductive and abductive reasoning APIs · @sakshi04-ui - #1626 ·
c208c230· feat(ingest): add BigQuery connector · @Sameer6305 - #1637 ·
9093f9bc· fix(cookbook): use supported Config serialization in welcome notebook · @zzh2632 - #1636 ·
b55c2e4a· fix(mcp): accept entity_id in get_provenance (#1248) · @csy20 - #1607 ·
0df4daca· security(deps): bump botocore from 1.43.85 to 1.43.93 · @app/dependabot - #1610 ·
deea8aa2· security(deps): bump litellm from 1.100.0 to 1.100.1 · @app/dependabot - #1553 ·
c47ffae8· feat(llms): standardize generate_typed() across all provider wrappers · @sakshi04-ui - #1074 ·
31d36ce4· fix(semantic_extract): hand extraction-cache values out as copies, not aliases · @yzxcj797 - #1160 ·
097c0d41· fix(context): raise instead of silently returning False when compliance check fails · @cxzg007 - #1208 ·
d2902d3b· fix(conflicts): resolve TypeError on unhashable values in voting/credibility strategies · @cxzg007 - #1276 ·
1ed2c6e9· fix(ingest): preserve repeated ontology domain and range values · @taoche - #1279 ·
d97a7aec· fix(vector-store): persist FAISS IDs and metadata · @libaojiang - #1285 ·
14619698· fix: represent unavailable entity confidence as None instead of 1.0 · @taoche - #1596 ·
247455d1· Feat/pr 1548 hierarchical community · @ZohaibHassan16 - #1605 ·
f45bcb28· Feat/pr 1548 community summarizer · @ZohaibHassan16 - #1628 ·
a7420916· Feat/pr 1548 global drift retrieval · @ZohaibHassan16 - #1243 ·
7996d1ab· feat(reasoning): implement SPARQLReasoner.execute_query with store delegation and rdflib fallback · @cxzg007 - #1649 ·
9931c09e· fix(cookbook): update VersionManager import in 14_Ontology.ipynb · @wy1433 - #1643 ·
de2e200e· docs(ontology): document the draft, proposal and version flow · @pkupt - #1662 ·
306c4697· test: guard lxml, GitPython and google-adk imports so collection succeeds on a clean [dev] install · @dex0shubham - #1660 ·
46aa60d7· test(cli): cover graph relationship id resolution and generation failures · @sakshi04-ui - #1656 ·
8568cf7f· fix: align generate_structured return annotations · @Sameer6305 - #1659 ·
f450e3bd· Fix: LLM enhancement responses were being discarded by enhance_entities() and enhance_relations(). · @Sameer6305 - #1166 ·
ea6deed7· Verified RDF export: integrations/open_ontologies (#1108) · @fabio-rovai - #1284 ·
9c028962· fix: make LanguageDetector minimum text length configurable · @taoche - #1343 ·
2d053c95· fix(vector_store): return stored metadata in MilvusCollection.search() (#1330) · @mhaye9545 - #1364 ·
835f2fb6· Align enforce_decision_policy default reasoning limit with record_decision · @cxzg007 - #1373 ·
c685379e· fix(graph_store): stop logging Neptune SigV4 auth headers at INFO · @7487 - #1379 ·
b08444c9· fix(context): skip redundant vector cascade when erasure's vector leg covers it · @7487 - #1438 ·
041b9cc1· fix(explorer): serve entity_type from the ontology graph endpoint · @taoche - #1467 ·
5399d359· Closes #1353: [BUG] decision record fails on Neo4j: decision node carries dict-valued properties/metadata, which Neo4j rejects (Map{}) · @evgenyponomarev - #1469 ·
3910c33b· Closes #1424: docs: tighten prose in reference/* pages · @evgenyponomarev - #1471 ·
6ae5f724· Closes #1423: docs: tighten prose in guides/* pages · @evgenyponomarev - #1486 ·
3933774e· feat(ingest): support line-delimited JSON files · @sunchaokun - #1544 ·
92c2578a· feat(reasoning): add source-aware truth maintenance for non-recursive rules · @cxzg007 - #1671 ·
c68d839c· fix: improve cache serialization · @Sameer6305 - #1556 ·
d46529ad· feat(context): filter retrieved context by active fact and source support · @cxzg007 - #1583 ·
c5e2fbff· feat(context): add trust tier calculation for graph facts · @pkupt - #1678 ·
fab4bc10· ci: run the reasoning test suite · @pkupt - #1635 ·
415dfc62· fix(explorer): type the dedup wire shape with a validated DuplicatePair model · @nilaymallikk - #1654 ·
e246df3b· fix(explorer): honour name and description in POST /api/ontology/load · @gyroscope1110 - #1702 ·
26c29c23· fix: require Python >=3.10 and commit uv.lock for reproducible dev (#1506) · @KaifAhmad1 - #1584 ·
fdf3fd8c· feat: add Apache Airflow ingestor · @Humerous - #1655 ·
cb7cbcc6· fix(mcp): serialize Decision objects returned by get_causal_chain · @gyroscope1110 - #1710 ·
0b52415f· fix: drop the crewai extra to close unpatched chromadb/json-repair CVEs · @KaifAhmad1 - #1700 ·
04409b31· fix(export): route export_knowledge_graph on the extension, keep wrapper defaults, skip empty collections · @pkupt
v0.6.8
2026年09月05日
Semantica v0.6.8
Released: 2026-09-05
Tag: v0.6.8 · Compare: v0.6.7...v0.6.8 · PyPI: semantica 0.6.8
Highlights
Every release from here on is cryptographically signed — the build now runs SLSA build-provenance attestation plus Sigstore signing, and .sigstore.json bundles ship alongside the wheel/sdist on every GitHub Release, closing the OpenSSF Scorecard Signed-Releases gap. This is also the release that actually exercises that pipeline for the first time: it surfaced a latent bug where the Sigstore output broke PyPI publishing, now fixed by running publish before signing writes into dist/.
Ships: real vector-store enumeration (scan_vectors()/iter_vectors()) across FAISS, SQLiteVec, PgVector, Qdrant, Weaviate, Pinecone, and Milvus, making semantica store migrate functional between backends for the first time; first-class Anthropic, Gemini, Ollama, DeepSeek, and Novita LLM provider wrappers in semantica.llms; a deterministic, CI-friendly ontology quality gate; first-class Google ADK integration; a Salesforce ingestor; ErasureCoordinator (completing the erasure workflow purge_node() only started, so a purged entity no longer survives verbatim in AgentMemory or as an embedding); and Explorer's read-only Markdown viewer becoming a full editor for live ContextGraph nodes and host-supplied AgentMemory items.
Also fixes: 35 correctness bugs (Python 3.9 install breakage, FAISS save/load metadata loss, semantica ingest's silent no-op against a configured graph store, MCP persistence, Explorer graph rendering, ontology property-collision handling, and more) and closes 12 Dependabot aiohttp alerts, 5 HIGH-severity Trivy container findings, and 2 npm advisories — see CHANGELOG.md for the full breakdown.
What's Changed
- #1231 ·
56d9e9a8· fix(ontology): coalesce normalized property collisions · @T1mn - #1241 ·
5376f046· fix(explorer): dedupe temporal snapshot requests and apply latest-wins · @ALDRIN121 - #1236 ·
da642f12· fix(export): @vocab mints into the shipped ns# namespace · @pkupt - #1041 ·
d3183d0a· feat(explorer): add deterministic rendering E2E example and test (#1037) · @alexsmolya - #1240 ·
4bf525d4· feat(ingest): add production-ready Salesforce ingestor · @Sameer6305 - #1024 ·
85d6ccd0· fix(memory): find_by_entity returns all matches by default · @yzxcj797 - #1249 ·
e13c953b· ci: resync github/codeql-action pin to current v4 · @ZohaibHassan16 - #1245 ·
30592b12· fix(split): validate sliding window progress · @HsienW - #1232 ·
a5aac7e2· test: guard fastapi-dependent modules so collection succeeds without the explorer extra · @dex0shubham - #1077 ·
0384a8de· fix(reasoning): implement RETE alpha/beta matching with Token model (#300) · @cxzg007 - #1255 ·
8b0ac61a· feat(llms): add first class Anthropic provider wrapper · @ZohaibHassan16 - #1254 ·
80e97375· fix(utils): write console progress to stderr instead of stdout · @dex0shubham - #1260 ·
cac6dfbe· fix(explorer): surface server error detail in graph loading failures · @wanglin1111111 - #1252 ·
f6cd6241· test(integrations): make crewai and langchain test dirs packages · @dex0shubham - #1262 ·
ea0dd17b· feat(llms): add Gemini, Ollama, DeepSeek, Novita provider wrappers · @ZohaibHassan16 - #1264 ·
dfda4c56· feat(vector_store): add scan_vectors enumeration and wire up store mi… · @ZohaibHassan16 - #1266 ·
56b17478· ci: reusable install action, install-matrix, and release hardening · @KaifAhmad1 - #1280 ·
08c78bfb· fix(security): resolve Scorecard vulnerability and token-permission alerts · @KaifAhmad1 - #1286 ·
fa87a1a9· ci: add npm Dependabot ecosystem and container image scanning · @KaifAhmad1 - #1329 ·
a4aa71ad· fix(ci): unblock py3.9 install matrix and raise Scorecard pinning/signing · @KaifAhmad1 - #1334 ·
1d62217c· fix(docker): resolve Trivy-flagged CVEs in the built image · @KaifAhmad1 - #1153 ·
c111277a· fix(context): make auto_generate_id a real InitVar in decision models · @cxzg007 - #1338 ·
832412cc· fix(ci): hash-pin every pip install for Scorecard Pinned-Dependencies · @KaifAhmad1 - #1341 ·
d4cd44e7· fix(docker): split explorer-extra.txt by Python version, fix broken build · @KaifAhmad1 - #1342 ·
96dbd3f0· fix(security): bump checkov to 3.3.16, fix aiohttp CVEs in its lockfile · @KaifAhmad1 - #1345 ·
d135ad18· fix(ci): drop unpinnable benchmarks/requirements.txt install · @KaifAhmad1 - #1346 ·
b0679d4f· fix(ci): stop checkov's suppressed checks from reopening as new alerts · @KaifAhmad1 - #1340 ·
46b18fbe· fix(docs): use GraphStore facade in Neo4j quickstart · @Sameer6305 - #1348 ·
f3c540cf· docs(readme): reposition Semantica as the semantic/context layer · @KaifAhmad1 - #1277 ·
8b125d64· fix(explorer): keep small Full Graph relationships readable · @taoche - #1230 ·
dc81acae· fix(ontology): reject normalized class name collisions · @T1mn - #1157 ·
3254b9be· Serve the RDF export formats the MCP tool already offers (#1131) · @13g4d0 - #1332 ·
635f6e52· Pin facade contract gaps for cloud backends · @ZohaibHassan16 - #1363 ·
7300fb41· fix(plugins): declare agents as an array of file paths in plugin.json · @7487 - #1357 ·
e6409217· docs(cookbook): correct graph mapping and deduplication in notebook 07 · @taoche - #1370 ·
d8822198· fix(ci): ignore CVE-2025-33228 in cuda-toolkit - unfixable transitive pin, unreachable code path · @KaifAhmad1 - #1371 ·
2eab7ab8· fix(ci): drop --ignore from Safety check, filter accepted CVEs in jq instead · @KaifAhmad1 - #1027 ·
e040d84d· feat(context): add ErasureCoordinator for cross-store entity erasure · @pravit-amp - #1344 ·
8e7aaee4· fix(vector-store): validate collection schema in MilvusStore.get_collection · @pkupt - #1382 ·
f9a661a4· security(deps-dev): bump browserslist from 4.28.2 to 4.28.8 in /explorer · @KaifAhmad1 - #1359 ·
114641b3· docs(cookbook): make notebook 08 a real rerunnable KG workflow · @taoche - #1361 ·
3acf8012· docs(cookbook): rewrite Semantic Layer Basics as an introductory workflow · @taoche - #1385 ·
5f600a3f· fix(ci): ignore torchvision GIF-decoder CVE, transitive and unreachable · @ZohaibHassan16 - #1314 ·
170b4215· fix(vector_store): persist vector_ids and metadata across FAISS index save/load (#1272) · @AhmadBilalDSA - #1387 ·
28c96c25· fix(ci): update actions/deploy-pages pin to current v5 · @ZohaibHassan16 - #1366 ·
c10090dc· fix(ci): fail closed on malformed Safety reports · @T1mn - #1229 ·
fb69b033· fix(ontology): resolve endpoints in direct property inference · @T1mn - #1337 ·
909ccf0d· test: install extractor dispatch mocks per test, not at module scope · @dex0shubham - #1390 ·
3d32254b· fix(ci): migrate security-scan from Safety to pip-audit · @ZohaibHassan16 - #1316 ·
110f6deb· feat(vector_store): add iter_all enumeration for cursor-based backends · @ZohaibHassan16 - #1317 ·
23126106· feat(vector_store): add weaviate iter_all · @ZohaibHassan16 - #1092 ·
30a91a3a· feat(evals): add per-metric objective support to runner (closes #1091) · @pkupt - #1326 ·
fc899c69· feat(vector_store): add milvus iter_all · @ZohaibHassan16 - #1328 ·
1bc873cb· feat(vector_store): add pinecone iter_all · @ZohaibHassan16 - #1396 ·
a4500f5b· docs: tighten README audience list, add SAP connector mentions, log Salesforce ingestor · @KaifAhmad1 - #1394 ·
798a7455· fix(mcp): complete persistence and setup fixes · @Sameer6305 - #1399 ·
3c68cd12· docs(mcp): document all 15 MCP tools · @ZohaibHassan16 - #1400 ·
25d2ea5f· docs: update stale latest-version references to v0.6.7 · @ZohaibHassan16 - #1401 ·
b7b60d4a· docs(quickstart): fix broken examples against current APIs · @ZohaibHassan16 - #1395 ·
45915e50· fix(context): vector_store=False must suppress AgentMemory's internal vector cascade in ErasureCoordinator · @Harsh4r0ra - #1402 ·
279fdbf1· docs(quickstart): qodo findings addressed · @ZohaibHassan16 - #1403 ·
38ae5b58· docs: fix two broken cookbook notebook links · @ZohaibHassan16 - #1410 ·
d54d74c8· ci: report required checks for docs-only PRs · @Sameer6305 - #1407 ·
4559ac65· docs: convert relative page links to root paths to fix 404s on the live site · @Duansg - #1068 ·
b177fa75· fix: replace mutable default arguments with None + in-body defaults · @yzxcj797 - #1398 ·
2d776b73· docs(evals): update docs for the current evals API · @ZohaibHassan16 - #1414 ·
865aad54· docs(getting-started): fix broken APIs in the Knowledge Graph and GraphRAG tabs · @ZohaibHassan16 - #1415 ·
9e8db764· docs(quickstart): read parsed full_text · @ZohaibHassan16 - #1417 ·
b872b296· docs(concepts): rewrite code examples to match the actual API · @ZohaibHassan16 - #1392 ·
9321b9d2· feat(weaviate): add delete_vectors to WeaviateStore · @pkupt - #1418 ·
2daa9378· docs: simplify custom.css to a static, professional style · @KaifAhmad1 - #1419 ·
837654fc· docs: restructure nav — drop FAQ/Changelog tabs, add API Reference tab · @KaifAhmad1 - #1421 ·
40efab67· docs(index): cut marketing copy, remove em dashes, make crisp · @KaifAhmad1 - #1422 ·
58094184· docs: tighten prose in concepts.md, guides/graphrag.md, reference/context.md · @KaifAhmad1 - #1431 ·
ba85215a· docs(graphrag): fix broken string literals and clarifymax_hops· @ZohaibHassan16 - #1420 ·
6b843778· fix(ontology): stop inferring framework entity fields as datatype properties · @pkupt - #1278 ·
dd1e6540· fix(explorer): load registered schemas in Ontology Editor · @taoche - #1432 ·
064f0ecc· docs(langchain): tighten integration prose · @taljeon - #1443 ·
6a07ad29· docs(modules): fix code examples to match the current API · @ZohaibHassan16 - #1444 ·
f6a0e4a3· docs(pipeline): wire the configured FailureHandler into the engine · @ZohaibHassan16 - #1446 ·
6ba433fe· docs(index): rewrite landing page as a crisp developer welcome · @KaifAhmad1 - #1447 ·
a85cf913· docs(reasoning): clarify Datalog query result ordering · @ZohaibHassan16 - #1448 ·
c04adcd1· docs(semantic-extraction): fix summary output and model ID · @ZohaibHassan16 - #1445 ·
f45499b5· fix(deps): unblock python 3.9 core install · @ZohaibHassan16 - #1449 ·
88a57b39· docs: replace retired claude-sonnet-4-20250514 model id · @ZohaibHassan16 - #1397 ·
4c6eab63· feat(ontology): add a CI-friendly quality gate · @T1mn - #1450 ·
8910d2c9· docs(ontology): document quality gate threshold semantics · @KaifAhmad1 - #1349 ·
b92fed2d· feat(explorer): add Markdown editor write path · @genni613 - #1452 ·
dc99b11d· docs(contributing): tighten prose and use developer-first guidance · @Deep070203 - #1312 ·
6b8122d7· This is resubmit of the pr for issue feat(integrations): add Google ADK support · @Hitesh-XS - #1453 ·
c2edf7e7· docs(modules): tighten prose, remove chained colons, and use develope… · @Deep070203 - #1454 ·
66cf9520· docs(glossary): tighten prose and remove colon pauses in glossary · @Deep070203 - #1456 ·
478b0024· docs(resources): tighten prose across FAQ, learning paths, citation, … · @Deep070203 - #1458 ·
6c40dea0· docs(architecture): tighten core principles and scalability prose · @Deep070203 - #1457 ·
08d6ec62· docs(cookbook): tighten prose across notebook catalogue · @Deep070203 - #1442 ·
4568aeba· docs: tighten prose in top-level and community pages · @Deep070203 - #1459 ·
b82ae984· docs(setup): tighten prose across quickstart, installation, and CLI s… · @Deep070203 - #1437 ·
97ae95c3· explorer: name SHACL limit env vars in error messages · @pkupt - #1466 ·
820f7257· docs(decision-intelligence): fix broken add_decision pattern and hybr… · @ZohaibHassan16 - #1473 ·
a5994497· fix: correct production env var to SEMANTICA_API_KEY (fixes #1429) · @v01dst - #1455 ·
ce0ae1cb· refactor(context): expose public temporal normalizer · @Saket7002 - #1381 ·
754fe5fd· fix(context): deep-copy store results in ErasureReceipt.to_dict() · @BinarySpecter - #1465 ·
ebd659a9· Closes #1351: [BUG] semantica ingest reports "✓ Ingested" but persists nothing to a configured Neo4j backend (silent no-op) · @evgenyponomarev - #1476 ·
a65874e4· chore(release): prepare v0.6.8 · @KaifAhmad1
104 pull requests merged from 27 contributors.
详细ChangeLogv0.6.7
2026年08月28日
Semantica v0.6.7
Released: 2026-08-28
Tag: v0.6.7 · Compare: v0.6.6...v0.6.7 · PyPI: semantica 0.6.7
Highlights
Feature release, plus one SSRF hardening fix and a large batch of correctness fixes across the RDF/ontology export pipeline.
Ships: first-class LangChain integration (semantica[langchain]), a SAP OData ingestor (semantica[ingest-sap]), ContextGraph Markdown round-trip persistence, a reasoning Action layer (rule-driven Assert/Retract/Call/EmitEvent with optional provenance), a public run_shacl_validation API, and a read-only Explorer Markdown content viewer.
Also fixes: Agno/OpenClaw SSRF hardening, PipelineBuilder.set_parallelism() now actually parallelizes independent steps, flatten_dict() no longer drops data on a key collision, Config.get() honors boolean environment overrides, the MCP server's export_graph tool works again on every format, and a dozen ontology/RDF export correctness bugs (OWL property/class export, SHACL target namespace, one canonical confidence datatype, reachable OWL-Time reification, JSON-LD default-graph and content-derived document identity, full metadata passthrough — see CHANGELOG.md for the full breakdown).
What's Changed
- #1071 ·
54c274e0· test(ingest): track relationship provenance via ProvenanceManager · @dex0shubham - #897 ·
c5d382ee· test(visualization): isolate optional dependency mocks · @luantaraschi - #1045 ·
4801ff34· security(deps): bump anthropic from 0.121.0 to 0.122.0 · @dependabot - #1078 ·
96f60e61· feat(explorer): add markdown content preview and source view · @sakshi04-ui - #1115 ·
a3074ec4· fix(kg): keep relationship endpoint aliases in sync · @T1mn - #1123 ·
e3405ebc· Read the ontology shape the generator actually emits, and stop minting empty class IRIs (#1103) · @fabio-rovai - #1124 ·
cbb0a6dd· Target the namespace the data uses, and stop attaching domain-less properties to every class (#1104, #1105) · @fabio-rovai - #1125 ·
0dc26350· Write confidence as one typed decimal on every serialization path (#1100, #1102) · @fabio-rovai - #1126 ·
a279e744· Give the OWL-Time interval a subject the graph can reach (#1106) · @fabio-rovai - #1127 ·
46451ae2· Let a registered custom method refuse (#1108) · @fabio-rovai - #1145 ·
1b21fc4c· Keep JSON-LD payloads in the default graph (#1144) · @fabio-rovai - #1116 ·
5c6b40f3· fix(kg): validate entity_id aliases · @T1mn - #1172 ·
729f4fe9· fix(docker): use Python 3.13 for gensim compatibility · @DwitiThaker - #939 ·
d4fdc1f0· fix(normalize): accept unit aliases during conversion · @Mr-Neutr0n - #1088 ·
8e9f7c55· fix(utils): bound caller-controlled keys in validation error messages · @ALDRIN121 - #1087 ·
394ce5fe· fix(reasoning): refuse SPARQL query execution instead of returning empty results · @ALDRIN121 - #1149 ·
58125a0a· fix(dedup): never merge entities with different explicit types (closes #1137) · @pkupt - #1143 ·
14091d21· fix(kg): compute real relationship duration for temporal stability metric · @cxzg007 - #1183 ·
483f53aa· fix(tests): clear CodeQL false-positive on URL substring check (#4001) · @KaifAhmad1 - #1182 ·
3c99f447· docs(shacl): document that rdfs:range + RDFS entailment makes sh:class unfalsifiable · @ALDRIN121 - #1188 ·
d3f37f79· Fix HuggingFace NER kwargs handling · @shahzaib-ahmadcs - #1181 ·
9123dcc0· fix(export): JSON-LD document @id is now content-derived, not wall-clock · @reddynitish - #1189 ·
ba3737c8· feat(ontology): expose public SHACL validation API · @mikemikimike - #1047 ·
727b0383· security(deps): bump botocore from 1.43.69 to 1.43.73 · @dependabot - #1050 ·
331c8576· security(deps): bump agno from 2.8.7 to 2.9.0 · @dependabot - #1163 ·
48f219cd· deps(deps): bump google-genai from 2.17.0 to 2.18.1 · @dependabot - #1187 ·
1ee2ae88· fix(context): accept analyzer vocabulary in causal edges · @ALDRIN121 - #996 ·
7e1d2550· fix: prevent fallback recursion and write proper Parquet in embed generate command (fixes #994) · @varunsahni18 - #851 ·
f6b31925· fix(context): reject Markdown import symlinks · @SaurabhScripts - #852 ·
a4bcfade· feat(context): add ContextGraph Markdown round-trip · @SaurabhScripts - #885 ·
abe1bc8f· fix(semantic_extract): reset vector similarity state when scoring fails · @ArmanGrewal007 - #899 ·
d79f2cfb· Add graph storage backend compatibility matrix · @yulinlina - #902 ·
ea9b1f5d· test(conflicts): add coverage for 4 resolution strategies and 3 conflict types · @Devansh070 - #1112 ·
6c2ccfd3· fix(export): normalize Turtle resource IRIs · @mikemikimike - #1192 ·
f4c6be15· fix(triplet_store): honor RDF4J repository id · @Freakz2z - #1193 ·
0468a603· fix(utils): write console progress only to an interactive stdout · @ALDRIN121 - #1057 ·
58ec7639· docs: fix broken star history chart in README · @OctoBored - #1165 ·
703b40a1· Carry metadata through every RDF serialization (#1154) · @fabio-rovai - #1210 ·
c415d57d· docs: add citation section and fix stale org references · @KaifAhmad1 - #1197 ·
93281859· security(deps): bump lxml from 6.1.1 to 6.1.2 · @dependabot - #1201 ·
7da3519c· security(deps): bump charset-normalizer from 3.5.0 to 3.5.1 · @dependabot - #1212 ·
58aad80d· fix: guard Agno and OpenClaw integration requests against SSRF · @Sameer6305 - #1176 ·
2f63896f· Remove unreachable dead code · @Vinv-AI - #972 ·
4217f23d· refactor(seed): remove obsolete requests import handling in load_from_api · @pravit-amp - #1213 ·
2075eca0· fix: preserve generation kwargs in relation extraction · @Sameer6305 - #970 ·
a1a72cdd· fix(triplet_store): OxigraphStore silently ignores storage_path; add_triplets skips flush · @logan-jl-cc - #1151 ·
06a4b2c9· fix(mcp): export_graph failed on every format — convert kg dict, disable progress · @Arasz - #1156 ·
5e8caadc· Read JSON-LD named graphs in OntologyIngestor (#1129) · @13g4d0 - #1194 ·
c7d60857· refactor(explorer): move isSafeUrl out of MarkdownContentViewer (#1119) · @pravit-amp - #1195 ·
50468f9c· perf(explorer): stop re-parsing markdown on every viewer re-render (#1118) · @pravit-amp - #1148 ·
551b94c5· fix(export): escape Turtle/N-Triples string literals (closes #1098) · @pkupt - #1217 ·
97f71542· fix(pipeline): preserve serializer round trips · @cxzg007 - #925 ·
fa6d645e· Add tests for max_tokens propagation in LLM methods · @saiganesh47 - #937 ·
599729f2· fix(explorer): /api/decisions returns 422 — coerce decision timestamp to str · @logan-jl-cc - #967 ·
92b8aa69· fix: decision persistence/query bugs, CJK similarity, and MCP graph query/update tools · @toratto - #1203 ·
8a990c8b· security(deps): bump pypickle from 2.0.1 to 2.0.2 · @dependabot - #1155 ·
f0aa5813· feat(integrations): add LangChain integration — retriever, vectorstor… · @drod331 - #1221 ·
d76bff9a· refactor(export): consolidate duplicate Turtle/N-Triples literal escapers · @pkupt - #1004 ·
8cc5d364· fix(cli): write embed generate output in the format embed index reads · @yzxcj797 - #989 ·
f4692eea· docs(cookbook): add provenance tracking tutorial (PROV-O lineage, invalidation, checksums) · @LeonSGP43 - #1170 ·
59af0234· fix(ontology): resolve relationship endpoint types for domain and range · @T1mn - #1084 ·
af3308ad· fix(ontology): preserve #-terminated namespaces in SHACLGenerator base_uri (#1082) · @changshenhan - #1017 ·
c49e77d0· fix(ingest): import sqlalchemy text where DBIngestor and DataExporter use it · @pravit-amp - #1205 ·
8e79c655· security(deps): bump google-genai from 2.18.1 to 2.19.0 · @dependabot - #1005 ·
f187d4b5· fix(embeddings): stop the registry dispatch from calling wrappers back into themselves · @yzxcj797 - #990 ·
b13cc1cc· docs(cookbook): add Reasoning module notebook · @LeonSGP43 - #991 ·
3d0ce55f· docs(cookbook): add Change Management module notebook · @LeonSGP43 - #992 ·
9cec305a· docs(cookbook): add Seed Data module notebook · @LeonSGP43 - #1215 ·
c9c77799· fix(pipeline): wire registered step handlers · @cxzg007 - #1096 ·
5d549198· feat(reasoning): rule-driven actions with provenance · @cxzg007 - #1171 ·
23baf21d· fix(ontology): retain data properties for normalized class names · @T1mn - #1012 ·
8db95f00· fix(utils): raise on key collision in flatten_dict instead of silently dropping values · @yzxcj797 - #1225 ·
36ced4e8· docs(cookbook): add index entries for notebooks 22-25 · @LeonSGP43 - #1173 ·
13b287b9· fix(graph_store): resolve application ids to internal ids when creating relationships · @yzxcj797 - #1113 ·
f4c30645· fix(export): normalize entity name to label on all RDF paths · @cxzg007 - #1132 ·
0775b011· test(provenance): assert stored records in KG provenance suites (#946) · @pravit-amp - #1061 ·
65e6dcfe· fix(worker): remove unused sys import and organize imports · @aoright - #1021 ·
7f928f9f· fix(parse): warn when PDF parse yields no text layer (scanned PDFs) · @shanyu910 - #1038 ·
4da27c38· fix(config): honor boolean env overrides in Config.get() · @Kyou12138 - #1220 ·
e12eec40· refactor(ner): remove dead _extract_with_spacy method and unused self.nlp · @yunaremaia - #1226 ·
cce5ea17· fix(pipeline): set_parallelism now enables dependency-layer parallel execution (closes #1223) · @cxzg007 - #1234 ·
100e95a0· feat(ingest): add SAP OData ingestor (#1228) · @pkupt
82 pull requests merged from 37 contributors.
Contributors
Returning contributors who shipped changes in this release:
@KaifAhmad1, @Kyou12138, @Mr-Neutr0n, @Sameer6305, @SaurabhScripts, @T1mn, @aoright, @cxzg007, @dex0shubham, @fabio-rovai, @mikemikimike, @pravit-amp, @shahzaib-ahmadcs, @yunaremaia, @yzxcj797
New Contributors
Welcome, and thank you for your first contribution to Semantica:
- @luantaraschi first contribution in #897
- @sakshi04-ui first contribution in #1078
- @DwitiThaker first contribution in #1172
- @ALDRIN121 first contribution in #1088
- @pkupt first contribution in #1149
- @shahzaib-ahmadcs first contribution in #1188
- @reddynitish first contribution in #1181
- @varunsahni18 first contribution in #996
- @SaurabhScripts first contribution in #851
- @ArmanGrewal007 first contribution in #885
- @yulinlina first contribution in #899
- @Devansh070 first contribution in #902
- @Freakz2z first contribution in #1192
- @OctoBored first contribution in #1057
- @Vinv-AI first contribution in #1176
- @logan-jl-cc first contribution in #970
- @Arasz first contribution in #1151
- @13g4d0 first contribution in #1156
- @saiganesh47 first contribution in #925
- @toratto first contribution in #967
- @drod331 first contribution in #1155
- @LeonSGP43 first contribution in #989
- @changshenhan first contribution in #1084
- @shanyu910 first contribution in #1021
Full Changelog: v0.6.6...v0.6.7
详细ChangeLogv0.6.6
2026年08月20日
Semantica v0.6.6
Released: 2026-08-20
Tag: v0.6.6 · Compare: v0.6.5...v0.6.6 · PyPI: semantica 0.6.6
Highlights
Security release — upgrading is strongly recommended. Fixes for a privately disclosed batch of vulnerabilities spanning backup/restore, database export, outbound requests, and triplet-store backends, plus SSRF hardening across ingestion (tarball path traversal, SQL injection, DNS-rebinding TOCTOU, stored XSS, SPARQL injection, credential leakage across redirects, and more — see CHANGELOG.md for the full breakdown).
Also ships: first-class CrewAI integration, ContextGraph retraction and purge, a declared Semantica RDF vocabulary with deterministic entity/relationship IRIs, and timezone-aware timestamps across export/ and provenance/.
What's Changed
- #862 ·
918830a8· fix(pipeline): resolve broken import and missingrun()inPipelineWithProvenance· @Karunasagar12 - #857 ·
229cb69c· Added custom_filter_by_metadatafor each memory backend · @TaherTadpatri - #870 ·
22bf5810· fix(mcp): report package version · @oiahoon - #871 ·
9ec79598· Bump fastapi minimum version to fix PYSEC-2024-38 (starlette DoS) · @agu2347 - #873 ·
bc63e962· test(seed): use a real file for CSV loading · @nightcityblade - #929 ·
687a1807· fix(context): take the lock inContextGraph.to_dict()· @pravit-amp - #912 ·
c1154b6e· fix(security): header injection, link-prediction DoS, import ID sanitization · @Sunil56224972 - #878 ·
1a3dd503· docs(kg): documentGraphBuilderpublic methods · @cakeni - #941 ·
1ee3f2f2· fix(kg): alignGraphBuilderraw-text extraction defaults with the documented contract · @dex0shubham - #879 ·
b0080c36· fix(export): logDistanceExportermetric computation failures instead of swallowing them · @AmirF194 - #881 ·
18f1d55d· test(normalize): make optional tests deterministic · @aoright - #882 ·
0fa3483b· fix(context): clarifyget_node_propertynot-found contract (#877) · @ZohaibHassan16 - #960 ·
2cfb5de4· feat(export): add opt-inmetric_errorscolumn toDistanceExporter· @Karunasagar12 - #966 ·
7c3372c0· fix(explorer): align dev esbuild target · @le-czs - #905 ·
91d02a0f· fix(ingest): hardenRepoIngestorGitPython clone surface (#868) · @pravit-amp - #914 ·
43bac617· fix(vector_store): makeVectorManagermethods work on persistent backends (#855) · @yunaremaia - #928 ·
611874e6· security: apply SSRF guard to feed ingestion requests · @ZohaibHassan16 - #959 ·
c5d13a45· feat(seed):allow_private_ipsopt-in for trusted internal API sources · @yunaremaia - #908 ·
09c4b1b5· test(context): skip symlink test without Windows privilege · @ssynb - #976 ·
c0a05190· docs: update CONTRIBUTING.md · @eltociear - #978 ·
94d0c3dc· fix(kg): remap relationship endpoints after entity resolution · @T1mn - #932 ·
1c0cebb1· security(context): harden Markdown import against TOCTOU symlink races · @lakshanmuruganandam - #935 ·
80b1cca0· test(semantic_extract): guard openai-dependent tests and assert on the logger, not stdout · @dex0shubham - #980 ·
75f88b1c· Fix/explorer backend failure states · @ZohaibHassan16 - #984 ·
5bc09a5f· refactor(explorer): remove dead graph workspace shell · @lakshayxi - #979 ·
80b9bea0· fix(ingest): lock the repo host DNS resolve cache against concurrent mutation · @manjunathbhaskar - #983 ·
8a4ebafb· fix(context): honor explicit causal edges in decision tracing · @hsd2514 - #945 ·
4513b61e· ci: pin Python dependencies inrequirements-ci.txtfor reproducible CI · @yunaremaia - #986 ·
42afc060· ci: refreshgithub/codeql-actionpin to current v4 · @ZohaibHassan16 - #987 ·
c1be6dd7· docs: fix dead allcontributors emoji-key link · @yzxcj797 - #886 ·
557e29ee· fix(explorer): repair/api/enrich/extract(always 503) and the/api/decisionsroutes (always 500) · @joseedson18jc - #1000 ·
b8175ea8· fix(kg): make k-shortest path search side-effect free · @T1mn - #926 ·
84ce3c51· fix(context): makeContextGraph.add_edgeidempotent by deduping onedge_id· @pravit-amp - #951 ·
6df97cf0· fix(triplet_store): stop CONSTRUCT detection matching inside a leading comment · @pravit-amp - #957 ·
f1e7e64a· feat(context): add retraction and purge toContextGraph· @pravit-amp - #995 ·
8639cb9f· fix(seed): pass connection string toDBIngestorand stop mislabelingOSErrorinload_from_database· @yzxcj797 - #1003 ·
115e7965· fix(explorer): gate temporal requests on graph load · @lakshayxi - #958 ·
55798512· fix(export): harden YAML export input handling · @pravit-amp - #988 ·
d94d8f6a· Feat/crewai integration · @Shindevrp - #1011 ·
8177d887· fix(kg): preserve isolated nodes in graph analytics · @T1mn - #1016 ·
15171fd3· fix(parse): importget_progress_trackerinExcelParser· @pravit-amp - #1030 ·
c53ca4e8· docs: formalize issue assignment and duplicate-PR triage workflow · @KaifAhmad1 - #940 ·
70aa9d01· fix(normalize): validate symbol currencies · @Mr-Neutr0n - #1033 ·
6416fbb6· docs: clarify explainability is system-level, not foundation-model internal · @KaifAhmad1 - #1034 ·
4d379200· docs: surface explainability scope note near the top of the README · @KaifAhmad1 - #1042 ·
d4cb14c1· perf(split): avoid repeated spaCy model loading in split/chunking paths · @Accute9 - #1062 ·
eedf1425· Fixflatten_dictkey collisions · @shahzaib-ahmadcs - #1067 ·
04602a0e· fix(security): prevent Authorization header leakage across redirects (#947) · @Sameer6305 - #1056 ·
baf8f01f· test(export): guard Parquet tests on pyarrow itself, not the exporter import · @dex0shubham - #921 ·
5c2901ae· docs(context): fix unrunnableContextGraphdocstring example · @pravit-amp - #1079 ·
488e3812· fix(security): address privately disclosed zip-slip, SQLi, SSRF, XSS, and SPARQLi findings · @KaifAhmad1 - #1026 ·
17d878cb· fix(kg): honor exact entity resolution · @T1mn - #1081 ·
a1194a15· feat(context): addto_kg_dict()adapter for canonical KG shape · @cxzg007 - #1013 ·
7db2e2f4· fix(explorer): enable edge label rendering on the graph canvas · @yzxcj797 - #1040 ·
e6b159e5· docs(explorer): update stale authentication notes after v0.6.5 · @Kyou12138 - #1094 ·
68f7ae38· fix(ontology): render real SHACL constraint values inexplain_violations· @cxzg007 - #1086 ·
b77e3e8c· fix(kg): preserveentity_idaliases during entity merging · @T1mn - #942 ·
4a886d97· fix seed SSRF · @ZohaibHassan16 - #1109 ·
2a303cf4· Declare the Semantica vocabulary, and mint entity IRIs deterministically (#1107, #1101) · @fabio-rovai - #1120 ·
58b77ddc· Mint JSON-LD@ids the same way the RDF serializers do (#1101, missed by #1109) · @fabio-rovai - #1121 ·
6b7625ef· Write timestamps with an explicit UTC offset, and tightensem:exportedAttoxsd:dateTimeStamp(#1114) · @fabio-rovai
61 pull requests merged from 32 contributors.
Contributors
Returning contributors who shipped changes in this release:
@KaifAhmad1, @pravit-amp, @Sameer6305, @Sunil56224972, @ZohaibHassan16
New Contributors
Welcome, and thank you for your first contribution to Semantica:
- @Karunasagar12 first contribution in #862
- @TaherTadpatri first contribution in #857
- @oiahoon first contribution in #870
- @agu2347 first contribution in #871
- @nightcityblade first contribution in #873
- @cakeni first contribution in #878
- @dex0shubham first contribution in #941
- @AmirF194 first contribution in #879
- @aoright first contribution in #881
- @le-czs first contribution in #966
- @yunaremaia first contribution in #914
- @ssynb first contribution in #908
- @eltociear first contribution in #976
- @T1mn first contribution in #978
- @lakshanmuruganandam first contribution in #932
- @lakshayxi first contribution in #984
- @manjunathbhaskar first contribution in #979
- @hsd2514 first contribution in #983
- @yzxcj797 first contribution in #987
- @joseedson18jc first contribution in #886
- @Shindevrp first contribution in #988
- @Mr-Neutr0n first contribution in #940
- @Accute9 first contribution in #1042
- @shahzaib-ahmadcs first contribution in #1062
- @cxzg007 first contribution in #1081
- @Kyou12138 first contribution in #1040
- @fabio-rovai first contribution in #1109
Full Changelog: v0.6.5...v0.6.6
详细ChangeLogv0.6.5
2026年08月12日
Release Date: August 11, 2026
Version: 0.6.5
Semantica 0.6.5 is a security release closing 6 externally-reported vulnerabilities across the Explorer API and the graph/triplet store backends — including a Critical missing-authentication gap and a Critical Cypher-injection path — plus a CodeQL-flagged ReDoS. It also ships an embedded Oxigraph TripletStore backend, full PROV-O trust/spec completeness for ProvenanceManager, the Altair Anzo triplet store backend, and closes out 25+ correctness bugs across vector stores, provenance, ontology validation, and the Explorer frontend.
Upgrading is strongly recommended for all deployments, especially anyone running the Explorer API.
What's Changed
Security
-
Missing authentication on all Explorer API routes (#909, GHSA-j4mq-hprp-987v, Critical) by @KaifAhmad1
- Every route across all 11 API routers (graph, ontology, SPARQL, SHACL, provenance, temporal, analytics, import/export) was reachable with no credential — full read/write graph access and arbitrary SPARQL execution for anyone who could reach the port
- New
Depends(require_auth)validatesX-API-KeyagainstSEMANTICA_API_KEY; fails closed (503) when unset, rather than silently allowing anonymous access SEMANTICA_ALLOW_ANONYMOUS=trueremains available as an explicit opt-out for local/dev use
-
SSRF via redirect bypass in ontology URL fetching, plus DNS check-then-use hardening (#898, #916, GHSA-8c7v-62gr-hj6g, High) by @Sunil56224972 and @KaifAhmad1
- A validated public first hop could redirect (302) to
http://169.254.169.254/...(cloud instance metadata) or an internal service with no re-validation; redirects are now followed manually, capped at 5 hops, with every hop's target (including relativeLocationheaders) re-validated - Follow-up (#916) closed a secondary DNS check-then-use (TOCTOU) window: the connection is now pinned directly to the validated IP via a custom
requestsadapter, with the real hostname still presented for the HTTPHostheader and TLS SNI/certificate verification - Verified with real (non-mocked) local HTTP/HTTPS test servers, including a negative control confirming a hostname/cert mismatch is still rejected
- A validated public first hop could redirect (302) to
-
Cypher injection via unvalidated node labels, relationship types, and property keys (#910, GHSA-482h-hw99-h62p, Critical) by @KaifAhmad1, review fix by @Sameer6305
- Labels and property keys can't be parameterized like values; a document-derived entity type or property name could close the current Cypher token early and append arbitrary statements (e.g.
DETACH DELETE) across the Neptune, Neo4j, and FalkorDB backends - New shared
semantica/graph_store/query_sanitize.pyvalidates every label/relationship-type/property-key interpolation site
- Labels and property keys can't be parameterized like values; a document-derived entity type or property name could close the current Cypher token early and append arbitrary statements (e.g.
-
SPARQL injection via unvalidated triplet IRIs (#911, #916, GHSA-8vgg-8mr4-r236, Critical) by @KaifAhmad1, review fix by @ZohaibHassan16
- A subject/predicate/object containing
>could close the<...>IRI token early and append arbitrary SPARQL (e.g.CLEAR ALL) across the Blazegraph, RDF4J, and Jena backends - Applied
sparql_escaping.validate_uri()at every interpolation site; a follow-up (#916) closed a remaining gap where an already-<...>-wrapped object skipped validation
- A subject/predicate/object containing
-
Missing Origin validation on the WebSocket handshake (#917, GHSA-4643-wpgq-w329, Moderate — anonymous-mode only) by @KaifAhmad1
CORSMiddlewaredoesn't cover WebSocket handshakes; underSEMANTICA_ALLOW_ANONYMOUS=true,/ws/graph-updatesaccepted a connection from any browser origin- Now checks
Originagainst the same allowlistCORSMiddlewarealready enforces for HTTP, before the key check
-
Polynomial-time ReDoS in the SPARQL route's
_PREFIX_DECLregex (#915, CodeQLpy/polynomial-redos) by @Sameer6305- Two overlapping quantifiers allowed O(n²) backtracking, reachable from
req.query; fixed by making them character-disjoint, plus a10,000-char defense-in-depth query length cap
- Two overlapping quantifiers allowed O(n²) backtracking, reachable from
-
4 additional critical/high vulnerabilities in the Explorer API and vector store: RCE, XXE, DoS (#898) by @Sunil56224972
- [CWE-502] Arbitrary code execution via
pickle.load()inVectorStore.save()/load()— replaced with JSON; legacy.pklfiles are now refused rather than deserialized - [CWE-611] XXE in the RDF/XML parser —
defusedxmlis now a declared dependency and_safe_parse_rdf()fails closed if it isn't importable - [CWE-770] DoS via unbounded SPARQL graph materialization — capped at 50,000 nodes/edges
- Plus Cypher-injection hardening for Apache AGE's
graph_name/$$-delimiter breakout, and comment/PREFIX-hiding bypass hardening for the read-only SPARQL keyword check
- [CWE-502] Arbitrary code execution via
-
CI/CD supply-chain hardening against mutable-tag Action compromise (#824) by @KaifAhmad1
- Every third-party GitHub Action across all 8 workflows pinned to a full commit SHA (closing the vector used against LiteLLM in March 2026); added a CI check that fails closed on any non-SHA
uses:reference; added SLSA build provenance attestation and a protectedpypiGitHub Environment
- Every third-party GitHub Action across all 8 workflows pinned to a full commit SHA (closing the vector used against LiteLLM in March 2026); added a CI check that fails closed on any non-SHA
-
security-scan.yml's Safety dependency check was silently non-functional,pypdf2==3.0.1removed (CVE-2023-36464), and 10 Bandit B324 false positives suppressed (#824) by @KaifAhmad1 -
SSRF protection for
WebIngestor,SitemapCrawler, andRESTIngestor(#906, closes #867) by @pravit-amp- New shared
validate_url_for_request()SSRF guard, wired into all three ingestors;allow_private_ipsremains available as an explicit opt-in for trusted internal deployments
- New shared
Added
-
Embedded Oxigraph backend for
TripletStore(#838, closes #834) by @Linxiushen- In-process SPARQL 1.1 store via the optional
pyoxigraphdependency — no external server (Blazegraph/Jena/RDF4J/Anzo) required pip install "semantica[tripletstore-oxigraph]"; runs in memory by default or persists to a local directory
- In-process SPARQL 1.1 store via the optional
-
PROV-O trust blockers and general spec completeness for
ProvenanceManager(#825) by @KaifAhmad1- Invalidation-instead-of-delete tombstoning, hash-chained integrity (
verify_chain()), typed Agent/Activity records, downstream lineage traversal, W3C PROV-O qualified relations, bitemporal + Bundle support, and a configurable namespace - New CLI commands:
semantica provenance invalidate|verify-chain|descendants
- Invalidation-instead-of-delete tombstoning, hash-chained integrity (
-
Altair Anzo triplet store backend (#813) by @KaifAhmad1 — a fourth peer to Blazegraph/RDF4J/Jena speaking plain SPARQL 1.1 over HTTP, no new dependency required
-
Comprehensive unit and security test suite for the
/api/sparqlExplorer route (#773) by @Sameer6305 — 34 new tests covering read-only allowlist enforcement, resource limiting, and RDF projection fidelity -
Global default persistent storage for
ProvenanceManager, plus a workingprovenanceCLI (#795, #802) by @Sameer6305 and @KaifAhmad1 — every ingestion module now actually persists to the SQLite audit trail instead of silently falling back to in-memory storage -
Markdown round-trip export/import for
AgentMemory(#765, #786) by @SaurabhScripts and @Sameer6305 — human-editable, diff-friendly Markdown alternative to JSON serialization, with atomic upsert-by-ID import
Fixed
VectorStore.search_vectors()returned inconsistent result shapes across backend implementations (#853, closes #845) by @Sameer6305, reviewed by @KaifAhmad1DecisionEmbeddingPipeline.find_similar_decisions()crashed for anyVectorStorebackend other thaninmemory(#842, closes #839) by @Sameer6305QdrantStore.search_vectors()returned results keyed by"payload"instead of"metadata"(#841, closes #840) by @divyankshah- Explorer Temporal panel never rendered after clicking the toolbar button (#830, #836) by @Sameer6305
HybridSearch.search()crashed for anyVectorStorebackend other thaninmemory(#833, #837) by @KaifAhmad1VectorStore.store_vectors()silently dropped metadata for FAISS (#832, #835) by @KaifAhmad1AgnoDecisionKit.check_policysilently treated unevaluable policy rules as compliant (#778, #822) by @Sameer6305- No cycle detection for SKOS concepts at write time (#774, #819) by @mikemikimike, reviewed by @Sameer6305 and @KaifAhmad1
- Agno
_AgentScopedStore.upsert_memorysilently swallowed decision recording failures (#779) AgnoDecisionKit/AgnoKGToolkitsilently swallowed Agno tool registration failures (#780, #818) by @Sameer6305 and @KaifAhmad1ProvenanceManagertracking methods silently swallowed failures without logging (#783)- MCP
handle_get_causal_chainreturned an empty-but-valid response when unsupported (#781, #817) by @Sameer6305 and @KaifAhmad1 ProvenanceManager.track_entitypersisted partial history on storage failure (#782, #816) by @Sameer6305 and @KaifAhmad1ProvenanceManagerduplicated checksum/persist/exception-swallow logic across 4 methods (#784, #815) by @Sameer6305 and @KaifAhmad1SQLiteStorage/ProvenanceManagerconnection churn, non-atomic writes, batch tracking overhead (#807) by @Sameer6305- Closed remaining
ProvenanceManagerstorage-failure test-coverage gaps (#785) - Explorer's Provenance UI used a naive 2-hop traversal instead of the audit-grade
ProvenanceManagerbackend (#792, #809) by @Sameer6305 POST /shacl/validateand the/healthSHACL dimension never ran live SHACL validation (#772, #804) by @Sameer6305 and @KaifAhmad1- Neptune cookbook CloudFormation stack exposed the database port to the entire internet (code scanning #26–28) by @KaifAhmad1
- Knowledge-explorer Helm chart namespace/seccomp scanner findings reopened (code scanning #846–848, #68, #63) by @KaifAhmad1
react-hooks/set-state-in-effectcascading renders across 12 Explorer workspace files (#769, #796) by @Sameer6305 and @KaifAhmad1- Checkov flagged the knowledge-explorer Helm chart for the default Kubernetes namespace (code scanning #777–779) by @KaifAhmad1
- No React error boundaries around lazy-loaded Explorer workspaces (#768, #794) by @Sameer6305
- Explorer frontend workspaces silently swallowed network/server errors (#767, #790) by @Sameer6305
tests/explorer/test_explorer_api.pyfailed on currenthttpx(#788, #789) by @Sameer6305- Explorer backend routes returned HTTP 200 with error/empty bodies on failure (#770, #787) by @Sameer6305 and @KaifAhmad1
Testing
- New test coverage for previously untested/lightly-covered
splitchunkers (SlidingWindow,Structural,Table,EntityAware, and KG chunkers) (#904, closes #864) by @pravit-amp - New test coverage for
ClusterBuilder,MergeStrategyManager/PropertyMergeRule, andEntityMerger.merge_duplicates()in deduplication (#907, closes #866) by @pravit-amp
Contributors
@KaifAhmad1 · @Sameer6305 · @Sunil56224972 · @Linxiushen · @SaurabhScripts · @divyankshah · @mikemikimike · @pravit-amp · @ZohaibHassan16
Full Changelog: https://github.com/semantica-agi/semantica/blob/main/CHANGELOG.md
详细ChangeLogv0.6.0
2026年07月21日
Release Date: July 21, 2026
Version: 0.6.0
Semantica 0.6.0 closes out cross-backend SPARQL parity (named graphs and CONSTRUCT templates now work identically across Blazegraph, RDF4J, and Jena), adds Databricks and SQLite as new data connectors, and fixes seven correctness bugs in provenance tracking and rule-based reasoning.
What's Changed
Added
-
Named-Graph Support for
JenaStore(#756, #757) by @Sameer6305 and @KaifAhmad1- Migrated onto
rdflib.Dataset(default_union=False);add_triplets()gains agraph=option for named-graph writes - Completes cross-backend named-graph parity across Blazegraph, RDF4J, and Jena
- Also fixes the remote Fuseki path silently failing every write (wrong rdflib store class,
self.endpointnever set) - 9 tests
- Migrated onto
-
SPARQL CONSTRUCT Query Templates (#752, #322, #755, #754) by @Sameer6305
ConstructTemplate,ParameterDescriptor,ConstructTemplateRegistryfor parameterized, injection-safe CONSTRUCT queries- CONSTRUCT execution extended from Blazegraph-only to the RDF4J and Jena backends
- New
construct_templatepipeline step type
-
Databricks Connector (#747) by @KaifAhmad1
DatabricksIngestorfor Unity Catalog + Delta Lake ingestion, mirroringSnowflakeIngestor's API shape- PAT and OAuth M2M (service principal) auth;
ingest_table()/ingest_query(); catalog/schema/table introspection; table + column lineage - Optional dep:
pip install "semantica[db-databricks]"; included indb-all - 35 tests
-
SQLite Vector Store Backend (#726) by @Luffy2208 and @KaifAhmad1
SQLiteVecStore, a disk-backed local vector store onsqlite-vec'svec0virtual tables- Cosine/L2 metrics, JSON metadata filtering, read-only and in-memory modes, optional WAL mode for write concurrency
- Optional dep:
pip install semantica[vectorstore-sqlite] - 25 tests
Fixed
kg.ProvenanceTrackerout of sync withProvenanceManager, now deprecated in favor of it (#744, #751) by @Sameer6305 and @KaifAhmad1ProvenanceManager.track_entitysilently overriding an explicitparent_entity_id/derived_fromon re-track (#742) by @Sameer6305ProvenanceManager.get_lineagenot linking entities that share a source URL (#735) by @KaifAhmad1Reasoner.add_rulehad no deduplication, doubling rules and silently emptyingforward_chain()on rerun (#732) by @KaifAhmad1InferenceResult.premisesalways empty fromforward_chain/backward_chain(#739) by @Sameer6305- Missing
shacloptional-dependency extra (#736) by @Sameer6305 NodeEmbedderAttributeErrormasked inContextGraph.analyze_graph_with_kg(#734) by @Sameer6305
Full Changelog: https://github.com/semantica-agi/semantica/blob/main/CHANGELOG.md
详细ChangeLogv0.5.1
2026年06月29日
What's Changed
Added
-
Apache Arrow & Feather File Ingestion (#705) by @Luffy2208
ArrowIngestorfor.arrow,.feather, and.ipcfiles via PyArrow- Supports IPC File, IPC Stream, Feather v1/v2; selective column reads, row limits, batch-aware iteration
ingest_arrow()convenience function andingest(..., source_type="arrow")unified dispatch- Auto-detection by file extension and IPC magic bytes in
FileTypeDetector - Optional dep:
pip install semantica[ingest-arrow]; included inpip install semantica[all] - 34 tests
-
Knowledge Explorer Deployment Templates (#684) by @ZohaibHassan16 and @KaifAhmad1
deploy/directory with ready-to-use templates for Docker, Railway, Render, Fly.io, GCP Cloud Run, Azure Container Apps, Kubernetes + Helm- Fixed Dockerfile (correct path, non-root user, healthcheck, .dockerignore); full-stack docker-compose.yml; dev compose with hot-reload
- Added
/api/healthendpoint; wiredALLOWED_ORIGINS,FALKORDB_HOST,FALKORDB_PORTfrom env vars - Helm chart passes
helm lint; all templates carrynamespace: {{ .Release.Namespace }}
-
Neo4j Bulk CSV Export (#665) by @Luffy2208
Neo4jCSVExporterforneo4j-admin database import-compatible CSV files- Deterministic output, multi-label support, SHA-256 content-based stable IDs,
dry_run()andvalidate_export() export_neo4j_csv()convenience function; 13 tests
Fixed
- Arrow ingestion double full-scan on every data read (#705) by @KaifAhmad1
- Dead
num_record_batchesproperty materialising all table batches (#705) by @KaifAhmad1 - Arrow
_open_filechaining the wrong exception in fallback cascade (#705) by @KaifAhmad1 - Neo4j CSV
_write_csvcrash withTypeErroron dialect kwargs (#665) by @KaifAhmad1 export_neo4j_csvdouble-passing kwargs to constructor andexport()(#665) by @KaifAhmad1
Security
- Dependency updates: lxml ≥ 6.1.1, pydantic ≥ 2.13.4, azure-storage-blob, websockets, kafka-python, watchdog
Full Changelog: https://github.com/semantica-agi/semantica/blob/main/CHANGELOG.md
详细ChangeLogv0.5.0
2026年05月11日
Semantica 0.5.0 — Distance Intelligence & Ontology Hub 🚀
Released: 2026-05-11
Highlights
- Distance Intelligence — measure semantic distance between any two nodes across the graph, API, and Explorer
- Ontology Hub — full workspace for browsing, loading, aligning, and validating ontologies in the Explorer
- Parquet Ingest — native Parquet file ingestion support
- KnowledgeGraph dataclass — first-class
KnowledgeGraphtype with native visualizer support - MCP Server — modular,
pipx-installable MCP server package with 4 new plugin bundles
New Features
Distance Intelligence
- Semantic distance between nodes across
ContextGraph, REST API, and Knowledge Explorer — #502, #512 by @KaifAhmad1 - Node distance semantics in
PathResponse(step count, hop distance, relationship type) — #472, #477 by @KaifAhmad1 - Bidirectional path finding via
directed=falseparameter — #469, #476 by @KaifAhmad1 - Distance intelligence optimization and UI polish — #550 by @KaifAhmad1
Ontology Hub
- Ontology Hub workspace in the Explorer: Registry, Loader, Entity Search, SKOS browser — #518, #521, #523 by @KaifAhmad1
- Alignments panel, SHACL Studio, and ontology health dashboard — #524 by @KaifAhmad1 and @ZohaibHassan16
Knowledge Explorer UI
- Full Explorer UI with graph, decision, provenance, temporal, and vocabulary workspaces — #453 by @KaifAhmad1 and @ZohaibHassan16
- Redesigned landing page — #516 by @ZohaibHassan16
- Grouped graph view — collapse related nodes into logical clusters — #493 by @ZohaibHassan16
- Graph declutter mode and calm layout — #483 by @ZohaibHassan16
- Stabilized local graph interaction — #487 by @Sameer6305
- Welcome screen and SPA root handler — #501, #463 by @KaifAhmad1
- Explorer visual refresh and graph element rendering system — #503 by @ZohaibHassan16
- Indexed search for large graphs (bisect-based, thread-safe) — #481 by @ZohaibHassan16
Parquet Ingest
- Native Parquet file ingestion (
ParquetIngester) — #548 by @Luffy2208
KnowledgeGraph Dataclass
- New
KnowledgeGraphdataclass with nativeKGVisualizersupport — #471, #474 by @KaifAhmad1 - All
visualize_*methods now acceptKnowledgeGraphobjects directly — #459 by @KaifAhmad1
MCP Server & Plugins
- Modular MCP server package at repo root, installable via
pipx— by @KaifAhmad1 - New plugin bundles: Windsurf, Cline, Continue, VS Code — by @KaifAhmad1
- OpenClaw integration module — #460 by @KaifAhmad1
- Plugin local install fixed (hooks field, auto-load) — #489 by @serge
Deduplication
DuplicateDetectornow supportsmax_results,top_k_per_entity,min_similarity, andsort_by— by @KaifAhmad1
Cookbooks
- Datalog-style reasoning end-to-end notebook — #457 by @KaifAhmad1
- Manual ontology + Snowflake mapping cookbook — by @KaifAhmad1
Bug Fixes 🐛
- Windows install failure from
gpuin[all]extra — #538 by @KaifAhmad1 UnicodeEncodeErroron cp1252 / Windows consoles in progress tracker — #537 by @KaifAhmad1- Circular import in
semantic_extract— #536 by @ZohaibHassan16 - Lazy-load optional ingest backends — uninstalled extras no longer raise on import — #535 by @ZohaibHassan16
ConflictDetector.detect_conflictsduplicate method definition — #539 by @KaifAhmad1DuplicateDetectormerged group key normalization — #540 by @ZohaibHassan16- MCP server package structure for
pipxinstallation — #544 by @KaifAhmad1 - OWL/Turtle exporter silent data-property omission — #478 / #479 by @KaifAhmad1
- Blazegraph literal serialization and prefixed datatype expansion — #450 by @KaifAhmad1
- TripletStore IRI resolution against ontology namespace base URI — #447 / #451 by @KaifAhmad1
- OWL generation — preserve user-facing schema fields, align IRIs with namespace — #449 by @KaifAhmad1
- Provenance upstream ancestor traversal and direction classification — #480 by @Sameer6305
- DeepSeek provider switched to OpenAI SDK client — #482 by @lingli
- Distance intelligence visibility and slash-safe API calls — #513 / #515 by @ZohaibHassan16
- Explorer graph motion and live layout restore — #486 by @KaifAhmad1
- Polynomial ReDoS regex removed from format detection — #521 by @KaifAhmad1
Security 🔒
- Patched 12 vulnerabilities (CRITICAL → LOW) across path traversal, injection, and unsafe deserialization — #452 by @KaifAhmad1
- Updated
mkdocs≥1.6.1 — #507 - Updated
mkdocs-mermaid2-plugin— #508 - Updated
mkdocs-jupyter— #509 - Updated
mkdocs-material— #511 - Updated
pymdown-extensions— #510
Dependencies
- Docker base image:
python 3.12-slim→3.14-slim— #466 - Docker base image:
node 20-alpine→25-alpine— #465 pytest-benchmark≥5.2.3 — #522
Contributors
- @KaifAhmad1 — Distance intelligence, Ontology Hub, KnowledgeGraph dataclass, TripletStore, Blazegraph, MCP server, security, Windows fixes, Explorer welcome screen, OWL exporter, OpenClaw, MCP packaging, Datalog cookbook
- @ZohaibHassan16 — Explorer UI overhaul, grouped view, graph declutter, indexed search, landing page, lazy ingest, circular import fix
- @Sameer6305 — Provenance upstream traversal fix, local graph interaction
- @lingli — DeepSeek provider fix
- @Luffy2208 — Parquet ingest support
- @serge — Plugin local install fix
- @dependabot — Automated dependency and security updates
Breaking Changes
None.
详细ChangeLogv0.4.0
2026年04月08日
Semantica v0.4.0 — Release Notes
Released: 2026-04-08
PyPI: pip install semantica==0.4.0
Tag: v0.4.0
Full Changelog: CHANGELOG.md
v0.4.0 is the largest feature release to date. It ships a complete bi-temporal intelligence stack, a production-ready Knowledge Explorer API, first-class SHACL validation, SKOS vocabulary management, ontology alignment & diff, an Agno agentic framework integration, a Datalog reasoning engine, and a broad sweep of reliability, performance, and security fixes.
Test suite: 886 passed · 9 skipped · 0 failed
What's New
Temporal Intelligence
A full bi-temporal model is now baked into the core. Every entity, relationship, decision, and provenance record can carry valid time (when a fact was true in the world) and transaction time (when it was recorded in the system).
Core Temporal Data Model (PR #396)
- New
semantica.kg.temporal_modelwith shared parsing, normalization, and serialization helpers used across all temporal APIs TemporalBoundandBiTemporalFactexported fromsemantica.kgvalid,transaction, andbothtime-axis filtering in all temporal queriesTemporalValidationErrorraised consistently on invalid inputs — no silent coercions- History-preserving revisions in
TemporalVersionManager.apply_revision()with supersession semantics
Temporal Query Engine: Point-in-Time Correctness (PR #397)
TemporalGraphQuery.reconstruct_at_time(graph, at_time)— builds a consistent point-in-time subgraph without mutating the sourcequery_at_time()uses reconstruction internally so returned subgraphs never contain dangling edgesTemporalConsistencyReport— detects inverted intervals, relationships outside entity lifetimes, missing endpoints, overlapping same-type relationships, and temporal gapsvalidate_temporal_consistency(graph)available as a top-level module function- Sequence and cycle pattern detection with
pattern_type,signature,frequency, and per-occurrence detail - Calendar-aligned temporal evolution bucketing via
temporal_granularity - Causal ordering controls on
find_temporal_paths()—enforce_causal_ordering,ordering_strategy(strict,overlap,loose)
Deterministic Temporal Reasoning Engine (PR #398)
- New
semantica.kg.temporal_reasoning— zero LLM calls, pure deterministic reasoning - Full Allen interval algebra via
IntervalRelation— all 13 relations (before,meets,overlaps,starts,during,finishes,equals, and inverses) TemporalReasoningEnginewith helpers for interval merging, gap analysis, coverage calculation, timelines, and retroactive coverage- Circular import risk between
semantica.reasoningandsemantica.kgeliminated;semantica.reasoningaccess preserved via re-exports
Temporal Awareness in Context Graph (PR #399)
Decisiondataclass carriesvalid_from/valid_untilvalidity windows — superseded decisions remain in the graph (immutable history)find_precedents_by_scenario(include_superseded=False, as_of=None)— defaults exclude expired decisions;as_ofenables point-in-time queriesContextGraph.state_at(timestamp)— serializable point-in-time snapshot; source graph never mutatedCausalChainAnalyzer.trace_at_time(event_id, at_time)— reconstructs causal chain using only edges recorded up toat_timeAgentContext.checkpoint(label),diff_checkpoints(label1, label2),flush_checkpoint(label)— named in-memory snapshots with structured diffs
Temporal Metadata Extraction from Text (PR #400)
extract_relations_llm(extract_temporal_bounds=True)— each returnedRelationgainsvalid_from,valid_until,temporal_confidence(0.0–1.0), andtemporal_source_text; defaultFalseis 100% backward-compatible- Calibrated confidence anchors baked into the prompt:
1.00= full ISO date →0.00= no temporal signal - New
TemporalNormalizer— zero LLM calls, pure regex +dateutil:normalize(value)→(valid_from, valid_until)UTC datetime tuple orNonenormalize_phrase(phrase)→ domain metadata dict orNone- 13-domain default phrase map covering General/Policy, Healthcare, Cybersecurity, Supply Chain, Finance, and Energy
- Ambiguous
DD/MM/YYYYinputs issueTemporalAmbiguityWarning— never silently guesses locale - User-supplied
phrase_mapmerged over defaults at construction
Temporal Provenance & Export (PR #401)
ProvenanceTracker.track_entity()auto-stampsrecorded_aton every new recordquery_recorded_between(start, end)— returns all provenance records within an inclusive time rangerevision_history(fact_id)— complete revision chain ordered byrecorded_atascendingexport_audit_log(fact_ids, format)—"json"(pretty-printed) or"csv"(with header row)RDFExporter.export_to_rdf(include_temporal=True, time_axis="valid"|"transaction"|"both")— emits OWL-Time triples for all temporally-annotated relationshipscreate_snapshot()stamps"format_version": "1.0";validate_snapshot()andmigrate_snapshot()for stable snapshot lifecycle management
Temporal GraphRAG Integration (PR #402)
TemporalGraphRetriever— drop-in wrapper for anyContextRetriever; filters retrieved entities and relationships to a point in time;at_time=Noneis a true passthroughContextRetriever.query_with_reasoning(at_time=..., header_template=...)— structured temporal header prepended to LLM context; format-string injection guard viastr.replaceTemporalQueryRewriter— extractstemporal_intent,at_time,start_time,end_time, andrewritten_queryfrom natural language; regex-only by default, optional LLM-assisted mode
Ontology & Knowledge Representation
SHACL Shape Generation & Validation (PR #318)
SHACLGeneratorderives SHACL node and property shapes from any Semantica ontology dict — zero hand-authoring required- Three quality tiers:
"basic"(structure + cardinality),"standard"(addssh:in,sh:pattern, inheritance),"strict"(addssh:closed true+sh:ignoredProperties) - Output formats: Turtle, JSON-LD, N-Triples; iterative multi-level inheritance propagation, cycle-safe
OntologyEngine.to_shacl(),export_shacl(), andvalidate_graph(explain=True)— plain-English explanations for all 7 SHACL constraint typesSHACLValidationReportwithconforms,violations,warnings,summary(),explain_violations(),to_dict()- Install:
pip install semantica[shacl]
SKOS Vocabulary Module (PR #319)
TripletStore.add_skos_concept()— assembles and stores all required SKOS triples automatically via existingadd_triplets()APITripletStore.get_skos_concepts(scheme_uri=None)— SPARQL-backed retrieval with multi-valuealtLabel/broader/narrowercollapsingOntologyEngine.list_vocabularies(),list_concepts(scheme_uri),search_concepts(query, scheme_uri=None)— injection-safe SPARQL throughoutNamespaceManager.get_skos_uri(local_name)andbuild_concept_scheme_uri(name)namespace helpers
Ontology Alignment API (PR #361)
OntologyEngine.create_alignment(source_uri, target_uri, predicate)— stores triples using standard OWL/SKOS predicates (owl:equivalentClass,skos:exactMatch,skos:relatedMatch, etc.)get_alignments(entity_uri)— bidirectional retrieval of all alignments for an entityReuseManager.suggest_alignments(target, source)— O(N+M) hashmap heuristic over exact label matchesQueryEngine.expand_entity_uri(uri, store, use_alignments=True)— SPARQL expansion to automatically include aligned equivalents in queries- SPARQL injection hardened in
list_alignmentsandbuild_values_clause
Ontology Diff & Migration (PR #367)
VersionManager.diff_ontologies(base, target)— structured diff covering classes, properties, individuals, and axiomsChangeLogAnalyzer.analyze(diff)— classifies impact:CRITICAL/BREAKING,HIGH/BREAKING,MEDIUM/POTENTIALLY_BREAKING,INFO/NON_BREAKINGImpactReportandgenerate_change_report(diff)— structured output withsummary,impact_classification, andrecommendationsOntologyEngine.compare_versions(base_id, target_id, run_validation=True, graph_data=...)— end-to-end orchestrator with optional validation and graph-instance checks
Knowledge Explorer
A full FastAPI backend for the Semantica dashboard. Install with pip install semantica[explorer] and launch via semantica-explorer --graph my_graph.json.
Graph API (PR #384)
GET /api/graph/nodes|edges|stats— type/keyword filter, skip/limit paginationGET /api/graph/node/{id}/neighbors— BFS traversal, configurable depth 1–5GET /api/graph/node/{id}/path— BFS or Dijkstra, dispatched viaalgorithmparamPOST /api/graph/search— full-text search across node content and metadata
Analytics, Decisions & Temporal (PR #384)
GET /api/analytics— centrality, community detection, connectivity (comma-separatedmetricsparam)GET /api/decisions/{id}/chain|precedents|compliance— causal chain BFS, ranked precedent retrieval, in-graph compliance edge scanGET /api/temporal/snapshot|diff|patterns— point-in-time snapshots, node-set diffs between timestamps, pattern detection
Enrichment & Export (PR #384)
POST /api/enrich/extract|links|dedup|reason— NLP extraction, link prediction, deduplication, forward/backward inferencePOST /api/export— 12 formats: JSON, Turtle, RDF-XML, N-Triples, CSV, GraphML, GEXF, OWL, Cypher, AQL, YAML; temp files always cleaned viatry/finallyPOST /api/import— JSON/JSON-LD multipart upload with WebSocket real-time progress events
SKOS Vocabulary REST API (PR #426)
GET /api/vocabulary/schemes— allskos:ConceptSchemenodesGET /api/vocabulary/hierarchy?scheme=<uri>— full broader/narrower concept tree with cycle detectionPOST /api/vocabulary/import— accepts.ttl,.rdf,.owluploads; invalid files return HTTP 422
Infrastructure
- Thread-safe
GraphSessionwith 8 lazily-initialized analytics components underRLock(PR #385) - WebSocket
ConnectionManagerfor real-time broadcast and per-client messaging - 28 Pydantic v2 request/response models; 99 integration tests, all passing
Integrations
Agno Agentic Framework (Issue #249)
Five components making Semantica the memory and knowledge layer for Agno agents. All degrade gracefully when agno is not installed.
AgnoContextStore— graph-backed agent memory implementingagno.memory.db.base.MemoryDb; supports full CRUD plusrecord_decision(),find_precedents(),retrieve()AgnoKnowledgeGraph— multi-hop GraphRAG knowledge base implementingagno.knowledge.base.AgentKnowledge; ingests files, directories, URLs, and raw text via NER → relation extraction → graph → vector index pipelineAgnoDecisionKit— AgnoToolkitexposing 6 decision-intelligence tools:record_decision,find_precedents,trace_causal_chain,analyze_impact,check_policy,get_decision_summaryAgnoKGToolkit— AgnoToolkitexposing 7 KG pipeline tools:extract_entities,extract_relations,add_to_graph,query_graph,find_related,infer_facts,export_subgraphAgnoSharedContext— team-level coordinator with a single sharedContextGraph;bind_agent(role)returns a role-scoped view with cross-agent memory visibility; thread-safe viaRLock
Install: pip install semantica[agno]
Cookbooks: cookbook/integrations/agno_decision_intelligence.ipynb, agno_graphrag_context.ipynb, agno_multi_agent_shared_context.ipynb
Novita AI Provider (PR #374)
create_provider("novita")— OpenAI-compatible integration; default modeldeepseek/deepseek-v3.2; configured viaNOVITA_API_KEY
Reasoning
Native Datalog Reasoning Engine (PR #371)
DatalogReasoner— pure-Python bottom-up semi-naive fixpoint engine with guaranteed termination on finite graphs- Supports recursive Horn clause rules (e.g.
ancestor(X,Y) :- parent(X,Z), ancestor(Z,Y).) — handles cases that loop the existing forward/backward engine indefinitely query("pred(?X, ?Y)")returns variable-binding dicts;bindings={"Y": "val"}for pre-bound verificationload_from_graph(ContextGraph)— one-call conversion of all graph edges and nodes to Datalog facts- O(1) delta-index lookup per iteration;
derive_all()skips re-evaluation when inputs are unchanged DatalogReasoner,DatalogFact,DatalogRuleexported fromsemantica.reasoning
Pattern Matcher Restored (PR #387)
- Dead code silently overwrote
_match_pattern's full regex (pre-bound variable embedding, repeated-variable backreferences(?P=var)) with a simplere.escapepattern — breaking transitivity, symmetry, and self-join rules entirely - Removed;
re.errorexceptions now surfaced instead of swallowed
Performance & Reliability
ContextGraph O(N) → O(limit) Pagination (PR #431)
find_nodesandfind_edgesnow use generator expressions consumed viaitertools.islice— on a 50k-node / 100k-edge graph, each paginated request previously allocated up to 2.5M dicts and caused 502 timeouts; now O(limit) in both time and space- Ghost-node fix:
add_edgesaccepts both"source_id"/"target_id"and"source"/"target"key names — edges fromfind_edgesno longer silently produceNone → Noneentries - Deterministic page boundaries:
find_nodesandfind_active_nodescallsorted()on index sets before iterating stats()applies the same validity filters asfind_nodes/find_edgesso counts always match what pagination returns
ContextGraph Thread Safety (PR #385)
threading.RLockadded toContextGraph.__init__; all mutation and read/query paths protectedGraphSessionlazy analytics properties initialized underRLock— no double-instantiation under concurrent FastAPI workers
ContextGraph Traversal Fallbacks (PR #386)
- All 7
DecisionQuerymethods and 4DecisionRecordermethods have nativeContextGraphfallback paths — in-memory usage no longer requires a graph database backend
Snapshot & Audit Trail (PRs #393, #394)
restore_snapshot()requires explicit confirmation before destructive restore — rollback protectionget_node_history()for per-entity audit inspection;diff()as a Git-like alias over version comparisons- Both
nodes/edgesandentities/relationshipssnapshot schemas accepted transparently
Named Graph Support (PR #432)
enable_named_graphsconfig flag correctly forwarded throughTripletStore.execute_query()- Duplicate
FROM <...>/FROM NAMED <...>clause prevention inQueryEngine.prepare_query() default_graph_uriconfig alias added alongside existingdefault_graph- Graph URIs percent-encoded before SPARQL interpolation in version-pruning
DROP SILENT GRAPHstatements
Bug Fixes
OllamaProviderignoredbase_url(PR #408) — all requests silently hitlocalhost:11434; fixed by instantiatingollama.Client(host=self.base_url)instead of assigning the raw moduleCentralityCalculatorcrash —_build_adjacency()failed onContextGraphedges (dataclass objects vs plain dicts); fixed to handle both shapesfind_pathalways used BFS (PR #384) —algorithmquery param was parsed but never dispatched; now correctly routes todijkstra_shortest_pathorbfs_shortest_path/api/enrich/linksblocked the event loop (PR #385) —score_linkscoring loop ran inline inasync def; wrapped inasyncio.to_thread- Temp file leak in
export_graph(PR #384) — file not deleted on exception; fixed withtry/finallycleanup - spaCy NER crash —
NERExtractorcrashed in environments where spaCy is installed but broken at runtime; fallback now catches runtime initialization failures, not just missing-model errors ChangeCategoryenum typo (PR #367) —"potenitally_breaking"→"potentially_breaking"
Security
- CWE-312/359/532 — Sensitive data in logs — Removed debug
printblocks inrelation_extractor.pyandtriplet_extractor.pythat wroteapi_keyvalues to stdout in verbose mode - CWE-20 — Incomplete URL sanitization —
"url" in urlsreplaced withany(url == "url" for url in urls)— eliminates substring match that could match attacker-controlled URLs at arbitrary positions - Overpermissioned CI workflows —
permissions: contents: readadded tobenchmark.ymlandsecurity.yml; both previously inherited repo-default (potentially read-write) permissions - SHACL path traversal — Replaced
len < 500 and "\n" not in spath-vs-content heuristic withos.path.exists(); prevents attacker-controlled SHACL strings from being silently interpreted as file paths - SHACL inheritance mutation —
_propagate_inheritancenow usesdataclasses.replace()instead of appending parentPropertyShapeobjects by reference; child mutations no longer silently corrupt parent shapes - SPARQL injection — Hardened
search_concepts,list_alignments, andbuild_values_clausewith full character escaping and_sanitize_uriguards on all user-controlled inputs
Installation
pip install semantica==0.4.0
pip install semantica[shacl] # SHACL validation (requires pyshacl)
pip install semantica[explorer] # Knowledge Explorer API (requires FastAPI)
pip install semantica[agno] # Agno framework integration
pip install semantica[llm-all] # All LLM providers
pip install semantica[all] # EverythingContributors
- Authored the full temporal intelligence stack — data model (#396), point-in-time query engine (#397), deterministic reasoning engine (#398), context graph temporal awareness (#399), text-to-temporal extraction +
TemporalNormalizer(#400), provenance & OWL-Time export (#401), GraphRAG integration (#402) - Authored SHACL shape generation & validation (#318) and SKOS vocabulary module (#319)
- Security hardening — CodeQL alert remediation, SPARQL injection fixes, context explainability output fixes
- Review patches and follow-up fixes across all contributor PRs
- Knowledge Explorer API backend (#384), thread safety & pagination (#385), ContextGraph traversal fallbacks (#386)
- SKOS vocabulary REST API (#426) and RDF parsing utility (#425)
- ContextGraph pagination & edge integrity fixes (#431)
- Snapshot schema compatibility (#393), audit trail & rollback protection (#394)
- Ontology alignment API (#361), ontology diff & migration (#367)
- Native Datalog reasoning engine (#371)
- Named graph support (#432)
@Alex-wuhu
- Novita AI provider integration (#374)
- OllamaProvider
base_urlfix (#408)
PyPI · GitHub Release · Documentation
详细ChangeLogv0.3.0
2026年03月11日
🧠 Semantica v0.3.0 — First Stable Release
Released: 2026-03-10 | PyPI: pip install semantica | Python: 3.8 – 3.12 | License: MIT
The first
Production/Stablerelease of Semantica — an open-source framework for building context graphs and decision intelligence layers for AI agents. This release consolidates everything shipped across three stages: 0.3.0-alpha (2026-02-19), 0.3.0-beta (2026-03-07), and 0.3.0 stable (2026-03-10).
pip install --upgrade semanticaNo breaking changes. All new parameters carry safe defaults. All new methods are purely additive.
🚦 Release Highlights
- 🕐 Temporal Validity —
valid_from/valid_untilon nodes & edges; query what's active at any point in time - 🔗 Cross-Graph Navigation — link separate
ContextGraphinstances; navigate across them; survives save/load - ⚖️ Weighted BFS Traversal — filter multi-hop queries by edge confidence with
min_weight - 🧠 Decision Intelligence — full lifecycle: record → causal chain → impact analysis → precedent search → policy enforcement
- 🔄 Delta Processing — SPARQL-based incremental graph diffs; only changed data flows through the pipeline
- 🗃️ Deduplication v2 — 6.98x faster semantic dedup, 63.6% faster candidate generation
- 📤 New Export Formats — ArangoDB AQL, Apache Parquet (Spark/BigQuery/Databricks ready)
- 🗄️ Graph Backends — Apache AGE, PgVector, AWS Neptune, FalkorDB
- ✅ 886+ tests passing — 0 failures
👥 Contributors
| Contributor | Areas |
|---|---|
| @KaifAhmad1 | Lead maintainer — context graph, decision intelligence, KG algorithms, semantic extraction, pipeline, provenance, bug fixes, release management |
| @ZohaibHassan16 | Deduplication v2 suite, incremental/delta processing, benchmark suite |
| @Sameer6305 | Apache AGE backend, PgVector store, Snowflake connector, Apache Arrow export |
| @tibisabau | ArangoDB AQL export, Apache Parquet export |
| @d4ndr4d3 | ResourceScheduler deadlock fix |
✨ v0.3.0 Stable — Context Graph Feature Completeness
Shipped 2026-03-10 · All changes by @KaifAhmad1
🕐 Temporal Validity Windows
Nodes and edges now carry first-class valid_from / valid_until ISO datetime fields — stored directly on the ContextNode and ContextEdge dataclasses, not buried in metadata.
New API:
add_node(valid_from=..., valid_until=...)andadd_edge(valid_from=..., valid_until=...)— set validity window at creationnode.is_active(at_time=None)andedge.is_active(at_time=None)— returnsTrueif live at the given time (defaults to now)graph.find_active_nodes(node_type=None, at_time=None)— filters entire graph to active nodes only
Bug fixes:
is_active()crashed withTypeErroron tz-awaredatetimeinputs — fixed by normalising to tz-naive UTC via new_parse_iso_dt()helper- Validity fields silently lost during serialisation — fixed across all four paths:
add_nodes(),add_edges(),to_dict(),from_dict()
🔗 Cross-Graph Navigation
Separate ContextGraph instances can now be linked and navigated between. Links are fully durable — they survive save_to_file() / load_from_file() and reconnect via a registry.
New API:
graph.graph_id— stable UUID assigned at init; persisted to JSONlink_graph(other_graph, source_node_id, target_node_id)— creates a navigable bridge; returnslink_idnavigate_to(link_id)— returns(other_graph, target_node_id)resolve_links({graph_id: instance})— reconnects links after load; returns count resolvedsave_to_file()— now writes alinkssection alongside nodes and edgesload_from_file()— restoresgraph_idand populates_unresolved_links
Bug fix: Previous implementation auto-created marker targets as phantom "entity" nodes — fixed by pre-creating a "cross_graph_link" typed ContextNode before inserting the marker edge.
14 new tests in tests/context/test_cross_graph_navigation.py covering link creation, phantom-node prevention, partial registry resolution, and full save/load round-trips.
⚖️ Weighted Multi-Hop BFS Traversal
get_neighbors() now accepts a min_weight threshold to confine traversal to high-confidence causal links only. Default 0.0 passes all edges — fully backward-compatible.
🔧 Additional Fixes in v0.3.0 Stable
PipelineBuilder.add_step()return type annotation corrected from"PipelineBuilder"to"PipelineStep"test_hybrid_search_performancefixed to accumulate a truesearch_timeslist; threshold relaxed to< 5.0sfor realsentence-transformerslatency
🔧 v0.3.0-beta — Semantic Extraction, Deduplication v2, New Export Formats
Shipped 2026-03-07
🧩 Semantic Extraction Fixes — @KaifAhmad1 (PR #354, #355)
LLM Relation Extraction:
- Unmatched subjects/objects now produce a synthetic
UNKNOWNentity instead of silently dropping the relation - Orphaned legacy block in
_parse_relation_resultthat appended every relation twice has been removed extraction_methodparameter added — typed extraction paths now record"llm_typed"instead of"llm"
Reasoner Pattern Matching:
_match_patterninreasoner.pyfully rewritten — splits patterns on?varplaceholders, escapes only literal segments, uses backreferences for repeated variables and non-greedy.+?to prevent over-consumption
RDF Export Aliases:
RDFExporternow accepts"ttl","nt","xml","rdf", and"json-ld"as format aliases — zero API changes
Tests added: tests/reasoning/test_reasoner.py (4 tests), tests/semantic_extract/test_relation_extractor.py (6 tests), tests/export/test_rdf_exporter.py (8 tests)
🔄 Incremental / Delta Processing — @ZohaibHassan16, @KaifAhmad1 (PR #349)
- Native SPARQL-based diff between graph snapshots — only changed triples enter the pipeline
delta_modeflag inPipelineBuilderfor near-real-time incremental workloads- Version snapshot management with graph URI tracking and per-snapshot metadata storage
prune_versions()for automatic retention cleanup of old snapshots
Bug fixes: corrected SPARQL variable order, fixed class references, resolved duplicate dictionary keys.
🗃️ Deduplication v2 Suite — @ZohaibHassan16, @KaifAhmad1 (PR #338, #339, #340, #344)
Three independently opt-in tiers — legacy mode remains the default, fully backward-compatible.
Candidate Generation v2 (PR #338):
- New
blocking_v2andhybrid_v2strategies replace O(N²) pair enumeration - Multi-key blocking with normalised token prefixes, type-aware keys, and optional phonetic (Soundex) matching
- Deterministic
max_candidates_per_entitybudgeting with stable sorting - 63.6% faster in worst-case scenarios (0.259s → 0.094s for 100 entities)
Two-Stage Scoring Prefilter (PR #339):
- Fast gates for type mismatch, name-length ratio, and token overlap eliminate expensive semantic scoring for obvious non-matches
- Configurable thresholds:
min_length_ratio,min_token_overlap_ratio,required_shared_token - 18–25% faster batch processing when enabled (
prefilter_enabled=Falseby default)
Semantic Relationship Deduplication v2 (PR #340):
- Canonicalisation engine with predicate synonym mapping (e.g.
works_for→employed_by) - O(1) hash matching for exact canonical signatures before any semantic scoring
- Weighted scoring: 60% predicate + 40% object with explainable
semantic_match_scorein metadata - 6.98x faster than legacy mode (83ms vs 579ms)
dedup_triplets()infinite recursion bug fixed; promoted to first-class API inmethods.py
Migration guide: MIGRATION_V2.md with complete examples for all v2 strategies (PR #344)
📤 New Export Formats — @tibisabau (PR #342, #343)
ArangoDB AQL Export (PR #342):
- Full AQL
INSERTstatement generation for vertices and edges - Configurable collection names with validation and sanitisation; batch processing (default: 1000)
export_arango()convenience function;.aqlauto-detection in the unified exporter- 17 tests — 100% pass rate
Apache Parquet Export (PR #343):
- Columnar storage with configurable compression: snappy, gzip, brotli, zstd, lz4, none
- Explicit Apache Arrow schemas with type safety and field normalisation
- Analytics-ready: pandas, Spark, Snowflake, BigQuery, Databricks
export_parquet()convenience function;.parquetauto-detection- 25 tests — 100% pass rate
🐛 Beta Bug Fixes — @KaifAhmad1
Context module:
retrieve_decision_precedents— entity extraction correctly gated onuse_hybrid_search=True_extract_entities_from_query— switched toword[0].isupper()to capture camelCase identifiers likeCreditCard- Added missing
expand_context()(BFS traversal) and_get_decision_query()methods - Fixed
hybrid_retrieval,dynamic_context_traversal,multi_hop_context_assemblyfor correct single-pass BFS - Fixed
_retrieve_from_vectorfallback to prevent empty content and negative similarity scores
KG module:
calculate_pagerank— addedalpha/max_iteraliases; return format structured to{"centrality": scores, "rankings": sorted_list}community_detector._to_networkx— fixed silent edge-loss when a NetworkX graph is passed directly- Added 9 domain-specific tracking methods to
AlgorithmTrackerWithProvenance - Created
provenance_tracker.pywithProvenanceTracker; correctly exported fromsemantica.kg
Pipeline module:
- Retry loop fixed — now correctly iterates to
max_retries - Added
RecoveryAction+handle_failure(error, policy, retry_count)with LINEAR, EXPONENTIAL, and FIXED backoff add_step()fixed to return the createdPipelineStepvalidateadded as public alias forvalidate_pipelineinPipelineValidator
Other:
- Fixed
NameError— missingTypeimport inutils/helpers.py - Vector store performance threshold relaxed from
< 100msto< 500msper decision - Windows cp1252 encoding fixed in test files
Beta result: ~840 tests passing, 36 skipped (external services), 0 failed
🚀 v0.3.0-alpha — Foundational Features
Shipped 2026-02-19
🧠 Decision Intelligence & Agent Context — @KaifAhmad1 (PR #307, #315)
The foundational 0.3.0 feature — complete overhaul of semantica.context for production-grade decision intelligence.
Full decision lifecycle:
record_decision()→add_causal_relationship()→trace_decision_chain()→analyze_decision_impact()→analyze_decision_influence()→find_similar_decisions()
AgentContext — unified wrapper:
- Feature flags:
decision_tracking,kg_algorithms,graph_expansion - Methods:
store(),retrieve(),get_conversation_history(),get_statistics(),capture_cross_system_inputs()
Supporting components:
AgentMemory— working, conversation, and long-term memory tiersPolicyEngine— versioned policy nodes,check_decision_rules(),PolicyExceptionmodel, graceful fallback without a graph store- Hybrid precedent search — vector + structural + category similarity with configurable weights
9 critical bug fixes in PR #315: causal chain depth, None metadata, nonexistent node handling, find_precedents() direction, missing from_dict(), missing properties in to_dict(), UUID generation — all 71 context tests passing after fixes.
📊 KG Algorithms — @KaifAhmad1 (PR #292, #293)
30+ graph algorithms across 7 categories:
- Node embeddings: Node2Vec, DeepWalk, Word2Vec via
NodeEmbedder - Similarity: cosine, Euclidean, Manhattan, correlation via
SimilarityCalculator - Path finding: Dijkstra, A*, BFS, K-shortest paths via
PathFinder - Link prediction: preferential attachment, Jaccard, Adamic-Adar via
LinkPredictor - Centrality: degree, betweenness, closeness, PageRank via
CentralityAnalyzer - Community detection: Louvain, Leiden, label propagation via
CommunityDetector - Connectivity: components, bridges, density via
ConnectivityAnalyzer
Decision embedding pipeline (PR #293):
DecisionEmbeddingPipeline— semantic + structural embeddingsHybridSimilarityCalculator— configurable weights (semantic: 0.7, structural: 0.3)- Convenience API:
quick_decision(),find_precedents(),explain(),similar_to(),batch_decisions(),filter_decisions() - Performance: 0.028s per decision, 0.031s search, ~0.8KB memory per decision
🗄️ Graph Database Backends — @Sameer6305, @KaifAhmad1
Apache AGE (PR #311):
AgeStoreclass with fullGraphStoreAPI compatibility (openCypher via SQL on PostgreSQL)- SQL injection vulnerabilities fixed with comprehensive input validation
psycopg2-binarydependency added; migration guide included
PgVector Store (PR #303):
- Native PostgreSQL vector storage using the pgvector extension
- Distance metrics: cosine, L2/Euclidean, inner product with automatic score normalisation
- HNSW and IVFFlat indexing for approximate nearest-neighbour search
- JSONB metadata with flexible filtering; connection pooling with psycopg3/psycopg2 fallback
- SQL injection protection via
psycopg_sql.SQL(); 36+ tests with Docker integration
⚙️ Infrastructure — @d4ndr4d3, @KaifAhmad1 (PR #299, #301)
ResourceScheduler Deadlock Fix:
- Root cause: nested lock acquisition in
allocate_resources()withthreading.Lock()deadlocked under concurrent load - Fix: replaced with
threading.RLock()to allow reentrant acquisition - Added
ValidationErrorwhen no resources can be allocated; progress tracking moved outside lock scope - 6 regression tests for deadlock prevention
Security Configuration:
- Dependabot configured for bi-weekly security updates with manual review
- Automated security scans (Bandit, Safety, Semgrep) on schedule
- Zero auto-merge policy for security-critical packages
📊 Test Coverage Summary
semantica.context— 335 testssemantica.kg— ~430 testssemantica.semantic_extract— 70 tests (9 skipped — external LLM APIs)semantica.reasoning— 19 testssemantica.pipeline,semantica.export,semantica.deduplication— all passing- Real-world E2E scenarios — 85 tests
- Grand total: 886+ passing — 0 failures
详细ChangeLog