Worked Examples

Validate scientifically support article lifecycle — Product Support and Feedback Platform

Validate the support-article lifecycle through controlled tests of WordPress publication states, editorial review, article revisions, public discovery, and access permissions. This scientific validation guide provides reproducible negative controls and auditable evidence criteria while distinguishing draft confidentiality from a separately enforced approval-before-publication policy.

ProductProduct Support and Feedback PlatformComponentSupport Knowledge Base — Editorial Governance and Article IntegrityUpdatedNovember 22, 2026Reading time26 minutes

Application: Product Support and Feedback Platform
Product component: Support Knowledge Base, Editorial Governance, Article Integrity, and Content Governance
Source version reviewed: Plugin 7.8.1; pinned repository commit 29a2bbfec41bdae059d31eff1aac1b6bfea9e129
Last verified deployed version: Pending
Article type: Scientific Validation / Validation Procedure
Estimated reading time: 23–28 minutes

Validate the support-article lifecycle with independently observable tests of WordPress publication status, editorial assignments, authoring revisions, public discovery, and approval evidence. This procedure distinguishes draft confidentiality from mandatory editorial approval and uses reproducible counterexamples, privacy-safe audit methods, and uncertainty reporting to evaluate whether the lifecycle behaves as claimed.

1. Goal

Determine whether unpublished Support Articles remain inaccessible to an unauthorized reader, and separately determine whether every public article meets the organization’s review, approval, integrity, and verification policies. The primary confidentiality claim is an anonymous visitor cannot retrieve a draft, pending, private, or future article’s protected content through the live article URL, the Knowledge Base, search, feeds, sitemap, preview, or REST endpoints. Passing this test is necessary but does not establish that the content was editorially approved before it appeared publicly.

A lifecycle is accepted only when the observed state, authorization decision, publication time, editorial history, and indexed representation can be reconciled to the same article revision. Treat the WordPress database, anonymous transport responses, browser listings, caches, third-party indexes, and audit metadata as distinct evidence sources.

2. Requirements

  • Authorized staging administrator and a separate anonymous test client, ideally in a clean browser or isolated shell without cookies.
  • A disposable staging site with the Product Support and Feedback Platform installed, backed up, and identified by exact plugin Git commit, WordPress version, and configuration.
  • At least two synthetic Support Articles with unique nonpersonal marker strings, plus known published, pending, scheduled, private, and editorial-review controls.
  • Read-only access for post-status and metadata reconciliation, and approved access to relevant editorial audit records.
  • A test plan that covers the customized Knowledge Base and standard WordPress routes, caches, search, feed, sitemap, authenticated API, and unauthenticated API.
  • Explicit approval before creating, republishing, deleting, or demoting any content in staging; do not run mutation tests in production.

3. Source baseline and implementation map

The reviewed repository is Content-Catalyst-LLC/sustainable-catalyst-product-support-feedback. Its WordPress plugin header reports version 7.8.1. The Knowledge Base foundation uses sc_support_article and the /support/guides/ permalink family. Relevant source components have their own version declarations; these are not interchangeable with the installed plugin’s version:

Component Reviewed identity Primary responsibility
Knowledge Base foundation SCFS_Knowledge_Base_Foundation, 5.4.0 Article post type, public browser, WordPress REST records
Editorial Governance SCFS_Editorial_Governance, 5.5.0 Editorial state, assignments, transitions, notes, approval metadata, native-status synchronization
Article Integrity SCFS_Support_Article_Integrity, 5.2.8 Advisory structural/content assessment; does not publish
Content Governance SCFS_Support_Content_Governance Ownership, review cadence, manual verification and governance queue
Integrated Knowledge Base SCFS_Integrated_Knowledge_Base Public browser and documentation import

The source includes both WordPress and advisory FastAPI logic. Do not confuse a passing FastAPI evaluate_editorial_transition result with a successful WordPress authorization or publication decision. WordPress remains authoritative for publication status and persisted editorial metadata.

4. Critical distinction: article publishing is not approval-gated by this filter

Source-review finding: SCFS_Editorial_Governance::enforce_publication_gate() begins with an explicit early return for sc_support_article. Consequently, the reviewed editorial filter does not independently demote a Support Article from publish or future when editorial approval is absent. The plugin also synchronizes _scfs_editorial_state from native WordPress status: draft→draft, pending→submitted, publish→published, future→scheduled, and private→archived.

// Abbreviated source behavior, not a suggested security control:
if (($data['post_type'] ?? '') === 'sc_support_article') {
    return $data; // Native support article Publish / Update is preserved.
}

This design can preserve the requested publish-on-save editorial workflow, but the scientific question changes. A draft is ordinarily private because WordPress has not published it. That does not prove a separate reviewer must approve a revision before an editor with publishing rights can publish it. The article therefore tests the two properties independently and does not describe the approval gate as mandatory for this post type. A stricter approval-before-publication policy would require a separately reviewed change, explicit owner authorization, and end-to-end staging evidence.

5. Study design and definitions

Use a prospective, adversarial, paired validation study: first capture the configured baseline, then run the same anonymous access probes against otherwise identical synthetic articles across lifecycle states. The primary unit is an article–revision–surface–observer observation; it is not a human participant. Do not inflate the sample size by counting ten endpoints for one article as ten independent articles. The comparison is between authorized public states and nonpublic states, with editorial approval and scientific verification measured separately.

Define visibility as retrieval of actual protected content, metadata, marker text, or a cached copy—not just a successful HTTP 200 for a general page. Define approval as a documented, authorized editorial action tied to a specific content hash. Define verification as a distinct human assessment of factual and technical correctness, supported by the version, reviewer, date, and evidence. A published post, a high quality score, and an approval marker are not synonyms.

6. Pre-registered hypotheses

Hypothesis Adversarial test Decision rule
H1: Nonpublic content remains nonpublic Anonymous access to every tested route after each state transition No protected draft text or metadata returned
H2: Editorial approval is mandatory before publication Attempt native Publish with editorial state draft using a publisher role If publish succeeds, reject H2 for that configuration; do not misreport H1
H3: Private editorial records stay private Inspect REST, page markup, exports, logs, cached HTML, and search snippets Zero private-note or assignment leaks
H4: Approval is revision-specific Modify an approved revision and compare approval hash with current content Detect and report content drift; require review as policy specifies
H5: Scheduled and expired transitions are correct Clock-controlled staging observations; cron and WordPress scheduling Visibility matches actual post status and approved effective date
H6: Public discovery is consistent Compare canonical URL, WordPress REST, SCFS REST, KB browser, search, feed, and sitemap No nonpublic record appears in any unauthenticated discovery surface

7. Population, sampling, and exclusions

Construct a site-level inventory of every sc_support_article record using a status-explicit query. Stratify by draft, pending, future, publish, and private, as well as owner, author, product, age, revision count, publication route, and cache category when appropriate. Use synthetic articles for write tests. Predefine exclusion rules for corrupted fixtures, missing post IDs, access that cannot be made truly anonymous, expired credentials, and partial site migrations; record exclusions rather than silently dropping them.

When evaluating an existing corpus, report the count eligible per status, count sampled, and count with complete surface observations. Do not infer complete population coverage from the integrated Knowledge Base browser’s all_published_articles() query: the reviewed implementation requests at most 500 published posts in one retrieval. A missing result in that browser is not itself proof of correct confidentiality.

8. Authority and threat model

Test at least these roles: anonymous visitor; authenticated subscriber or sender without article editing rights; author/editor with edit_post; user with edit_posts but without target-specific rights; approver; and administrator. Record actual capability grants rather than relying on human-readable role names. A preview token or logged-in browser can invalidate an anonymous test: clear cookies, authorization headers, query nonces, and session storage before collecting an anonymous observation.

Threats include direct-ID enumeration, route guessing, cached drafts after demotion, parameter manipulation such as include_unpublished=1, exposure through search or feeds, external indexing, REST projections of editorial notes, bulk operations, and automated import/publication. A site with no observed leak can still have untested roles, endpoints, caches, time windows, or plugin interactions.

