Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

requirements.index.invalid_detail

Requirements index · View definition

evidence Valid

Requirement

An evidence detail page MUST continue to show the current requirement or example and validation findings when evidence is missing or invalid. It MUST show readable placeholders for missing rationale or inputs and expose the contents of an unreadable JSON record.

Rationale

The reviewed tests cover each obligation in requirements.index.invalid_detail, with no gaps found.

Obligations

  1. A detail page keeps showing the current requirement or example text and the validation findings when evidence is missing or invalid.
  2. The page shows readable placeholders for a missing rationale and for missing inputs.
  3. The page exposes the contents of an unreadable JSON record.

Coverage

  • Invalid evidence with an unreadable record: src/index.rs#mod[tests]/fn[invalid_evidence_detail_remains_readable] renders a page in the Invalid state with the record {broken.
    • It asserts the requirement text > Ready MUST work..
    • It asserts the ## Validation findings heading and the finding text invalid JSON.
    • It asserts both placeholders, No rationale recorded. and No inputs recorded..
    • It asserts the ## Unreadable evidence record heading and the raw content as a fenced ```json block.
  • Missing evidence: the same test renders a Missing page with no record and asserts the definition text plus both placeholders.
  • Parsed but empty records: it also renders the records {} and {"rationale":" ","inputs":[]} in the Invalid state. Both pages still show the definition, the findings and the placeholders. This covers the blank rationale and empty inputs cases.
  • Examples: src/index.rs#mod[tests]/fn[index_lists_examples_and_links_their_detail_pages] covers an example with no evidence record. The page shows ## Example with the example text, ## Validation findings, missing for example and No rationale recorded..
  • End-to-end paths:
    • tests/commands.rs#fn[info_renders_exact_and_glob_matches_as_markdown_without_an_index] runs the CLI on a missing record, requirements.absent. It asserts the findings, missing for requirement, and both placeholders.
    • The same CLI test runs a malformed JSON record, requirements.malformed. It asserts ## Unreadable evidence record and the fenced ```json {broken block.
    • It also checks stale or determination-false records, which keep their findings and definition.
    • src/index.rs#mod[tests]/fn[index_shows_evidence_states_and_links_generated_chapters] checks that a changed record shows requirement text changed and that a missing record still gets a page.
  • Read failure: src/index.rs#mod[tests]/fn[an_unreadable_record_is_reported_once] makes the record path a directory. It asserts the state is Invalid and that exactly one cannot read evidence finding appears, whether or not validation already reported it.

Independence of the placeholders: render_detail_sections decides the rationale placeholder and the inputs placeholder separately, and the tests assert both together in every case. A split case, with a rationale but no inputs or the reverse, is not tested. That is not a requirement-relevant gap, because the text states no distinction between those cases.

I found no plausible requirement-violating behavior that these tests would accept.

Inputs

Implementation

