Troubleshooting

Troubleshoot engagement workspaces — Contact and Engagement Platform

Diagnose engagement workspace failures by tracing canonical inquiry ownership, Sender Portal permissions, private-record visibility, deliverable status, and protected document associations. This developer troubleshooting guide provides read-only reconciliation, reproducible synthetic tests, and controlled recovery procedures for preserving cross-client isolation and auditable engagement history.

ProductContact and Engagement PlatformComponentCollaboration, Secure Client WorkspaceUpdatedNovember 21, 2026Reading time18 minutes

Application: Contact and Engagement Platform
Component: Secure Client Workspace and Collaboration
Article type: Technical troubleshooting / evidence-based validation
Source baseline: 2.0.2; workspace schema 1.0.0
Last verified deployed version: Pending
Estimated reading time: 17–20 minutes

Diagnose workspace isolation, record-association, and permission failures without exposing client communications or altering governed engagement history. This guide combines source-reviewed WordPress controls with synthetic negative tests, read-only reconciliation, containment procedures, and verifiable recovery criteria.

Goal

Diagnose failures in the Contact and Engagement Platform’s secure client workspaces without exposing confidential inquiries or silently changing proposal, Statement of Work (SOW), or engagement evidence. The primary acceptance criterion is that an authorized Sender Portal user sees and can act on only records associated with the user’s canonical inquiry, and that child records and protected documents remain bound to their correct engagement workspace.

Workspaces are an engagement-scoped projection, not a general-purpose shared drive or open multi-tenant collaboration service. A successful save, WordPress nonce, or correctly formatted database row does not establish client isolation by itself. Verify both retrieval and mutation paths, including adversarial requests.

Requirements

  • A permitted staff role for the inspected environment; use synthetic/staging data in preference to identifiable client records.
  • Exact WordPress plugin build and migration version; source baseline for this guide is Contact and Engagement Platform 2.0.2, workspace schema 1.0.0.
  • A known inquiry, its governed engagement, the corresponding workspace, and a separate synthetic control inquiry/workspace.
  • Evidence for staff capabilities, Sender Portal session permissions, cross-inquiry request denial, current status, update revision, and recipient-facing projection.
  • Approved, read-only WP-CLI access only if a database reconciliation is authorized. Do not run the diagnostic on production merely because it appears in a public article.

Version boundary: the repository snapshot was reviewed; the currently installed plugin, database migration, endpoint behavior, and hosting security configuration have not been verified as part of this article.

Symptoms

Observed symptom First evidence to check Immediate action
Wrong client’s workspace, file, or message appears Portal session inquiry; workspace and child inquiry_id; document owner Stop sender-facing delivery, preserve redacted evidence, escalate a suspected disclosure
Workspace missing from Sender Portal Session permission, sender_visible, workspace status Check controls before changing visibility
Deliverable visible before publication Deliverable state, flag, projection response Pause affected publication path and reconcile
Sender response rejected Inquiry association, publication status, permission, CSRF, revision Do not bypass validation or force status
Message saves to wrong workspace Public workspace ID, portal inquiry and event trail Preserve evidence, restrict access, investigate
Concurrent update rejected row_version and conflicting staff action Reload and compare before retrying
Deleted file still listed Protected attachment deleted_at and projection cache Check both metadata and protected-storage authorization
Audit history incomplete Workspace events, private audit records, error events Preserve database and log evidence; do not reconstruct history by guesswork

Cause

Common root causes include incorrect inquiry or engagement linkage; a stale session or request; capability or CSRF rejection; a workspace visibility flag inconsistent with its lifecycle state; child records pointing at the wrong workspace; linked attachments outside the inquiry; stale optimistic-lock revisions; and an error after part of a multi-record operation completed. In addition, a source-level guard can exist without proving that every caller, export, cache, or historical row follows it.

Terminology: the reviewed workspace schema contains canonical inquiry_id and engagement_id. It does not define independent generalized tenant_id or project_id columns. Use real inquiry/engagement boundaries in tests rather than assuming a separate tenancy model.

