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.2.tar.gz (37.3 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.2-py3-none-any.whl (52.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: consiliency_contract-0.2.2.tar.gz
  • Upload date:
  • Size: 37.3 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.2.tar.gz
Algorithm Hash digest
SHA256 81a7c7eca5139e413eb6dd27c9d56374b343b5c5d674731e15ccb14a7fcc14c3
MD5 fee79ce4718d099fccb13a15abc4967b
BLAKE2b-256 9a0d04956ca06121b132a4a1b45fa4ec8a877e292332ad75ae732413b36d715b

See more details on using hashes here.

Provenance

The following attestation bundles were made for consiliency_contract-0.2.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for consiliency_contract-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c071e51311b419bb78e57a2a3df19f6327c5a91bbd68c7ede49ed7d17b6f43a
MD5 a3403877ea6ae11a67e23fc36bca9baf
BLAKE2b-256 2cae18189e084c8b0a11b908e9be379ddbb7a9c3bf73c6699c1253858ebf2ea9

See more details on using hashes here.

Provenance

The following attestation bundles were made for consiliency_contract-0.2.2-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