Commit 11b1b12
authored
Adds scripts/ops/ensure_foundry_tracking_agents.py: an idempotent upsert script that scans apps/<svc>/agent.yaml for direct-model tracking agents, composes published instructions (prompt + hardening block, byte-identical to holiday_peak_lib.agents.prompt_loader), and POSTs create-or-update against the Foundry assistants API for both -fast and -rich roles.
Wires the script into deploy-azd-core as a new ensure-foundry-agents job that runs after provision/deploy-foundry-models and self-heals on every deploy. Idempotent: re-running produces noop=52 errors=0.
Closes the gap exposed when the truth-* and search-enrichment-agent services were added: those 10 agents had never been registered in Foundry. Also realigns the 42 stale agents (created 2026-02-26 with phi-4-mini-instruct and empty instructions) onto gpt-5-nano/gpt-5 with populated instructions, matching the workflow env.
Validation: pre-push gate (8 checks, 705+ tests, 206s) PASSED. New unit tests (11) green. Live dev Foundry reconcile applied -- now shows 52 agents (26 gpt-5-nano + 26 gpt-5); re-run yields noop=52.
1 parent 9b13d57 commit 11b1b12
4 files changed
Lines changed: 665 additions & 0 deletions
File tree
- .github/workflows
- memories/repo
- scripts/ops
- tests/ops
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1753 | 1753 | | |
1754 | 1754 | | |
1755 | 1755 | | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
1756 | 1799 | | |
1757 | 1800 | | |
1758 | 1801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments