Troubleshooting
Troubleshoot data-to-mark provenance — Visualization & Graphing
Troubleshoot data-to-mark provenance — Visualization & Graphing Cross-application area: Visualization & Graphing Status: Initial scientific graphics guidance; platform-specific features not verified. Recognize the defect The chart
Application area: Visualization & Graphing
Article classification: Technical troubleshooting / Data lineage / Scientific integrity
Audience: Researchers, scientific programmers, data engineers, visualization developers, QA engineers, and platform support personnel
Technical level: Intermediate to advanced
Reference environment: Python 3, NumPy, pandas, Matplotlib, and pytest
Relevant standards: W3C PROV-DM, W3C PROV-O, and WCAG 2.2
Applies to: Scientific charts, derived statistics, dashboards, spatial graphics, model visualizations, and publication figures
Primary outputs: Provenance diagnostic report, source-to-mark comparison, minimal reproduction, root-cause record, and corrected validation evidence
Estimated reading time: 14–17 minutes, excluding practical exercises
1. Problem overview
A data-to-mark provenance failure occurs when the relationship between a scientific graphical element and its source observations, derived results, or analytical methods cannot be established reliably.
The visible figure may be numerically correct while its lineage is incomplete or incorrect. Conversely, the source lineage may be correct while the renderer displays an incorrect value, scale, or uncertainty representation.
Typical failures include:
- A graphical mark references the wrong source record.
- An aggregate omits one or more contributing observations.
- A mark contains duplicate or unexpected contributors.
- The numerical value agrees with the expected result but its source dependencies are wrong.
- A filter changes the contributor set without updating provenance.
- A graph references an outdated source or analytical artifact.
- A renderer performs an undocumented transformation.
- Source inspection fails because of an unresolved identifier or authorization error.
- An exported figure loses its associated provenance records.
- A published scientific claim cannot be traced to supporting analytical evidence.
Primary diagnostic principle: Identify the earliest stage at which source identity, analytical dependency, numerical value, graphical encoding, or provenance metadata diverges from its documented contract.
Do not alter authoritative source data merely to make a figure or lineage test pass.
2. Identify the symptom and probable cause
| Symptom | Possible cause | Initial investigation |
|---|---|---|
| Mark has no source reference | Missing lineage propagation or unsupported mark type | Inspect source-to-mark mapping |
| Mark references an unknown record | Stale identifiers, broken joins, or wrong dataset version | Resolve contributor IDs against the authoritative source |
| Aggregate has incomplete lineage | Lost records, incorrect filters, or partial aggregation metadata | Compare expected and recorded contributor sets |
| Duplicate contributor IDs | Join multiplication or incorrect lineage construction | Inspect join cardinality and contribution rules |
| Correct value, incorrect lineage | Coincidentally equal statistics or incorrect record assignment | Test numerical and lineage integrity independently |
| Wrong plotted value | Transformation or renderer input error | Recalculate the mark from source records |
| Lineage changes unexpectedly | Mutable inputs, filter state, caching, or revision mismatch | Compare source hashes and processing parameters |
| Error bars lack provenance | Unrecorded uncertainty method or missing statistical dependencies | Inspect interval-generation method and input records |
| Source inspection denied | Insufficient permissions or incorrect source ownership | Review authorization decisions without bypassing controls |
| Export loses lineage | Serialization or publication pipeline does not preserve references | Compare internal manifest with permitted exported evidence |
| Knowledge graph disagrees with calculation | Stale or unsupported dependency edges | Reconstruct relationships from executed transformation evidence |
3. Preserve the failure evidence
Before clearing caches, rebuilding figures, changing processing code, or revising provenance metadata, preserve the observed failure.
Record:
- Figure identifier and revision.
- Affected mark identifier and type.
- Source dataset identifier, version, and checksum.
- Source-record identifiers and the recorded contributor set.
- Expected contributor set, where independently determinable.
- Transformation name, parameters, and code revision.
- Filtering and grouping configuration.
- Numerical value and measurement units.
- Uncertainty definition, if applicable.
- Renderer and application versions.
- Original graphical output and associated manifest.
- Sanitized logs, errors, and relevant screenshots.
- Authorization context and applicable publication restrictions.
- Scientific reports or publications that rely on the affected mark.
Preserve immutable artifacts and original diagnostic evidence. Conduct troubleshooting on isolated copies using synthetic or explicitly authorized records.
3.1 Fault-isolation sequence
Authoritative source artifact
|
v
Source version and integrity
|
v
Record identity and source schema
|
v
Filtering, grouping, and transformation
|
v
Derived numerical result
|
v
Provenance dependency construction
|
v
Mark identity and numerical mapping
|
v
Renderer configuration
|
v
Displayed scientific figure
|
v
Exported artifact and publication
Test the boundaries independently. A provenance defect should not be considered repaired merely because the final image appears visually correct.
4. Verify source identity and version integrity
Source-version mismatch is a common cause of apparently unexplained provenance failures.
Verify that the source artifact selected by the figure matches the authoritative version identified in the research record.
Inspect:
- Logical source identifier.
- Immutable revision or artifact ID.
- Content checksum.
- Schema and record count.
- Observation and coordinate identifiers.
- Unit definitions.
- Data acquisition and processing metadata.
- Access classification and permissions.
4.1 Generate and compare SHA-256 hashes
import hashlib
from pathlib import Path
def sha256_file(path):
digest = hashlib.sha256()
with Path(path).open("rb") as handle:
for block in iter(
lambda: handle.read(1024 * 1024),
b""
):
digest.update(block)
return digest.hexdigest()
Compare the computed checksum against an independently retained authoritative digest.
A matching hash verifies byte identity with the reference artifact, not scientific correctness. If no historical checksum exists, record that limitation rather than interpreting a newly calculated digest as proof that the source has remained unchanged.
5. Understand the mathematical failure modes
5.1 Source-to-mark lineage
Let the source dataset contain records:
D = {r_1, r_2, ..., r_n}
Let a figure contain marks:
M = {m_1, m_2, ..., m_k}
Define the contributor lineage of a mark as:
L(m) = set of contributing source records
For a direct observation:
L(m_1) = {r_1}
For an aggregate:
L(m_mean) = {r_1, r_2, r_3}
5.2 Contributor completeness
Let the independently expected lineage be L_expected and the recorded lineage be L_recorded.
Missing =
L_expected - L_recorded
Unexpected =
L_recorded - L_expected
For a deterministic aggregation requiring exact contributor membership:
Missing = empty set
Unexpected = empty set
Source sets alone do not preserve weights, record multiplicity, or dependency roles. More complex transformations require richer provenance representations.
5.3 Numerical reconciliation
For expected numerical value y_ref and displayed mark value y_mark:
|y_mark - y_ref|
<= atol + rtol * |y_ref|
The tolerances should be justified by numerical precision and scientific requirements (NumPy Developers, n.d.).
5.4 Correct arithmetic can conceal incorrect lineage
Consider three synthetic observations:
10, 12, 14
The complete mean is:
(10 + 12 + 14) / 3 = 12
If the middle observation is omitted:
(10 + 14) / 2 = 12
The resulting value remains 12, even though the contributor set is incomplete.
Diagnostic implication: A numerical comparison alone cannot establish correct provenance. Test contributor identity, completeness, transformation method, and numerical value separately.
6. Build a deterministic diagnostic fixture
The following synthetic dataset contains two groups whose means are known independently.
| Record ID | Group | Value (synthetic units) |
|---|---|---|
| C01 | Control | 10 |
| C02 | Control | 12 |
| C03 | Control | 14 |
| T01 | Treatment | 15 |
| T02 | Treatment | 18 |
| T03 | Treatment | 21 |
Expected aggregate values:
Control mean = 12
Treatment mean = 18
Difference = 6 synthetic units
Expected lineage:
bar-control:
C01, C02, C03
bar-treatment:
T01, T02, T03
These values are mathematical fixtures and do not represent experimental results or establish causal relationships.
7. Execute the provenance diagnostic script
7.1 Prepare the environment
mkdir sc-provenance-diagnostics
cd sc-provenance-diagnostics
python3 -m venv .venv
source .venv/bin/activate
python -m pip install numpy pandas matplotlib pytest
python --version
python -m pip freeze > requirements-lock.txt
The commands record the installed dependency versions. For controlled deployment testing, use an approved lockfile and record the actual operating environment.
7.2 Create the diagnostic script
Save as diagnose_provenance.py.
import hashlib
import json
from pathlib import Path
import numpy as np
import pandas as pd
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
OUTPUT = Path("diagnostic-output")
OUTPUT.mkdir(exist_ok=True)
def sha256(path):
digest = hashlib.sha256()
with Path(path).open("rb") as handle:
for block in iter(
lambda: handle.read(1024 * 1024),
b""
):
digest.update(block)
return digest.hexdigest()
def diagnose_mark(source, mark):
ids = mark["contributor_ids"]
if len(ids) != len(set(ids)):
raise ValueError(
"Duplicate contributor identifiers"
)
expected = source.loc[
source["group"] == mark["group"]
]
if expected.empty:
raise ValueError("Unknown source group")
expected_ids = set(
expected["record_id"]
)
recorded_ids = set(ids)
missing = sorted(
expected_ids - recorded_ids
)
unexpected = sorted(
recorded_ids - expected_ids
)
expected_value = float(
expected["value"].mean()
)
numeric_match = bool(
np.isclose(
mark["value"],
expected_value,
rtol=0,
atol=1e-12
)
)
return {
"mark_id": mark["mark_id"],
"expected_value": expected_value,
"recorded_value": mark["value"],
"numeric_match": numeric_match,
"missing_contributors": missing,
"unexpected_contributors": unexpected,
"lineage_complete": (
not missing and not unexpected
)
}
# Build authoritative synthetic source.
source = pd.DataFrame({
"record_id": [
"C01", "C02", "C03",
"T01", "T02", "T03"
],
"group": [
"Control", "Control", "Control",
"Treatment", "Treatment", "Treatment"
],
"value": [
10.0, 12.0, 14.0,
15.0, 18.0, 21.0
]
})
source_path = OUTPUT / "source.csv"
source.to_csv(source_path, index=False)
source = pd.read_csv(source_path)
assert source["record_id"].is_unique
assert source["record_id"].notna().all()
assert source["group"].notna().all()
assert np.isfinite(source["value"]).all()
# Valid reference marks.
marks = [
{
"mark_id": "bar-control",
"group": "Control",
"value": 12.0,
"contributor_ids": [
"C01", "C02", "C03"
],
"transformation": "arithmetic_mean"
},
{
"mark_id": "bar-treatment",
"group": "Treatment",
"value": 18.0,
"contributor_ids": [
"T01", "T02", "T03"
],
"transformation": "arithmetic_mean"
}
]
results = [
diagnose_mark(source, mark)
for mark in marks
]
assert all(
result["numeric_match"]
for result in results
)
assert all(
result["lineage_complete"]
for result in results
)
# Deliberate lineage corruption:
# The numerical value remains correct.
corrupted = dict(marks[0])
corrupted["contributor_ids"] = [
"C01", "C03"
]
corruption_result = diagnose_mark(
source,
corrupted
)
assert corruption_result["numeric_match"]
assert not corruption_result["lineage_complete"]
assert corruption_result[
"missing_contributors"
] == ["C02"]
# Generate reference figure.
fig, ax = plt.subplots(
figsize=(7.5, 4.5)
)
bars = ax.bar(
[mark["group"] for mark in marks],
[mark["value"] for mark in marks],
color=["#174a67", "#a43b28"]
)
ax.set_ylabel(
"Mean response (synthetic units)"
)
ax.set_ylim(0, 22)
for patch, mark in zip(bars, marks):
np.testing.assert_allclose(
patch.get_height(),
mark["value"],
rtol=0,
atol=1e-12
)
fig.tight_layout()
figure_path = OUTPUT / "reference-figure.png"
fig.savefig(figure_path, dpi=150)
plt.close(fig)
# Save the diagnostic evidence.
report = {
"fixture": "synthetic_group_means",
"source_sha256": sha256(source_path),
"figure_sha256": sha256(figure_path),
"valid_marks": results,
"corrupted_mark": corruption_result,
"source_integrity": "pass_for_fixture",
"lineage_validation": "pass_for_fixture",
"corruption_detection": "pass",
"renderer_coordinate_check": "pass",
"visual_review": "not_tested",
"authorization": "not_tested",
"scientific_review": "not_tested"
}
report_path = OUTPUT / "diagnostic-report.json"
report_path.write_text(
json.dumps(report, indent=2),
encoding="utf-8"
)
print("Valid source marks:", len(results))
print("Lineage checks: PASS")
print("Corruption detected:",
not corruption_result["lineage_complete"])
print("Missing contributor:",
corruption_result["missing_contributors"])
print("Numerical value remains correct:",
corruption_result["numeric_match"])
7.3 Execute the script
python diagnose_provenance.py
Expected output:
Valid source marks: 2
Lineage checks: PASS
Corruption detected: True
Missing contributor: ['C02']
Numerical value remains correct: True
The resulting evidence package contains:
diagnostic-output/
source.csv
reference-figure.png
diagnostic-report.json
The script intentionally demonstrates a provenance defect that cannot be detected through the displayed mean alone.
It does not verify rendered pixels, source-level permissions, arbitrary transformation methods, or deployed Sustainable Catalyst functionality.
8. Diagnose missing and unexpected contributors
When a mark has incomplete or unexpected lineage, compare its recorded contributor set with the independently expected set.
8.1 Missing contributors
Investigate whether records were lost through:
- Filtering or quality-control exclusions.
- Incorrect aggregation.
- Failed joins.
- Partial data loading.
- Pagination or query limits.
- Stale derived results.
- Incomplete provenance serialization.
Do not add a missing identifier to the lineage register without verifying that the record actually contributed to the calculation.
8.2 Unexpected contributors
Investigate whether incorrect source relationships originated from:
- Nonunique join keys.
- Cross-group record assignment.
- Invalid filters.
- Incorrect source-object resolution.
- Cached analytical results from another dataset version.
- Mixed authorization contexts.
Remove an incorrect relationship only after reconstructing the expected dependencies from authoritative inputs and executed transformation evidence.
8.3 Duplicate contributions
For unweighted group means, duplicate contributors may change the result by changing the effective sample size.
For example:
Correct mean:
(10 + 12 + 14) / 3 = 12
Incorrect duplicated sample:
(10 + 12 + 12 + 14) / 4 = 12
The numeric result can remain unchanged while the input multiplicity becomes incorrect.
A simple set comparison does not capture multiplicity. Where repeated contributions are meaningful, preserve and validate the full contribution sequence or a counted multiset.
9. Diagnose transformation and model lineage
Not every mark represents an arithmetic mean. Different analytical operations require different provenance checks.
| Transformation | Common failure | Required diagnostic |
|---|---|---|
| Filtering | Records omitted or retained incorrectly | Compare filter expression and retained identifiers |
| Aggregation | Incorrect group membership or estimator | Recompute the statistic and contributor set |
| Weighted mean | Missing or incorrect weights | Inspect weights and independently calculate the result |
| Join | Duplicated or mismatched records | Validate join keys, cardinality, and source identities |
| Interpolation | Unrecorded derived values | Verify source points, interpolation method, and domain |
| Regression | Wrong model revision or training data | Inspect fitting inputs, parameters, and prediction method |
| Simulation | Missing parameter or state dependencies | Reconstruct model input and execution provenance |
| Geospatial transformation | Wrong geometry or coordinate reference | Verify original geometry and transformation metadata |
Where model-derived marks depend on large collections of data, the provenance may reference a versioned intermediate artifact or model state instead of listing every source row directly.
Such references must resolve to the correct underlying dependencies at the granularity required by the scientific and governance contract.
10. Diagnose uncertainty lineage
Confidence intervals, model uncertainty bands, standard deviations, and prediction intervals require independent provenance for their calculated bounds.
For a conventional sample standard deviation:
s = sqrt(
sum((y_i - mean)^2) / (n - 1)
)
The method requires n greater than 1 and appropriate interpretation of the sample.
Inspect:
- Contributing observations.
- Estimator and calculation method.
- Sample size and weights.
- Confidence or probability level where applicable.
- Statistical assumptions.
- Units and transformations.
- Rendered lower and upper bounds.
Do not assume uncertainty intervals have the same lineage as their central estimates unless the actual calculation establishes that relationship.
An unexplained interval must not be accepted merely because it visually surrounds the plotted value.
11. Diagnose renderer mapping and visual defects
When source lineage and derived values are correct but the figure appears incorrect, investigate the renderer.
11.1 Mark identity
Confirm that the renderer’s logical marks correspond to the expected provenance records.
Some rendering engines generate multiple low-level graphical objects from one logical mark. Distinguish the user-facing scientific mark identifier from renderer-internal object identifiers.
11.2 Scale and coordinate mappings
Inspect:
- Axis identities and measurement units.
- Linear and logarithmic transformations.
- Axis limits and clipping.
- Color normalization.
- Category ordering.
- Spatial and temporal coordinates.
- Interpolation or smoothing performed during rendering.
For a linear color normalization:
c = (x - x_min) / (x_max - x_min)
The limits must be documented and the denominator must not be zero.
Changing a color scale can change the figure’s interpretation without changing the source lineage.
11.3 Exported marks
Verify that the exported artifact contains the intended graphical content and that any separate provenance file references the correct figure revision.
Do not assume that an SVG, PNG, PDF, or HTML export automatically preserves application-internal source identifiers.
Where permitted, provide an accompanying manifest and accessible numerical data.
12. Diagnose cache, revision, and state inconsistencies
A visualization may display outdated mark values or lineage because its cached result was generated under an earlier source or transformation revision.
Inspect:
- Source dataset revision.
- Source checksum.
- Transformation code version.
- Filter and grouping parameters.
- Renderer configuration version.
- Cached output identifier and creation time.
- Authorization and ownership scope.
A cache key should account for the inputs and processing rules that materially determine the result, as well as the required authorization isolation.
Preserve the suspected stale cache entry as diagnostic evidence before invalidating it.
When repairing the defect, regenerate the result from the intended immutable source and verify the new lineage against independently calculated expectations.
13. Diagnose authorization and security failures
Data-to-mark provenance may reveal restricted source records even when the displayed figure itself is public.
Separate permissions to:
- View a published figure.
- Inspect a derived statistic.
- View source-record identifiers.
- Retrieve underlying source data.
- Export provenance records.
A failed source-inspection request may reflect correct access enforcement rather than a broken provenance relationship.
Distinguish authorization denial from unresolved identifiers, missing artifacts, or processing errors using appropriately sanitized diagnostic evidence.
If unauthorized information has been exposed, preserve evidence and follow the applicable security incident procedure.
HTML and SVG exports also require suitable controls against unsafe active content and inadvertent disclosure of restricted metadata (OWASP Foundation, n.d.).
14. Automated regression tests
Once the cause is identified, implement regression tests for both the original defect and relevant negative conditions.
Save as test_provenance_diagnostics.py.
from collections import Counter
import pytest
def check_contributors(expected, recorded):
expected_counts = Counter(expected)
recorded_counts = Counter(recorded)
return {
"complete": (
expected_counts == recorded_counts
),
"missing": list(
(expected_counts - recorded_counts)
.elements()
),
"unexpected": list(
(recorded_counts - expected_counts)
.elements()
)
}
def test_valid_lineage():
result = check_contributors(
["C01", "C02", "C03"],
["C01", "C02", "C03"]
)
assert result["complete"]
def test_missing_record():
result = check_contributors(
["C01", "C02", "C03"],
["C01", "C03"]
)
assert not result["complete"]
assert result["missing"] == ["C02"]
def test_unexpected_record():
result = check_contributors(
["C01", "C02", "C03"],
["C01", "C02", "X99"]
)
assert not result["complete"]
assert result["unexpected"] == ["X99"]
def test_duplicate_contribution():
result = check_contributors(
["C01", "C02", "C03"],
["C01", "C02", "C02", "C03"]
)
assert not result["complete"]
assert result["unexpected"] == ["C02"]
def test_reordering_does_not_change_multiset():
result = check_contributors(
["C01", "C02", "C03"],
["C03", "C01", "C02"]
)
assert result["complete"]
def test_empty_expected_and_recorded():
result = check_contributors([], [])
assert result["complete"]
def test_all_sources_missing():
result = check_contributors(
["C01", "C02"],
[]
)
assert not result["complete"]
assert sorted(result["missing"]) == [
"C01", "C02"
]
Execute:
python -m pytest -v test_provenance_diagnostics.py
Seven tests are defined. They cover complete lineage, omissions, unexpected contributors, duplicate multiplicity, order independence, and empty cases.
The empty-set test verifies comparison behavior; it does not establish that source-free graphical marks are scientifically acceptable in every context.
This suite checks contributor multiplicity but does not validate numerical transformations, source authorization, or the actual renderer. Those checks require additional integration tests.
15. Controlled recovery procedure
When a provenance defect is confirmed, use the following controlled process:
- Preserve evidence: Save the original source, lineage register, figure, configuration, and sanitized errors.
- Reproduce the defect: Build a minimal synthetic or authorized fixture exhibiting the same failure.
- Identify the affected boundary: Determine whether the defect originates in source resolution, transformation, lineage construction, rendering, cache, or export.
- Correct the responsible component: Modify the transformation, dependency construction, revision resolution, or renderer adapter as appropriate.
- Reconstruct expected lineage: Resolve dependencies from authoritative inputs and actual transformation rules.
- Recalculate numerical results: Check values independently of provenance-set correctness.
- Repeat negative tests: Confirm that omissions, unexpected records, duplicates, and corruption are detected.
- Recheck renderer output: Compare logical marks with validated numerical and lineage records.
- Review security and accessibility: Confirm permitted source inspection and appropriate numerical alternatives.
- Preserve the corrected version: Generate a new artifact revision and acceptance evidence.
- Evaluate publication impact: Identify figures, reports, or scientific claims that may require correction.
Do not quietly replace a published scientific figure when the provenance defect affects its evidence, numerical meaning, or interpretation.
Maintain a traceable correction record and the appropriate publication-review process.
16. Scientific and technical acceptance matrix
| Criterion | Pass condition | Evidence |
|---|---|---|
| Source identity | Correct immutable source artifact identified | Source version and checksum |
| Contributor resolution | Recorded identifiers resolve to intended source records | Identifier validation report |
| Lineage completeness | All required contributors included | Set or multiset comparison |
| Dependency correctness | Contributors and transformation roles are accurate | Transformation evidence |
| Numerical reconciliation | Mark values match independently calculated results | Numerical test receipt |
| Units and coordinates | Scientific reference systems and units preserved | Schema and unit checks |
| Uncertainty | Intervals and their methods remain traceable | Statistical verification |
| Renderer correspondence | Graphical marks correspond to validated lineage objects | Renderer inspection |
| Cache integrity | Displayed result uses the correct source and transformation revision | Cache and revision record |
| Export integrity | Permitted provenance and required scientific properties are preserved | Artifact and manifest inspection |
| Authorization | Source inspection follows approved access controls | Security test results |
| Accessibility | Essential lineage information is accessible | Accessibility review |
| Reproducibility | Failure and correction can be independently reconstructed | Execution evidence |
| Scientific review | Affected claims remain supported or are appropriately corrected | Scientific assessment |
Decision rule: Record every applicable criterion as Pass, Fail, or Not Tested. A provenance defect must not be classified as resolved solely because the displayed values appear correct or the lineage graph has been regenerated.
17. Evidence package and audit record
A completed troubleshooting package should include:
- Issue identifier and affected figure revision.
- Authoritative dataset and source-artifact references.
- Original and corrected lineage records.
- Expected and actual contributor comparisons.
- Transformation methods, parameters, and code revisions.
- Numerical reconciliation evidence.
- Original and corrected graphical outputs.
- Renderer versions and configuration.
- Source and artifact checksums.
- Executed positive, negative, and regression tests.
- Authorization and accessibility review results.
- Sanitized logs and relevant screenshots.
- Publication impact assessment.
- Root cause, corrective action, and reviewer approval.
Keep numerical correctness, lineage integrity, rendering behavior, accessibility, security, and scientific model validity as independently recorded outcomes.
18. Sustainable Catalyst diagnostic integration
The following describes an intended cross-application troubleshooting workflow. Actual integration paths and deployed capabilities must be verified.
| Application | Intended diagnostic responsibility |
|---|---|
| Library | Verify source artifact identity, revisions, provenance, and permissions |
| Workbench | Reconstruct transformations and derived numerical outputs where implemented |
| Research Lab | Verify scientific calculations, models, and assumptions |
| Visualization & Graphing | Inspect mark mappings, graphical encoding, and export provenance |
| Site Intelligence | Verify geospatial source relationships and coordinate transformations where applicable |
| Decision Studio | Examine provenance supporting scenario and decision visualizations where implemented |
| Research | Identify affected figures, analytical evidence, and publications |
| Workspace | Track defect ownership, verification evidence, corrective actions, and review decisions |
18.1 Provenance knowledge graph review
Where a provenance knowledge graph is implemented, compare graph relationships with actual executed analytical dependencies.
A conceptual graph may contain:
Source observation
|
v
Analytical transformation
|
v
Derived statistic
|
v
Graphical mark
|
v
Scientific figure
|
v
Research publication
The existence of a graph edge does not prove that a transformation executed or that its result passed validation.
W3C PROV provides a standardized model for describing provenance relationships, but actual graph contents still require independent verification (W3C, 2013a; W3C, 2013b).
18.2 Platform-specific source audit
Before certifying a Sustainable Catalyst provenance fix, attach:
- Owning repository and exact source revision.
- Actual source-to-mark mapping code.
- Input and output schemas.
- Supported mark types and transformation contracts.
- Source identifier and revision-resolution behavior.
- Cache and persistence mechanisms.
- Renderer engine and deployed version.
- Executed numerical and lineage regression tests.
- Authorization and source-inspection test evidence.
- Runtime screenshots and inspected output artifacts.
- Known limitations and unsupported scenarios.
An installed graphics library or documented provenance schema does not establish that end-to-end source-to-mark inspection is operational in production.
19. Escalation criteria
Escalate the issue when:
- Source identifiers cannot be resolved to authoritative artifacts.
- Expected dependencies cannot be reconstructed.
- Lineage remains incomplete after applying the documented transformation rules.
- Derived values disagree with independent calculations.
- Model parameters or uncertainty methods are unavailable.
- Knowledge graph relationships contradict execution evidence.
- Unauthorized source records are exposed.
- Reproducibility requirements cannot be satisfied.
- Published research or policy conclusions may be materially affected.
Unresolved provenance discrepancies should not be treated as cosmetic problems when they may affect scientific evidence, publication integrity, or data-access restrictions.
20. Technical references
- World Wide Web Consortium (W3C) (2013a). PROV-DM: The PROV Data Model. W3C Recommendation. Available at: https://www.w3.org/TR/prov-dm/.
- World Wide Web Consortium (W3C) (2013b). PROV-O: The PROV Ontology. W3C Recommendation. Available at: https://www.w3.org/TR/prov-o/.
- Harris, C.R. et al. (2020). ‘Array programming with NumPy’, Nature, 585, pp. 357–362. Available at: https://doi.org/10.1038/s41586-020-2649-2.
- NumPy Developers (n.d.). numpy.testing.assert_allclose. Available at: NumPy API documentation.
- pandas Development Team (n.d.). DataFrame.merge. Available at: pandas API documentation.
- Matplotlib Development Team (n.d.). Matplotlib Documentation. Available at: https://matplotlib.org/stable/.
- pytest Development Team (n.d.). pytest Documentation. Available at: https://docs.pytest.org/en/stable/.
- Vega-Lite Developers (n.d.). Data Transformations. Available at: Vega-Lite documentation.
- OWASP Foundation (n.d.). Cross Site Scripting Prevention Cheat Sheet. Available at: OWASP Cheat Sheet Series.
- World Wide Web Consortium (W3C) (2024). Web Content Accessibility Guidelines (WCAG) 2.2. Available at: https://www.w3.org/TR/WCAG22/.
21. Completion and verification record
| Field | Required record |
|---|---|
| Issue identifier | Unique diagnostic or support reference |
| Affected figure | Figure and mark identifiers and revisions |
| Source identity | Pass, Fail, or Not Tested |
| Contributor resolution | Pass, Fail, or Not Tested |
| Lineage completeness | Pass, Fail, or Not Tested |
| Transformation validation | Pass, Fail, or Not Tested |
| Numerical reconciliation | Pass, Fail, or Not Tested |
| Uncertainty validation | Pass, Fail, or Not Tested |
| Renderer correspondence | Pass, Fail, or Not Tested |
| Export verification | Pass, Fail, or Not Tested |
| Authorization | Pass, Fail, or Not Tested |
| Accessibility | Pass, Fail, or Not Tested |
| Reproducibility | Pass, Fail, or Not Tested |
| Scientific review | Pass, Fail, or Not Tested |
| Root cause | Confirmed explanation or unresolved finding |
| Corrective action | Documented implementation change and rationale |
| Reviewer | Actual reviewer and review date |
| Evidence | Source artifacts, lineage registers, scripts, tests, figures, hashes, and logs |
| Outstanding limitations | Unresolved scientific, technical, or governance concerns |
Completion criterion: The provenance defect must be reproducibly diagnosed, corrected or explicitly bounded, and verified through applicable source-identity, contributor-completeness, numerical, transformation, renderer, authorization, accessibility, and scientific checks.
Scientific limitation: Correct data-to-mark provenance demonstrates how a graphical result was produced. It cannot independently establish that source measurements are unbiased, statistical assumptions are appropriate, models are valid, or causal conclusions are justified.
Current implementation status: Troubleshooting methodology, synthetic reference fixture, numerical and lineage diagnostics, regression tests, and proposed release acceptance criteria documented. No specific Sustainable Catalyst provenance service, renderer integration, or knowledge graph capability is certified without source-code audit, actual execution evidence, and deployment-specific acceptance.
