Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
214 changes: 175 additions & 39 deletions RESULTS.md
Original file line number Diff line number Diff line change
@@ -1,67 +1,203 @@
# Smoke-Pipeline Results — Index
# Validation and Measured Results

Every project with a non-trivial runtime ships a `smoke/run_smoke.py` that exercises the code path end-to-end on synthetic or in-repo data and writes a report into the project's `reports/` directory. This index links each one.
This file separates measured outputs from reproducible execution paths. A passing test, a smoke pipeline, a portable reference implementation, and a real-model metric are different forms of evidence and are reported separately.

> **Reading note:** The committed reports are *placeholder shells* with the expected structural shape (qualitative ranking, identity-check rows, expected metric ranges) but **not** filled-in numbers. The regenerate command in each report file produces the actual numbers — they're left out of source control because they drift run-to-run with random seeds. The shape of the output is what's stable. Real figures for the two flagship pipelines are recorded under **Verified runs** below.
## Audited Repository Inventory

## Verified runs (real figures, not placeholders)
Inventory audited on 2026-07-27 against [`.github/workflows/ci.yml`](./.github/workflows/ci.yml):

The two flagship RL pipelines were run locally on **2026-06-02** — these are actual outputs. Regenerate any time with the commands in the table below.
- **10 Python project entries**
- **6 Rust crates**
- **1 Terraform validation target**
- **17 CI targets in total**
- **8 tracked `smoke/run_smoke.py` pipelines**

The counts above describe the tracked repository and CI matrix. They do not include local ignored or untracked work.

## 1. Verified Measured Runs

### RAG Assistant: embedding retrieval versus cross-encoder re-ranking

- **Run date:** 2026-07-26
- **Environment:** CPU; `sentence-transformers` 5.6.1; `transformers` 5.14.1; `torch` 2.13.0
- **Corpus:** three checked-in sample documents
- **Cases:** five checked-in retrieval cases
- **Metric cutoff:** k = 3

| Configuration | recall@3 | MRR |
|---|---:|---:|
| Embedding retrieval | 1.000 | 0.900 |
| Cross-encoder re-ranked | 1.000 | 1.000 |
| Observed delta | +0.000 | +0.100 |

