Troubleshooting
Troubleshoot cross-provider search — Unified Discovery
Troubleshoot federated search failures caused by provider outages, incompatible queries, missing permissions, stale caches, incomplete responses, or incorrect deduplication.
Application: Unified Discovery
Cross-application area: Library / Research / Workspace / Research Lab / Workbench / Site Intelligence / Platform Core
Classification: Troubleshooting / Cross-Provider Search
Audience: Researchers, research librarians, data stewards, search engineers, backend developers, platform operators, and technical support personnel
Technical level: Intermediate to advanced
Reference environment: Python 3.10 or later; standard library
Relevant specifications: RFC 9110, RFC 9111, RFC 9457, W3C DCAT 3, W3C PROV-O, PRISMA-S, and OWASP SSRF Prevention guidance
Primary outputs: Provider-specific failure classification, authoritative execution record, provenance and source-identity reconciliation, controlled recovery decision, regression evidence, and scientific acceptance record
Estimated reading time: 20–25 minutes; 35–45 minutes including the exercises
1. Purpose and primary acceptance requirement
Cross-provider search compares research material returned by multiple permitted scientific catalogs, scholarly indexes, institutional repositories, and data services.
The workflow may fail because a source is unavailable, its query syntax differs, its metadata schema changes, permissions expire, a response is incomplete, or an intermediate service incorrectly merges or caches results.
The diagnostic question is:
Which provider, authorization, query, transformation, persistence, or discovery boundary failed, and can the resulting search record still be examined without misrepresenting its source identity, execution date, completeness, or scientific meaning?
Primary acceptance condition: Every retained result must identify its actual originating provider and the date of the provider search that produced it. Exact query execution, source identifiers, result completeness, and transformations must remain traceable.
Scientific relevance, provider availability, metadata completeness, and authorization are separate acceptance conditions.
2. Recognize typical symptoms
Common symptoms include:
- No results are returned despite known relevant material.
- One provider returns records while another returns an error.
- Provider authentication or API permissions are rejected.
- A search displays results from a previously cached request.
- The displayed search date is missing or incorrect.
- The same publication appears repeatedly under different provider records.
- Two distinct publications are incorrectly merged.
- A provider returns unexpected metadata fields or types.
- A search stops before all available result pages are retrieved.
- Provider rate limits or timeouts produce an incomplete result set.
- Results from different tenants appear in the same search.
- Provider-local identifiers disappear after normalization.
- Search results lose their source relationships when saved to Library.
- A result appears in Research without the original search provenance.
- Search rankings vary unexpectedly across providers.
- The UI reports success even though one or more upstream queries failed.
- Restricted source content appears in public output.
- A repeated import creates duplicate governed source records.
Begin by identifying the affected execution and provider rather than repeating the entire workflow without examining its recorded outcome.
3. Determine the failing service boundary
| Boundary | Typical defect | First diagnostic |
|---|---|---|
| Research request | Invalid query, filters, or project context | Inspect authorized request contract |
| Identity and permissions | Expired or missing authorization | Verify trusted role and provider access |
| Provider registry | Disabled or unconfigured provider | Inspect approved provider configuration |
| Query translation | Unsupported search syntax | Compare normalized and executed queries |
| Network and upstream service | Timeout, DNS, rate limit, or provider outage | Inspect sanitized transport outcome |
| Response parsing | Changed or malformed provider schema | Validate the versioned response contract |
| Normalization | Lost identifiers or incorrect metadata | Compare source and normalized records |
| Deduplication | False merge or missed duplicate | Inspect identity matching decisions |
| Cache | Stale or unauthorized representation | Compare original search and cache timestamps |
| Persistence | Saved results missing or duplicated | Read authoritative saved state |
| Library and Research handoff | Provenance or rights information lost | Compare originating and receiving records |
| Public disclosure | Protected metadata or content exposed | Test access and publication boundaries |
The visible interface may not identify the failing component correctly. Compare its status with authoritative service and execution records.
4. Diagnose in a controlled order
- Identify the search. Record the execution or correlation identifier and affected research project.
- Confirm authorization. Verify authenticated actor, tenant, project, and permitted providers.
- Inspect the request. Reconcile the research query, filters, expected providers, and result limits.
- Inspect each provider execution. Identify the exact executed query, search timestamp, completion state, and sanitized failure code.
- Check upstream failures. Distinguish denied access, rate limiting, timeout, transport failure, and valid empty results.
- Validate source identity. Compare original provider records with normalized results.
- Inspect query translation and schemas. Confirm supported fields, mappings, and adapter revisions.
- Reconcile pagination. Determine whether all required result pages were retrieved.
- Inspect deduplication. Verify that independent source occurrences remain preserved.
- Check cache provenance. Distinguish original execution, retrieval, and cache validation times.
- Verify saved-state persistence. Read Library or Research records independently where a save or handoff occurred.
- Assess scientific relevance. Determine whether the retained evidence satisfies the research question and search scope.
- Recover narrowly. Correct the responsible component without rewriting historical search evidence.
- Repeat acceptance. Include negative cases and cross-tenant security checks.
Preserve the original execution record even when a corrected search is performed.
5. Verify provider configuration and authorization
Different providers may have different access controls, credentials, licensing conditions, and supported operations.
Check:
- Whether the provider is enabled in the approved registry.
- Whether the requested operation is supported.
- Whether its access configuration is current.
- Whether the authenticated user or service is permitted to use it.
- Whether provider quotas or limits apply.
- Whether the provider permits retention and redistribution of its results.
- Whether the correct tenant and project context were supplied through trusted authorization.
Never print API tokens or service credentials into troubleshooting output.
Do not bypass a provider’s rejected authorization by substituting another user’s credentials.
6. Diagnose query translation failures
A normalized discovery query may be transformed into different provider-specific requests.
For example:
Research topic:
Enhanced rock weathering in agricultural soils
Provider A:
"enhanced rock weathering" AND soil
Provider B:
("enhanced weathering" OR "rock weathering")
AND agriculture
Provider C:
Topic: rock weathering
Domain: agricultural research
These examples are illustrative rather than executed queries.
When one provider returns unexpectedly few results, compare:
- The original research question.
- The normalized query.
- The exact executed provider query.
- Applied date, language, subject, and geographic filters.
- Field-specific search behavior.
- Supported wildcards, quotation, and Boolean syntax.
- Connector and query translation versions.
Do not assume that equal-looking queries have equivalent semantics across providers.
7. Distinguish zero results from a failed search
The following outcomes have different meanings:
| Outcome | Interpretation | Required handling |
|---|---|---|
| Complete search, zero matches | No records matched the submitted query within the provider’s searched scope | Record valid empty result and execution provenance |
| Partial search | Some results were retrieved but required work was unfinished | Preserve results with explicit partial status |
| Failed search | The search did not complete successfully | Record typed failure without claiming zero matches |
| Denied search | Access restrictions prevented the operation | Respect authorization boundary |
| Provider not configured | Connector was unavailable | Record configuration limitation |
| Cached result | Previous search representation reused | Preserve original execution and disclose cache status |
A provider outage is not evidence that the relevant scientific literature or data do not exist.
8. Diagnose pagination and partial retrieval
Many source services return results in pages or bounded batches.
Inspect:
- Requested page size or result limit.
- Returned record count.
- Next-page token or cursor.
- Reported total count, if available.
- Completed page count.
- Any interrupted requests.
- Rate-limit or timeout events.
- Whether the client honored provider-specific pagination semantics.
A full page of results does not necessarily mean pagination is complete.
Conversely, a reported total count may be approximate, stale, or subject to provider-specific interpretation.
Only mark the execution complete when the provider’s actual pagination contract and configured search scope have been satisfied.
9. Diagnose provider rate limits and timeouts
Provider requests may fail temporarily because of rate limits, service overload, network interruptions, or scheduled maintenance.
For relevant HTTP APIs, inspect:
- HTTP status and provider-specific error code.
- Request timing and timeout phase.
- Rate-limit headers where supplied.
Retry-Afterwhere applicable.- Retry count and cumulative request budget.
- Whether partial results were already accepted.
Use bounded retries and provider-approved backoff behavior.
Do not continue retrying an upstream service indefinitely.
A timeout does not prove that an upstream service performed no work, particularly when the request also triggers a state-changing operation.
10. Diagnose metadata schema changes
Provider APIs may change their response structure or omit previously available metadata.
Common defects include:
- Missing source identifiers.
- Changed date formats.
- Unexpected arrays or nested objects.
- Renamed fields.
- New source-type values.
- Invalid or missing pagination cursors.
- Changed rights or licensing fields.
- Unexpected null values.
Compare the actual response against the versioned provider adapter contract.
Preserve a sanitized or otherwise authorized diagnostic representation. Do not publish restricted provider payloads.
Do not force invalid data into the normalized schema by inventing required values.
11. Preserve provider identity and original source identifiers
Every result must retain a resolvable relationship to its originating provider execution.
Required evidence includes:
- Provider identifier.
- Execution identifier.
- Provider-local record identifier.
- Actual provider search date.
- Connector and normalization revisions.
- Persistent external identifier, if available.
- Original source version where supplied.
When a record lacks a persistent identifier, preserve its provider-local identity rather than generating an invented DOI or other external identifier.
A title alone is not sufficient for authoritative scholarly identity.
12. Diagnose stale search dates and cache behavior
Search provenance must distinguish several temporal concepts.
| Timestamp | Meaning |
|---|---|
| Search execution | When a request was executed against the provider |
| Response retrieval | When the response was received |
| Cache insertion | When a representation was stored locally |
| Cache validation | When stored content was checked under the applicable cache contract |
| Source publication | When the underlying research output was published |
| Scientific observation | When the underlying measurements or observations occurred |
RFC 9111 describes HTTP caching, freshness, validation, and the Age and Vary mechanisms.
A cache hit must not replace the original provider execution timestamp with the current display time.
If the system performs a new provider search, record a distinct search execution rather than rewriting the earlier one.
Do not use application cache freshness as proof that the underlying scientific observations are current.
13. Diagnose duplicate and incorrectly merged results
Two providers may return the same publication with different local identifiers.
Provider A
Local ID A-17
|
v
Persistent identifier X
^
|
Local ID B-44
Provider B
A valid deduplication process may group these occurrences while preserving both source records.
Common defects include:
- Merging records with only similar titles.
- Combining preprints and published articles without distinguishing versions.
- Treating dataset distributions as independent datasets.
- Discarding the source provider after merging.
- Losing one provider’s execution date.
- Duplicating the same provider-local occurrence after retry.
Inspect the deduplication rule, normalization method, source versions, and original occurrences.
Where identity remains uncertain, preserve separate records or an explicit unresolved relationship.
14. Diagnose inconsistent ranking and relevance
Different providers may use incompatible relevance scoring systems.
A score of 0.85 from one index may not have the same meaning as 0.85 from another.
When rankings appear inconsistent, examine:
- Provider-native scoring definitions.
- Normalization and calibration methods.
- Missing metadata.
- Provider weighting.
- Query-specific ranking behavior.
- Source-type differences.
- Ranking model or algorithm revisions.
Do not equate high ranking with scientific reliability.
Scientific relevance should be evaluated against the research question and documented eligibility criteria.
15. Diagnose rights and source-use failures
Search providers may permit discovery while restricting full-text access, caching, redistribution, or further analysis.
Check the authorized scope for:
- Metadata searching.
- Result-summary retrieval.
- Full-text or dataset downloading.
- Storage and caching.
- Computational processing.
- Sharing within a research project.
- Public redistribution.
Do not interpret an accessible URL as permission to redistribute the resource.
If rights cannot be established for the requested operation, hold the affected operation rather than silently broadening permission.
16. Diagnose cross-tenant or private-data exposure
Search and cache services must respect trusted authorization boundaries.
Potential risks include:
- A cached response reused across incompatible user scopes.
- Provider credentials shared outside their authorized context.
- Saved queries becoming visible to unrelated projects.
- Private search results appearing in a public Research index.
- Metadata exports leaking restricted source details.
- Project identifiers accepted without server-side ownership checks.
Test authorization using separate synthetic identities and projects.
Never use another tenant’s real research material as a negative-test fixture.
For suspected public disclosure, follow the institutional security and privacy incident process rather than treating the problem as an ordinary UI defect.
17. Diagnose unsafe provider redirects and outbound requests
Provider adapters make outbound network requests. Untrusted URLs or redirects can introduce server-side request forgery and credential-exposure risks.
Inspect:
- Approved provider origin configuration.
- Permitted URL schemes and ports.
- DNS and connection-target validation.
- Private, loopback, link-local, and metadata-service address restrictions.
- Redirect handling and revalidation.
- Credential forwarding policy.
- Timeout and response-size limits.
Do not retry a blocked request by disabling outbound network protections.
Refer to OWASP SSRF prevention guidance for applicable defenses.
18. Diagnose Library and Research persistence failures
Provider search, saving a source, and importing evidence into Research are distinct operations.
If a saved result is missing or incomplete, determine whether:
- The save command was authorized.
- The authoritative source identity was resolved.
- The write completed.
- A duplicate record already existed.
- Its revision matched the expected state.
- Provider and search-date provenance persisted.
- Rights restrictions were retained.
- The saved record can be read after reauthentication.
Do not retry state-changing requests blindly after a timeout.
Where supported, use stable idempotency identifiers and expected-revision controls.
Preserve the original discovery event even when the downstream source record is corrected or updated.
19. Use explicit failure classifications
| Diagnostic code | Meaning | Safe direction |
|---|---|---|
| SEARCH_NOT_AUTHORIZED | Caller lacks required search authority | Reconcile trusted permissions |
| PROVIDER_NOT_CONFIGURED | Provider is absent or disabled | Inspect approved registry |
| PROVIDER_ACCESS_DENIED | Upstream authorization rejected | Review provider access without exposing secrets |
| QUERY_TRANSLATION_FAILED | Submitted query cannot be represented correctly | Inspect adapter and query rules |
| PROVIDER_TIMEOUT | Request exceeded its execution budget | Record failure or partial outcome |
| PROVIDER_RATE_LIMITED | Provider quota or throttling applied | Use bounded permitted retry |
| PROVIDER_SCHEMA_MISMATCH | Response differs from supported contract | Inspect parsing and schema versions |
| PAGINATION_INCOMPLETE | Required retrieval pages unfinished | Record partial results |
| SEARCH_DATE_MISSING | Required search execution timestamp absent | Hold affected result |
| SOURCE_IDENTITY_MISSING | Provider-local record identity absent | Hold or reject affected result |
| PROVENANCE_MISMATCH | Result refers to wrong provider or execution | Reconcile source records |
| DUPLICATE_IDENTITY_CONFLICT | Identity grouping cannot be trusted | Review matching evidence |
| RIGHTS_UNVERIFIED | Requested processing rights unresolved | Hold affected processing |
| CACHE_SCOPE_VIOLATION | Cached response crosses access boundaries | Contain exposure and inspect cache |
| PERSISTENCE_CONFLICT | Saved source state differs from expected revision | Read authoritative state |
These codes are proposed troubleshooting identifiers. They are not confirmed Unified Discovery error responses.
Use the actual API contract and RFC 9457 where applicable to provide typed, nonsecret error details.
20. Prepare a synthetic diagnostic environment
The following Python example checks the internal consistency of fictional cross-provider search executions and records.
It verifies provider-to-result provenance, actual timestamp fields, result completeness, duplicate occurrences, tenant separation, and rights flags.
The example uses no external requests, credentials, or real research records.
mkdir discovery-search-troubleshooting
cd discovery-search-troubleshooting
python3 -m venv .venv
source .venv/bin/activate
python --version
Create:
search_diagnostics.py
test_search_diagnostics.py
21. Implement the synthetic search diagnostic
Save as search_diagnostics.py.
from dataclasses import dataclass
from datetime import datetime, timezone
from collections import defaultdict
import json
VALID_STATES = frozenset({
"COMPLETE",
"PARTIAL",
"FAILED",
"DENIED"
})
@dataclass(frozen=True)
class Execution:
execution_id: str
provider_id: str
query: str
searched_at: datetime | None
state: str
tenant_id: str
@dataclass(frozen=True)
class Result:
execution_id: str
provider_id: str
source_id: str
persistent_id: str | None
tenant_id: str
rights_ok: bool
EXECUTIONS = (
Execution(
"exec-A",
"catalog-A",
'"enhanced rock weathering" AND soil',
datetime(2026, 11, 15, 12, tzinfo=timezone.utc),
"COMPLETE",
"tenant-1"
),
Execution(
"exec-B",
"catalog-B",
'"rock weathering" AND agriculture',
datetime(2026, 11, 15, 13, tzinfo=timezone.utc),
"COMPLETE",
"tenant-1"
)
)
RESULTS = (
Result(
"exec-A", "catalog-A", "A-1",
"10.example/abc", "tenant-1", True
),
Result(
"exec-A", "catalog-A", "A-2",
"10.example/def", "tenant-1", True
),
Result(
"exec-B", "catalog-B", "B-1",
"10.example/abc", "tenant-1", True
)
)
def valid_search_time(value):
return (
isinstance(value, datetime)
and value.tzinfo is not None
and value.utcoffset() is not None
)
def diagnose(executions, results, *, tenant_id):
failures = []
limitations = []
execution_map = {}
source_keys = set()
groups = defaultdict(list)
for execution in executions:
if (
not execution.execution_id
or execution.execution_id in execution_map
):
failures.append("EXECUTION_ID_INVALID")
else:
execution_map[execution.execution_id] = execution
if not execution.provider_id:
failures.append("PROVIDER_ID_MISSING")
if not execution.query.strip():
failures.append("QUERY_MISSING")
if not valid_search_time(execution.searched_at):
failures.append("SEARCH_DATE_MISSING")
if execution.tenant_id != tenant_id:
failures.append("TENANT_MISMATCH")
if execution.state not in VALID_STATES:
failures.append("PROVIDER_STATE_INVALID")
elif execution.state != "COMPLETE":
limitations.append("PROVIDER_INCOMPLETE")
for result in results:
execution = execution_map.get(result.execution_id)
if execution is None:
failures.append("EXECUTION_NOT_FOUND")
elif execution.provider_id != result.provider_id:
failures.append("PROVENANCE_MISMATCH")
if result.tenant_id != tenant_id:
failures.append("TENANT_MISMATCH")
if not result.source_id:
failures.append("SOURCE_IDENTITY_MISSING")
continue
occurrence = (
result.provider_id,
result.source_id
)
if occurrence in source_keys:
failures.append("DUPLICATE_SOURCE_OCCURRENCE")
source_keys.add(occurrence)
if not result.rights_ok:
failures.append("RIGHTS_UNVERIFIED")
if result.persistent_id:
identity = (
"persistent",
result.persistent_id.strip().lower()
)
else:
identity = (
"provider-local",
result.provider_id,
result.source_id
)
groups[identity].append(occurrence)
duplicates = [
sorted(occurrences)
for occurrences in groups.values()
if len(occurrences) > 1
]
if failures:
status = "REJECTED"
elif limitations:
status = "PARTIAL"
else:
status = "SYNTHETIC_PASS"
return {
"status": status,
"failures": sorted(set(failures)),
"limitations": sorted(set(limitations)),
"executions": len(executions),
"results": len(results),
"identity_groups": len(groups),
"duplicate_groups": duplicates,
"provider_network_verified": False,
"real_authorization_verified": False,
"scientific_relevance_verified": False
}
if __name__ == "__main__":
print(json.dumps(
diagnose(
EXECUTIONS,
RESULTS,
tenant_id="tenant-1"
),
indent=2
))
The diagnostic requires each result to reference a known execution and checks its declared provider against that execution.
It preserves individual provider occurrences when grouping identical persistent identifiers.
Limitations: The input records are synthetic. The validator does not independently authenticate users, fetch providers, verify actual rights, validate persistent identifiers, inspect source content, enforce network security, or determine scientific relevance. The example’s duplicate grouping is illustrative and is not suitable as a complete production identity-resolution algorithm.
22. Execute the reference diagnostic
python search_diagnostics.py
Expected output:
{
"status": "SYNTHETIC_PASS",
"failures": [],
"limitations": [],
"executions": 2,
"results": 3,
"identity_groups": 2,
"duplicate_groups": [
[
["catalog-A", "A-1"],
["catalog-B", "B-1"]
]
],
"provider_network_verified": false,
"real_authorization_verified": false,
"scientific_relevance_verified": false
}
The result describes internal fixture consistency only.
It does not prove that the source publications exist or that any provider request actually ran.
23. Implement negative and regression tests
Save as test_search_diagnostics.py.
from dataclasses import replace
import unittest
from search_diagnostics import (
EXECUTIONS,
RESULTS,
diagnose
)
class SearchDiagnosticTests(unittest.TestCase):
def assess(
self,
executions=EXECUTIONS,
results=RESULTS,
tenant_id="tenant-1"
):
return diagnose(
executions,
results,
tenant_id=tenant_id
)
def expect(
self,
code,
*,
executions=EXECUTIONS,
results=RESULTS,
field="failures"
):
self.assertIn(
code,
self.assess(executions, results)[field]
)
def test_valid_fixture(self):
self.assertEqual(
self.assess()["status"],
"SYNTHETIC_PASS"
)
def test_duplicate_group_preserved(self):
self.assertEqual(
len(self.assess()["duplicate_groups"]),
1
)
def test_missing_search_date(self):
self.expect(
"SEARCH_DATE_MISSING",
executions=(
replace(
EXECUTIONS[0],
searched_at=None
),
EXECUTIONS[1]
)
)
def test_missing_provider_id(self):
self.expect(
"PROVIDER_ID_MISSING",
executions=(
replace(
EXECUTIONS[0],
provider_id=""
),
EXECUTIONS[1]
)
)
def test_missing_query(self):
self.expect(
"QUERY_MISSING",
executions=(
replace(EXECUTIONS[0], query=""),
EXECUTIONS[1]
)
)
def test_partial_provider(self):
self.expect(
"PROVIDER_INCOMPLETE",
executions=(
replace(
EXECUTIONS[0],
state="PARTIAL"
),
EXECUTIONS[1]
),
field="limitations"
)
def test_failed_provider(self):
self.expect(
"PROVIDER_INCOMPLETE",
executions=(
replace(
EXECUTIONS[0],
state="FAILED"
),
EXECUTIONS[1]
),
field="limitations"
)
def test_unknown_execution(self):
self.expect(
"EXECUTION_NOT_FOUND",
results=(
replace(
RESULTS[0],
execution_id="missing"
),
) + RESULTS[1:]
)
def test_provider_provenance_mismatch(self):
self.expect(
"PROVENANCE_MISMATCH",
results=(
replace(
RESULTS[0],
provider_id="catalog-B"
),
) + RESULTS[1:]
)
def test_cross_tenant_result(self):
self.expect(
"TENANT_MISMATCH",
results=(
replace(
RESULTS[0],
tenant_id="other-tenant"
),
) + RESULTS[1:]
)
def test_missing_source_identity(self):
self.expect(
"SOURCE_IDENTITY_MISSING",
results=(
replace(
RESULTS[0],
source_id=""
),
) + RESULTS[1:]
)
def test_unverified_rights(self):
self.expect(
"RIGHTS_UNVERIFIED",
results=(
replace(
RESULTS[0],
rights_ok=False
),
) + RESULTS[1:]
)
def test_duplicate_occurrence(self):
self.expect(
"DUPLICATE_SOURCE_OCCURRENCE",
results=RESULTS + (RESULTS[0],)
)
def test_duplicate_execution_id(self):
self.expect(
"EXECUTION_ID_INVALID",
executions=EXECUTIONS + (EXECUTIONS[0],)
)
def test_invalid_provider_state(self):
self.expect(
"PROVIDER_STATE_INVALID",
executions=(
replace(
EXECUTIONS[0],
state="UNKNOWN"
),
EXECUTIONS[1]
)
)
def test_deterministic(self):
self.assertEqual(
self.assess(),
self.assess()
)
if __name__ == "__main__":
unittest.main()
24. Execute and interpret the regression suite
python -m unittest -v test_search_diagnostics.py
The suite defines sixteen synthetic tests.
Its negative cases cover missing provider and search-date provenance, missing queries, incomplete provider responses, unknown executions, source identity mismatches, tenant isolation, unverified rights, duplicate occurrences, and invalid execution states.
The tests are supplied for reproduction and are not presented as executed production or staging acceptance.
Production testing must additionally exercise actual provider adapters, authorized HTTP requests, pagination, cache behavior, redirects, database persistence, revoked access, and real source-identifier validation.
25. Independently assess scientific search quality
Once the software defect has been corrected, evaluate whether the resulting search remains suitable for the research question.
Relevant checks include:
- Whether known relevant studies are retrieved.
- Whether the query excludes relevant terminology or disciplines.
- Whether missing providers materially limit coverage.
- Whether duplication inflates apparent evidence counts.
- Whether ranking hides important records.
- Whether retrieved documents are primary evidence, reviews, datasets, or other source types.
- Whether the search protocol’s inclusion and exclusion rules were followed.
For an evaluated reference set, precision and recall may help characterize retrieval quality. True recall cannot be assumed when the complete relevant-source population is unknown.
PRISMA-S provides guidance for reporting reproducible searches in systematic reviews. Exploratory discovery may use a less formal methodology, but must still preserve enough context to avoid unsupported claims of comprehensiveness.
26. Recover safely without rewriting search history
Use this sequence when a search failure is confirmed:
- Preserve the prior search. Retain the original execution IDs, queries, timestamps, provider identities, and results.
- Identify the defect. Classify configuration, permission, transport, parser, normalization, cache, or persistence failure.
- Contain exposure. Restrict affected access if private results were disclosed.
- Reconcile provider state. Determine whether the request completed or returned partial results.
- Correct the narrowest responsible component. Apply an approved configuration, schema, query, or adapter correction.
- Run a new bounded search where appropriate. Create a new execution identity and timestamp.
- Compare the original and new results. Preserve their distinct provenance.
- Validate authorization and rights. Confirm the corrected process remains permitted.
- Check deduplication and normalization. Verify retained source occurrences.
- Reconcile saved-state writes. Confirm whether any prior import already committed.
- Rerun negative tests. Include cross-tenant, missing-provenance, and partial-result cases.
- Record closure. Preserve actual implementation, testing, and remaining limitations.
Do not assign a new search date to records obtained from an earlier provider execution.
Do not overwrite accepted research-source history merely because a later query returns different metadata.
27. Handle cache and index recovery separately
Refreshing the search index or clearing an application cache does not necessarily rerun a provider query.
For cache-related recovery:
- Identify the original execution and representation.
- Determine whether the cached response was authorized for the current caller.
- Inspect the applicable cache key, expiration, and validation policy.
- Preserve original search provenance.
- Invalidate or refresh only the affected cache entries using documented procedures.
- Verify that new representations do not contain protected information from another authorization context.
For search-index recovery, verify the authoritative saved records before rebuilding a derived index.
Do not use an index rebuild to fabricate missing source identities or execution dates.
28. Prepare a sanitized incident receipt
Illustrative JSON:
{
"schema_version": "example-1.0",
"workflow": "cross_provider_search_troubleshooting",
"classification": "synthetic",
"incident": {
"case_id": "discovery-incident-017",
"suspected_failure": "PROVENANCE_MISMATCH",
"root_cause_confirmed": false
},
"search": {
"project_id": "project-017",
"execution_id": "search-017",
"providers_expected": [
"catalog-A",
"catalog-B"
],
"original_search_dates_verified": false
},
"acceptance": {
"trusted_project_identity": "not_tested",
"provider_authorization": "not_tested",
"provider_registry": "not_tested",
"exact_query_preservation": "not_tested",
"search_date_provenance": "not_tested",
"source_identity": "not_tested",
"schema_compatibility": "not_tested",
"provider_pagination": "not_tested",
"partial_result_handling": "not_tested",
"normalization_integrity": "not_tested",
"deduplication": "not_tested",
"ranking_integrity": "not_tested",
"rights_and_permissions": "not_tested",
"cache_scope": "not_tested",
"cache_provenance": "not_tested",
"outbound_security": "not_tested",
"tenant_isolation": "not_tested",
"library_persistence": "not_tested",
"research_handoff": "not_tested",
"scientific_relevance": "not_tested",
"production_runtime": "not_tested"
},
"incident_resolved": false,
"scientific_acceptance": false,
"release_decision": "NO_GO"
}
This is a proposed incident schema rather than a verified Unified Discovery API or database record.
For real acceptance, attach sanitized evidence identifying each affected provider, actual execution and source revisions, error classification, authorized correction, and executed test results.
29. Technical and scientific acceptance matrix
| Criterion | Pass condition | Evidence |
|---|---|---|
| Research context | Correct project, question, scope, and authorized actor identified | Authoritative request record |
| Provider configuration | Only approved and enabled providers used | Provider registry review |
| Provider authorization | Relevant access requirements satisfied | Trusted authorization tests |
| Exact queries | Provider-specific executed queries preserved | Execution receipts |
| Search dates | Actual execution date recorded for every retained result | Authoritative search events |
| Source identifiers | Original provider-local identities retained | Raw and normalized record comparison |
| Response integrity | Actual provider schema correctly handled | Adapter and parsing tests |
| Pagination | Complete or partial status accurately represented | Request and pagination audit |
| Deduplication | Distinct works preserved and original occurrences retained | Identity-resolution tests |
| Caching | Original execution provenance and access scope preserved | Cache validation tests |
| Rights | Requested retrieval, storage, and disclosure permitted | Rights assessment |
| Outbound security | Unsafe destinations and redirects blocked | Transport security tests |
| Tenant isolation | Cross-owner disclosure prevented | Authenticated negative tests |
| Library persistence | Saved records retain provider and search-date provenance | Read-back and reload tests |
| Research handoff | Correct ownership and source relationships preserved | Receiving-system acceptance |
| Scientific relevance | Results independently evaluated against the research question | Reviewer assessment |
| Historical integrity | Original execution and source evidence preserved | Version and audit records |
| Runtime acceptance | Actual deployed provider behavior independently tested | CI, API, staging, and browser evidence |
Acceptance rule: Record each criterion as Pass, Fail, Not Tested, or Not Applicable. A mandatory failed or untested provider identity, search-date provenance, source integrity, rights, or tenant authorization requirement prevents full acceptance of the affected search result.
Scientific coverage and source quality require separate review.
30. Sustainable Catalyst cross-application responsibilities
| Application | Intended responsibility |
|---|---|
| Unified Discovery | Coordinate authorized provider queries, record executions, normalize results, and preserve provenance |
| Platform Core | Enforce user and service identity, provider permissions, tenant isolation, and outbound security |
| Library | Maintain saved source identities, rights, metadata, and authoritative research references |
| Research | Associate discovery results with governed research questions and evidence objects |
| Workspace | Manage project ownership, permissions, review assignments, and research context |
| Research Lab | Evaluate scientific source relevance, reliability, and uncertainty |
| Workbench | Support subsequent reproducible analysis of appropriately acquired scientific data |
| Site Intelligence | Preserve geographic and temporal provenance for relevant geospatial data |
These are proposed service boundaries and must be verified against actual ownership and deployment contracts.
31. Required implementation and deployment audit
Before certifying this troubleshooting procedure, inspect:
- Actual Unified Discovery owning repository and implementation commit.
- Provider registry and enabled adapter inventory.
- Provider authentication and access configurations.
- Versioned request and response schemas.
- Query translation and filter handling.
- Authoritative search execution timestamps.
- Provider timeouts, rate limits, and pagination.
- Schema normalization and source identity handling.
- Deduplication and identity-group rules.
- Cache behavior and access-scope protections.
- Outbound request and redirect security.
- Saved search and Library source persistence.
- Research import and provenance contracts.
- Tenant and project authorization.
- Executed positive and negative regression tests.
- CI results tied to exact implementation revisions.
- Authenticated synthetic staging acceptance.
- Migration, backup, restore, and recovery evidence.
- Known disabled provider connectors and outstanding blockers.
Do not claim production verification because the Unified Discovery interface renders results or a provider returns HTTP 200.
The actual provider execution, provenance, security, normalization, and persistence behaviors require independent evidence.
32. Escalation and incident handling
Escalate when:
- Provider provenance or execution dates are missing.
- Source records are attributed to the wrong provider.
- Multiple scientifically distinct works are incorrectly merged.
- Incomplete searches are represented as comprehensive.
- Private research terms or source content leak to unauthorized audiences.
- Provider credentials are disclosed or misused.
- Outbound requests access unauthorized destinations.
- Library or Research loses original discovery provenance.
- Persistent source identities are corrupted during normalization.
- Saved search history is overwritten without traceable revision records.
Preserve the last accepted execution and sanitized diagnostic evidence. Contain security or disclosure risks where needed, identify the responsible component, and reproduce the defect using approved synthetic data.
Do not share service credentials, private queries, confidential research artifacts, or protected provider responses in public tickets.
33. Technical and scientific references
- Rethlefsen, M.L. et al. (2021). ‘PRISMA-S: an extension to the PRISMA Statement for Reporting Literature Searches in Systematic Reviews’, Systematic Reviews, 10, 39. Available at: https://doi.org/10.1186/s13643-020-01542-z.
- Fielding, R., Nottingham, M. and Reschke, J. (2022). HTTP Semantics. RFC 9110. Available at: https://www.rfc-editor.org/rfc/rfc9110.html.
- Fielding, R., Nottingham, M. and Reschke, J. (2022). HTTP Caching. RFC 9111. Available at: https://www.rfc-editor.org/rfc/rfc9111.html.
- Nottingham, M., Wilde, E. and Dalal, S. (2023). Problem Details for HTTP APIs. RFC 9457. Available at: https://www.rfc-editor.org/rfc/rfc9457.html.
- OWASP Foundation. Server-Side Request Forgery Prevention Cheat Sheet. Available at: OWASP SSRF guidance.
- World Wide Web Consortium (W3C) (2024). Data Catalog Vocabulary (DCAT) — Version 3. Available at: https://www.w3.org/TR/vocab-dcat-3/.
- World Wide Web Consortium (W3C) (2013). PROV-O: The PROV Ontology. Available at: https://www.w3.org/TR/prov-o/.
- Wilkinson, M.D. et al. (2016). ‘The FAIR Guiding Principles for scientific data management and stewardship’, Scientific Data, 3, 160018. Available at: https://doi.org/10.1038/sdata.2016.18.
- Python Software Foundation. datetime — Basic Date and Time Types. Available at: Python datetime documentation.
- Python Software Foundation. unittest — Unit Testing Framework. Available at: Python unittest documentation.
34. Completion and verification record
| Field | Required record |
|---|---|
| Incident identifier | Unique search case and responsible component owner |
| Research context | Project, research question, scope, and intended inference |
| Original executions | Provider-specific identifiers and execution dates |
| Executed queries | Exact provider queries and relevant filters |
| Provider configuration | Approved provider identities and connector revisions |
| Failure classification | Confirmed root cause or unresolved hypothesis |
| Result completeness | Complete, partial, denied, or failed outcomes |
| Source identity | Provider-local and persistent identifiers |
| Normalization | Schema mapping, transformations, and revisions |
| Deduplication | Identity-group decisions and preserved occurrences |
| Cache provenance | Original search and subsequent cache history |
| Rights | Permitted retrieval, storage, and reuse |
| Authorization | Trusted user, project, tenant, and provider authority |
| Outbound security | Approved destinations, redirects, and network controls |
| Saved state | Library and Research persistence, if applicable |
| Recovery | Authorized correction without historical overwrite |
| Scientific relevance | Independent assessment of result suitability |
| Implementation identity | Repository, commit, provider contracts, and deployed build |
| Regression evidence | Executed contract and security tests |
| Runtime acceptance | Authenticated provider, API, and browser evidence |
| Outstanding limitations | Unresolved provider, rights, coverage, or implementation concerns |
Completion criterion: A cross-provider search defect is resolved when its failure boundary and cause are established; authorized providers execute or report explicit limitations; every retained result preserves its original provider, source identifier, and actual search date; normalization and deduplication retain source provenance; rights and tenant restrictions remain enforced; and any saved or transferred records preserve that information without altering historical research evidence.
Scientific limitation: Resolving a software defect does not establish that the resulting search is comprehensive or scientifically adequate. Source relevance, coverage, evidence quality, methodological bias, and the suitability of results for research conclusions require independent scientific evaluation.
Current implementation status: Cross-provider troubleshooting methodology, failure-boundary identification, provider and query diagnostics, search-date provenance, pagination and partial-result handling, schema and deduplication checks, rights and security controls, caching and persistence recovery, synthetic Python validator, sixteen reference regression tests, and proposed scientific and technical acceptance criteria documented. No specific Sustainable Catalyst Unified Discovery provider adapter, search API, deduplication service, cache, Library import, or Research handoff is certified without implementation-specific source audit, executed authenticated integration tests, provider evidence, and independent runtime acceptance.
