Skip to content

Troubleshooting

Start with the failed gate

Record the exact command, working directory, tool versions, and exit code. Separate an environmental blocker from a code failure. Keep raw errors private; share a sanitized error code and reproduction. Do not rerun a destructive command to find out whether the first attempt committed.

Organization content exclusion

The current Python app's fresh corporate-index hash-locked Windows x64 installation passed. It needs no npm installation. Excluded ODS/PDF npm resources are superseded candidates, not requirements of this stack. The hosted public-source inspection does not authorize npm access. Stop at ORGANIZATION CONTENT EXCLUSION. Do not retry excluded content through the same registry, a mirror, another machine, GitHub Actions, a CDN, or copied package files. Do not weaken TLS, install-script approvals, or shared npm configuration. Ask the organization's administrator to resolve policy through the approved process if access is ever separately required. Do not reconstruct excluded contents when using original HTML/CSS/JavaScript and reviewed Python dependencies. If Python installation fails, preserve the approved embedded index, TLS and hashes; report the actual failure rather than trying a mirror.

Commands run in the wrong repository

Use an explicit location in every fresh PowerShell session:

Set-Location C:\src\GitHub\devopsabcs-engineering\ontario-form-practice
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

The historical native scratch proof used Node 26.13.1 and npm 12.0.1. The current stack was tested with Python 3.13.14 and SQLite 3.50.4. Your versions must be recorded, not inferred. For documentation checks use C:\src\GitHub\devopsabcs-engineering\on-ai-sdlc-labs and .\.venv\Scripts\python.exe. Do not activate or install tools globally to mask a missing local environment.

Missing modules or a blank application

Historical LearnerRoot npm scripts check the old native toolchain only. Use .\.venv\Scripts\python.exe -m api.server and, in another terminal, .\.venv\Scripts\python.exe -m web.dev_server, then open http://127.0.0.1:5173. Inspect README.md and requirements.in if a module is missing; use approved setup, not npm. Python compileall and optional existing-Node node --check web\app.js are syntax checks, not browser acceptance. Never create an empty passing test or substitute mocked/browser storage for SQLite. See building slices.

Save, review and download fail differently

  • A 422 identifies malformed fields, unsupported scenarios, or incomplete review. Keep input and focus the linked error summary. Blank valid drafts may save.
  • A 409 revision conflict means this mutation did not save. Preserve in-memory edits and choose an explicit reload; never adopt currentRevision to overwrite.
  • A 409 source-review error keeps load/save/delete available. Do not relabel old source snapshots or fabricate acceptance to enable export.
  • A 404 means a well-formed locator has no live record. A malformed ID is 400; a database lookup failure is 503, not an invented 404.
  • A 503 confirms no success. If a connection drops after a possible commit, the outcome is unknown; reload by known ID before retrying. A lost first create response can leave an unlocated synthetic draft.
  • A summary error must stay JSON. Check status and Content-Type before saving bytes as PDF; retain accessible HTML review.

Source drift or expired artifact

The actual inspection run has a three-day metadata artifact, not a durable report URL. An authorized owner can rerun the source-only workflow after it expires. Drift requires human comparison and renewed provenance approval, not automatic hash replacement. Do not remove PDF permissions or supply a password to force extraction. Read the source manifest.

Browser or accessibility checks cannot execute

Record the unexecuted check and its prerequisite. Do not replace a live API journey with mocks, generated screenshots, or another app's evidence. A scanner pass does not prove screen-reader announcements, 320px reflow, 200% zoom, touch behavior, or mobile downloads. Follow QA.

Documentation or Pages gates fail

All 16 pages per locale are authored. Human Canadian French review, original application screenshots and full review remain outstanding. Do not add empty pages or invented screenshots. A Pages policy-read denial, absent protected environment, wrong revision, or unset owner flag must stop release. Do not change visibility or weaken approval to make a workflow green. The source-only workflow is not deployment. See publication.

For stopped processes, backups and cleanup, use recovery. Return to the lab map.