Canonical JSON Schemas and scoring values for cq — shared agent knowledge commons
Project description
cq-schema
Canonical JSON Schemas and parsed scoring values for cq.
This package ships:
- The JSON Schema documents that define the cq wire format (knowledge units, scoring, query/propose/confirm/flag/review payloads, health, stats).
- Parsed scoring constants (relevance weights, confidence bounds) drawn from
scoring.values.json.
The package deliberately ships no JSON Schema validator. Consumers that need runtime validation can pass load_schema_bytes(name) (or load_schema(name)) to their preferred library (e.g. jsonschema).
Usage
import json
import jsonschema
from cq_schema import (
CONFIRMATION_BOOST,
DOMAIN_WEIGHT,
INITIAL_CONFIDENCE,
load_schema,
load_schema_bytes,
)
# Parsed constants (immutable; treat as read-only).
print(DOMAIN_WEIGHT, INITIAL_CONFIDENCE, CONFIRMATION_BOOST)
# Raw schema documents.
schema = load_schema("knowledge_unit")
jsonschema.validate(instance=my_unit, schema=schema)
# Or as bytes if your validator prefers.
raw = load_schema_bytes("scoring")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cq_schema-0.0.1.tar.gz.
File metadata
- Download URL: cq_schema-0.0.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0cd7fb930e4e7ab600119578fe3e5eb9870fed08b4c165566e093450963007f
|
|
| MD5 |
60aea3e93ecf27f03aefa1cb7d594bde
|
|
| BLAKE2b-256 |
b7e296487f6b21bcc75e8d4d4d7e4df4db7c7ca84de8d91229c037196392e032
|
Provenance
The following attestation bundles were made for cq_schema-0.0.1.tar.gz:
Publisher:
release-schema.yaml on mozilla-ai/cq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cq_schema-0.0.1.tar.gz -
Subject digest:
d0cd7fb930e4e7ab600119578fe3e5eb9870fed08b4c165566e093450963007f - Sigstore transparency entry: 1393671952
- Sigstore integration time:
-
Permalink:
mozilla-ai/cq@6d139f7eced75bae0da98043606085530232000f -
Branch / Tag:
refs/tags/schema/v0.0.1 - Owner: https://github.com/mozilla-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-schema.yaml@6d139f7eced75bae0da98043606085530232000f -
Trigger Event:
release
-
Statement type:
File details
Details for the file cq_schema-0.0.1-py3-none-any.whl.
File metadata
- Download URL: cq_schema-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48a32d7fc7e46a3739e94c64942831edd08d7e71e2f2ff693846b0fa444eedde
|
|
| MD5 |
f5c514325723b4a20c32f1ffc4585842
|
|
| BLAKE2b-256 |
9ebcdaa0544d8d4b45705e2aaf5096c52f6ff18150626af371ad48b9489cf04f
|
Provenance
The following attestation bundles were made for cq_schema-0.0.1-py3-none-any.whl:
Publisher:
release-schema.yaml on mozilla-ai/cq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cq_schema-0.0.1-py3-none-any.whl -
Subject digest:
48a32d7fc7e46a3739e94c64942831edd08d7e71e2f2ff693846b0fa444eedde - Sigstore transparency entry: 1393672047
- Sigstore integration time:
-
Permalink:
mozilla-ai/cq@6d139f7eced75bae0da98043606085530232000f -
Branch / Tag:
refs/tags/schema/v0.0.1 - Owner: https://github.com/mozilla-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-schema.yaml@6d139f7eced75bae0da98043606085530232000f -
Trigger Event:
release
-
Statement type: