# Codegen policy for activity.
#
# `user_owned` globs are hand-written files that live inside generator-owned trees but are
# NOT schema-derived. `metaphor schema generate [--force]` skips them wholesale (never reads,
# merges, or deletes them). Everything else in src/ is regenerated from schema/models.
#
# Re-exports/declarations that must sit alongside generated code live inside
# `// <<< CUSTOM ... // END CUSTOM` markers (service/mod.rs, presentation/http/mod.rs, lib.rs)
# and are preserved by the marker mechanism, not listed here.
#
# Add your hand-authored services, handlers, tests, and docs below as you write them.
user_owned:
# Hand-authored behavior (services + their HTTP surface). Examples:
# - "src/application/service/onboarding_service.rs"
# - "src/presentation/http/guarded_routes.rs"
# This module defines no saga workflows; the empty composer is hand-kept so regen
# doesn't resurrect the skeleton's example saga.
- "src/application/workflows/mod.rs"
# Hand-authored migration that strips the company-fence artifacts (the company-leading
# index, the activities_company_isolation RLS policy, and the company_id column) from
# activity.activities. The ordering guard inside is hand-written logic, not
# schema-derived emission, so the pair must never be regenerated or deleted.
- "migrations/20260909120000_strip_tenancy.up.sql"
- "migrations/20260909120000_strip_tenancy.down.sql"
# Behavior tests (the golden cases / oracle) + BDD features.
- "tests/features/**"
# - "tests/*_golden_cases.rs"
# - "tests/integrity_probes.rs"
# Hand-authored module documentation.
- "docs/**"