Skip to content

xratufile

The xratufile is bake's build record. Bake writes it into the block folder, and it holds everything xratu publish needs about the package: which archive was built, what it contains, how it was built, and the complete documents of every capsule. Publish reads the xratufile rather than any other bake output, so a release depends on one recorded document.

xratu publish .

finds the xratufile in the block folder, or takes its path directly.

What it records

Section Records
project The package name and version given to bake
manifest The block manifest bake read: id, version, file, SHA-256 and document
artifact The package archive: name, SHA-256, size, bundle digest, file count, and the hash of every file
build When and where bake ran, the review checklist, and the digests of the execution plan and environment intent
execution_plan Each block with its interface, dependency intent and exports, with the plan's digest
env_intent The dependency and environment declarations of every block, with their digest
xratufile_lock The build lock: the package's file tree and blocks, fixed for this build
capsules Every capsule's build input, manifest and executable surface index

The archive it describes

The artifact section is what publish checks the archive against:

"artifact": {
  "archive_name": "acme.billing-manifest-1.2.0-1de656841841.xratu.tgz",
  "archive_sha256": "1de65684184144e27daf1a61d746321a15d2037ccd384fb346090fd950de754c",
  "archive_size_bytes": 4645,
  "bundle_digest": "9c8dc1d987eca10970c86629ca215315885382ed61e52576385caaff63a20cda",
  "file_count": 10,
  "file_hashes": {"billing.py": "ec2504a0…", "billing.xci.json": "ab5db03a…"}
}

Publish refuses an archive whose SHA-256 differs from this record:

artifact archive sha256 mismatch with xratufile (expected=… actual=…)

The capsules it carries

The capsule documents travel inside the xratufile, exactly as bake wrote them, so publish reads them from the record instead of from a folder that could have changed. A xratufile with no capsules refuses the publish:

xratufile carries no capsules; re-bake this project before publishing

See Bake pipeline and Publishing a release.