Input 7: outline src/index.rs fn[render_detail_sections]
// {impl}`requirements.index.detail_format`
// {impl}`requirements.index.invalid_detail`
// {impl}`requirements.index.state`
// {impl}`requirements.examples.index`
// {impl}`requirements.authoring.redaction`
fn render_detail_sections(
    mut content: String,
    name: &str,
    definition_text: &str,
    kind: DefinitionKind,
    detail_evidence: DetailEvidence<'_>,
    sources: &RenderSources<'_>,
) -> String {
    content.push_str(&shield_badge(
        "evidence",
        detail_evidence.state.label(),
        detail_evidence.state.color(),
    ));
    content.push_str(&format!(
        "\n\n## {}\n\n",
        if kind == DefinitionKind::Example {
            "Example"
        } else {
            "Requirement"
        }
    ));
    for line in crate::redaction::redact_text(definition_text).lines() {
        content.push_str("> ");
        content.push_str(line);
        content.push('\n');
    }

    if !detail_evidence.errors.is_empty() {
        content.push_str("\n## Validation findings\n\n<pre><code>");
        content.push_str(&escape_html(&crate::redaction::redact_text(
            &detail_evidence.errors.join("\n\n"),
        )));
        content.push_str("</code></pre>\n");
    }

    let parsed = detail_evidence
        .record
        .and_then(|record| serde_json::from_str::<Value>(record).ok());
    let evidence = parsed.as_ref().and_then(Value::as_object);
    content.push_str("\n## Rationale\n\n");
    match evidence
        .and_then(|evidence| evidence.get("rationale"))
        .and_then(Value::as_str)
    {
        Some(rationale) if !rationale.trim().is_empty() => content.push_str(rationale.trim()),
        _ => content.push_str("No rationale recorded."),
    }
    if !detail_evidence.fixme_entries.is_empty() {
        content.push_str("\n\n## FIXME references\n\n<pre><code>");
        content.push_str(&escape_html(&detail_evidence.fixme_entries.join("\n")));
        content.push_str("</code></pre>\n");
    }
    content.push_str("\n\n## Inputs\n\n");
    match evidence
        .and_then(|evidence| evidence.get("inputs"))
        .and_then(Value::as_array)
    {
        Some(inputs) if !inputs.is_empty() => {
            let edges = DefinitionEdges::current(name, sources);
            let mut grouped: BTreeMap<InputGroup, Vec<(usize, &Value, InputLocation)>> =
                BTreeMap::new();
            for (index, input) in inputs.iter().enumerate() {
                let location = InputLocation::resolve(input, sources);
                let group = edges.group(
                    sources.root,
                    location.selector.as_ref(),
                    match &location.ranges {
                        Some(Ok(ranges)) => ranges,
                        _ => &[],
                    },
                );
                grouped
                    .entry(group)
                    .or_default()
                    .push((index + 1, input, location));
            }
            for group in InputGroup::ALL {
                let Some(inputs) = grouped.get(&group) else {
                    continue;
                };
                content.push_str(&format!(
                    "<details class=\"habeas-input-group\" open>\n<summary><h3 id=\"{}\" style=\"display: inline\">{}</h3></summary>\n\n",
                    group.id(),
                    group.heading()
                ));
                for (index, input, location) in inputs {
                    render_input(&mut content, *index, input, location, sources);
                }
                content.push_str("</details>\n\n");
            }
        }
        _ => content.push_str("No inputs recorded.\n"),
    }
    if evidence.is_none()
        && let Some(record) = detail_evidence.record
    {
        content.push_str("\n## Unreadable evidence record\n\n");
        push_code_block(&mut content, &crate::redaction::redact_text(record), "json");
    }
    content
}

Tests

