Format: the app-anything manifest
Normative. The manifest is versioned by format; the current version is in
spec/constants.py and rendered as generated/capabilities.md.
The machine-readable schema is generated/manifest.schema.json,
generated from the same dataclasses this prose describes — when they
disagree, the schema and the code are right and this page has rotted.
Identity
- The manifest MUST declare
id,name,versionandfrontend. idMUST be reverse-DNS (acme.notes,com.example.firstport) and MUST NOT contain placeholder segments (example,changeme,yourname). RuleAA010warns on placeholders; operating systems reject them at registration time.versionMUST bemajor.minor.patch; hosts and creators compare it numerically, never lexically.
Where the manifest lives
- Projects MUST keep it at
app-anything/manifest.json. initMUST refuse to overwrite an existing manifest.- Other files (
package.json,pyproject.toml, web manifests) MAY contribute identity fields; theapp-anythingmanifest wins every conflict, and every merged value carries provenance (describe --section schemashows the merged document).
The backend block
{
"backend": {
"runtime": "python>=3.11",
"entry": "python server.py",
"sources": ["server.py", "src/**"],
"lock": "requirements.txt",
"health": "/healthz"
}
}
runtimeMUST name a runtime requirement a provider accepts; the builtin providers coverpython,nodeandbinary.entryMUST be a shell string or an argv array; it runs with the project root as the working directory.sourcesMUST list every path the package must carry (globs allowed).lockMUST point at a lock file for source-form backends; the package is reproducible from it.healthMUST be a path that returns 2xx when the backend is ready to serve.
Capabilities
requiresMUST contain only ids from the capability set or vendor ids (x-…).- Declared capabilities MUST match what the manifest blocks declare —
a backend requires
backend.process, config withaccess: "read-write"requiresfs.app-data. RuleAA004enforces the correspondence.
Versions and upgrades
formatMUST be present since 0.1 and states the manifest's version.- Tools MUST migrate manifests forward (
upgrade) and never re-detect. - A tool reading a
formatit does not know MUST fail, not guess.
Rendered from spec/format.md on main.