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.1.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.1-py3-none-any.whl (52.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: consiliency_contract-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5913ae3ce517dec049ec606fd8d436594edb7996b8da6819257865de0b5eff82
MD5 8895a1bb5b4dcfe8dc49af22d88192e3
BLAKE2b-256 8406a0b80937e165478a02fea77037d3368d75f45459e1bf8eefeeb98b769f37

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for consiliency_contract-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e3d74c83fa7d90ee26a5bfa9f00ee61a3a68b1dd47e407431a3dcf1ba37de16
MD5 46af390c7c613e31ac46aef4e35440f8
BLAKE2b-256 d158d9374421abacde4c91e7c1f428de89f744ca49e8bf7e3baa146e9326dddd

See more details on using hashes here.

Provenance

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