Compare commits

..
12 Commits
Author SHA1 Message Date
ginnoir 6fe1b97f11 fix: rename Blinding White Plus NDS path to avoid RomM Demo exclude filter 2026-11-29 04:27:50 -06:00
ginnoir be21561df8 chore: export 591-hack catalog after full Hackdex sync (174 new, 46 updated) 2026-11-29 04:15:52 -06:00
ginnoirandClaude Opus 5.5 cbf6dc5dbd data: update Pokémon Soulgold to 1.2.1
Soulgold 1.2.1 (rahtak, 2026-10-25) replaces 1.0.4.2. The library ROM
(RomM id 13359) was replaced in place, SHA-1
dacb6e40e7f572ddefd2dfa10e99c0da6835b062; the 1.0.4.2 ROM is kept in
_superseded-2026-11-29 on valhalla.

Also fixes the Hackdex link label, which the hyphen in "in-browser" had
truncated to "browser patcher", and adds the FAQ and Discord links.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:24:22 -06:00
ginnoirandClaude Opus 5.5 ad2a276be2 data: add Pokémon Generation 3 Evolved
Adds Generation 3 Evolved 1.0.26 (specimendelta) — a FireRed-based
Expansion on pokeemerald-expansion spanning Kanto, Sevii and Hoenn with
the full #1-1025 dex, released 2026-11-20 — taking the catalog to 417
hacks (GBA 211). Placed in the RomM library as
roms/gba/Pokemon - Generation 3 Evolved [Hack].gba, id 13371, SHA-1
verified against the local file and HASHES-healed (rom_files = 1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:20:03 -06:00
ginnoirandClaude Opus 5.5 1a13b7ba42 data: update Pokémon Monomyth to 1.2
Monomyth 1.2 (patch published 2026-11-15) replaces 1.1 in the catalog.
The library ROM (RomM id 13366) was rebuilt from the official
monomyth_v1_2.bps on a clean Emerald and replaced in place, SHA-1
742e62ffa5a8d607171fdb8477eb1f417dc36086.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:12:29 -06:00
ginnoirandClaude Opus 5.5 98b7fe9111 data: add Pokémon Ceruleum
Adds Ceruleum 1.1.1 (selenol) — a complete new-region Emerald hack on
pokeemerald-expansion, released 2026-10-25 — taking the catalog to 416
hacks (GBA 210). Placed in the RomM library as
roms/gba/Pokemon - Ceruleum [Hack].gba, id 13370, SHA-1 verified against
the local file and HASHES-healed (rom_files = 1).

Also re-exports Monomyth's version bump to 1.1, already in its vault note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 01:51:02 -06:00
ginnoirandClaude Opus 5 7982f1442f Merge branch 'feat/romhack-update-swarm'
Brings in the update-swarm tooling (census, judge, fetch, librarian, CLI,
scout schema, gated/watchlist reports) with its design spec and plan, the
10 catalog version bumps it produced, the Monomyth import, the Mythic
Silver / Platinum Kaizo restorations, and the three new TARC-era imports
(Homestead, Turnabout at Sea, Wishes of Tomorrow).

All 8 unittest files green (45 tests) before merge.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-10-31 03:27:55 -05:00
ginnoirandClaude Opus 5 91e4538929 data: add Homestead, Turnabout at Sea and Wishes of Tomorrow
Three new GBA entries, all Emerald hacks on pokeemerald-expansion, taking
the catalog to 415 hacks (GBA 209). All three placed in the RomM library
with SHA-1 verified against the local files:

- Homestead 1.0.1 (FaelingDraws, Mudskip & Montblanc) — TARC 3 entry, a
  battle-free breeder matchmaking puzzle, ~1 hour. RomM id 13367.
- Investigations: Turnabout at Sea 1.0.2 (Miriam & Fisham) — TARC 3 entry,
  Ace Attorney Investigations crossover, five endings. RomM id 13368.
- Wishes of Tomorrow 1.2.6 (Flatfoot Labs) — new region, three acts, full
  Shadow Pokémon system with Shadow Megas. RomM id 13369.

Turnabout at Sea is tagged Crossover, which was already used by Omniversal
Emerald and Pokemblem but had no section in the vault's Types.md and no
entry in this script's INDEX_BYTYPE legend, so [[Types#Crossover]] links
resolved to a missing anchor. Added the legend line here; the Types.md
section was added in the vault.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-10-31 03:27:46 -05:00
ginnoirandClaude Opus 5 0e32a01415 docs: add update-swarm design spec and implementation plan
Both documents already back the shipped scripts/update_swarm/ package and
are cited as the canonical spec from the Obsidian vault's ROM Hacks
reference, but they had never been committed — so the repo carried the
implementation without the design it was built from.

- specs/2026-08-14-romhack-update-swarm-design.md — approved design
- plans/2026-08-14-romhack-update-swarm.md — task-by-task implementation plan

Checked for credential-shaped strings before committing; clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-10-31 03:12:35 -05:00
ginnoirandClaude Opus 5 d24720e8e8 chore: ignore Python bytecode at any depth
The rule only covered scripts/__pycache__/, so the caches for the
update_swarm package and its tests (scripts/update_swarm/__pycache__/,
tests/update_swarm/__pycache__/) were never ignored and showed up as
untracked noise on every status check.

Replaced with a depth-independent __pycache__/ plus *.py[cod]. Verified no
bytecode was already tracked, so nothing becomes silently ignored.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-10-31 03:12:35 -05:00
ginnoirandClaude Opus 5 42f5f17683 fix: normalise the non-breaking space in Fused Dimensions
The note's filename and title carried U+00A0 rather than a plain space. That was
the faithful original - the mojibake repair reversed to it correctly - but it is
a scrape artefact, not an authored name: nobody titles a hack with a
non-breaking space, and an invisible character in a filename is the same class
of trap as the mojibake itself, since it silently breaks greps and hand-typed
wikilinks.

No URL impact. NFKD folds U+00A0 to a plain space, so slugifyStem already
produced 'fused-dimensions' either way; the published URL is unchanged.

Renamed the note, replaced both in-file occurrences (the title field and the H1)
and regenerated, so the MOC wikilinks now use a plain space too. Verified no
filename, catalog stem or catalog title anywhere still contains U+00A0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-15 18:11:31 -05:00
ginnoirandClaude Opus 5 b8c69ce789 fix: repair 7 mojibake note filenames
Seven hack notes had filenames whose UTF-8 bytes had been decoded as cp437 and
re-encoded, e.g. "Anil.md" stored as "A" + U+251C + U+2592 + "il.md". Only the
filenames were affected; each note's frontmatter title was already correct.

Repaired by reversing the corruption (name.encode('cp437').decode('utf-8')) and
cross-checking every result against that note's own title field. PokeRogue was
left alone - its U+00E9 cannot be cp437-encoded, proving it is genuine UTF-8 and
not mojibake.

This matters because build-wiki-data.py derives each catalog stem from the
filename and the site derives its URL slug from that. Four published URLs were
wrong and are now fixed:

  /hack/a-il/                -> /hack/anil/
  /hack/fused-adimensions/   -> /hack/fused-dimensions/
  /hack/yu-gi-oh-pok-duel/   -> /hack/yu-gi-oh-pokeduel/
  /hack/recharged-yellow-previously-known-as-pok-mon-yellow-cross/
                             -> ...-as-pokemon-yellow-cross/

The other three were already served correctly, because slugifyStem in the site
repo carries a replaceAll for the mojibake apostrophe. Those URLs are unchanged.

Fallout handled: of 19 vault references, 18 live in files build-vault-mocs.py
regenerates and were fixed by rerunning it. The one hand-written reference, in
Nuzlocke-Friendly (Vanilla+).md, was updated directly. annotate-engines.py also
keyed its ENGINE_MAP on the corrupted stem, so a future run would have silently
skipped Recharged Yellow; that key is corrected here.

Verified: zero mojibake sequences remain anywhere in the vault or this repo, all
seven notes resolve under their new names, catalog steady at 411, and the site
builds 486 pages with banners regenerated under the new slugs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-15 18:11:31 -05:00
5 changed files with 15334 additions and 173 deletions

No files matched your search

+6 -1
View File
@@ -21,7 +21,12 @@ Thumbs.db
# scratch; the canonical synthesis lands in the Obsidian vault notes). # scratch; the canonical synthesis lands in the Obsidian vault notes).
.scrape/ .scrape/
.scrape_lib/ .scrape_lib/
scripts/__pycache__/
# Python bytecode, at any depth — scripts/, scripts/update_swarm/, tests/update_swarm/.
# The old rule only covered scripts/__pycache__/, so the package + test caches kept
# showing up as untracked noise.
__pycache__/
*.py[cod]
# Per-machine ROM compare/patch scratch (side-by-side emulator runs, patch builds). # Per-machine ROM compare/patch scratch (side-by-side emulator runs, patch builds).
.compare/ .compare/
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,164 @@
# ROM Hack / Fangame Update Swarm
Date: 2026-08-14
Status: design approved in chat; awaiting spec review before implementation plan
Repo: `C:\Users\MattC\Documents\pokemon`
Vault catalog: `Pokémon ROM Hacks/` (~411 notes)
Library: valhalla `/storage1/Emulation/roms/<platform>/` via RomM
## What we decided
- **Shape:** pipeline swarm. Census and scouts run in parallel; one librarian mutates the library; site deploys once per run.
- **Place:** auto-download and place ungated English updates (GitHub, archive.org, MediaFire, public Mega with `#key`). Queue gated hosts (itch, Drive, Discord, Ko-fi, and anything else that needs a human click).
- **Scope:** whole catalog, including Demo Watchlist and Wanted.
- **Watchlist:** auto-place only if the game is now **Complete** and the English build is ungated. Still-demo updates are a report + note bump, not a download.
- **Writeback:** every successful place updates the vault note, archives the superseded file, runs a scoped RomM scan, then one MOC + `catalog.json` + site deploy at the end of the run. Watchlist reports still bump the note even when nothing is placed.
- **Installed version:** read from the files first. Vault `version` is an acceptable fallback. Do not launch games for screenshots.
- **Latest version:** official site → HackDex → PokeCommunity → other. Always the latest **English** build, even when another language is newer (the Z rule).
## Pipeline
```
Census (parallel, local, script)
→ Scouts (parallel, web, LLM agents)
→ Judge (one script, no downloads)
→ Fetchers (parallel, staging only)
→ Librarian (one, serial)
→ Site deploy (once per run)
```
| Role | Job |
|---|---|
| Census | Installed version from files (notes as backup). Notes also supply homepage/source URLs. |
| Scout | Latest English version from the source list. HackDex is anti-bot: browser or skip, never invent a version. |
| Judge | Bucket each stem. English wins over a newer foreign build. |
| Fetcher | Ungated URLs only, into `staging/`. Never writes `roms/`. |
| Librarian | Archive superseded → place → scoped RomM scan → vault patch. |
| Deploy | `build-vault-mocs.py` + `build-wiki-data.py` + site build/deploy once after the librarian finishes. |
Watchlist still-demo: Census + Scout + Judge + note bump. No fetch.
Wanted that stays gated: gated queue. No fetch.
Wanted that is Complete and ungated: same as Update (place it).
## Census — installed version
Do not launch games. Priority:
1. Changelog / readme inside the zip or next to the ROM — the “Current Version” line, not the banner (Infinity’s README lied).
2. `Game.ini` / `mkxp.json` / other packaged metadata.
3. Version tokens in the filename (`[3.3.1]`, `v1.0.4.2`).
4. ROM/header strings when they are actually a version, not just the hack name.
5. Vault `version` field — backup, tagged `source: note`.
6. Unknown — still scout. Compare later by hash if needed.
`Game.exe` (and ROM) hashes confirm a download matches; they are not a version number.
Notes are never the source of truth for *latest available*. That is Scout’s job.
## Scout — latest English
Source order, first hit that names an English build wins:
1. Game’s own website / GitHub releases / project page
2. HackDex (catalog reference; Cloudflare worker is not scrapable — browser or `hackdex: blocked`)
3. PokeCommunity
4. Other (Eevee Expo, PokeHarbor, Romhacking.net, Reddit, …)
Record: latest English version, URL, host (`github` | `archive` | `mediafire` | `mega` | `itch` | `drive` | `discord` | `kofi` | `other`), gate (`ungated` | `gated`), language matrix when EN trails, and which source was used.
Ungated: GitHub release assets, archive.org, MediaFire file pages, Mega public links that include the `#key` fragment (`megadl`). Mega without a key is gated.
## Judge — buckets
| Bucket | When | Action |
|---|---|---|
| Current | Installed English ≥ latest English | No file or note change. No “checked” stamp in v1. |
| Update | Newer English exists, ungated | Fetch → librarian places + full writeback |
| Gated queue | Newer English exists, gated host | Link + version on `gated.md`; no fetch. If it is also now Complete, bump the note status anyway. |
| Watchlist report | Still a demo, newer build exists | Note bump + `watchlist-report.md`; stay on watchlist |
| Watchlist promote | Watchlist item is now Complete **and** English is ungated | Same as Update; remove from Demo Watchlist |
Hard rules:
- Compare versions after stripping `v`/`V` and language tags (`(EN)`, `(ES)`). If they still do not order (dates, “Final”, “Nightly”), the Judge records `incomparable` and the orchestrator decides — never guess a “greater than.”
- Vault says one version, file is another language, site has a newer foreign and an older English → keep/serve **English**. Archive a newer non-English library copy; do not serve it.
- Scout sources disagree → official site, then HackDex, then PokeCommunity, then other. Store the URL used.
- Installed version unknown → skip fetch only if the scout’s English file is byte-identical to disk; otherwise Update.
- Watchlist Complete but gated → Gated queue + note bump, not promote. Promote requires a successful place.
## Run folder
`C:\Users\MattC\Documents\pokemon\.scrape\update-runs\YYYY-MM-DD\` (gitignored with the rest of `.scrape/`).
| Path | Writer |
|---|---|
| `jobs.json` | Orchestrator — one row per catalog stem |
| `census/*.json` | Census script on valhalla |
| `scouts/*.json` | One file per scout wave |
| `verdict.json` | Judge |
| `staging/` | Fetchers |
| `gated.md` | Judge / librarian |
| `watchlist-report.md` | Judge / librarian |
| `log.md` | Librarian + deploy |
Waves:
1. Census script walks every `library_path` on valhalla. Catalog-only stems (no file) skip file steps and use note version (`source: note` or `unknown`).
2. Scout agents in waves of ~12 stems. Each agent receives title, homepage/source URLs, installed version + source tag. Returns the scout record above. No downloads.
3. Judge script fills `verdict.json`.
4. Fetchers pull Update + Watchlist promote ungated URLs into `staging/`.
5. One librarian for the whole batch.
6. One site deploy covering every successful place in the run.
A scout that cannot beat Cloudflare records `hackdex: blocked` and falls through. It does not invent a version.
## Librarian
- Input is `staging/` only.
- Live path keeps the current name (`Pokemon - <Hack> [Hack].<ext>`).
- Old file → `/storage1/igir/romhacks/incoming/_done/_superseded-YYYY-MM-DD/` with the old version in the filename. Never delete.
- PC zips stay vendor-shaped if `launch-pc-hack.ps1` already finds the launcher. Repack only when unplayable (`.rar`, split archives, installer stubs).
- `chmod o+r` after place.
- RomM: always pass `platform_ids`. `roms_ids` alone walks the whole library. QUICK first; HASHES only if `files=0`. Confirm `missing_from_fs=false` and size matches staging.
- Vault: `version`, `release_date`, better `source`/`homepage` if found. Append `## Version history` (language matrix when EN trails). Watchlist promote sets `status: Complete` and removes the stem from Demo Watchlist. Watchlist report bumps `version`/`status` and leaves it listed.
- Site authoring: Summary is prose-only; link labels have no parentheses.
- If `vault_patch` misses a heading on a freshly written note, edit the file on disk.
MOCs, `wiki/catalog.json`, site copy, and deploy happen **once** after the librarian pass, not per game.
## Failures
- Scout blocked/timeout → mark blocked, fall through the source list, no invented version.
- Download hash/size mismatch, or the archive changelog is not the English version we wanted → leave in `staging/`, do not place.
- RomM unhappy → keep superseded + staging, do not patch the note as success.
- Librarian crash → `verdict.json` + `log.md` record `placed` vs `pending`. Resume without re-scouting completed stems.
- Site deploy fail → files + notes may still be right; retry deploy alone.
## First run (smoke)
Not the whole catalog. Orchestrator picks 8–12 stems covering:
- 2–3 library GBA/NDS with a homepage
- 2 PC fangames (one with a changelog in the zip)
- 1 multilingual (Z-class: confirm we keep English)
- 1 watchlist demo (expect report, not place)
- 1 watchlist that might be Complete (promote path)
- 1 gated Wanted (expect queue only)
If `verdict.json` looks sane, continue in waves of ~40.
Z itself is a valid multilingual smoke candidate if we want a known control (already on English v2.13 as of 2026-08-14).
## Out of scope (v1)
- Launching games or capturing in-game version screenshots
- Parallel librarians
- Per-game site deploys
- Auto-placing gated hosts (itch CSRF, Drive, Discord, Ko-fi)
- Deleting superseded builds
- Stamping “last checked” on Current games
- Inventing versions when every source fails (record `unknown` and skip)
## Success
A run is done when `verdict.json` has a bucket for every stem in `jobs.json`, every Update/promote either `placed` or failed-open in `log.md`, `gated.md` and `watchlist-report.md` exist, vault notes match placed files, and (on a full successful librarian pass) the site has been rebuilt once.
+2 -1
View File
@@ -249,7 +249,8 @@ INDEX_BYTYPE = """## By type
- [[Types#New Experience|New Experience]] — New region, story, and/or Pokédex — a fresh adventure, not the official game. - [[Types#New Experience|New Experience]] — New region, story, and/or Pokédex — a fresh adventure, not the official game.
- [[Types#Demake|Demake]] — Recreates a later-generation game on older hardware. - [[Types#Demake|Demake]] — Recreates a later-generation game on older hardware.
- [[Types#Roguelite|Roguelite]] — Run-based, randomized, permadeath-flavored structure. - [[Types#Roguelite|Roguelite]] — Run-based, randomized, permadeath-flavored structure.
- [[Types#Cosmetic|Cosmetic]] — Visual/audio overhaul (e.g. Moemon sprites, tilesets, music) over an existing game.""" - [[Types#Cosmetic|Cosmetic]] — Visual/audio overhaul (e.g. Moemon sprites, tilesets, music) over an existing game.
- [[Types#Crossover|Crossover]] — Brings another series' cast, setting, or gameplay loop into a Pokémon base."""
INDEX_PLAYQUEUE = """## Play Queue INDEX_PLAYQUEUE = """## Play Queue
+13751 -171
View File
File diff suppressed because it is too large. Load diff