Nautilus data broker + reasoning engine: intent-aware scoped query execution, multi-agent handoffs, LLM intent analysis, and forensic escalation via Fathom rules
Project description
Nautilus
Policy-first data broker for AI agents. One call plans, routes, enforces, attests, and audits.
Current version: 0.1.3 License: MIT Language: Python 3.13+ Package Manager: uv Maintained by: KrakenNet
Why Nautilus?
Every AI agent framework gives agents direct access to data. For most tasks, that's fine.
For some tasks, unchecked access is unacceptable:
- Policy routing — "Which databases should this query hit?" can't be the agent's choice.
- Scope enforcement — "What rows is this agent allowed to see?" needs provable constraints.
- Audit — "What data did this agent touch, and why?" requires a tamper-evident trail.
- Attestation — "Can we prove this routing decision happened?" needs a signed token.
Nautilus provides deterministic, policy-first data brokering using Fathom — a CLIPS-based expert system — to route, scope, and attest every request.
Install
uv add nautilus-rkm
Quick Start
from nautilus import Broker
broker = Broker.from_config("nautilus.yaml")
try:
response = broker.request(
"agent-alpha",
"Find vulnerabilities for CVE-2026-1234",
{"clearance": "unclassified", "purpose": "threat-analysis", "session_id": "s1"},
)
print(response.data) # {"main-db": [...]}
print(response.sources_queried) # ["main-db"]
print(response.sources_denied) # ["classified-db"]
print(response.attestation_token) # signed JWS
print(response.duration_ms) # 47
finally:
broker.close()
See the Getting Started guide for a full walkthrough.
What Ships Today
Core runtime
Brokerfacade with sync/async APIs (request,arequest,from_config,afrom_config)- Fathom-based policy router for intent-aware source selection and scope enforcement
- Per-source scope constraints (WHERE-clause fragments) with injection-safe field validation
- Ed25519 JWS attestation service for signed routing decisions
- JSONL audit sink with per-request, append-only entries (fsync'd)
- Pattern-matching and LLM-based intent analysis (Anthropic, OpenAI)
- Cross-agent handoff reasoning with session-backed escalation detection
Adapters (8 built-in)
- PostgreSQL, PgVector, Elasticsearch, Neo4j, REST, ServiceNow, InfluxDB, S3
- Pluggable via entry points and the Adapter SDK
Transports
- FastAPI REST server (
POST /v1/request, health/readiness probes) - MCP transport (stdio and HTTP modes)
- CLI:
nautilus serve,nautilus health,nautilus version
Rule packs
data-routing-nist— NIST clearance/classification routing rulesdata-routing-hipaa— HIPAA-compliant routing rules
What You Get Per Request
| Step | What happens |
|---|---|
| Intent analysis | Classify intent into data types, entities, temporal scope, sensitivity |
| Policy routing | Fathom evaluates (clearance, purpose, source) — route, scope, or deny |
| Adapter fan-out | Routed sources execute concurrently with per-adapter error isolation |
| Attestation | Ed25519 JWS signed over routing decision, bound to request_id |
| Audit | JSONL entry appended per request — success, denial, or error |
Key Differentiator: Session-Aware Routing
Unlike stateless policy engines, Nautilus maintains working memory across requests within a session:
- Cumulative exposure — "This agent accessed PII from 3 sources — deny the 4th."
- Cross-agent handoffs — "Agent A is passing
secretdata to Agent B who hasunclassifiedclearance — deny." - Escalation detection — "Anomalous access pattern detected — escalate for forensic review."
Integration Shapes
As a library
from nautilus import Broker
broker = Broker.from_config("nautilus.yaml")
response = broker.request("agent-id", "intent", context)
As a REST sidecar
nautilus serve --config nautilus.yaml --transport rest --bind 0.0.0.0:8000
curl -H "X-API-Key: $KEY" -X POST localhost:8000/v1/request \
-d '{"agent_id": "agent-alpha", "intent": "...", "context": {...}}'
As an MCP server
nautilus serve --config nautilus.yaml --transport mcp
Air-gapped mode
nautilus serve --config nautilus.yaml --air-gapped
Configuration
A nautilus.yaml declares sources, rules, analysis, audit, and attestation:
sources:
- id: main-db
adapter: postgres
dsn: ${DATABASE_URL}
classification: confidential
data_types: [users, orders]
rules:
paths: [./rules/]
attestation:
enabled: true
audit:
sink: file
path: ./audit.jsonl
Documentation
Full documentation is available at nautilus.krakn.ai.
Related Projects
- Fathom — Deterministic reasoning runtime that powers Nautilus routing
- Bosun — Agent governance built on Fathom (fleet analysis, compliance attestation)
Development
git clone https://github.com/KrakenNet/nautilus.git
cd nautilus
uv sync
uv run pytest -m unit # fast suite, no containers
uv run pytest -m integration # full e2e, boots PostgreSQL via testcontainers
uv run ruff check && uv run ruff format --check && uv run pyright
uv run mkdocs serve # docs preview
See CHANGELOG.md for release notes.
Contributing
We welcome contributions! Please read our Contributing Guide before submitting a pull request. All contributors are expected to follow our Code of Conduct.
Security
To report a security vulnerability, please see our Security Policy. Do not open a public issue for security concerns.
License
MIT — see LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nautilus_rkm-0.1.4.tar.gz.
File metadata
- Download URL: nautilus_rkm-0.1.4.tar.gz
- Upload date:
- Size: 168.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc0d35e42a43dccc0633a1dce7ef1307cfa9602c46efd83d7a20fc4f3e0c3c26
|
|
| MD5 |
8b3944fffeabad75cfb509b168889666
|
|
| BLAKE2b-256 |
f13b690a34ee9c38673a73abdd3aa7ffdadcfd451b72e4f20ed053ea38f29b10
|
Provenance
The following attestation bundles were made for nautilus_rkm-0.1.4.tar.gz:
Publisher:
pypi-publish.yml on KrakenNet/nautilus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nautilus_rkm-0.1.4.tar.gz -
Subject digest:
dc0d35e42a43dccc0633a1dce7ef1307cfa9602c46efd83d7a20fc4f3e0c3c26 - Sigstore transparency entry: 1423888870
- Sigstore integration time:
-
Permalink:
KrakenNet/nautilus@e25a712f979beeda1d8f8781cbeb8dd5201a1a02 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/KrakenNet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@e25a712f979beeda1d8f8781cbeb8dd5201a1a02 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nautilus_rkm-0.1.4-py3-none-any.whl.
File metadata
- Download URL: nautilus_rkm-0.1.4-py3-none-any.whl
- Upload date:
- Size: 213.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01022b2f4630138486ed3dfce6586de78f753b60098d45530f215cd8234b3714
|
|
| MD5 |
6d09bba4ed2c91e239a605f4e7d4ab76
|
|
| BLAKE2b-256 |
e584d2f9a2a5a132c9e9bf173b1fc61334bce87dd28209f8779483fc1fe5241a
|
Provenance
The following attestation bundles were made for nautilus_rkm-0.1.4-py3-none-any.whl:
Publisher:
pypi-publish.yml on KrakenNet/nautilus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nautilus_rkm-0.1.4-py3-none-any.whl -
Subject digest:
01022b2f4630138486ed3dfce6586de78f753b60098d45530f215cd8234b3714 - Sigstore transparency entry: 1423889024
- Sigstore integration time:
-
Permalink:
KrakenNet/nautilus@e25a712f979beeda1d8f8781cbeb8dd5201a1a02 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/KrakenNet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@e25a712f979beeda1d8f8781cbeb8dd5201a1a02 -
Trigger Event:
push
-
Statement type: