Troubleshooting

Troubleshoot scientific figure presentation — Sustainable Catalyst Research Hub

Diagnose incorrect scientific figures, captions, values, provenance links, accessibility, rendering, or publication status against the reviewed Research Hub artifact.

ProductSustainable Catalyst Platform CoreUpdatedNovember 16, 2026Reading time21 minutes

Application: Sustainable Catalyst Research Hub
Category: Troubleshooting / Scientific Figure Presentation
Component: Research Hub — Public Scientific Figures (intended component; select the registered product component in Knowledge Base metadata)
Audience: Researchers, publication editors, visualization developers, and platform operators
Technical level: Intermediate to advanced
Estimated reading time: 18–22 minutes, excluding test execution and deployed-system inspection
Reference environment: Python 3 standard library; no external packages or network access
Verification scope: 19/19 synthetic tests passed; production UI, APIs, and exports not tested

1. Goal

Diagnose and safely correct a scientific figure whose published rendering, caption, numerical values, source attribution, methodological lineage, or access status differs from the approved research artifact. The outcome is not simply a working image: the visible figure and accessible alternatives must represent the same reviewed evidence, source revision, methods, units, and uncertainty, without disclosing private materials.

2. Requirements

Identify the exact publication and figure before changing any record. At minimum, obtain the authorized project and organization, published report revision, figure identifier and revision, approved figure artifact, source dataset and revision, analysis method and revision, units, caption, publication decision, access classification, and any published numerical equivalent. Use only records and environments for which you are authorized.

For local reference testing, Python 3 and the included validate_figure.py and test_validate_figure.py files are sufficient. The tests require no production credentials, external service, or private dataset.

3. Symptoms

  • Published image is missing, broken, blurry, cropped, or replaced by a placeholder.
  • The figure depicts older values although a corrected figure was approved.
  • Axis labels, units, legend, uncertainty bands, or caption are absent or incorrect.
  • A figure is attributed to the wrong dataset or analytical method.
  • The HTML page, PDF, and original SVG or PNG disagree.
  • Published text claims an effect or significance not demonstrated by the figure.
  • A public graph, caption, alt text, or download URL exposes restricted research.
  • Revisions, cached previews, or search listings display contradictory information.
  • The figure loads visually but cannot be understood through keyboard access or assistive technology.

4. Cause

Typical causes include stale artifact references, incorrect source/method version bindings, missing units, erroneous transformations, manual transcription, incorrect figure export, content-delivery caching, broken asset permissions, missing publication approval, failed synchronization, or HTML/PDF rendering differences. A dataset can also be scientifically unsuitable even if it matches its recorded checksum. Treat metadata defects, rendering defects, authorization defects, and scientific validity concerns as separate failure classes.

5. Procedure

  1. Freeze the observed state: record the affected public URL, figure ID, visible caption, timestamp, browser/export format, and sanitized request ID. Do not publish confidential content in the incident record.
  2. Resolve authority: inspect the approved publication revision, figure artifact ID and exact version, source dataset ID/revision, method ID/revision, and rights classification.
  3. Reconcile numerical evidence: compare the source values, transformations, plotted coordinates, displayed labels, uncertainty notation, and numerical table.
  4. Validate content identity: compare an artifact digest to the correct artifact bytes, or a canonical data digest to the same canonical input representation. Do not confuse these two digest types.
  5. Compare outputs: inspect interactive HTML, static image, PDF, DOCX where supported, alt text, table equivalent, and cached previews.
  6. Assess security: ensure asset URLs, annotations, descriptions, thumbnails, and API responses do not disclose restricted source data or unpublished research.
  7. Correct at the owning layer: fix data preparation, rendered artifact, report insertion, caption, accessibility, or publication synchronization as appropriate. Preserve accepted revisions.
  8. Revalidate and record: rerun synthetic and deployment-specific acceptance checks, reload across sessions, and document the actual corrected state.

6. Troubleshooting

Table 1. First-response diagnostic matrix
Observed failure Likely boundary Evidence to inspect Safe resolution
Broken figure URL Storage, rights, or delivery Authorized asset ID, response status, artifact availability Restore approved reference or authorized asset, not a guessed URL
Wrong numeric values Data, computation, or stale revision Source revision, transformation, plotted point data Regenerate from reviewed inputs and create a new controlled revision
Incorrect caption or units Editorial metadata Method documentation, plot axes, unit definitions Correct caption and inspect whether scientific interpretation changes
HTML/PDF disagreement Exporter or template Exact document revision, export logs, rendered files Rebuild from accepted revision and inspect each format
Private source disclosed Authorization and serialization Public responses, direct links, caches, thumbnails Contain exposure and apply authoritative access restrictions
Figure lacks accessible meaning Presentation semantics Alt text, numerical table, focus path, color independence Add accurate alternatives and test actual assistive technology

7. Reconcile scientific values and transformations

Compare plotted values with the saved numerical output, not only with what appears in the image. Check units, data exclusion, aggregation, smoothing, transformations, axis inversion, normalization, interpolation, and missing values. For a time series, compare measurement timestamps and timezones; for a spatial figure, check coordinate reference system, resolution, legend classes, and treatment of no-data areas. Distinguish a calculated estimate from an observed measurement.

Record whether an error affects only presentation or changes a substantive result or conclusion. Material scientific changes may require fresh review before public replacement.

8. Check axes, units, and numerical precision

Confirm that axes identify quantities and their units. Verify scaling, scientific notation, percent versus fraction, absolute versus relative change, and significant figures. If a displayed value was rounded, recompute from the unrounded result and record the intended rule. A label such as “change (%)” is incomplete unless the baseline and numerator are defined in the method.

9. Diagnose misleading captions and source attribution

Captions should identify what was measured or modeled, relevant groups and time ranges, uncertainty conventions, and the data/method origin. A caption must not say “significant increase” without valid inferential evidence. Ensure that reference identifiers resolve to the exact reviewed artifacts. When a source cannot be disclosed, provide an accurate permitted provenance summary rather than disclosing a private path or pretending the source is public.

10. Distinguish data and image checksums

An artifact SHA-256 hash is computed over the exact delivered file bytes. A canonical-data digest is computed over a defined serialization of the plotted data. These digests answer different questions: the former detects binary-asset changes; the latter detects changes to the serialized values. An image may be regenerated with identical values but different bytes because of fonts, engine versions, or metadata. Conversely, a matching file hash cannot establish that its original measurements were accurate.

The synthetic validator below uses a canonical point-data digest in a field named artifact.sha256 for the simplified fixture. This is intentionally a reference-model convention, not a verified image-file hash or deployment schema. A production contract should use separate fields, such as data_sha256 and file_sha256, and verify each against the appropriate content.

11. Synthetic figure manifest

This deliberately fabricated fixture demonstrates one published figure connected to an approved revision, source, method, and three numeric points. The values are not scientific observations.

{
  "figure_id": "synthetic-figure-001",
  "revision": "v2",
  "caption": "Synthetic measurements at days 0, 7 and 14; no inferential claim.",
  "units": "synthetic units",
  "points": [
    {
      "x": 0,
      "y": 10
    },
    {
      "x": 7,
      "y": 12
    },
    {
      "x": 14,
      "y": 15
    }
  ],
  "source": {
    "id": "synthetic-data-001",
    "revision": "r3",
    "visibility": "public"
  },
  "method": {
    "id": "synthetic-analysis-001",
    "revision": "m2",
    "visibility": "public"
  },
  "artifact": {
    "sha256": "0ac6bd22d93c784cfe165a6dd22318e82c66a0006d757661277abf5d2eb66ccd",
    "source_revision": "r3",
    "method_revision": "m2"
  },
  "publication": {
    "approved_revision": "v2",
    "status": "published",
    "authorized": true
  }
}

