Lab 07: Publish curriculum and keep the app local
Objectives¶
Publish only static curriculum through the protected manual workflow after authorized review. Verify the actual site URL and browser behavior independently of the separately operated local API/SQLite app.
Prerequisites and current status¶
Complete human review, real bilingual content, Canadian French review, original evidence images, asset notices, and all structural/strict gates. Verify repository Pages entitlement, organization policy, intended visibility, and protected environment with the owner. Human approval gates remain unresolved in the learner review package.
Read-only inspection on 2026-11-27 found a successful
publication run 45697893333
for commit d0cfdaa7b9a7620786c9ede3564b34240a6a1b20. On 2026-11-28,
the public Pages destination
was verified without sign-in. The historical deployment needs a rebuild for
the public project base. Workflow success alone does not prove live behavior
or the missing learner approvals. The owner-approved SHA must match the exact
revision being released. The owner may permit self-approval for this static
curriculum; source, application, accessibility and French reviews remain separate.
The source-inspection run is separate provenance. Pages cannot run this Python API or store mutable SQLite. Do not add auth, a public backend, tunnels, or cloud resources to compensate.
Bounded prompt¶
Inspect C:\src\GitHub\devopsabcs-engineering\on-ai-sdlc-labs read-only.
Read README.md, .github/workflows/pages.yml, and actual review evidence.
Prepare a preflight summary in the conversation: exact main revision,
EN/FR/image/content/strict outcomes, emitted-asset notices, human approval,
owner variables, environment protection, eligibility and visibility.
No file/config/tracking edits, pushes, workflow dispatch, environment creation,
visibility changes, package workarounds or deployment.
Explain every failed/unverified gate and stop there. Only the authorized
owner may enable and dispatch the reviewed manual release after all gates.
Do not deploy LearnerRoot, its Python API, evidence, database or source PDF.
Steps¶
- Inspect the exact approved main commit, clean status, and review package.
The provisional
/on-ai-sdlc-labs/project base is not a verified published URL. Review exact static assets and their notices before upload. - Run all curriculum checks below. The 16 pages per locale and original teaching diagrams exist; structural/image checks do not establish human French review or actual app screenshots. Do not manufacture missing evidence. Passing automation is not the full release gate.
- Have the owner independently configure the existing
github-pagesenvironment with required human/team reviewers, administrator bypass disabled, and exactly one custom branch policy for branchmain, not a wildcard/tag. The owner controls self-review prevention and may allow self-approval for this curriculum. Deployment still requires an explicit human approval. YAML naming alone does not protect it. A denied read or unsupported entitlement stops release. - The owner must set
PAGES_RELEASE_ENABLEDexactlytrueandPAGES_REVIEWED_SHAto the exact reviewed lowercase 40-character main SHA only for an approved publication window. Do not set them from the prompt. - After explicit authorization, the owner dispatches Manual curriculum
publication on
main, withreviewed_ref=refs/heads/mainandreviewed_shamatching the owner variable, workflow revision, and current main tip. Leaving the optionalreviewed_shainput blank uses the dispatch revision, which must still match the owner variable. There is no automatic deployment on push and no dispatch input that overrides the disabled owner flag. - The workflow checks independent policy, installs locked docs tools, runs fixture/parity/image/content/strict checks, audits static output, and only then uploads the Pages artifact. GitHub independently enforces human approval on deploy; the workflow rechecks authorization/main after approval.
- Use the actual workflow-returned Pages URL for browser verification. Check root language picker, explicit EN/FR routes, switcher, search, navigation, 404, sitemap, project-base CSS/JS/images, JavaScript-disabled language links, and responsive behavior. The locale preference may store only en/fr, never app records. Record real HTTP/browser evidence before calling it published.
- Separately start
.\.venv\Scripts\python.exe -m api.serverand.\.venv\Scripts\python.exe -m web.dev_serverin two LearnerRoot terminals. Openhttp://127.0.0.1:5173; both servers bind to 127.0.0.1 with the ignored disk DB. Demonstrate save/restart/load and the truthful source-pending gate; review/export require human source acceptance, never synthetic test approval. A live curriculum site is not an app demo. Stop with Ctrl+C in each terminal or stop only verified exact helper PIDs. - Record release workflow/revision/actual URL and live observations in private
learner
evidence\qa\release-checklist.md. Have the owner disable the release flag after the publication window. A rollback also needs a reviewed exact main revision and renewed protected dispatch, not bypassed controls.
Validation¶
Run from the curriculum root to validate structure before human release review:
Set-Location C:\src\GitHub\devopsabcs-engineering\on-ai-sdlc-labs
.\.venv\Scripts\python.exe -m unittest discover -s scripts -p test_checks.py -v
if ($LASTEXITCODE -ne 0) { throw 'Checker fixtures failed' }
.\.venv\Scripts\python.exe scripts/check_parity.py
if ($LASTEXITCODE -ne 0) { throw 'EN/FR parity failed' }
.\.venv\Scripts\python.exe scripts/check_images.py
if ($LASTEXITCODE -ne 0) { throw 'Actual image inventory failed' }
.\.venv\Scripts\python.exe scripts/check_content.py
if ($LASTEXITCODE -ne 0) { throw 'Curriculum content failed' }
.\.venv\Scripts\python.exe -m mkdocs build --strict
if ($LASTEXITCODE -ne 0) { throw 'Strict site build failed' }
.\.venv\Scripts\python.exe scripts/check_content.py --site-dir site
if ($LASTEXITCODE -ne 0) { throw 'Static output audit failed' }
Local parity/image/content/strict-build/site checks have passed; rerun them for the exact revision to review. They do not approve French meaning, screenshots, emitted assets, source or publication. The historical hosted run above is not approval of your next release. After an authorized actual release, enter its returned URL interactively:
Set-Location C:\src\GitHub\devopsabcs-engineering\on-ai-sdlc-labs
$site = Read-Host 'Paste the actual Pages URL returned by the approved workflow'
$uri = [uri]$site
if ($uri.Scheme -ne 'https') { throw 'Expected actual HTTPS Pages URL' }
$response = Invoke-WebRequest -Uri $uri.AbsoluteUri
if ($response.StatusCode -ne 200) { throw 'Live root did not return 200' }
HTTP 200 alone does not verify routes/assets/accessibility. Complete the manual browser checks and record failures truthfully.
Expected observable results¶
Only after every gate and actual release succeeds, static curriculum is served at the workflow's observed URL. No API, DB, private evidence, or official PDF enters the site artifact. The app remains separately local. These are future learner acceptance targets, not supplied deployment evidence.
Troubleshooting¶
For 404 or broken base-path assets, inspect the actual release URL and generated links. For wrong/moved SHA, renew human review. For absent protection, owner flag, eligibility, or policy-read access, stop; do not weaken the workflow. Source artifact upload is not a Pages artifact or deployment.
Costs¶
Pages entitlement, Actions capacity, and AI usage depend on account policy and are unmeasured. Check actual billing; do not promise zero cost or add production resources.
Knowledge checks¶
- Why can a published curriculum not operate the SQLite-backed app?
- Which controls prevent dispatch inputs from enabling an unapproved release?
- Why must live browser checks follow a successful workflow?
Previous: Human sign-off. Next: Recovery and teardown.