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.3.0.tar.gz (37.4 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.3.0-py3-none-any.whl (53.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: consiliency_contract-0.3.0.tar.gz
  • Upload date:
  • Size: 37.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 03de3b815d9a1e453382c6d5ce166a3bf110e69fb7b75c51a726fab9bf66f985
MD5 f2b5b036d5b39b6d94ec699330313650
BLAKE2b-256 21235c2a40ecfc80fc9ff06ce6caed1001a2381c26500e4be918773abda5277d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for consiliency_contract-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1bd315e6eaac7421147d7fb7aa8a672dc71228a8b270741cda33b016860ad65
MD5 2c13d257e634db85de63af92223e6600
BLAKE2b-256 7acc5bfd9307eaaf86d5c6763f28db12daf360dd9d6086bd7915ced47df1e2c6

See more details on using hashes here.

Provenance

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