Repository navigation
feat(config): did-you-mean for ripr.toml typos, published config schema, docs/code key parity (#13682) - #13683
Conversation
… 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
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
|
There was a problem hiding this comment.
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
# Safetydocumentation orSAFETY:/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
|
SOURCE_REVIEW_READY Head: Independent review (fresh-context subagent, read-only, no stake in the implementation) of 762a7be inspected: Findings and disposition (all fixed in 42a88af):
Bot finding (github-actions unsafe-contract card on Local: Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
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
ripr static exposure checkCommit Took 71s. |
There was a problem hiding this comment.
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
# Safetydocumentation orSAFETY:/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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLV3CFksoKB7XNhmoPp
EffortlessSteven
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
|
Generated by Claude Code |
EffortlessSteven
left a comment
There was a problem hiding this comment.
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
|
Generated by Claude Code |
There was a problem hiding this comment.
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
# Safetydocumentation orSAFETY:/Safety:comment - Missing visible local guard for inferred safety obligations
- No witness receipt imported for this card
Advisory: verify before applying..
EffortlessSteven
left a comment
There was a problem hiding this comment.
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
|
The Rust-only feature lane failed on head 403d307 in Generated by Claude Code |
There was a problem hiding this comment.
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
# Safetydocumentation orSAFETY:/Safety:comment - Missing visible local guard for inferred safety obligations
- No witness receipt imported for this card
Advisory: verify before applying..
EffortlessSteven
left a comment
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
# Safetydocumentation orSAFETY:/Safety:comment - Missing visible local guard for inferred safety obligations
- No witness receipt imported for this card
Advisory: verify before applying..
Requested by Steven Zimmerman · project thread
Summary
ripr.tomlkey (already a hard error) now names the nearest valid key in the same table:[analysis] modeeormdoe→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.schemas/config/ripr-toml.schema.json(draft-07,additionalProperties: falseeverywhere, 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 outsideschemas/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.ripr.tomlreference table todocs/CONFIGURATION.mdcovering every key.config::schema_parity_testsbinds 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.exampleparses.Swarm / Source Boundary
ripr-swarmSource-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 precommitexit 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