Skip to content

Small correctness and hygiene fixes - #136

Open
alecloudenback wants to merge 4 commits into
masterfrom
refactor/01-hygiene
Open

alecloudenback wants to merge 4 commits into
masterfrom
refactor/01-hygiene

Conversation

@alecloudenback

Copy link
Copy Markdown
Member

Four independent fixes, one commit each. No behavior change beyond the fixes themselves.

Changes

  • The get_SOA_table "not found" error message now interpolates the requested name (it printed the literal text table_name).
  • ω and table are const aliases; both were non-const globals, so every call through them was type-unstable.
  • The unused table_dirs global is deleted. It evaluated the artifact path at precompile time and baked an absolute depot path into the image.
  • show on a MortalityTable prints the mort.SOA.org id and link only when the table has an id. Custom tables printed a broken link ending in TableIdentity=nothing.

Testing

  • New tests for the error message and for show on a custom table.
  • Full suite green.

First of a 13-PR stack executing the v3.0.0 refactor plan; targets master. The next PR in the stack is based on this branch.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JFnc6pvofuNXTW2xdCcewT

alecloudenback and others added 4 commits September 11, 2026 17:47
The error message contained the literal text `table_name` because the
interpolation sigil was missing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JFnc6pvofuNXTW2xdCcewT
Both were non-const global bindings, so every call through them was
type-unstable.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JFnc6pvofuNXTW2xdCcewT
It was referenced nowhere and evaluated the artifact path at precompile
time, baking an absolute depot path into the image.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JFnc6pvofuNXTW2xdCcewT
Custom tables printed a broken link ending in TableIdentity=nothing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JFnc6pvofuNXTW2xdCcewT

This branch has not been deployed

No deployments
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.

1 participant