Skip to content

docs(issues): [#2449] refresh the SI-23 and SI-24 specs after SI-22 - #2635

Merged
josecelano merged 1 commit into
torrust:developfrom
josecelano:2449-refresh-si-23-si-24-specs-spec
Oct 24, 2026
Merged

josecelano merged 1 commit into
torrust:developfrom
josecelano:2449-refresh-si-23-si-24-specs-spec

Conversation

@josecelano

Copy link
Copy Markdown
Member

Related to #2449 and #2450

Part of EPIC #1488 (Overhaul: Tracker Shutdown), roadmap rows 16 and 17 (SI-23 and SI-24). This is a spec-only refresh, so it has no closing keyword: it is meant to precede the implementation of both issues.

Summary

The SI-23 (#2449) and SI-24 (#2450) specs were last updated on 2026-10-15. Sub-EPIC #2410 (SI-22) then rewrote the HTTP and UDP test environments in #2416, which gave them independent server and listener tokens with a DropGuard each, and added the ADR that supersedes the cancellation-tree ADR. I re-checked both specs against develop.

What still holds, read from the source: the 58 stop() calls under the REST API package's tests, the 90 s REST API drain, the single service.server.stop() consumer in the health-check tests, the 8 env.stop() calls and 8 state.binding reads there, and the 5 s health-check drain. Neither environment's start() spawns an event listener.

What this PR changes in each spec: the Related ADRs now name the ADR that supersedes the cancellation-tree ADR, the frontmatter lists it and the archived #2471 spec, and the Design and Ownership Review gains a token-shape point. Neither environment owns a listener, so each keeps one token and one DropGuard and must not copy the two-token shape of the HTTP and UDP environments. A progress-log entry records the re-check. There is no task, acceptance-criterion or scope change.

Files touched

  • docs/issues/open/2449-1488-si-23-migrate-rest-api-test-environment/ISSUE.md
  • docs/issues/open/2450-1488-si-24-migrate-health-check-api-test-environment/ISSUE.md

Validation

  • The pre-commit hook and the pre-push checks passed.
  • Every counted fact above was re-derived from the current tree with grep; the claims about the old legacy drop behaviour keep their existing "read from source, not run" marking.
  • The commit-id check from the open-pull-request skill prints nothing.

…SI-22

The HTTP and UDP test environments were rewritten in torrust#2416 after these specs
were written. Re-checked both against develop: the counts, drain budgets and
consumers still hold, and neither environment owns an event listener. Point
the Related ADRs at the ADR that supersedes the cancellation-tree ADR, and
say that these environments keep one token and one DropGuard instead of the
two-token shape of the HTTP and UDP environments. No task, acceptance
criterion or scope change. Related to torrust#2450.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 24, 2026 19:39
@josecelano josecelano self-assigned this Oct 24, 2026
@josecelano
josecelano requested a review from da2ce7 October 24, 2026 19:49

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.

🟢 Approval recommended

The focused documentation updates align with the shutdown design and leave no unresolved blocking issues.

No open issues 🎉

What changed in this PR

Refreshes the SI-23 and SI-24 migration specifications after SI-22, aligning their planned test-environment lifecycles with the updated shutdown design. This is documentation-only; tasks, acceptance criteria, and scope remain unchanged.

Changes:

  • Links the superseding shutdown ADR and archived HTTP drop-path issue.
  • Clarifies that each environment needs one cancellation token and one DropGuard, since neither owns an event listener.
  • Records source rechecks and updates timestamps.
File Description
docs/​issues/​open/​2450-1488-si-24-migrate-health-check-api-test-environment/​ISSUE.md Refreshes health-check lifecycle guidance, references, and verification notes.
docs/​issues/​open/​2449-1488-si-23-migrate-rest-api-test-environment/​ISSUE.md Refreshes REST API lifecycle guidance, references, and verification notes.

Review effort: Balanced

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed at d951be41cd267a47f5d12d1e4563474cc7570a7f. Recomputed from the bytes at this head, against the merge base abce11ec8; git merge-tree against develop abce11ec8 is clean (exit 0, no conflict). The PR is one commit to the two specs, +28/−2.

The counted facts. All hold exactly:

  • Under packages/axum-rest-api-server/tests/ there are 58 .stop() calls in 16 files, every one an env.stop().await on a code line, so "about 58" needs no narrower definition.
  • API_GRACEFUL_DRAIN_TIMEOUT is 90 s, and HEALTH_CHECK_API_GRACEFUL_DRAIN_TIMEOUT is 5 s.
  • The health-check contract tests have one service.server.stop() (contract.rs:121, on the REST API environment built at line 115), 8 env.stop() calls and 8 env.state.binding reads.
  • The REST API start() calls only ApiServer::start, and the health-check start() spawns one task that runs server::start. No file in either package starts an event listener.

The specs' own facts give the same values.

What changed upstream. The HTTP and UDP environments hold a server token and a listener token, with one DropGuard each. The cancellation-tree ADR is marked Superseded by the event-flow ADR. D20 gives one token per stage because the owner enforces the order between stages. For an environment with no listener stage, that means one token and one DropGuard, as the new point says. The archived #2471 spec is at the listed path.

The two diffs. Both new frontmatter entries resolve. last-updated-utc is 19:34, against the commit at 19:34:40. The progress-log entries are appended and dated, and the 6 relative links resolve. The Scope, Design Decisions, Implementation Plan, Acceptance Criteria and Verification Plan sections are byte-identical to the base. The two specs make the same change in the same words and differ only in their fact numbers and counts. One sentence narrows the ADR section further than the ADR does (F1).

Anything stale. Nothing that the SI-22 changes made false remains. The drop-path notes still say, in the past tense, that the HTTP environment lacked a guard (#2471). That is true, although #2471 has since fixed it.

Hygiene.

  • The subject is Conventional. develop tags commits about two issues both ways, and no rule requires the second tag.
  • Author and committer match.
  • The commit carries one attribution footer naming the review bot's account; no rule in the tree forbids it.
  • git diff --check is clean, and the commit-id check prints nothing.
  • The skill's scan finds nothing in the description, the title or the message.

The review bot. There is no review in the capture.

Findings

  • F1 Nit: "applies to this environment only where a listener exists" narrows the ADR's "Test environments" section, whose DropGuard rule applies to these environments too.

Checked, no finding: every count and constant; both start() functions; the upstream token shape; D20; the supersede marker; the frontmatter paths; the unchanged sections; links; the keyword scans; the commit-id check.

Checks

On the loop's compute hub at this head, against the merge base abce11ec8, the #2630 merge, which is develop (receipt server-gates-sojka-448): pre-commit profile gate exit 0 (86 s); linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 16 errors / 4 warnings at this head and 16 / 4 at the base re-measured, the same 20 diagnostics by path and category, none in the two specs this PR touches. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is abce11ec8.

[Order shutdown by event flow and drain event listeners](../../../adrs/20261021184946_order_shutdown_by_event_flow_and_drain_event_listeners.md),
which supersedes
[Adopt a supervised cancellation tree for shutdown](../../../adrs/20260902074438_adopt_supervised_cancellation_tree_for_shutdown.md).
Its "Test environments" section applies to this environment only where a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Nit][F1] The ADR's "Test environments" section applies here in part

Section 8 of the event-flow ADR is about the two environments that have listeners, but one of its rules is general: 'Dropping a CancellationToken does not cancel it, so each owner that can be dropped holds a DropGuard.' The Drop path point below relies on exactly that rule. 'Applies to this environment only where a listener exists' reads as if none of the section applies. Saying that its two-stage order applies only where a listener exists, while its DropGuard rule applies here too, would keep a reader from skipping it. The same sentence is in the SI-24 spec (line 118).

@da2ce7

da2ce7 commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

ACK d951be4 — every counted fact and drain constant both specs state, both environments' start paths, the upstream token shape against D20 and the event-flow ADR, the frontmatter paths, the unchanged task and criteria sections and every relative link were recomputed from the bytes at this head with no blocking finding

@josecelano

Copy link
Copy Markdown
Member Author

ACK d951be4

@josecelano
josecelano merged commit e80d5c7 into torrust:develop Oct 24, 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.

3 participants