Repository navigation
docs(adrs): [#2846] keep Registar registrations for the process lifetime (SI-27 no-go) - #2890
Conversation
…s lifetime Record the SI-27 no-go as a root ADR: stopped services are not deregistered. During shutdown the health check answers 503 from the readiness state without reading the registry, and outside shutdown a stale entry fails its live probe. The ADR lists the alternatives and the reopening trigger (restarting one service in a running process). Amend the SI-21 ADR consequence that pointed to a deregistration follow-up, register the ADR in the index, and point to it from the AppContainer registar field. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mark T1 done (no-go) with the investigation and the maintainer's decision in the progress log, mark T2-T6 not planned, and move the spec to docs/issues/closed/. EPIC torrust#1488 row 24 is now "Not planned" and links the registration lifetime ADR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
339f25b to
38b2c1e
Compare
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
No open issues 🎉
What changed in this PR
Records the decision for SI-27/#2846 that Registar registrations persist for the lifetime of the process (no deregistration on service stop), documenting rationale and linking it across specs/ADRs without changing runtime behavior.
Changes:
- Added a new root ADR documenting the “keep registrations until process exit” decision and its reopening trigger.
- Updated existing ADR/spec/EPIC docs to mark SI-27 as not planned and to link the new ADR.
- Added an in-code comment pointing to the new ADR.
| File | Description |
|---|---|
| src/container.rs | Adds a comment clarifying Registar registration lifetime and links the ADR. |
| docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md | Updates EPIC roadmap row for SI-27 to “Not planned” and links the ADR. |
| docs/issues/closed/2846-1488-si-27-deregister-stopped-services/ISSUE.md | Moves SI-27 to closed/not planned and captures the no-go decision with links. |
| docs/adrs/index.md | Registers the new ADR in the ADR index. |
| docs/adrs/20261116172628_keep_registar_registrations_for_the_process_lifetime.md | New ADR capturing decision, rationale, alternatives, and reopening trigger. |
| docs/adrs/20261104120915_stop_the_health_check_api_last_to_report_not_ready_during_shutdown.md | Amends consequences section to reflect SI-27 no-go and links the new ADR. |
Review effort: Lite
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 38b2c1e060b33013a3c158c0f72314400662eb84. Recomputed from the bytes at this head, against its merge base 9e463cb0c (the branch was rebased from b009b6425); git merge-tree --write-tree against develop 9e463cb0c is clean and yields this head's own tree.
Process: a root ADR plus a spec closure, governed by create-adr, create-issue and cleanup-completed-issues, with commit-changes and open-pull-request; their move to the flat skills directory changed only relative links. The ADR is root-placed, timestamp-named, dated and indexed; the archive move repaired every live reference.
The change against its claim: the rebase changed no content; against the earlier range only the index context and the commit that carries the rename differ. The shutdown argument recomputes: begin_shutdown marks not ready before JobManager::cancel (src/app.rs:126-128); tokens are cancelled only by request_shutdown, by mark_finished once shutdown was requested, or at reservation after it (manager.rs:392, 469-511); the handler answers 503 "shutting down" before touching the registry (handlers.rs:29-30); the health check API is reserved stop-last and spawned last (app.rs:201, 214) and is the only production reader of the registry. The capability statements do not hold for the health check API server (F1).
Consistency: every relative link and frontmatter path in the changed files resolves; nothing still points at the spec's open/ path; no added or edited file names a skill path under the old skills folder, and the skill links are names that resolve in the current one, so no redirect stub is involved; no dictionary change.
Hygiene: Conventional subjects with [#2846]; author identity equals committer identity on both commits; each commit ends with an attribution footer, and no rule in the tree forbids one; git diff --check is clean; the skill's commit-id check prints nothing; no closing keyword in the title, description or messages, as the not-planned close intends.
Findings: F1 (Major), F2-F3 (Minor), F4-F7 (Nit), inline.
Checked, no finding: src/container.rs changes a comment only, within max_width = 130; DuplicateBinding and the SI-24 deregister exist where cited; the second commit performs the move its message names; one automated review left no inline comment and no thread is open, so no audit record is due.
Checks
On the loop's compute node at this head, against the merge base 9e463cb0c (receipt server-gates-kranich-998): the repository's pre-commit gate and lint roster exit 0 (143 s wall). The only Rust change is a field comment in src/container.rs, so no package tests were run. This PR has no audit record of its own. The review was first made at 339f25b48 and extended to this head after the rebase onto develop. F1 checked against the bytes at posting: packages/axum-health-check-api-server/src/server.rs at this head takes registar: Registar<RuntimeServiceMetadata> in start_with_cancellation, registers through registar.give_form(), and documents CancellationRunning::service_binding as the binding a caller passes to Registar::deregister, while the ADR's lines 55 to 56 and 84 to 86 say a server holds no handle to the Registar and can never remove anything. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "". At posting, develop is 9e463cb0c.
…hree form-holding servers The HTTP tracker, REST API and UDP tracker receive a single-use registration form, but the health check API server receives the whole Registar, registers itself through give_form() and already returns its binding. Scope the capability reason and both alternatives to the three form-holding servers, and append a correction to the spec progress log. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…27 spec The frontmatter validator and cleanup-completed-issues require status: done in docs/issues/closed/; the not-planned outcome is stated in the body. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d by the no-go The EPIC position line still said SI-27 must land before the first publish (torrust#2583); after the no-go it no longer gates it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e SI-27 spec The Architectural Decisions section still said no ADR was expected; it now names the new ADR, the SI-21 ADR amendment and that no version bump is needed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… are probed The health check skips registrations without a check (filter_map over spawn_check), and the health check API registers itself with none. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ration lifetime ADR create-adr Step 3.5 asks for an Affected Code section; the code links were only in the frontmatter and the references. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…#2890 Record da2ce7's review 5924864275 (F1 to F7: six fixed, F7 declined with a reply) and Copilot's clean review 5924775596. Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 22787e8c4e05482be8268609731edeb4b028a91f. Recomputed from the bytes at this head, against its merge base 9e463cb0c; git merge-tree --write-tree against develop 9e463cb0c is clean and yields this head's own tree.
Process: the six fix commits and the audit commit are Conventional docs subjects with [#2846], each diff matching its message. docs/pr-reviews/pr-2890-review/PR-REVIEW.md follows docs/templates/PR-REVIEW-TEMPLATE.md field for field and holds one row per thread of the earlier review: reviewer ID, severity, category, disposition, reply URL and, for F1 to F6, the subject of the commit that made the fix; F7 is a no-action, superseded row citing its reply. Each row's ID and severity equal its source comment's bracket, each reply sits on its own thread, all seven threads are resolved, and the Processing Log times match the commit and reply times. The validator's logic, run offline on the captured comments and the branch commits, reports ok for 7 rows and 5 log entries; three corrupted copies (severity, reply thread, fix subject) each fail.
The change against its claim: F1 is fixed. The ADR names the HTTP tracker, REST API and UDP tracker as the form-holding servers and the health check API server as holding the Registar and returning its binding (server.rs:53-56, 76-83, 119-121); the reasons and both alternatives are scoped to three packages; the spec appends a correction; the description is corrected. F2 to F6 are fixed, and the decline of F7 follows open-pull-request's preference for new commits during a review round. One new Nit on the Affected Code section (F8).
Consistency: every relative link and frontmatter path in the changed files resolves, including the audit record's skill link.
Hygiene: author identity equals committer identity on every commit; each commit ends with an attribution footer, and no rule in the tree forbids one; git diff --check is clean; the commit-id check prints nothing; no closing keyword in the title, description or messages.
Findings: F8 (Nit), inline; it does not hold the verdict.
Checked, no finding: status: done meets the validator's lifecycle rule; "the health check API job already has both" holds (src/bootstrap/jobs/health_check_api.rs:45-61); the unwrapped Agreement line 71 is cosmetic, with MD013 off.
Checks
On the loop's compute node at this head, against the merge base 9e463cb0c (receipt server-gates-kranich-1005): the lint batteries ran fresh at this head and pass (markdown 26 s, cspell 15 s, local links), the frontmatter check reports the same 10 errors and 4 warnings as develop's re-measured baseline, and the pre-commit gate exits 0 in 2 s on build artifacts already warm at this head (0 of 833 rebuilt; no Rust file moved since round 1, where it took 143 s). The audit-record validator for this PR reports status ok with 7 rows, 5 log entries and 0 failures. The round was first made at 3c130d570 and extended to this head when the audit commit landed. F1's fix checked against the bytes at posting: the ADR now says three of the four servers cannot remove their own entry (line 56) and that the health check API server holds the Registar (line 58), and packages/axum-http-server/src/server.rs takes a ServiceRegistrationForm (lines 205 and 228). The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "". At posting, develop is 9e463cb0c.
|
ACK 22787e8 — F1 to F7 are fixed or accepted at this head and the audit record's seven rows match their threads and pass the validator logic |
…ng components reserve also issues an already-cancelled token after shutdown, and each server cancels its own token when its registration fails at startup. Say that the job manager cancels the running components only once shutdown is requested, and append the correction to the spec progress log. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t#2890 Record da2ce7's review 5925179048 (F8, fixed) and the dismissal of its approval by the fix push. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK 7c2f1af |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 7c2f1afc94ab69a6a11b50995c4fcb93840b75d1. Recomputed from the bytes at this head, a fast-forward of the last reviewed head, against its merge base 9e463cb0c; git merge-tree --write-tree against develop 9e463cb0c is clean and yields this head's own tree.
Process: two commits since the last review, each a Conventional docs subject with [#2846] whose diff matches its message. The audit commit adds the F8 row, its detail entry and two Processing Log entries: reviewer ID F8 and severity Nit equal the source comment's bracket, the reply sits on the F8 thread, the fix subject names the commit that narrowed the wording, the thread is resolved, and the dismissal the log records matches the forge timeline. All eight threads now have a reply, a row and a resolution. The validator's logic, run offline on the captured comments and the branch commits, reports ok for 8 rows and 7 log entries; a copy with F8's severity changed fails.
The change against its claim: F8 is fixed. request_shutdown and mark_finished are where the job manager cancels running components (manager.rs:469-512), reserve issues a pre-cancelled token only after shutdown (manager.rs:392-394), and each server cancels its own token when its registration fails (packages/axum-http-server/src/server.rs:251 and its peers); the description now says "a running component". F1 to F7 are unchanged. One wording slip in the new text (F9).
Consistency: every relative link and frontmatter path in the changed files resolves.
Hygiene: author identity equals committer identity on both commits; each ends with an attribution footer, and no rule in the tree forbids one; git diff --check is clean; the commit-id check prints nothing; no closing keyword in the title, description or messages.
Findings: F9 (Nit), inline; it does not hold the verdict.
Checked, no finding: "Nothing stops one running service while the others keep serving" holds, because a failed registration fails the whole startup (src/app.rs:178-183).
Checks
On the loop's compute node at this head, against the merge base 9e463cb0c (receipt server-gates-kranich-1008): the lint batteries ran fresh at this head and pass (markdown 33 s, cspell 30 s, local links), the frontmatter check reports the same 10 errors and 4 warnings as develop's re-measured baseline, and the pre-commit gate exits 0 on build artifacts already warm at this head (0 of 833 rebuilt; no Rust file moved since round 1). The audit-record validator for this PR reports status ok with 8 rows, 7 log entries and 0 failures. The round was first made at e5ae26a11 and extended to this head when the audit commit landed. F9 checked against the bytes at posting: packages/axum-http-server/src/server.rs calls start_token_aware_runtime (line 234) before form.register (line 242), while the ADR's line 45 says the cancel on a failed registration happens before the server serves. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Build on macos-latest (stable): queued/pending; Build on ubuntu-latest (stable): queued/pending; Build on ubuntu-latest (nightly): queued/pending; Build on windows-latest (stable): queued/pending; Build on macos-latest (nightly): queued/pending; Build on windows-latest (nightly): in_progress/pending; Docker E2E: completed/skipped; Shipped Features: queued/pending; Layer Boundary Bans: queued/pending; Unit (stable): in_progress/pending; Documented Clippy Allows: completed/success; Unit (nightly): queued/pending; Workspace Packaging: completed/success; Test (Docker) (release): in_progress/pending; Docs Lint: completed/success; Generate Coverage Report: queued/pending; Discover Package Coverage: queued/pending". At posting, develop is 9e463cb0c.
|
ACK 7c2f1af — F1 to F8 are fixed or accepted at this head and the audit record's eight rows match their threads and pass the validator logic |
…he start function returns Each server starts serving before it registers, so the cancel on a failed registration happens before its start function returns, not before it serves; a failed registration fails the whole startup. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK f32f852 |
…#2890 Record da2ce7's review 5925370203 (F9, fixed) and the dismissal of its approval by the fix push. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK 6ee332a |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 6ee332ab6b7a107e3ba17a02cc689091aaf24454. Recomputed from the bytes at this head, a fast-forward of the last reviewed head, against its merge base 9e463cb0c; git merge-tree --write-tree against develop 9e463cb0c is clean and yields this head's own tree.
Process: two commits since the last review, each a Conventional docs subject with [#2846] whose diff matches its message. The audit commit adds the F9 row, its detail entry and two Processing Log entries: reviewer ID F9 and severity Nit equal the source comment's bracket, the reply sits on the F9 thread, the fix subject names the commit that changed the wording, the thread is resolved, and the dismissal the log records matches the forge timeline. All nine threads now have a reply, a row and a resolution. The validator's logic, run offline on the captured comments and the branch commits, reports ok for 9 rows and 9 log entries; a copy with F9's reply pointed at the F8 thread fails.
The change against its claim: F9 is fixed. ADR line 45 now says a server cancels its own token on a failed registration before its start function returns, which matches the start-then-register order (packages/axum-http-server/src/server.rs:233-251), and that this fails the whole startup (src/app.rs:178-183). F1 to F8 are unchanged.
Consistency: every relative link and frontmatter path in the changed files resolves.
Hygiene: author identity equals committer identity on both commits; each ends with an attribution footer, and no rule in the tree forbids one; git diff --check is clean; the commit-id check prints nothing; no closing keyword in the title, description or messages.
Findings: none.
Checked, no finding: the F9 entry's search for "before it serves" matches only the record's own quotations of the replaced wording, so its "finds nothing" means no live use; the rewritten line 45 is unwrapped, which is cosmetic with MD013 off.
Checks
On the loop's compute node at this head, against the merge base 9e463cb0c (receipt server-gates-kranich-1014): the lint batteries ran fresh at this head and pass (markdown 46 s, cspell 35 s, local links), the frontmatter check reports the same 10 errors and 4 warnings as develop's re-measured baseline, and the pre-commit gate exits 0 on build artifacts already warm at this head (0 of 833 rebuilt; no Rust file moved since round 1). The audit-record validator for this PR reports status ok with 9 rows, 9 log entries and 0 failures. The round was first made at f32f8522b and extended to this head when the audit commit landed. F9's fix checked against the bytes at posting: the ADR's line 45 now says the cancel happens "before its start function returns, and that fails the whole startup". The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docker E2E: completed/skipped; Unit (nightly): queued/pending; Shipped Features: queued/pending; Workspace Packaging: queued/pending; Documented Clippy Allows: queued/pending; Layer Boundary Bans: queued/pending; Unit (stable): queued/pending; Discover Package Coverage: queued/pending; Generate Coverage Report: queued/pending; Build on windows-latest (nightly): queued/pending; Build on macos-latest (stable): queued/pending; Build on windows-latest (stable): queued/pending; Build on ubuntu-latest (nightly): queued/pending; Build on ubuntu-latest (stable): queued/pending; Build on macos-latest (nightly): queued/pending; Test (Docker) (release): queued/pending; Docs Lint: completed/success". At posting, develop is 166cd8667.
|
ACK 6ee332a — F1 to F9 are fixed or accepted at this head and the audit record's nine rows match their threads and pass the validator logic |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
3 open issues
For a closed/not-planned spec, the remaining checklist items (design review, verification, manual… · New This spec is now closed as no-go / not planned, but the Acceptance Criteria list still contains… · New The ADR’s 'Affected Code' section includespackages/axum-health-check-api-server/src/server.rs,… · New
Review effort: Lite
…nts as not planned Unchecked checkpoints on a closed spec read as unfinished work; mark the implementation ones as not planned and check the ones that apply to the documentation change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cenarios as not planned Mark the implementation acceptance criteria, the manual scenarios and the acceptance verification rows as not planned after the no-go, and record the criteria that hold for the documentation change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…R frontmatter The Affected Code section links packages/axum-health-check-api-server/src/server.rs; the related-artifacts list now names it too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…st#2890 Record Copilot's review 5925587139 (F10 to F12, fixed) and the dismissal of da2ce7's clean approval by the fix push. Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 3a308ea0e7e08c09d7905f476488286d8ec7dae1. Recomputed from the bytes at this head, a fast-forward of the last reviewed head, against its merge base 9e463cb0c; git merge-tree --write-tree against develop 166cd8667 is clean, and develop's new commits touch none of this PR's files.
Process: four commits since the last review, each a Conventional docs subject with [#2846] whose diff matches its message. Three answer the automated review 5925587139; the audit commit records them as F10 to F12: each row's source and reply URLs sit on the same thread, each fix subject names the commit that made that fix, the reviewer ID is N/A and the severity is marked inferred because the source carries no bracket, and all three threads are resolved. The record's claims about the spec hold: no plain unchecked checkpoint and no TODO remain. All twelve threads now have a reply, a row and a resolution. The validator's logic, run offline on the captured comments and the branch commits, reports ok for 12 rows and 11 log entries; a copy with F12's fix subject truncated fails.
The change against its claim: the skipped checkpoints, the implementation acceptance criteria, M1 to M3 and their verification rows are marked not planned, with the checked items saying what they cover; the ADR frontmatter now lists every Affected Code file. F1 to F9 are unchanged. One slip in the record (F13).
Consistency: every relative link and frontmatter path in the changed files resolves.
Hygiene: author identity equals committer identity on all four commits; each ends with an attribution footer, and no rule in the tree forbids one; git diff --check is clean; the commit-id check prints nothing; no closing keyword in the title, description or messages.
Findings: F13 (Nit), inline, numbered after the record's F10 to F12; it does not hold the verdict.
Checks
On the loop's compute node at this head, against the merge base 9e463cb0c (receipt server-gates-kranich-1017): the lint batteries ran fresh at this head and pass (markdown 51 s, cspell 36 s, local links), the frontmatter check reports the same 10 errors and 4 warnings as develop's re-measured baseline, and the pre-commit gate exits 0 (142 s wall; no Rust file moved since round 1). The audit-record validator for this PR reports status ok with 12 rows, 11 log entries and 0 failures. The round was first made at 9963d3213 and extended to this head when the Copilot audit commit landed. F13 checked against the forge at posting: review 5925587139 has commit_id 7c2f1afc9 (subject docs(pr-reviews): [#2846] audit the second review of PR #2890), while line 52 of the record names its parent's subject. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "". At posting, develop is 166cd8667.
|
ACK 3a308ea — F1 to F12 are fixed or accepted at this head and the audit record's twelve rows match their threads and pass the validator logic |
…eview of PR torrust#2890 Copilot's review 5925587139 was on the F8 audit head, not on the F8 fix commit; correct the Findings note and append a correction to the Processing Log. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK 3a308ea |
…orrust#2890 Record da2ce7's review 5925829527 (F13, fixed) and the dismissal of its approval by the fix push. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK 3919030 |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 3919030bf57a6180dcd59624459e977121d0a5a7. Recomputed from the bytes at this head, a fast-forward of the last reviewed head, against its merge base 9e463cb0c; git merge-tree --write-tree against develop 166cd8667 is clean.
Process: two commits since the last review, each a Conventional docs(pr-reviews) subject with [#2846] whose diff matches its message. The first corrects the Findings note and appends a Processing Log correction; the second adds the F13 row, its detail entry, a note and a log entry: reviewer ID F13 and severity Nit equal the source comment's bracket, the reply sits on the F13 thread, the fix subject names the commit that corrected the note, the thread is resolved, the note cites the subject of the review's commit_id, and the dismissal the log records matches the forge timeline. All thirteen threads now have a reply, a row and a resolution. The validator's logic, run offline on the captured comments and the branch commits, reports ok for 13 rows and 13 log entries; a copy with F13's severity changed fails.
The change against its claim: F13 is fixed. The note on line 52 now cites docs(pr-reviews): [#2846] audit the second review of PR #2890, the subject of 7c2f1afc9, which is the automated review's commit_id. F1 to F12 are unchanged.
Consistency: the only changed file is the audit record; its links are absolute URLs.
Hygiene: author identity equals committer identity on both commits; each ends with an attribution footer, and no rule in the tree forbids one; git diff --check is clean; the commit-id check prints nothing; no closing keyword in the title, description or messages.
Findings: none.
Checks
On the loop's compute node at this head, against the merge base 9e463cb0c (receipt server-gates-kranich-1023): the lint batteries ran fresh at this head and pass, the frontmatter check matches develop's re-measured baseline, and the pre-commit gate exits 0 (no Rust file moved since round 1). The audit-record validator for this PR reports status ok with 13 rows, 13 log entries and 0 failures. The round was first made at fa2f7e9a6 and extended to this head when the audit commit landed. F13's fix checked against the bytes at posting: line 52 of the record now names Copilot's review head by the subject of its commit_id, docs(pr-reviews): [#2846] audit the second review of PR #2890. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docker E2E: completed/skipped; Unit (nightly): queued/pending; Shipped Features: queued/pending; Workspace Packaging: queued/pending; Layer Boundary Bans: queued/pending; Documented Clippy Allows: queued/pending; Unit (stable): queued/pending; Test (Docker) (release): queued/pending; Build on windows-latest (stable): in_progress/pending; Build on windows-latest (nightly): in_progress/pending; Build on macos-latest (nightly): in_progress/pending; Build on ubuntu-latest (stable): in_progress/pending; Build on ubuntu-latest (nightly): in_progress/pending; Build on macos-latest (stable): queued/pending; Generate Coverage Report: queued/pending; Discover Package Coverage: queued/pending; Docs Lint: in_progress/pending". At posting, develop is 166cd8667.
|
ACK 3919030 — F1 to F13 are fixed or accepted at this head and the audit record's thirteen rows match their threads and pass the validator logic |
|
ACK 3919030 |


Related to #2846 (SI-27 of EPIC #1488). The maintainer decided no-go: stopped services are not deregistered from the
Registar. This PR records the decision; it changes no behavior.Summary
docs/adrs/20261116172628_keep_registar_registrations_for_the_process_lifetime.md: a registration lives until the process exits. It records why, the alternatives (give servers theRegistar, deregister in the root supervisors, a registration handle intorrust-server-lib) and the reopening trigger (restarting one service in a running process, which a stale entry would reject withDuplicateBinding). Registered indocs/adrs/index.md.503answer never lists stopped services and links the new ADR (amended 2026-11-16).src/container.rs: one comment on theregistarfield pointing to the ADR; the ADR's "Affected Code" section links back to the code. No code change.docs/issues/closed/.Why no-go
JobManager::request_shutdown,mark_finished), andbegin_shutdownmarks the tracker not ready first. For the whole drain,/health_checkanswers503"shutting down" with an empty list, without reading the registry. A stopped service can therefore never look available while another one still drains.ServiceRegistrationForm, so deregistering them would change the public start functions of those three packages before their first publish (First publish of the unpublished workspace crates #2583), or widen what each of them can do to the registry. The health check API server already holds theRegistar(it reads it) and returns its binding; it stops last, just before the process exits.P, is rare (dedicated servers, no autoscaling), and BitTorrent clients tolerate a tracker that disappears.The SI-24 health check test environment keeps its
deregistercall: a test restart on a fixed port is exactly the reopening trigger.Validation
linter allpasses.contrib/dev-tools/git/hooks/pre-commit.sh) and the pre-push checks pass.After merge
The maintainer marks issue 2846 on GitHub as not planned. This PR uses no closing keyword on purpose: an auto-close would record it as completed.
🤖 Generated with Claude Code