Binary InferenceIn development · no public release yet

Package format (.bap)

How an app is planned to be packaged, listed and verified.

Container

A package is one file named Application.bap. It uses a standard, constrained ZIP container, so ordinary tools can look inside. Only regular files are allowed, compressed or stored, with no encryption, no links or special files and no packages inside packages.

Draft layout
Application.bap
  bap.json                 the manifest (required)
  payload/                 every file the app needs
    bin/hello
    share/icon.png
  signatures/
    publisher.json         the publisher's signature
    binary.json            Binary's approval signature

The manifest is the authority

bap.json lists every payload file with its path, size, SHA-256 digest and mode. Anything in the archive that the manifest does not list is rejected, and file permissions set in the archive are ignored. See the manifest reference.

Path rules

  • Relative, normalised paths only; no absolute paths, .., backslashes or control characters
  • No symbolic or hard links, device files or archive links
  • File modes are only 0644 (data) or 0755 (programs)
  • Packages are treated as hostile input and checked before anything is extracted or run

Signatures

Two signatures are planned. The publisher signature proves who built the app; the Binary approval says the exact release is allowed in the Store. Both are checked, and keys carried inside a package are never trusted: a trusted registry binds each key to its publisher and app namespace. First-party Binary apps follow the same rules.

What the package does not decide

Price, ownership and review state come from the Store's own services, never from the package, so a package cannot grant itself a free purchase or a verified badge. The digest and size of the whole package are published separately in Store metadata.

Installing (planned)

  • Verify first; stage in a private location; switch atomically to the new version
  • No pre- or post-install scripts and no changes to the system from package content
  • An update cannot change the publisher, lower the accepted release, or widen permissions without your consent
  • Removing an app revokes its permissions, and you choose whether its data is deleted

Status

Package format status
AreaStatusDetail
Draft format and manifestPrototypePublished here; open for review.
Packager and verifierPlannedNot built.
Installer and sandboxPlannedNot built.
Store signing and publishingPlannedNot built.