Input 2: outline src/index.rs mod[tests]/fn[index_shows_evidence_states_and_links_generated_chapters]
  • File: src/index.rs
  • Selector: mod[tests]/fn[index_shows_evidence_states_and_links_generated_chapters]
  • Kind: fn
  • src/index.rs:1101–1306
    // {test}`requirements.index.chapter`
    // {test}`requirements.index.state`
    // {test}`requirements.index.navigation`
    // {test}`requirements.index.source_links`
    // {test}`requirements.cli.shared_status_rendering`
    // {test}`requirements.index.detail_format`
    // {test}`requirements.index.invalid_detail`
    // {test}`requirements.test-coverage.index`
    // {test}`requirements.index.detail_pages`
    #[test]
    fn index_shows_evidence_states_and_links_generated_chapters() {
        let temp = TempDir::new().unwrap();
        fs::create_dir_all(temp.path().join("md/requirements")).unwrap();
        fs::create_dir_all(temp.path().join("evidence")).unwrap();
        fs::create_dir_all(temp.path().join("src")).unwrap();
        fs::write(temp.path().join("book.toml"), "[book]\nsrc = \"md\"\n").unwrap();
        let requirements = [
            ("ready", "Ready MUST work."),
            ("pending", "Pending MUST work."),
            ("changed", "Changed MUST work."),
            ("absent", "Absent MUST work."),
            ("uncovered", "Uncovered MUST work."),
        ];
        let mut source = String::from("# Requirements\n\n");
        for (name, body) in requirements {
            source.push_str(&format!(":::{{req}} {name}\n{body}\n:::\n\n"));
        }
        fs::write(temp.path().join("md/requirements/core.md"), &source).unwrap();
        fs::write(
            temp.path().join("src/main.rs"),
            "// {test}`requirements.core.uncovered`\n",
        )
        .unwrap();
        for (name, body, determination) in [
            ("ready", "Ready MUST work.", true),
            ("pending", "Pending MUST work.", false),
            ("changed", "Old requirement.", true),
            ("uncovered", "Uncovered MUST work.", true),
        ] {
            fs::write(
                temp.path()
                    .join(format!("evidence/requirements.core.{name}.json")),
                json!({
                    "requirement": body,
                    "determination": determination,
                    "rationale": "The fixture records the evidence state.",
                    "inputs": []
                })
                .to_string(),
            )
            .unwrap();
        }

        let mut book = Book::new();
        let mut definition_chapter =
            Chapter::new("Requirements", source, "requirements/core.md", Vec::new());
        definition_chapter.number = Some(SectionNumber::new(vec![3]));
        book.push_item(definition_chapter);
        let mut index_chapter = Chapter::new(
            "Requirements index",
            "# Requirements index\n\n:::{requirements-index}\n:::\n".to_owned(),
            "appendix/requirements-index.md",
            Vec::new(),
        );
        index_chapter.number = Some(SectionNumber::new(vec![4]));
        book.push_item(index_chapter);
        crate::evidence::tests::stamp_reference_sets(temp.path());
        preprocess_book(&mut book, temp.path()).unwrap();

        let definition = book.chapters().next().unwrap();
        assert!(definition.content.contains(
            "id=\"habeas-req-requirements.core.ready\" href=\"#habeas-req-requirements.core.ready\""
        ));
        let index = book
            .chapters()
            .find(|chapter| chapter.name == "Requirements index")
            .unwrap();
        assert!(!index.content.contains("{requirements-index}"));
        for (name, state) in [
            ("ready", "Valid"),
            ("pending", "Determination false"),
            ("changed", "Invalid"),
            ("absent", "Missing"),
            ("uncovered", "Invalid"),
        ] {
            let link = format!(
                "| [`requirements.core.{name}`](requirements-index/requirements.core.{name}.html)"
            );
            let row = index
                .content
                .lines()
                .find(|line| line.starts_with(&link))
                .unwrap_or_else(|| panic!("missing {link} in:\n{}", index.content));
            assert_eq!(row.split('|').nth(2).unwrap().trim(), state);
        }
        let table = index
            .content
            .lines()
            .skip_while(|line| !line.starts_with("| "))
            .take_while(|line| line.starts_with("| "))
            .collect::<Vec<_>>();
        let pipes = table[0]
            .match_indices('|')
            .map(|(position, _)| position)
            .collect::<Vec<_>>();
        assert_eq!(pipes.len(), 3);
        assert!(table.iter().all(|line| {
            line.match_indices('|')
                .map(|(position, _)| position)
                .collect::<Vec<_>>()
                == pipes
        }));
        for column in 0..2 {
            let widest = table
                .iter()
                .map(|line| line.split('|').nth(column + 1).unwrap().trim().len())
                .max()
                .unwrap();
            assert_eq!(pipes[column + 1] - pipes[column] - 3, widest);
        }
        assert!(definition.sub_items.is_empty());
        assert_eq!(index.sub_items.len(), 6);
        let coverage = index
            .sub_items
            .iter()
            .filter_map(|item| match item {
                BookItem::Chapter(chapter) if chapter.name == "Coverage gaps" => Some(chapter),
                _ => None,
            })
            .collect::<Vec<_>>();
        assert_eq!(coverage.len(), 1);
        assert_eq!(
            coverage[0].path.as_deref(),
            Some(Path::new("appendix/requirements-index/coverage.md"))
        );
        assert_eq!(coverage[0].parent_names, ["Requirements index"]);
        assert!(
            index
                .content
                .contains("[Coverage gaps](requirements-index/coverage.html)")
        );
        let ready = index
            .sub_items
            .iter()
            .find_map(|item| match item {
                BookItem::Chapter(chapter) if chapter.name == "requirements.core.ready" => {
                    Some(chapter)
                }
                _ => None,
            })
            .unwrap();
        assert_eq!(
            ready.source_path.as_deref(),
            Some(Path::new("../evidence/requirements.core.ready.json"))
        );
        assert_eq!(
            ready.number.as_deref().map(Vec::as_slice),
            Some(&[4, 2][..])
        );
        assert_eq!(
            ready.path.as_deref(),
            Some(Path::new(
                "appendix/requirements-index/requirements.core.ready.md"
            ))
        );
        assert!(ready.content.contains(
            "[View definition](../../requirements/core.html#habeas-req-requirements.core.ready)"
        ));
        assert!(
            ready
                .content
                .contains("[Requirements index](../requirements-index.html) · [View definition]")
        );
        assert!(
            ready
                .content
                .contains("img.shields.io/badge/evidence-Valid-237346")
        );
        assert!(ready.content.contains("> Ready MUST work."));
        assert!(!ready.content.contains("## Evidence record"));
        let changed = index
            .sub_items
            .iter()
            .find_map(|item| match item {
                BookItem::Chapter(chapter) if chapter.name == "requirements.core.changed" => {
                    Some(chapter)
                }
                _ => None,
            })
            .unwrap();
        assert!(changed.content.contains("requirement text changed"));
        let absent = index
            .sub_items
            .iter()
            .find_map(|item| match item {
                BookItem::Chapter(chapter) if chapter.name == "requirements.core.absent" => {
                    Some(chapter)
                }
                _ => None,
            })
            .unwrap();
        assert_eq!(
            absent.source_path.as_deref(),
            Some(Path::new("requirements/core.md"))
        );
    }
