Skip to main content

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

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

Source distribution (sdist)

Source distribution for gravity-insight 0.3.24
File Size Uploaded Provenance
gravity_insight-0.3.24.tar.gz 4.9 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gravity-insight 0.3.24
File Interpreter ABI Platform
gravity_insight-0.3.24-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 MB

Release files / gravity_insight-0.3.24.tar.gz

Download URL gravity_insight-0.3.24.tar.gz
Size 4.9 MB
Tags Source
SHA-256 checksum
How to use checksums
6138c0cb04b14a7eb62d4cebf402a8c85563a8c20a384e4a131b8d818d128ace
BLAKE2b-256 checksum
How to use checksums
d8d120751a75bb415fc402dfe48fe1a1f82dfe36904612f68e76ff457a52e184
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 Oct 5, 2026.

Transparency log

Release files / gravity_insight-0.3.24-py3-none-any.whl

Download URL gravity_insight-0.3.24-py3-none-any.whl
Size 5.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c4282bdf403e298cff0a1cd6a0460236b59066da24da39d0b7f9146adba4312a
BLAKE2b-256 checksum
How to use checksums
6800f515eb585b5b29695b89b10f383c2117005b274a440c1278ba5cb8d772c4
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 Oct 5, 2026.

Transparency log

Security for gravity-insight 0.3.24

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.

Select from 2 files

Attestation for gravity_insight-0.3.24.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 Oct 5, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

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