fleetwire: ChallengeSource lacks the GuestForwards seam its sibling adapters got (GOTCHAS #12, DIV-4, latent) #455

Closed
opened 2026-08-11 22:48:36 +00:00 by ben · 3 comments
Owner

Divergence class

GOTCHAS #12 (VM-vs-full-install divergence) — pre-filed by the #450 audit.

(Note: this issue's original write-up was accidentally submitted as the
title field and silently truncated at the tracker's title-length limit;
the title has been corrected and the full content restored below from
docs/vm-full-install-divergence.md, DIV-4.)

ChallengeSource (the acme-dns fulldomain-fact reader) is the one
guest-facing fleetwire adapter that never received the #437 split-horizon
GuestForwards treatment its sibling adapters (fleet, enrolment) did — it
still resolves its SSH target from a static config field. It is not exercised
on the own-VPS path today (it routes around via pointOwnVPSName +
heartbeat), so there is no live fault, but it is a structural odd-one-out that
would silently misbehave the moment something starts routing through it on an
own-VPS journey.

See docs/vm-full-install-divergence.md Table B (ChallengeSource.AcmeChallenge
row) and Open divergences DIV-4.

## Divergence class GOTCHAS #12 (VM-vs-full-install divergence) — pre-filed by the #450 audit. *(Note: this issue's original write-up was accidentally submitted as the **title** field and silently truncated at the tracker's title-length limit; the title has been corrected and the full content restored below from `docs/vm-full-install-divergence.md`, DIV-4.)* `ChallengeSource` (the acme-dns fulldomain-fact reader) is the **one** guest-facing fleetwire adapter that never received the #437 split-horizon `GuestForwards` treatment its sibling adapters (fleet, enrolment) did — it still resolves its SSH target from a static config field. It is not exercised on the own-VPS path today (it routes around via `pointOwnVPSName` + heartbeat), so there is no live fault, but it is a structural odd-one-out that would silently misbehave the moment something starts routing through it on an own-VPS journey. See `docs/vm-full-install-divergence.md` Table B (`ChallengeSource.AcmeChallenge` row) and Open divergences DIV-4.
ben changed title from GOTCHAS #12 (VM-vs-full-install) — pre-filed by the #450 audit ChallengeSource (internal/fleetwire/challenge.go) is the **one** guest-facing seam that never received the #437 split-horizon GuestForwards treatment its siblings did: `ChallengeC… to fleetwire: ChallengeSource lacks the GuestForwards seam its sibling adapters got (GOTCHAS #12, DIV-4, latent) 2026-08-12 02:04:40 +00:00
Author
Owner

This was generated by AI during triage.

Triage: bug → ready-for-agent.

Redundancy check: read the adapter directly — it defaults to a static
loopback target and takes no Forwards field, unlike its sibling fleetwire
adapters. Confirmed by reading the two adapters that already got the #437
treatment: both carry a Forwards *GuestForwards config field plus a pair of
private helper methods that prefer the forwards-resolved target/port when
wired and fall back to the static config otherwise — an exact, already-used
template. No prior rejection found in .out-of-scope/. Not a UI/UX-flow
change, so the design-tier gate does not apply.

Severity is low/latent per the audit doc (no live fault today — this path is
routed around) — flagging ready-for-agent rather than deferred because the
fix is small, mechanical, has two working precedents in the same package to
copy, and closes a structural inconsistency before something starts routing
through this adapter on an own-VPS journey and hits it cold.

Agent Brief

Category: bug
Summary: The acme-dns challenge-fact reader is the one guest-facing
fleetwire adapter that never got the own-VPS-aware forwards treatment its
siblings did, so it would resolve the wrong SSH target on an own-VPS journey
if anything started exercising it.

Current behavior:
The challenge-fact reader always resolves its SSH destination from a static
config field (defaulting to the loopback posture), regardless of whether the
journey is VM-mode or own-VPS. Two sibling adapters in the same package
already resolve their SSH destination and forwarded ports through an
optional own-VPS-aware forwards source when one is wired, falling back to the
same static field only when it isn't.

Desired behavior:
The challenge-fact reader's config should carry the same optional
own-VPS-aware forwards source its siblings carry, and its target/port
resolution should follow the identical wired-vs-static fallback shape they
already use — so an own-VPS journey that ever routes through this adapter
gets the correct remote target instead of a stale loopback assumption.

Key interfaces:

  • The challenge-fact reader's config type — add the same optional own-VPS-aware
    forwards field its sibling adapter configs already carry
  • The challenge-fact reader itself — add the same private
    target-resolution / port-resolution helpers its siblings already have,
    delegating to the forwards source when wired

Acceptance criteria:

  • The challenge-fact reader's config accepts the same optional forwards
    field its sibling adapters do
  • With no forwards wired, behavior is byte-identical to today (existing
    tests keep passing unmodified)
  • With a forwards source wired, the reader resolves its SSH target and
    port through it, matching the sibling adapters' resolution shape
  • A unit test parallels the existing sibling-adapter tests: wired
    forwards changes the resolved target/port; unwired doesn't
  • docs/vm-full-install-divergence.md's DIV-4 row is updated to CLOSED
    with the closing issue, in the same commit (ADR 0042 same-commit law)

Out of scope:

  • Actually wiring this adapter into an own-VPS-routed call site (it is not
    exercised on that path today — this issue only closes the structural gap)
  • Changing the sibling adapters' own forwards resolution
  • The acme-dns fact-publishing mechanism itself
> *This was generated by AI during triage.* **Triage: bug → ready-for-agent.** Redundancy check: read the adapter directly — it defaults to a static loopback target and takes no `Forwards` field, unlike its sibling fleetwire adapters. Confirmed by reading the two adapters that already got the #437 treatment: both carry a `Forwards *GuestForwards` config field plus a pair of private helper methods that prefer the forwards-resolved target/port when wired and fall back to the static config otherwise — an exact, already-used template. No prior rejection found in `.out-of-scope/`. Not a UI/UX-flow change, so the design-tier gate does not apply. Severity is low/latent per the audit doc (no live fault today — this path is routed around) — flagging ready-for-agent rather than deferred because the fix is small, mechanical, has two working precedents in the same package to copy, and closes a structural inconsistency before something starts routing through this adapter on an own-VPS journey and hits it cold. ## Agent Brief **Category:** bug **Summary:** The acme-dns challenge-fact reader is the one guest-facing fleetwire adapter that never got the own-VPS-aware forwards treatment its siblings did, so it would resolve the wrong SSH target on an own-VPS journey if anything started exercising it. **Current behavior:** The challenge-fact reader always resolves its SSH destination from a static config field (defaulting to the loopback posture), regardless of whether the journey is VM-mode or own-VPS. Two sibling adapters in the same package already resolve their SSH destination and forwarded ports through an optional own-VPS-aware forwards source when one is wired, falling back to the same static field only when it isn't. **Desired behavior:** The challenge-fact reader's config should carry the same optional own-VPS-aware forwards source its siblings carry, and its target/port resolution should follow the identical wired-vs-static fallback shape they already use — so an own-VPS journey that ever routes through this adapter gets the correct remote target instead of a stale loopback assumption. **Key interfaces:** - The challenge-fact reader's config type — add the same optional own-VPS-aware forwards field its sibling adapter configs already carry - The challenge-fact reader itself — add the same private target-resolution / port-resolution helpers its siblings already have, delegating to the forwards source when wired **Acceptance criteria:** - [ ] The challenge-fact reader's config accepts the same optional forwards field its sibling adapters do - [ ] With no forwards wired, behavior is byte-identical to today (existing tests keep passing unmodified) - [ ] With a forwards source wired, the reader resolves its SSH target and port through it, matching the sibling adapters' resolution shape - [ ] A unit test parallels the existing sibling-adapter tests: wired forwards changes the resolved target/port; unwired doesn't - [ ] `docs/vm-full-install-divergence.md`'s DIV-4 row is updated to CLOSED with the closing issue, in the same commit (ADR 0042 same-commit law) **Out of scope:** - Actually wiring this adapter into an own-VPS-routed call site (it is not exercised on that path today — this issue only closes the structural gap) - Changing the sibling adapters' own forwards resolution - The acme-dns fact-publishing mechanism itself
Author
Owner

swarm-claim host=matou-dev-server-01 run=4894
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=4894 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

close-report for #455 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 455,
  "status": "success",
  "commits": [
    "e0e0a56"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/vm-full-install-divergence.md",
    "internal/fleetwire/challenge.go",
    "internal/fleetwire/forwards_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/fleetwire/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/fleetwire/ -run ChallengeSource -v",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The challenge-fact reader's config accepts the same optional forwards field its sibling adapters do": "internal/fleetwire/challenge.go — ChallengeConfig now carries `Forwards *GuestForwards`, mirroring FleetConfig/EnrolmentConfig",
    "With no forwards wired, behavior is byte-identical to today (existing tests keep passing unmodified)": "The three pre-existing challenge tests (Published/Absent/Unreachable) pass unmodified — go test ./internal/fleetwire/ exit 0",
    "With a forwards source wired, the reader resolves its SSH target and port through it, matching the sibling adapters' resolution shape": "target()/sshPort() helpers on ChallengeSource delegate to cfg.Forwards when non-nil, else static fields — identical shape to Fleet.target()/sshPort() and Enrolment.target()/sshPort()",
    "A unit test parallels the existing sibling-adapter tests: wired forwards changes the resolved target/port; unwired doesn't": "TestChallengeSource_OwnVPSReadLandsOnTheBox in forwards_test.go, alongside TestSeedLedger_OwnVPSResolvesThroughTheBoxForwards / TestEnrolment_OwnVPSReadsLandOnTheBox — asserts root@<box>:22 accept-new, not loopback nor VM port; unwired covered by the unmodified existing tests",
    "docs/vm-full-install-divergence.md's DIV-4 row is updated to CLOSED with the closing issue, in the same commit (ADR 0042 same-commit law)": "commit e0e0a56 updates DIV-4 (Open divergences) + Table B ChallengeSource.AcmeChallenge row to CLOSED #455 in the same commit as the code change"
  },
  "summary": "ChallengeSource's config gains the optional GuestForwards seam its fleet/enrolment siblings already carry, closing the last guest-facing #437 gap (DIV-4).",
  "blockers": []
}
**close-report** for #455 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 455, "status": "success", "commits": [ "e0e0a56" ], "changed_files": [ "STATUS.md", "docs/vm-full-install-divergence.md", "internal/fleetwire/challenge.go", "internal/fleetwire/forwards_test.go" ], "tests": [ { "command": "go test ./internal/fleetwire/", "exit_code": 0 }, { "command": "go test ./internal/fleetwire/ -run ChallengeSource -v", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 } ], "criteria": { "The challenge-fact reader's config accepts the same optional forwards field its sibling adapters do": "internal/fleetwire/challenge.go — ChallengeConfig now carries `Forwards *GuestForwards`, mirroring FleetConfig/EnrolmentConfig", "With no forwards wired, behavior is byte-identical to today (existing tests keep passing unmodified)": "The three pre-existing challenge tests (Published/Absent/Unreachable) pass unmodified — go test ./internal/fleetwire/ exit 0", "With a forwards source wired, the reader resolves its SSH target and port through it, matching the sibling adapters' resolution shape": "target()/sshPort() helpers on ChallengeSource delegate to cfg.Forwards when non-nil, else static fields — identical shape to Fleet.target()/sshPort() and Enrolment.target()/sshPort()", "A unit test parallels the existing sibling-adapter tests: wired forwards changes the resolved target/port; unwired doesn't": "TestChallengeSource_OwnVPSReadLandsOnTheBox in forwards_test.go, alongside TestSeedLedger_OwnVPSResolvesThroughTheBoxForwards / TestEnrolment_OwnVPSReadsLandOnTheBox — asserts root@<box>:22 accept-new, not loopback nor VM port; unwired covered by the unmodified existing tests", "docs/vm-full-install-divergence.md's DIV-4 row is updated to CLOSED with the closing issue, in the same commit (ADR 0042 same-commit law)": "commit e0e0a56 updates DIV-4 (Open divergences) + Table B ChallengeSource.AcmeChallenge row to CLOSED #455 in the same commit as the code change" }, "summary": "ChallengeSource's config gains the optional GuestForwards seam its fleet/enrolment siblings already carry, closing the last guest-facing #437 gap (DIV-4).", "blockers": [] } ``` </details>
ben closed this issue 2026-08-12 02:49:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#455
No description provided.