9. Method and evidence

For every action, retain a nonpersonal evidence row with study case ID, WordPress post ID or pseudonym, content revision, pre/post post_status, editorial state, test actor class, route, timestamp in UTC, transport status, whether a unique synthetic marker appeared, relevant access-control result, cache bypass status, and evidence hash. Separate these observations from interpretations such as “approved,” “quality assured,” or “safe.” Record the exact commit of the scripts and source tree used to derive expected behavior.

Use a versioned protocol with a frozen pass/fail rubric. For failed cases, preserve status codes, sanitized headers, content hashes, plugin logs stripped of personal data, audit event IDs, and authorized reviewer notes. Do not upload actual draft bodies, participant identities, access tokens, or private editorial comments to public tickets.

10. Publication state contract

WordPress state Anonymous content expected Editorial meaning in source
draft Not retrievable draft
pending Not retrievable submitted
future Not retrievable until effective publication scheduled
publish Publicly retrievable published (not proof of prior approval)
private Not retrievable anonymously archived

Native WordPress visibility and the plugin’s editorial-state metadata may momentarily differ during a change; test the persisted state and anonymous result after hooks and cache invalidation complete. Test revisions separately from the parent post; an authenticated revision preview is not an anonymous public view.

11. Public surface matrix

For each synthetic nonpublic article, test nine surfaces: canonical article URL; scfs/v1/knowledge-base/articles listing; scfs/v1/knowledge-base/articles/{id} detail; wp/v2/support-articles/{id}; public Knowledge Base browser; site search; feed; sitemap; and an anonymous request to a preview URL. Also inspect cache/CDN copies, any custom discovery endpoint, and third-party indexes if deployed. Unique synthetic sentinel text must not appear in any anonymous body, snippet, metadata, or redirect destination.

Source inspection shows SCFS_Knowledge_Base_Foundation::rest_query_args() normally requests post_status='publish'; unpublished list results require an editor capability with include_unpublished. The detail route explicitly refuses nonpublished records unless current_user_can('edit_post', post_id). The integrated Knowledge Base browser also queries post_status='publish'. These are implementation intentions; independently test registered routes in a deployed WordPress environment.

12. Repeatable WordPress inventory

For a known staging post, read its WordPress status and approval metadata without changing it. Replace the synthetic example ID with the approved test ID. Commands below are read-only, but their output is sensitive administrative metadata and must be retained privately.

WP_PATH=/path/to/staging/wordpress
ARTICLE_ID=812  # synthetic example; do not assume this ID exists
wp --path="$WP_PATH" post get "$ARTICLE_ID" \
  --fields=ID,post_type,post_status,post_modified_gmt \
  --format=json
wp --path="$WP_PATH" post meta get "$ARTICLE_ID" _scfs_editorial_state
wp --path="$WP_PATH" post meta get "$ARTICLE_ID" _scfs_editorial_content_hash
wp --path="$WP_PATH" post list --post_type=sc_support_article \
  --post_status=draft,pending,future,publish,private \
  --fields=ID,post_status --format=csv

If the site uses scheduled jobs, review their configured hooks and WordPress core future-post handling. The reviewed SCFS_Editorial_Governance::run_scheduled_governance() explicitly skips sc_support_article records, so do not attribute article scheduling or expiry to that editorial cron loop without separate proof.

13. Anonymous HTTP regression protocol

Use a staging host, known synthetic records, fresh anonymous sessions, and a unique marker in the draft. An HTTP 200 from a list page is normal; classify it as a leak only if restricted article content or metadata appears in the response. Never test by publishing a real client’s draft.

# Staging-only, examples with intentionally non-resolving host and IDs.
BASE=https://staging.example.invalid
DRAFT_ID=812
# Confirm there are no Cookie/Authorization headers in the test client.
curl -sS -D headers-canonical.txt -o body-canonical.html \
  -H 'Cache-Control: no-cache' "$BASE/?p=$DRAFT_ID"
curl -sS -D headers-scfs.txt -o body-scfs.json \
  "$BASE/wp-json/scfs/v1/knowledge-base/articles/$DRAFT_ID"
