Skip to content

AI Governance: end-to-end verification and fixes - #642

Merged
Digvijay (Digvijay) merged 1 commit into
microsoft:mainfrom
Digvijay:fastlane/06-ai-governance
Nov 30, 2026
Merged

Digvijay (Digvijay) merged 1 commit into
microsoft:mainfrom
Digvijay:fastlane/06-ai-governance

Conversation

@Digvijay

@Digvijay Digvijay (Digvijay) commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

I deployed the AI Governance lab with its lab automation and ran notebooks 1 to 8 headless from a Windows laptop, as participants will. After the fixes below, all eight notebooks pass with zero errors on a freshly deployed lab.

Draft for content-owner review: ajakupov-microsoft Marco Weber (@qxsch).

What changed

  • deploy-lab.ps1 tags resources SecurityControl=Ignore. Without the tag the subscription policy turned public network access off on Cosmos DB, Storage and the Key Vaults, which broke the usage pipeline and notebooks 4 and 5. Challenge 1 keeps the manual steps only as a fallback.
  • New challenges/workshop/make_env.py writes .env from the deployment outputs. Challenge 1 Part A is now uv sync plus one command, with the hand-filled .env as a fallback.
  • Lab Unified AI API (notebook 6): added the UAIG-* debug headers, POST /openai/responses, and a 403 PathNotAllowed catch-all, which the Challenge 6 success criteria expect.
  • Challenge 8 (A2A): notebook 8 now finds az on Windows and loads .env; the lab template adds a gpt-4.1 deployment on the spoke account and the Foundry Agent Consumer role for the APIM identity (without it APIM gets 404 Agent Not Found); step 9 only goes private-only when a private endpoint exists (the lab has none). Challenge 8 and the notebook intro explain the lab differences.
  • Notebook fixes: skip the embedding model in chat tests (1), parse string error bodies (2, 6), honour Retry-After in the LangChain agent (4).
  • Walkthroughs: filled the TODO/TBD walkthrough, coaching-note and verification sections for all nine challenges from the dry run.
  • Workshop readme: notes on what does not apply in the lab (never azd down), broken links to guides that were not copied pointed at the upstream repo. .gitignore for files the notebooks generate.

Worth a look

  • labautomation/infra/resources.bicep and the recompiled resources.json.
  • Challenge 9 stays an optional, instructor-led read-through: it needs an app registration the lab does not create. Notebook 9 had the same Windows and .env issues as notebook 8; with those fixed, sections 0 to 2 work read-only and show only the facilitator-provided HR_MCP_* values as missing.

How it was tested

The lab was deployed with this hack's own labautomation into a test subscription (all test resources have since been deleted) and every challenge was run as a participant would. Links and the repository structure check pass.

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

✅ PR Compliance Check Passed

All compliance checks passed for the latest commit.

Check Result
📋 Challenges & Walkthrough structure ✅ OK
🔗 Links & images ✅ OK (27 file(s))

📄 Full report in the workflow run summary


This comment was automatically generated by the PR Compliance Check workflow.

@Digvijay
Digvijay (Digvijay) force-pushed the fastlane/06-ai-governance branch 2 times, most recently from 549ca2b to d17bf29 Compare November 29, 2026 19:41
@Digvijay Digvijay (Digvijay) changed the title AI Governance: verified end to end for the December FASTLANE events AI Governance: end-to-end verification and fixes Nov 29, 2026
I deployed the AI Governance lab with its lab automation and ran notebooks 1 to 8 headless from a Windows laptop, as participants will. After the fixes below, all eight notebooks pass with zero errors on a freshly deployed lab.

### What changed
- `deploy-lab.ps1` tags resources `SecurityControl=Ignore`. Without the tag the subscription policy turned public network access off on Cosmos DB, Storage and the Key Vaults, which broke the usage pipeline and notebooks 4 and 5. Challenge 1 keeps the manual steps only as a fallback.
- New `challenges/workshop/make_env.py` writes `.env` from the deployment outputs. Challenge 1 Part A is now `uv sync` plus one command, with the hand-filled `.env` as a fallback.
- Lab Unified AI API (notebook 6): added the `UAIG-*` debug headers, `POST /openai/responses`, and a `403 PathNotAllowed` catch-all, which the Challenge 6 success criteria expect.
- Challenge 8 (A2A): notebook 8 now finds `az` on Windows and loads `.env`; the lab template adds a `gpt-4.1` deployment on the spoke account and the Foundry Agent Consumer role for the APIM identity (without it APIM gets 404 Agent Not Found); step 9 only goes private-only when a private endpoint exists (the lab has none). Challenge 8 and the notebook intro explain the lab differences.
- Notebook fixes: skip the embedding model in chat tests (1), parse string error bodies (2, 6), honour `Retry-After` in the LangChain agent (4).
- Walkthroughs: filled the TODO/TBD walkthrough, coaching-note and verification sections for all nine challenges from the dry run.
- Workshop readme: notes on what does not apply in the lab (never `azd down`), broken links to guides that were not copied pointed at the upstream repo. `.gitignore` for files the notebooks generate.

### Worth a look
- `labautomation/infra/resources.bicep` and the recompiled `resources.json`.
- Challenge 9 stays an optional, instructor-led read-through: it needs an app registration the lab does not create. Notebook 9 had the same Windows and `.env` issues as notebook 8; with those fixed, sections 0 to 2 work read-only and show only the facilitator-provided `HR_MCP_*` values as missing.

### How it was tested
The lab was deployed with this hack's own `labautomation` into a test subscription (all test resources have since been deleted) and every challenge was run as a participant would. Links and the repository structure check pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Digvijay
Digvijay (Digvijay) marked this pull request as ready for review November 29, 2026 22:51
@Digvijay
Digvijay (Digvijay) merged commit 5d2eb9b into microsoft:main Nov 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants