bauzertifikate.de

Dokumentation / BZF

Änderungen

Was sich in jeder Ausgabe der Spezifikation geändert hat, mit Hinweisen zur Umstellung.

BZF 0.3.0Stand: .md

Jede Ausgabe der Spezifikation nennt hier, was sich geändert hat, und wie Dokumente und Programme umgestellt werden. Der Text ist das Änderungsprotokoll der Veröffentlichung v0.3.0, unverändert und im Original englisch.

#0.3.0 — 2026-11-12

The first edition with a program to use it by: bzf checks a project, packs and unpacks the .bzf file, names a document by its hash and signs a result. Documents that were valid under 0.2.0 stay valid; "Migration" below has the two things a writer does differently.

#Results beside the model (draft)

  • New schema result.json for a result record, Ergebnisse/<app>/<title>/ergebnis.json: the figures a method worked out per state, the documents they were made from by the hash of their canonical JSON, the method, the program and kernel version, the program's settings (choices) and what the method assumed (assumptions). Class building. README, "Results beside the model", has the rules: who writes it, when it is stale, what it shows.
  • A result is current, stale, or not to be told: where a document it names is not in the project (a share leaves a program's settings behind), a reader says that it cannot tell, and does not call the result stale.
  • versand.json: an issue can name the result it issued (result, a hash). The figures' definition moved unchanged to common.json $defs/figures, which result.json shares.
  • revision.json: a head's result entry can name the documents the file was made from (inputs), so a result is stale only when one of them changed, and not with every later revision.

#How a document is named by its hash

  • New text HASHES.md: the two hashes (a file's octets, a document's canonical JSON), canonical JSON as RFC 8785 has it, what a document must be for readers to agree on its hash, and when a result is stale.
  • New: no name twice in one object, in any document. JSON allows it and parsers disagree on it, so such a document has no hash readers agree on. bzf check reports it as an error.
  • New test vectors vectors/canonical.json: the number samples of RFC 8785, Appendix B, and documents with their canonical form and hash, for an implementation in any language.

#Signatures over a result (draft)

  • New text SIGNATURES.md. 0.2.0's draft only reserved the file name. A signature is a file ergebnis.<name>.jws beside the record: a JSON Web Signature in the compact serialization with the payload detached, over the record's canonical JSON, by ES256, with the signer's certificate in the header (x5c) and the claimed time (iat). The header follows the requirements of a JAdES baseline signature (ETSI TS 119 182-1); the signatures were not run through a JAdES conformance checker.
  • A signature states who signed and that the record is unchanged. It states nothing about entitlement, and trust in the certificate is the reader's decision: no chain is built and no revocation asked for.

#A project in one file

  • The .bzf file is no longer "a draft until an implementation writes and reads it": bzf pack and bzf unpack do, and examples/Haus am Hang.bzf is the example project as a share.
  • The rules for reading say in full what a reader refuses: a name that leaves the folder (absolute, a drive letter, a backslash, a control character, a .., . or empty part), an encrypted entry, a link, a compression other than stored or deflated, a name twice without regard to case. 0.2.0 named only absolute names and ...
  • The rules for passing on say what a share holds: the project file, the documents of the class building, the received files that received.json names, the result records with their signatures; nothing from Versendet/ and no store.

#The bzf program

  • New tools/bzf, a program and a Rust library: bzf check, pack, unpack, hash, sign, verify, version. README, "Checking". It checks a folder or a .bzf file against the schemas and the rules between documents: references, a result's inputs, an issue's result and figures, signatures. It does not check the store yet.
  • ./check.sh runs the program's tests with the conformance tests, which now use the library's rules instead of a copy of them.

#The example

  • Haus am Hang: two result records, one behind the certificate and one behind the roadmap; a settings document of the program that the certificate's result names among its inputs; a signature by a made-up Energieberater, whose key is in no repository. The three issues name their inputs by the documents' real hashes; in 0.2.0 these were made-up values.

#Migration

  • A writer that keeps a result writes it as a result record and names its inputs. A head's result entry without inputs stays valid and is current only at its revision, as before.
  • A writer that replaces a result record removes the ergebnis.*.jws files beside it.
  • A document with a name twice in one object was never one that two readers read alike; a writer that produced one writes it again with each name once.

#0.2.0 — 2026-11-12

#A project in one file

  • A project can be passed on as one file, <Name>.bzf: a ZIP archive of the project folder, with or without its store. README, "A document, a file, a folder", has the rules. This form is a draft until an implementation writes and reads it.
  • The project file that marks a project folder is now <Name>.bzfproj. It was <Name>.bzf. Its content, its schema (bzf.json, under the same $id) and the store format bzf/1 are unchanged.

The second point changes the folder layout that 0.1.0 described. Migration:

  • A reader accepts both names for the project file. It tells an older project file from a .bzf archive by the first bytes: the project file is JSON and starts with {, an archive starts with PK.
  • A writer names a new project's file <Name>.bzfproj. It renames an older <Name>.bzf with the next revision it writes, never on opening.

#The store's directory

  • The store's directory keeps its name, .bauzertifikate/. 0.1.0 announced a rename to .bzf/ before spec 1.0; that rename is dropped, so no reader has to look for two names.

#The building as it stands

  • A building document describes the building as it stands, in every revision, and holds no later state (building.json; README, "One state"). An item's phase covers work under way. What is planned for later lies in a roadmap.
  • roadmap.json now says what a step's status means for its changes. A planned step's changes are still to be made, and a reader applies them to show the building after it. A done step's changes are in the building document and are not applied again. A declined step's changes are never applied.
  • A writer that marks a step done applies its changes to the building document in the same revision, corrected to what was built. The revision names the step in the new optional field appliedSteps (revision.json, draft until spec 1.0), so the building before the step is the one in the revision's parent.

Documents that were valid under 0.1.0 stay valid. Migration: 0.1.0 left open whether a done step's changes were already in the building document. If a roadmap has a done step whose changes the building document does not show, its writer applies them in a revision that names the step in appliedSteps. A renovation from before the building was recorded stays a done step without changes.

#Facts, not results

  • README, "Facts, not results", states the rule the schemas already followed: the model stores facts as entered or received, and nothing a method works out from them. What was issued is kept as issued in Versendet/. No schema changed for this.

#Contributing without reading

  • README, conformance: a writer need not read every document. It can add its own documents and received files to a project and carries the documents it does not read into its revision unchanged. No schema changed for this.

#Conformance tests

  • The tests accept a project file under both names, cover appliedSteps, and check in the examples that no planned step adds an item the building document already holds.

#The solids of a building

  • SOLIDS.md, a draft: the rules that turn a building document's walls, slabs, roof plates and openings into solids. Wall faces from the placement, mitred and square ends, ends cut back at a wall running past, bottom and top, the roof's cut, openings, layers, slabs, roof plates, items made of elements, and the items that have no solid. Its limits are stated: straight walls, planar roof plates, rectangular openings.
  • examples/solids/: the expected solids of the example buildings, one file per building, with the items that have no solid and the rule that leaves each without. Tolerance: corners within 1 mm, volumes within 0.1 %.
  • examples/werkstatt-am-bach/: a second fictional example, a workshop of 1995, for the rules the house does not exercise.
  • ./check.sh checks the expected solids without the program that made them (tools/check/tests/solids.rs): closed, looking outwards, where the document puts the item, every item covered or explained, volumes against figures worked out by hand.

#Editorial

  • The description of bzf-epbd/0.1 no longer names the paths of one implementation; it points to MAPPINGS.md.

#0.1.0 — 2026-11-10

Initial standalone public edition of BZF (Bauzertifikate Format).

  • Thirteen BZF JSON Schemas covering projects, buildings, revisions, imports, renovation roadmaps, consumption, costs, parties, received files and issued-document records.
  • A standalone draft EPBD dataset schema and an informative EPBD/iSFP mapping.
  • Fictional example projects, an IFC import IDS definition and independent conformance tests.
  • Explicit compatibility, versioning and contribution policies.

The schema and example data are unchanged from the initial internal specification. The private schema generator and application build dependencies are not part of this repository. Some document schemas remain drafts; see README.

Grundlage: BZF 0.3.0 von Bauzertifikate contributors. Spezifikation und Dokumentation: CC BY 4.0, Schemas und Beispiele: CC0 1.0. Maßgeblich ist der englische Text der Spezifikation.