diff --git a/AGENTS.md b/AGENTS.md index cd1d73c..385e622 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,5 +1,11 @@ # GovOPlaN Transparency Codex Guide +## Documentation Contract + +- Treat documentation as part of every behavior change. Update this module's manifest-driven `DocumentationTopic` contributions for affected user and administrator behavior. +- Keep feature content here; `govoplan-docs` projects it without importing Transparency internals. +- Maintain a static user/admin baseline and run `/mnt/DATA/git/govoplan/tools/checks/check-manifest-shapes.py` after behavior or manifest changes. + ## Scope This repository owns the GovOPlaN Transparency platform module seed. diff --git a/src/govoplan_transparency/backend/manifest.py b/src/govoplan_transparency/backend/manifest.py index 861470b..1f29c0d 100644 --- a/src/govoplan_transparency/backend/manifest.py +++ b/src/govoplan_transparency/backend/manifest.py @@ -2,6 +2,7 @@ from __future__ import annotations from govoplan_core.core.access import CAPABILITY_AUTH_PERMISSION_EVALUATOR, CAPABILITY_AUTH_PRINCIPAL_RESOLVER from govoplan_core.core.modules import DocumentationLink, DocumentationTopic, ModuleManifest, PermissionDefinition, RoleTemplate +from govoplan_core.core.provider_governance import declared_module_architecture MODULE_ID = "transparency" MODULE_NAME = "Transparency" @@ -65,8 +66,8 @@ DOCUMENTATION = ( "database models, migrations, and WebUI routes are introduced." ), layer="available", - documentation_types=("admin",), - audience=("operator", "module_admin", "product_owner"), + documentation_types=("admin", "user"), + audience=("user", "operator", "module_admin", "product_owner"), order=100, related_modules=OPTIONAL_DEPENDENCIES, links=( @@ -94,6 +95,15 @@ manifest = ModuleManifest( permissions=PERMISSIONS, role_templates=ROLE_TEMPLATES, documentation=DOCUMENTATION, + architecture=declared_module_architecture( + layer="content_records_evidence", + kind="domain", + maturity="scaffold", + documentation_ref="docs/TRANSPARENCY_DOMAIN_BOUNDARY.md", + known_limits=("Publication, disclosure review, and request lifecycles are not implemented yet.",), + owned_concepts=("publication", "disclosure decision", "transparency request"), + non_owned_concepts=("record retention", "file content", "formal decision"), + ), )