Skip to main content

allin-governance

工作区治理中枢的公共核:可执行门禁 + 文档枢纽契约 + 仓库体检 + 机器事实采集。

面向「一人多仓 + AI 协作者」的场景:把「换台机器还能用」的部分装成一个包, 让消费仓(如 allin)只通过版本号消费它。

为什么独立成仓

参照 3dworld(库仓)↔ 3dworld-demos(消费仓,pip install 3dworld==0.9.0 锁版)的形态:

结构即判据 —— 库仓不读消费仓任何文件,消费仓只通过版本号消费库。 此前公共核与治理中枢/事实源/记录住在同一个仓里,边界只能靠目录约定 + 门禁事后拦。

分仓后有一个直接的构建收益:跨目录 package-dir 映射全部取消, 随之「包内副本是否与仓内真身一致」这一整类对账问题从根上不存在 (check_pkg_parity.py 因此可以删)。

包里有什么

子命令 职责
repocheck 仓库体检:30 条规则 + 0–10 健康分
init / verify 生成 / 复核治理骨架
scan 发布区扫盘:项目指纹、重复检出、迁移残留
deps 依赖三方对账(声明 / 实装 / import)
github 建仓、推送、三端同步巡检(镜像端)
gitee 建仓、转公开、发发行版(权威端,与 github 配对成双核)
publish PyPI 发版链路:check / build / verify / upload / release
secrets-scan 离线凭据扫描(21 规则 + 熵闸,零外部二进制)
facts 机器事实:采集本机 + 校验分区文件断言(支持无仓模式)

所有子命令接受 --root <目录> 与位置参数两种写法(1.1.2 起统一)。

发布链路 → PUBLISHING.md

建仓、推送、发版原本散在三处(allin 的 gitee 工具 + 包内 github + 包仓脚本), 2.1.0 因此只在 PyPI 发了 wheel、漏了 sdist —— 纪律没有统一入口就会被当作结果而不是依据。 现在统一成 gitee / github / publish 三个子命令,流程与判据见 PUBLISHING.md。

allin-governance publish release --upload   # 发版的唯一入口(双产物是硬判据)

安装

pip install allin-governance
allin-governance --version
allin-governance facts measure          # 换机第一件事:这台机器长什么样

当前版本 2.0.2(以 PyPI 为准)。

运行时零第三方依赖——治理工具要能在「一台什么都没装的机器」上跑起来。

发版前校验(维护者)

python -m build                            # 构建 sdist + wheel
python scripts/release_preflight.py --install   # 版本对账 / dist 干净 / sdist 自包含 / 双产物各装一次

--install 是 1.0.0 事故(wheel 好、sdist 坏)的唯一鉴别实验,发版前必跑; twine check 与 --install 在无人值守场景记为「未验证」,不等于通过。

边界

本仓只装判定器 / 采集器 / 骨架执行器 / 只读模板 / 接口契约; 实例台账、机器特化数据、记录类、运行产物一律不进这里 (判据见消费仓的 SPEC-206 公共核边界)。

许可

MIT-0

Metadata

Release files for allin-governance 2.2.1

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

Source distribution (sdist)

Source distribution for allin-governance 2.2.1
File Size Uploaded Provenance Actions
allin_governance-2.2.1.tar.gz 382.5 kB Without provenance Details for allin_governance-2.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for allin-governance 2.2.1
File Interpreter ABI Platform Actions
allin_governance-2.2.1-py3-none-any.whl Python 3 none any Details for allin_governance-2.2.1-py3-none-any.whl

Total release size: 839.8 kB

Release files / allin_governance-2.2.1.tar.gz

Download URL allin_governance-2.2.1.tar.gz
Size 382.5 kB
Tags Source
SHA-256 checksum
How to use checksums
edce5dc3311d08f495a2f50dc25cae75ef9bc69b6d2c24f5a1632bef7f2c2b8c
BLAKE2b-256 checksum
How to use checksums
977afdbc0f0b09cf0f3a5e35c8694335acf69c5c308a767db07d2d9c16ac2311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / allin_governance-2.2.1-py3-none-any.whl

Download URL allin_governance-2.2.1-py3-none-any.whl
Size 457.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8cc2c5a62cae92daa65ce663cd404997cb0aab229a103a31854450c65a805cf
BLAKE2b-256 checksum
How to use checksums
d0885fbbbb8c69dbaf5d5155503f7767335a916c2be2ed572c3c754fc21a98f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for allin-governance 2.2.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

2.2.1 This release

2 release files No 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