diff --git a/.impeccable/.gitignore b/.impeccable/.gitignore new file mode 100644 index 0000000..288bd16 --- /dev/null +++ b/.impeccable/.gitignore @@ -0,0 +1,6 @@ +review/ +questions/ +live/ +mocks/ +hook.cache.json +config.local.json diff --git a/.impeccable/config.json b/.impeccable/config.json new file mode 100644 index 0000000..ea9b446 --- /dev/null +++ b/.impeccable/config.json @@ -0,0 +1 @@ +{"projectRoots":["docs"]} diff --git a/.impeccable/critique/2026-09-23T19-53-18Z__ler-code-hungrypathing-site-redesign-docs-737f21ae.md b/.impeccable/critique/2026-09-23T19-53-18Z__ler-code-hungrypathing-site-redesign-docs-737f21ae.md new file mode 100644 index 0000000..1c0147d --- /dev/null +++ b/.impeccable/critique/2026-09-23T19-53-18Z__ler-code-hungrypathing-site-redesign-docs-737f21ae.md @@ -0,0 +1,20 @@ +--- +target_identity: "file:C:\\Users\\Kyler\\code\\HungryPathing-site-redesign\\file:C:\\Users\\Kyler\\code\\HungryPathing-site-redesign\\docs" +timestamp: 2026-09-23T19-53-18Z +slug: ler-code-hungrypathing-site-redesign-docs-737f21ae +--- +--- +target: Hungry Pathing site +total_score: 28 +max_score: 40 +na_heuristics: +p0_count: 0 +p1_count: 5 +--- +# Critique: Hungry Pathing site (docs/) +Method: dual-agent (A design review, B site test + detector + browser + audit) +Tests: (1) PARTIAL - h1/lede state timing and closest storage, but "off duty nothing changes", penalty redirects, no pathfinding change and co-op are off the first screen; banner buffer mark drawn at ~30% for a 10% span; (2) PARTIAL - honest status repeated three times with a hand-written "0.3.1", the settings file never named on the overview, co-op and the Simulation settings line buried in a table cell; (3) PASS with gaps - confirm lines not picked out, no sample Day N line, download 1.5 screens down on phone. +Heuristics 28/40 (Good, low end). Cognitive load moderate (6+4 cards, flat hierarchy, internals on the overview). +Priority: [P1] before/after table unreadable on phones (th/td display:block); [P1] version history (switched-off, compat, faq#coop, results/cta/install callout); [P1] first screen missing trust facts; [P1] anchor jumps hide headings under a 134px phone header; [P1] light-mode focus ring 1.58:1; [P2] borrowed PWA identity and dead demo CSS, mod coral absent; [P2] overview long and flat, status repeated x4; [P2] confirm lines not picked out; [P2] og:image SVG; [P2] tap targets <44px; [P3] 404 bare, dark-only theme-color, inline styles, tables without captions, faint light borders. +Site test: 37/37 (stub DOM subset for local scripts; download/preview/tag rules; relative asset paths; well-formed HTML). +Perf: ~46 KB home, no fonts, CLS 0. diff --git a/PRODUCT.md b/PRODUCT.md new file mode 100644 index 0000000..4fe7092 --- /dev/null +++ b/PRODUCT.md @@ -0,0 +1,216 @@ +# Product + + + +## Platform + +web + +## Users + +Timberborn players with a working colony, usually a large one (hundreds of beavers), who have watched builders and +haulers drop tools at a far site, work at half speed once hunger hits zero, then walk across the map to the district +center for bread while a stocked warehouse sits next door. Many play co-op through BeaverBuddies (the Stability Fork +or MultiColony) and need to know it won't desync their game. Comfortable enough with mods to unzip a folder, but +mostly not programmers. They arrive from the Timbermods org site, a friend or a forum post, want to know in one look +what changes and whether it's safe to add to an existing colony, install it, and later read one log line to confirm +it works. Returning players come back to update, tune the settings file, or report a problem. + +## Product Purpose + +The website for **Hungry Pathing** (https://github.com/timbermods/HungryPathing), a Timberborn mod that makes +working beavers plan food and water around their shift instead of waiting for the hunger penalty, and eat at the +closest stocked storage while on the job instead of crossing the map for a fancier meal. + +What it does, in plain words. During working hours only, for employed adults: +1. **A three-hour buffer** on Hunger and Thirst, from the game's own `HoursWarningThreshold` field (the game uses it + for bots but ships every beaver need at zero and never reads it for beavers). +2. **Just in time:** a beaver measures the walk to the closest stocked storage and leaves early enough to arrive with + the buffer still in hand. +3. **Pre-fuel:** when food or water is within half an hour's walk and the beaver would not last the rest of the shift + plus the buffer, it tops off now (breakfast at the start of a shift; a hauler passing a warehouse mid-shift). +4. **Builder job check:** a builder who has just reserved a site it would not last at lets the site go through the + game's own "could not get there" path and tops off first. +5. **Closest storage while working:** the mod's trips, and the game's own penalty-state trips during working hours, + go to the storage with the shortest walk; a higher-scoring food wins only within a quarter hour of extra walking. + +Off duty the game's own behavior runs unchanged, so evening variety-seeking stays. Beavers don't eat more: daily +consumption is unchanged, only its timing moves. The game does the walking, reserving and eating. + +Success, in order: +1. **Understand it:** the visitor sees the problem (why beavers walk so far in the base game) and the fix, and that + it only touches working hours, changes no pathfinding and writes nothing to saves. +2. **Install it right:** the `HungryPathing-X.Y.Z.zip` under Assets (not *Source code*), extracted so that + `Documents\Timberborn\Mods\HungryPathing\version-1.1\manifest.json` exists (not nested one level too deep), + Harmony enabled, Hungry Pathing enabled; in co-op every player on the same version, game version and an identical + `HungryPathing.cfg`. +3. **Use it:** confirm it loaded (`Hooks installed (5/5).` and `buffer 3h` in Player.log), read the daily summary + line, tune the settings file if wanted. +4. **Report problems:** a GitHub issue with the mod and game versions, BeaverBuddies or not, other mods, and every + `[HungryPathing]` line from Player.log, including any warning with the lines after it. + +## Positioning + +The base game makes a working beaver leave the job only once a need is already at zero, then scores each food group +by need points before looking at distance, so plain berries next to the site lose to bread at the district center +nearly every time. Hungry Pathing keeps the game's own behaviors and changes only *when* a working beaver goes and +*which* storage it picks, from measured walking times. It is not a pathfinding mod, not a ration-carrying mod and +adds no buildings. It is built for lockstep co-op (decisions read only the simulation, with fixed ordering and +tie-breaks), and with BeaverBuddies MultiColony each colony's own working hours are used. The numbers are measured, +not promised: a 355-beaver colony went from 15 beavers in a penalty and 117 within three hours of one to 0 and 0 at +the same hour of the shift. No other mod doing the same job is known to the maintainer; don't name or compare +against any. + +## Operating Context + +- **Current release: 0.3.1 (beta)**, published 2026-09-22 as GitHub's **Latest** (a regular release, not a + pre-release; "beta" is the mod's label, not a GitHub pre-release). Asset `HungryPathing-0.3.1.zip`. The site + names the current release through `docs/assets/release.js`; hand-written text keeps no version number that goes + stale. Earlier releases: 0.3.0 and 0.2.2 (pre-releases, "preview"), 0.2.1, 0.2.0, 0.1.0 alpha. +- **Game:** Timberborn **1.1.2.4** (`MinimumGameVersion` in the manifest). The hooks were written against 1.1.2.4 + and, if a game update moves one, the mod installs none of them and says so in the log. Built and checked on + Windows only. +- **Requires:** **Harmony** 2.4.1 or newer (Steam Workshop 3284904751). Nothing else. +- **Saves:** nothing is saved. It can be added to or removed from any colony at any time; no migration on update. +- **Co-op:** works with BeaverBuddies. Condition: every player installs the same mod version, runs the same game + version and uses an identical `HungryPathing.cfg` (only `DailyReport` and `Diagnostics` may differ). The + `Simulation settings:` line printed at startup is what players compare. BeaverBuddies itself only warns when mod + versions differ. With **BeaverBuddies MultiColony**, each beaver's shift end comes from its own colony's working + hours (asked through reflection, no dependency) and the storage index is per district, so colonies never eat from + each other's storages. 0.3.x changes decisions compared with 0.2.1: co-op players update together. +- **Factions:** Folktails tested; Iron Teeth expected to work, untested. Tubeways and ziplines can hide the quickest + storage outside the `CandidateLimit` nearest by straight line. +- **What players meet in game:** almost nothing. Hungry Pathing appears in the game's **mod manager**. There is **no + in-game settings screen** (not Mod Settings): every setting is a `key = value` line in + `version-1.1\HungryPathing.cfg`, read once at startup (`Enabled`, `Needs`, `WarningHours`, `JustInTime`, + `JustInTimeLeadHours`, `PreFuel`, `PreFuelNearFoodHours`, `BuilderJobCheck`, `BuilderJobWorkHours`, + `WorkTimeClosestFood`, `VarietyToleranceHours`, `RedirectCriticalTrips`, `CandidateLimit`, `RetryHours`, + `DailyReport`, `Diagnostics`; CONFIGURATION.md explains each). The only UI text is one English **dialog** shown if + the mod switches itself off after an error; it asks co-op players to have the host save and host that save again, + with every player joining it. Everything else is Player.log lines. +- **Reporting:** GitHub issues at https://github.com/timbermods/HungryPathing/issues. Log: + `%USERPROFILE%\AppData\LocalLow\Mechanistry\Timberborn\Player.log` (`Player-prev.log` for the previous session). + +## Capabilities and Constraints + +- **Stack and hosting:** plain static HTML/CSS with no build step, in `docs/` on `main`: `index.html` (Overview), + `install.html`, `troubleshooting.html`, `faq.html`, `404.html`, and `docs/assets/` (`style.css`, `release.js`, + `banner.svg`, `favicon.svg`). GitHub Pages serves `main:/docs` (legacy build) at + https://timbermods.github.io/HungryPathing/, so merging to `main` publishes; there is no deploy script. System + fonts only, dark theme by default with a `prefers-color-scheme: light` variant. The FAQ's Expand all / Collapse all + and open-from-hash are an inline script in `faq.html`. `404.html` loads its stylesheet and links by absolute + `/HungryPathing/` paths (it is served at any depth); keep it that way. One of the Timbermods sites; the footer links + to https://timbermods.github.io/. +- **Contracts the site test enforces** (`node tests/test-site.mjs`, Node only, no packages, no network; run by + `.github/workflows/tests.yml` on every pull request and every push to `main`, after the planner checks and even if + they failed). It parses every `*.html` directly in `docs/` into a stub DOM, runs each page's local scripts against + a fake GitHub API over seven release scenarios, and fails when: + 1. `index.html` or `install.html` is missing or has no download button. A **download button** is any `` with + `data-release-href="download"`, or any `` whose text contains the word "download" (any case). + A button that says Download is therefore always held to rules 2 and 5. + 2. As written, before any script runs, any download button's `href` is anything other than exactly + `https://github.com/timbermods/HungryPathing/releases/latest`. + 3. A sample log line on any `docs/*.html` page or in `README.md` matches `[HungryPathing] loading.` (for + example `0.3.1` or `v0.3.1`). Sample lines show `` (`<version>` in HTML). + 4. A label is shown with an empty value: any `[data-release]` element that is empty while its parent shows other + text. Such labels (the install guide's `File:` line, `p.file-name`) must be hidden until the script runs, by a + rule in a local stylesheet written exactly as `html:not([data-release-ready]) { display: none; }`, + where `` is a simple compound selector (tag, `.class`, `[attr]`, `[attr="value"]`, comma-separated) + or the element has `hidden`. A descendant or other complex selector in such a rule makes the test throw. After + the script runs with a release, every such field must be filled. + 5. When GitHub answers, every download button on every page must point to the offered zip + (`https://github.com/timbermods/HungryPathing/releases/download//HungryPathing-.zip`). The offer + is GitHub's Latest (newest non-draft, non-pre-release), or the newest pre-release only when there is no Latest, + never a draft, even when more than ten pre-releases are newer than the Latest. + 6. Every page with a download button must show the offered tag (`v0.2.1` style) or its zip name in visible text + after the script runs, and **no page may show any other release's tag or zip name**. So hand-written text never + contains a real tag like `v0.3.1` or a real zip name like `HungryPathing-0.3.1.zip`; plain version numbers + without the `v` (as in "measured on 0.1.0") and `HungryPathing-X.Y.Z.zip` are safe. + 7. The word **"preview"** (whole word, any case) appears in the visible text of any page unless the offered release + is a pre-release, and it must appear when it is. Today only the hero's `` says it. Never use "preview" anywhere else in visible copy, including the FAQ and 404. + 8. When GitHub refuses (rate limit) or there are no releases, download buttons must keep their written links and + no page may name a release or say "preview". + 9. Any page's local scripts throw. Every ` diff --git a/docs/install.html b/docs/install.html index 8e26cb9..eb6dcba 100644 --- a/docs/install.html +++ b/docs/install.html @@ -7,7 +7,8 @@ - + + @@ -24,7 +25,7 @@
  • Install
  • Troubleshooting
  • FAQ
  • -
  • GitHub
  • +
  • GitHub
  • @@ -104,10 +105,17 @@

    Check that it works

    [HungryPathing] Hooks installed (5/5). [HungryPathing] Active. One summary line per in-game day follows while a game runs. [HungryPathing] Needs in this game: Hunger: buffer 3h, decays 0.8/day so a full bar lasts 30h; Thirst: buffer 3h, ... -

    <version> is the version you installed, and the ... parts vary. The buffer 3h part confirms the blueprint patches loaded. After each in-game day a Day N: trips started by rule: ... line says how often each rule fired.

    +

    <version> is the version you installed, and the ... parts vary. Three of those lines are the ones to check:

    +
    +
    Hooks installed (5/5).
    All five of the mod's hooks attached to the game. Anything else means a game update moved one; see Troubleshooting.
    +
    Hunger: buffer 3h ... Thirst: buffer 3h
    The three-hour buffer is in place for both needs.
    +
    Simulation settings: ...
    The values the mod uses. In co-op, every player's line must read the same.
    +
    +

    After each in-game day a summary line says how often each rule fired. It looks like this (an example from the test colony; your numbers will differ):

    +
    [HungryPathing] Day 319: trips started by rule: just-in-time 41, pre-fuel 87, builder job 3 (of 60 job checks), critical redirected 9. 2160 evaluations, 4 failed launches, 3104 path queries.
    Beta -

    0.1.0 and 0.2.0 have run in one 355-beaver colony for 36 in-game days, nearly all as a BeaverBuddies host; the one error found there was fixed in 0.2.1. That is still one colony, and 0.3.1 has not been played in a live colony yet. Try it on a copy of your save first, and if the mod says it switched off, please report it with the lines that follow the warning.

    +

    One 355-beaver colony has run the mod for 36 in-game days, nearly all as a BeaverBuddies host, and the one error found there is fixed. That is still one colony, and the newest changes haven't been played in a live colony yet. Try it on a copy of your save first, and if the mod says it switched off, please report it with the lines that follow the warning.

    If something doesn't look right, head to Troubleshooting.

    @@ -150,8 +158,8 @@

    Uninstalling