Skip to content

Migrate uf.address-feedback.md model normalization to normalize_model_name tool #709

Closed

Description

@jflowers

Summary

uf.address-feedback.md Phase 4.2 contains a verbatim copy of the 6-step model name normalization algorithm (strip provider prefix, strip @ suffix, strip -YYYYMMDD date suffix, strip trailing -N version segments, validate charset, fallback to unknown-model).

The uf-workflow plugin now provides normalize_model_name as a tool that implements this exact algorithm. The command should call the tool instead of embedding the algorithm inline, reducing ~40 lines of LLM instruction.

Current State

uf.address-feedback.md Phase 4.2 (lines ~580-610) contains:

Where `<model>` is the model family name you are
currently running as. To resolve the model name:
(1) read your model identifier from the system prompt
or runtime environment; (2) remove everything before
and including the last `/`; (3) remove everything
after and including the first `@`; (4) remove any
trailing date suffix matching `-YYYYMMDD` (a hyphen
followed by exactly 8 digits); (5) repeatedly remove
any trailing version segment matching `-N` (a hyphen
followed by a single digit at the end) until no more
remain; (6) validate the result
contains only `[a-zA-Z0-9._-]` characters.

Desired State

Replace the inline algorithm with a tool call:

Where `<model>` is the normalized model family name.
Call `normalize_model_name` with your raw model identifier
from the system prompt. Use the returned `normalized` value.
If the tool returns an error or `unknown-model`, warn the user.

Acceptance Criteria

  • uf.address-feedback.md Phase 4.2 uses normalize_model_name tool instead of inline algorithm
  • Both scaffold and live versions are updated and kept in sync
  • Existing tests continue to pass
  • No behavioral change — same model names produced

Context

This was split out from the /uf.finale token reduction work where normalize_model_name was introduced as a shared uf-workflow plugin tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions