GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(connectivity): await_home_relay and check_qad_order have no production caller — serve binds, writes its lock and prints ready with no home-relay wait, and the QAD relay-order refusal can never fire · Issue #3028 · developing-today/code

id(connectivity): await_home_relay and check_qad_order have no production caller — serve binds, writes its lock and prints ready with no home-relay wait, and the QAD relay-order refusal can never fire #3028

New issue
Copy link
New issue
Copy link
Closed
Closed
id(connectivity): await_home_relay and check_qad_order have no production caller — serve binds, writes its lock and prints ready with no home-relay wait, and the QAD relay-order refusal can never fire#3028
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/fixhas a fix task queued

Description

@dezren39
dezren39
opened on Oct 31, 2026
Issue body actions

Problem

pkgs/id/src/connectivity.rs defines two startup safeguards for wider-network endpoints, each with its own tests, and neither has a production caller anywhere in the repo (verified this run, below):

  1. The home-relay startup wait is never awaited. HOME_RELAY_DEADLINE (connectivity.rs:92, "How long startup waits for the home relay before carrying on without one") and await_home_relay (connectivity.rs:96-105, "Waits until the endpoint has a connected home relay, for at most limit") exist so startup does not announce a server before it is reachable through its home relay. cmd_serve (commands/serve.rs:776-806) builds the endpoint with public_builder, binds it, and never calls await_home_relay; it goes on to write the serve lock file and print node: <id> status (serve.rs:~1158-1168) immediately after bind. A server can therefore present itself as ready — lock file written, node ID printed, callers detecting it via stdout — while its home relay is not yet connected (or never connects, e.g. a dead relay entry), and nothing ever reports that: the 10-second bounded wait that was built and tested for exactly this is dead code.

  2. The QAD relay-order check never runs. check_qad_order (connectivity.rs:117-139) refuses a relay map with no QAD-capable relay among the first 5 entries iroh probes, because such a map "gives no public address a direct path needs". No production code calls it, and no production path constructs a custom RelayMap for it to check (public_builder, connectivity.rs:44-50, offers only the N0 preset or relays disabled), so the refusal the doc describes can never fire: the safeguard is a tested function guarding a door nothing walks through.

Evidence (this run, main ab55f3c)

  • Whole-repo search for await_home_relay, check_qad_order, and HOME_RELAY_DEADLINE over all *.rs: every hit is inside connectivity.rs itself (definitions at :92/:99/:121 and the unit tests at :~290-360). Independent second grep over pkgs/id/src for production callers outside connectivity.rs returned no callers; cmd_serve's endpoint construction (commands/serve.rs:776-806) contains no relay wait and no QAD check, and a search for .online() / home_relay outside connectivity.rs found no substitute wait.
  • The functions are not dead in the compiler's eyes (they are pub in pub mod connectivity, lib.rs:164), so no dead-code warning ever surfaces the gap; only a call-graph check finds it.
  • Contrast inside the same file: connect and public_builder ARE wired (commands/get.rs, list.rs, put.rs, find.rs, serve.rs all call them), so the module's policy is only half applied — dials get the deadline policy, startup gets neither of its two safeguards.

Why it matters

  • Startup readiness is a contract other tooling relies on (the serve lock file comment at serve.rs:~1158 says integration callers detect the server via its stdout/lock). Announcing readiness before relay reachability means early dials by node ID alone can fail or hang until their own 45s DIAL_TIMEOUT, with no log line naming the relay as the cause.
  • The QAD check's doc states a real failure mode (a relay map whose first five probed entries lack QUIC address discovery yields no public address). Leaving the check unwired means the day a custom relay map IS introduced (config, tests, a deployment flag), it lands without the guard its author built for it — silently.
  • This is the same unwired-policy shape as pull_policy.rs's module doc ("id serve does not read it yet", tracked in id phase-8/platform-completion: freshness-window and pull-policy config are not wired into server/world settings or CLI defaults #798 for pull policy specifically); connectivity's two safeguards have no tracking issue at all.

