Files
cleveragents-core/features
HAL9000 fc774aba20 fix(data-integrity): remove silent argument swap in ValidationAttachmentRepository.attach (#8177)
Fixed a critical data integrity bug where validation_name and resource_id
arguments were being silently swapped based on the fragile heuristic
('/' in resource_id and '/' not in validation_name). This caused silent
data corruption without any error or warning. The conditional swap block
has been removed, ensuring arguments flow directly from caller to the
persistence layer in their declared order. Added comprehensive BDD test
suite (11 scenarios) verifying argument preservation across all boundary
conditions including slash-containing IDs, namespacing, optional params,
and duplicate rejection.
2026-05-08 16:31:24 +00:00
..