You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
config: ripr.toml typos get no did-you-mean, no editor schema, and no docs/code key parity #13682
Problem: every ripr.toml table already denies unknown keys, but a typo like [analysis] modee = "draft" only gets serde's raw "unknown field ... expected one of" list. There is no published JSON schema for editors (Taplo / Even Better TOML), and docs/CONFIGURATION.md has no complete key reference, with nothing keeping docs and parser in sync.
Acceptance:
An unknown key names the nearest valid key in the same table (did you mean \mode`?`), built only from fixed key names (no file text echoed; source-free summary keeps it only for known keys).
schemas/ripr/ripr-config.schema.json describes every table with additionalProperties: false, types, and enums.
docs/CONFIGURATION.md has a ripr.toml reference row for every key.
A test holds parser keys per table == schema keys, schema enums == accepted values, every key documented, every documented row real.
Claim: Claude project thread, branch claude/project-thread-t00lca.
Delivered by #13683, squash-merged as 469debe from reviewed head bee4493. Every required check was green on that head, including Ripr Rust Small Result, all four test shards, Rust gates and the Rust-only feature lane.
Acceptance:
Did-you-mean for unknown keys. An unknown key in a table now names the nearest valid key from serde's expected list, using optimal string alignment. For example, [analysis] modee or mdoe → did you mean `mode`?. The source-free summary keeps that line only when it names a key on the fixed KNOWN_KEYS list (RIPR-SPEC-0007). Tests: config::schema_parity_tests::*typo*, transposition_counts_as_one_edit, suggestion_survives_the_source_free_summary_but_a_forged_one_does_not.
Type errors. Wrong types already fail. The new test wrong_type_names_the_key_and_the_expected_type pins that the error names the key and the expected type. schema_types_match_the_parser_for_every_leaf checks all 42 leaf types against the parser.
Editor schema. Added schemas/config/ripr-toml.schema.json: draft-07, closed tables, enums, integer floors, and cross-field rules for overrides, [profiles.bun_ub] and harness kind/adapter pairs. docs/CONFIGURATION.md shows how to set it up in Taplo / Even Better TOML.
Docs/code parity enforced.docs/CONFIGURATION.md gains a ripr.toml reference table with 72 rows. The parity tests require the parser key sets, the schema properties and the documented rows to be equal in both directions. They also cover every enum and integer floor and the parser's cross-field refusals, and check that ripr.toml.example parses.
Activity
feat(config): did-you-mean for ripr.toml typos, published config sche…
EffortlessSteven commentedon Nov 8, 2026
Delivered by #13683, squash-merged as 469debe from reviewed head bee4493. Every required check was green on that head, including Ripr Rust Small Result, all four test shards, Rust gates and the Rust-only feature lane.
Acceptance:
[analysis] modeeormdoe→did you mean `mode`?. The source-free summary keeps that line only when it names a key on the fixedKNOWN_KEYSlist (RIPR-SPEC-0007). Tests:config::schema_parity_tests::*typo*,transposition_counts_as_one_edit,suggestion_survives_the_source_free_summary_but_a_forged_one_does_not.wrong_type_names_the_key_and_the_expected_typepins that the error names the key and the expected type.schema_types_match_the_parser_for_every_leafchecks all 42 leaf types against the parser.schemas/config/ripr-toml.schema.json: draft-07, closed tables, enums, integer floors, and cross-field rules for overrides,[profiles.bun_ub]and harness kind/adapter pairs.docs/CONFIGURATION.mdshows how to set it up in Taplo / Even Better TOML.docs/CONFIGURATION.mdgains aripr.tomlreference table with 72 rows. The parity tests require the parser key sets, the schema properties and the documented rows to be equal in both directions. They also cover every enum and integer floor and the parser's cross-field refusals, and check thatripr.toml.exampleparses.Generated by Claude Code