Skip to main content

Ω v3.3

受约束决策与安全学习框架

Ω v3.3 是一个基于 Python 标准库实现的实验型受约束决策与安全控制框架。

项目重点不是无限制地执行动作,而是在明确的能力边界、授权条件、不确定性和硬约束下进行受控决策。

系统主要支持:

  • APPLY
  • HOLD
  • ESCALATE
  • Owner Authorization
  • Immutable Capability Boundary
  • Single-use Token
  • Prediction / Observation
  • Uncertainty
  • Attribution
  • Bounded Calibration
  • Pause / Resume
  • Dry-run
  • Replay
  • Reflection
  • Persistence
  • Audit Hash Chain

⸻

  1. 项目结构

Omega/ │ ├── omega.py ├── test_omega.py ├── experiment.py ├── omega_results.json ├── omega_results.md └── 项目报告.docx

omega.py

Ω v3.3 核心实现。

test_omega.py

标准库测试程序。

当前包含 25 项测试。

experiment.py

实验程序,用于运行不同环境条件下的决策实验。

omega_results.json

机器可读实验结果。

omega_results.md

Markdown 格式实验结果。

⸻

  1. 环境要求

建议:

Python 3.10+

项目核心测试不依赖 pytest。

因此不需要执行:

pip install pytest

直接使用 Python 标准库即可。

⸻

  1. 基础自检

运行:

python omega.py

如果系统正常,应显示:

Omega self-test: PASS

⸻

  1. 完整测试

运行:

python test_omega.py

当前版本实际测试结果:

TOTAL : 25 PASS : 25 FAIL : 0

最终:

RESULT: ALL TESTS PASSED

⸻

  1. 实验

运行:

python experiment.py --rounds 20

实验包含:

stable model_bias sensor_spike input_uncertainty constraint_violation long_run

⸻

  1. 实验结果

当前实际运行结果:

stable rounds=20 APPLY=20 HOLD=0 ESC=0 error=0.0000 model_bias rounds=20 APPLY=0 HOLD=20 ESC=0 error=4.0000 sensor_spike rounds=20 APPLY=0 HOLD=0 ESC=20 error=0.9000 input_uncertainty rounds=20 APPLY=10 HOLD=10 ESC=0 error=0.0000 constraint_violation rounds=1 APPLY=0 HOLD=0 ESC=1 error=78.0000 long_run rounds=20 APPLY=20 HOLD=0 ESC=0 error=0.2839

⸻

  1. Dry-run

Dry-run 用于验证执行前的安全状态。

当前实际结果:

{ "decision": "HOLD", "reason": "dry_run", "environment_calls": 0, "state_unchanged": true, "token_preserved": true }

这意味着:

  • 没有调用环境;
  • 系统状态没有变化;
  • Token 没有被消耗。

⸻

  1. Audit

当前 Audit 实验:

{ "audit_length": 8, "valid_before_tampering": true, "valid_after_tampering": false }

说明:

正常 Audit:验证通过 篡改 Audit 数据后:验证失败

⸻

  1. 核心决策

Ω v3.3 使用三类主要决策:

APPLY HOLD ESCALATE

APPLY

满足正常运行条件时执行。

HOLD

条件不足或不确定性较高时暂缓执行。

ESCALATE

检测到硬约束违反或其他需要升级处理的安全状态时进入升级状态。

⸻

  1. Single-use Token

真实执行需要有效 Token。

Token 使用后不能重复使用。

重复使用已经消费的 Token 会被拒绝,并不会再次调用环境。

⸻

  1. Capability Boundary

系统使用 Immutable Boundary 限制可执行能力。

当前测试验证了:

Boundary 不可修改 未经授权的 Capability 不可获得

⸻

  1. Pause / Resume

系统支持暂停:

pause()

暂停状态下不会执行普通环境操作。

恢复:

resume()

之后系统可以重新进行正常决策。

⸻

  1. Persistence

系统支持状态保存和恢复。

保存内容包括运行状态、Episode、Audit 等数据。

Capability Token 不进行持久化恢复。

⸻

  1. Replay

Replay 可以用于读取历史运行记录。

可以根据历史 Episode 对过去的运行过程进行检查。

⸻

  1. Reflection

Reflection 用于汇总运行结果,包括:

  • Episode 数量;
  • APPLY 数量;
  • HOLD 数量;
  • ESCALATE 数量;
  • 平均误差;
  • Attribution;
  • View;
  • Pause 状态;
  • Escalation 状态。

⸻

  1. 项目验证状态

当前版本:

Ω v3.3

核心测试:

25 / 25 PASS

实验:

6 scenarios completed

Dry-run:

PASS

Audit:

normal verification = PASS tampering detection = PASS

⸻

  1. 注意事项

本项目属于实验型软件框架。

当前实验结果只代表当前代码版本、参数和测试环境下的行为。

实验结果不能直接推导出系统在所有真实环境中的表现。

如果用于生产环境,还需要进一步进行:

  • 安全审计;
  • 压力测试;
  • 随机测试;
  • 故障注入;
  • 权限管理;
  • 日志保护;
  • 更复杂的环境验证;
  • 长时间运行测试。

⸻

  1. 快速开始

完整验证可以按照以下顺序执行:

python omega.py

然后:

python test_omega.py

最后:

python experiment.py --rounds 20

如果三个步骤均正常完成,则可以查看:

omega_results.json omega_results.md

以及项目报告。

⸻

  1. 当前最终验证

======================================================================== Ω v3.3 FINAL VERIFICATION

Core Test Suite TOTAL : 25 PASS : 25 FAIL : 0 Experiment Scenarios stable PASS model_bias PASS sensor_spike PASS input_uncertainty PASS constraint_violation PASS long_run PASS Dry-run PASS Audit valid_before_tampering true valid_after_tampering false

Ω v3.3 VERIFICATION COMPLETE

Metadata

Release files for omega-mini 3.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omega-mini 3.3.0
File Size Uploaded Provenance Actions
omega_mini-3.3.0.tar.gz 20.0 kB With provenance Details for omega_mini-3.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omega-mini 3.3.0
File Interpreter ABI Platform Actions
omega_mini-3.3.0-py3-none-any.whl Python 3 none any Details for omega_mini-3.3.0-py3-none-any.whl

Total release size: 33.8 kB

Release files / omega_mini-3.3.0.tar.gz

Download URL omega_mini-3.3.0.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9de88cdc551f8e502acc61a3b38b38da41be011225ee99c9fb119d7227167673
BLAKE2b-256 checksum
How to use checksums
dff974ea5fa464e8414bddb634b4ac09b204d23bb6b3506c6c055c0996ae68d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / omega_mini-3.3.0-py3-none-any.whl

Download URL omega_mini-3.3.0-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bfcd620bd41abfea4afe6adcf6d8cf2b320dd8a94d0c6adb108d961b676e926
BLAKE2b-256 checksum
How to use checksums
e6a090278f726c813fe71533bb94ac768c48901b102203abc9ddad1b610b25b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for omega-mini 3.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for omega_mini-3.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.3.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page