Troubleshooting

Troubleshoot contact quality reporting — Contact and Engagement Platform

Diagnose inconsistent, stale, inaccessible, or potentially disclosive contact quality reports through a structured review of cohort definitions, statistical calculations, access controls, privacy suppression, and audit evidence. This guide provides source-grounded troubleshooting procedures, reproducible synthetic tests, and safe recovery criteria while distinguishing offline diagnostics from deployed-platform verification.

ProductContact and Engagement PlatformUpdatedNovember 20, 2026Reading time17 minutes

Application: Contact and Engagement Platform
Component: Contact and Engagement → Analytics & Service Intelligence
Article type: Troubleshooting and evidence validation
Technical scope: Aggregate inquiry analytics, service-intelligence exports, saved snapshots, findings, access control, and safe recovery
Status: Source-reviewed troubleshooting protocol; offline checker tested; staging and production verification pending.
Source baseline: Engagement Intake source revision 3f246974276a5e582d09f8c48d21628b82626bc7, plugin header version 2.0.2 (source-reviewed, not a certified deployed version)
Last verified deployed version: Not established; deployment verification pending

Estimated reading time: 16–19 minutes.

Contact quality reporting can fail without displaying an obvious application error. A dashboard may render normally while a downloaded JSON report exposes small counts, a funnel mixes incompatible time windows, or a saved snapshot is mistaken for current evidence. This guide provides an ordered, privacy-conscious method for diagnosing inaccurate, stale, inaccessible, or potentially disclosive contact-quality reports. Operational contact activity is not, by itself, a scientifically validated measurement of service quality.

1. Purpose, scope, and diagnostic boundary

Use this guide when a report gives a surprising rate, inconsistent funnel, unexpectedly visible aggregate, contradictory finding status, stale snapshot, missing metric, failed export, or unexpected change after an administrative action. First establish whether the subject is an inquiry, a support case, a service-intelligence finding, a snapshot, or a report. These are distinct objects with different status and privacy rules.

Work only from approved access paths and synthetic or explicitly authorized data. Never paste live contact messages, sender identities, private attachments, authentication headers, database dumps, or export tokens into a public ticket. A boundaries.personal_data = false metadata value is a software assertion, not evidence that disclosure risk has been eliminated.

2. Symptoms and severity classification

Symptom Likely investigation Initial response
Small group visible, or suppressed percent with exact counts in JSON Serialization and disclosure control Stop external distribution; preserve an access-controlled evidence copy
Funnel numerator exceeds denominator Event-date and inquiry-cohort mismatch Flag comparison invalid pending reconciliation; do not clamp percentage
Different values on dashboard and saved snapshot Window, capture time, schema, cache, or source revision Record timestamps and versions; compare identical query boundaries
Export denied or missing User capability, request nonce, selected range, audit response Verify role and request context; do not bypass authorization
Finding transition fails or apparently reverts Confirmation text, row version, audit-write failure Refresh the finding; examine safe audit metadata before retrying
Missing cohort or unexpected null Suppression, empty denominator, disabled source, failed ingestion Distinguish protected, zero, unavailable, and not applicable
Private case information appears in public report Export boundary breach, aggregation or access-control failure Escalate as potential privacy incident immediately

Priority rule: Potentially identifiable output, unauthorized access, cross-tenant exposure, or exfiltration takes precedence over statistical correctness. Restrict affected sharing through authorized controls while preserving evidence; do not erase historical events to hide the symptom.

Cause

Determine the cause from the authoritative report payload, its source cohort, its authorization context, and its generation time—not from the chart alone. The following mechanisms are confirmed in the reviewed Engagement Intake source revision or are specific failure hypotheses requiring independent verification. A report can have more than one cause.

Diagnostic category Mechanism or failure hypothesis Decisive evidence
Disclosure control In the source-reviewed SC_EI_Analytics_Schema::rate() helper, a suppressed percentage can coexist with unsuppressed numerator and denominator values. Group-level suppression does not automatically protect overlapping totals or multiple date ranges. Full, access-controlled JSON serialization; effective minimum cohort; overlapping report comparisons; not merely a dashboard screenshot.
Population and date mismatch Inquiry, meeting, proposal, contract, and activation stages use differing date fields. Treating independent period counts as successive members of a single intake cohort can produce nonsensical rates. Report from_utc, generated_at, stage-specific event date predicates, membership and exclusion definitions.
Privilege or audience mismatch Source-reviewed administrative actions check separate WordPress capabilities for viewing, managing, and exporting analytics. Actual role assignments, plugin configuration, and downstream distribution still require verification. Actor role/capability mapping, authorized route, export audit event, recipient and sharing controls.
Stale or incomplete evidence Snapshot generation and retention are configurable; saved JSON and its digest represent a point-in-time artifact. A current dashboard need not match an older snapshot or a partially populated workflow. Snapshot timestamp, hash, version and window; scheduled-job status; workflow event history.
Concurrent or failed review Finding transitions use a row-version condition and attempt compensation after certain audit-write failures. A conflict, partial failure, or replay requires state and event-ledger reconciliation. Finding status, row version, typed confirmation, audit event, safe error code, and before/after values.
Data quality and interpretation Missing source categories, status mapping differences, late-arriving workflow events, erased records, small cohorts, or biased denominators can distort a reported measure even when the computation completes. Read-only authorized aggregate query, schema mapping, privacy state, missing-data summary, and exact metric definition.

Cause classification: Distinguish an observed source-code mechanism, an independently reproduced defect, and a plausible but unconfirmed operational cause. Do not label a symptom resolved because a refreshed chart looks normal.

Resolution

  1. Contain disclosure or access failures first. Where unauthorized sharing, cross-tenant access, or reidentification is suspected, stop further distribution using approved controls, preserve a restricted copy of the output and audit evidence, notify the authorized incident owner, and follow the applicable incident-response procedure. Do not publish the original JSON in a ticket.
  2. Freeze the diagnostic context. Record installed plugin identity (not only repository version), release/build or commit, report schema, range, generation time, minimum cohort, report audience, permission scope, and the nonsecret correlation identifier.
  3. Reproduce safely. Export only through an approved account or use synthetic fixtures. Run the independent checker in an isolated environment; compare its alerts with the raw payload, including nested base reports and combinations of totals, groups, and time windows. The checker is a diagnostic aid, not proof of anonymity.
  4. Reconcile measurement definitions. Recompute each rate as 100 × numerator / denominator only when the denominator is positive and the populations, event dates, exclusions, and event semantics are comparable. Otherwise mark the measure not comparable; do not silently truncate the numerator or force values into a 0–100% range.
  5. Apply proper disclosure controls before wider sharing. Review exact counts, suppressed fields, totals, complementary cells, time-series overlap, labels, metadata, and saved/exported copies. If required, replace exact small-group values with suitably protected aggregates and prevent reconstruction across related outputs. Validate the final serialized artifact, not only its UI.
  6. Repair the narrow authoritative defect. Address proven mapping, stale state, permission, scheduling, or aggregation defects in a version-controlled patch and isolated test environment. Reconcile finding transitions against audit events; preserve historical accountability. Do not edit database records manually to manufacture a consistent report.
  7. Rerun positive and negative tests. Verify authorized and denied users, genuinely zero vs suppressed cells, conflicting date windows, nested exports, stale snapshots, concurrent updates, failed audit writes, and repeat generation using synthetic inputs.
  8. Release only after approval. Require service-owner signoff, privacy assessment where applicable, a reviewed deployment diff, backup and rollback readiness, and an independently observed staging acceptance record. Record any unresolved scientific limitations in the article and the incident/issue record.

Resolution acceptance: The corrected output is accurate for a declared population and time window; authorized users receive only the data they are permitted to access; saved and exported JSON do not expose prohibited fields or reconstructable small groups; status and audit evidence agree; and a reviewer can reproduce the result from approved evidence. The source-reviewed release alone does not establish these production conditions.

