A computer should describe itself once, in a shared vocabulary, and installers should read that description instead of probing the machine themselves. The description should never leave the machine unless the person at the keyboard starts an install.
Platonic Protocol is that vocabulary, plus a small local tool that produces it and turns a publisher’s resolution manifest into a reviewable install plan.
The CLI is named platonic.
The resolver never executes an install; it prints a plan you can hand to Install Coordinator or run yourself after you have read it.
Build the CLI, then describe this computer and resolve the example DevCentr manifest:
dub build --config=application ./platonic describe --json ./platonic resolve examples/devcentr.manifest.json
On Windows the binary is platonic.exe in the package directory (or platonic if that directory is on PATH).
platonic describe prints a platform descriptor: operating system, native vs process CPU architecture, libc, the package managers that are actually present (in your preference order), whether a perUser or perMachine install is allowed, and whether the process is in WSL or a container.
platonic resolve reads a resolution manifest (a publisher document that lists every supported way to install a package, each pinned by SHA-256), matches it against the descriptor, and prints an install plan.
The plan names the chosen method, the scope, the verification hash, and a payload shaped for Install Coordinator.
Help lives in help.sdl and is shown by platonic, platonic ?, or platonic --help.
Package-manager order is the owner’s, not the detector’s.
If Flatpak and apt are both present, only you can say that apps should come from Flatpak first.
Pass --config <path> or keep a file at:
-
Windows:
%LOCALAPPDATA%\DevCentr\Platonic\config.json -
Other systems:
$XDG_CONFIG_HOME/platonic/config.json, or~/.config/platonic/config.json
An example is in examples/platonic.config.json:
{
"packageManagers": ["winget", "scoop", "choco"]
}
Managers listed there appear first, in that order, when they are also detected.
Any other detected manager is appended in the built-in fallback order for the OS family (for example, winget, then scoop, then choco on Windows; brew first on macOS; flatpak, then the distro manager, then nix on Linux).
arch.native is the CPU the machine has.
arch.process is the CPU the asking process is running as.
They differ under macOS Rosetta 2 and under Windows WoW64 or Windows on ARM emulation.
platonic resolve uses native by default, which is the right default for a native application.
Pass --prefer-arch process when the artifact has to load into this process (a plugin, an extension, a native module).
A resolution manifest is not used until it can be verified:
-
Every entry must carry a
sha256hex digest. -
The manifest file itself must match a
<manifest>.sha256sidecar or a--pin sha256:<hex>argument. -
The pin hashes LF-normalized file bytes, so a Windows checkout with translated newlines still verifies.
If either check fails, resolution stops.
--allow-unsigned-dev is a local-testing escape hatch; it prints a warning and is not for published plans.
The resolver does not download and does not execute.
The DUB package name is platonic-protocol.
Import platonic to probe, parse, and resolve from your own D program (including Install Coordinator):
dub build --config=library dub test --config=unittest
-
Narrow HTTP negotiation fallback (coarse OS / arch / libc only, and only after a person starts an install)
-
Uses beyond software installation — coding agents, CI runners, plugin loaders, and support diagnostics