Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

arth-semlayer

Latest version: v0.1.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: ritur4jsingh
0 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

arth-semlayer was last scanned on 27 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 27 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 27 Nov 2026 No rules fired

No rules fired in 0.1.0

Findings

Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

ARTH: Semantic Layer

Repository: arth-semlayer · Python package and command: semlayer

Governed semantic layer between AI agents and your data. Definitions are drafted automatically from your schema and query log, humans certify them, and agents can only use certified ones.

  • GCP-integrated + local fallback: Gemini API default LLM (ollama/openai secondary local options), DuckDB local default warehouse + Google's managed BigQuery MCP server (https://bigquery.googleapis.com/mcp)
  • Loop: ingest → draft → find conflicts → certify → serve over MCP → monitor drift
  • Agents never touch the warehouse. They call semlayer's MCP server; certification and policy are enforced there.

Quickstart (local DuckDB)

uv sync
uv run semlayer demo          # seeds DuckDB + query log, runs the loop, auto-certifies (DEMO ONLY)
uv run semlayer eval --oracle # 33-question eval of the certified layer (no LLM key needed)
uv run semlayer serve --web   # review UI + JSON API on :8000
uv run semlayer serve         # MCP server (stdio) for agents
uv run pytest                 # unit + fake-server suite (runs offline with no keys)

Run every command from the project root. Local prerequisites: uv (DuckDB and SQLite are bundled).

LLM configuration (Gemini default, local models secondary)

semlayer uses an LLM for two things only: wording metric descriptions/explanations during draft, and running the LLM eval arms. It never changes metric SQL logic.

1. Default: Gemini API via AI Studio (gemini-3.5-flash-lite)

Put your AI Studio GEMINI_API_KEY in .env (git-ignored) or your environment. semlayer.yaml defaults to:

llm_provider: gemini                 # gemini | ollama | openai | none
llm_model: gemini-3.5-flash-lite
llm_max_tokens: 512
llm_reasoning_effort: low

GEMINI_API_KEY authenticates directly against https://generativelanguage.googleapis.com/v1beta/openai and works alongside GCP Application Default Credentials used by BigQueryMCP.

2. Secondary option: Local models (ollama or openai)

Switch to local inference with config changes only in semlayer.yaml:

llm_provider: ollama                 # or "openai" for llama.cpp (:8080/v1), LM Studio (:1234/v1), vLLM
llm_model: qwen3.5:9b
# llm_url: http://localhost:11434

Override without editing files via SEMLAYER_LLM_PROVIDER, SEMLAYER_LLM_MODEL, SEMLAYER_LLM_URL, or disable the LLM with --no-llm / SEMLAYER_LLM_PROVIDER=none. Without a key or running local server, draft and demo warn once and fall back to heuristic descriptions; LLM eval fails fast or aborts cleanly on quota errors (ADR-029).

GCP & BigQuery over MCP

Install the optional GCP auth dependency and sign into your GCP project:

uv sync --extra gcp
gcloud auth login --update-adc
gcloud config set project YOUR_PROJECT_ID
gcloud auth application-default set-quota-project YOUR_PROJECT_ID
gcloud services enable bigquery.googleapis.com iamcredentials.googleapis.com --project=YOUR_PROJECT_ID
gcloud beta services mcp enable bigquery.googleapis.com --project=YOUR_PROJECT_ID

Seed the jaffle_shop tables into BigQuery and verify over MCP:

uv run python scripts/bq_seed.py --project YOUR_PROJECT_ID --dataset jaffle_shop
SEMLAYER_WAREHOUSE=bigquery SEMLAYER_BQ_PROJECT=YOUR_PROJECT_ID uv run semlayer eval --oracle
SEMLAYER_BQ_PROJECT=YOUR_PROJECT_ID uv run python scripts/mcp_check.py --warehouse bigquery

Or set warehouse: bigquery (and optional bq_service_account for read-only service-account impersonation) in semlayer.yaml.

Cloud-Native GCP Operations (Zero Extra Dependencies)
  • Ingest BigQuery Job History & Dataplex Policy Tags: Pull historical SELECT queries from INFORMATION_SCHEMA.JOBS_BY_PROJECT and auto-draft deny_dims rules from Dataplex policy tags (INFORMATION_SCHEMA.COLUMN_FIELD_PATHS):
    SEMLAYER_WAREHOUSE=bigquery SEMLAYER_BQ_PROJECT=YOUR_PROJECT_ID uv run semlayer ingest --from-bq-jobs --bq-days 30
    uv run semlayer draft --roles finance,eu_analyst
  • BigQuery Materialized View Advisor: Generate ready-to-review BigQuery MV DDL for high-demand certified metrics:
    uv run semlayer feedback --recommend-mv --project YOUR_PROJECT_ID --dataset jaffle_shop
  • Cloud Run + Secret Manager + Scheduled Canary + Cloud Logging JSON: Pass --log-json (SEMLAYER_LOG_JSON=1) for structured Cloud Logging output and deploy with deploy/cloudrun/.

Real workflow (humans in the loop)

uv run python examples/jaffle_shop/seed.py
uv run semlayer ingest
uv run semlayer draft --roles finance,analyst
uv run semlayer review                          # ranked queue (by demand)
uv run semlayer conflicts                       # variants / duplicates with ranked options
uv run semlayer conflicts --split active_customers --names a_v1=active_30d a_v2=active_paid
uv run semlayer certify revenue --accept-suggested
uv run semlayer rule-add finance_all --role finance
uv run semlayer rule-add eu_customers --role eu_analyst --metric customer_count --row-filter "region = 'EU'"
uv run semlayer certify finance_all --kind rule --owner security
uv run semlayer edit revenue entity=Customer entity_key=customer_id time_dimension=paid_at synonyms=sales,turnover
uv run semlayer metric-add aov --type ratio --numerator revenue --denominator order_count --dimensions method
uv run semlayer certify aov --owner alice
uv run semlayer canary                          # probes certified metrics (LIMIT 0); suspends broken ones
uv run semlayer serve --role finance            # strict role-bound MCP server (rejects caller as_role)
uv run semlayer drift --values
uv run semlayer feedback

Integrations & Examples

  • Interactive Colab / Vertex AI Notebook: notebooks/certified_bigquery_mcp.ipynb (Open in Colab) — self-contained walkthrough connecting Gemini (google-genai on Vertex AI) to the governed MCP server over BigQuery MCP with an offline DuckDB toggle.
  • Google ADK Agent (McpToolset + FastAPI / Cloud Run): examples/adk_agent/ — standalone deployable ADK LlmAgent wired to the governed stdio MCP server with Dockerfile and 27 offline tests (cd examples/adk_agent && uv sync --dev && uv run pytest).

Layout

src/semlayer/  core warehouse ingest lineage draft conflicts registry compiler graph policy monitor serve cli evaluate demo
examples/jaffle_shop/   seed.py (data + query log with deliberate conflicts)
examples/adk_agent/     Google ADK LlmAgent + governed MCP server + Dockerfile
notebooks/              certified_bigquery_mcp.ipynb (Vertex AI / Colab walkthrough)
eval/                   questions.yaml, heldout.yaml (+ generators)
definitions/            the registry (YAML, Git-friendly)
scripts/                manual_run.sh, mcp_check.py, bq_seed.py
skills/semlayer/        SKILL.md for agents
tests/

Docs

PLAN.md · ARCHITECTURE.md · ADR.md · EVAL.md · SECURITY.md · GEMINI.md

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases arth-semlayer

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229