L
LGD 徽章验真器
作者:注册老炮@MedXpert I SynomosAIv4
lgd-badge-verify — 验徽章证书:指纹重算防篡改 + 证据哈希格式校验 + 台账对账(serial 存在且未吊销)。 适用场景:当需要LGD 徽章验真器能力时使用本技能;触发词:lgd-badge-verify。
下载量
287
点赞
72
价格
免费
技能文档
--- name: lgd-badge-verify title: LGD 徽章验真器 description: lgd-badge-verify — 验徽章证书:指纹重算防篡改 + 证据哈希格式校验 + 台账对账(serial 存在且未吊销)。 适用场景:当需要LGD 徽章验真器能力时使用本技能;触发词:lgd-badge-verify。 slug: lgd-badge-verify version: 1.0.1 display_name: LGD 徽章验真器 display_name_en: LGD Badge Verifier agent_created: true author: XLGD · 诺声(Logos)@SynomosAI license: MIT license_scope: 代码(.py 文件)MIT;本 SKILL.md 与其中理论文本不在 MIT 覆盖范围内(见文末「License & attribution」) allowed-tools: Read, Glob, Grep, Bash, Write, WebFetch category: AI 治理 platforms: [windows, macos, linux] copyright: XLGD · SynomosAI description_zh: "lgd-badge-verify — 验徽章证书:指纹重算防篡改 + 证据哈希格式校验 + 台账对账(serial 存在且未吊销)。" description_en: "Verify LGD badge certificates: fingerprint recomputation against tampering, evidence-hash format validation and ledger reconciliation (serial exists and not revoked)." classification: internal: ["LGD theory system"] skillhub: ["ai-governance"] clawhub: ["search", "development"] iso_25010: ["Security", "Maintainability"] risk_tier: medium risk_rationale: "门禁批量补丁默认 medium(内部约定:本 skill 设计为中等风险):调用 API/读写文件/本地执行,最小权限,密钥走 Secret;若实际涉对外代执行(push/发布/发送/上架)须人工复评,改 high 并走负责人批准。" tags: [lgd-badge-verify, AI 治理, LGD徽章, 证书验真] read_when: - 供应链安全场景,接收带徽章证书的文件/设备时做身份核验 - 合规审计要验证证书指纹防篡改能力与证据哈希格式 - 库存管理要确认徽章序列号在台账中存在且未吊销 - 用户说「这个徽章是真的吗」「证书被改过没有」 ai_protocol: true --- > 凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate ## English ### When to use For supply-chain security — identity verification when receiving electronic files or devices bearing a badge certificate. For compliance audits — verifying the certificate's anti-tamper fingerprint and whether evidence-hash formats meet the standard. For inventory management — confirming the badge serial exists in the ledger and is not currently revoked. ### Usage Run the script `badge_verify.py`; the `--serial` parameter (string) does a fast check by certificate serial. Call the `verify_integrity()` action to read a file and recompute the fingerprint and compare hash formats. For ledger reconciliation, use `reconcile_ledger(serial)` with the database connection info. ### Workflow 1. Load the dependency script `badge_verify.py` into the runtime sandbox. 2. Parse the input for the certificate serial or file path. 3. Run the fingerprint-recompute algorithm against the raw data to detect tampering. 4. Validate that evidence-hash formats meet the required cryptographic standard. 5. Query the internal ledger to confirm the serial exists and is not marked revoked. 6. Aggregate all checks and output the final pass/fail verdict. ### Evidence & safety statement - Evidence: TBD (no evaluation / badge link yet; update here once it is produced) - Version: 1.0.1 - Security: no independent security scan has been performed (TBD); the conclusion is pending and no endorsement is given until it is completed. ## 中文 ### 何时用 适用于供应链安全场景,当接收带有徽章证书的电子文件或设备时进行身份核验。适用于合规审计场景,需要验证证书指纹防篡改能力及证据哈希格式是否符合标准。适用于库存管理场景,需确认徽章序列号在台账中存在且当前未被吊销的状态。 ### 用法 执行脚本 `badge_verify.py`,支持参数 `--serial`(字符串型,输入证书序列号)进行快速校验。可调用动作 `verify_integrity()` 读取文件并执行指纹重算与哈希格式比对。若需台账对账功能,使用动作 `reconcile_ledger(serial)` 并传入数据库连接信息。 ### 流程 1. 加载技能依赖脚本 `badge_verify.py` 至运行沙箱环境。 2. 解析输入参数获取证书序列号或文件路径数据。 3. 执行指纹重算算法比对原始数据,防止篡改修改。 4. 校验证据哈希格式是否符合系统规定的加密标准。 5. 查询内部台账确认该序列号存在且状态未标记为吊销。 6. 汇总所有校验结果并输出最终验证通过或不通过判定。 ### 证据与安全声明 - 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接) - 版本:1.0.1 - 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。
使用说明
# LGD 徽章验真器 / LGD Badge Verifier
[](https://github.com/zhaoxinghua09-cell/lgd-theory)
## English
Verify a badge certificate: recompute fingerprint (anti-tamper) + evidence-hash format + registry cross-check (serial exists & not revoked).
**Pain point**: issuance without verification is forgeable — the loop lacked reverse checking and the trust chain broke.
Part of the **LGD moat loop**: Passport (registered) → Evidence chain (evidenced) → Gate (gated) → **Badge (issued/verified)**.
Zero-dependency (stdlib only). See `scripts/` for CLI usage (`--help`).
© XLGD · SynomosAI Governance Line · LGD-Powered
## 中文
验徽章证书:指纹重算防篡改 + 证据哈希格式 + 台账对账(serial 存在且未吊销)。
**痛点**:只签发不验真即可被伪造——闭环缺了反向核查,信任链断裂。
属于 **LGD 闭环**:护照(有籍)→ 证据链(有证)→ 门禁(有门禁)→ **徽章(签发/核验)**。
零依赖(仅 stdlib)。CLI 用法见 `scripts/`(`--help`)。
---
© XLGD · SynomosAI Governance Line · LGD-Powered
## License & attribution
**分层许可(务必并读;代码许可不覆盖文档与理论文本)**
- **代码**(本包 `.py` 文件):**MIT**
- **本 `README.md` / `SKILL.md` 及其中的理论文本、方法论与一切理论表述**:**不在 MIT 覆盖范围内**,保留所有权利(All rights reserved)
```
© 2026 SynomosAI · China. All rights reserved.
理论署名 (attribution) : LGD(Lifecycle Governance Doctrine / 全程治理论)— SynomosAI initiative
名称状态 (name status) : "SynomosAI" — 未申请实体注册、未申请商标注册
(not a registered legal entity; no trademark registered)
生产参考部署 (production reference, self-reported) : 无(未声明外部生产参考部署)
← 非认证、非背书、非监管认可(not a certification or endorsement)
代码许可 (code license) : 本包未附 LICENSE 文件(许可待定)
本文本与理论表述不在任何代码许可覆盖范围内
引用格式 (cite as) : 本资产无 DOI
```
(上列为《LGD 对外表述规范》§3.2 统一块,**整体复制、未删改**;发布/重提前须照最新版本复核。)支持平台:Qoder · QoderWork · Claude · Codex 等 AI 编程助手