12. Executable reference validator

Save the following as validate_figure.py, or use the accompanying ZIP package. It is an offline reference validator and must not be wired directly to production publication commands.

"""Synthetic, offline figure-publication consistency validator.

No network, platform credentials, or production access. This is a reference
fixture, not a Sustainable Catalyst service implementation.
"""
from __future__ import annotations
from dataclasses import dataclass
from decimal import Decimal, InvalidOperation
from hashlib import sha256
import json
from typing import Any


@dataclass(frozen=True)
class Finding:
    code: str
    message: str


def canonical_hash(value: Any) -> str:
    payload = json.dumps(value, sort_keys=True, separators=(",", ":"), ensure_ascii=False, allow_nan=False)
    return sha256(payload.encode("utf-8")).hexdigest()


def validate(record: dict, *, public: bool = True) -> list[Finding]:
    issues: list[Finding] = []
    def add(code: str, message: str) -> None:
        issues.append(Finding(code, message))

    if not isinstance(record, dict):
        return [Finding("INVALID_RECORD", "Record must be a mapping")]

    required = ("figure_id", "revision", "source", "method", "caption", "units", "points", "artifact", "publication")
    for field in required:
        if field not in record:
            add("MISSING_FIELD", f"Missing {field}")
    if any(field not in record for field in required):
        return issues

    source, method, artifact, pub = (record[key] for key in ("source", "method", "artifact", "publication"))
    if not all(isinstance(x, dict) for x in (source, method, artifact, pub)):
        return issues + [Finding("INVALID_SCHEMA", "Source, method, artifact, and publication must be mappings")]

    for field, obj, props in (("source", source, ("id", "revision")), ("method", method, ("id", "revision")),
                              ("artifact", artifact, ("sha256", "source_revision", "method_revision")),
                              ("publication", pub, ("approved_revision", "status", "authorized"))):
        for prop in props:
            if not obj.get(prop) and obj.get(prop) is not False:
                add("MISSING_FIELD", f"Missing {field}.{prop}")

    if not isinstance(record["figure_id"], str) or not record["figure_id"].strip():
        add("INVALID_ID", "Figure ID must be non-empty")
    if not isinstance(record["revision"], str) or not record["revision"].strip():
        add("INVALID_REVISION", "Revision must be non-empty")
    if not isinstance(record["caption"], str) or len(record["caption"].strip()) < 20:
        add("CAPTION_INCOMPLETE", "Caption must explain what is shown")
    if not isinstance(record["units"], str) or not record["units"].strip():
        add("UNITS_MISSING", "Axis or measurement units must be supplied")

    points = record["points"]
    if not isinstance(points, list) or not points:
        add("POINTS_MISSING", "A nonempty list of points is required")
    else:
        seen = set()
        for index, point in enumerate(points):
            if not isinstance(point, dict) or "x" not in point or "y" not in point:
                add("POINT_INVALID", f"Point {index} must include x and y")
                continue
            try:
                x = Decimal(str(point["x"]))
                y = Decimal(str(point["y"]))
                if not x.is_finite() or not y.is_finite():
                    raise InvalidOperation
            except (InvalidOperation, TypeError, ValueError):
                add("NONFINITE_POINT", f"Point {index} has an invalid numeric value")
                continue
            if x in seen:
                add("DUPLICATE_X", f"Repeated x value at point {index}")
            seen.add(x)

    digest = artifact.get("sha256")
    if not isinstance(digest, str) or len(digest) != 64 or any(c not in "0123456789abcdef" for c in digest):
        add("ARTIFACT_DIGEST_INVALID", "Artifact SHA-256 must contain 64 lowercase hexadecimal digits")
    if isinstance(points, list) and isinstance(digest, str) and len(digest) == 64:
        try:
            if canonical_hash(points) != digest:
                add("ARTIFACT_CONTENT_MISMATCH", "Point data do not match declared synthetic artifact digest")
        except (ValueError, TypeError):
            add("ARTIFACT_CONTENT_INVALID", "Point data cannot be canonically serialized")
    if artifact.get("source_revision") != source.get("revision"):
        add("SOURCE_REVISION_MISMATCH", "Artifact source revision differs from declared source")
    if artifact.get("method_revision") != method.get("revision"):
        add("METHOD_REVISION_MISMATCH", "Artifact method revision differs from declared method")

    if public:
        if pub.get("status") != "published" or pub.get("authorized") is not True:
            add("PUBLICATION_NOT_AUTHORIZED", "Public figure lacks explicit publication authority")
        if pub.get("approved_revision") != record["revision"]:
            add("PUBLICATION_REVISION_MISMATCH", "Approved revision differs from displayed revision")
        if source.get("visibility") != "public":
            add("RESTRICTED_SOURCE", "Public payload references a nonpublic source")
        if method.get("visibility") != "public":
            add("RESTRICTED_METHOD", "Public payload references a nonpublic method")
    return issues


