feat(registry): añade FileSystemPolicyStore con carga YAML versionada

Incluye 'yaml' en los overrides de mypy (PyYAML no trae type stubs).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Juan
2026-05-10 10:37:53 +02:00
co-authored by Claude Opus 4.7
parent 2fffecb988
commit 85906de832
5 changed files with 122 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
name: test_policy
versions:
- id: v1
hash: deadbeef
author: pytest
message: fixture inicial
created_at: 2026-01-01T00:00:00Z
active_version: v1
+13
View File
@@ -0,0 +1,13 @@
name: test_policy
version: v1
description: Política de prueba
input_validators:
- type: detect_pii
config:
entities: [PERSON, EMAIL]
severity_on_match: block
output_validators:
- type: schema_match
config:
severity_on_mismatch: block
on_validator_error: fail_closed