Skip to main content

conformance_workloads

The workloads that prove a Profiled Normative Platform conforms.

A platform is not a repository — it is a composition. A Profiled Normative Platform (PNP) is what you get when a selected governance surface (software_governance), a selected set of workloads (this repo), and optionally a business domain (business_domains) are compiled and assembled together. There are as many PNPs as there are conformance profiles.

This repo holds the workloads side of that composition: independently-authored domains that exercise the governed execution path end to end and make conformance claims observable.

Install

pip install pgc-workloads

This package carries declarations and the implementation modules a sealed snapshot binds at execution. It provides no command of its own — the toolchain packages read it.

Layout

conformance_workloads/
  workloads/
    __init__.py          import root — `workloads.<name>.implementation.*`
    collatz/
      registry/          the workload's own governance artifacts (WF/IN/CC/CT/EV/AC/RB/…)
      transport/         TI/TE governed boundary contracts
      implementation/    CT atom implementations (pure functions)
      client/            web client + HTTP binding + composition launcher
      test_payloads/     canonical request payloads
      snapshot/          compiled output (generated)

Self-describing domains

A workload is compiled against an already-compiled governance surface; the governance surface is never edited to admit a workload. Each workload carries its own build manifest (registry/structures/STRUCTURE_BUILD_*_CONFIG_V*.md) declaring its layers via domain_subpath — resolved under this repo, not under the governance repo.

Build

cd ../protocol_compiler
./compile.sh STRUCTURE_BUILD_PLATFORM_CONFIG_V1           # governance surface first
./compile_domain.sh ../conformance_workloads/workloads/collatz
cd ../snapshot_assembler && PGC_SNAPSHOT_PROFILE=REFERENCE_PLATFORM_PROFILE_V1 ./assemble.sh   # compose the PNP
cd ../protocol_runtime && ./run.sh

Environment provisioning

This repo is deliberately not installed into the workspace venv. Its import root is env-provisioned from the repo root — protocol_runtime/run.sh puts it on PYTHONPATH by default, so CT handler refs resolve as workloads.collatz.implementation.…. Override with PGC_IMPL_ROOTS.

Serve the client

./workloads/collatz/client/serve.sh        # http://127.0.0.1:8000

The package family

Package Repository Role
pgc-compiler protocol_compiler declarations → compiled projections
pgc-assembler snapshot_assembler projections → sealed snapshot
pgc-runtime protocol_runtime snapshot → governed execution
pgc-inspector snapshot_inspector snapshot → read-only inspection
pgc-transformation transformation change request → protocol artifacts
pgc-governance software_governance the governance surface and its capability implementations
pgc-workloads conformance_workloads the workloads that make conformance observable
pgc-domains business_domains the business domain implementations the composed snapshot binds

pip install pgc brings in the whole family.

Installing the toolchain is one of two steps. The compiler resolves the governance surface from PGC_PLATFORM_ROOT — fail-hard, cwd-independent, zero inference — so the declarations come from a repository you point at, never from a wheel. A registry inside a package would be a second governance surface competing with the repository's, and a build could then be governed by a stale copy.

git clone https://github.com/protocol-governed-computing/software_governance
export PGC_PLATFORM_ROOT=$PWD/software_governance
pgc            # reports what is installed and whether the anchor resolves

PGC_BUILD_ROOT (compiled output, keeping the governance repo read-only) and PGC_DOMAIN_ROOTS (additional domains contributing their own registry/structures) are optional.

Versioning. Two schemes, and the published version follows the second.

  • Internal — each repository's VERSION file, a monotonic composition ordinal. PGC versions the composition rather than each repo: they release together and the governance closure forces lockstep, so the ordinal names which composition a repo belongs to. Development happens on dev/<N> and each cycle is tagged release-<N>. This is not published.
  • PublicPUBLIC_VERSION, tagged on every component repository. The platform is at v2.

The published version is the public one: v2 is 2.0.0. The standard the packages implement is a separate artifact on its own track and is not this number.

The standard these packages implement is published separately: https://doi.org/10.5281/zenodo.22150616

Download files

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

Source Distribution

pgc_workloads-2.0.0.tar.gz (32.7 kB view details)

Uploaded Source

Built Distribution

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

pgc_workloads-2.0.0-py3-none-any.whl (50.0 kB view details)

Uploaded Python 3

File details

Details for the file pgc_workloads-2.0.0.tar.gz.

File metadata

  • Download URL: pgc_workloads-2.0.0.tar.gz
  • Upload date:
  • Size: 32.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for pgc_workloads-2.0.0.tar.gz
Algorithm Hash digest
SHA256 5dc04ceb5fe4132d5eb411d4ba8019c8899b7ebb738a1407feb76878476a0aa3
MD5 13de211cf7bcf390c19433f11d34b0b1
BLAKE2b-256 2827cde67592dbd4e5da55cc2ed4fedac638d7fc91188d2bc426c6033f3a4c79

See more details on using hashes here.

File details

Details for the file pgc_workloads-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: pgc_workloads-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 50.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for pgc_workloads-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a097c654fa575b9e239b1059ebe6f6e4f48e24924fb7c918f5f52cf15de9162d
MD5 513f021df5ef2d1ac1b30c277bb4e0d4
BLAKE2b-256 d19913349c8a399a96acd8844f3d8ada2a386626a0395e6b70c8baaaf3956227

See more details on using hashes here.

Release history Release notifications | RSS feed

3.0.0

2 files

This release

2.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page