Gravity Agent Runtime
Gravity Agent Runtime 的实现仓库,当前稳定内核是面向数据分析团队的 Agent-first Python SDK 与 CLI。仓库把 Gravity 的发现、读取、导出和受治理写入收敛为版本化合同,并按已批准路线扩展版本化 Skill、业务语义、确定性分析方法和有界 Context,让分析任务无需打开 Gravity Web 也能完成。
从这里开始
-
使用 SDK 取数或分析:读 团队上手包。已知有效合同直接调用,未知先读目录,无法可靠选择才用 recognizer 保底;完整顺序只由 Agent 工作流 定义。未知能力的最短入口:
gravity agent-catalog categories
-
修改本仓库:先读 AGENTS.md;已知 Issue、Journey、Skill、selector 或 changed files 时,先运行
python scripts/task_context.py --help,只按生成的读取顺序展开当前上下文。
产品入口
gravity insight:受合同治理的 Insight 查询与导出,日常分析首选。gravity sql:仅执行 workspace 已登记的 SQL 产品,不接受任意 SQL。gravity census:盘点前端路由、发现候选合同并检查上游漂移。gravity agent-catalog/gravity agent/gravity plan:供 Agent 渐进发现、补参和显式执行。
自然语言不会自动执行写入。所有 mutation 先预览,再由调用方用同一输入显式确认执行。
Agent Runtime 演进计划
Gravity Agent Runtime 计划已整体发布到 main;当前可执行能力仍以上述 CLI、SDK、Plan、运行时 catalog 和机器合同为准。版本化需求索引保存交付状态,目标架构不自动扩大当前公共接口;试点能力仍服从各自的毕业条件。
安装
公开支持 Python 3.11 和 3.12。CI 运行 Windows 3.11 完整门禁、Linux 3.11 / 3.12 核心门禁,并在 Linux 3.12 上构建 wheel、以非 editable 方式隔离安装后验证公共 surface。
python -m pip install gravity-insight
gravity --help
gravity agent-catalog categories
Python 最小入口:
from gravity_insight import connect
gravity = connect()
result = gravity.read("app.list", {"page": 1, "page_size": 20})
文档
文档导航按任务给出最短阅读路径。调用方式见 CLI、SDK 和 Plan;精确字段、错误和 fail-closed 行为从机器契约索引进入当前 catalog 与合同。完整目标以 Canonical Architecture 为准。
Metadata
Release files for gravity-insight 0.3.17
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 | |
|---|---|---|---|---|
| gravity_insight-0.3.17.tar.gz | 4.8 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gravity_insight-0.3.17-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.7 MB
Release files / gravity_insight-0.3.17.tar.gz
| Download URL | gravity_insight-0.3.17.tar.gz |
|---|---|
| Size | 4.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60dba9e0f6fc23fa3ee56b7e8ed2c0204a7bbf1ad82d2ddf6a738b907af5b84a
|
|
BLAKE2b-256 checksum How to use checksums |
6e20adaf41977553d7d611a537206dd182f49cc12a7b44d031bcb7d828d6ecf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 10, 2026.
Transparency logRelease files / gravity_insight-0.3.17-py3-none-any.whl
| Download URL | gravity_insight-0.3.17-py3-none-any.whl |
|---|---|
| Size | 5.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a80c3d37cab614bde4ea00f9a22b6b4f17621753b70541f77d37ccc435048177
|
|
BLAKE2b-256 checksum How to use checksums |
ae5abd54963c817ce670cd68cf7946a3f17b571dc36fad0cb50b2a139861378b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 10, 2026.
Transparency logSecurity for gravity-insight 0.3.17
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 gravity_insight-0.3.17.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 Sep 10, 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.