Skip to content

Infer remaining typing cues to remove 161 mismatches - #251

Merged
krzema12 merged 2 commits into
mainfrom
wording-and-typing-attributes
Nov 23, 2026
Merged

krzema12 merged 2 commits into
mainfrom
wording-and-typing-attributes

Conversation

@krzema12

@krzema12 krzema12 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Follow-up to #250 (now merged). Restacked on main, which includes the single collection of possible typings, and adds the measured heuristic batch that takes typing-mismatches.yml from 587 → 426 entries.

This is a strict improvement: 161 mismatches dropped, 0 added.

Heuristic change Dropped Added
Infer comma-separated lists from platforms names and builder-node platform descriptions 18 0
Infer comma-separated lists from exposed “comma separated” wording 13 0
Infer newline-separated lists from deprecated *unit_files/trx_files names 24 0
Infer named Days integers from days-before-{pr-stale,pr-close,issue-close} 21 0
Infer integer/list typings from artifact-ID names and descriptions 7 0
Keep stale/closed issue outputs as string 14 0
Infer BehaviorIfNoFilesFound enum before the leading-if boolean rule 6 0
Infer enum from close-issue-reason 7 0
Infer boolean for exempt-all-PR-assignees wording/name 7 0
Prefer explicit Valid values are ... over earlier quoted cues 6 0
Infer float for rate-limit-...-seconds 6 0
Infer pipe-separated list from failed-wrapper wording 5 0
Accept comma as an additional separator when docs say comma or newline 16 0
Treat YAML '\n' as an equivalent newline separator 11 0
Combined 161 0

Implementation details

  • Adds name and named-values as typing attributes so Days and BehaviorIfNoFilesFound can be inferred directly.
  • Adds name- and description-based cues for platforms, artifact IDs, stale/closed outputs, close reasons, exempted PR assignees, rate-limit seconds, and pipe-separated paths.
  • Reorders enum heuristics so explicit Available Options: and Valid values are ... wording wins over earlier quoted or boolean cues.
  • Guards the new comma-separated rule against the two known false-positive descriptions.
  • Expands the single collection of possible typings only for list separators; the originally inferred typing is always kept first.

Commits

  1. Document current behavior for all remaining mismatch sources with withData cases.
  2. Implement the heuristics, update expectations, and regenerate typing-mismatches.yml.

Verification

  • RUN_TYPING_HEURISTICS_TESTS=true .github/workflows/typing-heuristics.main.kts — passed.
  • .github/workflows/test.main.kts — passed.
  • RUN_TESTS=true .github/workflows/update-typings.main.kts — passed.
  • Regeneration wrote 426 mismatches.
  • Baseline key diff against main: 161 removed, 0 added.

@krzema12 krzema12 changed the title wording and typing attributes Infer remaining typing cues to remove 161 mismatches Nov 23, 2026
@krzema12
krzema12 force-pushed the alternative-typing-separators branch from eeeb368 to 017df6a Compare November 23, 2026 17:56
@krzema12
krzema12 force-pushed the wording-and-typing-attributes branch from cf6442b to f738a0a Compare November 23, 2026 18:01
Base automatically changed from alternative-typing-separators to main November 23, 2026 18:54
@krzema12
krzema12 force-pushed the wording-and-typing-attributes branch from f738a0a to c8b62de Compare November 23, 2026 18:56
@krzema12
krzema12 merged commit 64f0f0b into main Nov 23, 2026
7 checks passed
@krzema12
krzema12 deleted the wording-and-typing-attributes branch November 23, 2026 19:08
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