3. Check the environment and permissions first

  1. Record the environment (local, staging, production), plugin build or commit, WordPress version, current UTC time, report schema, requested date range, and a pseudonymous correlation identifier.
  2. Identify the intended audience: authorized administrator, internal reviewer, customer, or public visitor. A report acceptable within restricted operations may still be unsafe for publication.
  3. Verify the administrative capability relevant to the action. Source-reviewed handlers check sc_intake_view_analytics to view, sc_intake_manage_analytics for managed operations, and sc_intake_export_analytics to export. Protected actions also use WordPress nonce checks.
  4. Confirm the actor selected one of the supported query windows: 7, 30, 90, 180, or 365 days. The source helper falls back to 90 days for unrecognized values.
  5. Check whether the report is a live dashboard calculation or a historical snapshot. A snapshot is a stored point-in-time artifact, not a continuously refreshed report.

Do not: disable role checks, reuse privileged nonce values, elevate a public user, or copy private production data into a local reproduction.

4. Understand the source-reviewed report contract

At the reviewed source revision, the base analytics payload declares sc-engagement-intake-analytics/1.0. The expanded dashboard declares sc-engagement-service-intelligence/1.0 and includes the base payload under base, together with support, collaboration, commercial, weekly_series, and finding_metrics. The defaults include analytics_minimum_cohort=5 and analytics_default_days=90; actual deployed settings may differ.

{
  "schema": "sc-engagement-intake-analytics/1.0",
  "generated_at": "2026-11-20 12:00:00",
  "from_utc": "2026-10-21 12:00:00",
  "range_days": 30,
  "minimum_cohort": 5,
  "rates": {
    "review_start": {
      "numerator": 9, "denominator": 12,
      "suppressed": false, "percent": 75.0
    }
  },
  "boundaries": {"aggregate_only": true, "personal_data": false}
}

Illustrative excerpt, not a current production export. Do not assume the sample is an exhaustive schema or that a value shown in boundaries proves enforcement. For an expanded export, inspect the nested base object as well as every added domain.

5. Reconcile observation windows and population membership

Define a measurement as population + eligibility rule + event + date anchor + time window + exclusions. For example, the base inquiry denominator counts inquiries created since from_utc with privacy_status <> 'erased'. The review-start numerator counts that same creation cohort whose review_started_at is non-null. In contrast, the source’s meeting stage counts distinct inquiry IDs from qualifying meeting offers created within the window; proposal and engagement stages anchor to their own publication, contracting, or activation timestamps.

This is not a single longitudinal cohort. Later-stage events may belong to inquiries created before the selected period. Consequently, a stage count can exceed the period’s inquiry count without an arithmetic bug, but the resulting comparison must not be represented as a within-cohort conversion rate.

For a reproducible cohort-based conversion calculation, define:

cohort = inquiries where created_at in [start_utc, end_utc)
        and privacy_status != "erased"
completed = members of cohort with qualifying event by cutoff_utc
rate_percent = 100 * completed / len(cohort) if cohort else undefined

Use a fixed end time and explicit event cutoff to avoid open-ended comparisons. Reconcile excluded, erased, reassigned, duplicate, and late-arriving records in an access-controlled environment. Do not expose underlying subject IDs in the public report.

6. Validate rates, denominators, and missing values

For a single well-defined cohort, the proportion is p = n / N with 0 <= n <= N, and percentage = round(100 × p, 1). A denominator of zero makes the percentage undefined, not 0%. A numerator greater than its denominator requires a membership or time-anchor investigation rather than silent truncation.

The reviewed SC_EI_Analytics_Schema::rate() implementation determines the suppression flag from the denominator only and retains both exact numerator and denominator even when it sets percent to null. Therefore a report may appear suppressed visually but disclose the protected rate’s underlying data in its JSON serialization. Any external release needs a separate, reviewed public-output transformation; the source-reviewed administrative export must not automatically be considered publishable.

