Mainframe bundle

What it is

The bundle is the platform's declarative artefact set in one versioned archive. It exists to satisfy the position brief's definition of done: a second person stands up a Mainframe from the artefacts alone, without asking the original operator a single question.

The archive carries a MANIFEST.txt with a sha256 digest for every file and the headline counts, so it is reproducible rather than merely packaged.

Download

Contents

pathholdswhy
registry/loadouts, primitives, playbooks, interfacesthe sources of truth the graph is derived from
graph/schema, collector, conformance checks, generated seedeverything needed to build and test the registry graph
tools/pack builder, link checkerthe build tooling, in bun, runnable in a pinned container
docs/roadmap documents, pack sources, researchthe reasoning, so the bundle is not just the what

Counts at assembly

itemcount
loadouts8
primitives35
playbooks9
playbook steps91
registries18
graph entries emitted84 in the collector pass

Secrets

No secret is included. The bundler refuses to stage any file whose name matches .env, .key, .pem, unseal, token, secret or password, and it fails loudly rather than skipping quietly. The exclusion is re-verified by listing the finished archive, not by trusting the filter.

Reproducing the build

  1. Bring up the graph: docker compose up -d in neo4j/, then apply schema.cypher and the generated registries.cypher with cypher-shell.
  2. Regenerate the graph artefacts: bash graph/collect-registries.sh.
  3. Run the conformance checks: cypher-shell -f graph/doctor-registries.cypher. Every query must return zero rows.
  4. Rebuild the pack and the docs: docker run --rm -v /opt/prodg:/opt/prodg -w /opt/prodg/markdoc oven/bun:1-alpine bun tools/build-pack.ts.
  5. Verify the published tree: docker run --rm -v /opt/prodg:/opt/prodg -w /opt/prodg/markdoc oven/bun:1-alpine bun tools/check-links.ts.

Bun runs in a pinned container because host tool installation is forbidden. No step requires Python, and none requires npm.

How the bundle is produced

tools/make-bundle.sh stages the declared sources, regenerates the graph artefacts so the archive carries current output rather than stale files, writes the manifest, and archives. It is idempotent: re-running replaces the archive for the same date.