curl -sS -D headers-core.txt -o body-core.json \
  "$BASE/wp-json/wp/v2/support-articles/$DRAFT_ID"
curl -sS -o body-list.json \
  "$BASE/wp-json/scfs/v1/knowledge-base/articles?include_unpublished=1"
# Repeat across actual canonical /support/guides/ URLs, KB browser,
# search, feeds, sitemaps, preview links, CDN and logged-out sessions.

Record the request, response, token-marker presence, cache status, content hash, and screenshot when necessary. Do not assume ?p=ID is the final canonical custom-post URL on every configuration. Validate redirects and exact resolved URLs. HTTP read probes alone cannot establish that search engines have purged earlier indexed content.

14. Editorial approval and publishing counterexample

On staging, create a synthetic draft, assign review metadata, and attempt native WordPress Publish with an authorized publisher before the editorial approval action. Observe the resulting post_status, _scfs_editorial_state, history and anonymous visibility. If native publishing succeeds, report “approval-before-publication not enforced in tested path,” even if every draft remained confidential beforehand. This is a policy discrepancy only if the owner requires independent approval for this post type; it must not be relabeled as a proven security breach.

A separate governed editorial transition can require approval authority and update approval content hashes. The reviewed implementation includes a Support Article quick-approval exception that does not run the usual article approval prerequisites, and the native status hook is independent of that transition. Explicitly test separation of duties, revision attribution, and whether audit entries distinguish an editorial approval from the ordinary Publish button.

15. Version-specific approval and integrity

Compare the approved revision hash with the current article title, HTML body, and excerpt. The reviewed editorial content_hash() hashes these fields as JSON. After an authorized editorial approval, modify the body in staging, then ask whether the previous approval is still associated with the changed content and whether the owner expects the article to remain public. The stored hash can reveal a mismatch; it is not a cryptographic proof of independent review.

Article Integrity assesses headings, required sections, placeholders, URLs, accessibility of images/tables, taxonomy, freshness, and related evidence. Its scores and states are advisory under the reviewed source; the validator does not itself publish or demote articles. Record warnings, errors, score, scan timestamp, taxonomy version coverage, and decisions to publish with known limitations.

16. Manual scientific verification is independent

Content Governance requires a deliberate verification action, appropriate ownership and an assessment without specified hard blockers. Its verify_record() records a verification state, note, date, next review and history; it does not publish a draft or approve editorial content. The analysis must explicitly distinguish a “verified” governance state from actual independent scientific review, which requires domain-appropriate methods and evidence outside this software.

Include negative tests for missing technical owner where required, unsupported claims, outdated release evidence, incorrect version taxonomy, stale source citations, and changed content after a recorded verification. A successful automated score is not a finding of scientific validity.

17. Scheduled publishing, expiry, and cache consistency

Reproduce the state changes draft→pending→future→publish and publish→draft/private with clock-controlled, synthetic staging records. Record which mechanism actually changed the WordPress status: human action, WordPress core scheduled publication, importer, another plugin, or a governance job. Confirm timezone conversion and whether a scheduled post becomes visible only after its effective publication.

After demotion, check fresh-origin responses, the CDN, site cache, search snippets, feeds and sitemaps. A stale cached public copy is a public-content withdrawal failure even if the database has draft. Conversely, absence from one page may reflect the browser’s retrieval limit or delayed index refresh rather than a successful access-control decision.

18. Import, bulk action, and migration paths

Do not restrict the study to ordinary editor clicks. The integrated Knowledge Base code includes documentation import with a publication mode, and the editorial manager provides bulk actions. Validate whether these paths create publish records, preserve prior permalinks, assign metadata, and correctly attribute the actor. Controlled imports can be appropriate; the question is whether their approval boundaries and audit traces match organizational policy.

Run negative cases for duplicate article IDs, imported placeholder drafts, mismatched taxonomy, stale approval, bulk state changes, failed save, and rollback. Observe whether an editor’s update unintentionally changes publication status and whether draft content becomes visible via an existing published revision or cache.

