Troubleshooting
Troubleshoot discovery-to-library ingestion — Unified Discovery
Troubleshoot failed, duplicated, partial, or unauthorized Library ingestion while reconciling provider records, exact source revisions, rights, and persisted artifacts.
Application: Unified Discovery
Integration boundary: Unified Discovery → Library
Knowledge-base classification: Troubleshooting / Source Ingestion / Research Data Integrity
Audience: Researchers, data stewards, support engineers, integration developers, QA engineers, and platform operators
Technical level: Intermediate to advanced
Reference environment: Python 3 standard library
Relevant specifications: HTTP Semantics (RFC 9110), Problem Details (RFC 9457), W3C PROV-O, and OWASP API Security
Primary outputs: Root-cause assessment, source reconciliation, safe recovery decision, regression evidence, and incident receipt
Estimated reading time: 15–19 minutes; 35–45 minutes including exercises
1. Recognize the ingestion defect
Discovery-to-Library ingestion fails when a selected source cannot be transferred into a correctly identified, authorized, persistent Library record while preserving the original provider reference, source revision, metadata, rights, and provenance.
Failures can occur before, during, or after persistence.
Typical symptoms include:
- A selected discovery result cannot be imported.
- The original provider reference no longer resolves.
- A Library record appears but contains incorrect source metadata.
- Import reports success, but no record exists after reloading.
- Multiple Library records are created from one repeated request.
- The imported record points to the wrong provider resource.
- A newer provider revision silently replaces an earlier accepted revision.
- Metadata-only permission is mistaken for permission to download full content.
- The record is stored under the wrong project or organization.
- A private record becomes visible to an unauthorized user.
- Provenance or source relationships disappear after persistence.
- An ingestion timeout leaves an unknown commit state.
- A draft record appears as reviewed, approved, or public.
- A dependent Research or Workbench operation cannot resolve the imported source.
Primary acceptance condition: The original provider reference remains resolvable to the intended source, and the persisted Library record retains its correct identity, revision, rights, ownership, and provenance.
A successful HTTP response does not, by itself, establish that this condition has been met.
2. Classify the failure before acting
| Failure | Typical cause | First diagnostic check |
|---|---|---|
| Source not found | Incorrect identifier, removed record, or unsupported provider | Inspect original provider and record ID |
| Resolution mismatch | Wrong redirect, canonical reference, or source mapping | Compare returned provider identity |
| Authentication failure | Missing or expired authenticated session | Check trusted identity status |
| Authorization failure | Wrong tenant, project, role, or permissions | Verify ownership and authorized action |
| Rights rejection | Requested storage exceeds permitted use | Inspect source license and ingestion mode |
| Revision conflict | Provider or Library version differs from expected revision | Compare source and stored versions |
| Schema error | Missing or incompatible required fields | Validate request and normalized metadata |
| Duplicate import | Missing idempotency or uniqueness enforcement | Inspect operation and existing record identity |
| Partial persistence | Transaction, storage, or dependent write failure | Determine last durable operation state |
| Missing provenance | Source relationship or ingestion activity not committed | Inspect persisted lineage |
| Stale user interface | Old cache, index, or browser state | Compare authoritative backend with displayed record |
| Incorrect publication state | Invalid transition or authorization defect | Inspect actual stored review and visibility state |
Multiple defects can coexist. For example, an expired session may prevent a read after an import was successfully committed, making a valid Library record appear missing.
Determine the actual failure layer before retrying or restoring anything.
3. Follow the diagnostic sequence
- Identify the operation. Record the source, provider, ingestion mode, request identifier, and reported outcome.
- Verify the authenticated context. Confirm the organization, project, trusted principal, and operation permission.
- Preserve existing evidence. Retain sanitized request information, trace IDs, source references, and operation receipts.
- Check operation state. Determine whether the original write is pending, rejected, committed, or unresolved.
- Resolve the source identity. Compare the provider, record identifier, expected revision, and authoritative reference.
- Check rights. Confirm that the selected ingestion mode is permitted.
- Inspect schema mapping. Validate source metadata and normalized Library fields.
- Inspect persistent state. Query the authoritative Library record through an approved read operation.
- Check duplication and revisions. Look for existing records and idempotency conflicts before attempting a retry.
- Verify provenance. Ensure the original source relationship is preserved.
- Inspect downstream state. Identify affected indexes, research objects, or analytical dependencies.
- Recover and retest. Apply only authorized, appropriately scoped corrections.
Safety rule: Never repeat an ingestion write merely because the client did not receive a successful response. The operation may already have committed.
4. Establish the correct ownership and authorization context
Before investigating missing records, distinguish the user-facing session from the authoritative backend identity and project scope.
Confirm:
- The authenticated principal.
- The organization’s authoritative identifier.
- The project or workspace ownership relationship.
- The permitted ingestion mode.
- The source’s actual access restrictions.
- The service identity used for internal requests, if applicable.
- The destination Library collection or ownership scope.
A client-provided organization ID or Boolean authorization flag is not sufficient proof of permission.
Object-level and tenant-level authorization must be enforced by trusted server-side code.
Do not attempt to troubleshoot missing access by guessing another organization’s identifiers or directly accessing its protected objects.
5. Verify the original provider reference
The most important scientific identity check is that the imported Library record continues to reference the intended authoritative source.
For example:
Provider:
fixture-provider
Original provider record:
record-017
Expected revision:
v1
Original reference:
https://example.org/record-017
Library source reference:
https://example.org/record-017
These values are synthetic.
In a real integration, a matching URL string is only one part of the verification.
Inspect the actual provider response and verify:
- Provider identity.
- Provider record identifier.
- Canonical identifier or landing-page reference.
- Expected source revision.
- Returned metadata identity.
- Resolution or redirect status.
- Actual retrieval or validation time.
A reference may return HTTP 200 yet resolve to an unrelated resource.
Do not mark provider resolution as passed until the returned identity is reconciled with the intended source.
5.1 Source-resolution outcomes
| Outcome | Interpretation | Action |
|---|---|---|
| Matching identity and revision | Source identity verified for the checked representation | Continue with metadata and rights reconciliation |
| Different identity | Potential incorrect source or redirect | Reject and investigate |
| Different revision | Provider content changed or the version mapping is wrong | Preserve original revision; investigate relationship |
| Provider unavailable | External dependency cannot be checked | Record Not Tested; retain evidence |
| Permission denied | Current identity cannot access the source | Review legitimate access; do not bypass |
| Archived reference | Historical representation may remain available | Preserve archival provenance and disclose limitations |
Provider outages do not automatically invalidate historical research sources. They do, however, prevent a new live-resolution acceptance claim unless an approved alternative verification process applies.
6. Diagnose metadata and schema mismatches
The discovery provider and Library may use different metadata schemas.
Check that required mappings preserve the original meaning of each field.
| Field | Potential defect |
|---|---|
| Title | Wrong title or a title from another source revision |
| Creators | Missing, reordered, or misidentified contributors |
| Publisher | Provider incorrectly substituted for publisher |
| Source identifier | Local Library ID substituted for authoritative identifier |
| Publication date | Retrieval date substituted for publication date |
| Revision | New version substituted without an explicit version relationship |
| License | Unknown rights incorrectly described as unrestricted |
| Resource type | Dataset, article, software, or report misclassified |
| Source URL | Original reference replaced with an unrelated destination |
Compare the actual provider representation with the stored Library record. Do not silently populate missing scientific metadata using guesses or generated descriptions.
7. Diagnose rights and ingestion-mode failures
Discovery availability does not establish unrestricted storage or reuse rights.
Distinguish:
- Reference-only retention.
- Permitted metadata storage.
- Full-content acquisition.
- Internal sharing.
- Analytical processing.
- Public redistribution.
Each action may require a separate rights decision.
If metadata-only ingestion is permitted but full-content storage is not, the correct recovery may be to retain the permitted metadata without copying the source bytes.
If metadata retention itself is prohibited, do not attempt to bypass the restriction by changing the ingestion mode or removing the rights field.
Rights decisions require actual license or authorization evidence, not merely a provider’s technical ability to return data.
8. Diagnose revision conflicts
A source revision conflict arises when the requested source version differs from the version available through the provider or stored in Library.
Requested source:
record-017 / v1
Current provider source:
record-017 / v2
Stored Library source:
record-017 / v1
The previously imported v1 record may be valid historical evidence. It should not be silently overwritten with v2.
Determine whether the operation intends to:
- Retrieve the original v1 source.
- Register a new v2 source revision.
- Create a version relationship.
- Update a draft source reference under an authorized workflow.
- Preserve an existing accepted analytical dependency.
Revisions used by accepted research outputs should remain identifiable and reproducible.
9. Diagnose duplicate requests and idempotency failures
Idempotency determines whether retrying an ingestion operation creates an additional effect.
Common situations include:
| Operation state | Appropriate response |
|---|---|
| Confirmed rejected, no commit | Correct the defect before a new authorized attempt |
| Confirmed committed | Retrieve the existing Library record |
| Same idempotency key and same request | Return original result under documented contract |
| Same key, different request | Reject as conflict |
| Pending operation | Read operation status; do not issue an uncontrolled new write |
| Unknown commit state | Reconcile database and operation records before retry |
Production idempotency should be enforced by database constraints and transactional operation records, not simply a client-side button or in-memory dictionary.
Two requests with different idempotency keys may still refer to the same provider source. Source-identity uniqueness and idempotent request processing should be evaluated separately.
10. Diagnose partial persistence
A real ingestion workflow may create multiple related records:
Library record
+
Source reference
+
Rights decision
+
Provenance relationship
+
Audit receipt
A partial failure may leave some components committed and others missing.
Determine which operations were durable before attempting recovery.
For operations contained entirely within one transactional database, the implementation should maintain an appropriate atomic commit boundary.
For workflows involving both database and external object storage, an additional staged or compensating-operation design may be required.
Do not mark ingestion complete when mandatory provenance or rights information has failed to persist.
11. Distinguish backend persistence from interface state
A source may appear missing because the interface has not refreshed or because the current user no longer has access.
Check the authoritative backend separately from the browser view.
For an authorized owner, verify that the record survives:
- Page reload.
- Logout and reauthentication.
- Application restart.
- Reopening the source from its saved Library identifier.
- Switching between supported application views.
Also verify that a second, unauthorized owner cannot retrieve the record.
A cached frontend result is not evidence that the Library database committed the source. Conversely, a missing interface item does not prove the database record was lost.
12. Build a synthetic diagnostic fixture
This reference exercise tests an original source against a local Library record.
| Property | Value |
|---|---|
| Provider | fixture-provider |
| Provider record | record-017 |
| Source revision | v1 |
| Source URL | https://example.org/record-017 |
| Tenant | synthetic-tenant |
| Rights | Metadata permitted under synthetic policy |
| Library visibility | Private |
| Review state | Draft |
All records and permissions are synthetic. The exercise makes no provider network requests or production changes.
13. Implement the diagnostic reference module
Create the local environment:
mkdir ingestion-troubleshooting
cd ingestion-troubleshooting
python3 -m venv .venv
source .venv/bin/activate
python --version
Save as ingest_diag.py.
from dataclasses import dataclass
from enum import Enum
class State(str, Enum):
COMMITTED = "committed"
PENDING = "pending"
NOT_FOUND = "not_found"
CONFLICT = "conflict"
@dataclass(frozen=True)
class Source:
provider: str
record_id: str
revision: str
reference: str
metadata_rights: bool
@dataclass(frozen=True)
class LibraryRecord:
tenant: str
provider: str
record_id: str
revision: str
reference: str
visibility: str = "private"
review: str = "draft"
def diagnose(
source,
library,
*,
authorized,
operation_state=State.COMMITTED,
provider_response=None
):
# The authorization argument models
# a trusted decision in this fixture.
if not authorized:
return "ACCESS_DENIED"
if operation_state == State.PENDING:
return "OPERATION_PENDING_CHECK_STATUS"
if operation_state == State.CONFLICT:
return "IDEMPOTENCY_CONFLICT"
if (
operation_state == State.NOT_FOUND
or library is None
):
return "LIBRARY_RECORD_MISSING"
if not source.metadata_rights:
return "RIGHTS_NOT_GRANTED"
if not all((
source.provider,
source.record_id,
source.revision,
source.reference
)):
return "SOURCE_METADATA_INCOMPLETE"
if library.tenant != "synthetic-tenant":
return "TENANT_MISMATCH"
if (
library.provider,
library.record_id
) != (
source.provider,
source.record_id
):
return "SOURCE_IDENTITY_MISMATCH"
if library.revision != source.revision:
return "SOURCE_REVISION_CONFLICT"
if library.reference != source.reference:
return "REFERENCE_MISMATCH"
if (
library.visibility != "private"
or library.review != "draft"
):
return "UNAPPROVED_STATE"
# None means no resolution has been tested.
if provider_response is None:
return "RESOLUTION_NOT_TESTED"
if provider_response == "unavailable":
return "PROVIDER_UNAVAILABLE"
# Compare the fixture resolver's returned
# authoritative identity and revision.
if provider_response != (
source.provider,
source.record_id,
source.revision
):
return "PROVIDER_IDENTITY_MISMATCH"
return "SYNTHETIC_RECONCILIATION_PASS"
SOURCE = Source(
provider="fixture-provider",
record_id="record-017",
revision="v1",
reference="https://example.org/record-017",
metadata_rights=True
)
LIBRARY = LibraryRecord(
tenant="synthetic-tenant",
provider="fixture-provider",
record_id="record-017",
revision="v1",
reference="https://example.org/record-017"
)
if __name__ == "__main__":
result = diagnose(
SOURCE,
LIBRARY,
authorized=True,
provider_response=(
SOURCE.provider,
SOURCE.record_id,
SOURCE.revision
)
)
print(result)
This module deliberately returns a diagnostic classification rather than automatically correcting a Library record.
It demonstrates why authorization, operation state, source rights, source identity, revision, and provider resolution must be checked independently.
Its tenant value and trusted authorization flag are fixture assumptions. They are not substitutes for production authentication or cross-tenant security.
The simulated provider response is not proof that an external provider is reachable.
14. Run the reference diagnostic
python ingest_diag.py
Expected output:
SYNTHETIC_RECONCILIATION_PASS
This means that the synthetic source and Library record agree under the fixture assumptions.
It does not establish real provider resolution, durable database persistence, actual rights permission, or scientific source validity.
If the provider response is omitted, the diagnostic returns:
RESOLUTION_NOT_TESTED
This prevents an unperformed provider check from being silently represented as successful.
15. Implement regression and negative tests
Save as test_ingest_diag.py.
import unittest
from dataclasses import replace
from ingest_diag import (
SOURCE,
LIBRARY,
State,
diagnose
)
class DiagnosticTests(unittest.TestCase):
def check(
self,
expected,
source=SOURCE,
library=LIBRARY,
**kwargs
):
actual = diagnose(
source,
library,
authorized=True,
**kwargs
)
self.assertEqual(actual, expected)
def test_fixture(self):
self.check(
"SYNTHETIC_RECONCILIATION_PASS",
provider_response=(
"fixture-provider",
"record-017",
"v1"
)
)
def test_no_live_check(self):
self.check("RESOLUTION_NOT_TESTED")
def test_denied(self):
self.assertEqual(
diagnose(
SOURCE,
LIBRARY,
authorized=False
),
"ACCESS_DENIED"
)
def test_pending(self):
self.check(
"OPERATION_PENDING_CHECK_STATUS",
operation_state=State.PENDING
)
def test_conflict(self):
self.check(
"IDEMPOTENCY_CONFLICT",
operation_state=State.CONFLICT
)
def test_missing(self):
self.check(
"LIBRARY_RECORD_MISSING",
library=None
)
def test_rights(self):
self.check(
"RIGHTS_NOT_GRANTED",
source=replace(
SOURCE,
metadata_rights=False
)
)
def test_metadata(self):
self.check(
"SOURCE_METADATA_INCOMPLETE",
source=replace(
SOURCE,
reference=""
)
)
def test_tenant(self):
self.check(
"TENANT_MISMATCH",
library=replace(
LIBRARY,
tenant="different"
)
)
def test_identity(self):
self.check(
"SOURCE_IDENTITY_MISMATCH",
library=replace(
LIBRARY,
record_id="other"
)
)
def test_revision(self):
self.check(
"SOURCE_REVISION_CONFLICT",
library=replace(
LIBRARY,
revision="v2"
)
)
def test_url(self):
self.check(
"REFERENCE_MISMATCH",
library=replace(
LIBRARY,
reference=(
"https://example.org/other"
)
)
)
def test_state(self):
self.check(
"UNAPPROVED_STATE",
library=replace(
LIBRARY,
visibility="public"
)
)
def test_provider_down(self):
self.check(
"PROVIDER_UNAVAILABLE",
provider_response="unavailable"
)
def test_provider_mismatch(self):
self.check(
"PROVIDER_IDENTITY_MISMATCH",
provider_response=(
"fixture-provider",
"different",
"v1"
)
)
if __name__ == "__main__":
unittest.main()
16. Execute and interpret the tests
python -m unittest -v test_ingest_diag.py
The reference suite contains fifteen tests.
Its checks include:
- Correct synthetic source reconciliation.
- Unperformed provider resolution.
- Authorization denial.
- Pending operations.
- Idempotency conflicts.
- Missing Library records.
- Rights denial.
- Incomplete source metadata.
- Wrong tenant identity.
- Wrong provider record identity.
- Revision mismatch.
- Reference mismatch.
- Invalid publication state.
- Unavailable provider.
- Provider identity mismatch.
Reference execution evidence: The fifteen tests were executed locally using Python’s unittest framework and all passed. This verifies the self-contained diagnostic fixture only. It does not certify production authorization, live provider resolution, database persistence, or the actual Sustainable Catalyst integration.
17. Test actual integration boundaries
When the deployed source code and staging interfaces are available, run integration tests against the real service contracts.
| Scenario | Expected behavior |
|---|---|
| Valid authorized import | Correct Library identity and provenance persisted |
| Original source resolution | Actual provider returns intended identity and revision |
| Wrong tenant | Protected source access denied |
| Revoked permission | Further protected access denied |
| Missing metadata rights | Import rejected or held for review |
| Source revision conflict | No silent overwrite of accepted revision |
| Duplicate request | Original operation reconciled without unintended duplicate |
| Concurrent duplicate writes | Transactional uniqueness and idempotency maintained |
| Database commit failure | Rollback or documented recovery state |
| Object-storage failure | No falsely accepted incomplete record |
| Provider timeout | Failure distinguished from missing source |
| Unsafe URL or redirect | Unapproved destination blocked |
| Session reload | Authorized owner retrieves same persistent record |
| Second-owner access | Private record cannot be read by unrelated owner |
| Publication transition | Draft remains private unless separately approved |
Use disposable storage, synthetic identities, approved provider fixtures, and isolated network environments for potentially destructive or adversarial testing.
Do not mount production databases or content volumes into an untrusted test environment.
18. Interpret API errors and trace evidence
| HTTP status | Potential meaning | Safe response |
|---|---|---|
| 400 | Malformed or invalid request | Inspect schema and required fields |
| 401 | Authentication unavailable or invalid | Restore trusted authentication |
| 403 | Requested access prohibited | Review legitimate permissions |
| 404 | Source or Library object unresolved | Confirm identifier, scope, and endpoint |
| 409 | Version or operation conflict under the API contract | Inspect committed state before retry |
| 422 | Payload validation failed where the API uses this status | Inspect normalized field requirements |
| 429 | Rate limiting | Respect provider retry policy |
| 500–503 | Server or dependency failure | Preserve trace; inspect transaction state |
| 504 | Gateway timeout | Determine whether an underlying operation completed |
These are common interpretations, not a verified list of deployed Sustainable Catalyst error codes.
Use nonsecret trace or correlation IDs to link requests, service logs, provider calls, and database outcomes.
RFC 9457 defines a machine-readable structure for API problem details. Actual fields and error mappings must be confirmed against the implemented service.
19. Recover from partial and ambiguous failures
Recovery must depend on the operation’s last known durable state.
| Failure point | Recommended recovery principle |
|---|---|
| Before authentication | Reject; do not create a record |
| After authorization denial | Preserve limited audit evidence without unauthorized mutation |
| During provider resolution | Record unresolved source state; do not fabricate identity |
| During rights evaluation | Reject unpermitted operation |
| Before database commit | Rollback applicable transaction |
| After commit, before response | Retrieve committed outcome using documented operation identity |
| Content uploaded but metadata failed | Quarantine or reconcile orphaned content under approved policy |
| Provenance write failed | Do not mark import accepted until required lineage is recovered |
| Cache shows obsolete result | Compare authoritative state before scoped cache invalidation |
| Source revision changed | Preserve accepted version and establish explicit new-version relationship |
Do not perform broad production cache clearing, destructive database correction, or backup restoration without authorization, impact assessment, and a tested recovery plan.
Retain historical source records where required for reproducibility, retention, or legal obligations.
20. Maintain scientific and institutional provenance
A corrected ingestion must retain the relationship between the original source and the Library representation.
W3C PROV provides a model for representing source entities, processing activities, and responsible agents.
Relevant records include:
- The authoritative provider source and revision.
- The ingestion activity.
- The responsible authenticated role.
- The rights decision.
- The resulting Library record and revision.
- The associated project or research workspace.
- Any subsequent corrections or version transitions.
Do not modify provider metadata to conceal an ingestion defect.
Preserve the original and corrected states where scientific auditability requires them.
Provenance verifies lineage and accountability; it does not establish that the original source’s scientific claims are correct.
21. Create a sanitized incident receipt
A complete troubleshooting case should preserve the failure, confirmed root cause, corrective action, and independently checked outcome.
Illustrative JSON:
{
"schema_version": "example-1.0",
"case_id": "synthetic-ingestion-001",
"capability": "discovery_to_library_ingestion",
"classification": "synthetic",
"source": {
"provider_id": "fixture-provider",
"record_id": "record-017",
"revision": "v1",
"reference": "https://example.org/record-017"
},
"operation": {
"operation_id": "synthetic-operation-001",
"ingestion_mode": "metadata_only",
"commit_state": "not_verified",
"idempotency_state": "not_verified"
},
"diagnosis": {
"failure_class": "source_revision_conflict",
"root_cause_confirmed": false
},
"acceptance": {
"provider_resolution": "not_tested",
"metadata_integrity": "not_tested",
"rights": "not_tested",
"trusted_authorization": "not_tested",
"revision_integrity": "not_tested",
"idempotency": "not_tested",
"database_persistence": "not_tested",
"provenance": "not_tested",
"cross_tenant_isolation": "not_tested",
"browser_acceptance": "not_tested"
},
"publication_approval": false,
"release_decision": "NO_GO"
}
Replace placeholder states only with executed and reviewed evidence.
The example is not a deployed Sustainable Catalyst API response or authoritative incident schema.
22. Technical acceptance matrix
| Criterion | Pass condition | Evidence |
|---|---|---|
| Operation identity | Original request and operation state established | Operation receipt |
| Authentication | Trusted principal identified | Authenticated integration test |
| Tenant authorization | Correct organization and project scope enforced | Cross-owner negative tests |
| Provider resolution | Original reference resolves to intended source | Actual provider-response evidence |
| Source identity | Provider and record identifiers reconcile | Identity comparison |
| Revision integrity | Requested and persisted versions match intended source | Revision audit |
| Rights | Requested mode permitted under actual source conditions | Rights decision |
| Metadata mapping | Required source fields preserved correctly | Field-level reconciliation |
| Idempotency | Retries and conflicts handled without unintended duplication | Concurrent and replay tests |
| Persistence | Committed record survives supported boundaries | Database and restart tests |
| Provenance | Source and ingestion relationships remain reconstructable | Lineage record |
| Recovery | Partial failures reconciled without data loss or unauthorized mutation | Recovery receipt |
| Publication boundary | Draft not silently promoted to public or approved state | State-transition test |
| Scientific integrity | Affected downstream research sources identified | Dependency assessment |
| Runtime acceptance | Real deployed behavior verified | API and browser evidence |
Acceptance rule: Record each criterion as Pass, Fail, Not Tested, or Not Applicable where appropriate. A required unresolved criterion prevents declaring the ingestion defect fully resolved.
23. Sustainable Catalyst cross-application responsibilities
Discovery-to-Library ingestion defects can affect downstream research workflows.
| Application | Intended responsibility |
|---|---|
| Unified Discovery | Preserve provider identity, discovery state, and source-selection context |
| Library | Own governed source records, metadata, source revisions, and provenance |
| Platform Core | Supply trusted identity and authorization boundaries |
| Workspace | Track project ownership, ingestion incidents, and affected research dependencies |
| Workbench | Resolve authorized versioned Library artifacts for analysis where implemented |
| Research Lab | Assess scientific implications of incorrect or missing source evidence |
| Site Intelligence | Preserve geographic, acquisition, and provider metadata for spatial sources |
| Decision Studio | Identify models or scenarios dependent on affected source revisions |
| Research | Assess correction requirements for published outputs using affected sources |
These describe intended architectural responsibilities rather than verified deployed integrations.
24. Source audit required for production certification
Before certifying an ingestion troubleshooting procedure against the deployed platform, inspect:
- Actual owning repositories and exact commits.
- Deployed Discovery and Library API contracts.
- Provider adapter and source-resolution implementation.
- Authentication and project-ownership boundaries.
- Rights and licensing enforcement.
- Metadata mapping and schema versions.
- Database and content-storage models.
- Transaction and idempotency behavior.
- Source uniqueness and revision constraints.
- Provenance and audit-event storage.
- Cache and index synchronization.
- Executed negative and concurrency tests.
- Cross-owner isolation evidence.
- Actual provider-resolution receipts.
- Authenticated browser acceptance.
- Database migration and recovery evidence.
- Known production limitations.
Attach the real source paths, implementation revisions, deployed image identifiers, and test receipts before describing any specific endpoint, recovery control, or interface action as verified.
25. Escalation criteria
Escalate immediately if:
- A private research source is exposed across tenant boundaries.
- An ingestion operation copied content without the required rights.
- A provider reference resolves to an unrelated research object.
- An accepted source revision was overwritten without an authorized version transition.
- Repeated writes created inconsistent or duplicate records.
- Persistent storage or provenance was lost.
- An ingestion defect affected a published scientific result.
- Recovery requires destructive production database or storage changes.
When necessary, suspend the affected ingestion, analysis, or publication workflow while preserving the last accepted state and audit evidence.
Escalate sanitized evidence to the responsible component owner. Avoid sharing private source content, credentials, secrets, or protected research identifiers publicly.
26. Technical references
- Fielding, R., Nottingham, M. and Reschke, J. (2022). HTTP Semantics. RFC 9110. Available at: RFC 9110.
- Nottingham, M., Wilde, E. and Dalal, S. (2023). Problem Details for HTTP APIs. RFC 9457. Available at: RFC 9457.
- World Wide Web Consortium (W3C) (2013). PROV-O: The PROV Ontology. Available at: W3C PROV-O.
- DataCite Metadata Working Group (n.d.). DataCite Metadata Schema. Available at: DataCite.
- OWASP Foundation (2023). API Security Top 10. Available at: OWASP API Security.
- OWASP Foundation (n.d.). Server-Side Request Forgery Prevention Cheat Sheet. Available at: OWASP Cheat Sheet Series.
- Python Software Foundation (n.d.). dataclasses — Data Classes. Available at: Python documentation.
- Python Software Foundation (n.d.). unittest — Unit Testing Framework. Available at: Python documentation.
- PostgreSQL Global Development Group (n.d.). Transaction Isolation. Available at: PostgreSQL documentation.
27. Completion and verification record
| Field | Required evidence |
|---|---|
| Incident identifier | Unique diagnostic reference |
| Original operation | Request identifier, mode, and last durable state |
| Provider identity | Authoritative provider and record identifier |
| Source revision | Expected and actual revisions |
| Original reference resolution | Pass, Fail, or Not Tested with actual evidence |
| Metadata integrity | Pass, Fail, or Not Tested |
| Rights | Approved, Rejected, or Pending |
| Authorization | Pass, Fail, or Not Tested |
| Tenant isolation | Pass, Fail, or Not Tested |
| Idempotency | Pass, Fail, or Not Tested |
| Library persistence | Pass, Fail, or Not Tested |
| Provenance | Pass, Fail, or Not Tested |
| Recovery action | Actual authorized correction and execution receipt |
| Regression tests | Executed test results and code revision |
| Runtime acceptance | Actual deployed API and browser observations |
| Scientific impact | Assessment of affected analysis and publications |
| Reviewer | Actual reviewer and date |
| Outstanding limitations | Unresolved technical, rights, security, or scientific risks |
Completion criterion: A discovery-to-Library ingestion defect is resolved when the original provider source and intended revision have been independently identified, required metadata and rights are preserved, the Library record exists under correct ownership and authorization controls, retries and partial failures are safely reconciled, provenance remains intact, and all applicable integration and recovery acceptance criteria pass.
Scientific limitation: Correct ingestion and provenance do not prove scientific validity. The source’s methods, observations, uncertainties, and suitability for research must be evaluated separately.
Current implementation status: Technical troubleshooting procedure, source-resolution decision matrix, rights and revision checks, synthetic Python diagnostic model, fifteen locally executed passing unit tests, recovery requirements, and proposed acceptance criteria documented. No particular Sustainable Catalyst Unified Discovery-to-Library connector, durable storage system, production provider resolver, or authenticated ingestion workflow is certified without implementation-specific source audit and actual integration acceptance.
