Worked Examples
Validate scientifically team membership — Workspace
Validate scientifically team membership — Workspace Application: Workspace Status: Useful first draft, not a production-verified procedure. Research and governance question Evaluate whether team membership preserves the scientific
Application: Workspace
Component: Collaboration Architecture / Shared Review Rooms / Research Approvals
Article type: Scientific and institutional validation protocol
Source baseline: 957738a1e76aa3347027f6af006c08c5d3db5307
Supported deployed version: Not verified
Last deployment verification: Not established
Estimated reading time: 16 minutes
Editorial status: Source-anchored; independent implementation and governance verification pending.
Team membership is valid for research governance only when a reviewer can identify the responsible actor, the exact project and delegated action, and the point at which authority changed. Revocation must stop new unauthorized operations without erasing the evidence of work performed before the change.
Goal
Test the proposition: after a collaborator’s relevant permission is revoked, subsequent protected actions are denied while the project, original evidence, and historical decisions remain intact. This is a falsifiable authorization-and-preservation claim, not a scientific correctness certificate.
authorization(actor, project, action, time_before) = allow
authorization(actor, project, action, time_after) = deny
sha256(protected_artifact_before) = sha256(protected_artifact_after)
project_revision_before = project_revision_after # when no project edit is expected
Evaluate the claim separately for each authority boundary. A successful server-side denial proves only the tested action at the tested time, not that local exports, older signed attestations, or other permissions have been revoked.
Requirements
- An explicitly authorized reviewer, a disposable project, and synthetic actors/accounts; no live colleague identity or real private research in demonstrations.
- A repository checkout pinned to the cited commit, or a documented comparison against the version actually deployed.
- A clear set of principal IDs, owner ID, project ID, role or grant ID, scoped capability, and timestamps; exclude credentials and personal information from public receipts.
- Access to the relevant authoritative records and a genuinely isolated test deployment for server checks. Browser-local fixture tests are insufficient.
- Before/after access observations, immutable protected-artifact digests, revision markers, and historical review receipt identifiers.
- A rights/legal review of what can be disclosed or recalled after access is withdrawn; no claim that a digital export can be remotely erased.
Procedure
Use the following thirteen-section protocol in an isolated research test environment. Collect both permitted-before and denied-after observations without mutating or deleting the research evidence whose preservation is under test. Record unavailable or untested authority boundaries as unresolved, not as passing checks.
1. Distinguish the three membership authorities
| Mechanism | Identity and scope | What revocation can establish |
|---|---|---|
| Collaboration Architecture | Browser-local actor IDs; per-project policy grants; roles owner, editor, contributor, reviewer, observer. | Removal changes the local role calculation only. It is not a backend account or server ACL; fallback observer retains view-copy and comment. |
| Shared Review Rooms | Browser-local room invitations and frozen review snapshots; roles owner, editor, reviewer, observer. | Revocation changes local invitation status. Fallback observer retains view-room/export-room under the helper; past exports remain outside its control. |
| Research Approvals (SC-ED-01) | Authenticated Workspace user key; persisted editor and dimension-specific approver grants, scoped by project. | Server checks active grant at request/decision time. Revoked approver is denied future decisions for that dimension; this does not equal general project-account revocation. |
| Workspace session revocation | Separate host-only identity/session operator boundary. | Can invalidate sessions when deployment enforcement is enabled; not automatically performed by a collaboration-policy or research-grant removal. |
Source anchors: Collaboration Architecture, Review Rooms, Research Approvals, and session operator.
2. Establish identity and project scope
- Identify the canonical server owner and project in an authorized test environment. A local actor display label is not an authenticated human identity.
- List all grants for the target person and record the exact
grantId, role, project scope, and status. Document potential wildcard*grants independently. - For a pending scientific decision, bind the test to the correct project,
scientificdimension, and exact object/revision reference. - Capture the project and evidence fingerprints before any grant mutation, using the canonical store; do not copy protected raw data into an article or public incident ticket.
- List external review packages already delivered and outstanding signed attestations. They are separate residual-access risks.
The authenticated approval roles include editor, approver:scientific, approver:rights, approver:ownership, approver:publication, and approver:area-publication. Their grants do not confer blanket read/write access to another owner’s private project database.
3. Validate the local Collaboration Architecture
The current local helper exposes createPolicy, setGrant, removeGrant, effectiveRole, and can. Import it from the checkout rather than duplicating the capability map. Confirm the actor’s effective role and permitted capabilities before and after removing a grant.
const local = require("./wordpress/sustainable-catalyst-workspace/assets/js/sc-workspace-collaboration-architecture-v1.js");
// Use synthetic owner/reviewer records from a test fixture.
policy = local.removeGrant(policy, reviewer.id);
console.assert(local.effectiveRole(policy, reviewer.id) === "observer");
console.assert(local.can(policy, reviewer.id, "view-copy") === true);
console.assert(local.can(policy, reviewer.id, "manage-policy") === false);
Expected finding: The actor falls back to observer. The current observer role includes view-copy and comment; therefore the local permission model does not meet the stronger claim “a revoked person loses every capability.” This is not evidence of a server authorization bypass, because these are not server-enforced permissions.
4. Validate Review Room invitation revocation
Review Rooms maintain scoped invitations, status transitions, explicit frozen snapshots, and review audit events. Revoke one synthetic invitation and rerun roleFor and can.
const rooms = require("./wordpress/sustainable-catalyst-workspace/assets/js/sc-workspace-review-rooms-v1.js");
// invitation and room refer to a synthetic review project.
const result = rooms.setInvitationStatus(room, invitation.id, "revoked", owner.id);
console.assert(result.ok);
console.assert(rooms.roleFor(result.room, reviewer.id) === "observer");
console.assert(rooms.can(result.room, reviewer.id, "comment") === false);
console.assert(rooms.can(result.room, reviewer.id, "export-room") === true);
The observer fallback currently retains view-room and export-room. Revocation cannot retract files the reviewer already downloaded. Its room snapshot uses the local helper’s non-cryptographic FNV-1a fingerprint: treat that as a change-detection aid, not independent authorship, tamper resistance, or a cryptographic proof of content integrity.
5. Validate authenticated Research approval grants
The SC-ED-01 backend is a separate authority with persisted grants and request decisions. The following routes are observed in source; they are not instructions to run writes against production.
| Route | Intended contract |
|---|---|
GET /v1/research-approvals/grants |
List grants visible to the authenticated owner or grantee. |
POST /v1/research-approvals/grants |
Owner grants one editor or dimension-specific approver role on the specified project. |
POST /v1/research-approvals/grants/{grant_id}/revoke |
Owner sets revokedAt; repeated revoke is idempotent at this record. |
POST /v1/research-approvals/grants/{grant_id}/attestation |
Active editor grantee requests a short-lived signed attestation; revoked grant is rejected. |
POST /v1/research-approvals/requests/{approval_id}/decide |
Decision requires an active dimension grant or a narrowly defined owner path; decided requests cannot be decided again. |
An approver:scientific grant is checked for a scientific decision; a separate approver:rights grant does not substitute for it. When SC Identity is enabled, approval also requires fresh step-up evidence and exact revision confirmation. Owner self-authorization, where feature-gated, must be disclosed as not independent review.
6. Run a bounded before/after revocation experiment
- Provision synthetic owner A, independent reviewer B, and unrelated user C in disposable PostgreSQL. Do not use WordPress browser headers as fake credentials in production.
- Create a private test project with a scientific source object and a separate pending scientific approval request. Record project revision, object digest, request ID, and the active
approver:scientificgrant. - Confirm that B can perform the specific approved operation before revocation under the actual server authorization layer. Use a separate fresh pending request for the after-test because an approval already decided is final.
- Revoke exactly that scientific grant using the authorized owner route; retain the returned grant record with
revokedAt. Do not delete the project, evidence, or prior decision. - As B, attempt the same protected decision on the new pending request. Expect denial (403 in the repository test); verify C is also denied and the owner cannot self-certify scientific review by the ordinary path.
- As the owner, verify the research object, signed historical decision receipt, project revision, and audit history still match their pre-revocation state.
- Rerun the post-revocation access attempt after a new session where supported. Independently test any additional grants, tokens, and services not covered by the revoked grant.
- Record results with nonsecret response codes, grant/request identifiers, timestamps, version pins, and checksums. Do not publish private object contents or bearer tokens.
Interpretation: This demonstrates per-action authorization and evidence preservation if the tests pass in the deployed backend. It does not establish full account deprovisioning or recovery of previously disclosed content.
7. Treat previously issued attestations separately
An active editor grant can issue a signed sc-workspace-research-role-attestation/1.0 whose declared lifetime is 3,600 seconds. Revocation prevents a new attestation from being issued by the revoked editor. The source evidence inspected here does not establish that every downstream verifier checks current grant revocation when accepting an already issued, not-yet-expired attestation.
- Obtain an attestation before revocation only in synthetic staging; record the issue time, expiry, audience, grant ID, and fingerprint—not the private token in public output.
- Revoke the source editor grant, then test the exact Research verifier with that already-issued attestation and with a newly requested one.
- If the old attestation is still accepted, record the effective exposure window and classify immediate global revocation as failed or unproven. Revocation is not complete merely because new issuance is blocked.
- Independently test actual session revocation if required. Session revocation and approval-grant revocation address different privileges and must not be conflated.
8. Prove scientific and institutional evidence preservation
Compare the canonical project record and protected artifact bytes before and after the grant change. The project should not change merely because an approval grant is revoked, and previously completed reviews must remain attributable to the authenticated actors who performed them.
import hashlib
before = hashlib.sha256(original_artifact_bytes).hexdigest()
after = hashlib.sha256(recovered_artifact_bytes).hexdigest()
assert before == after
assert project_revision_before == project_revision_after
assert set(historical_receipt_ids_before) <= set(historical_receipt_ids_after)
A SHA-256 match shows byte-level consistency under the assumed sampling and trust chain; it does not establish that the research conclusion is correct. Where approval records are signed with Ed25519, independently verify their signature using the pinned issuer key and exact signing domain, and reconcile the subject hash and actor ID with the authoritative record. The offline companion checker does not perform that signature verification.
9. Execute the reproducible offline evidence check
The companion package includes an editorial, synthetic-only receipt schema (sc-kb-team-membership-validation/1.0). It is not a Workspace product/API schema and must not be sent to a platform endpoint. It checks internal consistency, correct scope and chronology, denial observations, and unchanged evidence; it never authenticates the reported actor or makes a live request.
python3 generate_fixture.py
python3 validate_team_membership.py synthetic_team_membership_receipt.json
python3 -m unittest -v test_validate_team_membership.py
# From a compatible checkout, import and test the ACTUAL browser-local helpers:
node verify_workspace_membership_helpers.js /path/to/sustainable-catalyst-workspace
The synthetic receipt intentionally returns structuralResult: PASS while also returning fullRevocationVerified: false, with warnings for observer fallback and previously issued attestations. Passing a data-structure check must never be represented as independent authorization or scientific acceptance.
10. Reproduce repository-level implementation tests
Use the exact Workspace checkout and an isolated test environment. The first two commands run local runtime contracts; the third includes a backend test suite whose PostgreSQL integration cases are skipped unless explicitly configured with a disposable PostgreSQL database.
node tests/test_collaboration_architecture_foundation_runtime.js
node tests/test_collaboration_shared_review_hardening_runtime.js
python3 -m pytest -q backend/tests/test_research_approvals_sc_ed01.py
# For PostgreSQL integration, set only a disposable test DB URL in the test process.
# Never point the test suite at production or staging data.
The upstream tests include refusal of a revoked publication approver, rejection of a wrong-dimension approver, self-approval restrictions, and signed record preservation. They are not a substitute for exercising the independent deployed identity and Research verification boundaries.
Symptoms
| Observation | Possible explanation | What to check |
|---|---|---|
| Grant revoked, but collaborator still appears able to view or export | Local role falls back to observer; review artifacts may already have been exported. | Inspect effectiveRole, roleFor, can and actual data-access boundary; avoid claiming server access was revoked. |
| A scientific decision is still accepted after revoke | Another active grant, stale authorization cache, different project scope, or a bypass may exist. | List all relevant active grants and run a fresh authenticated decision attempt on a new pending request. |
| Signed editor attestation works after grant revoke | Already-issued attestation may remain valid until expiry without fresh grant validation. | Test the actual downstream verifier; inspect expiry, audience, current grant status and revocation logic. |
| Historic approval or evidence disappears | An unrelated mutation, data-store corruption, or unsafe cleanup may have occurred. | Compare canonical revision, receipt IDs, record fingerprints, recovery and backup evidence. |
| Approval rejected despite expected role | Wrong dimension, requester/decider collision, missing step-up or stale exact revision. | Inspect sanitized 403/409/422 and the recorded policy/subject reference. |
Cause
The principal root cause is confusing local coordination roles with authenticated authorization. Other causes include untested access paths, already-delivered exports, still-valid signed attestations, project-wide or wildcard grants, missing revocation-store enforcement, stale revisions, and inadequate record-preservation controls. A label such as approved or revoked is not itself an independent proof that the intended system boundary behaved as expected.
Troubleshooting
- Identify the exact denied-or-allowed action; distinguish read, review comment, room export, approval decision, document upload, session use, and Research publication.
- Confirm whether the observation comes from a browser-local helper or an authenticated server route. Do not transfer conclusions across boundaries.
- Resolve the acting identity, project scope, grant ID, role dimension, request revision and event time from trusted records.
- Inspect all still-active grants and independent access channels. Revoke only authorized scope; do not destroy research objects.
- Rerun the negative request using a genuinely independent identity/session. Verify both denial and absence of side effects.
- Compare source hashes, revision histories, decisions, and audit receipts to the last accepted state. Escalate unresolved cases with redacted evidence.
Resolution
An evidence-backed resolution is a documented access-control transition: the relevant authenticated grant is revoked; all specified privileged post-revocation requests are rejected; the project and historic review records remain unchanged; and remaining observer, exported-copy, attestation, session, and cross-service exposure is explicitly tested or listed as an open limitation. If any untested channel can affect private research, report partial or unverified revocation, not “team member removed.”
Verification
| Acceptance gate | Observable proof | Decision rule |
|---|---|---|
| Attribution | Authenticated principal, role/grant ID, project, approved action, time and issuer. | Required for server claims; a local actor label alone fails. |
| Least privilege before removal | Owner-independent reviewer allowed only a scoped authorized operation. | Only the intended action is available; wrong dimension/owner denied. |
| Post-revocation denial | Fresh request denied for revoked role, same project, new pending subject. | Required; zero unauthorized successful mutations. |
| Preservation | Canonical project revision, exact artifact digests and historic review receipts unchanged. | Required; no loss of preexisting evidence. |
| Residual access | Observer capabilities, exported copies, issued attestations, sessions, other grants and downstream consumers checked. | Unknown channels prevent a complete-loss-of-access claim. |
| Independent scientific review | Human reviewer examines research methods, source rights, analysis and disclosed conflicts. | Required for scientific approval, separate from security tests. |
| Deployment proof | Actual image/commit, migration state, isolated staging evidence, CI outcome and tester identity recorded. | Required before marking platform behavior production-verified. |
11. Negative-test matrix
| Case | Expected safe behavior |
|---|---|
| No authenticated principal / wrong owner | Protected server access denied; no project metadata or private content leaked. |
Approver has rights but not scientific |
Scientific decision rejected. |
| Requester tries to decide own request | Rejected except explicitly gated and accurately disclosed owner-self-authorization paths. |
| Revoked approver decides a new request | Denied and no new signed decision generated. |
| Revoked editor requests new attestation | Denied; existing attestation separately assessed for expiry/revocation. |
| Review-room invitation revoked | Room-local reviewer/comment privileges restricted; observer view/export fallback explicitly recorded as a gap. |
| Duplicate or stale review response | No duplicate canonical modification; owner acknowledgment for stale/legacy response where applicable. |
| Stale project revision or foreign project reference | Rejected without rewriting the canonical project or evidence. |
| Revoke while retaining source observations | Artifact digests, original project revision and historical receipts preserved. |
| Signed record tampered or key mismatched | Cryptographic signature verification fails in the genuine verifier; no reliance on the offline structural checker. |
12. Interpreting outcomes
- Structural PASS: the synthetic receipt is internally consistent. This is the outcome of the included offline checker, not a security certification.
- Scoped authorization PASS: an isolated server test proves that a specific revoked role cannot perform a named protected operation after revocation.
- Partial / conditional: server action denial works, but an existing attestation or other access path is not resolved. Do not claim complete removal.
- FAIL: an unauthorized action succeeds, evidence is lost or altered unexpectedly, or a reviewer can still obtain protected data through an unauthorized channel.
- Scientific acceptance pending: even if access controls work, provenance, methods, author contributions, source rights, and claimed findings still require independent examination.
13. Technical references
- Collaboration Architecture runtime: actors, policies, role fallback and capability evaluation
- Review Room runtime: invitations, snapshots, revocation and export
- Collaboration Policy JSON schema
- Review Room Invitation JSON schema
- Revision-bound asynchronous review and duplicate-reconciliation guards
- SC-ED-01 authenticated Research approval grants and signed decisions
- Repository tests: role denial, revocation, identity and signed record behavior
- Server session revocation logic
- Host-only session/identity operator
- Local collaboration runtime unit test
- Shared-review reconciliation runtime unit test
Implementation anchor: The repository commit identifies inspected source, not the deployed release. The WordPress component, last verified version, live identity configuration, independent reviewer, actual publication version and production authorization result must be attached through the canonical editorial verification workflow. Treat this article as source-supported guidance until those gates are evidenced.
