observability_hub
目录定位
observability_hub 是认知引擎四层架构中的观察事实 intake 入口。
它当前不是公共契约提供者,而是消费标准运行事实、在模块内部构建候选观察记录的入口层。
第一批范围
第一批只做:
RuntimeResult
-> build_evidence_bundle(...)
-> EvidenceBundle
也就是:
- 消费
RuntimeResult等公共运行事实。 - 内部构建
EvidenceBundle候选观察记录。 - 为后续治理、审查、版本判断提供最小事实入口。
当前职责
observability_hub 当前负责:
- 作为 observability-hub 的最低物理入口。
- 接收标准
RuntimeResult/WorkflowResult/RuntimeEvent事实。 - 构建
EvidenceBundle、RunRecord、EventTrace、ArtifactManifest、InvocationBindingRecord等内部模型。 - 对缺失事实采用
warnings与metadata保守承接。
当前不做
observability_hub 当前明确不做:
- 不创建
packages/evidence/。 - 不迁移旧
cognition_engine/control_plane/builder.py。 - 不消费
google.adk原生对象。 - 不依赖
adk_adapter。 - 不做 dashboard、metrics、trace storage。
- 不做持久化。
- 不修改
packages/schemas/。
架构边界
公共契约层是模块间交互的唯一稳定窗口。
因此 observability_hub 必须保持:
- 只消费标准运行事实,而不是外部 SDK 原生对象。
- 不直接依赖
adk_adapter实现。 - 不直接依赖
google.adk。 - 不反向驱动
schemas为当前内部模型让步。
模块内部模型可以存在,但不能被其他模块直接依赖。
一旦 EvidenceBundle 或其他内部模型被两个以上模块稳定消费,必须评估是否上升为公共契约。
EvidenceBundle 口径
EvidenceBundle 当前仍是 observability_hub 内部候选观察记录。
它当前不是:
- 不是全局公共契约。
- 不是最终完整 evidence 系统。
- 不是持久化记录系统。
- 不是后台看板数据模型。
当前口径必须保持保守:
- 不夸大 artifact 真实链路能力。
- 不夸大 timing 字段完整度。
- 不把 metadata 中的候选事实误写为稳定公共契约。
当前真实状态
截至 v0.5.0 当前阶段,以下事实已经成立:
observability_hub已作为最低 intake 入口落地。- 当前可以消费
RuntimeResult并构建EvidenceBundle。 - 四层最小闭环已通过测试复验成立。
当前四层最小闭环中,observability_hub 的位置为:
contract_core
-> runtime_container
-> adk_adapter
-> ADK Workflow / Runner
-> RuntimeResult
-> observability_hub.build_evidence_bundle(...)
-> EvidenceBundle
当前限制
虽然最小闭环已经成立,但仍需明确:
ArtifactManifest当前可以存在,但真实 artifact 链路证据仍不足,不能宣称完整。EvidenceBundle当前是内部候选观察记录,不应宣称为全局公共契约。- 当前成立的是最小闭环,不等于完整产品化 observability 系统。
当前阶段说明
observability_hub 当前口径应统一为:
观察事实 intake 入口
= 消费 RuntimeResult 等公共运行事实
= 内部构建 EvidenceBundle 候选观察记录
= 暂不作为公共契约提供者
Metadata
Release files for cognition-engine-observability-hub 0.5.4
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 | |
|---|---|---|---|---|
| cognition_engine_observability_hub-0.5.4.tar.gz | 5.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cognition_engine_observability_hub-0.5.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / cognition_engine_observability_hub-0.5.4.tar.gz
| Download URL | cognition_engine_observability_hub-0.5.4.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d95b959a18b5296f0eb981542761ff8061d2db89498664c1593cc901fbfab0d
|
|
BLAKE2b-256 checksum How to use checksums |
ac962512c88fb55a242e54859671945db7ea0e963de4375510e74466e23cf187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 5, 2026.
Transparency logRelease files / cognition_engine_observability_hub-0.5.4-py3-none-any.whl
| Download URL | cognition_engine_observability_hub-0.5.4-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6e6c7aa8288e9f4f9f6254f64fa555c36c5cd3354a3f3ea30b9f1b36e8b29fa
|
|
BLAKE2b-256 checksum How to use checksums |
8db02640b67158f4f03b9f99746b80d63af308822fda05af623875427727bf19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 5, 2026.
Transparency logSecurity for cognition-engine-observability-hub 0.5.4
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for cognition_engine_observability_hub-0.5.4.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 May 5, 2026.
Transparency logA 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.