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 |
机器事实:采集本机 + 校验分区文件断言(支持无仓模式) |
ml |
文本分类骨架:TextCNN 打底 + 规则降级(torch 可选) |
pack |
PyInstaller 批量打包:GUI 自动检测 / 图标 / 附加数据 / UPX(pyinstaller 可选,pip install 'allin-governance[pack]') |
所有子命令接受 --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.5.0(以 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.5.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| allin_governance-2.5.6.tar.gz | 454.0 kB | Without provenance | Details for allin_governance-2.5.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| allin_governance-2.5.6-py3-none-any.whl | Python 3 | none | any | Details for allin_governance-2.5.6-py3-none-any.whl |
Total release size: 997.4 kB
Release files / allin_governance-2.5.6.tar.gz
| Download URL | allin_governance-2.5.6.tar.gz |
|---|---|
| Size | 454.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c946ce8c0c29b1111eb4ece63de3475a4cba36c399eb17be39797d7b8a9192a
|
|
BLAKE2b-256 checksum How to use checksums |
4e57f8f520699d4187a2ae606f4c870531b9e36d5c6db8c4d906d72b73d0d80d
|
| 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.5.6-py3-none-any.whl
| Download URL | allin_governance-2.5.6-py3-none-any.whl |
|---|---|
| Size | 543.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe41721fbd42b12e2183c7ee99869a47fb6082c83975c3186ec1e42c0d2335b9
|
|
BLAKE2b-256 checksum How to use checksums |
24c84306a39778312de51d2e73038b1b3a344fefdf9cf927499391d560f81a7f
|
| 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.5.6
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.