Skip to content

Viable-model check: interpolate the missing transitions into the error - #62

Merged
mmyrte merged 3 commits into
claude/gifted-lamport-41q8gv-03-external-trans-potfrom
claude/gifted-lamport-41q8gv-04-missing-models-message
Oct 10, 2026
Merged

mmyrte merged 3 commits into
claude/gifted-lamport-41q8gv-03-external-trans-potfrom
claude/gifted-lamport-41q8gv-04-missing-models-message

Conversation

@mmyrte

@mmyrte mmyrte commented Oct 5, 2026

Copy link
Copy Markdown
Member

Stack 4/6, on top of #61.

What

.check_viable_trans_models() built its error with glue_collapse(), which does not interpolate, so users saw the literal {toString(missing_models)}. The first line is now glue()d. The second line now names the select_score that a model must carry, since a model without that crossval score also counts as missing.

Tests

The existing expectation in test_integ_trans_models_t.R now matches the interpolated message ("…transition(s): 1, 2.").

🤖 Generated with Claude Code

https://claude.ai/code/session_01D1LLswXe3jLjGTFrBsxgPf


Generated by Claude Code

… error

glue_collapse() does not interpolate, so the error printed the literal
{toString(missing_models)}. Also name the select_score the check requires,
since a model without that crossval score counts as missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D1LLswXe3jLjGTFrBsxgPf
Comment thread R/trans_pot_t.R Outdated
claude added 2 commits October 7, 2026 07:32
…o claude/gifted-lamport-41q8gv-04-missing-models-message
stop() concatenates its arguments, so the message parts carry their own newlines
(.trim = FALSE keeps them; glue's trimming had also swallowed the newlines between the
failed-model entries).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D1LLswXe3jLjGTFrBsxgPf
@mmyrte
mmyrte merged commit 2a6cb6b into develop Oct 10, 2026
2 checks passed
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