Uncertainty: A binomial confidence interval is meaningful only when a probabilistic sampling model and an interpretable common denominator are justified. If a cohort were an independent Bernoulli sample, an illustrative standard error would be sqrt(p(1-p)/N). Operational administrative counts are not automatically random samples, and this formula does not correct selection bias, repeated observations, or mixed event windows.

7. Test statistical disclosure controls across the entire JSON

The source-reviewed grouping helper suppresses counts with 0 < count < minimum_cohort, replacing the label with Small cohort and the exact count with null. Zero counts are not suppressed by this helper. The rate helper behaves differently, as described above. A minimum-cohort threshold is only one control; it does not by itself guarantee anonymity.

Conduct four separate checks on any proposed public report:

  1. Direct identifiers: No names, email addresses, phone numbers, message bodies, precise identifying URLs, case identifiers, tokens, or sensitive free text in any nested field.
  2. Primary suppression: Each disclosive small cell has no exact serialized count, percent, or identifying label.
  3. Complementary suppression: Totals, subgroup counts, rates, cross-tabs, or overlapping windows cannot be subtracted to reconstruct hidden values.
  4. Contextual re-identification: Check rare group labels, public knowledge of a specific person, intersectional breakdowns, and chronological differencing across versions.

Example: If the total is 12 and a visible category is 10, the hidden remainder is exactly 2 even when that row displays Small cohort. Suppressing only the cell is ineffective. Suppress or coarsen additional cells/totals, aggregate categories, delay releases, or withhold the table after a documented disclosure-risk review.

These principles are consistent with the US Census Bureau’s disclosure-avoidance guidance and ONS statistical disclosure-control policy.

8. Investigate inconsistent groupings, blank categories, and zero values

Compare group labels and filters before declaring a count incorrect. The base source aggregates by source_page, inquiry_type, service_interest, status, fit recommendation, and engagement status. Some group queries exclude blank values; not every table uses the same date anchor or privacy filter. Thus subgroup sums should not be assumed to match an unrelated total.

Record whether a missing observation means:

  • 0: Observed zero under the defined query;
  • null: Suppressed, unavailable, or undefined (the meaning must be separately encoded);
  • Not applicable: The metric cannot logically be computed;
  • Unknown: Source ingestion or reconciliation has not established a value.

Reconcile taxonomy changes and mappings in an authorized test environment. When labels are free text or rare, treat the label itself as potentially identifying.

9. Verify authorization, consent, privacy status, and audit history

Start with the relevant authorization boundary, then inspect sanitized, access-controlled audit evidence. For inquiry-based metrics, examine whether the record was created, modified, restricted, or erased and which period the report covers. A valid consent ledger entry is evidence of a recorded action, not proof of an unrestricted legal basis for any downstream analytics use.

The Privacy and Retention Center source describes states including active, restricted, erasure_requested, erased, and archived. Its documented process includes identity checks, legal-hold review, approval, execution, verification, and minimal tombstone evidence. An erased record may be excluded from particular query paths, but that does not prove every historical snapshot and derivative export was retroactively reconciled.

Check that authorization failures are denied and audited appropriately. Never relax protection merely to make an expected count appear.

10. Diagnose service-intelligence finding lifecycle failures

Source-reviewed finding statuses are candidate, reviewing, actioned, dismissed, and closed. The reviewed write path requires a typed confirmation of the form UPPERCASE_STATUS + space + PUBLIC_ID, updates with an optimistic row_version condition, and records a finding event. A concurrent update returns service_intelligence_transition_conflict. If event recording fails, the code attempts to restore the prior state and returns service_intelligence_event_failed.

  1. Refresh the current finding before retrying, and compare its status and row version.
  2. Verify the requested transition, actor capability, typed phrase, decision note, and audit event.
  3. If a conflict occurs, reconcile the new state rather than blindly replaying a prior transition.
  4. If an event write fails, inspect the authorized audit trail and verify compensation actually persisted; do not assume a rollback succeeded solely because an error message said so.

Human-reviewed aggregate findings are operational observations. They must not silently initiate proposals, communications, or service decisions.

11. Check snapshot integrity, freshness, and retention

