Skip to main content
Version: 1.2.0

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 allowedCodes is not read

Files Modified:

  • src/domains/platform/agents/agents.service.ts - Removed the legacy document type and the read fallback