Skip to content

Commit 0f1377a

Browse files
docushell-devclaude
andcommitted
fix: restore rustfmt and regenerate stale npm type declarations
Two pre-existing failures on this branch, both reproducible at d775649 and neither caused by the CI cleanup: - cargo fmt drift in crates/ethos-cli/src/cmd/evidence.rs and crates/ethos-cli/tests/verify.rs, introduced by ad4f01e and 33f2088. - packages/npm/ethos-pdf/types/verification-report.d.ts was stale. The semantic_unverified description gained the sentence about v1 literal checkers always setting it false, and the checked-in declaration was never regenerated, so the types test failed on "checked-in declarations are stale". Signed-off-by: docushell-dev <doqshell@gmail.com> Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 27114b0 commit 0f1377a

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

crates/ethos-cli/src/cmd/evidence.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ use ethos_core::error::EthosError;
1818
use ethos_core::evidence_anchor::{EvidenceAnchorReport, EvidenceAnchorRequest};
1919

2020
use crate::grounding::load_source;
21-
use crate::{default_max_input_bytes, read_file_limited, write_output, EvidenceAnchorArgs, Failure};
21+
use crate::{
22+
default_max_input_bytes, read_file_limited, write_output, EvidenceAnchorArgs, Failure,
23+
};
2224

2325
pub(crate) fn evidence_anchor(args: EvidenceAnchorArgs) -> Result<(), Failure> {
2426
let max_input_bytes = default_max_input_bytes();

crates/ethos-cli/tests/verify.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3534,8 +3534,9 @@ fn grounding_json_representation_identity_drives_staleness() {
35343534
#[test]
35353535
fn verify_rejects_present_but_unsupported_artifact_types_without_fallback() {
35363536
let citations = repo_root().join("examples/verify/grounding_json_citations.json");
3537-
let valid = std::fs::read_to_string(repo_root().join("schemas/examples/grounding-source.example.json"))
3538-
.expect("fixture is readable");
3537+
let valid =
3538+
std::fs::read_to_string(repo_root().join("schemas/examples/grounding-source.example.json"))
3539+
.expect("fixture is readable");
35393540

35403541
// A duplicated artifact_type must never be collapsed into a supported identity.
35413542
let duplicated = valid.replacen(

packages/npm/ethos-pdf/types/verification-report.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export interface EthosVerificationReport {
133133
| "presence_only"
134134
| "none";
135135
/**
136-
* True whenever grounding the claim would require semantic judgment beyond the declared match method (e.g. paraphrase, arithmetic, cross-region synthesis). Such checks can never make all_evidence_grounded true.
136+
* True whenever grounding the claim would require semantic judgment beyond the declared match method (e.g. paraphrase, arithmetic, cross-region synthesis). In v1, literal checkers always set this false; non-literal claims fail closed as unsupported_claim_kind instead. Such checks can never make all_evidence_grounded true.
137137
*/
138138
semantic_unverified: boolean;
139139
resolved_element_ids?: string[];

0 commit comments

Comments
 (0)