The source-reviewed snapshot path saves a JSON payload and a SHA-256 hash, then records the selected range and timestamps. A current snapshot check compares the stored plugin version and elapsed time against analytics_snapshot_fresh_days (default: 7 days). Authorized managers can create a snapshot using SNAPSHOT SERVICE INTELLIGENCE.

For an authorized copy of a snapshot, verify the hash over the exact stored JSON bytes, not a prettified or reordered representation:

python3 -c 'import hashlib,sys; print(hashlib.sha256(open(sys.argv[1],"rb").read()).hexdigest())' snapshot.json

The resulting digest supports byte-level integrity against a trusted recorded digest. It does not validate the population definition, absence of personal data, scientific interpretation, database consistency, or authenticity of the claimed source. A local JSON export may be formatted differently from the stored snapshot; do not compare hashes of differently serialized files.

Review the configured snapshot retention and downstream copies. Never delete or overwrite original evidence to repair a historical discrepancy.

12. Run the independent offline diagnostic checker

The companion contact_report_check.py is a small Python standard-library utility intended for synthetic fixtures or strictly authorized local aggregate JSON only. It is not part of the WordPress plugin, makes no network calls, and does not alter production records. It checks schema identifiers, timestamps, cohort thresholds, nested direct-identifier patterns, grouped suppression, rate arithmetic, exact small rate counts, and selected wrapper/base consistency issues.

python3 contact_report_check.py fixtures/synthetic_baseline.json
python3 contact_report_check.py fixtures/synthetic_faults.json \
  --output findings-synthetic.json
python3 -m unittest discover -s tests -v

The baseline fixture should return zero structural findings; the deliberately unsafe fixture is expected to return an error exit code. Execute in an isolated working directory. The checker does not establish anonymity or detect every differencing attack, causal error, permission issue, or operational failure. The baseline’s zero-finding result is limited to the rules explicitly implemented.

13. Reproduce with safe positive and negative cases

Test ID Controlled input or action Expected result
CQR-T01 Authorized manager opens a valid period Matching schema, UTC window, and appropriately limited content
CQR-T02 Unauthorized role tries analytics export Access denied, without private data in response or logs
CQR-T03 Group count 2 with minimum cohort 5 No identifiable label, exact count, or reconstructable complement in public output
CQR-T04 Rate has denominator 4, numerator 2 No exact protected counts in public output even if percent is null
CQR-T05 Later-stage event belongs to older inquiry Documented cohort/window difference; no misleading conversion claim
CQR-T06 One reporting denominator is zero Undefined percentage with explicit reason, not invented 0%
CQR-T07 Two time-window snapshots differ by one record Complementary-disclosure assessment before any public release
CQR-T08 Concurrent finding transition Conflict reported; no silent lost update
CQR-T09 Injected audit-write failure in isolated staging State and event reconciled; failure remains traceable
CQR-T10 Historical snapshot compared with live report Capture-time/version difference explained without overwriting evidence
CQR-T11 Erasure/restriction scenario in synthetic staging Authorized privacy workflow verified across queries, snapshots and exports
CQR-T12 Rare category and overlapping table totals No ability to derive a protected small count through differencing

These are staging acceptance cases, not claims that those staging operations were executed. Never conduct destructive fault injection or sensitive-data release tests on production.

14. Troubleshooting decision matrix

Observed condition Check next Safe corrective action
Saved report differs from dashboard Snapshot time, range, plugin version, embedded base payload Reproduce using fixed time bounds and matching schema
Percentage unexpectedly over 100% Whether event and inquiry records share membership and date anchors Relabel metric or calculate a genuine fixed-cohort rate
Small cell appears hidden on screen Complete HTML, download, JSON, logs, caches, overlapping reports Contain release; design complementary suppression and retest
All cohort values are null Threshold, true zeros, null semantics, cohort mix, permissions Improve reporting semantics and validate query filters
Export action fails Role, nonce, range, audit errors, response headers Reissue under approved session; do not bypass controls
Finding status seems reverted Current row version, confirmation, event write, compensation Preserve evidence; reconcile current state before controlled retry
Financial total included despite disabled flag Actual serialized payload vs financial.included Hold external export and review inclusion logic
New version fails an old acceptance test Schema migration, version-bound snapshot, changed field semantics Run comparative contract checks; do not reuse stale signoff

