Repository navigation
Labels
Description
Goal
Define tracker-owned canonical service-role and configuration-instance identity types that can be used consistently by bootstrap, runtime registration, and event-metrics consumers.
Background
The earlier #2036 plan combined two deliveries:
- defining canonical tracker identity types; and
- migrating
torrust-server-lib::Registarand tracker registrations to carry them.
The registration migration cannot be completed until #2035 propagates identity through actual bootstrap. The migration is therefore split into #2041. This issue owns only the independently mergeable canonical type foundation.
Scope
- Define tracker-owned canonical service-role values without coupling generic server/network libraries to tracker variants.
- Define canonical configuration-instance identity with clear scope and equality semantics.
- Document and unit-test those types.
- Verify Fix duplicate port-zero tracker instance bootstrap #2035, Migrate runtime service registry metadata #2041, and Normalize per-instance event metrics policy #2039 can consume them without competing identity models.
Out of scope
- Duplicate port-zero bootstrap storage: Fix duplicate port-zero tracker instance bootstrap #2035.
torrust-server-libregistration/query/readiness API and release: Migrate runtime service registry metadata #2041.- Event-metrics listener filtering: Normalize per-instance event metrics policy #2039.
Implementation outline
- Define tracker-owned service role type.
- Define canonical configuration-instance identity type.
- Verify intended consumer boundaries.
- Run focused tests and
linter all.
Acceptance criteria
- Canonical service-role values remain tracker-owned.
- Configuration-instance identity is typed, documented, and independent of configured socket addresses.
- Fix duplicate port-zero tracker instance bootstrap #2035, Migrate runtime service registry metadata #2041, and Normalize per-instance event metrics policy #2039 can use the same type without conversion to competing identity types.
- Focused tests and
linter allpass.
Activity
docs(issues): add specs for torrust#2035 and torrust#2036
Merge #2034: feat(tests): add main-app integration test foundation
[-]Add runtime service registry metadata[/-][+]Define canonical runtime service identity[/+]docs(issues): split runtime registry migration from torrust#2036
docs(events): plan per-instance metrics normalization
Merge #2040: docs(events): plan per-instance metrics normalization
docs(issues): record #2036 identity decisions
Merge #2058: chore(issues): archive eight completed issue specs