def synthetic_record() -> dict:
    points = [{"x": 0, "y": 10}, {"x": 7, "y": 12}, {"x": 14, "y": 15}]
    return {
        "figure_id": "synthetic-figure-001", "revision": "v2", "caption": "Synthetic measurements at days 0, 7 and 14; no inferential claim.",
        "units": "synthetic units", "points": points,
        "source": {"id": "synthetic-data-001", "revision": "r3", "visibility": "public"},
        "method": {"id": "synthetic-analysis-001", "revision": "m2", "visibility": "public"},
        "artifact": {"sha256": canonical_hash(points), "source_revision": "r3", "method_revision": "m2"},
        "publication": {"approved_revision": "v2", "status": "published", "authorized": True},
    }


if __name__ == "__main__":
    record = synthetic_record()
    findings = validate(record)
    print(json.dumps({"fixture": record["figure_id"], "finding_count": len(findings), "findings": [f.__dict__ for f in findings]}, indent=2))

13. Regression tests

Save this as test_validate_figure.py beside the validator.

import copy
import unittest
from validate_figure import validate, synthetic_record, canonical_hash


class FigureChecks(unittest.TestCase):
    def setUp(self):
        self.r = synthetic_record()

    def codes(self):
        return [issue.code for issue in validate(self.r)]

    def test_valid(self):
        self.assertEqual(self.codes(), [])

    def test_missing_required_field(self):
        del self.r['figure_id']
        self.assertIn('MISSING_FIELD', self.codes())

    def test_short_caption(self):
        self.r['caption'] = 'Plot'
        self.assertIn('CAPTION_INCOMPLETE', self.codes())

    def test_missing_units(self):
        self.r['units'] = ''
        self.assertIn('UNITS_MISSING', self.codes())

    def test_nonfinite(self):
        self.r['points'][1]['y'] = 'NaN'
        self.assertIn('NONFINITE_POINT', self.codes())

    def test_duplicate_x(self):
        self.r['points'][1]['x'] = 0
        self.assertIn('DUPLICATE_X', self.codes())

    def test_source_revision_mismatch(self):
        self.r['artifact']['source_revision'] = 'r2'
        self.assertIn('SOURCE_REVISION_MISMATCH', self.codes())

    def test_method_revision_mismatch(self):
        self.r['artifact']['method_revision'] = 'm1'
        self.assertIn('METHOD_REVISION_MISMATCH', self.codes())

    def test_wrong_approval_revision(self):
        self.r['publication']['approved_revision'] = 'v1'
        self.assertIn('PUBLICATION_REVISION_MISMATCH', self.codes())

    def test_unpublished(self):
        self.r['publication']['status'] = 'draft'
        self.assertIn('PUBLICATION_NOT_AUTHORIZED', self.codes())

    def test_no_publication_authorization(self):
        self.r['publication']['authorized'] = False
        self.assertIn('PUBLICATION_NOT_AUTHORIZED', self.codes())

    def test_private_source(self):
        self.r['source']['visibility'] = 'private'
        self.assertIn('RESTRICTED_SOURCE', self.codes())

    def test_private_method(self):
        self.r['method']['visibility'] = 'private'
        self.assertIn('RESTRICTED_METHOD', self.codes())

    def test_invalid_digest(self):
        self.r['artifact']['sha256'] = 'nope'
        self.assertIn('ARTIFACT_DIGEST_INVALID', self.codes())

    def test_data_changed_without_digest_update(self):
        self.r['points'][2]['y'] = 16
        self.assertIn('ARTIFACT_CONTENT_MISMATCH', self.codes())

    def test_empty_points(self):
        self.r['points'] = []
        self.assertIn('POINTS_MISSING', self.codes())

    def test_malformed_point(self):
        self.r['points'][0] = {'x': 1}
        self.assertIn('POINT_INVALID', self.codes())

    def test_hash_is_key_order_invariant(self):
        self.assertEqual(canonical_hash({'a': 1, 'b': 2}), canonical_hash({'b': 2, 'a': 1}))

    def test_restricted_only_checked_for_public(self):
        self.r['source']['visibility'] = 'private'
        self.assertNotIn('RESTRICTED_SOURCE', [i.code for i in validate(self.r, public=False)])