Input 3: outline src/index.rs mod[tests]/fn[an_unreadable_record_is_reported_once]
    // {test}`requirements.ci.errors`
    // {test}`requirements.index.invalid_detail`
    #[test]
    fn an_unreadable_record_is_reported_once() {
        let temp = tempfile::tempdir().unwrap();
        // A directory where the record belongs cannot be read as one.
        fs::create_dir_all(temp.path().join("evidence/requirements.ready.json")).unwrap();
        let reading = |reported: Vec<String>| {
            let report = crate::EvidenceReport {
                requirements: 1,
                examples: 0,
                evidence_files: 1,
                errors: reported,
            };
            let loaded =
                super::LoadedDetailEvidence::load(temp.path(), "requirements.ready", &report);
            assert!(loaded.state == EvidenceState::Invalid);
            loaded
                .errors
                .iter()
                .filter(|error| error.contains("cannot read evidence"))
                .count()
        };
        assert_eq!(reading(Vec::new()), 1);
        // Validation already reported it.
        assert_eq!(
            reading(vec![
                "evidence/requirements.ready.json: cannot read evidence: Is a directory".into()
            ]),
            1
        );
    }
Input 4: outline src/index.rs mod[tests]/fn[invalid_evidence_detail_remains_readable]
  • File: src/index.rs
  • Selector: mod[tests]/fn[invalid_evidence_detail_remains_readable]
  • Kind: fn
  • src/index.rs:1727–1813
    // {test}`requirements.index.invalid_detail`
    #[test]
    fn invalid_evidence_detail_remains_readable() {
        let definition = Definition {
            path: Path::new("requirements.md").to_path_buf(),
            text: "Ready MUST work.".to_owned(),
            kind: DefinitionKind::Requirement,
        };
        let detail = Path::new("requirements-index/requirements.ready.md");
        let index = Path::new("requirements-index.md");
        let findings = ["evidence/requirements.ready.json: invalid JSON"];
        let page = render_detail_page(
            "requirements.ready",
            detail,
            Some(index),
            &definition,
            DetailEvidence {
                state: EvidenceState::Invalid,
                record: Some("{broken"),
                errors: &findings.map(str::to_owned),
                fixme_entries: &[],
            },
            &RenderSources {
                root: Path::new("."),
                definitions: &BTreeMap::new(),
                references: &[],
                source_links: None,
                outlines: &crate::inputs::OutlineCache::default(),
            },
        );
        assert!(page.contains("> Ready MUST work."));
        assert!(page.contains("## Validation findings"));
        assert!(page.contains("invalid JSON"));
        assert!(page.contains("No rationale recorded."));
        assert!(page.contains("No inputs recorded."));
        assert!(page.contains("## Unreadable evidence record"));
        assert!(page.contains("```json\n{broken\n```"));

        let missing = render_detail_page(
            "requirements.ready",
            detail,
            Some(index),
            &definition,
            DetailEvidence {
                state: EvidenceState::Missing,
                record: None,
                errors: &[],
                fixme_entries: &[],
            },
            &RenderSources {
                root: Path::new("."),
                definitions: &BTreeMap::new(),
                references: &[],
                source_links: None,
                outlines: &crate::inputs::OutlineCache::default(),
            },
        );
        assert!(missing.contains("> Ready MUST work."));
        assert!(missing.contains("No rationale recorded."));
        assert!(missing.contains("No inputs recorded."));
        for record in ["{}", r#"{"rationale":"  ","inputs":[]}"#] {
            let page = render_detail_page(
                "requirements.ready",
                detail,
                Some(index),
                &definition,
                DetailEvidence {
                    state: EvidenceState::Invalid,
                    record: Some(record),
                    errors: &findings.map(str::to_owned),
                    fixme_entries: &[],
                },
                &RenderSources {
                    root: Path::new("."),
                    definitions: &BTreeMap::new(),
                    references: &[],
                    source_links: None,
                    outlines: &crate::inputs::OutlineCache::default(),
                },
            );
            assert!(page.contains("> Ready MUST work."), "{page}");
            assert!(page.contains("## Validation findings"), "{page}");
            assert!(page.contains("invalid JSON"), "{page}");
            assert!(page.contains("No rationale recorded."), "{page}");
            assert!(page.contains("No inputs recorded."), "{page}");
        }
    }
