Lab 00: Prerequisites and setup
Objectives¶
Separate static curriculum from your local application. Verify Windows tools, distinguish template reference facts from your own Python setup evidence, and establish fictional-data and policy boundaries before asking an assistant to change files.
Prerequisites¶
Use Windows, PowerShell, VS Code, Git, and an organization-approved AI coding assistant/account. Obtain permission for your learner folder and any later remote operation. No government account, Azure subscription, production auth, or public backend is required.
The example curriculum root is
C:\src\GitHub\devopsabcs-engineering\on-ai-sdlc-labs.
LearnerRoot is C:\src\GitHub\devopsabcs-engineering\ontario-form-practice.
Do not nest the application in the curriculum or overwrite existing files.
Cloning this curriculum does not create LearnerRoot. The separate learner template supplies the implemented Python/SQLite/JavaScript baseline, contracts, tests and blank evidence worksheets. Its publication and GitHub Template repository setting must be completed by the instructor before learners use the link. If it is not yet available, obtain the prepared checkout from your instructor; do not scaffold a different app or invent missing evidence.
Create your LearnerRoot¶
After the instructor publishes the template, select
Use this template
to create your own GitHub repository. Keep its name ontario-form-practice,
then clone your copy. Replace YOUR-ACCOUNT below with your account:
git clone https://github.com/YOUR-ACCOUNT/ontario-form-practice.git C:\src\GitHub\devopsabcs-engineering\ontario-form-practice
if ($LASTEXITCODE -ne 0) { throw 'Learner clone failed; do not overwrite an existing checkout' }
Set-Location C:\src\GitHub\devopsabcs-engineering\ontario-form-practice
git rev-parse --show-toplevel
git --no-pager status --short
Already have LearnerRoot? Reuse it; do not clone over it, initialize it again or
change its remote. A fresh template clone has no .venv, database or accepted
source record. Create its approved environment under Validation before running
environment inspections. Evidence worksheets start NOT RUN/NOT APPROVED.
The curriculum includes one unchanged bilingual historical PDF under
reference/official/, for strictly non-commercial training only and excluded
from Apache-2.0. It is not deployed with Pages or used as the app export
template. All other PDF downloads remain ignored. Read its repository rights
record and the source manifest;
adding the archive does not approve human application source acceptance.
Caption: original teaching diagram, not screenshot or executed application evidence. It depicts the current Python API/proxy and original vanilla-JavaScript UI, but does not prove execution or satisfy human accessibility/release review. See Lab 04 for a real historical synthetic review excerpt; the diagram is not application proof.
French version of the same teaching model
Caption: original teaching diagram, not screenshot or executed application evidence. This French version also does not prove execution or satisfy human accessibility/release review.
Bounded prompt¶
Work only in C:\src\GitHub\devopsabcs-engineering\ontario-form-practice.
Inspect the template tree, Git status, README.md, requirements.in/requirements.txt
and docs/architecture/adr-002-python-stack.md first.
Prepare a setup report in evidence/qa/setup.md with actual tool versions,
repository root and known versus unexecuted checks. Use fictional data only.
Do not scaffold an app, install packages, edit shared npm configuration, push,
create cloud resources or change the curriculum repository.
The current app uses Python 3.13.14/SQLite 3.50.4, stdlib HTTP,
original semantic HTML/CSS/vanilla JavaScript, ReportLab 5.1.0 and pypdf 7.1.1.
The supplied suite contains 18 backend tests and 10 proxy tests. Record your
own installation and execution; template evidence is blank, not a passed run.
Excluded npm resources remain excluded; no installation or alternative proxy
for obtaining them is authorized. Synthetic tests do not approve live source.
Return changed paths and the remaining prerequisites. Do not claim success
for checks you did not execute.
Steps¶
- Open each root in a separate VS Code window. In a fresh PowerShell session, establish the directory explicitly; an earlier session's location does not carry into a new command process.
- Inspect Git status before changes. The curriculum initial commit has been published; that is not a learner application release. LearnerRoot is your separate clone of the template. Do not initialize over an existing repository or change its remote.
- Read LearnerRoot's
README.md,docs\architecture\adr-002-python-stack.mdandpython-dependency-review.md. The current stack uses Python 3.13.14, SQLite 3.50.4 and hash-locked Windows x64 wheels from the corporate Python index.windows-toolchain.mddescribes the current prerequisites. No npm package, native addon or separate SQLite server is required. - Check the documentation environment using its existing
.venv. The tested lock uses Python 3.13.14 and 32 pinned distributions. Do not reinstall globally or weaken TLS to solve an environment problem. - Read rights and boundaries. Agree to fictional inputs, loopback-only servers, no browser draft storage, and no government submission. Keep DB/PDF downloads, logs, and credentials outside Git and static assets.
- Run the bounded prompt. Verify its report against your observations. If access is blocked, record that condition and continue only independent work in Lab 01. Use the setup commands below only when creating an approved application environment, not over an existing one.
Validation¶
A fresh clone needs its application environment first. Access to the configured
corporate index is required; denied access is a prerequisite failure, not
permission to switch feeds. Reuse an existing .venv:
Set-Location C:\src\GitHub\devopsabcs-engineering\ontario-form-practice
if (-not (Test-Path .\.venv\Scripts\python.exe)) {
python3.13.exe -m venv .venv
if ($LASTEXITCODE -ne 0) { throw 'Application environment creation failed' }
.\.venv\Scripts\python.exe -m pip --isolated install --no-cache-dir -r requirements.txt
if ($LASTEXITCODE -ne 0) { throw 'Application installation failed' }
}
git rev-parse --show-toplevel
git --no-pager status --short
.\.venv\Scripts\python.exe --version
.\.venv\Scripts\python.exe -c "import sqlite3; print(sqlite3.sqlite_version)"
.\.venv\Scripts\python.exe -m pip check
if ($LASTEXITCODE -ne 0) { throw 'Application dependencies failed' }
Get-Content .\requirements.in
Prepare the separate documentation environment following the curriculum README, then inspect it:
Set-Location C:\src\GitHub\devopsabcs-engineering\on-ai-sdlc-labs
.\.venv\Scripts\python.exe --version
.\.venv\Scripts\python.exe -m pip check
if ($LASTEXITCODE -ne 0) { throw 'Documentation dependencies failed' }
.\.venv\Scripts\python.exe -m mkdocs --version
if ($LASTEXITCODE -ne 0) { throw 'MkDocs inspection failed' }
The lock selects ReportLab 5.1.0, pypdf 7.1.1, Pillow 13.0.0 and charset-normalizer 3.5.2; other runtimes/platforms need separate hash review and validation. No npm install is required. Excluded resources stay excluded. Historical npm probe files are not included in the learner template.
Expected observable results¶
You can name the two repositories and tool versions without exposing secrets. Documentation dependency checks complete in the isolated environment. Your report separates template reference facts, your Python installation and actual tests from browser/manual acceptance. No screenshot, human source approval, or live site is inferred from setup.
Troubleshooting¶
If a command is missing, use your approved installation process; do not run
unreviewed bootstrap scripts. If the .venv is absent, restore the locked
documentation setup through approved package access. If corporate content
exclusion appears, stop acquisition rather than trying a mirror or hosted
runner. Consult troubleshooting.
Costs¶
Setup/AI usage is unmeasured. Check your assistant entitlement and record your own usage. No production cloud resources are created.
Knowledge checks¶
- Why does a scratch SQLite restart proof not establish a clean app install?
- Which repository may contain the API and ignored database?
- Why does an actual public-source workflow not authorize excluded npm content?
Previous: Lab map. Next: Idea to brief.