Data Sentinel
Intelligent Data Engineering & Agentic Diagnostics Platform.
Ferramenta open source (Apache-2.0) para investigar, analisar e explicar problemas em workloads de engenharia de dados — logs Spark/Glue, queries SQL, jobs e ambientes lakehouse — com diagnósticos apoiados em evidência auditável. Nada de causa-raiz inventada: todo achado cita a evidência que o sustenta e declara seu nível de confiança.
O que é
- Análise determinística primeiro: analyzers executam regras curadas sobre
artefatos locais; resultados fracos ficam
PROBABLE/POSSIBLE/UNKNOWNem vez de virar diagnóstico fabricado. - Offline por padrão: analisa logs e SQL locais sem nenhuma chamada de rede ou credencial cloud.
- Read-only: nunca altera recursos de produção; guardas de caminho, tamanho e sanitização protegem a entrada.
- Auditoria built-in: evidências são sanitizadas (segredos redigidos) e persistidas em SQLite local junto ao relatório versionado.
Instalação
Requer Python ≥ 3.11.
# via uv (recomendado para desenvolvimento)
uv sync
uv run data-sentinel --help
# via pip
pip install .
data-sentinel --help
Detalhes: docs/installation.md.
Instalação agentic
Publica skills, agents e o servidor MCP nos hosts suportados (Claude, Devin, Codex, Copilot):
data-sentinel install # interativo
data-sentinel install --yes --host all # não-interativo
data-sentinel install status|doctor|env # lifecycle
data-sentinel install uninstall # remove só arquivos gerenciados
Guias por escopo/host/plataforma em docs/installation/.
Quickstart
# Analisar um log de Glue/Spark (saída real abaixo)
data-sentinel analyze --file fixtures/logs/glue_oom.log
# Análise estática de SQL (AST SQLGlot, dialetos spark/trino)
data-sentinel sql analyze --file fixtures/joins/high_volume_4tables.sql --dialect spark
# Plano físico Spark (EXPLAIN) → árvore + estratégias + limitações
data-sentinel spark explain --file fixtures/plans/sort_merge_join.txt
# Pipeline composto: SQL + joins/cardinalidade + config advisor
data-sentinel spark optimize --sql query.sql --stats stats.json --config spark-defaults.conf
# AWS Glue read-only (requer [aws] + credenciais)
data-sentinel glue runs --job meu-job --limit 10 --region us-east-1
data-sentinel glue diagnose --job meu-job --run-id jr_abc --region us-east-1
# Saúde da instalação / capacidades / relatórios
data-sentinel doctor
data-sentinel capabilities [--descriptors]
data-sentinel import doctor-bundle -f <arquivo>
data-sentinel report show --id <report_id> --format markdown
Saída real de analyze sobre fixtures/logs/glue_oom.log:
relatório 79e1efef4cd84f94882c76914aa9b760 (schema 1.0.0)
resumo: 1 achado(s): CONFIRMED=1
[HIGH/CONFIRMED] out_of_memory
Assinatura inequívoca de java.lang.OutOfMemoryError indica que driver ou
executor estourou o heap disponível. 2 ocorrência(s) no log analisado.
evidência: fixtures/logs/glue_oom.log:5
... Lost task 0.1 ... : java.lang.OutOfMemoryError: Java heap space
recomendação: Aumentar spark.driver.memory ou spark.executor.memory
...
Mais exemplos: examples/README.md e docs/evidence/ (saídas capturadas de comandos reais).
Control Center (Cycle 06)
Portal web real sobre o mesmo núcleo — API FastAPI (data-sentinel serve,
bind 127.0.0.1:8790) + frontend Angular 20 (frontend/). Investigações
agênticas via /api/v1/investigations, stream SSE, grafo de evidências,
explorers de workloads/Spark/qualidade e registry de agentes — sem dado
simulado.
uv run data-sentinel serve --port 8790 # API → /api/v1/*
cd frontend && npx ng serve --port 4200 # portal → localhost:4200
Guia completo (endpoints, segurança, limitações): docs/guides/control-center.md.
Códigos de saída
0 sucesso · 1 erro de domínio/usuário · 2 erro de uso · 3 erro interno.
Ver ADR 0006.
Documentação
| Doc | Conteúdo |
|---|---|
| docs/installation.md | Instalação e requisitos |
| docs/cli.md | Referência dos comandos |
| docs/configuration.md | Perfis, fontes, precedência |
| docs/architecture.md | Arquitetura e módulos |
| docs/security.md | Guardas, redação, postura read-only |
| docs/development.md | Setup de dev, testes, lint |
| docs/troubleshooting.md | Erros comuns |
| docs/roadmap.md | Cycles 02–08 e backlog do Cycle 02 |
| docs/validation-matrix.md | Matriz de validação com evidências |
| docs/cycle-01-report.md | Relatório final do Cycle 01 |
| docs/cycles/cycle-02-final-report.md | Relatório final do Cycle 02 |
| docs/guides/ | Guias por funcionalidade (Glue, CloudWatch, plano, SQL, joins, config) |
| docs/examples/ | Exemplos executáveis com saídas reais |
| docs/adr/ | Decisões arquiteturais |
Estrutura
src/data_sentinel/
├── core/ # contracts, configuration, security, exceptions
├── analyzers/ # registry + spark/{log,plans,joins,config} + sql + cloudwatch
├── connectors/ # aws/{glue,cloudwatch_logs} — extra [aws], read-only
├── diagnostics/ # orchestrator + correlation + timeline
├── reporting/ # renderers terminal/JSON/Markdown
├── persistence/ # SQLite store + migrations (stdlib)
├── api/ # FastAPI app (Cycle 06) — `data-sentinel serve`, /api/v1/*
├── agents/ + tools/ + mcp/ # runtime agêntico + registry + MCP (Cycle 05)
└── cli/ # Typer app
frontend/ # Angular 20 Control Center (Cycle 06) — raiz do repo
Estado do projeto
Cycle 08.2 implementado — installer portátil universal: CLI
data-sentinel install (interativo + --yes), adapters para
Claude/Devin/Codex/Copilot (Cursor declarado sem catálogo), 5 skills +
3 agents versionados na wheel com MANIFEST.sha256, MCP lifecycle
(mcp serve, handshake real), forge.json/forge.agentic.json para
descoberta Forge CLI, lifecycle auditável (ledger sha256, receipts,
repair, uninstall preservando arquivos do usuário) e
install env/status/doctor. Evidência:
docs/cycles/cycle-08-2-final-report.md.
Cycle 06: Control Center Angular + API
(cycle-06); ciclo anterior em
cycle-08-1.
1025 testes Python + 96 specs Angular + ~145 Playwright, ruff+mypy
strict limpos.
Ciclos anteriores: cycle-05,
05.1,
04.
Licença
Apache-2.0 — ver LICENSE.
Cycle 03 — Lakehouse (Iceberg, Lake Formation, cross-account)
data-sentinel lakehouse metadata -f metadata.json # Iceberg metadata
data-sentinel lakehouse access -f contexto.json # cross-account
data-sentinel lakehouse policy -f policy.json # IAM/S3/KMS offline
data-sentinel lakehouse operation -f merge.sql # MERGE/APPEND
data-sentinel lakehouse compat --runtime glue-5.1 --operation merge \
--access-mode fgac # compatibilidade
Ver docs/cycles/cycle-03-final-report.md e guias em docs/guides/.
Metadata
Release files for data-sentinel-forge 0.5.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| data_sentinel_forge-0.5.5.tar.gz | 600.8 kB | With provenance | Details for data_sentinel_forge-0.5.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| data_sentinel_forge-0.5.5-py3-none-any.whl | Python 3 | none | any | Details for data_sentinel_forge-0.5.5-py3-none-any.whl |
Total release size: 1.0 MB
Release files / data_sentinel_forge-0.5.5.tar.gz
| Download URL | data_sentinel_forge-0.5.5.tar.gz |
|---|---|
| Size | 600.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4df1f5af14c85d349bbeec8f35252ccc047980f762de62ada8366069b99ef6de
|
|
BLAKE2b-256 checksum How to use checksums |
e60ce07449f8312c894307faa62480329e6d42171e748fec4308a071cc1c80b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / data_sentinel_forge-0.5.5-py3-none-any.whl
| Download URL | data_sentinel_forge-0.5.5-py3-none-any.whl |
|---|---|
| Size | 403.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c61d09f42836ed5a87d5df33d2eb9847ef7aa8c334d747091e26f7b99ec5bf19
|
|
BLAKE2b-256 checksum How to use checksums |
098a0a0d0cf01b6f577eb68054d77dda107f2b6aa4731ae02106bbbee143d0af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for data-sentinel-forge 0.5.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for data_sentinel_forge-0.5.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.