Troubleshooting

  1. Classify the incident: availability, wrong status, integrity mismatch, unauthorized access, or suspected exposure.
  2. Confirm the inquiry, engagement, workspace public ID, actor permission, and current row_version without pasting private information into public tickets.
  3. Check the relevant source or installed-version control and reproduce with two distinct synthetic inquiries.
  4. Compare private staff records with the sender projection, including negative visibility and cross-inquiry tests.
  5. Run a scoped read-only consistency check if authorized; do not manipulate database rows to make warnings disappear.
  6. Record the verified cause, remediation owner, independent verification result, and any residual uncertainty.

Follow the detailed diagnostic sequence below before releasing a change or declaring isolation restored.

1. Contain a suspected cross-client disclosure

If data from inquiry B is observed in inquiry A’s sender session, treat this as a potential confidentiality incident, not an ordinary rendering bug. Pause the affected sender-facing surface through the platform’s authorized controls; do not disable unrelated services without assessing impact. Preserve a minimally sufficient restricted evidence packet: source build, time in UTC, request ID or event reference, role, session category, affected object types, and a redacted response diff. Do not circulate live tokens, raw message bodies, direct attachment URLs, email addresses, or screenshots containing client data.

Determine separately whether the problem affected read access, write access, metadata only, or protected file bytes. A visible document title and a successful file download are different findings. Follow the organization’s incident and privacy-notification procedures when applicable.

2. Reconstruct the canonical ownership chain

Use this chain for every investigated object: inquiry → contracted proposal and governed engagement → client workspace → member, milestone, deliverable, message, document, or event. The workspace stores both inquiry_id and engagement_id; its child tables also store the workspace and inquiry identifiers. The workspace table has a unique index on engagement_id in the reviewed schema.

workspace.inquiry_id == engagement.inquiry_id
child.inquiry_id == workspace.inquiry_id
child.workspace_id == workspace.id
attachment.inquiry_id == workspace.inquiry_id
linked_deliverable.workspace_id == source_record.workspace_id

These are proposed reconciliation invariants, not proof that every listed condition is currently checked in every repository method. A mismatch deserves investigation even when the user interface hides the row.

3. Confirm workspace lifecycle and sender visibility

The reviewed schema permits draft, active, paused, completed, and archived. SC_EI_Workspace_Repository::sender_snapshot() includes only sender_visible workspaces in active, paused, or completed states. Consequently, a flag on a draft or archived workspace does not establish public exposure, but it merits a lifecycle review.

Staff transitions require the appropriate capability, a nonce, typed confirmation and a guarded row_version update. The code selects states from the allowed list; do not assume this alone implements a fully restricted state-transition graph. Before correcting status, verify the intended business event and any dependent deliverables or communications.

4. Separate staff capabilities from Sender Portal permissions

Staff administrative operations use granular WordPress capabilities, including sc_intake_manage_client_workspaces, sc_intake_manage_workspace_milestones, sc_intake_manage_workspace_deliverables, and sc_intake_manage_workspace_documents, together with WordPress nonces. Sender Portal actions instead resolve a current authenticated session, require a named permission, verify CSRF, enforce rate limits, and check inquiry ownership within action-specific repository methods.

The stored workspace-member permission array is not, by itself, evidence that each permission is independently rechecked on every portal action. Validate effective authorization at the relevant controller, session, repository, and protected-file access layers. An authenticated session for inquiry B must not become permission to view or mutate inquiry A.

5. Reproduce portal authorization with two isolated clients

In staging, create synthetic inquiry A and inquiry B with different portal sessions and distinct workspaces. For each session, attempt its own valid view and action, then repeat against the other workspace’s public identifier and deliverable ID. Test missing session, expired session, missing respond_deliverables or send_messages permission, invalid CSRF, rate-limit rejection and withdrawn workspace access.

Expected outcome: authorized same-inquiry operations succeed when business status permits; unauthorized or cross-inquiry operations fail without returning sensitive data or changing a record. Capture status/error category and audit reference, never session cookies or content. Confirm the read and write outcomes independently, since one safe portal view does not validate every mutation route.