The re-ranker moved one relevant result from rank 2 to rank 1. This is a scoped smoke result, not evidence of a general quality lift. [Issue 18](https://github.com/lmdixon23/my_dev_projects/issues/18) tracks the required discriminative benchmark.

Regenerate the comparison:

```bash
cd ai_engineering/rag_assistant
python -m smoke.run_reranker_eval
```

### Regularized Operator Zoo

Both regularizer identities hold to machine precision on `q = [1.0, 2.0, 0.5], beta = 1.0`:
- **Run date:** 2026-06-02
- **Environment:** local CPU; NumPy and Matplotlib project requirements; exact package versions were not recorded in the retained run evidence
- **Input:** `q = [1.0, 2.0, 0.5]`, `beta = 1.0`

- Maximum policy-to-gradient residual across the five operators: **1.8e-07**
- Maximum conjugate-identity difference: **2.2e-16**

- **Identity 1** (gradient form, `pi* = grad Omega*(q)`): max `||pi - grad Omega*||_2` = **1.8e-07** (Tsallis); the other closed-form operators agree to ~1e-10.
- **Identity 2** (conjugate form, `Omega*(q) = <pi, q> - Omega(pi)`): max difference = **2.2e-16** across entropy, KL-to-uniform, KL-to-anchor, Tsallis, and Renyi.
The tested identities are:

### GRPO Minimal — reproduces Shao et al. 2024, Figure 5
```text
pi* = grad Omega*(q)
Omega*(q) = <pi*, q> - Omega(pi*)
```

Final accuracy on the synthetic verifiable-reward task (mean of 3 seeds, 1200 steps each):
Regenerate:

```bash
cd ai_engineering/rlvr/regularized_operator_zoo
python -m smoke.run_smoke
```

### GRPO Minimal

- **Run date:** 2026-06-02
- **Environment:** local CPU; NumPy and Matplotlib project requirements; exact package versions were not recorded in the retained run evidence
- **Task:** synthetic categorical verifiable-reward task
- **Protocol:** mean of 3 seeds, 1,200 steps per seed

| Method | Final accuracy |
|---|---|
|---|---:|
| RFT | 0.181 |
| Online RFT | 0.945 |
| GRPO+OS | 0.990 |

Qualitative ranking **RFT < Online RFT < GRPO+OS** matches the paper.
The measured qualitative ordering is **RFT < Online RFT < GRPO+OS**. The project targets the ordering associated with Figure 5 of Shao et al. 2024, not the paper's absolute benchmark values.

Regenerate from a shell with the sibling operator library on `PYTHONPATH`:

```bash
cd ai_engineering/rlvr/grpo_minimal
PYTHONPATH="$PYTHONPATH:$(realpath ../regularized_operator_zoo)" \
python -m smoke.run_smoke
```

## 2. Reproducible Smoke Pipelines

These tracked projects provide a `smoke/run_smoke.py` entry point. A smoke run exercises a bounded end-to-end path; it does not automatically establish external validity or production readiness.

| Project | Command | Evidence produced |
|---|---|---|
| [RAG Assistant](./ai_engineering/rag_assistant/) | `cd ai_engineering/rag_assistant && python -m smoke.run_smoke` | Ingest, retrieve, and retrieval metrics on checked-in documents |
| [Agent Toolkit](./ai_engineering/agent_toolkit/) | `cd ai_engineering/agent_toolkit && python -m smoke.run_smoke` | Deterministic agent/tool execution and trace output |
| [LLM Eval Harness](./ai_engineering/llm_eval_harness/) | `cd ai_engineering/llm_eval_harness && python -m smoke.run_smoke` | Evaluation-suite execution and report generation |
| [Regularized Operator Zoo](./ai_engineering/rlvr/regularized_operator_zoo/) | `cd ai_engineering/rlvr/regularized_operator_zoo && python -m smoke.run_smoke` | Operator identity checks and beta-sweep artifacts |
| [GRPO Minimal](./ai_engineering/rlvr/grpo_minimal/) | `cd ai_engineering/rlvr/grpo_minimal && PYTHONPATH="$PYTHONPATH:$(realpath ../regularized_operator_zoo)" python -m smoke.run_smoke` | Three-method synthetic training comparison |
| [Image Captioning](./machine_learning/image_captioning_cnn_rnn_tpu/) | `cd machine_learning/image_captioning_cnn_rnn_tpu && python -m smoke.run_smoke` | CPU-compatible end-to-end captioning path |
| [Image Classification](./machine_learning/image_classification/) | `cd machine_learning/image_classification && python -m smoke.run_smoke` | Synthetic train, evaluate, persist, and inference path |
| [Predictive Maintenance](./machine_learning/predictive_maintenance/) | `cd machine_learning/predictive_maintenance && python -m smoke.run_smoke` | Synthetic telemetry, model training, persistence, and inference path |

Generated reports are local runtime artifacts unless a project README explicitly identifies a retained verified run.

## 3. Test-Suite or Validation-Only Projects

These projects are validated primarily through deterministic tests, compilation, or configuration validation rather than a separate smoke report.

### Python

| Project | CI command | Boundary |
|---|---|---|
| [NLP Text Summarization CLI](./ai_engineering/nlp_text_summarization_api/) | `cd ai_engineering/nlp_text_summarization_api && python -m unittest discover tests` | Network-free HTTP-path, persistence, concurrency, and retry tests; no retained summary-quality benchmark |

The RAG-to-evaluation bridge is also enforced separately:

```bash
cd ai_engineering/llm_eval_harness
PYTHONPATH="$PYTHONPATH:$(realpath ../rag_assistant)" \
python -m pytest tests/test_bridge_to_rag.py -v
```

The current bridge baseline is **2 passing tests**.

### Rust

The CI matrix contains six crates:

1. [Cross-Chain Atomic Bridge](./blockchain_protocols/rust_cross_chain_atomic_bridge/)
2. [Decentralized Voting](./blockchain_protocols/rust_decentralized_voting/)
3. [Quadratic Voting and Liquid Democracy](./blockchain_protocols/rust_quadratic_voting/)
4. [PoS and ZKP Voting](./blockchain_protocols/rust_pos_zkp_voting/)
5. [PoA and ZKP Voting](./blockchain_protocols/rust_poa_zkp_voting/)
6. [DeFi Lending Protocol](./blockchain_protocols/rust_defi_lending_protocol/)

For each crate, CI runs:

```bash
cargo build --verbose
cargo test --verbose
cargo clippy --all-targets --no-deps -- -W clippy::all
```

Clippy is advisory in the current workflow. These repositories model protocol behavior in-process and do not claim deployed-chain security or consensus.

### Terraform

[SSE Coexistence Testing](./network_security/sse_coexistence_testing/) is checked with:

```bash
cd network_security/sse_coexistence_testing/terraform
terraform init -backend=false
terraform validate
```

Validation checks Terraform configuration structure. It does not deploy AWS resources or verify a live network environment.

## Smoke reports — regenerate locally
## 4. Portable Reference Implementations

Each runnable project's `smoke/run_smoke.py` writes a report into its `reports/` folder. Those report files are **gitignored** (their numbers drift with random seeds), so they are not committed — run the command to produce them in a local clone. For committed, real figures see **Verified runs** above.
### Sales Data ETL

| Project | Regenerate command |
|---|---|
| RAG Assistant | `cd ai_engineering/rag_assistant && python -m smoke.run_smoke` |
| Agent Toolkit | `cd ai_engineering/agent_toolkit && python -m smoke.run_smoke` |
| LLM Eval Harness | `cd ai_engineering/llm_eval_harness && python -m smoke.run_smoke` |
| Regularized Operator Zoo | `cd ai_engineering/rlvr/regularized_operator_zoo && python -m smoke.run_smoke` |
| GRPO Minimal (reproduces Shao et al. 2024 Figure 5) | `cd ai_engineering/rlvr/grpo_minimal && PYTHONPATH=$PYTHONPATH:$(realpath ../regularized_operator_zoo) python -m smoke.run_smoke` |
| Image Classification | `cd machine_learning/image_classification && python -m smoke.run_smoke` |
| Image Captioning (CNN+RNN) | `cd machine_learning/image_captioning_cnn_rnn_tpu && python -m smoke.run_smoke` |
| Sentiment Analysis (BERT) | `cd machine_learning/sentiment_analysis_transfer_learning && python -m smoke.run_smoke` |
| Predictive Maintenance | `cd machine_learning/predictive_maintenance && python -m smoke.run_smoke` |
| Sales Data ETL (Python reference) | uses `create_sales_data.py` then `sales_etl.py` |
The [Sales Data ETL](./data_engineering/sales_data_etl_ssis/) project contains an SSIS deliverable and a Python/SQLite reference path. Linux CI verifies the portable reference, not the Windows SSIS package.

That's all 10 runnable projects — full coverage.
Portable execution:

## Projects without a smoke pipeline
```bash
cd data_engineering/sales_data_etl_ssis
python create_sales_data.py --rows 500
python python_reference_etl/sales_etl.py \
--source sales_data.csv \
--target sqlite:///salesdatadb.sqlite
python -m unittest discover python_reference_etl
```

The following projects don't have a `smoke/` directory because their full test suite already exercises the code path end-to-end without external resources:
This path validates the transformation, rejection, load, and logging contract without claiming that GitHub Actions executed the `.dtsx` package.

- **All five Rust blockchain projects** — `cargo test` runs the unit + integration tests on every push.
- **The Terraform SSE coexistence test** — `terraform validate` runs in the CI Terraform job; the deployment harness has its own mocked-network unit tests.
- **The ink! counter prototype** — `cargo test` covers it.
## Audit Commands

## What "placeholder report" means
Recount the CI matrix and tracked smoke scripts from the repository root:

Each committed `reports/*.md` (or `.html`) under the projects above contains:
```bash
python - <<'PY_AUDIT'
from pathlib import Path
import re
import subprocess

- A `_Last regenerated: PLACEHOLDER_` line — clearly flags that the file has not been filled in by a real run yet.
- The exact command to regenerate it.
- The **structural shape** of the expected output — qualitative ranking, identity-check rows, expected metric ranges.
ci = Path('.github/workflows/ci.yml').read_text(encoding='utf-8')
python_projects = re.findall(r'^\s*- project:\s*([^\n]+)$', ci, re.M)
rust_crates = re.findall(r'^\s*- (blockchain_protocols/[^\n]+)$', ci, re.M)
terraform_targets = len(re.findall(r'^\s*- run: terraform validate\s*$', ci, re.M))
tracked = subprocess.check_output(['git', 'ls-files'], text=True).splitlines()
smoke_scripts = sorted(path for path in tracked if path.endswith('/smoke/run_smoke.py'))

It does **not** contain absolute numerical results that would drift between runs. After you run the regenerate command, the file is overwritten with the real run's output (including a real timestamp and the actual numbers).
print('Python CI projects:', len(python_projects))
print('Rust CI crates:', len(rust_crates))
print('Terraform validation targets:', terraform_targets)
print('Tracked smoke scripts:', len(smoke_scripts))
for path in smoke_scripts:
print(' ', path)
PY_AUDIT
```

This pattern lets a reviewer who is browsing the repo on GitHub see *what kind of output the smoke pipeline produces* without having to run the code first. It's the "you can read about my results before installing my code" affordance.
The release gate also checks relative links, stale claims, whitespace, RAG tests, the RAG-to-eval bridge, and the exact three-file change boundary.
Loading