15. Incident containment, recovery, and escalation

  1. Contain: Suspend affected public distribution or disable the specific unsafe export route using an approved reversible control. Do not broadly destroy analytics or audit infrastructure.
  2. Preserve: Capture sanitized timestamps, versions, report hash, schema ID, query window, expected/observed behavior, actor role, and minimal synthetic reproduction.
  3. Classify: Distinguish privacy incident, authorization defect, computation/mapping defect, stale-data issue, and scientific-interpretation issue. More than one category may apply.
  4. Diagnose: Trace the transformation from authorized source records to database query to aggregate serialization to dashboard, JSON, cache, and downstream consumer.
  5. Correct: Implement the smallest reviewed change, add regression tests for the failure mode, and run isolated staging verification.
  6. Reconcile: Validate historical snapshots, downloadable reports, disclosure notifications, authorized retention/erasure procedures, and downstream recipients where necessary.
  7. Release: Require owner approval and an evidence-based signoff. Restore publication only after the disclosure boundary and metric semantics are demonstrably acceptable.

Keep logs nonsecret and controlled. OWASP logging guidance recommends excluding or appropriately protecting sensitive fields while retaining useful security event information. Do not post a live export as a public bug reproduction.

16. Evidence package and acceptance criteria

An independent reviewer should be able to inspect the following items without requiring access to confidential contact content:

  • Incident ID, affected environment, component, source revision, plugin build, and reporting schema.
  • Defined population, event membership, selection and exclusion rules, UTC start/end, and cohort threshold.
  • Sanitized observed result and a minimal synthetic reproduction of the discrepancy.
  • Complete list of published fields, nested JSON paths, and proposed-publication transformations.
  • Privacy-risk analysis including complementary suppression and possible differencing across reports.
  • Offline test output, staging test evidence, negative-case results, and unresolved findings.
  • Changeset, approval owner, rollback plan, post-release checks, and disclosure-handling decisions.

Accept only when: authorization is verified; reported rates have defensible populations; the public output cannot trivially expose small counts or direct identifiers; negative cases fail safely; finding transitions remain auditable; snapshots are version/revision traceable; and an independent reviewer has approved the limitations and release boundary. A simple passing checksum or green unit test is not sufficient.

17. Interpretation limits and deployment verification

This article is based on review of publicly accessible repository files at commit 3f246974276a5e582d09f8c48d21628b82626bc7, not an inspection of the live WordPress deployment. The repository source shows specific logic and documented defaults; it does not establish the actual production configuration, data quality, installation revision, audience permissions, consent compliance, or end-to-end disclosure safety.

The companion Python suite exercises only its own structural/heuristic checker. It has not executed the listed staging cases, directly audited live database records, proven statistical validity, or independently measured service quality. A future deployment review must reconcile current code, schema migrations, privilege maps, public routes, privacy policies, and historical saved outputs.

18. Technical references

  1. Sustainable Catalyst, Analytics schema and suppression/rate helper, source revision 3f24697.
  2. Sustainable Catalyst, Base analytics query and snapshot repository, same revision.
  3. Sustainable Catalyst, Service-intelligence aggregation and finding lifecycle, same revision.
  4. Sustainable Catalyst, Service-intelligence schemas and evidence validation, same revision.
  5. Sustainable Catalyst, Privacy and Retention Center operational guidance, same revision.
  6. US Census Bureau, Disclosure avoidance and complementary cell suppression.
  7. Office for National Statistics, Statistical disclosure control policy.
  8. NIST, SP 800-122: Guide to Protecting the Confidentiality of Personally Identifiable Information.
  9. NIST, SP 800-53 Rev. 5: Security and Privacy Controls.
  10. OWASP, Logging Cheat Sheet.
Scroll to Top