Skip to content

Conversation

@weijay0804
Copy link

概述 (Summary)

本 PR 為 Atlas World 框架提供了一套可運行的 Dify 工作流實作。旨在將專案中的「身份連續性協議」與「價值漂移防禦」理論,轉化為具備自動化決策能力的監控系統。


核心功能 (Key Features)

  • 多維度指標計算:透過 Python 節點精準實作 $C(S_0, S^*) = 0.3M + 0.4V + 0.2P + 0.1T$ 身份連續性公式。
  • 自動化安全門檻 (Safety Gate):實作 if-else 邏輯分支。當價值漂移 $D \ge 0.5$ 時,系統將無視身份地位,強制觸發「緊急剎車」流程。
  • RAG 司法鑑定報告:整合專案內的 Markdown 憲法知識庫,自動產出具備法理依據、引經據典的正式鑑定報告。
  • 異常處理機制:Python 代碼具備強健性,能處理輸入型態異常並提供清晰的錯誤回饋。

檔案變更 (Files Added)

  • implementations/dify-workflow/Atlas_Governance_Workflow.yml: Dify 導出的 DSL 工作流檔案。
  • implementations/dify-workflow/governance_engine.py: 核心計算邏輯的獨立 Python 原始碼。
  • implementations/dify-workflow/README.md: 提供給使用者的快速上手指南與邏輯說明。

實作展示 (Screenshots/Demo)

1. 工作流全景 (Workflow Overview)

展示了「安全防禦優先於司法判決」的雙軌制設計邏輯。

2. 鑑定報告成品 (Judicial Report Sample)

展示系統如何動態引用 IDENTITY_PROTOCOLA.3 權利保護 條文產出嚴謹的裁定書。


測試環境

  • Dify 版本:v0.10.0+
  • LLM 模型:OpenRouter (gpt-5-preview)
  • Embedding 模型:Ollama (bge-m3)

Add experimental low-code implementation using Dify.ai platform:
- Identity continuity calculation (C function)
- Value drift monitoring with emergency brake (D >= 0.5)
- RAG-based judicial ruling generation
- Bilingual documentation (zh-TW/en)

Files:
- Atlas_Governance_Workflow.yml: Dify DSL workflow
- governance_engine.py: Core computation logic
- assets/: Workflow screenshots

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants