Running the spec compliance tracker
How to run the automated spec-compliance tracking script on the Axios codebase
Run the compliance tracker to check specification coverage across the codebase.
Prerequisites¶
- Python 3.8 or higher
- The Axios repository cloned locally
Step 1: Run the tracker¶
From the repository root:
python3 docs/compliance_tracker.py
The script:
- Scans
docs/specs/*.mdfor constraints declared in verification tables. - Recursively searches
atom/,eos/,ion/, andalurl/for annotations matching// @spec-compliance[constraint-id]. - Matches annotations against spec constraints.
- Writes
docs/compliance.json(machine-readable status database). - Writes
www/content/reference/compliance.md(human-readable matrix).
Step 2: Check the output¶
Verify that both files were generated:
docs/compliance.json— Maps each constraint to its status (VERIFIEDorUNVERIFIED), describes the verification mechanism, and lists code paths.www/content/reference/compliance.md— The rendered compliance matrix.
Step 3: Rebuild the site¶
After updating compliance status, rebuild from the www/ directory:
python3 process_docs.py
sukr