Skip to content

Link NaturalProductMech records to its own pages, not GitHub - #224

Merged
realmarcin merged 2 commits into
mainfrom
fix/npm-record-links
Sep 25, 2026
Merged

realmarcin merged 2 commits into
mainfrom
fix/npm-record-links

Conversation

@realmarcin

@realmarcin realmarcin commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Closes #149, closes #229.

NaturalProductMech commits one page per record, pages/<class>/<slug>.html, mirroring data/natural_products/<class>/<slug>.yaml. Its branch build (build_type legacy, main, /) serves them. The census record lists in the heatmap cells and overlap panels now open those pages instead of the YAML on GitHub.

Changes

  • Link base: in scripts/fleet/build_subsets.py, SITE_BASE["NaturalProductMech"] is now https://culturebotai.github.io/NaturalProductMech/pages/, and slug_for emits <class>/<slug>.html.
  • Panel wording: in _fleet/fleet_fragment.html, the cell panel says "source file on GitHub" only for CultureMech and MediaIngredientMech.
  • Docs: _fleet/README.md says which Mechs link where.
  • Rebuilt data: assets/fleet/ was rebuilt with build_subsets.py at the Refresh the X-Mech page from the Mechs as they are now, and add the skill that does it #120 pins, from the same snapshot, followed by build_data.py and assemble_page.py.

Evidence

  • What changed: exactly the 15 NaturalProductMech cell and edge indexes. A structural comparison of old and new JSON finds no differences other than the link base and the .yaml → .html slug suffix. subsets_summary.json and fleet_data.json are byte-identical.
  • Every link resolves: all 3,115 records at pin 36662aa have a committed page (git ls-tree), and all 2,576 distinct records the indexes link are among them. Four sampled live URLs return 200.
  • Checks: python3 -m unittest discover -s tests passes, and assemble_page.py --check reports current. In mechs.md, only the panel-wording line changes.

Left out

CultureMech keeps its GitHub links. Its pages/media/ pages come and go because its Pages source (branch builds) and its Actions deployment override each other (#175). That half of the original issue is now #223, blocked on CultureMech#489.

🤖 Generated with Claude Code

NaturalProductMech commits one page per record, pages/<class>/<slug>.html
mirroring data/natural_products/<class>/<slug>.yaml, and its branch build
serves them, so its census record links now open those pages (#149). The
subsets were rebuilt at the #120 pins from the same snapshot: only the fifteen
NaturalProductMech cell and edge indexes changed, and only in their link base and
slug suffix; all 2,576 distinct records they link have a committed page.
CultureMech stays on GitHub while its pages/ deployment comes and goes (#223).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The comment grouped it with CultureMech's flickering pages/media/; it publishes
none (#229).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@realmarcin
realmarcin merged commit 8157566 into main Sep 25, 2026
1 check passed
@realmarcin
realmarcin deleted the fix/npm-record-links branch September 25, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant