Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
4686ec2
Fase 0: Baseline e higiene
Sep 25, 2026
caed073
Fase 0: Restore remediated code from commit e48e68c
Sep 26, 2026
f580741
fix(hot-path): Eliminate allocations and network I/O from hot path
Sep 26, 2026
d9fb62a
fix(risk-engine): Replace O(WINDOW_SIZE) rate window with O(1) bucket…
Sep 26, 2026
5238a81
fix(hot-path): Remove network I/O from hot path, add expiration to pa…
Sep 26, 2026
6d97ebd
fix(ci): Add latency gate and test enforcement to CI workflow
Sep 26, 2026
6f4fdeb
fix: Correct API endpoint, update bench_engine warning, commit hot pa…
Sep 26, 2026
22af0d8
docs: Add VERIFICATION_FINAL.md with comprehensive remediation summary
Sep 26, 2026
468c095
docs(readme): Rewrite to faithfully reflect remediated project state
Sep 26, 2026
f2d7442
fix: Correct PEF_METRICS typo in README
Sep 26, 2026
a3011f5
feat(integration): Adapt Polywhales bots to CrowdIntel C++20
Sep 26, 2026
f0da457
chore: Remove redundant compliance_config.hpp (compliance_guard.hpp a…
Sep 26, 2026
c7cb387
fix: Critical fixes from rigorous final audit
Sep 26, 2026
58fcb17
docs: Update verification report with final audit fixes
Sep 26, 2026
c32aa28
feat(sim): Add paper trading simulation runner
Sep 26, 2026
36c9c0b
docs: Add paper trading simulation section to README
Sep 26, 2026
79b3ff5
chore: Remove committed binary, add .gitignore for bin/
Sep 26, 2026
c745fd4
test: Simulation test suite completed (9 test runs) — all tests valid…
Sep 26, 2026
b415445
chore: Clean up gitignore and remove accidental build dir commits
Sep 26, 2026
cf3097a
docs: Add comprehensive simulation test results (9 configurations)
Sep 26, 2026
cad2212
test: Run simulation T101 (ticks=100, markets=3, seed=42, cap=100000)
Sep 26, 2026
0b2bf3a
test: Run simulation T102 (ticks=100, markets=3, seed=43, cap=100000)
Sep 26, 2026
249f8b4
test: Run simulation T103 (ticks=100, markets=5, seed=42, cap=100000)
Sep 26, 2026
7a0d464
test: Run simulation T104 (ticks=100, markets=10, seed=42, cap=100000)
Sep 26, 2026
045efd6
test: Run simulation T105 (ticks=200, markets=3, seed=42, cap=100000)
Sep 26, 2026
fd3c93f
test: Run simulation T106 (ticks=200, markets=5, seed=42, cap=100000)
Sep 26, 2026
039765b
test: Run simulation T107 (ticks=200, markets=10, seed=42, cap=100000)
Sep 26, 2026
acbd7fd
test: Run simulation T108 (ticks=500, markets=2, seed=42, cap=100000)
Sep 26, 2026
447d96d
test: Run simulation T109 (ticks=500, markets=3, seed=42, cap=100000)
Sep 26, 2026
a3ff1fc
test: Run simulation T110 (ticks=500, markets=5, seed=42, cap=100000)
Sep 26, 2026
8013704
test: Run simulation T111 (ticks=500, markets=8, seed=42, cap=100000)
Sep 26, 2026
dff8cc7
test: Run simulation T112 (ticks=500, markets=10, seed=42, cap=100000)
Sep 26, 2026
ba8fb40
test: Run simulation T113 (ticks=500, markets=15, seed=42, cap=100000)
Sep 26, 2026
1dec675
test: Run simulation T114 (ticks=1000, markets=2, seed=42, cap=100000)
Sep 26, 2026
d991ecc
test: Run simulation T115 (ticks=1000, markets=3, seed=42, cap=100000)
Sep 26, 2026
2dce5fd
test: Run simulation T116 (ticks=1000, markets=5, seed=42, cap=100000)
Sep 26, 2026
7f67f1b
test: Run simulation T117 (ticks=1000, markets=10, seed=42, cap=100000)
Sep 26, 2026
dd5f163
test: Run simulation T118 (ticks=1000, markets=15, seed=42, cap=100000)
Sep 26, 2026
c2fb34c
test: Run simulation T119 (ticks=1000, markets=20, seed=42, cap=100000)
Sep 26, 2026
405e2b7
test: Run simulation T120 (ticks=500, markets=5, seed=42, cap=10000)
Sep 26, 2026
b8b7475
test: Run simulation T121 (ticks=500, markets=5, seed=42, cap=50000)
Sep 26, 2026
d315fd0
test: Run simulation T122 (ticks=500, markets=5, seed=42, cap=200000)
Sep 26, 2026
084f59c
test: Run simulation T123 (ticks=500, markets=5, seed=42, cap=500000)
Sep 26, 2026
b1788ec
test: Run simulation T124 (ticks=500, markets=5, seed=42, cap=1000000)
Sep 26, 2026
e2d97bd
test: Run simulation T125 (ticks=500, markets=5, seed=999, cap=100000)
Sep 26, 2026
466d545
test: Run simulation T126 (ticks=500, markets=5, seed=777, cap=100000)
Sep 26, 2026
2a8d735
test: Run simulation T127_no_noise (ticks=500, markets=5, seed=42, ca…
Sep 26, 2026
4674b1f
test: Run simulation T128_no_noise (ticks=1000, markets=5, seed=42, c…
Sep 26, 2026
0c32458
test: Run simulation T129_no_noise (ticks=2000, markets=5, seed=42, c…
Sep 26, 2026
720373f
docs: Complete simulation results with 29-test matrix and behavioral …
Sep 26, 2026
0ea7ff0
test: Extended simulation suite complete - 32 tests passed with full …
Sep 26, 2026
2aceef3
test: Add latency benchmark and memory allocation verification tools
Sep 26, 2026
487b953
docs: Add latency benchmark and memory verification results
Sep 26, 2026
d1f2ae9
Update team_remediation/agents/agente_api/prompt.md
Adlgr87 Sep 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 24 additions & 32 deletions .github/workflows/ci-cd-and-optimize.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: CI/CD & Evolutive Optimization

# Runs on every push and daily at midnight
on:
push:
branches: [ main ]
branches: [ main, remediation/compliance ]
schedule:
- cron: '0 0 * * *'

jobs:
# --- Job 1: Deterministic Build & Smoke Test ---
# --- Job 1: Deterministic Build, Crypto Tests, Latency Gate ---
build-and-test:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -36,43 +36,35 @@ jobs:
-DCMAKE_CXX_FLAGS="-O3 -march=native -flto" \
-DSECP256K1_LIBRARY=/tmp/secp256k1/.libs/libsecp256k1.a \
-DSECP256K1_INCLUDE_DIR=/tmp/secp256k1/include \
-DBUILD_DEMO=OFF \
..
make -j$(nproc)

- name: Run Crypto Tests (Keccak-256 known-answer vectors)
- name: Run ctest (all tests)
run: |
cd core/build
./bin/test_signer
ctest --output-on-failure

- name: Run Latency Benchmark
- name: Run Crypto Tests (Keccak-256 known-answer vectors)
run: |
cd core/build
./bin/latency_bench

# --- Job 2: Evolutive Optimization with MutaLambda ---
mutate-and-optimize:
needs: build-and-test # Only run if tests pass
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
./bin/test_signer

- name: Setup Python & Dependencies
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Run Latency Benchmark & Enforce Gate
run: |
pip install numpy scipy click rich pyyaml pydantic msgpack requests pycryptodome

- name: Checkout MutaLambda Framework
uses: actions/checkout@v4
with:
repository: Adlgr87/MutaLambda
path: MutaLambda
cd core/build
OUTPUT=$(./bin/latency_bench)
echo "$OUTPUT"
P50=$(echo "$OUTPUT" | grep "P50:" | head -1 | sed 's/.*P50:.*\t//; s/ us.*//')
P99=$(echo "$OUTPUT" | grep "P99:" | head -1 | sed 's/.*P99:.*\t//; s/ us.*//')
echo "P50: $P50 us, P99: $P99 us"
if (( $(echo "$P50 >= 100" | bc -l) )); then
echo "FAIL: P50 latency ${P50}us exceeds 100us threshold"
exit 1
fi
if (( $(echo "$P99 >= 200" | bc -l) )); then
echo "FAIL: P99 latency ${P99}us exceeds 200us threshold"
exit 1
fi
Comment on lines +61 to +68

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: bc is not installed in the Setup Build Tools step and may not be present in all runner environments. If bc is missing, the subshell outputs an error to stderr and returns empty stdout, causing (( )) to evaluate to 0 and silently bypass the latency threshold check. Use awk or install bc explicitly in Setup Build Tools.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/ci-cd-and-optimize.yml, line 61:

<comment>`bc` is not installed in the `Setup Build Tools` step and may not be present in all runner environments. If `bc` is missing, the subshell outputs an error to stderr and returns empty stdout, causing `(( ))` to evaluate to 0 and silently bypass the latency threshold check. Use `awk` or install `bc` explicitly in `Setup Build Tools`.</comment>

<file context>
@@ -36,43 +36,35 @@ jobs:
+        P50=$(echo "$OUTPUT" | grep "P50:" | head -1 | sed 's/.*P50:.*\t//; s/ us.*//')
+        P99=$(echo "$OUTPUT" | grep "P99:" | head -1 | sed 's/.*P99:.*\t//; s/ us.*//')
+        echo "P50: $P50 us, P99: $P99 us"
+        if (( $(echo "$P50 >= 100" | bc -l) )); then
+          echo "FAIL: P50 latency ${P50}us exceeds 100us threshold"
+          exit 1
</file context>
Suggested change
if (( $(echo "$P50 >= 100" | bc -l) )); then
echo "FAIL: P50 latency ${P50}us exceeds 100us threshold"
exit 1
fi
if (( $(echo "$P99 >= 200" | bc -l) )); then
echo "FAIL: P99 latency ${P99}us exceeds 200us threshold"
exit 1
fi
if awk -v p50="$P50" 'BEGIN { exit !(p50 >= 100) }'; then
echo "FAIL: P50 latency ${P50}us exceeds 100us threshold"
exit 1
fi
if awk -v p99="$P99" 'BEGIN { exit !(p99 >= 200) }'; then
echo "FAIL: P99 latency ${P99}us exceeds 200us threshold"
exit 1
fi

echo "OK: Latency gates passed (P50=${P50}us < 100us, P99=${P99}us < 200us)"

- name: Execute MutaLambda Evolution on Hot Path Functions
run: |
echo "🧬 Triggering MutaLambda evolutionary cycle..."
export MUTALAMBDA_PATH="$PWD/MutaLambda"
export PYTHONPATH="$PWD/MutaLambda:$PYTHONPATH"
python infra/mutalambda/adapter/mutalambda_adapter.py
13 changes: 1 addition & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
core/build/
MutaLambda/
__pycache__/

# Stray Keccak test artifacts (experimental, not part of build system)
test_keccak
test_keccak_bin
test_keccak_debug
test_keccak_verify
test_keccak.cpp
test_keccak_debug.cpp
test_keccak_verify.cpp
bin/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: This rewrite drops every existing ignore rule and keeps only bin/, a directory that does not exist anywhere in the repo. Generated artifacts the old rules excluded still exist here and are now exposed to git add ./git add -A: core/build/ (197 generated CMake/object files), infra/mutalambda/adapter/__pycache__/ (a .pyc is already tracked, and running any of the repo's .py tools, e.g. infra/scripts/mutalambda_optimize.py, regenerates __pycache__ entries that no longer match the tracked cpython-314.pyc), and the test_keccak* binaries. Restore the previous rules; anything already tracked additionally needs git rm -r --cached to actually stop being versioned.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .gitignore, line 1:

<comment>This rewrite drops every existing ignore rule and keeps only `bin/`, a directory that does not exist anywhere in the repo. Generated artifacts the old rules excluded still exist here and are now exposed to `git add .`/`git add -A`: `core/build/` (197 generated CMake/object files), `infra/mutalambda/adapter/__pycache__/` (a `.pyc` is already tracked, and running any of the repo's `.py` tools, e.g. `infra/scripts/mutalambda_optimize.py`, regenerates `__pycache__` entries that no longer match the tracked `cpython-314.pyc`), and the `test_keccak*` binaries. Restore the previous rules; anything already tracked additionally needs `git rm -r --cached` to actually stop being versioned.</comment>

<file context>
@@ -1,12 +1 @@
-test_keccak.cpp
-test_keccak_debug.cpp
-test_keccak_verify.cpp
+bin/
</file context>
Suggested change
bin/
bin/
core/build/
__pycache__/
MutaLambda/
# Stray Keccak test artifacts (experimental, not part of build system)
test_keccak
test_keccak_bin
test_keccak_debug
test_keccak_verify
test_keccak.cpp
test_keccak_debug.cpp
test_keccak_verify.cpp

Loading
Loading