Repository navigation
Require and persist Anthropic Industry attestation - #70
Open
Arun Sekhar (achandmsft) wants to merge 1 commit into
Open
Arun Sekhar (achandmsft) wants to merge 1 commit into
Arun Sekhar (achandmsft) wants to merge 1 commit into
Conversation
Collect Industry during preup before azd resolves required inputs, preserve legacy environments, and keep Bicep and Terraform validation in parity. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the changes making Industry a required attestation across Bicep and Terraform deployments.
No open issues 🎉
What changed in this PR
This PR makes Industry an explicit, required Anthropic attestation in the Claude on Foundry Starter Kit, keeping Bicep and Terraform deployment flows aligned.
Changes:
- Removes the Industry default and validates the nine supported lowercase values.
- Adds
preupcollection and persistence before template input resolution, with legacy migration and preprovision revalidation. - Updates regression coverage, setup documentation, and agent guidance.
| File | Description |
|---|---|
tests/test_industry_templates.py |
Checks template validation, mappings, and hook parity. |
tests/test_catalog.py |
Adds Industry prompting, migration, validation, and persistence coverage. |
skills/claude-on-foundry/SKILL.md |
Updates deployment and troubleshooting guidance. |
scripts/preflight-claude.sh |
Adds Bash Industry collection, validation, and persistence. |
scripts/preflight-claude.ps1 |
Adds PowerShell Industry collection, validation, and persistence. |
README.md |
Documents required Industry and the updated hook flow. |
infra-terraform/infra/variables.tf |
Removes the default and clarifies validation errors. |
infra-terraform/infra/main.tfvars.json |
Maps Industry to the canonical INDUSTRY variable. |
infra-terraform/azure.yaml |
Adds the Industry-only preup hook and enables interaction. |
infra-bicep/infra/main.parameters.json |
Maps Industry to the canonical INDUSTRY variable. |
infra-bicep/infra/main.bicep |
Requires Industry without a default. |
infra-bicep/infra/foundry.bicep |
Validates supported Industry values at the module boundary. |
infra-bicep/azure.yaml |
Adds the Industry-only preup hook and enables interaction. |
AGENTS.md |
Updates shared agent guidance for required Industry. |
.github/copilot-instructions.md |
Updates the hook lifecycle and environment-variable contract. |
.github/agents/claude-on-foundry.agent.md |
Adds Industry to required deployment configuration. |
.env.sample |
Replaces the active Industry default with a commented example. |
Review effort: Balanced
6 of 8 tasks
Arun Sekhar (achandmsft)
enabled auto-merge (squash)
November 10, 2026 23:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Require and persist an explicit Anthropic Industry attestation in both azd infrastructure variants.
Why
Industry must describe the actual organization rather than silently defaulting to
technology. Real cloud testing also showed that azd resolves required Bicep inputs beforepreprovision, so Industry must be collected duringpreup.How
properties.modelProviderData.industryalongside organization and country.preup, persistINDUSTRY, and revalidate it inpreprovision.CLAUDE_INDUSTRYenvironments without another prompt and reject invalid or missing noninteractive input explicitly.Verification
azd upsucceeded end-to-end on a fresh env (Bicep)azd upsucceeded end-to-end on a fresh env (Terraform)python src/hello_claude.pyreturned a live model responseCloud checks used separate fresh environments in an authorized private Azure test subscription. Tenant, subscription, principal, account and environment identifiers are intentionally omitted.
azd up --environment <redacted-fresh-environment>— passed independently for both variants with all hooks enabled.Succeeded; ARM returned the expected Industry. A subsequent preprovision run reused the saved value without rewriting the environment.python src/hello_claude.py— passed against both new deployments, returning text and usage..\.venv\Scripts\python.exe -m unittest discover -s tests -v— passed, 40 tests, no skips..\.venv\Scripts\python.exe -m compileall -q src tests— passed..\.venv\Scripts\python.exe -m pip check— passed.git --no-pager diff --checkandgit --no-pager diff --cached --check— passed.Invoke-ScriptAnalyzer -Path scripts\preflight-claude.ps1 -Severity Error -ExcludeRule PSAvoidUsingWriteHost,PSUseDeclaredVarsMoreThanAssignments— passed.bash -n scripts/preflight-claude.sh— passed.infra-terraform\infra,terraform fmt -checkandterraform validate -no-color— passed.Private logs, deployment state, identifiers and runtime configuration are excluded.
Checklist
infra-bicep/andinfra-terraform/(if applicable)