19. Authorization and restricted metadata

Private editorial comments use sc_editorial_note records, and governance audit/history require administrative permissions. Verify that an anonymous reader, ordinary subscriber, or unauthorized editor cannot obtain those values through article content, front-end JavaScript, REST serialization, preview links, exports, browser markup, or error messages. Treat a nonpublic metadata leak as a failure even if the full draft body remains hidden.

Test REST access with include_unpublished=1 as anonymous, low-privilege authenticated, and authorized editor. For the custom detail endpoint, confirm the target-specific edit_post check rejects low-privilege access. Do not publish protected audit exports as validation evidence.

20. Synthetic diagnostic packet

The downloadable companion utility lifecycle_validator.py evaluates a bounded JSON packet of observed state and surface results. It never contacts a site, so its success demonstrates the checker and fixture rules—not actual WordPress privacy. The valid packet models one published and three nonpublic synthetic records; the negative packet introduces deliberate contradictions and leaks.

python3 lifecycle_validator.py fixtures/valid_packet.json \
  --output evidence/valid_result.json
python3 lifecycle_validator.py fixtures/invalid_packet.json \
  --output evidence/invalid_result.json
# The adverse fixture intentionally exits nonzero: findings are expected.
python3 -m unittest discover -s tests -v

For a real staging report, first collect each public-surface observation with a separate approved harness. Then map only sanitized outcome fields into the packet. Do not relabel model-generated findings as incident logs or cite the synthetic observations as production measurements.

21. Quantitative estimands and uncertainty

Define the article-level unauthorized exposure rate across the n sampled nonpublic articles as:

Observed exposure fraction: p = e / n, where e is the number of distinct nonpublic articles exposing protected material on at least one public surface. Multiple surface leaks for one article count as one exposed article for this estimand. Report surface-specific rates separately and include untested or unknown results explicitly.

Use a two-sided Wilson binomial interval rather than describing zero observed exposures as “zero risk.” For n=30 independent synthetic article trials and e=0, the approximate 95% Wilson upper bound is 11.35%; real-world independence and representativeness still require justification. For adversarial testing, also report the number of attempted privilege bypasses, the number blocked, and the percentage with complete logs. A blocked request without an audit event may satisfy access denial but fail the auditability objective.

22. Counterexamples and negative controls

Test case Expected negative outcome Required evidence
Anonymous request for a draft ID No draft content Body marker absent, status, cache controls
Anonymous include_unpublished=1 Still only published records Custom REST list and count
Unauthorized editor retrieves another author’s private article Denied unless target-specific authority REST 403/404 and capability snapshot
Approved hash differs from current body Governance drift detected Redacted hash comparison
Native publish without editorial approval Measure observed behavior, not assumed denial Before/after statuses and actor history
Public copy after demotion Origin and cache must no longer expose restricted content Independent requests across cache layers
Private editorial note in public REST Never present Field-level allowlist inspection

23. Symptoms

Common signs of a lifecycle validation failure include a draft visible in search results, a scheduled article appearing before its publication time, editorial-state and WordPress-state disagreement, a published revision without expected approval evidence, a public API listing an unpublished article, missing reviewer attribution, stale content after withdrawal, or a high integrity score being incorrectly treated as human approval. Collect the exact failure surface, not merely a generic “workflow broken” label.

24. Cause

Different failures have different causes. An actual anonymous draft leak may arise from cache contamination, custom query logic, an inadvertently public attachment, token handling, or incorrect REST permissions. Publication without editorial approval may instead be expected from the reviewed native Support Article exception. A mismatch between stored editorial state and post status may arise from a transition hook, a bulk action, an import, or a partial save. Missing search results may arise from the integrated browser’s limited retrieval set, not an access-control gate.

Classify each finding as a reproduced access-control defect, an editorial policy discrepancy, an integrity/freshness issue, a cache/index reconciliation issue, an evidence deficiency, or an unresolved observation. Do not conflate these classes.

