凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate
English
When to use
- When legal AI auto-drafts contracts or legal documents, to launch an LGD three-laws (registered · evidenced · gated) compliance check on the generated content.
- When an in-house law-firm system calls an external AI advisory service for legal opinions, to verify the service's permissions and credentials.
- When handling sensitive cases or data exchanges, to run a zero-dependency AI gate determination as an independent module.
Usage
- Import the
law_ethicmodule directly in a Python environment — no external dependencies. - Main inputs: the legal content under review (
legal_content), the scenario tag (scenario, e.g. draft / review) and the check level (threshold). - To run the script standalone:
python law_ethic.py --mode=check --file=doc.json.
Workflow
- Initialize the LGD three-laws rule base (registered · evidenced · gated) and set the compliance baseline.
- Parse the input legal text or API request data; extract party info, permission context and operation intent.
- Run the three-laws logic: check identity registration, license validity and access-control rule matches.
- Compare against preset thresholds; on a violation, log it and return a block signal.
- On pass, emit the compliance certification tag and the recommended downstream legal-action path.
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 自动起草合同或法律文书时,需对生成内容发起 LGD 三律(有籍·有证·有门禁)合规校验。
- 当律所内部系统调用外部 AI 顾问服务获取法律意见时,需验证其权限与资质有效性。
- 涉及敏感案件处理或数据交互场景下,作为独立模块执行零依赖的 AI 门禁判定。
用法
- 通过 Python 环境直接导入
law_ethic模块进行调用,无需其他外部依赖。 - 主要输入参数为待合规审查的法律内容 (
legal_content)、应用场景标识 (scenario, 如 draft/review) 及校验等级 (threshold)。 - 若需独立执行脚本逻辑,可通过
python law_ethic.py --mode=check --file=doc.json格式传入命令参数触发分析流程。
流程
- 调用脚本初始化 LGD 三律规则库(有籍·有证·有门禁),建立合规基准线。
- 解析输入的法律文本或 API 请求数据,提取主体信息、权限上下文及操作意图。
- 执行三律判定逻辑:检查身份注册情况、执业证书有效性及访问控制规则匹配度。
- 比对分析结果与预设阈值,若触发违规则记录日志并返回阻断信号。
- 若校验通过则输出合规认证标识及建议的后续法律动作执行路径。
证据与安全声明
- 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
- 版本:1.0.1
- 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。
