Skip to content

Keep Hosted Agent dependency policy focused on reproducibility - #1010

Merged
Wei Meng (m5i-work) merged 2 commits into
mainfrom
m5i/fix-uv-policy-sample-yaml
Sep 21, 2026
Merged

Wei Meng (m5i-work) merged 2 commits into
mainfrom
m5i/fix-uv-policy-sample-yaml

Conversation

@m5i-work

@m5i-work Wei Meng (m5i-work) commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • keep the Hosted Agent dependency policy focused on dependency-artifact reproducibility
  • validate uv lock freshness, complete versioned graph, safe sources, and frozen production export
  • leave build metadata and deployment behavior to build-readiness and live E2E validation
  • add coverage proving a new uv-native runtime passes with only the dependency artifacts required by this policy

Why

The uv migration in #992 exposed that the policy had coupled reproducible dependency artifacts to an unrelated repository validation/deployment convention. The credential-free checker can prove the lock itself without requiring build metadata, while live E2E owns actual build and deployment verification.

This restores the separation established by #848 while retaining the intentional uv-first evolution: pyproject.toml + uv.lock is preferred, and a fully resolved requirements.txt remains the compatibility fallback.

Validation

@m5i-work

Copy link
Copy Markdown
Contributor Author

Live verification is complete. The standalone fix PR passed the hosted-agent policy workflow: https://github.com/microsoft-foundry/foundry-samples/actions/runs/35571553164. I also applied the same fix to the real 18-sample uv migration in #992; its previously failing dependency-policy job now passes: https://github.com/microsoft-foundry/foundry-samples/actions/runs/35571607988. Local --resolve validation against the complete #992 tree also passed with uv 0.11.7.

@m5i-work Wei Meng (m5i-work) changed the title Fix uv policy to keep sample metadata optional Keep Hosted Agent dependency policy focused on reproducibility Sep 21, 2026
@m5i-work

Copy link
Copy Markdown
Contributor Author

Updated to the agreed long-term design: the checker now enforces only dependency-artifact reproducibility and no longer inspects build/deployment metadata. It still validates artifact selection, lock freshness, the complete versioned graph, source portability, uv lock --check, and frozen production export. Live policy run: https://github.com/microsoft-foundry/foundry-samples/actions/runs/35573862587.

@m5i-work
Wei Meng (m5i-work) merged commit af7322c into main Sep 21, 2026
20 checks passed
@m5i-work
Wei Meng (m5i-work) deleted the m5i/fix-uv-policy-sample-yaml branch September 21, 2026 08:52

This branch was successfully deployed

1 active deployment
L4-validation — 7c1cf042 Deployed Sep 21, 2026 by m5i-work via trusted #275
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