compliance_report
Generate a Markdown compliance report for 等保 2.0 and IEC 62443, presenting per-pillar status, crosswalk, gap list, and governance controls for CISO review.
Instructions
[READ][risk=low] Render the 等保 2.0 / IEC 62443 compliance report (Markdown).
Turns the compliance crosswalk into a deliverable document a CISO can read:
title-page metadata (site / date / iaiops version), per-pillar 等保 L2/L3 status
table, IEC 62443 FR1–6 crosswalk, honest gap list, and a governance-controls
appendix (audit hash chain / approval tokens / dry-run+undo / mTLS). An
onboarding/self-assessment aid, NOT a certification.
Args:
level: 等保 2.0 target level — 'l2'/'l3', '二级'/'三级', '2'/'3'. Omit for both.
site: Site / plant name stamped on the title page.
out_path: Optional file to write the markdown to (.md). Required when the
report exceeds the inline bound (~400 lines): without it the inline
markdown is truncated with a note.
Returns dict: {format, level, line_count, path?} plus either the full inline
{markdown} (when within bounds and no out_path) or {markdown (truncated),
truncated: true} with a hint to pass out_path.
Example: compliance_report(level="三级", site="示例水厂",
out_path="/tmp/compliance-report.md").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | ||
| level | No | ||
| out_path | No |