Aevum News / Documentation / Error Handling Guide

Error Handling Guide

Standard operating procedures for detecting, triaging, resolving, and documenting errors across the Aevum News publishing platform and editorial workflow.

📅 Updated: Nov 14, 2025 👤 Maintained by: Platform Engineering & Editorial Ops đŸˇī¸ v2.4.1

1. Overview

This guide establishes the framework for error management at Aevum News. It covers both editorial/content errors (fact-check failures, broken media, CMS validation issues) and technical platform errors (API failures, CDN outages, database timeouts, frontend rendering faults).

â„šī¸ Scope & Audience
This document applies to all editorial staff, platform engineers, QA testers, and external API consumers. Adherence to these protocols ensures service continuity, content accuracy, and reader trust.

All errors must be logged in the central incident tracker. Critical and high-severity errors trigger automatic Slack alerts and require post-mortem documentation within 48 hours of resolution.

2. Error Classification Matrix

Errors are categorized by severity, impact, and required response time. Use this matrix to prioritize triage efforts.

d>
Code Type Severity Max Response Resolution SLA
ERR-401 Authentication Critical 15 min 1 hour
ERR-503 Service Unavailable Critical 10 min 45 min
ERR-204 CMS Validation High 30 min 4 hours
ERR-302 Broken Asset/Link Medium 2 hours 24 hours
ERR-100 Typo/Minor Content Low4 hours 48 hours

Custom error codes follow the pattern ERR-XXX where XXX indicates the subsystem. Always include the full stack trace or CMS audit log reference when reporting.

3. Editorial & Content Errors

Content integrity is paramount. The editorial pipeline includes automated validation and human review gates.

3.1 Fact-Check & Source Validation

  • All claims must cite verified sources. Missing citations trigger ERR-204 during pre-publish validation.
  • AI-assisted drafting must be flagged in the metadata. Human verification is mandatory before publication.
  • Correction logs are immutable. Edits to published articles append a timestamped changelog entry.
Troubleshooting: Article stuck in "Validation Failed" state

If an article fails automated checks:

  1. Open the CMS audit panel and locate the validation_report.json.
  2. Check for broken media references or missing taxonomy tags.
  3. Run the manual override only if false-positive; otherwise, resolve the flagged fields.
  4. Contact Editorial Ops if the pipeline remains stuck for >30 minutes.

3.2 Media & Asset Errors

âš ī¸ Common Issue: 404 on Featured Images
CDN caching delays can cause temporary asset failures. Purge via cdn:purge --path /assets/img/ or wait for TTL expiration (default: 15m).

4. Technical Platform Errors

Infrastructure and API-layer errors require immediate engineering intervention. Use the following reference for common failures.

4.1 API Gateway Failures

const handleApiError = async (error) => {
  if (error.status === 503) {
    logger.warn("Backend overload - enabling circuit breaker");
    return fallbackToCachedContent();
  }
  if (error.status >= 500) {
    alertIncidentChannel("ERR-5XX", error.stack);
  }
};
Database Connection Pool Exhaustion

Symptom: ERR-DB-04 with rising 504 latency.

Resolution:

  1. Check connection pool metrics in Datadog.
  2. Scale read replicas if write throughput is normal.
  3. Enable query timeout limits (pg_settings: statement_timeout = 5000).
  4. Restart idle connections if memory fragmentation is detected.

4.2 Frontend Rendering & Hydration Errors

Client-side errors are captured via Sentry. Prioritize fixes that affect Core Web Vitals or article readability. Use the browser console to isolate framework-specific hydration mismatches.

5. Incident Response Workflow

  1. Detect: Automated monitoring, reader reports, or editorial flags trigger an incident ticket.
  2. Triage: Assign severity using the classification matrix. Route to Engineering or Editorial Ops.
  3. Contain: Apply hotfixes, enable fallbacks, or temporarily restrict affected features.
  4. Resolve: Deploy permanent fix. Verify via staging environment.
  5. Post-Mortem: Document root cause, timeline, and preventive measures. Share with all teams within 48h.
🚨 Critical Path Rule
If reader-facing content is incorrect or missing, prioritize editorial correction over technical optimization. Truth and transparency override uptime metrics.

6. Prevention & Monitoring

Proactive measures reduce error frequency and improve platform resilience.

  • Automated Linting: Content must pass schema validation before draft submission.
  • Health Checks: Endpoints ping every 30s. Three consecutive failures trigger auto-remediation.
  • Canary Deploys: New CMS versions roll out to 5% of traffic before full release.
  • Reader Feedback Loop: "Report Issue" button on articles feeds directly into the ticketing system with context pre-filled.

7. Error Reporting Template

Use this structure when submitting bugs or editorial errors:

Markdown / Ticket Format
## Title: [Brief description]
## Type: Editorial / Technical / Infrastructure
## Severity: Critical / High / Medium / Low
## Steps to Reproduce:
1. 
2. 
3. 
## Expected Behavior:
## Actual Behavior:
## Environment: (CMS version, Browser, API endpoint)
## Screenshots/Logs: 
## Assigned To: 

8. Frequently Asked Questions

Can editorial staff override automated validation?
Only Senior Editors and Managing Editors have override privileges. Overrides require a justification note and are logged for compliance audits.
How are breaking news errors handled?
Breaking articles bypass secondary review gates but trigger real-time fact-checking alerts. Corrections are pushed via WebSocket updates and marked with a "Corrected" badge.
Where can I find API error documentation?
See the internal developer portal under /docs/api/error-codes. External consumers should reference the public status page.