Skip to main content
Version: 1.2.0

Drop the allowedCodes fallback

Version: 1.2.0 Date: 2026-10-18

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

Release fragment: refactor-drop-allowedcodes-fallback