25. Troubleshooting

  1. Confirm the deployed plugin build and relevant components match the reviewed source, or mark the analysis as a source-versus-deployment mismatch.
  2. Confirm post ID, actual post_status, public URL, revision ID, editorial state, and approval hash.
  3. Repeat the result anonymously with cookies removed and cache bypassed; repeat against public browser, both REST APIs, search, feed, and sitemap.
  4. Review target-specific capability checks, preview access, and restricted REST field projections.
  5. Inspect audit evidence around the timestamp of the transition, import, or update; do not assume approval from the value published.
  6. Compare origin and CDN response, review index purge timing, and verify the same sentinel is not left in an attachment or snippet.
  7. Run the synthetic checker on a sanitized observation packet; assess unexpected diagnostics separately from fixture-induced failures.

26. Resolution

If protected draft content is publicly accessible, treat the result as a privacy/security incident: restrict the affected route, halt risky automated publishing or indexing, preserve sanitized evidence, invalidate appropriate caches, and engage the platform owner. Do not delete or silently rewrite audit history. If publication without review is the finding, record the policy gap and request owner approval for a separate publication-gate change; avoid inserting a universal block that would disrupt the current owner-selected Publish/Update workflow. Staging-test all proposed controls before production release.

For stale content, reconcile WordPress state, cache, feeds, sitemap, and search indexes, including previously distributed copies where reasonably possible. For content-hash drift, re-review the actual revision; do not simply overwrite the stored approval hash. For missing taxonomy or verification metadata, correct those fields through authorized editorial actions, retaining revision and audit evidence.

27. Verification

Repeat the failing case and an adjacent valid control after remediation. Pass only when all required anonymous surfaces deny nonpublic content, field-level metadata is safe, the correct public article still works, and the audit ledger identifies the authorized actor and state transition. Record exact release, action, reviewer, timestamp, input hash, output hash, cache headers, and accepted exceptions. Re-run after deployment with clean sessions; tests on source alone are insufficient.

For a site whose policy requires prior approval, publish-without-approval must also be blocked in an independently authorized end-to-end test. Under the reviewed current code, that is a proposed additional control, not a verified existing one. Verification requires owner agreement on which policy is expected.

28. Validation

Apply the pre-registered criteria to each study hypothesis. A valid validation report may conclude that draft confidentiality passes the tested sample while reviewer-enforced publication remains unsupported. It may also conclude that article integrity is advisory and scientific verification remains pending. This segmented conclusion is more defensible than declaring a single “platform validated” result.

Keep an acceptance table that includes: claim, test IDs, independent verifier, denominator, observed failures, uncertainty estimate, deployment version, relevant surfaces, and disposition. The companion staging matrix lists cases to execute; they remain NOT RUN until an authorized operator attaches real evidence.

29. Reporting boundary

Do not include names, addresses, private notes, real draft content, cookies, secret links, or unpublished research in public reproducibility packets. Use synthetic markers and redacted evidence hashes. Distinguish functional tests from independent scientific review, a successful HTTP denial from proof of all possible access controls, and statistical intervals from complete security assurances. Disclose potential confounders including caching, editorial policy overrides, server misconfiguration, role customizations, plugin version mismatch, and test-window selection.

The methods and examples here are technical validation guidance, not a legal determination of privacy or records-management compliance. Retention, right-to-erasure, reviewer obligations, and external search-index cleanup require context-specific governance approval.

30. Acceptance and release evidence

Minimum release packet: pinned code revision and installed plugin header; WordPress and PHP versions; configured editorial/integrity/content-governance settings; table of synthetic articles and pre/post WordPress states; independently collected anonymous HTTP results; capability matrix; audit excerpts stripped of personal data; exact negative-test assertions; cache and indexing evidence; all deviations with severity and owner; remediation reference; date and signature of an accountable reviewer. A separate product owner should approve any policy change that makes review a mandatory blocker.

Reject an acceptance claim if the only evidence is local unit-test success, a dashboard readiness score, the WordPress edit screen, or the absence of an article in one bounded browser view. The outcome is provisional until actual deployed behavior has been exercised under authorized conditions.

31. Technical references

Scroll to Top