6. Inspect sender-facing projection and hidden fields

The published source allows only top-level public_id, workspace_number, title, status, summary, next_step, milestones, deliverables, documents, messages, and updated_at. Workspace members, internal events, private notes, and audit context do not belong in that projection.

Only sender-visible milestones, sender-visible messages, eligible deliverables and sender-visible, nondeleted document metadata are queried. Deliverable statuses draft, in_review, and withdrawn are excluded even if a flag was set. Inspect actual rendered output and machine-readable responses, not just template code, and repeat through caching or export surfaces relevant to the deployment.

7. Diagnose deliverable publication and decisions

publish_deliverable() uses a guarded row_version update and resets sender decision to pending. record_sender_deliverable_decision() requires the same inquiry, a sender-visible, published deliverable, and an allowed decision (accepted or changes_requested). A response to a draft, hidden, or foreign-inquiry record must fail.

If a decision is missing, compare the deliverable’s status, sender_decision, decided_at, revision and corresponding event. A concurrency conflict calls for refresh/review, not a direct SQL status edit. A proposal approval or contract is not inferred from a workspace deliverable acceptance.

8. Reconcile document and attachment ownership

link_document() checks that the chosen protected attachment belongs to the same inquiry as the workspace. It stores a workspace document reference, not a publicly accessible attachment. The sender projection joins document metadata to nondeleted attachments.

Validation should extend beyond the documented happy path: verify every existing document’s attachment and inquiry association; test a foreign-inquiry attachment; verify actual protected-file download authorization; and inspect any deliverable attachment or optional related_deliverable_id for same-workspace consistency. These latter associations require further staging confirmation, rather than an unsupported claim that an exploitable flaw is proven.

9. Investigate collaboration-message misrouting

Sender messages use the public workspace identifier, the current portal inquiry context, send_messages permission, CSRF, and rate limiting. The repository rejects a workspace outside that inquiry and requires a sender-visible workspace in active or paused status. Staff messages can be marked private or sender-visible.

When a message appears in an unexpected workspace, check its workspace_id, inquiry_id, direction, visibility, event reference, and any linked deliverable. Preserve message content only within authorized evidence storage. A private staff message appearing in the sender projection is a critical visibility finding.

10. Review workspace membership without exposing identities

Workspace membership records distinguish sender and staff participants. The implementation stores an email SHA-256 digest for sender lookup rather than a raw member email column. This hash is deterministic; it should not be treated as anonymous or irreversible against guessable emails. Do not put it in public bug reports or aggregate dashboards.

Review whether the intended member is active, whether the portal session belongs to the canonical inquiry, whether the effective action permission exists, and whether revocation is honored. The private staff membership list and a sender’s permitted view are different evidence objects.

11. Investigate failed transitions and stale versions

A guarded update uses the saved row_version as a precondition. If an intervening actor has changed the record, the update may return workspace_transition_conflict or workspace_update_conflict; deliverable actions have corresponding conflict errors. Do not treat these as evidence of malicious activity without checking simultaneous edits.

For recovery, reload the current row, compare requested and current state with the owning operator, verify dependent records, then repeat the authorized action once. Save a private before/after comparison of status, version number, actor, timestamp and event ID; never overwrite a competing revision.

12. Detect orphaned and inconsistent records

Check for workspaces without a governing engagement, for a workspace whose engagement’s inquiry differs from its own, and for children whose inquiry_id differs from their workspace. Inspect the uniqueness of engagement_id and any child reference to an absent workspace. The platform’s own operational blockers include orphaned workspaces and overdue milestones; those are useful but do not exhaust cross-inquiry and document-link checks.

Keep a separate count for data-integrity anomalies, actual denied requests, confirmed disclosures, and unresolved outcomes. A mismatch in stored data is an investigation target; only an end-to-end access test can establish whether it became observable to another client.

13. Run an authorized read-only aggregate audit

The package includes a read_only_workspace_audit.php helper. It derives actual table names from SC_EI_Database::table() and reports only aggregate counts. It does not emit client content, email hashes, workspace identifiers, tokens, or attachment names. It performs SELECT queries, but still requires database access and may be expensive on large deployments.

# Approved WP-CLI environment only. Replace with the authorized local root.
wp --path=/path/to/wordpress eval-file ./read_only_workspace_audit.php   > private_workspace_aggregate_report.json
# Keep output in restricted operator evidence storage; never upload raw client exports.

The helper is an independent operator utility; it has not been run against production for this article. Zero anomalies in a database query does not prove the portal, cache, file download, or upstream identity controls are secure.

14. Execute synthetic offline reconciliation

Use the independent checker supplied with this article. It reads a fictional JSON packet with separate inquiries, engagements, workspaces, portal test outcomes and sender projections. It never connects to WordPress. A deliberately invalid packet tests whether the diagnostics catch known classes of inconsistencies.

python3 workspace_checker.py fixtures/valid_synthetic.json --out valid_report.json
# Expected: 0; no findings
python3 workspace_checker.py fixtures/adverse_synthetic.json --out adverse_report.json
# Expected: 2; deliberately detected findings
python3 -m unittest discover -p 'test_*.py' -v

The checker’s rules are an explicitly proposed evidence model, not a substitute for production code execution. Do not feed it private database exports; build narrow, sanitized evidence objects or synthetic fixtures.

15. Establish an explicit hypothesis and controls

Test hypothesis H1: a valid portal session cannot retrieve, mutate or download a workspace object whose canonical inquiry differs from the session inquiry. H2: all sender-facing workspace records belong to the same inquiry and satisfy the current visibility filter. H3: an authorized action leaves a consistent status, row version and audit event.

Positive controls must demonstrate that the intended same-inquiry operations remain functional. Negative controls include wrong inquiry, hidden draft, revoked session, absent permission, mismatched attachment, cross-workspace linked deliverable, duplicate/stale update and unauthorized export. Use a preregistered matrix with actual request outcomes and inspect independently.

16. Interpret common error classes

Signal / code Meaning in reviewed source Response
workspace_engagement_missing Creation lacks governed engagement Verify engagement and inquiry provenance
workspace_document_invalid Attachment or inquiry ownership unacceptable Inspect protected attachment linkage; no forced link
workspace_message_unavailable Sender message fails inquiry/visibility/state gate Check portal context and workspace lifecycle
workspace_deliverable_unavailable Sender decision cannot target record in current context Check published status and canonical inquiry
workspace_transition_conflict Concurrent revision changed Reload, reconcile and authorized retry
portal_csrf_failed Request failed CSRF control Reauthenticate; never bypass the check
portal_rate_limited Request exceeded configured rate control Review rate evidence; avoid loops
Cross-inquiry read succeeds Potential authorization failure, not merely metadata mismatch Contain and escalate privacy incident

Error strings are source-reviewed examples, not a guarantee of identical messaging in the deployed build.

17. Resolve partial operations without deleting history

Some workspace operations write a parent record and then members or events. A failure can leave a missing or inconsistent dependent record. Preserve the observed state before attempting compensation. Inspect the source-defined rollback or cleanup path and whether the failed step may already have been applied.

Do not rewrite ownership IDs, fabricate historical events, set sender_visible to force a preview, or delete a private record to silence a query. If an approved maintenance repair is needed, require a scoped migration or service-level fix with backup, dry run, reviewer evidence, exact rollback plan and a post-repair isolation test.

18. Handle privacy, retention, and historical evidence

Workspace data is included in restricted inquiry exports and in privacy/retention procedures through export_for_inquiry(), redact_for_inquiry(), and governed cleanup functions. A public help article should never include a full export or raw member hash. Deletion and redaction are different operations; a redacted workspace row may retain nonidentifying workflow evidence. Verify applicable retention holds and approved processing purposes before acting.

Confirm protected attachments are covered by separate storage rules. Removing workspace document metadata alone does not demonstrate that a protected file and its permitted backups have been addressed.

Resolution

Choose a remedy that matches the proven cause. For a rejected authorized request, correct the legitimate session or permission issue. For a stale revision, reconcile current state and repeat the guarded action. For a child ownership mismatch, isolate and investigate the affected relationship before approved repair. For a confirmed unauthorized disclosure, contain the surface, follow incident procedures and verify all read, write, download and export paths before restoring access.

Record the source version, affected object classes, reviewed evidence, approved change, before/after invariant counts, negative-control results, owner, date and unresolved risks. Never close an incident based only on a green synthetic test suite or a zero-count database audit.

Verification

Accept the recovery only when all the following are demonstrably true on the approved target environment:

  1. Two different authorized inquiry sessions can access their own workspaces and cannot access each other’s workspace data or actions.
  2. Hidden records and private fields are absent from Sender Portal responses, protected downloads, caches and relevant export/search surfaces.
  3. All sampled child records and attachments resolve to the correct workspace, engagement and inquiry; anomalies have documented dispositions.
  4. Concurrency checks reject stale updates without overwriting evidence; successful updates show correct state and attributable event records.
  5. Staging negatives are rerun after the repair and a rollback can be performed without misrouting data.
  6. Any incident-specific privacy and retention obligations are recorded and approved independently of technical test success.

Record PASS, FAIL, NOT RUN or INDETERMINATE for each test. An unknown outcome cannot be counted as a pass.

19. Quantify uncertainty and release readiness

Report the number of test cases attempted, passed, failed, not run and indeterminate by failure class. A zero-leak synthetic run demonstrates only that the synthetic cases were clean. Even 30 independent real tests with zero observed failures would leave an approximate one-sided 95% upper failure-probability bound of 9.5% under a binomial model; targeted adversarial tests are typically not an independent random sample, so that estimate must not be presented as a production risk rate.

# Illustrative upper 95% binomial bound after n independent zero-failure trials
from math import exp, log
n = 30
upper = 1.0 - exp(log(0.05) / n)
print(f"{upper:.1%}")  # 9.5%

Do not aggregate unrelated authorization, document, and audit outcomes into a single “security passed” percentage. An observed cross-client access must fail the release gate regardless of a high overall pass rate.

20. Scientific and reporting boundary

This procedure validates a technical and operational claim about record isolation; it does not establish whether a research project’s conclusions are scientifically correct, whether an individual has legally valid consent for every downstream use, or whether all external organizations follow the same controls. Preserve the study population, sampling method, time window, exclusions, test definitions, independent observations and conflicts of interest.

Keep public reports limited to synthetic examples and aggregate, approved statements. Store case-level evidence in restricted systems with minimal access and documented retention. Use the term source-reviewed for inspected code and staging-verified or production-verified only when the corresponding signed evidence exists.

21. Evidence and acceptance record

For each incident or release candidate, retain the build identifier and source commit; named SQL or API contracts actually exercised; anonymized test-case IDs; actor role and permission class; expected and observed results; response and audit reference; before/after counts; privacy review; and rollback evidence. The accompanying acceptance matrix contains planned tests and must not be marked complete before execution.

A useful minimal record is {test_id, source_version, environment, inquiry_pair_fixture, operation, expected, observed, result, evidence_ref, reviewer, executed_at_utc}. A missing field should be explicitly unknown rather than guessed. Internal acceptance evidence and public knowledge-base prose serve different audiences and must be separated.

22. Technical references

  1. Secure Client Workspace and Collaboration — operating model
  2. SC_EI_Workspace_Repository — lifecycle, child rows, projection, privacy
  3. SC_EI_Workspace_Schema — allowed states and sender projection keys
  4. SC_EI_Workspace_Admin — WordPress staff action permissions
  5. SC_EI_Portal_Public — sender session and mutation boundaries
  6. SC_EI_Database — table and identifier contracts
  7. Repository workspace contract tests — source assertions
  8. Integrated Engagement Platform — canonical dossier and handoff boundaries

Baseline: pinned source commit 3f246974276a5e582d09f8c48d21628b82626bc7, plugin candidate 2.0.2, workspace schema 1.0.0. Source inspection is not a production acceptance receipt. Confirm the running build before treating these implementation details as deployed behavior.

Scroll to Top