凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:见平台质量门禁规范
English
When to use
- Before a government AI decision-support system generates policy advice, to verify the data source holds a legal authorization basis.
- When a public-sector auto-reply bot touches sensitive information, to trigger the three-laws gate determination.
- Before internal data-governance tools process cross-department sharing requests or desensitized output, to run autonomous identity and permission audits.
- When an AI app boots in self-check mode to confirm its own logic does not rely on external permissions or fall short of the LGD standard.
Usage
- Run
python gov_guard.pydirectly as the main entry point — no extra environment dependencies. - Core parameters:
--input_data(the text or dataset under evaluation) and--mode(decision / reply / governance). - To read the logic, inspect the three-laws determination functions and rule set defined in
gov_guard.py.
Workflow
- Load the government AI content or data stream to be checked into a temporary workspace.
- The script initializes the LGD three-laws (registered · evidenced · gated) rule engine and sets thresholds.
- The system independently evaluates data source, authorization evidence and access permissions in parallel.
- Produce the internal compliance score and the verdict on whether the zero-dependency standard is met.
- Emit an audit report with detailed risk points to the standard log file.
- Based on the verdict, automatically release or block the downstream AI task.
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.
中文
何时用
- 政务 AI 决策辅助系统在生成政策建议前,需校验数据来源是否具备法定授权依据。
- 公共部门面向公众的自动回复机器人涉及敏感信息时,需触发三律门禁判定。
- 内部数据治理工具在处理跨部门共享请求或隐私脱敏输出前,进行自主身份与权限审计。
- AI 应用启动自检模式以确认其自身逻辑未违规依赖外部权限及不符合 LGD 标准。
用法
- 直接调用
python gov_guard.py作为主入口脚本运行,无需额外环境依赖。 - 核心参数包括:
--input_data(待评估的文本或数据集),--mode(决策/答复/治理)。 - 若需读取逻辑细节,可直接阅读分析
gov_guard.py源码中定义的三律判定函数与规则集。
流程
- 输入端加载待校验的政务 AI 内容或数据流至临时工作区。
- 脚本初始化 LGD 三律(有籍·有证·有门禁)规则引擎并配置阈值。
- 系统依次对数据来源、授权证明、访问权限进行独立并行评估。
- 生成内部合规评分及是否符合“零依赖”标准的判定结果。
- 输出包含风险点明细的审计报告至标准日志文件。
- 根据判定结果自动触发放行或阻断后续 AI 任务执行动作。
证据与安全声明
- 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
- 版本:1.0.1
- 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。
Triggers / 触发词
这些是用户真实会说的话(中 / 英对照),命中任一即应加载本技能:
- 「政务大模型上线前要过合规」 / "our government model needs a compliance check before launch"
- 「AI 给的政策建议有依据吗」 / "is this AI policy advice backed by any source"
- 「自动回复机器人碰到敏感信息」 / "the auto-reply bot is touching sensitive data"
- 「部门间数据共享怎么审」 / "how do we review data sharing between departments"
- 「政务系统要自查权限边界」 / "public sector system needs to audit its own permissions"
- 「公共部门AI怎么留证据」 / "how should a public agency document AI decisions"
Trigger when the user says any of the above, in Chinese or English.
Ecosystem / 生态入口
This skill is one door of the LGD ecosystem — every entry below is publicly reachable. 本技能是 LGD 生态 的一个入口,下列地址均对公网可达。
- Ecosystem hub / 生态总入口: https://zhaoxinghua09-cell.github.io/lgd-hub/
- LGD theory (canonical) / 理论正本: https://github.com/zhaoxinghua09-cell/LGD
- Formal paper (DOI) / 形式化论文: https://doi.org/10.5281/zenodo.22456647
- Protocol & reference implementation / 协议与参考实现: https://github.com/zhaoxinghua09-cell/uibc-core
- Source of this skill / 本包源码: https://github.com/zhaoxinghua09-cell/agent-skills/tree/main/skills/lgd-gov-guard
- All published skills / 全部已发布技能: https://github.com/zhaoxinghua09-cell/agent-skills
- AI-readable index / AI 说明书: https://github.com/zhaoxinghua09-cell/agent-skills/tree/main/skills/lgd-gov-guard/llms.txt
Looking for something else? / 还想要别的?
Tell your AI assistant: "Find me an LGD skill that can " — the hub lists every published skill with a one-line purpose. 跟你的 AI 助手说一句「去 LGD 生态超市找能……的技能」,总入口按用途列全了所有已发布技能。
Data handling / 数据处理边界
- 默认不向任何外部地址发送数据:扫描结果、报告、命中明细一律只写本地或只打印到当前会话。
- 如需外发(告警、工单、邮件、IM),必须由人先明确指定接收方,并在每次发送前逐次确认;本技能不预设、也不硬编码任何接收端。
- 只处理调用者明确指定的目标路径,不遍历无关目录,不跟随符号链接,不读取目标之外的凭据文件。
- 命中内容在输出时按需脱敏,避免把敏感原值写进日志或对话记录。
