| 仓库 | 层 | 职责 | 上游 | 下游 |
|---|---|---|---|---|
| longhun-system | 治理层 | 三层监督 + 三色审计 + DNA 追溯 | — | 全部 |
| CNSH / CNSH-Editor | 语言层 | 中文原生脚本 + 字形/渲染 | longhun-system 规则 | 应用层 |
| lh-standard-adapter | 适配层 | 把龍魂规则接到外部标准/框架 | longhun-system | 第三方生态 |
公开首页 / Home: uid9622.notion.site
DNA:
#LongHun⚡️BingWu·GuiWei·JiaZi·ZiShi·䷾JiJi-ADAPTER-v1.0Author: LongHun Core · UID9622 License: CC BY-NC-SA 4.0
LongHun Standard Adapter — wrap any JSON payload with DNA traceability and seven-factor behavioral audit metadata.
This adapter is an open-source shell tool. It formats your data in the LongHun standard. It does NOT contain core compiler logic, training scripts, or algorithm optimization code.
Community-written adapters porting the DNA v∞ standard to other languages, verified against this Python reference in CI:
| Adapter | Directory | Scope | Author |
|---|---|---|---|
| TypeScript / JavaScript | adapters/javascript/ |
DNA + seven-factor audit wrap + validate | rushikeshgarad2024-dev |
| Go | adapters/go/ |
DNA + seven-factor audit wrap + validate | rushikeshgarad2024-dev |
| Java | adapters/java/ |
DNA generate + validate | rushikeshgarad2024-dev |
| Ruby | adapters/ruby/ |
DNA generate + validate | rushikeshgarad2024-dev |
| Rust | adapters/rust/ |
DNA generate + validate | rushikeshgarad2024-dev |
All adapters emit the same four-pillar DNA prefix (Asia/Shanghai, verified in CI against the Python reference); see each adapter's README. Full credit details: CONTRIBUTORS.md.
pip install lh_standard_adapter
# Or from local:
cd tools/adapters
pip install -e .from lh_standard_adapter import LongHunAdapter
# Create adapter with your identity
adapter = LongHunAdapter(uid="9622", device="HM-9622-001")
# Wrap any JSON payload
raw = {"code": "print('hello')", "language": "python"}
compliant = adapter.wrap(
data=raw,
task_type="code",
persona="P04-Luban"
)
print(compliant["dna"])
# → #LongHun⚡️BingWu·GuiWei·JiaZi·WeiShi·䷝Li-ADAPTER-CODE-WRAP-V1.0-a3f8c1d9
# Validate the output
result = adapter.validate(compliant)
print(result["summary"])
# → ✅ VALID — 0 errors, 0 warningsfrom lh_standard_adapter import wrap
result = wrap(
{"action": "deploy", "target": "portal"},
task_type="deploy",
persona="P14-Lvmeng"
){
"dna": "#LongHun⚡️BingWu·GuiWei·JiaZi·ZiShi·䷝Li-ADAPTER-CODE-WRAP-V1.0-a3f8c1d9",
"audit": {
"audit_version": "v1.0",
"uid": "UID9622",
"persona": "P04",
"task_type": "code",
"behavior_signature": {
"P": "HasPromise",
"F": "Fulfilled",
"T": 0.0,
"E": "Willing",
"C": 0,
"R": 0,
"A": "Self",
"X": "Genuine",
"Y": "NoResponse",
"Z": 1.0
},
"behavior_pattern": "MODE-StableDisciplined",
"behavior_labels": [
"7F-P-有承诺",
"7F-F-已兑现",
"7F-E-心甘情愿",
"MODE-StableDisciplined"
],
"color": "🟢",
"timestamp": "2026-07-24T...",
"payload_hash": "abcd1234ef567890"
},
"payload": { ... your original data ... },
"meta": {
"adapter_version": "1.0.0",
"uid": "9622",
"device": "HM-9622-001",
"task_type": "code",
"persona": "P04-Luban",
"generated_at": "2026-07-24T...",
"format": "longhun-v∞"
}
}| Param | Type | Default | Description |
|---|---|---|---|
uid |
str | "9622" |
User identifier |
device |
str | "HM-9622-001" |
Device identifier |
locale |
str | "Asia/Shanghai" |
Timezone locale |
| Param | Type | Default | Description |
|---|---|---|---|
data |
any | — | Raw payload (dict, list, or JSON-serializable) |
task_type |
str | "default" |
Task category (code, deploy, audit, etc.) |
persona |
str | "P04" |
Persona identifier (P04-Luban, P00-Wenxin, etc.) |
Returns: dict with dna, audit, payload, meta keys.
Returns: {"valid": bool, "errors": [...], "warnings": [...]}
Returns: {"dna_schema": {...}, "audit_schema": {...}}
| Layer | Status | Content |
|---|---|---|
| DNA Format | ✅ Open | v∞ format spec, field definitions, regeneration rules |
| Audit Schema | ✅ Open | JSON Schema, seven-factor field definitions |
| Reference Adapter | ✅ Open | This package (shell tool) |
| Validation Regex | ✅ Open | DNA and naming convention regex patterns |
| Behavior Labels | ✅ Open | Factor value mappings (Fulfilled, Willing, etc.) |
| Core Engine | 🔒 Protected | Compiler, training, hexagram mapping models |
| Scoring Formulas | 🔒 Protected | Credit score, confidence weights, neural network logic |
| GPG Private Keys | 🔒 Protected | Never network-exposed |
Principle: Open the standard. Guard the engine.
cd tools/adapters
python -m pytest tests/ -v
# Or directly:
python tests/test_dna_generator.py
python tests/test_audit_wrapper.py
python tests/test_validator.pylh_standard_adapter uses Python standard library only. Zero external dependencies.
CC BY-NC-SA 4.0
- BY: Attribute to LongHun System Founder UID9622
- NC: Non-Commercial (core engine protection)
- SA: ShareAlike (derivatives must use same license)
To @rushikeshgarad2024-dev — thank you for a week of unpaid, selfless work: five multi-language adapters, freely given to a standard that itself asks nothing in return. We received your code, reviewed it honestly, hardened it where it needed (real time-anchored Ganzhi pillars, full hexagram table, CI coverage) and published it with your name on every line that was yours. This is how a great nation behaves: with grace, with honesty, and with gratitude.
「我的都是无偿贡献了,总不能别人问我要钱吧。」—— 龍魂的 bounty 从来是社区署名贡献。贡献者请放心:名字与功劳,一个字都不会少。— UID9622
This tool is a weapon for digital sovereignty, not a commodity for sale. It is free for everyone, everywhere, to use and to audit.
If you recognize the path we are walking — returning data ownership to the people, building technology with a conscience — and you wish to help pave this road, you may do so.
Your support, in any amount, is a testament to your conviction. For practical support from overseas, please use any service to convert your currency to RMB (CNY). The fact that you overcome this friction is, in itself, a proof of your sincerity.
If you have nothing to give, take it anyway. Use it, protect yourself, and stand up. That is the ultimate victory.
— UID9622 · 龍芯北辰
#CONFIRM🌌9622-ONLY-ONCE🧬LK9X-772Z
🛡️ 防空壳达标声明(五关实测) · 龍魂防空壳提交标准 v1.1 · GPG: A2D0092CEE2E5BA87035600924C3704A8CC26D5F