{
  "goal": "Connect GitHub and a server, let Thales Ops detect and configure the Django application, then deploy a healthy version that is live.",
  "title": "Deploy a Django repository to a registered server",
  "phases": [
    {
      "id": "pick_repo",
      "name": "Connect GitHub and choose the repository",
      "steps": [
        {
          "why": "Connecting GitHub is one of the two setup actions the expert identified before deployment.",
          "quote": "So I'm gonna select GitHub.",
          "action": "Open Repositories, start the GitHub installation link, and wait for repositories to load.",
          "moment": {
            "time": "01:57",
            "screen": "GitHub installation linking started.",
            "keyframe": null
          },
          "decision": "Selected GitHub as the repository provider.",
          "quote_at": "01:32",
          "quote_source": "narration",
          "screen_event": "E4"
        },
        {
          "why": "The platform needs the application source before it can inspect and deploy it.",
          "quote": "So yeah, I already got my repo and you automatically detect the stack and any necessary things I need to put it.",
          "action": "Filter the synced repository list for the desired repository and open deployment configuration for pay-with-thales.",
          "moment": {
            "time": "06:28",
            "screen": "Repository deployment configuration opened for pay-with-thales.",
            "keyframe": "/k/14.jpg"
          },
          "decision": "Chose the pay-with-thales repository.",
          "quote_at": "06:37",
          "quote_source": "narration",
          "screen_event": "E28"
        },
        {
          "why": "Deployment setup depends on having the repository list available.",
          "quote": "I mean, you'll learn that while I'm going. As you can see, I just connected my GitHub and everything does its thing. You can see all my repo right now.",
          "action": "If the GitHub connection is absent, reconnect it and confirm that repositories sync before selecting a deploy action.",
          "moment": {
            "time": "10:03",
            "screen": "GitHub connected successfully and 60 repositories synced.",
            "keyframe": "/k/27.jpg"
          },
          "decision": "Reconnected GitHub when no account connection was shown.",
          "quote_at": "02:04",
          "quote_source": "live question",
          "screen_event": "E51"
        }
      ],
      "concepts": [
        {
          "name": "repository connection",
          "plain": "This gives Thales Ops access to the application code it needs to inspect and deploy."
        }
      ],
      "exceptions": [
        "If branch loading fails because no GitHub repository matches the query, return to the repository connection and selection flow."
      ],
      "guardrails": [],
      "platform_does": "Links the GitHub installation, syncs available repositories, and makes repository deployment configuration available.",
      "decision_rules": [
        "if no GitHub account connection is shown, then reconnect GitHub and wait for the repository sync before choosing a repository"
      ],
      "manual_equivalent": "Manually obtain the application source and inspect its codebase before preparing a deployment."
    },
    {
      "id": "configure",
      "name": "Review detected application requirements",
      "steps": [
        {
          "why": "Thales Ops reads the code, including requirements and Django settings, to identify what the application needs.",
          "quote": "It reads everything about the code, so it reads the requirements, it reads your settings.",
          "action": "Open deployment configuration and review the detected Django stack, PostgreSQL requirement, migrations, and required environment variables.",
          "moment": {
            "time": "06:28",
            "screen": "Django stack, PostgreSQL requirement, migrations, and required environment variables were detected.",
            "keyframe": "/k/14.jpg"
          },
          "decision": "Used the detected Django configuration rather than manually declaring the stack.",
          "quote_at": "07:32",
          "quote_source": "live question",
          "screen_event": "E29"
        }
      ],
      "concepts": [
        {
          "name": "stack detection",
          "plain": "The platform examines application files to identify how the application is built and run."
        },
        {
          "name": "migrations",
          "plain": "Migrations are application changes that need to be applied to the database during deployment."
        }
      ],
      "exceptions": [],
      "guardrails": [],
      "platform_does": "Inspects the repository and detects the application language and framework, database need, migrations, and required environment-variable keys.",
      "decision_rules": [
        "if the repository is a Django app, then review its detected requirements, settings, PostgreSQL need, migrations, and required environment variables"
      ],
      "manual_equivalent": "Read dependency files and application settings to determine the framework, services, migrations, and configuration needed."
    },
    {
      "id": "server",
      "name": "Register and prepare the server",
      "steps": [
        {
          "why": "The server must be connected along with the repository before deployment.",
          "quote": "the only two things we are doing is, we are registering the server and we are connecting our GitHub.",
          "action": "Open Servers, register a new server, enter its name and IP address, select Other as provider, and register it.",
          "moment": {
            "time": "03:34",
            "screen": "Registered the Sidecar server and generated an agent installation command.",
            "keyframe": "/k/8.jpg"
          },
          "decision": "Registered the server as Sidecar with provider Other.",
          "quote_at": "03:09",
          "quote_source": "live question",
          "screen_event": "E13"
        },
        {
          "why": "The installed agent is the backbone of how Thales Ops works and handles server-side work.",
          "quote": "So the agent handles everything, not just that itself. I mean, it helps you streamline your logs, it helps you fix anything. So the agent is basically the backbone of how Thales Op works.",
          "action": "Run the generated agent installation command on the registered server and wait for installation to complete.",
          "moment": {
            "time": "05:05",
            "screen": "Thales Ops agent installation completed successfully.",
            "keyframe": "/k/11.jpg"
          },
          "decision": "Installed the Thales Ops agent on the server.",
          "quote_at": "04:47",
          "quote_source": "live question",
          "screen_event": "E22"
        },
        {
          "why": "An online server confirms that the agent installation and server connection completed.",
          "quote": "As you can see, it is online.",
          "action": "Confirm the server is available and appears online in the Servers list before deploying to it.",
          "moment": {
            "time": "05:42",
            "screen": "Registered server appeared online in the Servers list.",
            "keyframe": "/k/12.jpg"
          },
          "decision": "Used the Sidecar server only after it was online.",
          "quote_at": "05:40",
          "quote_source": "narration",
          "screen_event": "E25"
        }
      ],
      "concepts": [
        {
          "name": "server agent",
          "plain": "The agent is a normal system process on the server that lets Thales Ops perform deployment and operational work there."
        },
        {
          "name": "Caddy",
          "plain": "Caddy is installed by the agent to act as the proxy server in front of an application."
        },
        {
          "name": "containerization",
          "plain": "Docker packages the application into a runnable container on the server."
        }
      ],
      "exceptions": [
        "Choose a different target server when you want to use a different server for the application."
      ],
      "guardrails": [
        {
          "why": "The platform uses an installed agent running as a normal systemd process rather than SSH access.",
          "rule": "Never require or collect an SSH key or private key to connect Thales Ops to the server.",
          "quote": "So you don't need to SSH. That's the whole point of installing.",
          "moment": {
            "time": "03:34",
            "screen": "Registered the Sidecar server and generated an agent installation command.",
            "keyframe": "/k/8.jpg"
          },
          "quote_at": "03:09",
          "severity": "stop",
          "screen_event": "E13"
        },
        {
          "why": "The agent performs the server-side work and makes the server available to Thales Ops.",
          "rule": "Always install the generated agent command on a newly registered server before using it for deployment.",
          "quote": "The agent is basically the backbone of how Thales Op works.",
          "moment": {
            "time": "05:05",
            "screen": "Thales Ops agent installation completed successfully.",
            "keyframe": "/k/11.jpg"
          },
          "quote_at": "04:47",
          "severity": "stop",
          "screen_event": "E22"
        }
      ],
      "platform_does": "Generates the agent installation command; the agent installs missing Docker, Nixpacks, Caddy, firewall access for ports 80 and 443, and its own server process.",
      "decision_rules": [
        "if the selected server does not yet show online, then wait for the agent installation and availability confirmation before deploying",
        "if a required deployment tool is not already on the server, then let the agent install it"
      ],
      "manual_equivalent": "Manually install and configure a service process, Docker, application build tooling, a proxy server, and firewall access on the host."
    },
    {
      "id": "build_settings",
      "name": "Choose target and build settings",
      "steps": [
        {
          "why": "The target depends on which server you want to use.",
          "quote": "Yeah, it depends on your server actually, like depending on what server you wanna use.",
          "action": "Select Sidecar as the target server and review the shown build method and exposed port.",
          "moment": {
            "time": "06:40",
            "screen": "Automatic build method and exposed port 8000 appeared.",
            "keyframe": "/k/15.jpg"
          },
          "decision": "Selected Sidecar and kept the displayed Automatic build method with exposed port 8000.",
          "quote_at": "09:01",
          "quote_source": "live question",
          "screen_event": "E32"
        }
      ],
      "concepts": [
        {
          "name": "target server",
          "plain": "The target server is the machine that will run this application."
        },
        {
          "name": "exposed port",
          "plain": "This is the network port where the application accepts traffic inside its deployment."
        }
      ],
      "exceptions": [],
      "guardrails": [],
      "platform_does": "Shows the available target server and detected build method and exposed port.",
      "decision_rules": [
        "if you need the application on a different server, then select the server you want to use"
      ],
      "manual_equivalent": "Choose a host, decide how to build the application, and expose the application port yourself."
    },
    {
      "id": "env_vars",
      "name": "Set production configuration",
      "steps": [
        {
          "why": "A true DEBUG setting can expose traceback details to clients and help attackers understand the system.",
          "quote": "DEBUG should not be set to false, 'cause if it is... Should not be set to true, 'cause if it is set to true, if any issue happens, it shows the client or anybody accessing it, it shows them the trace back. And, I mean, hackers could use that to just maneuver your stuff.",
          "action": "Open Environment Variables and set DEBUG to false before the first production deployment.",
          "moment": {
            "time": "07:54",
            "screen": "DEBUG was set to false.",
            "keyframe": "/k/18.jpg"
          },
          "decision": "Set DEBUG to false.",
          "quote_at": "08:24",
          "quote_source": "live question",
          "screen_event": "E35"
        },
        {
          "why": "Thales Ops detected the required environment variables from the application code.",
          "quote": "it reads the requirements, it reads your settings.",
          "action": "Review the additional required environment-variable rows, including CSRF_TRUSTED_ORIGINS, and populate the required keys in the application settings.",
          "moment": {
            "time": "14:58",
            "screen": "Required environment-variable keys populated the previously blank rows.",
            "keyframe": "/k/35.jpg"
          },
          "decision": "Used the detected required environment-variable rows.",
          "quote_at": "07:32",
          "quote_source": "live question",
          "screen_event": "E75"
        }
      ],
      "concepts": [
        {
          "name": "environment variable",
          "plain": "An environment variable is a configuration value supplied to an application outside its source code."
        },
        {
          "name": "DEBUG",
          "plain": "DEBUG controls whether Django exposes detailed error information to people accessing the application."
        }
      ],
      "exceptions": [
        "If the environment-variable list is blank after a repository or branch lookup failure, resolve the repository match before relying on the displayed variable list."
      ],
      "guardrails": [
        {
          "why": "Errors can show tracebacks to clients, which attackers could use to maneuver the system.",
          "rule": "Never deploy a production Django application with DEBUG set to true.",
          "quote": "if it is set to true, if any issue happens, it shows the client or anybody accessing it, it shows them the trace back. And, I mean, hackers could use that to just maneuver your stuff.",
          "moment": {
            "time": "07:54",
            "screen": "DEBUG was set to false.",
            "keyframe": "/k/18.jpg"
          },
          "quote_at": "08:24",
          "severity": "stop",
          "screen_event": "E35"
        }
      ],
      "platform_does": "Shows detected environment-variable requirements and provides fields to configure them in deployment settings.",
      "decision_rules": [
        "if deploying to production, then set DEBUG to false before deployment"
      ],
      "manual_equivalent": "Find configuration values in code and supply them through the server or deployment environment yourself."
    },
    {
      "id": "deploying",
      "name": "Build and release the application",
      "steps": [
        {
          "why": "The deployment sequence shown built the image, applied migrations, started the container, then made the version healthy before routing traffic.",
          "quote": "",
          "action": "Start the deployment and monitor the build console through image building, exporting and unpacking image layers, database migrations, container start, health, and traffic routing.",
          "moment": {
            "time": "13:29",
            "screen": "New version became healthy and traffic began routing live.",
            "keyframe": "/k/32.jpg"
          },
          "decision": "Allowed the deployment to progress through the detected build and migration steps.",
          "quote_at": "",
          "quote_source": "narration",
          "screen_event": "E72"
        },
        {
          "why": "The warning appeared before the build completed successfully and the deployment became healthy.",
          "quote": "",
          "action": "Treat an undefined-variable message in build output as a warning to review while continuing to track whether the build, migrations, and health checks succeed.",
          "moment": {
            "time": "13:22",
            "screen": "Build console reported an undefined variable warning.",
            "keyframe": "/k/31.jpg"
          },
          "decision": "Observed the undefined-variable warning during the build.",
          "quote_at": "",
          "quote_source": "narration",
          "screen_event": "E70"
        }
      ],
      "concepts": [
        {
          "name": "healthy version",
          "plain": "A healthy version is a newly started application version that has passed the platform's readiness check before it receives traffic."
        }
      ],
      "exceptions": [
        "An undefined-variable warning was shown during this build; the session shows that this warning did not prevent successful image build, migrations, container start, or health."
      ],
      "guardrails": [],
      "platform_does": "Builds the application image, runs database migrations, starts the container, checks health, and routes traffic to a healthy version.",
      "decision_rules": [
        "if the new version becomes healthy, then allow traffic to route to it"
      ],
      "manual_equivalent": "Build and run the application container, run database migrations, determine health, and switch incoming traffic to the new version."
    },
    {
      "id": "live",
      "name": "Confirm the deployment is live",
      "steps": [
        {
          "why": "The notification confirmed that the application was running.",
          "quote": "",
          "action": "Confirm the live deployment notification after the new healthy version begins receiving traffic.",
          "moment": {
            "time": "13:50",
            "screen": "Live deployment notification appeared confirming the app is running.",
            "keyframe": "/k/33.jpg"
          },
          "decision": "Accepted the deployment as live after the running notification appeared.",
          "quote_at": "",
          "quote_source": "narration",
          "screen_event": "E73"
        }
      ],
      "concepts": [
        {
          "name": "live deployment",
          "plain": "A deployment is live when the running version is receiving application traffic."
        }
      ],
      "exceptions": [],
      "guardrails": [],
      "platform_does": "Reports that the application is running after the healthy version is routed live.",
      "decision_rules": [
        "if the live deployment notification appears after health and traffic routing, then treat the application as running"
      ],
      "manual_equivalent": "Verify that the application is reachable and that live traffic is reaching the new running version."
    },
    {
      "id": "operate",
      "name": "Review application operations",
      "steps": [
        {
          "why": "The expert described Thales Ops as managing applications and monitoring them around the clock.",
          "quote": "If there's a deployment issue, then it manages it. It monitors it around the whole clock.",
          "action": "Open the application operations settings and review domain and DNS configuration, environment variables, and deployment history.",
          "moment": {
            "time": "14:03",
            "screen": "Environment Variables and Deployment History sections appeared.",
            "keyframe": "/k/34.jpg"
          },
          "decision": "Used the application operations page after deployment setup and while the deployment progressed.",
          "quote_at": "01:28",
          "quote_source": "live question",
          "screen_event": "E74"
        },
        {
          "why": "The expert explicitly moved to staging after the trial issue.",
          "quote": "Yeah. So I just-- Let me go to the staging.",
          "action": "Switch to the Staging Workspace application settings when moving to staging.",
          "moment": {
            "time": "15:15",
            "screen": "Switched to the Staging Workspace application settings.",
            "keyframe": null
          },
          "decision": "Moved to the Staging Workspace after the production deployment attempt was blocked by the ended trial.",
          "quote_at": "09:18",
          "quote_source": "live question",
          "screen_event": "E76"
        }
      ],
      "concepts": [
        {
          "name": "deployment history",
          "plain": "Deployment history is the record of application releases that have been run."
        },
        {
          "name": "staging",
          "plain": "Staging is a separate application workspace used here after the production attempt was blocked."
        }
      ],
      "exceptions": [
        "The session does not show how to restore or extend an ended free trial; it only shows switching to staging."
      ],
      "guardrails": [],
      "platform_does": "Provides operations views for domains and DNS, environment variables, deployment history, and ongoing application management.",
      "decision_rules": [
        "if the production deployment cannot continue because the free trial ended, then move to the staging workspace"
      ],
      "manual_equivalent": "Manage proxy and domain details, configuration values, deployment records, and monitoring through separate server tools."
    }
  ],
  "summary": "Thales Ops deploys applications to self-hosted infrastructure and handles work that would otherwise be done manually by a DevOps engineer. First connect GitHub and register a server by installing the Thales Ops agent; the agent installs missing deployment tools and brings the server online. For this Django app, review detected requirements, keep production DEBUG disabled, choose the target server, and monitor the build, migrations, health, and live traffic.",
  "check_scenario": {
    "expected": "Set DEBUG to false before deploying, because the expert explained that true can reveal tracebacks to clients and give attackers useful information.",
    "situation": "A new hire is preparing a production Django deployment and sees DEBUG set to true in the detected environment-variable form. The target server is already online."
  },
  "open_questions": [
    "How an ended free trial is restored or extended was not shown.",
    "The specific values to use for CSRF_TRUSTED_ORIGINS and the other required environment variables were not stated.",
    "The session did not show why the undefined-variable build warning occurred or how to correct it."
  ],
  "global_guardrails": [
    {
      "why": "The expert states that Thales Ops handles deployment work autonomously.",
      "rule": "Never manually manage Caddy configuration for this deployment flow.",
      "quote": "you don't have to manually handle anything, bro. It does everything for you autonomously.",
      "moment": {
        "time": "05:39",
        "screen": "Server setup instructions were opened in the Thales Ops dashboard.",
        "keyframe": null
      },
      "quote_at": "06:18",
      "severity": "warn",
      "screen_event": "E24"
    }
  ]
}