Input 5: outline src/index.rs mod[tests]/fn[index_lists_examples_and_links_their_detail_pages]
  • File: src/index.rs
  • Selector: mod[tests]/fn[index_lists_examples_and_links_their_detail_pages]
  • Kind: fn
  • src/index.rs:2020–2112
    // {test}`requirements.examples.index`
    // {test}`requirements.index.detail_format`
    // {test}`requirements.index.invalid_detail`
    #[test]
    fn index_lists_examples_and_links_their_detail_pages() {
        let temp = TempDir::new().unwrap();
        fs::create_dir_all(temp.path().join("md")).unwrap();
        fs::create_dir_all(temp.path().join("evidence")).unwrap();
        fs::write(temp.path().join("book.toml"), "[book]\nsrc = \"md\"\n").unwrap();
        let source = ":::{req} ready\nReady.\n:::\n\n:::{example} pending\nPending case. {cite}`rules.ready`\n:::\n\n:::{example} missing\nMissing case. {cite}`rules.ready`\n:::\n";
        fs::write(temp.path().join("md/rules.md"), source).unwrap();
        fs::write(
            temp.path().join("evidence/rules.pending.json"),
            json!({
                "example": "Pending case. {cite}`rules.ready`",
                "determination": false,
                "rationale": "The case still needs a test.",
                "inputs": []
            })
            .to_string(),
        )
        .unwrap();

        let mut book = Book::new();
        book.push_item(Chapter::new(
            "Rules",
            source.to_owned(),
            "rules.md",
            Vec::new(),
        ));
        book.push_item(Chapter::new(
            "Index",
            ":::{requirements-index}\n:::\n".to_owned(),
            "requirements-index.md",
            Vec::new(),
        ));
        preprocess_book(&mut book, temp.path()).unwrap();

        let rules = book.chapters().next().unwrap();
        assert!(rules.content.contains(
            "id=\"habeas-example-rules.pending\" href=\"#habeas-example-rules.pending\""
        ));
        let index = book
            .chapters()
            .find(|chapter| chapter.name == "Index")
            .unwrap();
        assert!(
            index
                .content
                .contains("| [`rules.pending`](requirements-index/rules.pending.html) (example)")
        );
        assert!(
            index
                .content
                .contains("| [`rules.missing`](requirements-index/rules.missing.html) (example)")
        );
        // The requirement's row is identified as one too.
        assert!(
            index
                .content
                .contains("| [`rules.ready`](requirements-index/rules.ready.html) (requirement)"),
            "{}",
            index.content
        );
        let pending = index
            .sub_items
            .iter()
            .find_map(|item| match item {
                BookItem::Chapter(chapter) if chapter.name == "rules.pending" => Some(chapter),
                _ => None,
            })
            .unwrap();
        assert!(pending.content.contains("## Example\n\n> Pending case."));
        assert!(
            pending
                .content
                .contains("[View definition](../rules.html#habeas-example-rules.pending)")
        );
        assert!(pending.content.contains("The case still needs a test."));

        let missing = index
            .sub_items
            .iter()
            .find_map(|item| match item {
                BookItem::Chapter(chapter) if chapter.name == "rules.missing" => Some(chapter),
                _ => None,
            })
            .unwrap();
        assert!(missing.content.contains("## Example\n\n> Missing case."));
        assert!(missing.content.contains("## Validation findings"));
        assert!(missing.content.contains("missing for example"));
        assert!(missing.content.contains("No rationale recorded."));
    }
