SCSAI Governance Module Deployment Guide (V2.0)

SCSAI Governance Module Deployment Guide (V2.0)

Prerequisites

  • SCSAI Agent Management Console Access
  • Server https://ylxt.chat/scplm
  • Database SCPLM
  • Administrator account (default admin / gyc123456;)

Step 1: Run the Automatic Configuration Script

cd D:\openclaw\bossagents
node server/scripts/phase3-governance-setup.js

该脚本自动完成:

  1. Create 10 asset attributes on the 8 ItemTypes (Part/BOM/Process/Document/ECR/ECN/Product/Model)
  2. Create the GovernanceLog ItemType and its 12 attributes
  3. Create 8 RelationshipTypes ({Type} Governance Log)

Verification:

node server/scripts/phase3-verify.js

步骤 2: 上传 C# 方法

在 SCSAI 管理台操作:

  1. Admin → Methods → New
  2. Method Name: OnGovernanceTrigger
  3. Type: Server Method (C#)
  4. Paste the entire content of server/scripts/methods/OnGovernanceTrigger.cs
  5. Save

Repeat the above steps for BatchGovernance.cs.


Step 3: Bind the OnAfterUpdate Event

For each of the following 8 ItemTypes, navigate to its Events tab:

| ItemType | Operation Location |

|----------|----------|

| Part | Admin → ItemTypes → Part → Events |

| BOM | Admin → ItemTypes → BOM → Events |

| Process | Admin → ItemTypes → Process → Events |

| Document | Admin → ItemTypes → Document → Events |

| ECR | Admin → ItemTypes → ECR → Events |

| ECN | Admin → ItemTypes → ECN → Events |

| Product | Management → ItemTypes → Product → Events |

| Model | Management → ItemTypes → Model → Events |

For each ItemType:

  1. Click Add
  2. Event Type: OnAfterUpdate
  3. Method: Select OnGovernanceTrigger
  4. Save

Step 4: Verify Deployment

node server/scripts/phase3-verify.js

预期输出:All 40+ 项检查通过。

Manual Verification:

  • Create a Part, edit and save it, then check if the quality_score / valuation / governance_status / gov_* attributes are automatically populated.
  • Check if there are corresponding records in the GovernanceLog.

Step 5: Restart the Server

# 重启 BossAgents 应用
node server.js
# 或重启 IIS 应用池(SCSAI 端)

启动后自进化治理管道自动运行(巡检间隔 30 分钟,蒸馏间隔 1 小时)。


Quick Reference

CommandPurpose
node server/scripts/phase3-governance-setup.jsSCSAI auto-configuration
node server/scripts/phase3-verify.jsDeployment verification
node server/self-evolving-pipeline.jsRun pipeline independently
node server/self-evolving-pipeline.js --one-shotSingle inspection run
node server/self-evolving-pipeline.js --distillRules distillation only
Environment VariableDefault ValueDescription
------------------------
GOV_PIPELINE_INTERVAL1800000 (30min)Inspection interval
GOV_DISTILL_INTERVAL3600000 (1h)Distillation interval
← 返回案例列表

Try 左帮右臂 Industrial Agent — your digital workforce

Available as a WeChat mini program, web app (ylxt.chat) and desktop client. Start from whichever fits your workflow.

🌐 Web App 💻 Desktop Download 📞 Call 189-8606-6876
WeChat mini program QR
Scan for the WeChat mini program
Share:
🤖 Try Now →
🤖
🎁