Skip to content

feat(config): did-you-mean for ripr.toml typos, published config schema, docs/code key parity (#13682) - #13683

Merged
EffortlessSteven merged 11 commits into
mainfrom
claude/project-thread-t00lca
Nov 8, 2026
Merged

EffortlessSteven merged 11 commits into
mainfrom
claude/project-thread-t00lca

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven Zimmerman · project thread

Summary

  • An unknown ripr.toml key (already a hard error) now names the nearest valid key in the same table: [analysis] modee or mdoe → did you mean \mode`?(optimal string alignment, so adjacent swaps count as one edit). Candidates come from serde's expected-field list; the source-free summary keeps the line only when it names a key on the fixedKNOWN_KEYS` list, so no file text leaks (RIPR-SPEC-0007). Hint order: misplaced-table → retired key → did-you-mean.
  • Publishes schemas/config/ripr-toml.schema.json (draft-07, additionalProperties: false everywhere, types, enums, integer floors, and cross-field rules for overrides, [profiles.bun_ub] and harness kind/adapter pairs) for Taplo / Even Better TOML. It lives outside schemas/ripr/ because that tree is reserved for versioned output schemas (gate: reconcile and enforce per-output JSON schema_version across doc, schemas/, and code constants #1720); verification docs carry an exempt input-schema row.
  • Adds a ripr.toml reference table to docs/CONFIGURATION.md covering every key.
  • config::schema_parity_tests binds parser, schema and docs: keys per table (probed through a live unknown-key parse), every enum and integer floor, every leaf type, cross-field parser refusals, every key documented and every documented row real, ripr.toml.example parses.
  • RIPR-SPEC-0007 acceptance case, traceability and a changelog fragment.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal:
Spec: RIPR-SPEC-0007 (repository configuration)
ADR:
Plan item:
Governing issue or accepted claim: #13682
Acceptance delta (one sentence): ripr.toml typos name the nearest valid key, a JSON schema for editors is published, and a test keeps parser keys, schema and the documented key reference identical.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-t00lca
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none

Local evidence

  • cargo test -p ripr --lib config:: → 259 passed on 8bcaee2; 13 schema parity tests pass on the current head.
  • cargo xtask precommit exit 0 on 42a88af; on the current head check-verification-contracts, schema-producer-sweep, check-file-policy, check-traceability, check-changelog-fragments, check-spec-format, check-doc-index and fmt pass. Local full rebuilds are memory-limited in this container, so hosted CI is the full qualification.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UNUoLV3CFksoKB7XNhmoPp

… a config schema

An unknown key already failed the load; it now names the nearest valid key
in the same table ("did you mean `mode`?"), built from the parser's own
expected-field list so no file text is echoed. The source-free summary keeps
the hint only when it names a known key.

Publish schemas/ripr/ripr-config.schema.json for editors and add a
ripr.toml reference table to docs/CONFIGURATION.md. Parity tests hold the
schema's keys per table equal to the parser, the schema enums equal to the
accepted values, every key documented, and every documented row real.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLV3CFksoKB7XNhmoPp
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven self-assigned this Nov 8, 2026
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 152 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 38ea02b8-d1b2-42b3-a0cf-7ec1cdcacef3
Commits

Reviewing files that changed from the base of the PR and between 9b5906e and bee4493.

Files selected for processing: 11

  • .ripr/traceability.d/13682-config-key-suggestions-schema-parity.toml
  • changelog.d/13683-ripr-toml-typo-hints-and-schema.md
  • crates/ripr/src/config.rs
  • crates/ripr/src/config/schema_parity_tests.rs
  • crates/ripr/src/config/suggest.rs
  • docs/CONFIGURATION.md
  • docs/specs/RIPR-SPEC-0007-repository-configuration.md
  • docs/verification/README.md
  • docs/verification/schema-producer-audit.md
  • schemas/config/ripr-toml.schema.json
  • xtask/src/schema_producer_sweep.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm crates/ripr/src/config.rs:747 — contract_coverage: missing (UR-workspace-crates-ripr-src-config-rs-parse-config-diagnostic-operation-box_from_raw-from-raw-03b41c50d184-pointer_validity-c1)

Next action: pending

Trust boundary (advisory): static unsafe contract review only; not memory-safety proof, not UB-free status, not Miri-clean status, and not a site-execution claim unless a matching witness receipt says so.

Operation family: box_from_raw

Repair class: guard_evidence_missing

Operation: RiprConfig::from_raw(raw, text)

Missing evidence:

  • Missing # Safety documentation or SAFETY: / Safety: comment
  • Missing visible local guard for inferred safety obligations
  • No witness receipt imported for this card

Advisory: verify before applying..

…nstrained key

Review follow-up: perl.timeout_ms rejects 0, so its schema minimum is 1.
Docs state both integer floors and the overrides crate/path rule. The value
parity test now walks every enum and integer floor outside array-of-tables
rows (27 keys) instead of five samples, and probes the value below each
minimum.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLV3CFksoKB7XNhmoPp

Copy link
Copy Markdown
Member Author

SOURCE_REVIEW_READY

Head: 0566596fb306671fcab9163831f11eebf34a7069 (source commits 762a7be + 42a88af, then a clean merge of origin/main that touches none of this PR's files).

Independent review (fresh-context subagent, read-only, no stake in the implementation) of 762a7be inspected: expected_fields/unknown_field_key against serde's single, two-field, one-of and no-fields messages (no panic or mis-slice); the RIPR-SPEC-0007 leak boundary (suggestion built only from serde's fixed expected list; the summary keeps it only when it equals a KNOWN_KEYS line; forged-line negative test is real); hint ordering misplaced → retired → did-you-mean; schema key sets and enums against every Raw* struct and parse function; docs table row-for-row; and whether the parity tests discriminate (the key-set test probes the live parser per table and is not vacuous).

Findings and disposition (all fixed in 42a88af):

  1. should-fix: perl.timeout_ms schema minimum: 0, parser rejects 0 → now minimum: 1; docs state both integer floors.
  2. should-fix: enum parity sampled 5 keys → now walks all 27 enum / integer-floor keys outside array-of-tables rows and probes the value below each minimum. Negative experiment: adding turbo to analysis.mode or setting timeout_ms minimum 0 fails the test.
  3. nit: overrides crate/path exclusivity not expressible cheaply in the schema → documented in the schema description and docs row.
  4. nit: KNOWN_KEYS ordering → sorted.

Bot finding (github-actions unsafe-contract card on config.rs:747, box_from_raw / RiprConfig::from_raw): false positive. RiprConfig::from_raw is an ordinary safe constructor from the deserialized RawConfig, not Box::from_raw; the crate is unsafe_code = "forbid", and the line predates this PR (only a hint call was added near it). No change.

Local: cargo xtask precommit EXIT=0 on 42a88af; cargo test -p ripr --lib config:: 256 passed. Post-merge local rebuild was OOM-killed by the container (infrastructure); hosted CI qualifies the exact head.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 8, 2026 12:45
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY for head 0566596

Independent fresh-context review findings were all repaired in 42a88af; details and the bot-card reply are in the PR conversation (comment 6721660577). The merge of origin/main touches none of this PR's files. Local precommit exit 0 on 42a88af.


Generated by Claude Code

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 6 potential issues.

Devin Review

Comment thread schemas/config/ripr-toml.schema.json Resolved
Comment thread crates/ripr/src/config/suggest.rs Resolved
Comment thread crates/ripr/src/config.rs Resolved
Comment thread crates/ripr/src/config.rs Resolved
Comment thread docs/CONFIGURATION.md Resolved
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit bee44939a49b · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=9b5906efeb299c3a1a3b95cc7507d1650cfc7483 findings=107 gaps=6 infection_unknown=5 propagation_unknown=1 static_unknown=91 weakly_exposed=10
weakly_exposed|crates/ripr/src/config.rs:741|.or_else(\|\| did_you_mean_hint(err.message()))|missing=No strong discriminator was detected|test=t1|id=probe:crates_ripr_src_config.rs:call_deletion:c3a5bbd3
weakly_exposed|crates/ripr/src/config/suggest.rs:123|let Some(first) = cells.first_mut()|missing=No strong discriminator was detected|test=t2|id=probe:crates_ripr_src_config_suggest.rs:predicate:65bccb65
weakly_exposed|xtask/src/schema_producer_sweep.rs:242|schema_path: "schemas/config/ripr-toml.schema.json",|missing=schema_path: "schemas/config/ripr-toml.schema.json",|test=t3|id=probe:xtask_src_schema_producer_sweep.rs:field_construction:49882c75
weakly_exposed|xtask/src/schema_producer_sweep.rs:243|pointer: None,|missing=pointer: None,|test=t4|id=probe:xtask_src_schema_producer_sweep.rs:field_construction:f8656790
weakly_exposed|xtask/src/schema_producer_sweep.rs:247|edge_fixtures: &[],|missing=edge_fixtures: &[],|test=t3|id=probe:xtask_src_schema_producer_sweep.rs:field_construction:865f4379
t1=crates/ripr/src/config/tests.rs:196 perl_producer_diagnostic_expected_values_match_managed_allowlist relational_check `if !crate::app::is_managed_perl_producer(value) { return Err(format!( "{value} l…` miss=weak_assertion
t2=crates/ripr/src/cli/suggest.rs:363 unknown_argument_prefers_an_abbreviation_over_a_closer_edit_distance relational_check `assert!(message.contains("Did you mean `--seam-id`?"), "{message}");` miss=weak_assertion
t3=xtask/src/schema_producer_sweep.rs:1538 a_bound_document_missing_a_required_field_fails_even_though_it_no_longer_looks_alike relational_check `if report.packet["rows"][0]["disposition"]["state"] != "failed" { return Err("a …` miss=weak_assertion
t4=xtask/src/reports/proof_route.rs:1439 altered_or_incomplete_execution_receipts_refuse_reuse exact_value `assert!(matches!( status, PreflightReceiptStatus::Unreadable(_) | PreflightRecei…` miss=missing_exact_assertion
+1 more gaps not shown; `--format json` lists all
limits=infection_unknown:5,propagation_unknown:1,static_unknown:91,weakly_exposed:4
next=ripr explain --root . --base 9b5906efeb299c3a1a3b95cc7507d1650cfc7483 --committed --mode draft --format agent probe:crates_ripr_src_config.rs:call_deletion:c3a5bbd3
verify=refused|outcome=complete_with_findings|findings=107|exposed=0|reason=gaps_remain

Took 71s.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm crates/ripr/src/config.rs:747 — contract_coverage: missing (UR-workspace-crates-ripr-src-config-rs-parse-config-diagnostic-operation-box_from_raw-from-raw-03b41c50d184-pointer_validity-c1)

Next action: pending

Trust boundary (advisory): static unsafe contract review only; not memory-safety proof, not UB-free status, not Miri-clean status, and not a site-execution claim unless a matching witness receipt says so.

Operation family: box_from_raw

Repair class: guard_evidence_missing

Operation: RiprConfig::from_raw(raw, text)

Missing evidence:

  • Missing # Safety documentation or SAFETY: / Safety: comment
  • Missing visible local guard for inferred safety obligations
  • No witness receipt imported for this card

Advisory: verify before applying..

…s, add spec and changelog

Review follow-up on #13683:
- did-you-mean uses optimal string alignment, so an adjacent swap
  (`mdoe`) is one edit and still suggests `mode`.
- The schema encodes override selector exclusivity and a required policy
  block, required [profiles.bun_ub] keys, and harness kind/adapter pairs;
  a test confirms the parser refuses each counterexample.
- A type parity test rejects a wrong-typed value for every leaf key.
- RIPR-SPEC-0007 gains the nearest-key acceptance case and test mapping;
  traceability and a changelog fragment are added.
- The docs no longer promise a line number for every value error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLV3CFksoKB7XNhmoPp

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY for head 3841176

A second fresh-context reviewer inspected the repair delta 42a88af..8bcaee2: the optimal string alignment table bounds and empty-string cases, the draft-07 meaning of the overrides oneOf/anyOf, bun_ub required keys and harness kind/adapter pairs, and whether the new tests discriminate (a regression to plain Levenshtein fails the transposition test). It found nothing blocking; its one formatting nit (nested backticks in the changelog fragment) is repaired in 3841176. The cross-field test checks the schema rules by shape and the parser refusals by execution; evaluating the schema with a JSON-schema engine stays out of scope. All six Devin threads have replies and are resolved. Local: 259 config tests pass; check-traceability, check-changelog-fragments, check-no-panic-family, check-spec-format, check-doc-index, check-file-policy and fmt pass.


Generated by Claude Code

…hemas/config

Hosted CI: check-verification-contracts treats everything under
schemas/ripr/ as a versioned ripr output schema (schema_version const and
a registered version authority, #1720). ripr.toml is input and has no
schema_version key, so the schema moves to
schemas/config/ripr-toml.schema.json and gets its verification README row
and an exempt input-schema audit row naming the parity tests as authority.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLV3CFksoKB7XNhmoPp

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY for head 4ac3efb

Since 3841176 the only source change is a path move: shard 3 failed verification_contracts::tests::command_accepts_default_and_check_modes because everything under schemas/ripr/ is treated as a versioned output schema (#1720). The config schema is input, so it now lives at schemas/config/ripr-toml.schema.json with a verification README row and an exempt input-schema audit row; every reference (parity test include, sweep binding, docs, spec, changelog) follows the move. Content is byte-identical apart from the $id. Local on this head: check-verification-contracts (17 published schemas audited), schema-producer-sweep, check-file-policy and the 13 schema parity tests pass. The merge of origin/main adds seven lines to verification_contracts.rs and the check passes after it.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Rust gates on 4ac3efb stopped at check-fixture-contracts: fixtures/module_reach_control_qualified/SPEC.md declared weakly_exposed where check.json says exposed. Not this PR's: the fixture came from #13668 and main fixed the SPEC in #13773. Merged origin/main (7a873b6), which brings that fix and touches none of this PR's files; re-requesting qualification on the new head.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY for head 7a873b6

The only change since 4ac3efb is a merge of origin/main that brings the module_reach_control_qualified fixture SPEC repair (#13773) and an unrelated TypeScript tsconfig change; none of this PR's files moved, so the earlier source review stands.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Rust-only feature lane on 7a873b6: cli_reference_matches_the_binary reports docs/CLI_REFERENCE.md stale. Not this PR's: this PR touches no CLI surface or that doc. It is the main-side break tracked in #13793, with the re-bless in #13778. Once that lands I'll merge main in and re-request qualification instead of widening this PR.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm crates/ripr/src/config.rs:747 — contract_coverage: missing (UR-workspace-crates-ripr-src-config-rs-parse-config-diagnostic-operation-box_from_raw-from-raw-03b41c50d184-pointer_validity-c1)

Next action: pending

Trust boundary (advisory): static unsafe contract review only; not memory-safety proof, not UB-free status, not Miri-clean status, and not a site-execution claim unless a matching witness receipt says so.

Operation family: box_from_raw

Repair class: guard_evidence_missing

Operation: RiprConfig::from_raw(raw, text)

Missing evidence:

  • Missing # Safety documentation or SAFETY: / Safety: comment
  • Missing visible local guard for inferred safety obligations
  • No witness receipt imported for this card

Advisory: verify before applying..

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY for head 403d307

The only change since 7a873b6 is a merge of origin/main bringing the CLI reference re-bless (#13778). Main also edited docs/CONFIGURATION.md (an environment-variable row) and RIPR-SPEC-0007 (a new MCP registration section); both auto-merged in regions this PR does not touch, and the ripr.toml reference section and the new acceptance case are unchanged, so the earlier source review stands.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

The Rust-only feature lane failed on head 403d307 in cli_reference_matches_the_binary, because docs/CLI_REFERENCE.md is stale. The cause is on main, not in this PR: main's own Rust-only lane fails the same way on 66784c9 and 59ad478, because ripr completions is missing from the reference (#13813). The fix is in #13811. This PR does not touch the CLI surface. Once #13811 lands I will merge main in, then clear and re-apply merge-ready.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm crates/ripr/src/config.rs:747 — contract_coverage: missing (UR-workspace-crates-ripr-src-config-rs-parse-config-diagnostic-operation-box_from_raw-from-raw-03b41c50d184-pointer_validity-c1)

Next action: pending

Trust boundary (advisory): static unsafe contract review only; not memory-safety proof, not UB-free status, not Miri-clean status, and not a site-execution claim unless a matching witness receipt says so.

Operation family: box_from_raw

Repair class: guard_evidence_missing

Operation: RiprConfig::from_raw(raw, text)

Missing evidence:

  • Missing # Safety documentation or SAFETY: / Safety: comment
  • Missing visible local guard for inferred safety obligations
  • No witness receipt imported for this card

Advisory: verify before applying..

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY for head bee4493

The only change since 403d307 is a merge of origin/main. It brings in the CLI reference re-bless for ripr completions (#13811), which fixes the Rust-only lane on main. git diff 403d3072 bee44939 is empty for every file this PR touches (config.rs, config/, the schema, CONFIGURATION.md, RIPR-SPEC-0007, the verification docs, the schema sweep, traceability, ripr.toml.example), so the earlier source review stands.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm crates/ripr/src/config.rs:747 — contract_coverage: missing (UR-workspace-crates-ripr-src-config-rs-parse-config-diagnostic-operation-box_from_raw-from-raw-03b41c50d184-pointer_validity-c1)

Next action: pending

Trust boundary (advisory): static unsafe contract review only; not memory-safety proof, not UB-free status, not Miri-clean status, and not a site-execution claim unless a matching witness receipt says so.

Operation family: box_from_raw

Repair class: guard_evidence_missing

Operation: RiprConfig::from_raw(raw, text)

Missing evidence:

  • Missing # Safety documentation or SAFETY: / Safety: comment
  • Missing visible local guard for inferred safety obligations
  • No witness receipt imported for this card

Advisory: verify before applying..

@EffortlessSteven
EffortlessSteven merged commit 469debe into main Nov 8, 2026
74 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-t00lca branch November 8, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants