From cc86f54d65b0c0d8d8ec7a3b842a67a9e9f65b48 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Tue, 26 May 2026 13:10:05 +0900 Subject: [PATCH] fix(#701): doctor JSON details[] now {key,value} objects; prose preserved as details_prose[]; acceptance check passes --- rust/crates/rusty-claude-cli/src/main.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/rust/crates/rusty-claude-cli/src/main.rs b/rust/crates/rusty-claude-cli/src/main.rs index 454e8988..9aa8bfb2 100644 --- a/rust/crates/rusty-claude-cli/src/main.rs +++ b/rust/crates/rusty-claude-cli/src/main.rs @@ -2124,7 +2124,11 @@ impl DiagnosticCheck { ), ("summary".to_string(), Value::String(self.summary.clone())), ( - "details".to_string(), + // #701 (complete): `details[]` is now the canonical structured form — + // `{key, value}` objects instead of padded prose strings. The legacy + // prose representation is preserved as `details_prose[]` for callers + // that still scrape the formatted strings. + "details_prose".to_string(), Value::Array( self.details .iter() @@ -2134,10 +2138,8 @@ impl DiagnosticCheck { ), ), ( - // #701: structured key/value pairs parsed from prose detail strings. - // Each detail string is `"Key Label value"` separated by 2+ spaces. - // Booleans (`true`/`false`) and integers are emitted as JSON scalars. - "detail_entries".to_string(), + // details[] is now structured {key,value} objects (was prose strings). + "details".to_string(), Value::Array( self.details .iter()