All 8 tasks checked off. Change archived to openspec/changes/archive/
per OpenSpec protocol. Implementation committed in 5943ff1.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.0 KiB
1.0 KiB
Implementation Tasks: Tenant Isolation Enforcement
- Add
organizationIdfield toIAgentListFiltersinsrc/types/index.ts - Update
AgentRepository.findAll()to filter byorganizationId - Add
organizationIdparameter toAgentService.getAgentById(),updateAgent(),decommissionAgent(); throwAuthorizationErroron mismatch - Update
AgentController.registerAgent()to forceorganizationIdfromreq.user.organization_id - Update
AgentController.listAgents()to forcefilters.organizationIdfromreq.user.organization_id - Update
AgentController.getAgentById(),updateAgent(),decommissionAgent()to passreq.user.organization_idto service - Update
docs/openapi/agent-registry.yamlwith 403 responses and security enforcement descriptions - Ownership guard unit tests added to
tests/unit/controllers/AgentController.test.ts(23 tests, all passing). Note: Test C.7 end-to-end regression is a field trial integration test run by DevOps against live containers — it is not a unit test.