Troubleshooting
Troubleshoot team membership — Workspace
Troubleshoot team membership — Workspace Application: Workspace Status: Useful first draft, not a production-verified procedure. Typical symptoms Team membership fails when records cannot be resolved, authorization is missing, rev
Application: Workspace
Component: Collaboration Architecture, Shared Review Rooms, Research Approvals, Identity & Sessions
Documentation class: Troubleshooting / technical operations
Source baseline: 957738a1e76aa3347027f6af006c08c5d3db5307
Estimated reading time: 15 minutes
Status: Source-anchored troubleshooting guidance; deployed verification pending.
Summary: When team access behaves unexpectedly, identify which control owns the disputed action: a local review role, a Research approval grant, or an authenticated Workspace session. Diagnose the failure at that boundary, verify revocation against a denied operation, and preserve the original research and decision records.
Goal
Resolve membership, review, and authorization failures without granting excess privileges or damaging scientific work. The core test is narrower than “a member was removed”: after revocation, a previously authorized actor cannot perform the relevant protected action, while the project, source artifacts, and finalized approval records remain intact. Test complete offboarding separately across every access path.
This guide distinguishes a machine-observed access denial from a claim about a person’s real-world identity, a previously exported copy, or the scientific validity of the project. Browser-local role labels and review-room invitations are not server-verified collaborators.
Requirements
- An authorized administrator or project owner, a known project ID, the affected actor’s stable identifier, the disputed action, the control type, and a recorded time window.
- A sanitized before-state and after-state (role/grant ID, scope, grant status, invitation status, authorization result, project revision, selected artifact digests and prior decision record references).
- An isolated staging environment and synthetic identities for destructive, negative, or session-revocation tests. Never use a production researcher’s credentials in automated acceptance tests.
- A separate authorized account to test negative access; local UI state alone cannot establish server-side authorization.
- Access to the exact release and corresponding source; this article is pinned to the SHA above. Check if routes, schemas, feature flags, and session policy changed before executing anything.
Stop condition: If authority or evidence scope cannot be established, do not modify membership, publish research, copy private artifacts, or operate on production sessions.
Procedure
1. Identify which membership system is involved
| System | Identity and persistence | Controlled effect | What it does not do |
|---|---|---|---|
| Collaboration Architecture | Browser-local actors, policies, and review records | Local setGrant, removeGrant, can |
Create a server user, tenancy, or server ACL |
| Shared Review Rooms | Browser-local invitations, rooms, snapshots | Local invitation and room-state capabilities | Send an external invitation, grant cloud access, recall an exported snapshot |
| Research Approvals (SC-ED-01) | Authenticated user, PostgreSQL grant/decision records | Project- and dimension-scoped editor/approver actions | Grant universal project read/write access or delete existing decisions |
| Workspace sessions (SC-AUTH-01) | Signed sessions and server revocation state | Session/user cutoff and identity suspension by operator | Remove independently exported material or silently revoke all other systems’ roles |
2. Capture the evidence before making any change
Record project ID, grant or invitation ID, role, owner, target object and exact action. For a Research approval, record projectId, role, grantId, grantee and revokedAt; for a local review role, record its policy or room export without including sensitive source content. Record the previous project revision and SHA-256 of a representative immutable artifact, where authorized.
3. Establish a positive control
In a disposable environment, verify that an appropriately granted actor can perform the narrowly defined action before revocation. For example, a legitimate approver:publication can decide a pending publication approval, subject to authentication, step-up, exact-revision and self-approval rules. Do not mistake a permitted action in a local JavaScript helper for a backend authorization decision.
4. Apply the matching revocation
- Local collaboration: remove the relevant policy grant and persist the updated local ledger. Re-read the policy and inspect the effective role; do not claim the actor has no access merely because the grant is absent.
- Review Room: mark the specific invitation
revokedthrough the room workflow and preserve the room event record. Existing exports or locally held snapshots are unaffected. - Research approval: an authenticated owner revokes the exact grant ID via the Research Approvals route. Re-read it, confirm a nonempty
revokedAt, and test a newly attempted protected action as the former grantee. - All-sessions response: where incident scope warrants account-level termination, involve the authorized security operator. The host-only session tool is not a collaborator self-service endpoint and must refuse if revocation enforcement is disabled.
5. Verify denial and preservation independently
Use a separate client/session for the former member; reloading only the owner’s page does not prove revocation. Check the precise protected operation and the negative HTTP status, then compare saved research objects, project revision/fingerprint, signed historical approvals and their recorded digests. Separately enumerate outstanding signed attestations, alternative role grants, active sessions, local fallback privileges and previously exported artifacts.
Symptoms
| Symptom | First check | Expected evidence |
|---|---|---|
| A removed local collaborator can still view or comment | effectiveRole after removeGrant |
Missing grant falls back to observer; observer has view-copy and comment |
| A revoked Review Room invitee can still view or export | roleFor, invitation status, exports |
Fallback to observer, which retains view-room and export-room |
| An invitation grants local privileges before acceptance | Status issued and roleFor |
Source helper does not require accepted for local role resolution |
| An approver cannot decide a request | Active role for the exact dimension/project; authenticated requester/decider; step-up | Often 403 for wrong grant, self-approval, or missing step-up |
| A revoked editor cannot get a new signed attestation | Active editor grant and identity |
404 for revoked/foreign/non-editor grant |
| Approval request or decision returns 409 | Pending status; subject hash; exact revision | Already-pending, finalized, or subject-changed conflict |
| Grant creation returns 404 or 422 | Owner project scope; role enum; grantee identity | Missing/foreign project or invalid/self grant |
| Account/session revocation appears ineffective | Operator enforcement flag, required schema, current session token, other identity channels | Audited operator result plus subsequent authentication denial |
Cause
Local role fallback is not a server denial
The Collaboration Architecture runtime returns observer for an actor whose policy grant was removed. Its observer capability set includes view-copy and comment. The Review Room runtime similarly resolves a revoked or declined invitation to observer; its observer capabilities include view-room and export-room. These methods evaluate local governance records and cannot establish authenticated server access.
Grants are scoped by owner, project, and purpose
SC-ED-01 uses separate editor and approver:scientific, approver:rights, approver:ownership, approver:publication, and approver:area-publication roles. An approval decider must usually differ from its requester. A revoked approver grant is excluded by the revoked_at IS NULL check. A separate active grant (including a permitted owner-wide scope) may still authorize another action.
Attestations and sessions are independent revocation channels
A signed editor attestation contains an expiresAt one hour after issuance. The source checks grant status before issuing a new attestation; it does not by itself establish that every downstream consumer rechecks a grant that was revoked after issuance. Authentication sessions have a separate revocation and identity-suspension subsystem. Neither mechanism retroactively erases a file already disclosed or a historical signed decision.
Troubleshooting
1. Inspect local policy behavior without exposing project content
From a checked-out repository at the pinned SHA, execute the following with Node.js. This is an isolated inspection of the real local helper, not a backend permission test:
const api = require('./wordpress/sustainable-catalyst-workspace/assets/js/sc-workspace-collaboration-architecture-v1.js');
let p = api.createPolicy('synthetic-project', 'owner-actor');
p = api.setGrant(p, 'synthetic-reviewer', 'reviewer', 'owner-actor');
console.log('before', api.effectiveRole(p, 'synthetic-reviewer'), api.can(p, 'synthetic-reviewer', 'manage-policy'));
p = api.removeGrant(p, 'synthetic-reviewer');
console.log('after', api.effectiveRole(p, 'synthetic-reviewer'), api.can(p, 'synthetic-reviewer', 'comment'));
// Expected: after observer true. This is a local fallback, NOT server authorization.
2. Inspect an authenticated Research approval grant
Through an authorized, already-authenticated Workspace session or isolated service integration harness, retrieve GET /v1/research-approvals/grants. Find the exact ID, grantee, role and project; do not choose by display name alone. Then use POST /v1/research-approvals/grants/{grant_id}/revoke as the owner. The returned item must contain revokedAt; its absence means the revocation should not be marked complete.
Example request body for grant creation in disposable staging only (the server obtains the owner from authenticated identity rather than from this body):
{
"granteeUserKey": "synthetic-reviewer-02",
"role": "approver:scientific",
"projectId": "synthetic-project-01"
}
Do not create replacement grants to clear a 403. For a revoked approver:publication, source integration tests expect an attempted decision by the former grantee to return 403. For a revoked editor grant, obtaining a new signed attestation returns 404. These are different operations, and both need to be tested if both capabilities were granted.
3. Investigate conflicts without blind retries
A 409 approval-already-pending means there is already a pending request for that subject and dimension. A finalized request cannot be decided again; a mismatched expectedSubjectRef produces 409 subject-changed. Retrieve the request and compare the precise research-object:<id>#<sha256> or research-area:<id>#<sha256> reference before taking further action. Never retry approve against an unreviewed revision.
4. Inspect session revocation only with an operator
The restricted CLI checks session_revocation_enforced, requires the supporting schema, and records an audit event. A disabled enforcement flag causes a refusal rather than a claim of success. In an authorized isolated environment, the operator may use:
# Host-side example; substitute a disposable identity and documented reason.
python -m app.session_operator revoke-user \
--user-key synthetic-user-02 \
--actor ops:staging-review \
--reason "synthetic revocation rehearsal"
Use revoke-session for a particular issued session ID where appropriate, or suspend-identity for a separately approved identity-suspension action. Do not execute those commands on production without authorized scope and rollback/recovery preparations.
Resolution
| Confirmed cause | Safe response | How to close |
|---|---|---|
| Local grant missing, observer remains | Record local capability fallback; restrict disclosure workflow or revise a tested policy in a later release | Do not claim full access revocation |
| Review Room invitation revoked, existing export retained | Preserve event and snapshot; identify recipients, retention and downstream access controls | Document copies outside Workspace as unresolved, not recalled |
| Research approver grant revoked | Verify revokedAt; attempt a new protected decision with former grantee |
Record denial, scope, project ID and separate evidence-preservation check |
| Research editor grant revoked | Check issuance of a new attestation is denied; inspect previously issued attestations | Test downstream acceptance at issuance-to-expiry boundary or note as unresolved |
| Pending/finalized approval conflict | Read current request and exact subject revision, then resolve via legitimate workflow | No duplicated or overwritten historical approval |
| Compromised identity or active session | Escalate to authorized operator for session/identity revocation, not a local UI edit | Server rejects revoked session; audit and research records preserved |
Do not delete canonical project objects or decided approval records as a workaround. The approved database migration protects finalized approval requests from update or deletion. Preserve grant rows and timestamps for audit; separate retention/legal obligations may require additional policies.
Verification
Use a three-part acceptance report. Each part must contain the identity/scope, tested operation, exact status, timestamp, and evidence location; redact secrets, research content and personal information in shared tickets.
- Bounded permission denial: a former grantee’s exact protected operation is rejected by the authoritative service. Document the specific role/project/action tested, not “all permissions revoked.”
- Research preservation: canonical project ID, revision/fingerprint, sample artifact SHA-256, and previously finalized approval record fingerprint match the pre-revocation baseline. A historical approval must remain readable by an authorized party.
- Offboarding completeness: test other grants, owner-wide scopes, local observer access, active sessions, outstanding signed attestations, and exported copies. If a channel cannot be tested, record
incompleterather thanpass.
Sample synthetic verification record; this is a documentation contract, not a claim that the backend emits it:
{
"schema": "sc-kb-team-membership-incident/1.0",
"projectId": "synthetic-project-01",
"control": "research-approval-grant",
"role": "approver:publication",
"before": {"grantActive": true, "projectFingerprint": "baseline-abc", "approvalRecordDigest": "record-123"},
"after": {"grantActive": false, "revokedAt": "2026-11-20T18:15:00Z", "projectFingerprint": "baseline-abc", "approvalRecordDigest": "record-123"},
"denial": {"operation": "decide-pending-publication", "httpStatus": 403},
"otherChannelsChecked": false
}
The companion triage utility reports the bounded grant as structurally consistent while leaving fullOffboardingVerified false. Actual API denial and artifact preservation must be observed in an isolated environment; fixture validation cannot authenticate either claim.
HTTP error and diagnostic reference
| HTTP status | Likely boundary | Next step |
|---|---|---|
| 401 | Missing or invalid authenticated session/service identity | Reauthenticate through approved flow; never replay another person’s credentials |
| 403 | No matching approver grant, self-approval forbidden, step-up required, or route policy denial | Inspect exact role, dimension, actor and step-up; do not broaden permission blindly |
| 404 | Project, grant, request or new editor attestation hidden/not found for this identity | Check authenticated owner/project context without enumerating other tenants |
| 409 | Already pending request, decided/withdrawn request, exact-revision change | Read current request and subject hash before any further mutation |
| 422 | Invalid role, self-grant, malformed subject ref or missing required confirmation | Validate payload against the source contract |
| 503 | Security service not configured or unavailable, depending on route | Stop mutation; gather configuration/health evidence through authorized operators |
Reproducible regression tests
Run these from a checked-out repository at the pinned SHA. The Python/PostgreSQL integration tests use synthetic data and must point only at a disposable database. Without the relevant database variable, the file’s PostgreSQL tests are skipped; a green exit alone does not establish integration coverage.
# Local JavaScript implementation checks
node tests/test_collaboration_architecture_foundation_runtime.js
node tests/test_collaboration_shared_review_hardening_runtime.js
# Pure Python tests and PostgreSQL integration tests when configured
python -m pytest -q backend/tests/test_research_approvals_sc_ed01.py
python -m pytest -q backend/tests/test_rhprod05_session_revocation.py
Additional regression cases to require: (1) former approver decision is denied after revocation; (2) new editor attestation is denied; (3) an attestation signed immediately before revocation is handled according to documented downstream policy; (4) duplicate grant/revoke is idempotent or explicitly refused without duplicate authority; (5) a wrong-project/wrong-owner request cannot reveal private data; (6) separate active grants are inventoried; (7) a revoked session is denied after reload; (8) previously signed review and project evidence remains available to the rightful owner; (9) an issued-but-unaccepted local Review Room invitation does not acquire unintended privilege in a corrected release; (10) reviewer acknowledgment of stale package imports does not silently modify source objects.
Versioned source contracts and boundaries
| Contract | Schema or path | Evidence scope |
|---|---|---|
| Local Collaboration Architecture | sc-workspace-collaboration-policy/1.0, sc-workspace-collaboration-actor/1.0 |
Local descriptive roles, grants and comments |
| Review Room invitation | sc-workspace-review-room-invitation/1.0 |
Local invite lifecycle and room-specific capability checks |
| Research approval grant | /v1/research-approvals/grants |
Server-authenticated, persisted grant and revocation timestamp |
| Research approval record | sc-workspace-research-approval-record/1.0 |
Signed historical review/decision record |
| Editor attestation | sc-workspace-research-role-attestation/1.0 |
Signed proof with one-hour issuance TTL; downstream revocation semantics require testing |
| Session revocation operator | python -m app.session_operator (host-side) |
Server session/user cutoff, audited separately from grants |
Safe incident evidence package
Record one sanitized case with: repository SHA, deployed image digest (if known), project ID or nonreversible reference, control type, grant/invitation/session reference, before/after role or revocation timestamps, exact HTTP status or local helper result, selected project/artifact fingerprints, request/decision record digests, and the operator responsible for approval. Record explicit exclusions such as already-exported review files, untested downstream services, unknown session persistence or unresolved identity mapping.
Do not collect: passwords, bearer tokens, session cookies, private manuscript contents, actual research datasets, or personal identity information in public support tickets. If any artifact is sensitive, store its receipt in the authorized private evidence repository and cite a nonsecret reference.
Technical references
- Collaboration Architecture — roles, local grants and non-ACL boundary
- Local collaboration runtime (effectiveRole/removeGrant/can)
- Shared Review Rooms — snapshots, invitations and portability
- Review Room runtime (roleFor/invite/setInvitationStatus)
- Shared Review Hardening — stale packages and reconciliation receipts
- SC-ED-01 Research Approvals — authenticated routes and grant semantics
- Approval grants and immutable decided requests — database migration
- Restricted session revocation operator
- Durable revocation and verification functions
- SC-ED-01 tests (PostgreSQL integration requires a disposable database)
Evidence statement: The source files and repository tests were inspected at the pinned SHA. This publication does not assert that a current production deployment has applied these migrations, enabled the associated flags, or passed staging authorization tests.
