DNA:
#LongHun⚡️BingWu·GuiWei·JiaZi·ZiShi·䷸Xun-CONTRIBUTING-DOC-v1.0
Your hand, our wall. Your code, our law.
Read docs/AI-Traceability-Audit-Protocol-v1.0.md first.
lh_standard_adapter/ contains the canonical implementation:
dna_generator.py— DNA generationaudit_wrapper.py— Audit wrappingvalidator.py— Validationschemas/— JSON Schemas
adapters/
├── javascript/
│ ├── package.json
│ ├── index.js
│ ├── index.d.ts
│ ├── dna_generator.js
│ ├── audit_wrapper.js
│ ├── validator.js
│ ├── schemas/
│ └── tests/
├── go/
│ ├── go.mod
│ ├── adapter.go
│ ├── dna_generator.go
│ ├── audit_wrapper.go
│ ├── validator.go
│ └── adapter_test.go
├── rust/
│ ├── Cargo.toml
│ ├── src/
│ └── tests/
├── java/
│ ├── pom.xml
│ ├── src/main/java/cn/uid9622/longhun/
│ └── src/test/
└── ruby/
├── lh-standard-adapter.gemspec
├── lib/lh/
└── test/
Every adapter MUST implement:
-
DNAGeneratorclass — generates v∞ DNA codes matching the Python byte-for-byte -
AuditWrapperclass — produces seven-factor audit signatures -
Validatorclass — validates wrapped payloads -
LongHunAdaptermain class — wraps everything - 72+ test cases covering all three modules
- Cross-validation test: Python wraps → THIS validates / THIS wraps → Python validates
- README with working code examples
- Zero external dependencies (stdlib only)
- CC-BY-NC-SA 4.0 LICENSE
| Module | Minimum Tests |
|---|---|
| DNA Generator | 24 |
| Audit Wrapper | 29 |
| Validator | 19 |
| Total | 72 |
Tests must cover:
- Happy path (default wrapping)
- All task types (code, deploy, audit, security, etc.)
- All behavior patterns (Stable, Defensive, Destroyer, TrustSpender, Fluctuating)
- Validation of all 10 signature fields
- Invalid payload rejection (empty, partial, malformed)
- Cross-language compatibility
#LongHun⚡️{YearStem}·{MonthStem}·{DayStem}·{ShiChen}·{HexagramSymbol}{HexagramName}-ADAPTER-{TASK}-{ACTION}-V{VER}-{hash8}
The hexagram selection must match the Python TASK_HEXAGRAM_MAP.
The stem-branch computation must use the same reference year (1984).
- Claim a bounty issue by commenting "I'll take this"
- Fork the repo
- Create a branch:
adapter/{language}-v1.0 - Implement in
adapters/{language}/ - Run your test suite (
python tests/run_cross_validation.pywhen available) - Submit PR against
main - A maintainer will review and merge
Before merging, the adapter must pass cross-validation:
# Python generates test vectors
python tests/generate_test_vectors.py --output test_vectors.json
# Your adapter validates all test vectors
cd adapters/your-language/
# Run cross-validation (implement per language)- Adapters with external dependencies (beyond stdlib)
- Adapters that modify the DNA format
- Adapters that skip the seven-factor audit
- Adapters that add "vendor extensions" to the JSON Schemas
- Any code that undermines the DNA traceability promise
Open an issue describing the bug. Reference the failing test case.
Typo fixes, README improvements, translation — always welcome.
Schema additions (new fields, new factor values) require discussion in an issue first.
- Our standard, our rules.
- No commercial exploitation.
- Attribution mandatory.
- Core engine is off-limits.
When you adopt the LongHun DNA format, you are not importing a library. You are accepting a treaty.
Signed: LongHun Core · UID9622