Input 6: outline tests/commands.rs fn[info_renders_exact_and_glob_matches_as_markdown_without_an_index]
  • File: tests/commands.rs
  • Selector: fn[info_renders_exact_and_glob_matches_as_markdown_without_an_index]
  • Kind: fn
  • tests/commands.rs:515–590
// {test}`requirements.cli.info`
// {test}`requirements.cli.definition_glob_search`
// {test}`requirements.index.invalid_detail`
#[test]
fn info_renders_exact_and_glob_matches_as_markdown_without_an_index() {
    let temp = fixture();
    let output = habeas(temp.path(), &["info", "requirements.ready"]);
    assert!(output.status.success(), "{:?}", output);
    let exact = String::from_utf8(output.stdout).unwrap();
    assert!(exact.starts_with("# `requirements.ready`\n"), "{exact}");
    assert!(!exact.contains("# `requirements.xready`"), "{exact}");
    assert!(
        exact.contains("## Requirement\n\n> Ready MUST work."),
        "{exact}"
    );
    assert!(
        exact.contains("## Rationale\n\n**ready** was inspected."),
        "{exact}"
    );
    assert!(exact.contains("## Inputs"), "{exact}");
    assert!(exact.contains("src/main.rs:1–1"), "{exact}");
    assert!(
        exact.contains("```rust,noplayground\nfn main() {}"),
        "{exact}"
    );
    assert!(
        exact.contains("img.shields.io/badge/evidence-Valid-237346"),
        "{exact}"
    );

    let output = habeas(temp.path(), &["info", "requirements.*"]);
    assert!(output.status.success(), "{:?}", output);
    let matches = String::from_utf8(output.stdout).unwrap();
    let pending = matches.find("# `requirements.pending`").unwrap();
    let ready = matches.find("# `requirements.ready`").unwrap();
    assert!(pending < ready, "{matches}");
    assert!(matches.contains("# `requirements.xready`"), "{matches}");
    assert!(
        matches.contains("# `requirements.case`\n\nDefinition:"),
        "{matches}"
    );
    assert!(
        matches.contains("## Example\n\n> Given ready, it works."),
        "{matches}"
    );
    assert!(matches.contains("\n\n---\n\n"), "{matches}");
    for (name, state, finding) in [
        ("pending", "Determination_false", "determination is false"),
        ("stale", "Invalid", "requirement text changed"),
        ("stale_input", "Invalid", "outline input changed"),
    ] {
        let output = habeas(temp.path(), &["info", &format!("requirements.{name}")]);
        assert!(output.status.success(), "{output:?}");
        let text = String::from_utf8(output.stdout).unwrap();
        assert!(text.contains(&format!("evidence-{state}")), "{text}");
        assert!(text.contains("## Validation findings"), "{text}");
        assert!(text.contains(finding), "{text}");
    }

    let missing = habeas(temp.path(), &["info", "requirements.absent"]);
    assert!(missing.status.success(), "{:?}", missing);
    let missing = String::from_utf8(missing.stdout).unwrap();
    assert!(missing.contains("## Validation findings"), "{missing}");
    assert!(missing.contains("missing for requirement"), "{missing}");
    assert!(missing.contains("No rationale recorded."), "{missing}");
    assert!(missing.contains("No inputs recorded."), "{missing}");

    let malformed = habeas(temp.path(), &["info", "requirements.malformed"]);
    assert!(malformed.status.success(), "{:?}", malformed);
    let malformed = String::from_utf8(malformed.stdout).unwrap();
    assert!(
        malformed.contains("## Unreadable evidence record"),
        "{malformed}"
    );
    assert!(malformed.contains("```json\n{broken\n```"), "{malformed}");
}

Other sources

Input 1: requirements selection requirements.index.invalid_detail
:::{req} invalid_detail
An evidence detail page MUST continue to show the current requirement or example and validation findings when evidence is missing or invalid. It MUST show readable placeholders for missing rationale or inputs and expose the contents of an unreadable JSON record.
:::