Skip to content

Eager home-market bootstrap: fetch home system waypoints+markets at boot instead of waiting on the crawler #16

Description

@jdkajewski

Context

Observed during live takeover testing, but also a (smaller) greenfield concern.

Observation

On boot with a cold DB, the bot loads 0 markets and relies on the background galaxy crawler + organic discovery to learn markets. On a starved/large-fleet run this produced 0 systems / 0 markets discovered in 13 min. At greenfield this is far less severe (2 ships, small home system), but the first few minutes could still be sluggish because the bot doesn't aggressively grab its home system's waypoints + markets up front.

Proposed enhancement

At boot (after resolveHome()), eagerly fetch the home system's waypoints and the markets among them (ships are present at HQ), and load them into the markets store before the worker loop — so local trading can start within seconds, independent of the background crawler.

Benefit

  • Greenfield: faster first trades at reset.
  • Takeover: gives immediate local lanes (partial mitigation of the large-fleet stall in the companion issue).

Priority

Post-reset, low-risk. Nice-to-have for greenfield startup speed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions