Skip to content

docs(issues): add #2067 analysis specification - #2068

Merged
josecelano merged 3 commits into
torrust:developfrom
josecelano:2067-analyze-flat-service-configuration
Aug 21, 2026
Merged

josecelano merged 3 commits into
torrust:developfrom
josecelano:2067-analyze-flat-service-configuration

Conversation

@josecelano

@josecelano josecelano commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds the approved, analysis-only specification package for #2067 and records it as the thirteenth native subissue of EPIC #1978. The package includes the issue contract, a final decision-report template, a reproducible evidence ledger, and a preserved preliminary-impressions snapshot.

The EPIC documentation also reconciles #2023 as the twelfth native subissue before adding #2067. This PR does not implement a new configuration schema, loader, migration, normalizer, or runtime behavior.

Proposed Shape, Not an Implementation

The analysis will evaluate whether a future schema should replace v3 role-specific root sections with one heterogeneous services list. The following is illustrative only: it is not a selected format, a v4 commitment, or a change introduced by this PR.

Current v3 shape:

[[http_trackers]]
bind_address = "0.0.0.0:7070"
public_url = "https://tracker.example.com/announce"

[[udp_trackers]]
bind_address = "0.0.0.0:6969"
public_url = "udp://tracker.example.com:6969"

[http_api]
bind_address = "127.0.0.1:1212"

[health_check_api]
bind_address = "127.0.0.1:1313"

[udp_tracker_server]
ip_bans_reset_interval_in_secs = 86400

Illustrative post-analysis successor shape:

[[services]]
kind = "http_tracker"

[services.configuration]
bind_address = "0.0.0.0:7070"
public_url = "https://tracker.example.com/announce"

[[services]]
kind = "udp_tracker"

[services.configuration]
bind_address = "0.0.0.0:6969"
public_url = "udp://tracker.example.com:6969"

[[services]]
kind = "http_api"

[services.configuration]
bind_address = "127.0.0.1:1212"

[[services]]
kind = "health_check_api"

[services.configuration]
bind_address = "127.0.0.1:1313"

[udp_tracker_server]
ip_bans_reset_interval_in_secs = 86400

The candidate uses an adjacent kind discriminator with a nested per-service configuration table, preserving each service type's distinct fields. The analysis may reject or revise this representation after testing TOML and Serde behavior, Figment overrides, validation, migration, role-local ConfigurationInstanceId allocation, startup dependencies, shared UDP policy, and secret redaction. The full illustrative comparison is in docs/issues/open/2067-1978-analyze-flat-service-configuration/ISSUE.md.

Why

The proposed flat heterogeneous service collection is a potentially useful future configuration design, but it has cross-cutting implications for migration, role-local service identity, grouped startup, shared UDP policy, environment overrides, and secret redaction. The specification creates a bounded, evidence-driven analysis before any implementation is considered.

Validation

  • Mandatory pre-commit gate passed: dictionary formatting, cargo machete --with-metadata, cargo deny check bans, linter all, Containerfile lint, and cargo test --doc --workspace.
  • git diff --cached --check passed before the signed commit.

Review Request

@da2ce7, this analysis starts from your proposal to represent listener services as one flat, ordered heterogeneous collection. Please review the illustrative before/after shape, scope, candidate representation, and decision criteria before the investigation begins.

Issue

Related to #2067

@josecelano
josecelano requested review from da2ce7 and a lite review from Copilot August 20, 2026 16:50
@josecelano josecelano linked an issue Aug 20, 2026 that may be closed by this pull request
@josecelano josecelano self-assigned this Aug 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new folder-based, analysis-only issue specification package for #2067 (a post‑v3 research subissue of EPIC #1978), including the execution contract, evidence ledger, decision report template, and preserved preliminary impressions, and updates the EPIC documentation to register #2067 as the next native subissue.

Changes:

  • Add docs/issues/open/2067-1978-analyze-flat-service-configuration/ with ISSUE.md, analysis.md, evidence.md, and first-impressions.md.
  • Update EPIC #1978 spec to include #2067 in the subissue list and delivery strategy notes.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/issues/open/2067-1978-analyze-flat-service-configuration/ISSUE.md Adds the analysis contract/spec for issue #2067, including deliverables, scope, plan, and acceptance criteria.
docs/issues/open/2067-1978-analyze-flat-service-configuration/first-impressions.md Captures an immutable “pre-analysis” snapshot to compare against final evidence and recommendation.
docs/issues/open/2067-1978-analyze-flat-service-configuration/evidence.md Establishes the evidence ledger structure and initial record placeholders.
docs/issues/open/2067-1978-analyze-flat-service-configuration/analysis.md Adds the planned decision report template with required sections.
docs/issues/open/1978-configuration-overhaul-epic/EPIC.md Registers #2067 as subissue 13 and updates EPIC bookkeeping (artifacts, phases, progress log, AC evidence).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@josecelano
josecelano force-pushed the 2067-analyze-flat-service-configuration branch from 8197aca to 8febd37 Compare August 21, 2026 08:34
@josecelano

Copy link
Copy Markdown
Member Author

ACK 8febd37

@josecelano
josecelano merged commit 4578c80 into torrust:develop Aug 21, 2026
1 check passed
@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: This pull request added an analysis specification and updated an epic record, with no executable effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants