Troubleshooting
Troubleshoot support article lifecycle — Product Support and Feedback Platform
Diagnose support-article lifecycle failures by reconciling WordPress publication status, editorial decisions, content integrity, revisions, and anonymous visibility across Knowledge Base surfaces. This technical guide provides read-only diagnostics, reproducible negative tests, and controlled recovery procedures that preserve unpublished content and editorial evidence.
Application: Product Support and Feedback Platform
Component: Support Knowledge Base / Editorial Governance / Article Integrity
Source-reviewed version: 7.8.1; editorial 5.5.0; Knowledge Base 5.4.0; integrity 5.2.8
Deployed version: Not verified
Verification status: Source reviewed; synthetic diagnostics only; staging and production not run
Estimated reading time: 17 minutes
Diagnose missing articles, unintended publication, permission failures and editorial-state inconsistencies without modifying private content during investigation. Separate WordPress publication status from review, approval and verification evidence before attempting recovery.
Goal
Diagnose and safely recover failures in the Support Article lifecycle without exposing unpublished guidance or silently overriding editorial decisions. Reconcile four different records of truth: the sc_support_article WordPress post_status, the stored _scfs_editorial_state, the Support Article Integrity assessment, and Content Governance verification. These are related, but not equivalent.
Expected outcome: a reproducible explanation for each discrepancy, evidence that the intended audience sees only authorized content, preserved revision and decision history, and a bounded recovery that does not publish or withdraw unrelated articles.
Requirements
- Authorized WordPress staff access with the minimum capability needed to inspect the affected article; separate authorization to edit, approve or publish.
- Exact post ID and canonical URL, affected product/collection, observed time in UTC, WordPress status and expected editorial state.
- Reviewed source baseline (plugin version
7.8.1at the pinned commit below) and a verified installed version before applying any environment-specific fix. - Read-only WP-CLI access for aggregate metadata inspection, or a sanitized export; synthetic users and articles for staging tests.
- Independent anonymous browser session, separate from authenticated staff sessions; permission to inspect public REST, article pages, search, feeds, and sitemaps.
Privacy: do not copy private drafts, editorial notes, user identities, access tokens, or unreleased material into public issue trackers, analytics or test fixtures. Use opaque identifiers, test strings and counts.
Symptoms
| Symptom | Likely boundary | First check |
|---|---|---|
| Article disappears from Knowledge Base after saving | WordPress post status changed from publish to pending, draft or private |
Post ID and current post_status, not just editorial label |
| Draft appears publicly | Status, cache, API filtering or alternate index | Anonymous page/REST response and cache state; preserve response headers |
| Article is published without approval | Policy versus native WordPress publication | Check approval policy, capability and the explicit Support Article gate exception |
| Approved but not publicly visible | Editorial approval is not publication | WordPress status and scheduling date |
| Integrity reports “blocked,” yet article is live | Advisory quality scan is not an automatic publishing lock | Integrity findings, post status and editorial workflow separately |
| Old revision or excerpt remains online | Cache, revisions, delayed indexing or content import | Compare current stored hash with anonymous page/API and cache evidence |
| Draft metadata appears in API or logs | Missing projection, overbroad credentials, instrumentation | Test anonymous versus authenticated responses, record exact field names only |
| Unexpected scheduling/expiration | WordPress future post versus editorial cron | Native scheduled status, cron tasks and governance-run scope |
Cause
Not all failures share one cause. WordPress post_status governs normal anonymous visibility. _scfs_editorial_state records governance workflow, while content integrity and verification metadata assess readiness and evidence.
Verified source exception: SCFS_Editorial_Governance::enforce_publication_gate() returns the submitted post data unchanged for sc_support_article. A permitted user can therefore publish a Support Article through native WordPress without an additional approval-state check from this filter. sync_support_article_native_state() subsequently maps native status to editorial state; this synchronization does not establish independent review.
Likewise, transition_gate() explicitly allows rapid editorial approval of Support Articles. The integrity validator assesses on save and on status transition but is advisory. run_scheduled_governance() deliberately skips Support Articles, so native WordPress scheduling is the route to investigate for them.
Potential environmental causes—including third-party plugins, import jobs, cache configuration, theme routes, or alternate search indexes—must be demonstrated in staging or installed software; they are not proved by the reviewed repository.
Study design and definitions
Use a controlled diagnostic design with predeclared hypotheses, observed surfaces and failure thresholds. The unit of observation is an article-version–surface–actor–time tuple, not simply an article ID. Article versions matter because an anonymous cache may serve an earlier published revision after the WordPress record changes.
- H1 confidentiality: a draft, pending, private or not-yet-published future article is not disclosed through an anonymous public surface.
- H2 state consistency: native status, editorial metadata, version reference and public rendering agree with their documented semantics.
- H3 approval enforcement: when the organization requires separate approval, a native Publish attempt without approval is blocked. Do not assume H3 from current code.
- H4 provenance: changes and recovery preserve a version trail, authorized actor evidence and nonsecret event history.
Record installation ID, plugin hash, environment, sampling frame, observation time, role, response code, redirect destination, cache headers and whether the evidence came from direct rendering, REST, index, feed or search. Distinguish an authorization failure (403/404) from a transport failure (5xx).
Method and evidence
Prepare two synthetic records, one deliberately unpublished and one published, with unique nonpersonal sentinel phrases such as SCFS-STAGING-DRAFT-482 and SCFS-STAGING-PUBLIC-271. Use an authenticated editor to establish their expected states. Then inspect the same surfaces anonymously, with fresh sessions and cache-busting only when permitted.
For each test preserve: the input state, authorized role, request method and URL path, response status, body sentinel presence, expected outcome, actual outcome, SHA-256 of the sanitized response or a redacted evidence file, and reviewer decision. Capture positive and negative controls; a public page must remain available even while the draft remains undiscoverable.
Use a separate experiment to test approval policy: set a published-capable test role, create an unapproved synthetic article and attempt native publication in staging. Its outcome evaluates policy enforcement; it must not be conflated with draft confidentiality. Remove synthetic content through an authorized documented cleanup only after evidence is preserved.
Troubleshooting
- Identify the immutable WordPress post ID, exact
post_type, canonical URL and installation; confirm you are not comparing two different articles with similar titles. - Inspect WordPress
post_statusandpost_modified_gmt; record editorial metadata separately without assuming they are synchronized. - Review revisions and editorial audit events under appropriately privileged staff access. Preserve before/after hashes and timestamps; never infer an approval solely from a Save/Update action.
- Check the Knowledge Base browser, archive/search, single article, REST collection and item, WordPress core REST, feeds, sitemaps and any external index or cache that serves articles.
- Repeat with an anonymous session, anonymous credentials absent, and a distinct lower-privilege user. Authenticated visibility is not public exposure.
- Determine whether an import, bulk action, scheduled post, editorial transition or third-party hook changed
post_status. Examine audit context and installed hooks rather than assuming which subsystem acted. - If content is unexpectedly public, initiate an authorized containment change and independently check caches, edge copies and indexes. If content is unexpectedly hidden, do not republish before the status and editorial decision are reconciled.
Procedure
Read-only WP-CLI examples (replace the synthetic ID and WordPress path):
WP_PATH=/path/to/wordpress
POST_ID=812
wp --path="$WP_PATH" post get "$POST_ID" --field=post_type
wp --path="$WP_PATH" post get "$POST_ID" --field=post_status
wp --path="$WP_PATH" post get "$POST_ID" --field=post_modified_gmt
wp --path="$WP_PATH" post meta get "$POST_ID" _scfs_editorial_state
wp --path="$WP_PATH" post meta get "$POST_ID" _scfs_editorial_content_hash
wp --path="$WP_PATH" post list --post_type=sc_support_article --post_status=draft,pending,private,future,publish --fields=ID,post_status,post_modified_gmt --format=table
These commands intentionally avoid printing article bodies, private notes, reviewers or approval text. Store command output in an access-controlled operational evidence folder.
Check native WordPress status and editorial state
Expected native mapping in the reviewed SCFS_Editorial_Governance source: draft → draft, pending → submitted, publish → published, future → scheduled, and private → archived. This synchronization runs on actual native status transitions and does not guarantee consistency after manual metadata edits or import/migration side effects.
If post_status=publish and _scfs_editorial_state=submitted, classify the record as a state mismatch requiring review; it is not safe to assert that it remains confidential. If post_status=pending and editorial state is approved, the document may be approved but not yet public. Preserve both records before changing either.
For published articles undergoing routine edits, the native Update action can retain public status; a separate editorial transition to review may change visibility. Verify the intended action, not just the button label.
Check public content surfaces
For a synthetic unpublished post ID, test at minimum the canonical article URL, /wp-json/scfs/v1/knowledge-base/articles/<ID>, /wp-json/scfs/v1/knowledge-base/articles, the WordPress core post-type REST endpoint, integrated Knowledge Base browser, site search, RSS/Atom feeds, sitemap membership, cache variants and any connected external search index.
The custom Knowledge Base article collection defaults to post_status=publish for anonymous users. Its single-item endpoint returns 404 for a nonpublished post without edit_post. The integrated browser queries published posts. Those source controls support a draft-isolation hypothesis, but do not establish coverage of all WordPress plugins, CDNs and custom integrations.
# STAGING ONLY. Substitute a synthetic draft ID and known staging host.
BASE='https://staging.example.test'
ID='812'
curl --silent --show-error --location --dump-header - "$BASE/wp-json/scfs/v1/knowledge-base/articles/$ID" --output /dev/null
# Expected for a truly anonymous unpublished article: 404.
# Follow with an approved sentinel-only body test on each public surface.
Do not pass session cookies or WordPress nonces with the anonymous request. A 404 by itself is insufficient: verify no unpublished sentinel remains in alternate indexes, cached HTML or public exports.
Check approval and publication policies
Source-reviewed behavior: the Support Article exception in enforce_publication_gate() permits a native WordPress publish attempt to proceed under ordinary WordPress capability checks. Separately, the editorial transition handler checks its own configured capabilities and rules. Thus, the presence of an Approved workflow state does not prove that a distinct approver reviewed the exact content currently served.
If the institution has adopted a strict approval-before-publication policy, record this as an unmet or separately controlled requirement until verified on the installed deployment. Propose a scoped plugin change and negative tests; do not claim that changing documentation settings alone enables such a gate.
Approval evidence should bind the approved content hash or revision, approver identity (privileged only), timestamp, authority and change summary. Re-approval is needed if the policy requires it after substantive changes. Do not retroactively manufacture approval history.
Check content integrity and scientific verification
The Support Article Integrity component (5.2.8 in reviewed source) evaluates structure, product context, link hygiene, summary, figures, headings and freshness on save and selected transitions. Its results are advisory, not a substitute for a publication gate.
Content Governance (5.5.0 documented component) records human verification, ownership, review cadence, supersession and governance snapshots. verify_record() can reject verification when specified hard blockers exist; successful verification does not publish a draft or independently certify any scientific claim.
When results conflict, report each independently: WordPress status, editorial state, integrity score/blockers, verification state/date, and public visibility.
Check revisions, editorial notes and audit evidence
Compare current title, content and excerpt to the editorial stored SHA-256 content hash, where present. The reviewed content_hash() constructs a SHA-256 of a JSON payload comprising those three fields. The stored hash can become stale after edits; a matching hash establishes consistency within the checked record, not independent tamper-proof history.
Editorial notes are private sc_editorial_note records; ensure they are not included in anonymous HTML, REST records, cache keys, discovery indexes or exports. The editorial audit is bounded and may not constitute a permanent or cryptographically immutable ledger. Preserve a controlled snapshot if long-term evidence is required.
When investigating “article disappeared after save,” compare the most recent before/after post revisions and native statuses, then the governance transition logs; do not equate a newer post_modified with a substantive content change.
Check scheduled publication and expiration
For Support Articles, investigate native WordPress future status and publication scheduling. The reviewed run_scheduled_governance() skips sc_support_article, so an editorial cron report with zero Support Articles processed is not evidence of a failed native scheduled post.
Check site time zone, post_date_gmt, due timestamp, cron health, cache invalidation and visibility before/after the due time. Scheduled-but-not-yet-public articles must not appear in anonymous search. For expiration, verify the actual post status after the expected action; do not assume editorial expiry metadata automatically withdraws Support Articles.
Check import and bulk changes
The integrated Knowledge Base includes a documentation importer and a generated-content hash. It also contains logic intended to preserve manual edits. When a support article unexpectedly changes after a plugin update or import, inspect the import report, current post revision, generated hash metadata and any manual override, using authorized staff access.
Capture import batch ID, timestamp and before/after post IDs in an access-restricted file. Avoid broad “republish all” or bulk migration commands as diagnostic probes. In staging, test that unchanged generated articles, manually edited records and unpublished drafts behave according to documented import rules.
Diagnostic contract and synthetic fixtures
The accompanying lifecycle_checker.py is an independent offline checker, not an installed Product Support and Feedback Platform API. It accepts synthetic JSON containing article states, editorial metadata, observed access, expected policy and save transitions. It reports coded anomalies without reproducing content bodies.
python3 lifecycle_checker.py fixtures/valid.json
python3 lifecycle_checker.py fixtures/invalid.json
python3 -m unittest -v test_lifecycle_checker.py
A clean fixture must produce zero findings. The adverse fixture deliberately includes public draft exposure, a missing approval receipt under a strict policy, leaked private editorial fields, stale content approval, post-status changes after Update, and inconsistent anonymity observations. The exact finding codes and test results are provided in the developer package.
Read-only WordPress reconciliation
The package includes read_only_wp_article_audit.php, intended for a privileged operator to inspect aggregate status discrepancies without exporting content or identity information. Run it only after reviewing its SQL, confirming a backup, and checking the plugin table prefix and WordPress installation. It contains SELECT queries and does not change post status.
# Example: run from an authorized operator terminal, outside public webroot.
wp --path=/path/to/wordpress eval-file /secure/path/read_only_wp_article_audit.php
Aggregate counts are triage signals; they do not prove anonymous exposure or publication authorization. Resolve each flagged record through a controlled private review and a separate anonymous-surface test.
Privacy and permission regression
Negative tests must cover anonymous callers, legitimate editors, lower-privilege authenticated users, revoked accounts, private post endpoints, and requests containing include_unpublished=1. The custom list route can include unpublished posts for users with edit_posts when that flag is provided; do not classify a properly authorized response as an anonymous leak.
Verify editors cannot acquire additional publication authority through metadata edits. Check cached REST payloads for user-specific data, browser previews for accidental sharing, and search indexes for unpublished titles, excerpts and verification notes. Test attachments and linked pages independently when present. If any private content is observed anonymously, treat it as a potential disclosure incident, preserve redacted evidence, contain the affected surface, and escalate.
Resolution
- Exposure suspected: stop the offending public route or withdraw the article using an authorized change, then verify cache and index removal separately. Preserve prior version and event evidence for incident review.
- Unexpected disappearance: do not republish immediately. Confirm the exact status change, role, intended action, prior revision and editorial audit; restore the correct status only after owner approval and a scoped rollback plan.
- Approval drift: preserve current and approved hashes, identify the changed fields, request a new review under the institution’s policy, and correct the workflow record through an authorized transition—not a direct metadata edit.
- Integrity blocker: repair the underlying content/metadata defect; rerun assessment; separately confirm publication policy.
- Scheduled/expired mismatch: reconcile native scheduling and editorial metadata, then independently recheck anonymous surfaces.
- Import regression: stop the offending importer and reconcile one affected article from a verified revision before any broader repair.
For each recovery, specify owner, approval, expected state, affected record IDs, success criteria, rollback path and independent reviewer signoff. Never delete historical records to hide a contradiction.
Verification
| Check | Acceptance evidence | Failure disposition |
|---|---|---|
| Draft confidentiality | Zero anonymous body/title/excerpt disclosures across all declared surfaces for all staged draft/pending/private/future cases | Block release; investigate and contain |
| Published positive control | Known public sentinel appears in expected public page/REST with correct canonical URL | Investigate routing or cache |
| Role separation | Anonymous and unauthorized callers cannot access drafts; editor visibility matches configured permissions | Block and remediate access control |
| Approval policy | When strict policy is required, unapproved native publish is rejected in staging | Record policy gap; do not claim enforcement |
| State and revision consistency | Reconciled post status, editorial metadata, approved hash and revision history | Retain failure evidence; scoped repair |
| Scientific/technical verification | Named verifier, cited version, method, limitations, and independent evidence | Label unverified; do not infer from saved state |
| Recovery | Rollback plan tested, controls restored, subsequent anonymous retest passed | No production release approval |
Set strict zero-tolerance for confirmed unauthorized disclosure. For a sample of n independent trials with zero observed failures, the approximate upper 95% failure-rate bound is 1 - 0.05**(1/n). At n=30 that is approximately 9.5%; it does not prove a zero true failure rate. Report counts, denominators, confidence interval, actor classes, surface coverage and sampling limitations.
Evidence and acceptance record
Record for each staged case: test ID, commit, plugin build hash, installed version, anonymized post ID, initial and final native status, editorial state, workflow action, actor capability class, observation route, HTTP status, sentinel presence, redacted response hash, expected-versus-observed result, reviewer and disposition.
Pre-register the test matrix and acceptance threshold before execution. Preserve known failures and deviations, do not recode them after inspection, and separate reproducible software outcomes from subjective editorial judgments. Redacted public reports should summarize categories, rates and limitations without publishing unpublished text or private review notes.
Reporting boundary
Report separately (a) what the repository implements, (b) what the synthetic checker detects, (c) what was observed in staging, and (d) what remains unverified in production. Do not declare a public vulnerability solely from code inspection, and do not describe editorial approval as independent scientific verification.
Source review establishes a native WordPress publishing exception for Support Articles, not a claim that every installed environment necessarily behaves identically. A published article may legitimately be unreviewed under the native workflow; whether that violates policy depends on the institution’s approved requirements. Exclude private article bodies, credentials, identifiable reviewer notes and sensitive investigation details from public reports.
Technical references
- Editorial Governance — publication exception, native-state mapping, transitions, audit, and cron.
- Knowledge Base — article post type, REST list/item filtering, and public browser.
- Integrated Knowledge Base — published article queries and import behavior.
- Article Integrity — advisory content validation on save and status transition.
- Content Governance — human verification and review state.
- Documentation Workflow and Editorial Governance — original workflow design.
- Support Content Operations v5.5.0.
- Article Integrity v5.2.8.
- WordPress: register_post_type; WordPress REST API; WP-CLI post commands.
