From 56b0e2128ddcc292370dd8c7569147970ee1c144 Mon Sep 17 00:00:00 2001 From: Corey Leath Date: Wed, 5 Aug 2026 22:24:35 -0400 Subject: [PATCH 1/7] docs: relocate root layout reference --- .../reference/historical-repository-layout.md | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 docs/reference/historical-repository-layout.md diff --git a/docs/reference/historical-repository-layout.md b/docs/reference/historical-repository-layout.md new file mode 100644 index 0000000..bdd833c --- /dev/null +++ b/docs/reference/historical-repository-layout.md @@ -0,0 +1,55 @@ +# Historical repository layout reference + +This manually maintained snapshot was moved from the repository root during the 2026-08-05 root-directory audit. It is retained for historical context only and is **not** a generated current inventory; use the repository tree and service documentation for current paths. + +## Original snapshot + +```text +SentinelAI/ +│ +├── ingestion-service/ # Go - Log ingestion + API gateway +│ +├── drift-engine/ # C++ - High-performance statistical drift detection +│ +├── training-pipeline/ # Python - SageMaker training + MLflow tracking +│ +├── llm-guard/ # LangChain + Ollama - RAG + incident summarization +│ +├── streamlit-dashboard/ # Streamlit - AI Observability UI +│ ├── app.py +│ ├── pages/ +│ │ ├── 1_Model_Drift.py +│ │ ├── 2_LLM_Monitoring.py +│ │ ├── 3_Incident_Summary.py +│ │ ├── 4_System_Metrics.py +│ │ +│ ├── components/ +│ │ ├── charts.py +│ │ ├── drift_visualizer.py +│ │ ├── latency_graphs.py +│ │ +│ └── requirements.txt +│ +├── docker/ # Dockerfiles for all services +│ +├── helm/ # Kubernetes Helm charts +│ +├── terraform/ # Infrastructure as Code +│ +├── ci-cd/ # GitHub Actions workflows +│ +├── metrics.md # Evaluation metrics + performance benchmarks +│ +├── system_design.md # Architecture deep dive +│ +├── architecture.png # Visual diagram +│ +└── README.md # Recruiter-facing explanation +SentinelAI/ +│ +├── app/ +│ └── streamlit_app.py +├── src/ +├── requirements.txt +├── README.md +``` From 8c8a82a1f2d1cdd6bae8334119ce78c3d849f259 Mon Sep 17 00:00:00 2001 From: Corey Leath Date: Wed, 5 Aug 2026 22:24:37 -0400 Subject: [PATCH 2/7] chore: relocate ServiceMonitor manifest --- k8s/sentinelai-backend-servicemonitor.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 k8s/sentinelai-backend-servicemonitor.yaml diff --git a/k8s/sentinelai-backend-servicemonitor.yaml b/k8s/sentinelai-backend-servicemonitor.yaml new file mode 100644 index 0000000..55c22d7 --- /dev/null +++ b/k8s/sentinelai-backend-servicemonitor.yaml @@ -0,0 +1,12 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: sentinelai-backend + namespace: sentinelai +spec: + selector: + matchLabels: + app: sentinelai-backend + endpoints: + - port: http + path: /metrics From 58a37cd86f746b695d5f8fb054be8b3152732fd1 Mon Sep 17 00:00:00 2001 From: Corey Leath Date: Wed, 5 Aug 2026 22:24:39 -0400 Subject: [PATCH 3/7] docs: record root directory audit --- docs/reference/root-directory-audit.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/reference/root-directory-audit.md diff --git a/docs/reference/root-directory-audit.md b/docs/reference/root-directory-audit.md new file mode 100644 index 0000000..03f264f --- /dev/null +++ b/docs/reference/root-directory-audit.md @@ -0,0 +1,23 @@ +# Root directory audit + +Reviewed on 2026-08-05. This record captures the reference searches and disposition of ambiguous root files. + +## Moved + +| Original file | Canonical location | Reason | +| --- | --- | --- | +| `FILE Structure` | `docs/reference/historical-repository-layout.md` | Unique, manually maintained historical layout reference; moved from a space-containing root filename. | +| `Prometheus ServiceMonitor (Metrics Credibility)` | `k8s/sentinelai-backend-servicemonitor.yaml` | Unique `ServiceMonitor` manifest; Kubernetes manifests belong under `k8s/`. | + +## Removed duplicate + +| Removed file | Canonical source | Verification | +| --- | --- | --- | +| `Test` | `tests/` directory | The root file was only a five-file snapshot of the existing test tree. Repository searches found no build, CI, Docker, script, documentation, or source reference to the root snapshot. | + +## NEEDS HUMAN DECISION + +| Filename | Why deletion is uncertain | Recommended action | +| --- | --- | --- | +| `bindings.cpp` | It is a unique pybind11 module declaration for `ingestion_cpp`; no `ingestion_cpp/` implementation or build reference was found, so its intended integration cannot be proven. | Identify or add the owning extension build and implementation; then either move it with that component or remove it in a dedicated, build-validated PR. | +| `drift_engine.cpp` | It is not identical to `drift-engine/drift_engine.cpp`: the root program is a PSI-only sample, while the service implementation parses JSON and computes PSI/KS. `docker/Dockerfile` explicitly compiles the root file. | Choose one supported drift-engine image/build path, update the Docker/build/documentation references, then remove the other implementation only after an image build and behavior test. | From 5990c8ad6a87c8aea3a91bf10510249bc43cc5e1 Mon Sep 17 00:00:00 2001 From: Corey Leath Date: Wed, 5 Aug 2026 22:24:41 -0400 Subject: [PATCH 4/7] chore: remove relocated root file ignore --- .dockerignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 7385629..1c269a0 100644 --- a/.dockerignore +++ b/.dockerignore @@ -50,7 +50,6 @@ LICENSE DailyLog.md Contributing.md system_design.md -FILE Structure Metrics.md # Terraform state (contains sensitive data) From 1714fa75f7b13a85c682cdfbdaf19c629e7786f6 Mon Sep 17 00:00:00 2001 From: Corey Leath Date: Wed, 5 Aug 2026 22:24:44 -0400 Subject: [PATCH 5/7] chore: remove relocated root layout reference --- FILE Structure | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 FILE Structure diff --git a/FILE Structure b/FILE Structure deleted file mode 100644 index ae01f14..0000000 --- a/FILE Structure +++ /dev/null @@ -1,47 +0,0 @@ -SentinelAI/ -│ -├── ingestion-service/ # Go - Log ingestion + API gateway -│ -├── drift-engine/ # C++ - High-performance statistical drift detection -│ -├── training-pipeline/ # Python - SageMaker training + MLflow tracking -│ -├── llm-guard/ # LangChain + Ollama - RAG + incident summarization -│ -├── streamlit-dashboard/ # Streamlit - AI Observability UI -│ ├── app.py -│ ├── pages/ -│ │ ├── 1_Model_Drift.py -│ │ ├── 2_LLM_Monitoring.py -│ │ ├── 3_Incident_Summary.py -│ │ ├── 4_System_Metrics.py -│ │ -│ ├── components/ -│ │ ├── charts.py -│ │ ├── drift_visualizer.py -│ │ ├── latency_graphs.py -│ │ -│ └── requirements.txt -│ -├── docker/ # Dockerfiles for all services -│ -├── helm/ # Kubernetes Helm charts -│ -├── terraform/ # Infrastructure as Code -│ -├── ci-cd/ # GitHub Actions workflows -│ -├── metrics.md # Evaluation metrics + performance benchmarks -│ -├── system_design.md # Architecture deep dive -│ -├── architecture.png # Visual diagram -│ -└── README.md # Recruiter-facing explanation -SentinelAI/ -│ -├── app/ -│ └── streamlit_app.py -├── src/ -├── requirements.txt -├── README.md \ No newline at end of file From 609f2e85a7a4c694df73957457afbc1b16785130 Mon Sep 17 00:00:00 2001 From: Corey Leath Date: Wed, 5 Aug 2026 22:24:46 -0400 Subject: [PATCH 6/7] chore: remove duplicate root test snapshot --- Test | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 Test diff --git a/Test b/Test deleted file mode 100644 index 0a0985a..0000000 --- a/Test +++ /dev/null @@ -1,6 +0,0 @@ -tests/ -├── test_health.py -├── test_auth.py -├── test_inference.py -├── test_rate_limit.py -└── conftest.py From 1731b3e4e40cda1cb9a39d43a2af3f35ac859ad5 Mon Sep 17 00:00:00 2001 From: Corey Leath Date: Wed, 5 Aug 2026 22:24:49 -0400 Subject: [PATCH 7/7] chore: relocate ServiceMonitor manifest --- Prometheus ServiceMonitor (Metrics Credibility) | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 Prometheus ServiceMonitor (Metrics Credibility) diff --git a/Prometheus ServiceMonitor (Metrics Credibility) b/Prometheus ServiceMonitor (Metrics Credibility) deleted file mode 100644 index 55c22d7..0000000 --- a/Prometheus ServiceMonitor (Metrics Credibility) +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: sentinelai-backend - namespace: sentinelai -spec: - selector: - matchLabels: - app: sentinelai-backend - endpoints: - - port: http - path: /metrics