Skip to content

docs(epic): promote REST API contract-first draft to open issue SI-33 and narrow SI-30 scope - #1931

Merged
josecelano merged 1 commit into
torrust:developfrom
josecelano:docs/1669-si-specs-review
Jun 22, 2026
Merged

josecelano merged 1 commit into
torrust:developfrom
josecelano:docs/1669-si-specs-review

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

Spec review for EPIC #1669 subissues SI-30 and SI-33:

SI-30 (#1924) — narrowed scope

  • Now focuses on UDP-side trait extraction only (BanningStats, UdpCoreStatsRepository, UdpServerStatsRepository)
  • REST-side wiring deferred to SI-33 (contract-first architecture)
  • Added deep coupling analysis documenting exactly what the REST layer uses from each UDP type
  • Added corrected architectural understanding (REST API is orchestrating service, not layer inversion)
  • MAX_CONNECTION_ID_ERRORS_PER_IP → config option

SI-33 (#1930) — new open issue

EPIC.md

  • Updated subissue table to reflect new SI-30 scope and added SI-33 entry
  • Corrected description of rest-api-core → udp-server dependency from "layer violation" to "cross-service orchestration dep"

Pre-merge checks

  • cargo machete — pass
  • linter all — pass
  • cargo test --doc --workspace — pass
  • cargo +nightly fmt --check — pass
  • cargo +nightly check --all-targets --all-features — pass
  • cargo +stable test --all-targets --all-features — pass

Copilot AI review requested due to automatic review settings June 22, 2026 17:54

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

Updates EPIC #1669 documentation to reflect the narrowed SI-30 scope (UDP-side trait extraction only) and to promote the REST API contract-first architecture draft into a new open subissue SI-33 (#1930), keeping the EPIC’s subissue tracking and cross-links consistent.

Changes:

  • Promote SI-33 spec to an open issue document and link it into the EPIC and SI-30 specs.
  • Narrow SI-30 spec scope and add a detailed coupling analysis + clarified architecture rationale.
  • Update EPIC.md subissue lists/wording to reflect SI-30’s revised intent and add SI-33.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
docs/issues/open/1930-1669-si-33-rest-api-contract-first-architecture.md Promotes the REST API contract-first architecture draft into an open issue spec and links it into the EPIC/SI set.
docs/issues/open/1924-1669-si-30-decouple-rest-api-core-from-udp-internals.md Narrows SI-30 scope to UDP-side interface segregation and documents deep coupling analysis + updated acceptance criteria.
docs/issues/open/1669-overhaul-packages/EPIC.md Updates EPIC tracking tables/entries to reflect SI-30 scope change and add SI-33 (#1930).
Comments suppressed due to low confidence (1)

docs/issues/open/1930-1669-si-33-rest-api-contract-first-architecture.md:9

  • Frontmatter doesn’t follow the documented issue-spec schema: doc-type should be issue (not spec), branch and related-pr are required fields, and last-updated-utc should include HH:MM (see docs/skills/semantic-skill-link-convention.md).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

github-issue: 1924
spec-path: docs/issues/open/1924-1669-si-30-decouple-rest-api-core-from-udp-internals.md
last-updated-utc: 2026-06-20
last-updated-utc: 2026-06-22
Comment on lines 358 to +372
## Out of Scope

- Extracting any UDP package to a standalone repository.
- Changing the HTTP tracker side of the REST layer.
- Relocating test environments (already done in SI-23/SI-24/SI-25).
- Removing `udp-server` or `udp-core` from Cargo.toml files (the REST API is
an orchestrating service that legitimately depends on other services).
- Restructuring the REST API's own server/core/protocol layers — this is
tracked by [SI-33 (contract-first REST API architecture)](1930-1669-si-33-rest-api-contract-first-architecture.md).
- Changing the HTTP tracker side of the REST layer.
- Relocating test environments (already done in SI-23/SI-24/SI-25).
- Removing `udp-server` or `udp-core` from Cargo.toml files (the REST API is
an orchestrating service that legitimately depends on other services).
- Restructuring the REST API's own server/core/protocol layers (tracked in a
separate spec).
@josecelano josecelano self-assigned this Jun 22, 2026
@josecelano

Copy link
Copy Markdown
Member Author

ACK 1e6a898

@josecelano
josecelano merged commit cefc37f into torrust:develop Jun 22, 2026
1 check passed
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.

2 participants