Installed Runtime Payload Guide
Canonical documentation rendered from the repository docs/ folder.
Installed Runtime Payload Guide
Purpose
This guide defines the boundary between a working-project installation and the Mission Directives source repository. config/runtime_payload.json is the machine-readable source of truth.
Runtime profile
The runtime profile contains everything required to:
- route natural-language intent and exact IDs;
- inspect prompts, scenarios, packs, schemas, policies, and identity maps;
- compile plans and execution graphs;
- resolve templates and registered skills;
- synchronize root agent guidance;
- write local telemetry and receipts;
- run the managed cleanup workflow.
The profile includes canonical catalogs, prompt bodies, runtime configuration, compatibility data, policies, schemas, templates, examples, integrations, selected Python tools, and requirements-runtime.txt.
Repository-only profile
The source repository retains assets needed to author, evaluate, test, validate, package, and publish the suite:
.github/;tests/;evaluations/;site/;- prompt import and addition tools;
- audit, test, validation, and manifest builders;
requirements-dev.txt.
These assets certify or develop the product. They are not dependencies of normal prompt execution in a target project.
Installation transaction
mission-directives init:
- validates the target and rejects overlap with the suite source;
- loads and validates the runtime payload contract;
- rejects duplicate, escaped, missing, linked, or special-file payload entries;
- stages only declared files and directories;
- verifies the staged tree;
- atomically promotes the staged runtime to
.mission-directives/runtime; - creates Project Config, the independent local site, output categories, and state;
- updates managed
.gitignoreand agent-guidance blocks; - creates runtime directories and ownership markers;
- writes schema-valid installation and guidance receipts under
.mission-directives/state; - restores the previous state if a post-promotion step fails.
Audit fields
A successful installation receipt records:
payload_profile: runtime;installed_file_count;- suite version and destination;
- backup location when applicable;
- created runtime directories;
- preexisting project files;
- guidance synchronization result;
- UTC installation time.
A dry run reports the repository-only exclusions so operators can review the boundary before mutation.
Verification
mission-directives init /path/to/project --dry-run
mission-directives init /path/to/project
cd /path/to/project
mission-directives route "MD cleanup dead code safely"Confirm that .mission-directives/runtime does not contain tests, evaluations, prompt imports, CI workflows, the repository Astro site, repository validators, or development requirements. .mission-directives/site must contain only the independent local viewer assets.
Changing the payload
Treat a payload change as a runtime compatibility change:
- prove the file is required by a runtime code path;
- add or remove it in
config/runtime_payload.json; - update installer regressions;
- perform a real temporary install;
- smoke-test pinned routing and the local viewer from the project;
- validate receipts and rollback;
- update this guide and the manifest.
Do not copy the repository and rely on ignore filters. An allowlisted payload is reviewable, fails closed, and does not silently grow when a new source-only directory appears.