Troubleshooting
Troubleshoot discovery error recovery — Unified Discovery
Troubleshoot partial or failed discovery across providers, including timeouts, authentication errors, schema changes, stale caches, and incomplete result sets.
Application: Unified Discovery
Article classification: Troubleshooting / Service resilience / Research data integrity
Audience: Researchers, platform operators, software engineers, data stewards, and technical support personnel
Technical level: Intermediate to advanced
Reference environment: Python 3 and unittest
Relevant standards: HTTP Semantics (RFC 9110), Problem Details for HTTP APIs (RFC 9457), and OpenTelemetry tracing
Primary outputs: Failure classification, provider coverage report, safe recovery decision, reproducible test evidence, and operational incident record
Estimated reading time: 12–15 minutes, excluding exercises
1. Purpose and operational scope
Unified Discovery may combine search results, metadata, source references, and research records from multiple internal or external providers.
These providers can have different availability, authentication requirements, rate limits, schemas, data rights, and update schedules.
When a dependency fails, a discovery system may still return some useful information. The central operational challenge is distinguishing a valid partial result from a complete and authoritative discovery response.
Typical failure conditions include:
- An external provider is temporarily unavailable.
- A service returns HTTP 429 rate limiting.
- A request times out before all sources respond.
- Credentials are expired or permissions are insufficient.
- A source record no longer resolves to its expected identifier.
- A provider changes its response schema.
- A cached result references an outdated source revision.
- One provider succeeds while another fails.
- Search results contain malformed, duplicate, or unauthorized records.
- A write operation has an uncertain completion status.
Primary acceptance condition: Failures must be reported accurately, and incomplete discovery coverage must never be presented as complete.
Restoring service availability is necessary but insufficient when result integrity, access permissions, or scientific provenance remain unresolved.
2. Recognize the defect
| Symptom | Potential cause | Initial response |
|---|---|---|
| Search returns no results | Valid empty result, incorrect filters, provider failure, or authorization problem | Inspect provider coverage and request state |
| Search returns fewer results than expected | Partial provider response, pagination, filtering, or index lag | Compare attempted and completed sources |
| Provider unavailable | Network error, maintenance, or upstream service failure | Classify failure and determine retry eligibility |
| HTTP 429 | Provider rate limit or quota restriction | Respect retry guidance and configured limits |
| HTTP 401 or 403 | Missing, expired, or insufficient authorization | Verify identity and permissions through approved channels |
| Malformed search record | Schema drift or invalid provider data | Quarantine affected records and record schema failure |
| Result identifier cannot resolve | Deleted source, stale mapping, or wrong namespace | Inspect source identifier and revision |
| Results differ between identical searches | Source updates, cache divergence, ranking changes, or nondeterminism | Compare provider revisions and query configuration |
| Cached result appears outdated | Stale index, incorrect invalidation, or synchronization delay | Compare cache metadata with authoritative source state |
| Export or import has uncertain outcome | Response lost after a possible write | Reconcile operation status before attempting another write |
An empty search result is not equivalent to a failed search. A system should distinguish a successful query that found nothing from a query that did not reach all required sources.
3. Classify the failure before attempting recovery
Errors should be classified according to their cause and whether repeating the operation is safe.
| Failure class | Illustrative status | Safe response |
|---|---|---|
| Invalid request | 400 or 422 | Correct the request; do not retry unchanged |
| Unauthenticated | 401 | Use approved authentication recovery |
| Forbidden | 403 | Stop; verify access policy and ownership |
| Missing source | 404 | Verify identifier, namespace, revision, and rights |
| Revision conflict | 409 or 412 | Reconcile expected and actual state |
| Rate limiting | 429 | Honor provider backoff and request limits |
| Provider/server failure | 500, 502, 503, or 504 | Use bounded retries only where the operation is safe |
| Transport failure | Timeout or connection reset | Determine whether the request could have been applied |
| Schema or data-integrity failure | Provider-specific | Reject or quarantine invalid data |
| Partial federation result | May occur with HTTP 200 | Disclose missing coverage and preserve provider status |
These HTTP statuses are diagnostic examples, not a verified Sustainable Catalyst error-code contract. Actual behavior must be checked against the relevant API.
4. Establish the discovery request context
Before investigating a failure, identify the exact request and authorization context.
Record:
- Organization and workspace or project identifier.
- Authenticated role and permission scope.
- Search query and canonicalized parameters.
- Requested providers and source collections.
- Time range, geographic scope, and active filters.
- Request identifier and trace identifier.
- Relevant provider configuration revisions.
- Requested data rights and access restrictions.
- Search operation type: read, import, update, publish, or delete.
- Expected result or acceptance criterion.
Only log the minimum information required for diagnosis. Do not place access tokens, full private research content, or sensitive provider responses in public incident reports.
4.1 Distinguish identity from source resolution
A record may fail to resolve because:
- The identifier belongs to a different source namespace.
- The source revision no longer contains that identifier.
- The source has been withdrawn or deleted.
- The current account lacks access.
- A cross-application mapping is stale.
Do not treat an authorization denial as permission to search other accounts or bypass the source’s access controls.
5. Validate discovery coverage
Federated discovery should identify which providers were requested, attempted, completed, skipped, or failed.
Let P_requested be the set of providers required by a particular discovery operation.
Let P_completed be the subset for which a terminal successful and sufficiently validated response was received.
A simple provider-completion measure is:
Coverage_fraction =
|P_completed| / |P_requested|
This measure is defined only when at least one provider is requested.
It measures provider completion rather than completeness of scientific records. Providers may differ substantially in their dataset scope, authority, and number of records.
For example:
Requested providers: 4
Completed: 3
Failed: 1
Provider completion: 3 / 4 = 0.75
Coverage state: PARTIAL
Even if the three completed providers return hundreds of records, the system must not describe the search as complete when a required provider was unavailable.
5.1 Recommended coverage states
| State | Meaning |
|---|---|
| COMPLETE | All required providers completed and passed relevant validation checks |
| PARTIAL | Some usable results exist, but one or more required providers did not complete |
| UNAVAILABLE | No required provider produced a usable result |
| INVALID | The request or response cannot satisfy the required schema or integrity checks |
| UNKNOWN | Coverage cannot be established from available evidence |
A provider returning zero matches after a valid query can count as completed. A provider that timed out cannot.
Do not infer completeness from a successful HTTP status alone, especially when an API allows partial federation results or paginated responses.
6. Distinguish stale results from valid cached data
A cache can improve discovery availability, but it can also conceal upstream failures or display outdated records.
Inspect:
- Cached query parameters and authorization scope.
- Cache creation and expiration times.
- Source and provider revision references.
- Index-generation time.
- Rights and visibility changes since caching.
- The reason cached data were selected.
- Whether the user was informed of staleness.
When the authoritative provider is unavailable, a cached response may be useful if the applicable policy permits stale data.
However, it must be identified as cached and potentially outdated.
For example:
Discovery status: PARTIAL
Data source: Cached provider response
Last source refresh: recorded timestamp
Current provider validation: unavailable
Scientific completeness: not verified
Stale cached data must not silently overwrite a newer accepted research artifact or bypass revised source permissions.
7. Understand safe retry and idempotency rules
Retry behavior must depend on operation semantics, not merely on whether a request failed.
RFC 9110 distinguishes safe methods from idempotent methods and cautions against automatic retries of non-idempotent operations without additional guarantees.
7.1 Read-only discovery operations
Read-only queries are generally candidates for bounded retry when their semantics are safe and the provider permits repetition.
Appropriate controls include:
- Maximum attempt count.
- Per-request timeout.
- Overall retry deadline.
- Exponential backoff and jitter.
- Respect for provider Retry-After guidance.
- Provider-specific quotas.
- Cancellation when the request is no longer needed.
7.2 Mutation operations
Imports, updates, publication operations, and deletes require a separate recovery contract.
Do not retry a non-idempotent write automatically after a timeout unless the system can establish that the operation was not applied or has an implemented and verified idempotency mechanism.
For an uncertain write outcome:
Write request sent
|
v
Response lost or timed out
|
v
Read authoritative operation status
|
+--- Applied? ---> Verify persisted result
|
+--- Not applied? ---> Evaluate safe retry
|
+--- Unknown? ---> Stop and escalate
Use an idempotency key only when the server actually implements and enforces the corresponding contract. Providing a client-generated identifier does not by itself make a write idempotent.
8. Implement a deterministic failure-classification example
The following example classifies synthetic discovery-provider outcomes without making network requests or modifying data.
8.1 Prepare the environment
mkdir discovery-recovery-tests
cd discovery-recovery-tests
python3 -m venv .venv
source .venv/bin/activate
python --version
The example uses Python’s standard library. No production credentials or external provider connections are required.
8.2 Create the classification module
Save as discovery_recovery.py.
from dataclasses import dataclass
@dataclass(frozen=True)
class ProviderResult:
provider_id: str
status: str
record_ids: tuple[str, ...] = ()
VALID_STATUSES = {
"complete",
"timeout",
"rate_limited",
"unauthorized",
"invalid_data",
"unavailable"
}
def validate_provider_results(results):
provider_ids = [
result.provider_id
for result in results
]
if len(provider_ids) != len(
set(provider_ids)
):
raise ValueError(
"Duplicate provider identifiers"
)
for result in results:
if not result.provider_id.strip():
raise ValueError(
"Missing provider identifier"
)
if result.status not in VALID_STATUSES:
raise ValueError(
"Unknown provider status"
)
if result.status != "complete":
if result.record_ids:
raise ValueError(
"Failed provider cannot be "
"marked with validated records"
)
if len(result.record_ids) != len(
set(result.record_ids)
):
raise ValueError(
"Duplicate record identifiers "
"within provider result"
)
def coverage_report(requested, results):
if not requested:
raise ValueError(
"At least one provider required"
)
if len(requested) != len(set(requested)):
raise ValueError(
"Duplicate requested providers"
)
validate_provider_results(results)
requested_set = set(requested)
returned = {
result.provider_id
for result in results
}
if not returned.issubset(requested_set):
raise ValueError(
"Unexpected provider response"
)
completed = {
result.provider_id
for result in results
if result.status == "complete"
}
missing = requested_set - returned
failed = {
result.provider_id
for result in results
if result.status != "complete"
}
incomplete = missing | failed
if len(completed) == len(requested_set):
state = "COMPLETE"
elif completed:
state = "PARTIAL"
else:
state = "UNAVAILABLE"
return {
"coverage_state": state,
"requested_count": len(requested_set),
"completed_count": len(completed),
"completion_fraction": (
len(completed) / len(requested_set)
),
"completed_providers": sorted(completed),
"incomplete_providers": sorted(incomplete),
"result_count": sum(
len(result.record_ids)
for result in results
if result.status == "complete"
)
}
def recovery_action(
http_status,
operation,
idempotency_verified=False
):
if operation not in {"read", "write"}:
raise ValueError(
"Unsupported operation"
)
if http_status in {401, 403}:
return "STOP_AUTHORIZATION"
if http_status in {400, 404, 409, 412, 422}:
return "INSPECT_REQUEST_OR_REVISION"
transient = {
429, 500, 502, 503, 504
}
if http_status in transient:
if operation == "read":
return "BOUNDED_RETRY_ELIGIBLE"
if idempotency_verified:
return "GUARDED_RETRY_ELIGIBLE"
return "RECONCILE_WRITE_STATUS"
return "INSPECT_STATUS"
The module is intentionally conservative. It does not attempt real retries, evaluate a provider’s specific contract, or inspect the validity of individual scientific records.
In particular, its provider-completion classification assumes the provider’s successful status has already passed the relevant schema, paging, and integrity checks. Production systems must enforce that precondition explicitly.
9. Execute a partial-result recovery example
Save as run_diagnostics.py.
import json
from discovery_recovery import (
ProviderResult,
coverage_report,
recovery_action
)
requested = (
"provider_a",
"provider_b",
"provider_c"
)
results = (
ProviderResult(
"provider_a",
"complete",
("A001", "A002")
),
ProviderResult(
"provider_b",
"timeout"
),
ProviderResult(
"provider_c",
"complete",
()
)
)
report = coverage_report(
requested,
results
)
assert report["coverage_state"] == "PARTIAL"
assert report["completed_count"] == 2
assert report["result_count"] == 2
print(json.dumps(report, indent=2))
print(
"Read recovery:",
recovery_action(503, "read")
)
print(
"Write recovery:",
recovery_action(503, "write")
)
Execute:
python run_diagnostics.py
Expected findings:
Coverage state: PARTIAL
Requested providers: 3
Completed providers: 2
Incomplete providers: provider_b
Validated result count: 2
Read recovery:
BOUNDED_RETRY_ELIGIBLE
Write recovery:
RECONCILE_WRITE_STATUS
The empty successful response from provider C counts toward provider completion. Provider B remains incomplete even though two other providers have responded.
These are expected synthetic results and do not demonstrate real Unified Discovery provider behavior.
10. Develop automated failure tests
Negative tests should confirm that incomplete results, unexpected providers, unsafe retries, and incorrect response classifications are not silently accepted.
Save as test_discovery_recovery.py.
import unittest
from discovery_recovery import (
ProviderResult,
coverage_report,
recovery_action
)
class DiscoveryRecoveryTests(
unittest.TestCase
):
def test_complete_coverage(self):
report = coverage_report(
("a", "b"),
(
ProviderResult(
"a", "complete", ("A1",)
),
ProviderResult(
"b", "complete"
)
)
)
self.assertEqual(
report["coverage_state"],
"COMPLETE"
)
def test_partial_coverage(self):
report = coverage_report(
("a", "b"),
(
ProviderResult(
"a", "complete", ("A1",)
),
ProviderResult(
"b", "timeout"
)
)
)
self.assertEqual(
report["coverage_state"],
"PARTIAL"
)
def test_unavailable_coverage(self):
report = coverage_report(
("a", "b"),
(
ProviderResult("a", "timeout"),
ProviderResult("b", "unavailable")
)
)
self.assertEqual(
report["coverage_state"],
"UNAVAILABLE"
)
def test_missing_provider_detected(self):
report = coverage_report(
("a", "b"),
(
ProviderResult("a", "complete"),
)
)
self.assertIn(
"b",
report["incomplete_providers"]
)
def test_unexpected_provider_rejected(self):
with self.assertRaises(ValueError):
coverage_report(
("a",),
(
ProviderResult(
"unknown", "complete"
),
)
)
def test_duplicate_provider_rejected(self):
with self.assertRaises(ValueError):
coverage_report(
("a",),
(
ProviderResult("a", "complete"),
ProviderResult("a", "complete")
)
)
def test_failed_provider_records_rejected(self):
with self.assertRaises(ValueError):
coverage_report(
("a",),
(
ProviderResult(
"a", "timeout", ("A1",)
),
)
)
def test_rate_limit_read_retry(self):
self.assertEqual(
recovery_action(429, "read"),
"BOUNDED_RETRY_ELIGIBLE"
)
def test_unauthorized_stops(self):
self.assertEqual(
recovery_action(403, "read"),
"STOP_AUTHORIZATION"
)
def test_unsafe_write_not_retried(self):
self.assertEqual(
recovery_action(503, "write"),
"RECONCILE_WRITE_STATUS"
)
def test_verified_idempotency_guard(self):
self.assertEqual(
recovery_action(
503,
"write",
idempotency_verified=True
),
"GUARDED_RETRY_ELIGIBLE"
)
if __name__ == "__main__":
unittest.main()
Run:
python -m unittest -v test_discovery_recovery.py
The reference suite defines eleven tests. They cover provider completion, partial coverage, missing providers, invalid provider results, authentication failure, rate limiting, and conservative write recovery.
Passing these tests verifies only the synthetic classification rules. It does not establish actual network retry safety, source-rights enforcement, real provider schema compatibility, or production recovery readiness.
11. Interpret API errors and trace evidence
API errors should provide enough nonsecret information to distinguish the reason for failure.
RFC 9457 defines a standardized Problem Details structure for HTTP API errors, using fields such as type, title, status, detail, and instance.
11.1 Illustrative error response
{
"type": "about:blank",
"title": "Service Unavailable",
"status": 503,
"detail": "A discovery dependency is unavailable.",
"instance": "/diagnostics/example-request"
}
This is a conceptual RFC 9457-style example, not the implemented Unified Discovery error schema.
The response should not reveal credentials, backend connection strings, private dataset content, or internal information unnecessary for the requesting user.
11.2 Trace identifiers
Where distributed tracing is implemented, retain an authorized correlation identifier to help reconstruct the request across services.
OpenTelemetry defines trace and span identifiers, along with context propagation mechanisms.
Useful diagnostic fields include:
- Request ID.
- Trace ID and relevant span identifiers.
- Provider identifier.
- Sanitized failure class.
- Request start and completion status.
- Retry count.
- Source and index revision.
- Final provider coverage classification.
Do not assume every service propagates trace context correctly. Distributed traces must be validated against the deployed instrumentation.
12. Recover from provider outages and rate limits
For a confirmed transient read-only failure:
- Confirm the request is safe to repeat.
- Check whether the provider returned Retry-After guidance.
- Apply a bounded retry policy with appropriate backoff.
- Avoid concurrent retry storms and quota exhaustion.
- Revalidate the returned response and source metadata.
- Update provider completion only after successful validation.
- Preserve the original failed-attempt evidence.
If the provider remains unavailable, classify the result as partial or unavailable according to the actual coverage.
Do not promote an incomplete response to complete merely because the retry budget was exhausted.
12.1 Circuit breakers and fallback behavior
A production implementation may use circuit breakers to limit repeated calls to a failing dependency.
Such mechanisms require tested thresholds, recovery conditions, and observability.
If cached fallback is supported, the response should disclose:
- That cached data were used.
- When the cached source was last validated.
- Which provider failed.
- Whether the cached content remains authorized.
- Whether the result may be incomplete or stale.
Cached fallback is an availability mechanism, not proof of current data coverage.
13. Diagnose schema, data-rights, and integrity failures
A provider may respond successfully at the transport level while returning scientifically or operationally invalid data.
Check:
- Expected response fields and data types.
- Required record identifiers.
- Source and provider namespace.
- Duplicate and malformed records.
- Source versions and timestamps.
- Pagination completeness.
- Data licensing and reuse restrictions.
- Visibility and publication permissions.
- Provenance and citation metadata.
When schema validation fails, avoid silently coercing invalid records into apparently valid research evidence.
Where a provider returns mixed-quality results, distinguish individually validated records from quarantined or unresolved records.
A scientifically usable result should retain source attribution and known limitations rather than presenting an anonymous collection of search hits.
14. Controlled recovery and rollback
Recovery actions must preserve the last accepted state and its audit evidence.
14.1 Read-only recovery
For discovery queries and provider lookups:
- Preserve the failure record and original request context.
- Classify the failed provider and error condition.
- Attempt only safe, bounded read retries.
- Validate returned records and source revisions.
- Recalculate provider completion.
- Report remaining missing coverage.
14.2 Write or publication recovery
For imports, updates, or publication operations:
- Stop additional mutation attempts where completion is uncertain.
- Identify the relevant transaction or operation identifier.
- Inspect the authoritative persisted state through an authorized read.
- Determine whether the original operation succeeded, failed, or remains unknown.
- Use only verified idempotency or guarded replay mechanisms.
- Restore from an approved recovery point only when authorized and supported by tested procedures.
- Verify data, provenance, ownership, and audit state after recovery.
A rollback is not complete merely because a user interface displays the previous content. Verify the actual persisted records and relevant dependent artifacts.
15. Acceptance matrix
| Criterion | Pass condition | Evidence |
|---|---|---|
| Request identity | Correct organization, project, role, and request identified | Sanitized request context |
| Failure classification | Error assigned to a supported and justified class | Diagnostic report |
| Provider coverage | Completed, failed, and missing providers disclosed | Coverage report |
| Partial-result integrity | Incomplete results are not represented as complete | Response and interface inspection |
| Retry safety | Retry behavior follows verified operation semantics | Retry-policy and execution tests |
| Rate-limit handling | Provider quotas and supported retry guidance respected | Rate-limit tests |
| Schema validation | Accepted records conform to the documented contract | Schema test receipt |
| Source integrity | Source identifiers, rights, and revisions verified | Source audit evidence |
| Cache integrity | Cached results correctly identified and authorized | Cache inspection |
| Write safety | No duplicate or uncertain mutation is silently retried | State-reconciliation evidence |
| Authorization | Recovery does not bypass access restrictions | Negative access tests |
| Observability | Relevant failures can be correlated without disclosing secrets | Sanitized traces and logs |
| Recovery validation | Corrected behavior is independently verified | Regression and runtime tests |
| Publication safety | Unverified evidence cannot be silently published as accepted research | Publication-gate tests |
Decision rule: Record each applicable criterion as Pass, Fail, or Not Tested. A recovery must not be declared successful merely because the interface responds or a provider begins returning records.
16. Evidence package and incident handoff
A completed diagnostic and recovery record should contain:
- Incident identifier and timestamp.
- Affected application and component.
- Source repository and deployed revision, when known.
- Sanitized request and provider identifiers.
- Organization and authorization context, without credentials.
- Failure category and observed symptoms.
- Attempted, completed, and failed provider sets.
- Relevant source revisions and data-rights metadata.
- Retry actions and their verified safety basis.
- Original and recovered state identifiers.
- Executed tests and acceptance receipts.
- Runtime logs and trace references.
- Known remaining gaps and publication restrictions.
- Owner, reviewer, and resolution decision.
16.1 Example incident receipt
{
"schema_version": "example-1.0",
"component": "unified-discovery",
"incident_id": "synthetic-incident-001",
"environment": "synthetic",
"operation": "read",
"requested_providers": [
"provider_a",
"provider_b",
"provider_c"
],
"completed_providers": [
"provider_a",
"provider_c"
],
"failed_providers": [
"provider_b"
],
"coverage_state": "PARTIAL",
"failure_class": "provider_timeout",
"recovery": {
"retry_eligibility": "conditional",
"mutation_performed": false,
"production_action": "not_performed"
},
"acceptance": {
"schema_validation": "not_tested",
"authorization": "not_tested",
"runtime_recovery": "not_tested",
"publication_integrity": "not_tested"
},
"release_decision": "NO_GO"
}
Actual incident receipts must use verified observations rather than expected values copied from a tutorial.
17. Sustainable Catalyst integration and source audit
Unified Discovery is intended to connect research discovery with source management, analytical workflows, and eventual publication.
The following describes potential responsibilities. It does not establish that the integrations are deployed or that their contracts have passed acceptance.
| Application area | Intended responsibility |
|---|---|
| Unified Discovery | Coordinate provider queries, classify failures, and disclose coverage |
| Library | Resolve source identifiers, rights, versions, and stored research artifacts |
| Platform Core | Provide applicable identity, authorization, and service-governance controls |
| Workbench | Use verified discovery inputs in reproducible analysis where supported |
| Research | Associate discovered evidence with research objects and outputs |
| Workspace | Track projects, reviews, recovery evidence, and publication approval |
| Operations | Maintain incident records, observability, backup evidence, and release controls |
17.1 Source-audit requirement
Before describing a Unified Discovery recovery procedure as production verified, attach:
- Actual owning repository and source revision.
- Discovery API and provider-adapter code paths.
- Provider registry and response-schema revisions.
- Implemented error and retry semantics.
- Data-rights and authorization controls.
- Cache and index invalidation behavior.
- Idempotency and mutation-reconciliation mechanisms, if any.
- Actual runtime health and dependency evidence.
- Executed integration, negative, and recovery tests.
- Sanitized screenshots, traces, and test receipts.
- Known blockers and unsupported recovery scenarios.
The presence of a discovery design, provider registry, or test fixture does not establish that end-to-end error recovery has been deployed.
18. Escalation and recovery decision
Escalate when:
- Required provider coverage cannot be established.
- Search results may be incomplete but the interface reports them as complete.
- A source reference cannot be resolved to authoritative evidence.
- Data rights or authorization remain uncertain.
- A mutation may have succeeded but its outcome cannot be verified.
- Retries risk duplication, provider overload, or data corruption.
- A cache may expose obsolete or unauthorized research records.
- A partial or stale discovery result has already informed a scientific publication.
- Recovery requires production data modification or restoration without verified approval.
Do not treat these conditions as ordinary cosmetic defects.
Where research outputs were affected, preserve the original evidence and initiate scientific or publication review before replacing accepted content.
19. Technical references
- Fielding, R., Nottingham, M. and Reschke, J. (2022). HTTP Semantics. RFC 9110. Internet Engineering Task Force. Available at: https://www.rfc-editor.org/rfc/rfc9110.html.
- Nottingham, M., Wilde, E. and Dalal, S. (2023). Problem Details for HTTP APIs. RFC 9457. Internet Engineering Task Force. Available at: https://www.rfc-editor.org/rfc/rfc9457.html.
- OpenTelemetry (n.d.). Tracing API Specification. Available at: OpenTelemetry documentation.
- W3C (2018). Trace Context. W3C tracing specification and subsequent revisions. Available at: https://www.w3.org/TR/trace-context/.
- Python Software Foundation (n.d.). unittest — Unit Testing Framework. Available at: Python documentation.
- OWASP Foundation (n.d.). Logging Cheat Sheet. Available at: OWASP Cheat Sheet Series.
- OWASP Foundation (n.d.). REST Security Cheat Sheet. Available at: OWASP Cheat Sheet Series.
20. Completion and verification record
| Field | Required record |
|---|---|
| Incident | Identifier, time, and component |
| Request identity | Authorized context and sanitized query reference |
| Failure classification | Confirmed category or unresolved finding |
| Provider coverage | COMPLETE, PARTIAL, UNAVAILABLE, INVALID, or UNKNOWN |
| Source integrity | Pass, Fail, or Not Tested |
| Authorization | Pass, Fail, or Not Tested |
| Retry safety | Pass, Fail, or Not Tested |
| Schema validation | Pass, Fail, or Not Tested |
| Cache integrity | Pass, Fail, or Not Tested |
| Mutation reconciliation | Pass, Fail, Not Tested, or Not Applicable |
| Recovery verification | Pass, Fail, or Not Tested |
| Publication impact | Reviewed findings and required actions |
| Root cause | Confirmed explanation or unresolved hypothesis |
| Corrective action | Documented and authorized action |
| Reviewer | Actual reviewer and date |
| Evidence | Test receipts, source records, logs, and trace identifiers |
| Outstanding limitations | Unresolved provider, scientific, security, or operational concerns |
Completion criterion: A discovery failure is resolved only when the affected operation has been safely restored or explicitly bounded, source and authorization requirements have been validated, provider coverage is accurately reported, and applicable regression and operational acceptance tests have passed.
Scientific limitation: Successfully recovering a discovery service does not establish that the discovered records are complete, scientifically valid, current, or suitable for a particular research inference. Source appraisal and independent research validation remain necessary.
Current implementation status: Operational troubleshooting methodology, provider-coverage model, conservative recovery classification, synthetic diagnostic implementation, and automated test definitions documented. No specific Sustainable Catalyst Unified Discovery provider recovery, mutation rollback, or production integration is certified without implementation-specific source audit and actual runtime acceptance evidence.
