Skip to main content

Consiliency cross-repo contract package: shared JSON contract data, conformance vectors, and thin npm/PyPI readers.

Project description

@consiliency/contract

The Consiliency cross-repo contract package — the single, neutral rulebook that agent-harness and governed-pipeline vendor (owned by neither). It defines:

  • the .consiliency/ layout + manifest schema
  • the archetype registryproduct / service / library / infra / tooling-meta / experiment / document, plus modifiers (data-bearing / public / regulated / user-facing), with baseline-only as a legal declaration
  • the required-document sets per archetype (the 7 document classes)
  • the interface-declaration schema (realized + promised cross-repo edges)
  • the loop-gate protocol (presence / freshness / integrity / version-skew)
  • the canonical_html.v1 display schema
  • the version-skew protocol
  • adoption + governance-scoping (CS-0.12) — the adoption profile (a partial-adoption profile, not a boolean; its presence = consent to be governed), the governed-set allowlist-by-declaration, the default ignore-set registry, and the present-nonconforming / foreign / unmanaged governance labels
  • lease + inbox coordination (CS-0.10b) — the lease (TTL + heartbeat + auto-expiry, soft/hard, repo/path-set/symbol scope), the append-only lease_event stream, the lease_store protocol (sole source of truth) and the coordination_channel inbox protocol (never authoritative)

Dual-published: npm @consiliency/contract + PyPI consiliency-contract, from shared JSON data + conformance vectors so the two language readers stay byte-identical.

Status — 0.2.0 adds CS-0.12 adoption/governance-scoping and CS-0.10b lease/inbox coordination on top of the 0.1.0 Phase-0 L0 content. The shared JSON data lives under core/ and conformance/; npm and PyPI readers are intentionally thin loaders over those same bytes.

Reader API

JavaScript:

import {
  CONTRACT,
  CONTRACT_VERSION,
  listVectors,
  loadContract,
  loadRegistry,
  loadSchema,
  loadVector,
} from "@consiliency/contract";

Python:

from consiliency_contract import (
    CONTRACT,
    CONTRACT_VERSION,
    list_vectors,
    load_contract,
    load_registry,
    load_schema,
    load_vector,
)

Verification

npm test
python -m unittest discover -s tests -p 'test_*.py'
python -m build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

consiliency_contract-0.2.0.tar.gz (37.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

consiliency_contract-0.2.0-py3-none-any.whl (52.9 kB view details)

Uploaded Python 3

File details

Details for the file consiliency_contract-0.2.0.tar.gz.

File metadata

  • Download URL: consiliency_contract-0.2.0.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for consiliency_contract-0.2.0.tar.gz
Algorithm Hash digest
SHA256 800256dc333ff3beba118d5eb87ffacf714c3b9d1a305eb381cfe0edb0668f7e
MD5 4dad0ab8fab6b2b694c5c2e4a79868fb
BLAKE2b-256 aa91d3ab9bfb034457737def4a493473c108b8f1c51fd9205c2bf69ec1e4e828

See more details on using hashes here.

Provenance

The following attestation bundles were made for consiliency_contract-0.2.0.tar.gz:

Publisher: publish.yml on Consiliency/consiliency-contract

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file consiliency_contract-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for consiliency_contract-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ccd82f99daac97fad7c4d0f6892235be82cc6854081a087a26338c6ada1b826
MD5 c2fb82dfc532506a6101e3005a1d77d6
BLAKE2b-256 a41f73b1641378c0c127a3a7b006e50ada6ab10abc23ff53d2e152250646a44a

See more details on using hashes here.

Provenance

The following attestation bundles were made for consiliency_contract-0.2.0-py3-none-any.whl:

Publisher: publish.yml on Consiliency/consiliency-contract

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page