Skip to content

fix: probe compiled RIMAPI DLL before Workshop - #70

Merged
jkbennitt merged 2 commits into
masterfrom
cursor/rimapi-path-probe-ef2f
Sep 7, 2026
Merged

fix: probe compiled RIMAPI DLL before Workshop#70
jkbennitt merged 2 commits into
masterfrom
cursor/rimapi-path-probe-ef2f

Conversation

@jkbennitt

@jkbennitt jkbennitt commented Sep 7, 2026

Copy link
Copy Markdown
Member

Summary

Restore run-metadata RIMAPI pins to the compiled fork checkout. Workshop is no longer treated as source of truth.

collect_metadata() now probes DLLs in this order (first existing file wins):

  1. $RIMAPI_DLL_PATH
  2. $RIMAPI_FORK_PATH/1.6/Assemblies/RIMAPI.dll
  3. Sibling of the RLE git toplevel: ../RIMAPI/1.6/Assemblies/RIMAPI.dll
  4. Steam Workshop path (optional last fallback)

Fork commit honors $RIMAPI_FORK_PATH, then the sibling of git rev-parse --show-toplevel. Path(__file__).parents[3] is no longer the only fallback — that path is empty from site-packages / .venv. Missing fork still records "".

AppSprout runs should set RIMAPI_DLL_PATH and RIMAPI_FORK_PATH to the compiled checkout. Summaries record rimapi_dll_path, rimapi_dll_sha256, and rimapi_fork_commit.

Known pins (not re-hashed here): compiled BFC9DD53… @ b6c5003; Workshop 73E659E8… is Flash drift.

Docs

  • CLAUDE.md, README.md, CONTRIBUTING.md, .env.example
  • Repo-local memo: docs/2026-09-07-rimapi-path-probe.md
  • Requested box path /workspace/drafts/2026-09-07-rimapi-path-probe.md is not in this repo and will be written separately

Tests

Focused suite on this revision:

  • pytest tests/unit/test_metadata.py — 17 passed (probe order, compiled-over-workshop, fork-commit env/fallback/empty, site-packages skip, summary fields)
  • ruff check src/rle/tracking/metadata.py tests/unit/test_metadata.py — clean
  • mypy src/rle/tracking/metadata.py — clean

Plan

  • Deterministic compiled-first DLL probe
  • Git-toplevel sibling for fork commit
  • Unit tests
  • Docs + memo
  • Focused pytest / ruff / mypy
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 7, 2026 22:09
Restore run-metadata pins to the compiled fork checkout. Probe
RIMAPI_DLL_PATH, then RIMAPI_FORK_PATH, then the sibling of the RLE
git toplevel, and only then the Workshop overlay. Fork commit uses
the same env plus git toplevel sibling so site-packages installs
still record the pin.

Co-authored-by: Jason <jkbennitt@users.noreply.github.com>
Identical marker files produced the same short hash, so the
env-over-sibling assertion could not distinguish the two repos.

Co-authored-by: Jason <jkbennitt@users.noreply.github.com>
@jkbennitt
jkbennitt marked this pull request as ready for review September 7, 2026 22:10
@jkbennitt
jkbennitt merged commit e940ef8 into master Sep 7, 2026
5 checks passed
@jkbennitt
jkbennitt deleted the cursor/rimapi-path-probe-ef2f branch September 7, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants