This walkthrough shows the full loop from human intent to rebuilt runtime state.
It uses the existing demo_general_system project.
Capture a new operational task:
Document how a host runtime should use MD-OS (Artificial Prefrontal Cortex) v5.0.
sed -n '1,160p' md-os/ops/global_index.md
sed -n '1,160p' md-os/ops/projects/demo_general_system/status.md
This tells you which projects exist and how many open items are already known.
node md-os/os/register_manual_signal.js demo_general_system "Document how a host runtime should use MD-OS (Artificial Prefrontal Cortex) v5.0"
This appends a signal to:
md-os/ops/sources/manual/demo_general_system.json
The source signal is raw input. It is not yet the compiled project state.
node md-os/os/build_project_state.js demo_general_system
This reads matching source snapshots from md-os/ops/sources/ and rebuilds:
md-os/ops/projects/demo_general_system/work_items.ndjson
md-os/ops/projects/demo_general_system/status.json
md-os/ops/projects/demo_general_system/status.md
md-os/ops/projects/demo_general_system/agenda.json
md-os/ops/projects/demo_general_system/agenda.md
md-os/ops/projects/demo_general_system/relations.json
md-os/ops/projects/demo_general_system/relations.md
md-os/ops/projects/demo_general_system/priority_queue.json
md-os/ops/projects/demo_general_system/priority_queue.md
md-os/ops/projects/demo_general_system/active_memory.json
md-os/ops/projects/demo_general_system/active_memory.md
node md-os/os/build_global_agenda.js
node md-os/os/build_markdown_graph.js
node md-os/os/build_global_index.js
node md-os/os/build_system_hygiene_status.js
These files now reflect the new project state:
md-os/ops/agenda/global_agenda.md
md-os/ops/global_index.md
md-os/ops/system_hygiene_status.md
sed -n '1,220p' md-os/ops/projects/demo_general_system/work_items.ndjson
sed -n '1,160p' md-os/ops/projects/demo_general_system/agenda.md
sed -n '1,160p' md-os/ops/agenda/global_agenda.md
The new signal should now appear as a work item and agenda entry.
human sentence
-> manual source snapshot
-> project builder
-> work item
-> project agenda
-> global agenda
-> resumable runtime state
This is the base operating loop for the system.
After rebuilding, verify that compiled state can be reconstructed:
cortex replay
or:
npm run replay
Replay preserves source snapshots and project definitions, removes known compiled outputs, runs the builders again, and reports whether the replay fingerprint matched the previous compiled state.
A connector replaces the manual signal step.
Example:
node md-os/os/terminal_connector.js list
node md-os/os/terminal_connector.js run demo_general_system node_version
node md-os/os/build_project_state.js demo_general_system
node md-os/os/build_global_agenda.js
The connector writes a normalized snapshot to:
md-os/ops/sources/connectors/
The builder treats that snapshot like any other source.
If Codex or another CLI is operating the repo, the host should do the same thing:
The host should not keep the important result only in chat memory. The result
should be reflected in md-os/.