Content Guardian Content Guardian
Navigation
← CGS3 AI Portal Overview Features Architecture & CAS Developer Guide Security Model Testing & QA Matrix User Documentation Downloads (Pending)

Feature Deep Dive

Deterministic, offline-first capabilities engineered for editorial accuracy, data preservation, and complete transparency.

1. Local Content Health Audit

Performs rapid, in-memory regex and DOM parsing across WordPress posts, identifying broken external image dependencies (e.g. expired cloud buckets, images.openai.com), rogue query parameters (utm_source=chatgpt.com), and malformed markup without calling any external web service.

  • 100% offline parsing engine
  • Memory-bounded batch pagination
  • Zero impact on frontend site visitors

2. Exact Duplicate Content Detection

Detects accidental multi-post publication, cross-posted syndicated articles, and near-identical revision drafts using fast cryptographic hashing (SHA-256) of normalized text bodies and exact title matching.

  • Normalized whitespace & case hashing
  • Post ID cross-referencing
  • Differentiates draft vs published revisions

3. Broken-Link & Asset Verification

Audits internal and external links within post content. Validates protocol compliance (HTTP/HTTPS), flags unresolvable hosts, highlights mixed-content warnings, and detects anchor targets that no longer exist.

  • Configurable timeout and user-agent settings
  • Honors robots.txt and rate limits
  • Granular error codes (404, 500, SSL failure)

4. Gutenberg Block & Shortcode Preservation

Content Guardian is explicitly engineered to preserve WordPress block markup (<!-- wp:paragraph -->, <!-- wp:image -->) and shortcode attributes. Regex cleaning patterns strictly isolate content strings without corrupting block JSON delimiters.

  • Zero Gutenberg block validation errors
  • Preserves shortcodes ([embed], [gallery])
  • Compatible with Classic Editor markup

5. Guaranteed Pre-Update Backup

Never updates a post without first verifying that an exact copy of original content exists in WordPress post meta. If meta creation fails or returns false, the entire update transaction aborts with zero modification.

  • Fail-closed architecture
  • One-click rollback via WordPress Admin
  • Timestamped audit meta records

6. Binary-Exact Atomic CAS Updates

Uses SQL CAST(post_content AS BINARY) comparisons to ensure case, accent, trailing whitespace, and Unicode differences are strictly evaluated, preventing lost updates in high-concurrency newsrooms.

  • Collation-immune CAS conflict detection
  • Automatic HTTP 409 Conflict return
  • Revalidates content inside owner lock