MD-OS

Publishing

This repository is meant to be publishable as MD-OS (Artificial Prefrontal Cortex) v5.0, a Markdown-native Operating Filesystem release.

Before publishing, make sure the public reader can understand what the system is, how to run it, and what data is safe to expose.

Public positioning

Describe the project as:

The stable release surface should be English. Non-English material may exist as raw user-provided evidence, role intake, or local import material, but promoted release documentation, KB entries, schemas, package metadata, launcher-visible bootstrap text, and generated release summaries should be English.

Avoid describing it as:

Pre-publish checklist

Check for:

The current demo data should be generic.

The publishable legal and governance surface must include:

LICENSE
AUTHORS.md
CITATION.cff
CONTRIBUTING.md
DeveloperCertificateOfOrigin.txt
GOVERNANCE.md
TRADEMARKS.md
docs/LICENSING.md
md-os/kb/OPEN_SOURCE_GOVERNANCE_MODEL.md

The official repository target is https://github.com/ciaoidea/MD-OS. Do not report a remote release as aligned until the exact verified source state is committed and read back from that repository.

Rebuild before publishing

Run:

npm run verify
npm run replay

Or the direct commands:

node md-os/os/initialize_ops_memory.js
node md-os/os/compile_programs.js
node md-os/os/build_project_state.js demo_general_system
node md-os/os/build_project_state.js demo_document_approval_flow
node md-os/os/build_global_agenda.js
node md-os/os/archive_runtime_state.js
node md-os/os/build_workspace_inventory.js
node md-os/os/build_markdown_graph.js
node md-os/os/build_runtime_lifecycle_index.js
node md-os/os/build_global_index.js
node md-os/os/build_system_hygiene_status.js
node md-os/os/build_health_dashboard.js

Regenerate the definitive paper whenever architecture, positioning, Codex runtime framing, MCP connector framing, role onboarding, AGI-like claim language, or production limits change:

(cd docs/papers/zenodo && \
  latexmk -pdf -interaction=nonstopmode -halt-on-error paper.tex)

Then inspect:

sed -n '1,160p' md-os/ops/global_index.md
sed -n '1,160p' md-os/ops/markdown_graph.md
sed -n '1,160p' md-os/ops/system_hygiene_status.md
sed -n '1,160p' md-os/ops/workspace_inventory.md

If local development files are intentionally present, document the exception in .mdosignore. Do not use .mdosignore to hide files that should be part of the public release decision.

Publish:

Do not publish local runtime state:

Review carefully before publishing:

The paper source under docs/papers/zenodo/paper.tex is not optional or separate from the system. It is official presentation material for MD-OS (Artificial Prefrontal Cortex) v5.0 and must stay aligned with the README, architecture docs, knowledge base, connector model, role onboarding model, and production limits.

The package manifest uses files to publish demo seeds from md-os/examples/ instead of local state from md-os/ops/.

Use FILESYSTEM_CONTRACT.md as the formal file-role table when deciding whether a path belongs in the public release, demo workspace, or live local runtime.

Before copying, packaging, or distributing a workspace that has scanned local devices or local software, run:

npm run verify:release

Use this to create a clean scaffolded demo workspace under .cache/ or under MDOS_DEMO_PACKAGE_DIR:

npm run package:demo

For cleanup only:

make clean-release

or:

cortex hardware clean
cortex software clean

The clean commands also refresh derived runtime indices and scrub host-local scan events from the local journal so stale device, application, or service summaries are not left behind in generated views.

The same rule applies to future local substrate caches such as desktop, browser, robot, or sensor inventories: public packages should include the layer model and connector code, not private details of the machine where MD-OS was developed.

README expectations

The README should answer:

Host runtime statement

Use this framing:

Codex is a verified host-compatibility path for MD-OS (Artificial Prefrontal Cortex) v5.0; it is not the identity.
OpenCode or another agent runtime may operate the same filesystem layer as a
secondary compatibility path by reading the repository instructions, writing
bounded source signals under md-os/ops/sources/, and running deterministic
builders from md-os/os/.

This makes clear that Codex is an execution path, not the repository identity, while the filesystem architecture remains portable to other verified hosts.