Package layout
Normative. A package is a directory suffixed .aapkg; the zip of the same
content is byte-for-byte reproducible (fixed timestamps, sorted entries, no
absolute paths). The machine-readable schema is
generated/package.schema.json.
Layout
<id>-<version>.aapkg/
├─ aapkg.json package manifest: format, digest, backend form
├─ manifest.json the app manifest exactly as checked
├─ reports/check.json the check report that gated the pack
├─ frontend/ built frontend, index.html at its root
├─ backend/ source plus lock, or prebuilt binaries per triple
└─ assets/ icon and declared assets
Package manifest
{
"package_format": 1,
"backend_form": "source",
"digest": "sha256:1e6564610d3d4bbd7e6d41e2f7c9cc43f0e7370e50c2aa9e05b7f0d12a3b4c5d",
"created_with": "0.1",
"checks": {"passed": 25, "failed": 0, "errors": 0}
}
package_formatMUST be present; a tool reading a package with an unknown format MUST fail, not guess.backend_formMUST besource,prebuiltornone.digestMUST cover the package contents; creators SHOULD verify it before building.checksMUST reflect the gate that ran at pack time; the full report ships inreports/check.jsonwithout absolute paths.
Frontend
frontend/index.htmlMUST exist (AA101).- All asset references MUST be relative (
AA110); the package is served from directories, not from domain roots.
Backend
- In
sourceform, the package MUST carry the lock file and everythingsourcesmatched; hosts install from the lock, never ad hoc. - In
prebuiltform, entries are keyed by target triple; a creator asked for a triple the package lacks MUST refuse.
Assets
assets/icon.pngMUST be a square PNG of at least 1024×1024 (AA501) with transparency and content inside the central 80% (AA502).
Rendered from spec/package.md on main.