Metadata-Version: 2.4
Name: danvs
Version: 8.16.0
Summary: DANVS Production Core
Author: DANVS Engineering Team
License-Expression: LicenseRef-Proprietary
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: python-docx>=1.1.0

# DANVS (Document Architecture & Navigation Verification System)

**Deterministic Automated Normalization, Verification & Certification Platform**

## 🛡️ The 12 Quality Gates (G1–G12)

| Gate | Name | Description |
| :--- | :--- | :--- |
| **G1** | Deterministic Baseline | Exact reproducible diagnosis from any document state. |
| **G2** | Strict Defect Reduction | Non-increasing defect sequence across all passes. |
| **G3** | Anti-Oscillation Guard | Loop/cycle detection aborts oscillation immediately. |
| **G4** | Bounded Pass Cap | Guarantees bounded termination. |
| **G5** | Typography Normalization | Dominant font family, size hierarchy, and spacing convergence. |
| **G6** | Semantic Invariance | Zero text corruption, loss, or mutation during repair. |
| **G7** | Atomic Pass Reversion | Regressions immediately roll back candidate to pre-pass state. |
| **G8** | Master Immutability | Source master document bytes & DOM remain read-only. |
| **G9** | Certificate Traceability | Unique DANVS-CERT- ID and TXN-DANVS- transaction issued on pass. |
| **G10** | Cryptographic Manifest | .danvs-release.json with matching SHA-256 artifact checksum. |
| **G11** | Post-Repair Verification | Comprehensive independent post-repair defect audit = 0. |
| **G12** | End-to-End Publication | Production-to-repair lifecycle closure with full release bundle. |

## 🚀 CLI Commands

`ash
# Diagnose defects
danvs diagnose manuscript.docx --json

# Certify and publish
danvs certify manuscript.docx -o output/published.docx --json

# Run repair engine directly
danvs repair run manuscript.docx -o output/repaired.docx --max-passes 4
`

## 🧪 Verification

`ash
pytest -q
pytest -v test_g12_e2e_publication_certification.py
pytest -v test_cli_commands.py
`
