Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
aee2bf4
feat(ml): data pipeline for phishing-transaction classification
pRstislav Oct 29, 2026
e9b49f1
feat(ml): shadow-mode scoring, monitoring, registry and tests
pRstislav Oct 29, 2026
c83fa53
docs(ml): data card, method, results and decision log
pRstislav Oct 29, 2026
91036ba
fix(ml): write ML_EVALUATION.md with LF line endings on every OS
pRstislav Oct 29, 2026
c11e5fb
fix(ml): Phase 11.1 hardening and offline audit tooling
pRstislav Nov 1, 2026
9e1bf6e
docs(ml): Phase 11.1 generalization audit; model is research-only
pRstislav Nov 1, 2026
d1961e9
docs(ml): wallet-history dataset proposal and option A pilot results
pRstislav Nov 1, 2026
4928030
fix(ml): crash-safe request ledger locking
pRstislav Nov 1, 2026
502680c
fix(ml): PSI blind spots and model task isolation
pRstislav Nov 1, 2026
3411c6d
feat(ml): wallet-centric poisoning research platform
pRstislav Nov 1, 2026
2a69f02
docs(ml): pilot audit, poisoning dataset card and research plan
pRstislav Nov 1, 2026
993806f
fix(ml): drop a misleading memory figure from the poisoning report
pRstislav Nov 1, 2026
46c27f7
docs(ml): regenerate poisoning tables
pRstislav Nov 1, 2026
2a78397
feat(ml): offline cross-check with Tsuchiya et al. payoff transfers
pRstislav Nov 2, 2026
800e682
fix(ml): payoff amounts are float4 approximations; payoff identity
pRstislav Nov 2, 2026
e367f7c
feat(ml): safe archive ingestion and cross-dataset reconciliation
pRstislav Nov 2, 2026
8731690
docs(ml): Phase 11.3 cross-dataset validation report
pRstislav Nov 2, 2026
76acf7e
docs(ml): regenerate cross-dataset and poisoning tables at 8731690
pRstislav Nov 2, 2026
a273f8a
feat(ml): frozen stratified review sample from the payoff-linked queue
pRstislav Nov 2, 2026
84ac3c0
docs(ml): freeze the payoff-linked review sample and fix the protocol
pRstislav Nov 2, 2026
5f0fc80
feat(ml): verify the frozen review sample and audit its design
pRstislav Nov 2, 2026
e3f37ec
feat(ml): blinded two-reviewer annotation workflow with gated unblinding
pRstislav Nov 2, 2026
c6d91e0
feat(ml): benchmark readiness and review-holdout guard
pRstislav Nov 2, 2026
59c8207
docs(ml): Phase 11.4 annotation audit, protocol amendment 1, benchmar…
pRstislav Nov 2, 2026
6287f4e
feat(ml): generic frozen review cohorts in the existing review workflow
pRstislav Nov 2, 2026
c68d3a4
feat(ml): offline hard-negative discovery, contamination screen and e…
pRstislav Nov 2, 2026
732e560
feat(ml): register the frozen hard-negative cohort; skip bytecode in …
pRstislav Nov 2, 2026
9887446
docs(ml): Phase 11.5 hard-negative study, readiness gates A-J, genera…
pRstislav Nov 2, 2026
3774c70
fix(db): report a locked lease table as retryable LeaseBusyError
pRstislav Nov 2, 2026
240ba9b
feat(ml): offline evidence packets, protocol amendment 2, training co…
pRstislav Nov 2, 2026
2246657
feat(ml): register amendment-2 evidence packets for both cohorts; fix…
pRstislav Nov 2, 2026
4fc9d94
docs(ml): Phase 11.6 human validation readiness, amendment 2, reviewe…
pRstislav Nov 2, 2026
1d6f2a0
feat(ml): evidence packets v2, review-server hardening, diagnostics, …
pRstislav Nov 2, 2026
3ee994f
feat(ml): include the review-context recovery rows in evidence packets
pRstislav Nov 2, 2026
e77189b
feat(ml): register amendment-3 evidence packets (evidence-packets/2)
pRstislav Nov 2, 2026
3a2f94b
docs(ml): Phase 11.7 evidence completion report, amendment 3, experim…
pRstislav Nov 2, 2026
8152849
feat(ml): reviewer kit builder and send-ready invitation
pRstislav Nov 2, 2026
20c3b63
fix(ml): reviewer kit reads the sheet hash under its registry key
pRstislav Nov 2, 2026
999794a
docs(ml): pre-register the Phase 12.1 lookalike-prioritization protocol
pRstislav Nov 2, 2026
12f09a1
feat(ml): Phase 12.1 lookalike-prioritization study, pre-outcome fixes
pRstislav Nov 2, 2026
b552c2d
fix(ml): format the scanner; add the post-hoc recency-gap diagnostic
pRstislav Nov 2, 2026
3153dcf
docs(ml): Phase 12.1 temporal and graph research report
pRstislav Nov 2, 2026
03f1c1d
docs(ml): pre-register the Phase 12.2 recency-validation protocol
pRstislav Nov 3, 2026
623b36d
perf(ml): single-pass graph preload, exact; Phase 12.2 analysis code
pRstislav Nov 3, 2026
ff9f2e3
fix(ml): mypy in coverage_symmetry's single pass
pRstislav Nov 3, 2026
c0e1012
docs(ml): Phase 12.2 recency validation report
pRstislav Nov 3, 2026
8590366
docs(ml): pre-register recency on the source's unconfirmed payoffs
pRstislav Nov 3, 2026
89998d5
feat(ml): unconfirmed-payoff recency analysis (pre-registered, not ye…
pRstislav Nov 3, 2026
b3f66ae
docs(ml): unconfirmed-payoff recency results (addendum to Phase 12.2)
pRstislav Nov 3, 2026
f0e4dc1
docs(ml): audit the 12.2 follow-up; pre-register the Phase 12.3 incid…
pRstislav Nov 3, 2026
57273fd
feat(ml): offline incident benchmark (verify / run / report), not yet…
pRstislav Nov 3, 2026
f3477f5
fix(ml): never compute on recorded windows that hold frozen review items
pRstislav Nov 3, 2026
c9e328e
docs(ml): Phase 12.3 incident benchmark report (data-limited); cohort…
pRstislav Nov 3, 2026
61ad1af
feat(replay): hard request cap for live recording; Stage 0 of the inc…
pRstislav Nov 3, 2026
0aa1892
docs(ml): Stage 1 incident pilot, one Level I case (475 RPC requests)
pRstislav Nov 3, 2026
95a7740
docs(ml): Stage 1 audit and Stage 2 incident shortlist (no RPC)
pRstislav Nov 3, 2026
fdffc05
feat(ml): Stage 2 Step 0 - amendment 12.3-A1, resolution tools, Stage…
pRstislav Nov 3, 2026
72cfaf3
docs(ml): Stage 2a result - one resolved Level I case (a miss), one n…
pRstislav Nov 3, 2026
3a79b74
docs(ml): freeze protocol 12.4 (observation completeness, candidate d…
pRstislav Nov 4, 2026
3917957
feat(replay,ml): observation/2 (native inbound, ERC-721, per-category…
pRstislav Nov 4, 2026
53ddd95
docs(ml): Phase 12.4 report - observation completeness and candidate …
pRstislav Nov 4, 2026
99f553b
docs(ml): Phase 12.4 Q1 result (2 approved RPC requests)
pRstislav Nov 4, 2026
d9ca60c
docs(ml): Phase 12.4 Q1b result - the Stage 2a miss was a native ETH …
pRstislav Nov 4, 2026
368f652
feat(ml): final validation of observation/2 before a blind replay (no…
pRstislav Nov 8, 2026
c090814
docs(ml): blind observation/2 replay passes V1-V5 (1,299 approved RPC…
pRstislav Nov 8, 2026
16586a5
docs(ml): freeze protocol 12.5 (candidate discovery and evidence-awar…
pRstislav Nov 8, 2026
0dd8a23
feat(ml): Phase 12.5 research code - proxy task, candidate features, …
pRstislav Nov 8, 2026
8fbc3a1
perf(ml): build candidate observations once per ranking (quadratic sc…
pRstislav Nov 8, 2026
82d54a3
docs(ml): Phase 12.5 report - candidate discovery and ranking researc…
pRstislav Nov 8, 2026
c060ccc
docs(ml): freeze protocol 12.6 (candidate reliability and signer prov…
pRstislav Nov 8, 2026
8e59c9d
feat(ml): evidence-preserving candidate groups, signer recovery (R-SI…
pRstislav Nov 8, 2026
f4caf5a
docs(ml): Phase 12.6 report - candidate reliability and signer proven…
pRstislav Nov 9, 2026
5a5e876
feat(ml): signer-recovery guards, authorization, bounded pages; deter…
pRstislav Nov 9, 2026
5e37788
docs(ml): Phase 12.6.1 report - signer guards, authorization, bounded…
pRstislav Nov 9, 2026
9263dba
docs(ml): freeze protocol 12.7 (adversarial candidate exposure, robus…
pRstislav Nov 9, 2026
7ac195f
feat(ml): adversarial-selection/1 research selectors and the 12.7 ben…
pRstislav Nov 9, 2026
541c2d2
feat(ml): post-hoc design-bias checks for the 12.7 benchmark
pRstislav Nov 9, 2026
0968ff8
fix(ml): P1b, bucket-level tie-breaking for the 12.7 selector (post hoc)
pRstislav Nov 9, 2026
2f0a0fc
docs(ml): Phase 12.7 report - adversarial candidate exposure and robu…
pRstislav Nov 9, 2026
0c112bd
docs(ml): Phase 12.7 validation results
pRstislav Nov 9, 2026
073019c
fix(ml): platform guard for the free-RAM preflight (mypy on Linux)
pRstislav Nov 9, 2026
d98a636
docs(ml): freeze protocol 12.7.1 with its generator, evaluation and s…
pRstislav Nov 9, 2026
ffbdb6a
docs(ml): Phase 12.7.1 report - P1b not supported after debiasing (no…
pRstislav Nov 9, 2026
d6f4916
docs(ml): freeze protocol 12.8 (independent benchmark contract and re…
pRstislav Nov 10, 2026
3b512d7
feat(ml): benchmark contracts, blind evaluation harness, power planni…
pRstislav Nov 10, 2026
332dbfd
fix(ml): inventory registry entries for incident, campaign and resear…
pRstislav Nov 10, 2026
79ebd6f
docs(ml): Phase 12.8 report - independent benchmark readiness (no RPC)
pRstislav Nov 10, 2026
89aea4e
docs(ml): freeze protocol 12.9 (reviewer blinding, incident acquisiti…
pRstislav Nov 11, 2026
fc97a04
feat(ml): reviewer-blinding exposure audit, review-task safeguards an…
pRstislav Nov 11, 2026
4fb217c
feat(ml): incident acquisition, pilot selection, collection gate and …
pRstislav Nov 11, 2026
6c929bf
docs(ml): Phase 12.9 report and tests - blinding integrity, incident …
pRstislav Nov 11, 2026
310fe65
fix(ml): write the public acquisition registry with LF line endings
pRstislav Nov 11, 2026
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
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ CRYPTOGUARD_CAMPAIGN_RUNS_RETAINED=20
# RPC request budget of one `cryptoguard campaigns expand` run.
CRYPTOGUARD_CAMPAIGN_EXPANSION_MAX_REQUESTS=600

# Experimental ML transaction scoring (needs the ml extra and a promoted model; see ML.md).
# "shadow" returns scores for review only: never findings, never severity changes.
CRYPTOGUARD_ML_SHADOW=off
CRYPTOGUARD_ML_REGISTRY_PATH=data/ml/registry.json
CRYPTOGUARD_ML_SCORE_LOG_PATH=data/ml/shadow_scores.jsonl

CRYPTOGUARD_DATABASE_URL=sqlite:///./data/cryptoguard.db

# JSON list. Wildcards are rejected.
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,15 @@ jobs:
wheel=$(ls dist/*.whl)
uv pip install --python "$RUNNER_TEMP/cg-analytics" "${wheel}[analytics]"
uv run --no-project python scripts/smoke_install.py --venv "$RUNNER_TEMP/cg-analytics" --analytics
- name: Clean install with the experimental ml extra
run: |
uv venv --python 3.12 "$RUNNER_TEMP/cg-ml"
wheel=$(ls dist/*.whl)
uv pip install --python "$RUNNER_TEMP/cg-ml" "${wheel}[ml]"
cd "$RUNNER_TEMP"
if [ -x cg-ml/bin/python ]; then py=cg-ml/bin/python; else py=cg-ml/Scripts/python.exe; fi
"$py" -I -c "from cryptoguard.ml import ml_available; assert ml_available()"
"$py" -I -m cryptoguard.cli ml --help
- name: Keep the distributions
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
Expand Down
407 changes: 407 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions ML.md

Large diffs are not rendered by default.

Loading
Loading