docs: apply fleet-template (16-artifact scaffold)

Adds missing standard artifacts:
- README.md (if missing)
- AGENTS.md (AI agent contract)
- PLAN.md (current sprint)
- STATUS.md (where we are)
- DEVELOPMENT.md (dev workflow)
- DEPLOYMENT.md (deploy procedure)
- TESTING.md (test strategy)
- DECISIONS.md (ADR index + templates)
- .github/CODEOWNERS
- .github/workflows/ci.yml

Preserves all existing artifacts.

Refs: RugMunchMedia/fleet-template
This commit is contained in:
Crypto Rug Munch 2026-07-02 02:07:13 +07:00
commit 47ba268131
310 changed files with 38429 additions and 0 deletions

59
tests/test_gdpr.py Normal file
View file

@ -0,0 +1,59 @@
"""Tests for GDPR compliance portal."""
from gdpr import (
check_consent,
get_retention_policy,
process_deletion,
record_consent,
revoke_consent,
)
def test_record_consent() -> None:
import asyncio
result = asyncio.run(record_consent("user@example.com", "data_collection", True))
assert result["success"] is True
assert result["consent"]["consent_given"] is True
def test_check_consent_given() -> None:
import asyncio
asyncio.run(record_consent("check@example.com", "data_collection", True))
result = check_consent("check@example.com", "data_collection")
assert result["consent_given"] is True
assert result["valid"] is True
def test_check_consent_not_given() -> None:
result = check_consent("nonexistent@example.com", "data_collection")
assert result["consent_given"] is False
def test_revoke_consent() -> None:
import asyncio
asyncio.run(record_consent("revoke@example.com", "data_collection", True))
result = revoke_consent("revoke@example.com", "data_collection")
assert result["success"] is True
# Verify revocation
check = check_consent("revoke@example.com", "data_collection")
assert check["consent_given"] is False
def test_process_deletion() -> None:
import asyncio
asyncio.run(record_consent("delete@example.com", "data_collection", True))
result = process_deletion("delete@example.com")
assert result["success"] is True
# Verify consent gone
check = check_consent("delete@example.com", "data_collection")
assert check["consent_given"] is False
def test_retention_policy() -> None:
policy = get_retention_policy()
assert "consent_records" in policy
assert "quality_history" in policy