if __name__ == '__main__':
    unittest.main()

Run:

python -m unittest -v test_validate_figure.py
python validate_figure.py

Executed locally: 19 tests passed in approximately 0.001 seconds. The reference validator reported zero findings for its synthetic baseline fixture. Actual output is preserved in the downloadable package as test-results.txt.

14. Negative tests and expected diagnoses

Table 2. Executed synthetic cases
Mutation Expected finding
Remove figure identifier MISSING_FIELD
Remove meaningful caption CAPTION_INCOMPLETE
Omit units UNITS_MISSING
Use nonfinite measurement NONFINITE_POINT
Duplicate an x coordinate DUPLICATE_X
Change a point without updating canonical digest ARTIFACT_CONTENT_MISMATCH
Change data or method revision SOURCE_REVISION_MISMATCH or METHOD_REVISION_MISMATCH
Use unapproved figure revision PUBLICATION_REVISION_MISMATCH
Publish a draft or revoke authority PUBLICATION_NOT_AUTHORIZED
Reference nonpublic source or method in public fixture RESTRICTED_SOURCE or RESTRICTED_METHOD

The duplicate-x check is suitable for this simple one-series fixture, not all chart types: repeated x-values may be legitimate in scatterplots, replicate observations, or multiseries datasets. Production validation must use figure-type-specific rules.

15. Verify authorized public disclosure

Do not assume that public visibility of a figure authorizes public access to all its parent datasets, internal notebooks, and reviewer records. In a real deployment, public source relationships may be represented by approved summaries or citations rather than direct private-object URLs. Before publication, verify that the page, image bytes, alt text, structured data, API, download URL, graph edges, and cache reveal only approved fields. The reference validator’s visibility labels are supplied by a fixture: they are not trustworthy authorization checks in a real multi-tenant service.

16. Test HTML, SVG, raster, and document exports

Inspect the exact output intended for readers. Verify that raster resolution is sufficient, SVG text and paths are preserved, captions remain attached to figures, and PDF/DOCX exports do not substitute an old image or omit uncertainty annotations. Compare numeric values against a machine-readable table. A successful export response alone does not establish figure fidelity.

17. Accessibility acceptance

Provide concise alternative text identifying the graph and an accessible detailed description or table for significant numerical relationships. Do not rely on color alone to distinguish essential series. For interactive charts, test keyboard navigation, visible focus, zoom and pan alternatives, and whether hover-only values have another accessible route. Where applicable, evaluate WCAG 2.2 criteria using real browser/assistive-technology combinations; the Python tests do not perform these checks.

