Status: ready
Priority: 3
Size: S
Design ref: World, climate and travel (Worn paths). QUESTION_ARCHIVE.md, Consistency review (10 Nov), pawns placed, question 2
Goal: When the route search finds no way within ROUTE.reach (200 meadow steps), or none by land, route returns the goal alone and counts a fallback (src/sim/routes.js:124), and walkTo then draws one straight leg to it over whatever lies between, the sea included (src/sim/agents.js:45-56). No pawn did so in 12 years of populous small, seed 7 (fallbacks: 0), but nothing forbids it: a job bid weighs distance by hex steps as the crow flies (src/sim/jobs.js:98). Kim, 10 Nov: a job with no route by land is refused.
Acceptance criteria:
takeDay, sim/jobs) or a helper’s bid would win, the route cache is asked (route, cached, so a known pair costs a lookup); a task refused for want of a route is left out of that household’s lists until its day is next allotted (rule 4: no polling). With VB-471 the same lookup gives the walk’s hours. The verbs that send a pawn somewhere (src/sim/commands.js: the player’s Walk here, goHome) return “no way there” for a goal with no route.walkTo with no route does not move the pawn: it stays where it is, idle, and st.routeFallbacks counts it. the zero count is VB-1688’s.design.md, Between villages, Over the sea); this task does not touch moveTo.tests/routes.js or beside it, in npm test): a job posted on another island is taken by no one and its owner’s pawns take other work; a goal beyond ROUTE.reach is refused; a pawn told to walk there is told why not.walkTo makes today anyway; routeSearch and routeHit before and after at small-y40 and medium-ref. Numbers before and after (populous small, seeds 7 and 42, 15 years): fallbacks (0 expected before and after), jobs refused for want of a route, and behaviour otherwise unchanged (node tools/same.js --base REF prints same), or what changed listed.
Notes:QUESTION_ARCHIVE.md, “Consistency review”, pawns placed, question 2). VB-290 already moves claims on empty farms from 15 hex steps as the crow flies to 6 walking hours, which closes the likeliest case (a claimant mending a farm across water).src/sim/jobs.js, agents.js, commands.js: one at a time with VB-287.38b920d; main has moved some lines since (in src/sim/kinds.js, jobs.js, records.js), and every function and field named still stands: find them by name.48ea188 of branch worktree-agent-a3a49dd320d7d6677, which passes npm run verify): the second criterion cannot be met within this task. Built there: the winning bid asks canReach (sim/agents hasRoute, the route cache; counter bidNoRoute), the verbs work, walkTo and goHome return “no way there”, walkTo with no route leaves the pawn idle and counts st.routeFallbacks (now counted there, not in route), the invariants hold the count at 0 and name the pair, tests/noway.js (two islands on a tiny world), and a move to a home with no way by land does not start (moved, counter moveNoRoute).hoursBetween infinite). The senders: marriage (wed and handOn; sim/matching has no rule of distance by land at all, against design.md, Between villages, Over the sea, Decided), a cottage founded for a couple (foundHousehold), and VB-290’s last resorts “among all” (the guardian of sim/service careForOrphans, sim/heirs kinHomeFor and serviceHome, “until slice 10’s boats”). With this task’s rule those movers stand where they are for good, members of a household they never reach: 2 at seed 7 and 20 at seed 42 in 10 years, still 4 and 32 counted fallbacks (the attend verb sends them to occasions of their far village), and they poll: bidNoRoute 18,914 and 64,509, routeSearch 104,584 to 146,475 and 129,394 to 206,926, routeHit 720,174 to 981,467 and 717,818 to 1,016,308. Living at year 10: 415 and 415 at seed 7, 434 and 440 at seed 42. Not measured: small-y40, medium-ref, 15 years (the night’s wrap-up).QUESTIONS.md, VB-329): nobody is sent to a home over the sea (marriage, cottages, guardians, kin and service homes by land only), which changes who marries on an island of several landmasses and leaves an orphan with no household by land with nowhere to go. After that this task’s work stands as built, and two things in it are still to do: attend asks hasRoute as the other verbs do, and a refused job is remembered by the household for the day, not only by the route cache (a verb’s check searches without keeping, so a pawn with no way home searched again at every goHome).48ea188 (its fourth criterion).docs/review-blocks.md): criteria 1, 4 and 5 reworded from bids to the day’s lists; the rule is unchanged.48ea188, is this task’s again: that commit predates the day lists (VB-466), so it is rebuilt on the tip with it as a guide. hasRoute exists now in sim/routes (the cache; none found is not kept, nor counted). 2 fallbacks remain at populous small seed 42 in 30 years, on a journey’s later leg: two suitors walking home from village 3’s green to village 1 (16 hours) on days 232 and 235 (year 4.8), though a route both ways was found when they set out (a check both ways did not stop them); with this task’s rule they are refused, not walked.