1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Codegen policy for support.
#
# `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:
- "src/application/service/support_events.rs"
- "src/application/service/support_ports.rs"
- "src/application/service/support_write_service.rs"
# Own the hand-written support SQL (the SLA definition + its per-priority targets, the SLA clock's
# gated transitions, the escalation CAS, the warranty claim lifecycle) that the write service
# orchestrates. Declared here — not renamed with a `_custom` suffix — so the generator skips them
# wholesale; this declaration is what makes editing them legitimate.
- "src/infrastructure/persistence/issue_repository.rs"
- "src/infrastructure/persistence/service_level_agreement_repository.rs"
- "src/infrastructure/persistence/service_level_priority_repository.rs"
- "src/infrastructure/persistence/warranty_claim_repository.rs"
- "tests/integrity_probes.rs"
- "tests/common/mod.rs"
- "tests/support_escalation_seam.rs"
- "tests/support_golden_cases.rs"
- "scripts/**"
- "tests/escalation_outbox_durability.rs"
# Hand-authored migration (the guarded company-artifact strip — the strip's ordering guard
# is hand-authored logic, not schema-derived emission).
- "migrations/20260909104525_strip_tenancy.up.sql"
- "migrations/20260909104525_strip_tenancy.down.sql"
# Hand-authored behavior (services + their HTTP surface). Examples:
# - "src/application/service/onboarding_service.rs"
# - "src/presentation/http/guarded_routes.rs"
# Behavior tests (the golden cases / oracle) + BDD features.
- "tests/features/**"
# - "tests/*_golden_cases.rs"
# - "tests/integrity_probes.rs"
# Hand-authored module documentation.
- "docs/**"