1.8 KiB
1.8 KiB
AGENTS.md -- UltrafastSecp256k1
Use the SQLite project graph before broad file search.
Canonical Graph
- DB:
.project_graph.db - Rebuild:
python3 scripts/build_project_graph.py --rebuild
Preferred Workflow
- Query graph first.
- Read only the files or line ranges the graph points to.
- After structural changes, rebuild the graph.
- Before finishing, rerun
preflight.pyif the change is substantial.
Most Useful Commands
python3 scripts/query_graph.py context cpu/src/ct_sign.cpp
python3 scripts/query_graph.py impact cpu/src/ecdh.cpp
python3 scripts/query_graph.py routing ecdsa_sign
python3 scripts/query_graph.py tags
python3 scripts/query_graph.py tag constant_time
python3 scripts/query_graph.py symbol ecdsa_sign
python3 scripts/query_graph.py optimize 15
python3 scripts/query_graph.py risk 15
python3 scripts/query_graph.py gpuwork 15
python3 scripts/query_graph.py fragile 15
python3 scripts/query_graph.py hotspots 20
python3 scripts/query_graph.py coverage ecdsa_sign
Reasoning Layers
The graph includes more than structure. It also includes:
- semantic classification
- secret/CT metadata
- parser-boundary sensitivity
- performance/gpu-candidate scoring
- audit coverage
- change history
- risk/gain/optimization priority
Important tables/views:
semantic_tagsentity_tagssymbol_semanticssymbol_securitysymbol_performancesymbol_audit_coveragesymbol_historysymbol_scoresv_symbol_reasoning
Rules
- Do not claim CT guarantees without checking the graph and the relevant tests.
- Do not claim audit coverage without checking
function_test_maporsymbol_audit_coverage. - Do not change ABI-visible or secret-bearing code blindly; query
routing,bindings, andfragilefirst. - If you add new graph-worthy entities, update the graph builder.