refactor-drop-allowedcodes-fallback
♻️ Refactors
Drop the allowedCodes fallback
Goal: Agent code reads use allowedAttributeRefs only. Prod and dev rows already store that field and none store allowedCodes.
Solution: getAllowedCodes and toResponse no longer fall back to a stored allowedCodes array. A missing or empty allowedAttributeRefs returns no codes and no attributes. Create and update still accept allowedCodes on the API and write allowedAttributeRefs.
Features:
- Collection typed as
AgentCodeDocument - Empty or missing
allowedAttributeRefs→ no codes, no attributes - Stored
allowedCodesis not read
Files Modified:
src/domains/platform/agents/agents.service.ts- Removed the legacy document type and the read fallback