Worked Examples
Validate scientifically contact quality reporting — Contact and Engagement Platform
Validate scientifically contact quality reporting — Contact and Engagement Platform Application: Contact and Engagement Platform Status: Substantive initial guide; implementation and exact controls not yet certified. Study design
Application: Contact and Engagement Platform
Area: Engagement Analytics & Service Intelligence
Guide type: Scientific validation protocol and reporting-quality acceptance
Status: Source-reviewed guidance; deployed and independent validation pending.
Estimated reading time: 20–24 minutes
Primary acceptance: Reports suppress identifiable records and disclose limitations.
1. Goal
Determine whether a Contact and Engagement report answers a defined operational question using accurate denominators, defensible time windows, privacy-safe aggregation, and traceable methodology. The primary release criterion is that identifiable records are not disclosed and limitations are not concealed. Secondary criteria are numerical correctness, reproducibility, access control, and independent review.
In this guide, contact quality means a protocol-defined quality of the contact-handling process (for example, whether eligible inquiries began review within a specified time). It is not a judgment about the sender, the commercial value of a contact, their protected characteristics, or the scientific truth of a research question. The repository includes operational analytics and human-reviewed aggregate findings, but does not define an independently validated, universal contact-quality score. Analytics Operations; Engagement Analytics and Service Intelligence.
2. Requirements
- Authorized access to private analytics; an additional explicit authorization before exporting or releasing aggregate results. Never use public support records to reconstruct private identities.
- Read-only access to the source revision, a documented reporting protocol, UTC start/end and data-cutoff timestamps, and the permitted record universe.
- Separate accounting for erased, duplicate, withdrawn, incomplete, and missing-status records; document whether each is excluded or retained.
- A synthetic staging fixture and an independent reviewer who did not implement the reporting query. Use a dedicated, disposable test database for integration tests.
- Python 3.10+ for the supplied offline validator; no external packages, credentials, network connection, or live records are needed.
Verification status: Code and documentation below were inspected at commit 3f246974276a5e582d09f8c48d21628b82626bc7 (August 8, 2026). That is a source snapshot, not proof of a current deployed release or completion of security, privacy, or scientific acceptance.
3. Study question, units, and estimand
Define the decision question before looking at the chart: Among distinct eligible inquiries opened during the reporting window and observed long enough to evaluate the outcome, what proportion satisfied the prespecified process criterion? State whether the report is an internal administrative census or a sample. Set the observational unit to a distinct canonical inquiry unless another unit is justified.
For each rate, record its numerator, denominator, time origin, observation cutoff, completion rule, missingness policy, and whether repeated contacts count once. The protocol must distinguish contact activity (messages, responses, tickets) from unique people and from unique inquiries. Repeated messages can otherwise inflate a numerator and create apparent improvement without improved response quality.
4. Source-reviewed architecture and authority boundaries
| Layer | Observed code behavior | Validation implication |
|---|---|---|
| Base analytics | SC_EI_Analytics_Repository::dashboard() computes inquiry, review, decision, meeting, proposal, communications and operations counts; grouped breakdowns and medians. |
Verify every SQL cohort and unit of measurement. |
| Minimum cohort | analytics_minimum_cohort defaults to 5; runtime floor is 2. Group suppression nulls a small count and replaces its label. |
A source-level suppression flag does not prove safe publication. Require a separately reviewed release policy. |
| Rates | rate() suppresses the percent for a small positive denominator, but retains the exact numerator and denominator. |
Check all serialized fields, not just chart visibility. |
| Service intelligence | Builds on base analytics and adds support, workspaces, proposals, weekly aggregates and human-reviewed findings. | Prove consistency across inherited and derived fields. |
| Export and snapshots | Permission-checked exports, JSON snapshots and SHA-256 hashes. | Hash reproducibility shows byte integrity, not anonymity, correctness or consent. |
Source: analytics repository, analytics schema, service intelligence repository, and analytics administration.
5. Define the population and observation period
Freeze a half-open UTC creation cohort [start_utc, end_utc) and an independent data cutoff. An outcome measured after end_utc may still belong to an inquiry in the cohort, provided the report says so and the outcome was visible by the cutoff. Do not divide a monthly count of meeting events by an unrelated monthly count of newly opened inquiries and label the result a conversion probability.
Document source records, unique identifiers used inside the protected computation, inclusion/exclusion reasons, status mappings, time-zone conversion, status-as-of rules, and lifecycle version. Remove identifiers before the output crosses the trusted analytics boundary. Avoid shrinking denominators by excluding unresolved cases without displaying their missingness explicitly.
6. Define contact-quality indicators before computation
| Indicator | Candidate definition | Important caveat |
|---|---|---|
| Review-start rate | Eligible inquiries with a recorded review start / eligible inquiries in creation cohort | Measures recorded workflow progress, not quality of review. |
| Timely follow-up | Inquiries with a qualifying follow-up within a prespecified service window / inquiries eligible and fully observable for that window | Do not mix time-unobserved cases into the denominator. |
| Decision documentation | Cases with an auditable decision by the cutoff / cases eligible for a decision | Completeness and decision quality are different constructs. |
| Complaint resolution | Resolved cases in a common inception cohort / all eligible support cases | Different issue mix and closure coding can confound comparisons. |
These are proposed evaluation definitions, not certified Platform features. Assign an outcome owner and a documented operational definition for any displayed contact-quality indicator.
7. Procedure
- Register the analysis: record question, units, UTC reporting window, data cutoff, source revision, selection rules, response-time standard, hypothesized confounders, and intended audience.
- Apply authorization: confirm analytics access and a separately authorized export route. The source checks
sc_intake_view_analytics,sc_intake_manage_analytics, andsc_intake_export_analyticsfor different functions. Source authorization checks. - Freeze protected inputs: generate a read-only cohort manifest inside the restricted environment; record exclusion counts but do not export row identifiers, names, emails or messages.
- Recompute independently: calculate counts, rates, median durations and grouped distributions from the same cohort. Confirm numerator units and timing semantics.
- Apply disclosure controls: suppress small cells, sensitive categories, exact low counts, complementary cells and reconstruction risks across related reports.
- Verify lifecycle: compare the report to a pinned JSON snapshot, independent reviewer notes, and authorized access evidence. Approve publication only after both scientific and privacy gates pass.
8. Recompute numerators and denominators
For a homogeneous inception cohort, use n unique eligible inquiries and x distinct inquiries satisfying the prespecified outcome. The descriptive proportion is p = x / n, with 0 <= x <= n. If an event-level numerator does not share the creation-date cohort and a denominator is tied to creations, the ratio does not estimate a cohort probability.
The inspected base repository counts inquiries by created_at, but meeting, proposal and activation numerators can depend on a different record’s event timestamp. This is not necessarily wrong for operational activity counts; it is wrong to interpret the mixed-window result as a same-cohort conversion rate without reconciliation. Compare raw query membership inside the private test environment. Source query definitions.
# Synthetic-only example, not a live query
eligible = 80 # distinct inquiries created in the cohort
review_started = 56 # members of that SAME cohort
assert 0 <= review_started <= eligible
rate_percent = round(100 * review_started / eligible, 1)
assert rate_percent == 70.0
9. Minimum-cohort, complementary, and label disclosure controls
In the source, a grouped cell with 0 < count < k is relabeled Small cohort and its count becomes null. The number of suppressed rows may still be visible. Separately, rate() returns exact numerator and denominator even when it nulls percent. The minimum can be configured down to 2 at runtime. These are reasons to validate the whole serialized export, not to rely on a dashboard badge.
The companion proposed publication gate requires k >= 5 as a review floor, suppresses the exact numerator, denominator and percentage for small or complementary-sensitive rates, and rejects free-text dimensions. Five is a methodological baseline, not a guarantee of non-identifiability. Check overlapping windows, totals, adjacent categories and prior releases for reconstruction attacks. Contextual categories can still identify a person even with no email address.
# Example: denominator below k; an exposed numerator defeats suppression
source_style = {"numerator": 3, "denominator": 4,
"suppressed": True, "percent": None}
# Do NOT publish source_style as an anonymous aggregate.
publication = {"numerator": None, "denominator": None,
"suppressed": True, "percent": None}
assert publication["numerator"] is None
10. Quality of groups and source-page labels
Examine each grouping dimension before release. source_page, product, component or service-interest values may be low-frequency, user-influenced or overly precise. Aggregates can leak through labels even when counts are suppressed. Use an approved taxonomy, avoid exporting original source URLs and free text, and review group collapse or generalization for semantic validity.
A single global total and all but one visible category count can reconstruct the withheld count by subtraction. Prefer grouped release tables designed together, not cell-by-cell masking after separate exports. Group implementation.
11. Missingness, exclusions, and bias
Report the number of erased records excluded from the base cohort; restricted or erasure-requested states need separate legal and privacy decisions because the code’s primary filter explicitly checks privacy_status <> 'erased'. Count unresolved and follow-up-ineligible records separately. Do not interpret erasure-related missingness as random.
Document self-selection by contact channel, service type, geographical reach, seasonality, staff coverage, changing intake forms, reminder automation, and case complexity. Pre/post changes without a matched comparison or appropriate design cannot establish a causal effect of process improvements. Report denominators and the meaning of “missing” rather than quietly treating missing outcomes as successes or failures.
12. Uncertainty and quantitative interpretation
A full administrative census of observed cases has no sampling error for that finite recorded population, but can still have selection bias, measurement error, missingness, and temporal instability. Do not present a confidence interval as correcting those problems.
For a genuinely appropriate model of independent Bernoulli outcomes, the Wilson interval illustrates sampling uncertainty:
p̂ = x / n; d = 1 + z²/n; center = (p̂ + z²/(2n))/d; margin = z × √[p̂(1−p̂)/n + z²/(4n²)]/d.
For the synthetic example x = 56, n = 80, the observed rate is 70.0%; an illustrative 95% Wilson interval is about 59.2%–78.9%. This is not a claim about the current platform or actual senders. The script provides a reproducible calculator and returns no interval for a zero denominator.
from validate_contact_quality import wilson
lo, hi = wilson(56, 80)
print(f"rate=70.0%, illustrative interval={lo:.1%} to {hi:.1%}")
13. Snapshot and provenance verification
The source stores the JSON output, generated timestamp, window length, actor reference, and hash('sha256', $json). Verify the original JSON bytes exactly when reproducing that hash; parsing and reserializing can change whitespace or key order. A matching hash supports integrity of the stored payload, not correctness of source SQL or disclosure safety.
from pathlib import Path
import hashlib
# Use a synthetic or an explicitly authorized private JSON file.
raw = Path("snapshot.json").read_bytes()
print("sha256:", hashlib.sha256(raw).hexdigest())
# Compare to the stored hash before any normalization/pretty printing.
Record the query implementation revision, settings (especially cohort minimum), migration state, clock/time zone, export permission, snapshot time, reviewer, privacy review and final release decision. The source’s boundaries.personal_data = false is a declared metadata value, not an independent content-security proof. Snapshot creation.
14. Reproducible offline validation
The included validate_contact_quality.py accepts a synthetic-only, proposed review packet with controlled dimensions. It checks population coherence, rate arithmetic, disclosure rules, provenance, review status, dates, and missingness declarations. The packet schema is not a real Contact and Engagement endpoint or a certified security control.
cd sc-contact-quality-scientific-validation
python3 -m unittest -v test_validate_contact_quality.py
python3 validate_contact_quality.py fixture-valid-synthetic.json
python3 validate_contact_quality.py fixture-invalid-synthetic.json
# Last command is expected to exit with status 1.
Offline validation cannot discover unauthorized WordPress routes, database grants, an actual privacy breach, reconstruction using other published reports, or whether source and staging configurations match. These require controlled integration tests and independent review.
15. Independent reviewer and preregistered counterexamples
Use a second reviewer to reproduce at least one total, one rate, one grouped breakdown, and one time-to-event statistic. Give the reviewer access only to permitted material and store a blinded or aggregate-only receipt. Include adversarial examples: a contact identified by a unique category label; a hidden numerator still present in JSON; a suppression bypass via narrow date ranges; an erased inquiry mistakenly included; an outcome counted on its event date outside the creation cohort; and two reports whose difference reconstructs an individual.
Record every failed test and corrective change against an immutable review version. Do not retroactively revise the original protocol without explaining the change and its effect on results.
16. Symptoms
| Symptom | Potential cause | First evidence to examine |
|---|---|---|
| Percent hidden but counts visible | Only display-level rate suppression | Raw authorized JSON payload |
| Conversion rate exceeds 100% | Different event-time and inception cohorts | Numerator, denominator and timestamps |
| Repeat small cohort label | One suppressed row per original category | Group output row cardinality |
| Sudden trend break | Erasure, migration, form or status mapping change | Versioned definitions and exclusion log |
| Report counts disagree with dashboard | Snapshot age, different time zone or query version | JSON bytes, digest, revision and cutoff |
| Private field appears in report | Unreviewed dimension or finding evidence | Fields and values in sanitized offline copy |
17. Cause
Typical causes include ambiguous observational units; missing case maturity rules; inconsistent SQL time filters; exact counts embedded in ostensibly suppressed objects; user-influenced grouping labels; stale snapshots; and undocumented exclusions. The inspected finding-evidence schema rejects a list of direct personal-data keys and common email, phone and IP patterns, but heuristic matching cannot establish comprehensive anonymity. Treat the policy as defense in depth, not proof. Evidence restriction implementation.
18. Troubleshooting
- Stop external export: keep raw dashboard payloads and relevant logs in an authorized private workspace, not a public support ticket.
- Recheck permission and context: identify report actor, tenant or organizational context where supported, dashboard version, settings and generated timestamp.
- Reconstruct the population: compare creation-cohort query, event-date queries, exclusion counts and unique-inquiry handling, without exporting identifiers.
- Inspect all output fields: search serialized JSON for names, emails, URLs, free text, identifiers, low counts and reconstructable pairs. Review both keys and string values.
- Check arithmetic: require numerators no larger than denominators for claimed same-cohort rates, and report zeros/nulls without inventing values.
- Review privacy events: evaluate erasure and retention interactions, and whether previously exported snapshots require withdrawal or replacement.
- Verify repeatability: rerun with fixed synthetic fixtures, compare hashes and restore the last accepted aggregate output when differences are unexplained.
19. Resolution
Do not delete original private case records merely to make a chart pass. Correct the query, permission scope, grouping taxonomy or publication transform in staging; preserve the previous source hash and reviewer decision. Replace or retract unsafe public exports through the authorized publication process, then assess derivative disclosures and cached copies. Escalate confirmed identity exposure to the privacy/security owner under the organization’s incident policy.
For a denominator defect, re-run the entire cohort under the documented time rule and publish an explicit correction note rather than silently overwriting historical rates. For a small-cell failure, suppress both the visible percentage and the exact underlying fields, and check complements and linked releases before reauthorization.
20. Verification
Acceptance requires: (1) authorized access checked; (2) precisely defined observational units, cohort, cutoff and exclusion rules; (3) reproducible totals and rates; (4) no disclosed direct identifiers; (5) effective cell and complementary suppression across all released representations; (6) documented missingness, bias and uncertainty; (7) hash-verified audit/snapshot history; and (8) independent human and privacy sign-off before external release.
Run the included 24-case staging matrix using synthetic records and a disposable database. Mark each case PASS, FAIL or NOT RUN, preserve concise evidence artifacts, and block publication on any high-severity failure. The offline checker cannot substitute for this staging acceptance gate.
21. Staging test plan and acceptance criteria
| Case family | Positive test | Negative test / rejection expected |
|---|---|---|
| Access | Staff with analytics role reads authorized aggregate | Anonymous or unauthorized actor cannot retrieve private report |
| Cohort | Unique inquiry denominator matches frozen cohort | Event-date numerator mixed with creation-date denominator |
| Privacy | Approved category and safely reportable count | Low-count group, direct email, nested identifier, differencing leak |
| Consistency | Independent recomputation matches stored snapshot | Revised query or mutated JSON has mismatched evidence hash |
| Lifecycle | Reviewer signs off with retained rationale | Unapproved finding cannot trigger automated external decision |
22. Interpretation, limits, and reporting boundary
Operational records can support descriptive statements about workflow performance. They generally do not validate whether incoming requests are scientifically meaningful, fairly handled, economically valuable, or causally improved by a platform change. A high conversion rate may reflect contact mix, marketing, eligibility criteria, or selective follow-up rather than better service.
Keep raw evidence and participant information restricted to the original authorized purpose. Published findings should state the population, period, data source, definitions, numerator/denominator, suppression policy, missingness, uncertainty assumptions, reviewer, conflicts of interest, and known implementation limitations. Be clear whether the result is a synthetic demonstration, a private administrative estimate, or an independently accepted public statistic.
23. Technical references
- Inquiry Analytics and Operational Intelligence — operating documentation.
- Engagement Analytics and Service Intelligence — reporting and governance documentation.
- SC_EI_Analytics_Repository — source counts, timing, grouped suppression, snapshots.
- SC_EI_Analytics_Schema — minimum-cohort, rate and supported windows.
- SC_EI_Analytics_Admin — private export capability and nonce.
- SC_EI_Service_Intelligence_Repository — aggregate dashboard and review findings.
- SC_EI_Service_Intelligence_Schema — evidence privacy filters.
- SC_EI_Inquiry_Repository — authoritative inquiry fields and privacy status.
- Analytics operations repository checks and Service intelligence privacy/operations checks.
- NIST/SEMATECH e-Handbook of Statistical Methods — study design and interpretation, general reference.
- EQUATOR Network — scientific reporting guidance, as appropriate to the study type.
- NIST Privacy Framework — privacy-risk assessment, general reference.
Source pin: 3f246974276a5e582d09f8c48d21628b82626bc7. Source-review date is not a current production certification, and none of these references substitutes for independent scientific, security or privacy assessment.
