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.4.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.4.2

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.4.2
File Size Uploaded Provenance Actions
allin_governance-2.4.2.tar.gz 438.9 kB Without provenance Details for allin_governance-2.4.2.tar.gz

Built distribution (wheel)

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

Total release size: 960.4 kB

Release files / allin_governance-2.4.2.tar.gz

Download URL allin_governance-2.4.2.tar.gz
Size 438.9 kB
Tags Source
SHA-256 checksum
How to use checksums
12c2310513d823915d955f7fa32df9e928d8ba1f072d4a87990679a128bc454b
BLAKE2b-256 checksum
How to use checksums
5b336743888668ee73f8e74bd195aa63e48ad4dc14080ffec64ed658acc662ef
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.4.2-py3-none-any.whl

Download URL allin_governance-2.4.2-py3-none-any.whl
Size 521.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae324a390b17e00037c0450cf303f293c3459d97c125449a22592de33ff2d43f
BLAKE2b-256 checksum
How to use checksums
7b3871223e825f19a3d18dd079ac8044330488e87684b00a293af0651b62254e
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.4.2

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.4.2 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