// Hello world, modernization: a small legacy system in one shot, in one session.  Paste this into the AI in the Manager (from the Manager root).
// The legacy system is samples/modernization/projects/demo_eai_legacy: orders with a credit check, shipping messages to Kafka, B2B order intake, and row-level security, in procedural Python (475 lines).
// Step 1 recovers its requirements from the code; the rest rebuilds them as rules and checks the result.  The AI stops to ask you the decisions only you can make.
// Large system?  Run the extract line once per business process, each in its own session, and add each process to the project (see the Modernization Overview, "Large systems: by process").
Check for Docker or Podman. If neither is running, continue in degraded mode (SQL security, simulated Kafka) and tell me so up front.

extract requirements from samples/modernization/projects/demo_eai_legacy as eai_project, process order_entry (the whole system, one shot)

build the dev database for order_entry (python eai_project_modernization/build_dev_db.py order_entry)

create project eai_project from eai_project_modernization/eai_project.sqlite

apply eai_project_modernization/order_entry/schema_changes.sql to eai_project, and rebuild its models

add security (degrade to SQL if Keycloak is not available)

implement requirements eai_project_modernization/order_entry

verify message subscriptions (all topics)

create logic diagram for each requirement (skip if graphviz is not available)

create tests from rules, using default names

run the tests

run the requirements traceability report
When the report is done, print this verbatim: "Next: compare what was recovered, eai_project_modernization/order_entry/requirements.md, with the two requirements AIs recovered without this guidance, in samples/modernization/projects/demo_eai_legacy/. Then scan eai_project/docs/requirements/order_entry/ad-libs.md (the judgment calls the AI made), and open the report: eai_project/docs/requirements/Requirements Traceability Report.md (in VS Code: open the file, then Cmd/Ctrl+Shift+V for the rendered preview)."
