Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

gravity-schema

Latest version: v0.13.21

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: gravity1234
44 Versions
4.8K Downloads

Scan summary

gravity-schema was last scanned on 28 Nov 2026 at version 0.13.21. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 44 versions; the latest 2 were published within 3 days (26–28 Nov 2026).
  • Findings: No rules fired in version 0.13.21.
  • Downloads: 4,818 downloads.

Versions

44 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.13.21 LATEST 28 Nov 2026 No rules fired
0.13.20 26 Nov 2026 No rules fired
0.13.19 16 Nov 2026 No rules fired
0.13.18 16 Nov 2026 Not shown
0.13.17 14 Nov 2026 Not shown

No rules fired in 0.13.21

Findings

Findings for v0.13.21. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.13.21; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

gravity-schema

The Gravity agent manifest contract: its models, validation, the capability vocabulary and JSON Schema export. It is the one definition the gravity CLI, the agent runner and Gravity's platform share, so a manifest that passes here passes everywhere. If you build agents, use gravity-cli: it depends on this package, in the same version.

pip install gravity-schema

Two contracts

The manifest's contract picks one, and Gravity runs both side by side.

  • v1 (Manifest): the agent names the tools it calls, such as gmail.send. A manifest without contract is v1.
  • v2 (ManifestV2): the agent names capabilities, such as message.list or issue.create. What it reads goes under sources and what it changes under writes, and the person picks the app (Gmail or Outlook, Linear or Jira) when they set it up. That setup is an Instance.

Load and validate a manifest

from gravity_schema import load_manifest_text

manifest = load_manifest_text("""
contract: v2
name: inbox-digest
version: 1.0.0
description: "A morning digest of my inbox"
runtime: {framework: langgraph, python: "3.12", entrypoint: src/agent.py:graph}
dependencies: {lockfile: requirements.lock}
sources:
  inbox: {capability: message.list, label: "Which inbox?", window: 1d}
writes:
  digest: {capability: message.send, label: "Where should the digest go?"}
approvals: {required_for: [message.send]}
""")
manifest.contract               # 'v2'
manifest.capabilities           # frozenset({'message.list', 'message.send'})

load_manifest_file(path) reads a file instead. Both return whichever contract the manifest declares, and raise ManifestValidationError with its ManifestIssues (each a code, location, message and remediation) when it doesn't fit. Unknown fields are rejected, so a typo is reported rather than ignored.

The capability vocabulary (v2)

VOCABULARY holds every capability and which apps serve it.

from gravity_schema import VOCABULARY

VOCABULARY.apps_for("message.list")     # ('gmail', 'instagram', 'microsoft_teams', 'outlook', ...)

A consumer's setup and a run's grant (v2)

from datetime import UTC, datetime
from gravity_schema import Instance, check_instance, grant, run_token_body

setup = Instance.model_validate({
    "agent": "inbox-digest", "version": "1.0.0",
    "sources": {"inbox": {"app": "gmail"}},
    "writes": {"digest": {"app": "gmail"}},
})
check_instance(manifest, setup)          # []: the setup fits (otherwise, what doesn't)
grant(manifest, setup).as_dict()         # exactly what one run may call, and what waits for approval
run_token_body(manifest, setup, now=datetime.now(UTC))   # {'bindings', 'grant', 'approvals'} for a run token

Explain an agent to its users (v2)

These write plain text from the manifest and the setup, with no model involved.

from gravity_schema import capabilities_summary, permissions

capabilities_summary(manifest)
# {'can': ['Read your messages', 'Send a message'], 'cant': [...], 'also': [...]}
permissions(manifest, setup)
# per app: what it reads, what it changes, what asks first, and what it never does

live describes a running setup.

Draw a setup screen (v2)

setup_plan is the screen a consumer sets an agent up on, shortest first: the agent's parts grouped by the app they use, with the apps each group could switch to, then only the places that must be picked. The rest (time ranges, filters, optional parts, more outputs) is under advanced. Pass connections (app → connected) to mark each group.

from gravity_schema import Instance, VOCABULARY, apply_group_change, setup_plan

setup = Instance.model_validate({"agent": "inbox-digest", "version": "1.0.0",
                                 "sources": {"inbox": {"app": "gmail"}}, "writes": {"digest": {"app": "slack"}}})
plan = setup_plan(manifest, setup, connections={"gmail": True})
plan["groups"]    # [{app: 'gmail', connected: True, parts: [sources.inbox], ...}, {app: 'slack', connected: False, ...}]
plan["places"]    # [{app: 'slack', resource: 'channel', says: 'Choose the channel in Slack', ...}]
plan["advanced"]  # {places, windows, filters, inputs, optional, outputs}

# "Switch Slack to Teams": every part of the group moves; the Slack channel means nothing in Teams, so it is cleared
moved, issues = apply_group_change(manifest, setup, "slack", "microsoft_teams")   # issues: a Teams chat to pick

VOCABULARY.place_maker("googlesheets", "spreadsheet")   # "Create a new ...": {within, within_required, columns}
VOCABULARY.place_maker("slack", "channel")              # None: not made from a name
VOCABULARY.mapped_apps_for("message.send")              # ('gmail', 'instagram', 'microsoft_teams', 'outlook', 'slack')

JSON Schema

from gravity_schema import manifest_json_schema

schema = manifest_json_schema()          # one schema covering v1 and v2

Or from the command line, python -m gravity_schema --out manifest.schema.json. Add --check to exit 1 when that file is out of date.

Versions

gravity-schema and gravity-cli are released together, always in the same version. The changes are in the CLI's changelog (gravity changelog).

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases gravity-schema

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229