Acceptance criteria

  • Triage confirms on current main: await_home_relay and check_qad_order have no production callers (repo-wide call search), and cmd_serve binds + writes the lock file + prints status with no home-relay wait.
  • A decision is recorded on this issue: wire them, or remove/deprecate them. Wiring looks like: cmd_serve awaits the home relay under HOME_RELAY_DEADLINE when relays are enabled (skipping the wait — with a status/log line — when --no-relay is set, per await_home_relay's own doc), carrying on after the deadline as the doc promises, and logs the outcome; check_qad_order is applied to any relay map a production path actually constructs, or the function is explicitly scoped as a guard for a named future caller.
  • If wired: a test or startup log line demonstrates the bounded wait (relay disabled → no wait; dead relay → startup proceeds after the deadline with a warning naming the relay wait).
  • If removed instead: the constants, functions, and their tests are deleted together and the module doc no longer describes startup policy that does not run.
  • No change to connect / public_builder behaviour or to the DIAL_TIMEOUT policy.

Distinct from: #798 (pull-policy / freshness config unwired in serve — different policy, different module), #795 (real-network QAD/holepunch tests owner-blocked — this issue is about the in-process check/wait never being called, not about network test access), #3023 (meta_client response deadlines).

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    priority/lowNice to have; do when convenient
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Oct 31, 2026
  2. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator-code-b (new-issue-creator job, lane B)
    • Session / ID: new-issue-creator-code-b run 2026-10-31 05:50 CDT
    • Found via: filed this run
    • Task: Filed this issue: connectivity.rs's await_home_relay startup wait and check_qad_order QAD refusal have no production caller; serve binds and announces ready without either safeguard. Verified this run by two independent repo-wide call searches on main ab55f3c.
    • Expectation: effort/s — triage confirms the call-graph finding, records wire-vs-remove decision, and routes the fix packet.
    • Links: evidence in issue body; body file hidden_files/issue-code-connectivity-unwired-body.md (goal workspace)
  3. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator-code-b (new-issue-creator job, lane B)
    • Session / ID: new-issue-creator-code-b run 2026-10-31 05:50 CDT
    • Found via: filed this run
    • Task: Correction to the previous note's footer timestamp only (it read 11:20Z; actual filing time is this note's timestamp). Substance unchanged: connectivity.rs's await_home_relay and check_qad_order have no production caller, verified this run on main ab55f3c.
    • Expectation: effort/s — triage confirms and records wire-vs-remove decision.
    • Links: id(connectivity): await_home_relay and check_qad_order have no production caller — serve binds, writes its lock and prints ready with no home-relay wait, and the QAD relay-order refusal can never fire #3028 (comment)
  4. github-actions
    assigned
    dezren39
    on Oct 31, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  6. 88 remaining items

  7. dezren39
    added
    queue/queuedHas a queued queue task
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-reviewReady for review
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    queue/needs-reviewQueue task finished and is awaiting review
    work/assignedQueue worker lifecycle state
    queue/queuedHas a queued queue task
    on Nov 3, 2026
  8. dezren39
    added a commit that references this issue on Nov 3, 2026

    fix(id): gate serve readiness on home relay; remove unwired QAD guard (…

    eefeab5
  9. dezren39
    closed this as completedon Nov 3, 2026
  10. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 3, 2026
  11. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-b
    • Session / ID: task 7487
    • Found via: queue claim
    • Task: task 7487 for issue id(connectivity): await_home_relay and check_qad_order have no production caller — serve binds, writes its lock and prints ready with no home-relay wait, and the QAD relay-order refusal can never fire #3028 — verify and merge PR fix(id): gate serve readiness on home relay; remove unwired QAD guard (#3028) #4463
    • Expectation: m — PR fix(id): gate serve readiness on home relay; remove unwired QAD guard (#3028) #4463 merged and issue id(connectivity): await_home_relay and check_qad_order have no production caller — serve binds, writes its lock and prints ready with no home-relay wait, and the QAD relay-order refusal can never fire #3028 closed with evidence (below)
    • Links: PR fix(id): gate serve readiness on home relay; remove unwired QAD guard (#3028) #4463

    PR #4463 MERGED — closing issue #3028 with the verification evidence.

    What the verification found (all fresh this shift, laptop):

    • The src/references.rs cargo check errors on the PR branch (E0277 StoreId: Default at references.rs:303, E0597 borrow at references.rs:124) were not caused by PR fix(id): gate serve readiness on home relay; remove unwired QAD guard (#3028) #4463 — its diff touches only pkgs/id/src/commands/serve.rs and pkgs/id/crates/id-core/src/connectivity.rs. They were pre-existing at the PR's base and had already been fixed on main by PR fix(design-code): repoint :18745 legs to antigravity-direct :18751 (#1413, unblocks opencode#1409) #4626 (clean main 550b611: cargo check -p id exit 0). Resolution: merged current main into the PR branch (new head c36658c55, clean merge, pushed); cargo check -p id on the updated branch: exit 0.
    • Targeted tests on the updated PR branch: cargo test -p id-core connectivity — 8 passed, 0 failed, 1 ignored; cargo test -p id --lib connectivity exit 0 (no lib tests match; connectivity lives in id-core). Codex review of PR fix(id): gate serve readiness on home relay; remove unwired QAD guard (#3028) #4463 completed with zero findings.
    • One unrelated pre-existing breakage found and proven, not fixed here: cargo test -p id cannot compile several integration test targets (E0063: ChainExt initializers missing the new checkpoint field — tests/aliases.rs, documents.rs, cli_documents.rs, tag_claims.rs, event_store_properties.rs, chain_properties.rs). Proven pre-existing: the identical failure reproduces on clean main (cargo test -p id --test aliases --no-run → exit 101, same E0063) and the test files are byte-identical between main and the PR branch. This needs its own fix task; it is not a PR fix(id): gate serve readiness on home relay; remove unwired QAD guard (#3028) #4463 regression.
    • Merge: squash, merge commit eefeab5af648ac612899c65a4c575c20808ef0e1, merged 2026-11-03T11:26:28Z.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/fixhas a fix task queued

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.