Skip to content

v0.2.1

Choose a tag to compare

@xuezhma xuezhma released this 20 Aug 21:07
87b015a

Release Notes — v0.2.1

Highlights

This release improves the agent-facing surface and reliability of the solution. MCP callers now can effective use existing grants to reach a namespace, and remediates error-prone empty answer responses. It also stops the query engine from giving confident-but-wrong answers for entities that don't exist, fixes ontology export/induction defects, and lets deployment succeed on machines that use a Docker credential helper for ECR.

It closes 10 bugs, adds a faster direct-to-Data-Layer path for agent discovery calls, batch ontology ingestion, broader source observability, and richer query rationale in the UI.


What's New

Faster, more direct agent discovery

  • MCP list_metrics and describe_schema now call the Data Layer directly, bypassing the Context Manager for these pure-read discovery calls. Both the MCP surface and the Data Layer now send the same canonical Smithy path (/namespaces/{namespaceId}/schema, /namespaces/{namespaceId}/metrics), and describe_schema gains a classFilter for scoping results to a class-URI prefix.

Faster ontology ingestion

  • Batch graph writes for induced ontologies (store_classes_batch / store_properties_batch) reduce round-trips when accepting large ontologies.

Better visibility into data sources

  • Expanded data-source observability metrics on the database ingestion path, complementing the guardrail metrics added in v0.2.0.

Clearer query explanations

  • Richer rationale in the chat UI — per-step trace detail is now formatted with clearer step labels, so it's easier to see which tier answered and why.

Bug Fixes

Agent Access (MCP)

  • Fixed MCP access being all-or-nothing for non-admin callers. The MCP server gated namespace access on a JWT claim (custom:namespaces) that nothing populates, so any non-admin caller was denied regardless of the grants they held. MCP now resolves access through the same grants table the REST path uses (email-aware); a namespace grant is now sufficient. (#65)
  • Fixed MCP tools returning empty payloads while reporting success. translate_sparql and graph_traversal read response keys the Context Manager never emits, so .get(key, default) silently turned real results into empty answers — an agent saw "no results," not an error. The adapter now reads the correct Smithy output keys (sparqlQuery; entities/relationships), so these tools return the same data their REST equivalents do. (#56)

Query & Retrieval (Serve)

  • Fixed confident wrong answers for entities that don't exist (structured path). The Tier-2 self-correction step used to treat a correct "zero rows" result as a mistake and loosen the filter until it matched a different, real value — a plausible but wrong answer that flipped between runs. A zero-row result whose filter came straight from the user's question is now returned as-is, and the correction step can no longer alter that value. (#34)
  • Fixed metric questions silently ignoring their qualifiers (metric path). A question naming a metric returned that metric's unfiltered total at full confidence, discarding any scope/filter/entity in the sentence — so a real and a non-existent qualifier returned the same grand total. Tier-1 metric resolution now accounts for unparsed qualifiers instead of returning the unfiltered result as a certain answer. (#52)
  • Fixed dimension-filtered metric queries returning HTTP 500. The API contract declares dimensions as an array, but the orchestrator consumed it as a map, so any contract-conformant caller got a 500. The orchestrator now normalizes the array and fails closed to other tiers instead of erroring. (#53)

Ontology (Data Modeling) Engine

  • Fixed ontology export producing files no RDF tool could read. GET /ontologies/{id}/download referenced a prefix it never declared, so any compliant Turtle parser rejected the file. Export now binds the accelerator's own vocabulary and structurally records every prefix before serializing. (#71)
  • Fixed the "Relationships" count being inflated by an annotation. The matchConfidence grounding annotation was miscounted as an object property, so every grounded induced ontology reported one extra, degenerate relationship. The ontology-overview endpoint now excludes annotation properties from both lists. (#33)
  • Fixed re-induction emitting self-referential axioms that failed the engine's own validation. Re-running induction grounded against an ontology's own namespace matched every class to itself, emitting X subClassOf X / X exactMatch X — which the engine's own Tier-1 taxonomy-cycle check then flagged as blocking. These self-matches are now suppressed at the source. (#32)

Developer Experience & Build

  • Fixed code generation silently skipping the Data Layer and truncating the Control Plane package. The smithy-generate.sh "Data Layer" stage regenerated the Control Plane spec into the wrong package and blanked the Control Plane __init__.py re-exports. It now generates the Data Layer models correctly, leaves the Control Plane package intact, and fails loudly if the re-export fix-up produces an empty package. (#47)

Deployment & Infrastructure

  • Fixed setup failing for users with a Docker/Finch credential helper. The preflight check forced an explicit docker login to ECR Public, which cannot succeed when a credential helper (credHelpers → ecr-login) handles public.ecr.aws — the helper has no writable store. Preflight now skips the explicit login when a helper is configured and treats a login failure as a warning (ECR Public also serves anonymous, rate-limited pulls), so it no longer blocks deployment. (#89)