18. Recovery and rollback

  1. Preserve the last approved figure revision, report revision, publication decision, and permitted evidence.
  2. If exposure of restricted material is suspected, contain the public path and follow the authorized incident process first.
  3. Read the authoritative state before repeating a save or publication operation whose outcome is unknown.
  4. Correct the owning data, method, renderer, report insertion, or public delivery layer; avoid direct database mutation without an approved operational contract.
  5. Issue a new reviewed revision when scientific data, analytical method, or interpretation changes materially.
  6. Recheck the public page, direct files, cached previews, and any supported metadata API.
  7. Verify restore procedures in isolated staging; ensure restrictions or lawful erasure decisions cannot be undone inadvertently.

19. Deployment-specific checks

Table 3. Separate reference evidence from release evidence
Check Status Evidence needed for production
Reference manifest validation Passed: 19/19 tests Executed local unittest log
Authoritative source and method integration Not tested Actual service owner and immutable revision resolution
Access control and tenant isolation Not tested Authenticated negative tests with synthetic tenant accounts
Figure renderer fidelity Not tested Numeric-to-mark and visual comparison in deployed renderer
HTML/PDF/DOCX export consistency Not tested Actual export snapshots from approved publication revision
Screen-reader and keyboard accessibility Not tested Recorded manual browser/assistive-technology checks
Backup and restoration Not tested Staging restore test with privacy protections

20. Publication acceptance criteria

Accept the affected figure only when: its rendered numerical values match reviewed computational output; title, caption, units, uncertainty, source and method identifiers are accurate; the exact artifact and publication revisions are authorized; its accessible equivalents agree with the figure; supported exports preserve scientific meaning; and no prohibited data is exposed. A documented successful synthetic validator run is supporting evidence, not a substitute for any of these deployment checks.

21. Incident receipt example

{
  "schema_version": "figure-presentation-incident-example-v1",
  "classification": "synthetic_reference",
  "figure_id": "synthetic-figure-001",
  "test_run": {
    "framework": "unittest",
    "tests_run": 19,
    "failures": 0,
    "errors": 0,
    "status": "pass"
  },
  "deployment_checks": {
    "source_integration": "not_tested",
    "public_authorization": "not_tested",
    "visual_rendering": "not_tested",
    "accessibility": "not_tested",
    "exports": "not_tested"
  },
  "production_approval": false
}

In a real incident receipt, attach actual source commits, environment, reviewer identity, sanitized trace reference, output identifiers, and the accepted revision. Do not paste secrets or protected data into public support tickets.

22. Implementation anchors and Knowledge Base metadata

Before declaring the article verified, record the exact Research Hub repository and deployed commit, supported product and component version, figure rendering library and version, public API or bridge contract, source-object schema, publication authorization service, CI results, browser and export evidence, and recovery plan. Assign supported product version, product component, and last verified version in the Knowledge Base metadata controls; article body text cannot substitute for these registered values. Keep the last verified version blank or pending if no deployed release has been examined.

23. References

  1. W3C, Web Content Accessibility Guidelines (WCAG) 2.2: https://www.w3.org/TR/WCAG22/.
  2. W3C WAI, Complex Images: https://www.w3.org/WAI/tutorials/images/complex/.
  3. W3C, PROV-O: The PROV Ontology: https://www.w3.org/TR/prov-o/.
  4. Python Software Foundation, unittest: https://docs.python.org/3/library/unittest.html.
  5. Python Software Foundation, hashlib: https://docs.python.org/3/library/hashlib.html.

24. Completion record

Local reference evidence: 19/19 Python standard-library regression tests executed successfully, including version mismatches, invalid numeric data, privacy-label failures, and a changed-data digest mismatch.

Production status: Verification pending. The reference checks do not establish deployed publication, scientific review, visual fidelity, accessibility, or security.

Decision rule: Scientific accuracy, authorized disclosure, and published artifact consistency are separate mandatory acceptance conditions. A figure must not be declared corrected solely because its URL loads, its metadata parses, or the synthetic tests pass.

Scroll to Top