Skip to content

Every contract-refusal fixture that prints a help line checks it (#3129) - #3533

Merged
ehartford merged 1 commit into
mainfrom
facade-help-finish
Nov 22, 2026
Merged

ehartford merged 1 commit into
mainfrom
facade-help-finish

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Closes #3129.

The issue's done condition: every facade diagnostic carries a help line with an accepted spelling, and a fixture per diagnostic checks the help text.

  • Help lines: all 279 refusals in the facade checker carry one (landed earlier in 7c34561); the two remaining emit_error(msg) sites pass through a message built elsewhere with its help.
  • Fixtures: 72 more err_c_facade_* fixtures now check the help line they print, so 218 of 242 do.
  • The 24 that print no help line, accounted for:
    • 19 are not contract refusals. They are errors at the use site: unsafe required for a raw call, a view outliving its origin, a non-Send capture, an unknown method on a borrowed return, a type mismatch.
    • 5 are contract-grammar errors from the parser whose message already states the accepted spelling (bad_item, bad_domain_kind, buffer_capacity_no_inout, retains_without_by, variadic_callback_pair_missing), for example: "retention is written 'retains param by param '".

Two local branches of older fixtures were found stranded and checked: everything in them is on main except two fixtures asserting behaviour that has since changed, so they were dropped.

Test-only change. Battery green; :release-checks green.

@ehartford
ehartford merged commit 6d63b10 into main Nov 22, 2026
@ehartford
ehartford deleted the facade-help-finish branch November 22, 2026 09:21
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.

Facade refusals don't say what to write: an agent following the spec guessed the grammar for an hour

1 participant