Worked Examples

Apply publication controls — Workspace

Manage private research drafts, scientific review, rights clearance, and authorized publication across Workspace and Research. Includes version controls, approval procedures, GitHub verification, and safe recovery workflows.

ProductSustainable Catalyst Platform CoreUpdatedNovember 19, 2026Reading time23 minutes

Application: Workspace
Workflow: Scientific Publication Studio / Outputs & Publishing; Research release and approvals
Category: Developer workflow / governance / publication
Scope: Private research drafts, immutable revisions, rights and scientific approvals, release, unlisting and withdrawal
Publication status: Guidance may be published; technical integration verification pending
Reference source: Workspace main commit 6c5dfee4803ace1dbb2aca563b0bb80f3bfbdd2b (source baseline, not deployed version)
Last verified deployed version: Not established
Estimated reading time: 18–22 minutes

Quick summary: Apply release controls that keep research drafts and unapproved revisions private while allowing verified, rights-cleared and authorized work to progress through review and publication. Includes source-backed Workspace/Research boundaries, Linux/macOS terminal commands, GitHub checks, negative tests and safe recovery procedures.

Goal

Keep unpublished research private, bind each proposed public output to an immutable and identifiable revision, collect the required human decisions and rights evidence, and release only through the designated Research publication authority. Preserve the approved version and its audit trail when later edits are made.

Requirements

  • Authority: Confirm the owner, project, organization/tenant, researcher identity, intended Research area and intended public audience.
  • Immutable sources: Know the exact Studio document ID, revision number and SHA-256, plus the source objects, figure/table artifacts and citation snapshots it uses.
  • Rights: Determine source-specific redistribution and figure rights. Possession of a source or a successful export is not proof of permission to publish.
  • Review: Identify the active scientific, rights, ownership, publication and (when relevant) area-publication approvers or an explicitly disclosed alternative authorization policy.
  • Environment: An authorized supported staging release with isolated synthetic fixtures for actual integration testing. Do not infer the running version from GitHub main.
  • Workstation: Linux or macOS terminal with Git, optional GitHub CLI (gh), Python 3.12 for the repository test examples, and no production credential copied into logs.
  • Evidence: A review receipt, policy/rights decision, exact revision and release response must be retained with timestamps and immutable identifiers.

Procedure

Follow the ordered procedure below to control a proposed publication. These steps describe the verified source contract; before performing a write, confirm that the same operation, signing authority, and product version exist in the authorized running environment. A successful WordPress save, HTTP response, or Studio export is not approval to release.

  1. Confirm authority: identify the authenticated project owner, Research area, output document, organizational scope, reviewer grants, and appropriate publication policy (sections 1–4).
  2. Freeze the candidate: save the private Studio revision and record its exact document ID, revision, SHA-256, source references, figures, and rights evidence (section 5).
  3. Bind and submit: bind the output to one Research article, transmit the pinned revision, and inspect Research’s authoritative receipt without publishing it (sections 6–7).
  4. Request and evaluate approvals: obtain the separate scientific, rights, ownership, publication and, where required, area decisions against the exact subject hash; confirm current grants and fresh authentication (sections 8–9).
  5. Release deliberately: attach valid signed decisions, check Research refusals, request publication only with the authorized reviewer/owner approval, and independently inspect the served public revision (section 10).
  6. Manage subsequent changes: retain the last published revision while new drafts undergo review; distinguish unlisting from withdrawal and reconcile later rights restrictions (sections 11–13).
  7. Preserve evidence: execute read-only repository inspection and authorized isolated test procedures, retain receipts, and classify unverified deployment, privacy and science gates rather than claiming completion (sections 14–17 and 21).

Stop condition: If release identity, scope, source rights, approval validity, the exact revision, or Research’s response cannot be established, keep the output private and escalate with a sanitized evidence packet.

1. Identify the publication authority and scope

Workspace authors revisions and requests release. The Workspace source describes a signed-in-person session for interacting with Research, while Research decides article publication and serves the public revision. The public Research Hub displays the revision Research serves, not an arbitrary Workspace draft. Library and Lab may supply inputs or calculations, but neither an available output nor a valid artifact hash grants publication authority.

Boundary Source-backed responsibility Do not infer
Workspace Publication Studio Save and identify private, immutable manuscript/output revisions, their figures and citations. Saving, exporting or submitting equals public release.
Workspace approval service Issue authenticated, revision-bound approval requests and signed decisions; enforce grants and step-up where configured. A request, grant or self-attestation equals independent scientific review.
Research editorial API Hold the article lifecycle and public revision, apply release/refusal logic, unlist and withdraw. A Workspace-side UI button overrides a Research refusal.
Research Hub Display public Research content; reflect unlisting or withdrawal per Research state. A private Studio revision appears automatically in public search.
Connected sources Supply documented provenance and rights information. A dataset, notebook or figure becomes redistributable by being linked.

2. Source-anchored implementation map

At the inspected source baseline, the following files and contracts were identified. They establish where developers should look—not that those components are running on production.

Implementation What to inspect Evidence
Workspace output lifecycle backend/app/research_outputs.py: bind, send revision, approvals, publish, unlist, relist, withdraw, receipt endpoints Pinned implementation
Authenticated approvals backend/app/research_approvals.py: role grants, revocation, exact-subject approval, signed decisions, optional owner authorization Pinned implementation
Approval desk backend/app/approval_desk.py: same-origin reviewer UI, Content Security Policy, separate reviewer confirmation Pinned implementation
Rights delivery backend/app/rights_delivery.py: signed notice outbox, retry, reconciliation, restriction-first handling Pinned implementation
Workflow specification docs/sc-pub-endtoend-01-outputs-publishing.md: release, revisions, Research authority and staging gates Source documentation
Tests backend/tests/test_sc_pub_e2e01_outputs.py uses httpx.MockTransport and a fake Research service CI-backed contract tests, not live Research evidence

3. Distinguish editorial, approval and public states

Treat these as separate axes rather than a single boolean named published. Exact enumeration is owned by the deployed contract and must be read from the server response.

State or event Practical interpretation Permitted claim
Draft saved A private revision exists and can be edited in a new revision. Content is stored; not approved.
Submitted / review pending An exact revision has been sent for review. Review requested; not public.
Approved for a dimension A particular decision was signed for a particular subject hash. Only that approval dimension and revision.
Public revision Research has accepted all current gates and reports the published revision. The exact released revision is public.
New draft after release A new revision is being evaluated while the prior published revision remains served. New edits are not automatically public.
Unlisted Research may serve by direct link with noindex (per documented contract). Not fully withdrawn or necessarily inaccessible.
Withdrawn Research documents a withdrawal and intended 410 tombstone. No longer a normal public document; verify its actual served response.

4. Establish a safe preflight

  1. Use a disposable staging organization/project; capture the authenticated actor and owner without copying session cookies into evidence.
  2. Read the current Studio revision and pin its document ID, revision number and SHA-256. Verify figures, tables, bibliography and linked research objects.
  3. Confirm an explicit rights assessment for every source. Where a source was revised or rights tightened, stop until the revision and current rights are reconciled.
  4. Confirm the approval dimensions required by Research for the exact output and the designated Research area; do not assume the same approval covers both.
  5. Read the live API capability and release manifest from the actually running services, if permitted. Otherwise classify the step as not tested.
  6. Retain a private preflight receipt listing identity, tenant, project, source SHA, reviewer policy, test environment and expected release action.

5. Save an immutable manuscript/output revision

In the Scientific Publication Studio, save the output and inspect the server-returned revision. A later edit should produce a distinct revision rather than silently modifying the prior one. Preserve scientific tables, figures, bibliographic records and input provenance at the version used to support the claim.

Compute a local SHA-256 for a downloadable, authorized comparison copy using a stable file-format contract. Hashes of a rendered PDF and of its source Markdown are not interchangeable; compare bytes for the same artifact representation.

# Linux and macOS: only use a synthetic or explicitly authorized local file.
shasum -a 256 synthetic-publication.md
# Linux alternative when sha256sum is installed:
# sha256sum synthetic-publication.md

6. Bind the output to the Research article

The documented Studio workflow binds a saved output to one Research area and article slug. The source uses an owner-scoped route resembling /projects/{project_id}/outputs/{document_id}/bind within its registered router; retrieve the actual mounted prefix and payload schema from the target release. The binding is described as idempotent, and separate outputs must not claim the same article.

Before sending any revision, confirm the article and area target, owner, slug uniqueness and that no foreign project can bind the same resource. A 200 response alone does not prove correct ownership or public visibility.

7. Send the exact revision, not a moving head

Send the immutable document revision together with the cited Research object references pinned to their content hashes. Repeating the same exact revision is designed to be a no-op. A changed draft must not reuse the previous approval as evidence for the new bytes.

Reject stale requests where the current revision no longer equals the reviewer-confirmed revision. Do not let a browser-selected owner, arbitrary Research URL or unsigned client payload override the server-scoped identity and signing process.

8. Request scientific, rights, ownership and publication approvals

For publication, the documented dimensions are scientific, rights, ownership, and publication. Publishing an area has a separate area-publication approval. The source exposes authenticated approval grants and signed decision records under /v1/research-approvals.

Dimension Reviewer should establish What approval does not establish
Scientific Methods, data, assumptions, uncertainty, result consistency and appropriate scope. Universal correctness or independent validation unless actually performed.
Rights Licensing, redistribution of every input, figures and derivative outputs; applicable restrictions. That possession of a source authorizes publication.
Ownership The controlling project and authorized release owner. Scientific accuracy or third-party rights.
Publication Editorial completeness, privacy, release target, public statement and effective revision. Substitution for scientific/rights decisions.
Area publication Authority to make the Research area public. Authorization of every article or future revision in that area.

9. Enforce authentic reviewer identity and revision confirmation

The source approval workflow binds requester and decider to the authenticated Workspace identity rather than accepting names supplied in the request body. Grants can be revoked. The reviewer must confirm the exact subject reference, including its revision content hash. Fresh authentication/step-up is required in the documented reviewer path when configured.

Independence nuance: the default policy rejects ordinary self-approval. The inspected source also includes a separately gated owner self-authorization mechanism for some single-operator deployments. If enabled, it requires specific confirmation, step-up and attestation, and records owner-self-authorization — not independent review. Do not describe such a decision as peer review or independent scientific certification. See approval source and self-authorization tests.

10. Attach receipts and release only through Research

After receiving decisions for the exact revision, attach their signed records through the approved workflow. Research validates the relevant gates and returns its own response. Do not turn a local UI success, valid JSON, or signed Workspace receipt into a claim that Research accepted the article.

When authorized, publish the exact article revision and verify the returned publishedRevision plus public URL and served content. Preserve the Research-issued receipt. If Research refuses, retain the refusal and stop; do not change local state to published optimistically.

11. Safeguard later revisions

A newly saved manuscript revision should return to the appropriate review workflow while the last accepted public revision remains unchanged. Do not reuse the old revision SHA, approval record or editorial acceptance to release revised methods, figures, conclusions or source references. Verify that the public endpoint still serves the previously released revision until the new one is approved.

12. Unlist, relist and withdraw deliberately

The documented publishing interface includes Unlist, Relist and Withdraw actions. Unlisting is not deletion: it can leave an article available by direct link while suppressing search discovery. Withdrawal is a distinct public act with a withdrawal notice and intended HTTP 410 tombstone. After any action, inspect both the authenticated editorial state and anonymous public response in a scoped staging acceptance test.

Do not attempt removal by deleting the Workspace draft or altering a WordPress page directly; Research remains the declared public-release authority. Preserve withdrawal and correction provenance.

13. Handle source-rights updates and downstream restrictions

A permission or license change after initial release must trigger renewed evaluation of the affected source, output and public projection. Workspace’s source-level rights-delivery implementation documents a transactional outbox, ordered notices, restricted-first priorities, retries, and reconciliation after lost acknowledgments. These are source contracts; actual cross-service delivery remains to be proven against an authorized pair of deployed services.

A pending or failed rights delivery must not silently be treated as current approval. Restrict further release or escalate according to the actual deployed policy.

14. Inspect the implementation on Linux or macOS

These commands are read-only after cloning. They inspect source and GitHub evidence, not the deployed runtime. Pin a commit instead of relying on a moving main branch.

git clone https://github.com/Content-Catalyst-LLC/sustainable-catalyst-workspace.git
cd sustainable-catalyst-workspace
git checkout 6c5dfee4803ace1dbb2aca563b0bb80f3bfbdd2b
git rev-parse HEAD

git grep -n 'DIMENSIONS =\|/publish\|/withdraw\|/approval-requests' --   backend/app/research_outputs.py
git grep -n 'ownerSelfAuthorization\|expectedSubjectRef\|step-up-required' --   backend/app/research_approvals.py

# Optional authenticated GitHub CLI (read-only):
gh pr view 24 --repo Content-Catalyst-LLC/sustainable-catalyst-workspace   --json state,isDraft,mergedAt,headRefOid,url
gh pr view 77 --repo Content-Catalyst-LLC/sustainable-catalyst-workspace   --json state,isDraft,mergedAt,headRefOid,url
gh run list --repo Content-Catalyst-LLC/sustainable-catalyst-workspace   --workflow sc-pub-e2e-01.yml --limit 10

15. Execute the existing contract tests safely

The repository has an explicit SC-PUB-ENDTOEND-01 CI workflow. Its publication-route test file uses httpx.MockTransport and an in-process fake Research service, rather than a real Research deployment. These commands are suggested reproduction steps and were not executed in preparing this article. Run only within a disposable test workstation/container; dependencies may vary by commit.

# From the pinned repository root, in a disposable environment:
python3 -m venv .venv
.venv/bin/python -m pip install --disable-pip-version-check   -r backend/requirements.txt   -r backend/requirements-reporting.txt   pytest==8.3.4

# This is a mocked Research contract test, not a staging/publication test:
(cd backend && ../.venv/bin/python -m pytest -q   tests/test_sc_pub_e2e01_outputs.py)

# Review the repository workflow for the full test set:
sed -n '1,100p' .github/workflows/sc-pub-e2e-01.yml

For tests requiring PostgreSQL, dedicated identities, signing keys, TOTP/step-up or deployed Research, first establish a separately authorized staging environment with disposable fixtures. Skipped tests do not become passes.

16. Build an auditable release evidence packet

Before classifying a publication control as verified, capture an immutable evidence packet with the following fields. The example is an evidence checklist, not an existing Workspace API response or a schema automatically emitted by the platform.

{
  "schema": "kb-publication-verification-example/1.0",
  "claim": "A private revision cannot publish without effective gates",
  "source_commit": "6c5dfee4803ace1dbb2aca563b0bb80f3bfbdd2b",
  "workspace_running_image_digest": null,
  "research_running_image_digest": null,
  "deployed_migrations": null,
  "environment": "not yet verified",
  "fixture": "synthetic-only",
  "test_status": "not-run",
  "evidence_links": [],
  "scientific_review": "separate"
}

Store internal details only in an access-controlled evidence repository. The public Knowledge Base should include the citation, status and nonsecret finding, not tokens, real owner identities, unpublished content or signed private records.

17. Required positive and negative acceptance tests

Scenario Expected acceptance property Evidence type
Save draft and reload The private revision persists; anonymous/public route cannot reveal it. Database state, authenticated/anonymous requests
Bind/output submit Only the current owner can bind; same exact request is idempotent; another output cannot claim the same article. Owner-scoped API responses, stored binding
Exact-revision approval Valid reviewer decision references the expected content SHA; changed revision is refused. Signed decision record and stale-revision refusal
Role grant and revocation Revoked approver cannot authorize a new decision; wrong tenant receives denial. Authenticated negative responses
Partial decision set Missing scientific, rights, ownership, publication or area approval refuses release. Research refusal and unchanged public state
Owner self-authorization (if enabled) Fails without explicit gate, step-up, exact revision, attestation and non-independent disclosure. Authenticated decision/refusal evidence
Rights changed after review Stale or restrictive source rights prevent a new release until reconciled. Rights notice, delivery/reconciliation receipt
Publish exact revision Research reports the published revision; anonymous public content matches that revision only. Research receipt, anonymous GET + SHA check
Edit after publish Previous public revision stays served; new draft stays private until accepted. Two revisions and public-response comparison
Unlist/relist/withdraw Correct indexability/visibility; withdrawal returns documented notice and 410 when supported. Anonymous HTTP plus Research state
Timeout/partial failure No optimistic public state after refusal; bounded retries only with confirmed idempotency. Failure receipts and audit trail
Backup and restore Restored system retains revision, approval, rights and tombstone decisions. Isolated restore and revalidation

Troubleshooting

Start with the observable symptom, the authenticated actor and tenant, the immutable revision and its digest, the Research response code, and a nonsecret trace or receipt ID. Check the published revision at the Research authority rather than trusting a cached Workspace view. The Symptoms section lists typical faults; Resolution gives safe recovery steps, and the detailed triage matrix below distinguishes access failures, stale approvals, rights refusals and unavailable dependencies.

Do not retry publication blindly. First establish whether Research committed the previous request and whether the specific operation is idempotent. Preserve signed decisions and the last publicly accepted revision; never bypass a refusal by reusing another revision’s approval.

Symptoms

  • An output shows as submitted in Workspace but does not appear on the public Research Hub.
  • A reviewer sees 401, 403 or a step-up requirement; an owner or editor cannot see a foreign output (404).
  • An approval fails with a changed subject hash or other stale revision conflict (409).
  • Rights or figure clearance is pending even though the manuscript passed scientific review.
  • A successful local save or signed decision appears to publish, but Research still reports a private state.
  • A withdrawn article remains accessible or a newly edited revision appears publicly without a fresh approval.
  • The Research origin, backend signing service or reviewer identity cannot be verified; the publishing controls remain unavailable.

Resolution

  1. Freeze publication mutations: Stop new release attempts until the authoritative Research state is known. Do not “fix” it by editing the public page directly.
  2. Identify the principal: Check the current signed-in identity, active project, owner, exact object and review dimension; do not log cookies, tokens or signed private records.
  3. Reconcile versions: Read Studio revision, pinned subject hash and Research submitted/published revisions. A stale request needs a new review, not a forced update.
  4. Inspect refusals: Distinguish missing role, revoked grant, missing rights, step-up-required, Research unavailability and configuration failure. Capture sanitized status codes and a trace ID.
  5. Verify the public response: Compare Research’s actual response with the expected publication state; inspect an anonymous request from an authorized staging environment.
  6. Recover reversibly: Use the documented action (retry with idempotency, re-request review, unlist, withdraw, or staged rollback) only after owner authorization and with preserved receipts.
  7. Escalate: Open an access-controlled GitHub issue with the source commit, affected component, nonsecret reproduction steps, expected/observed result and the minimum sanitized evidence.

18. Failure triage matrix

Observation Possible cause Safe next step
401 No valid Workspace session. Reauthenticate; confirm the actual identity provider; do not copy credentials.
403 / step-up Missing scope or required fresh strong authentication. Check authorized reviewer grant and repeat the documented step-up flow.
404 on foreign object Owner-scope concealment may be operating. Verify expected tenant and project; never probe other users’ records.
409 Changed subject hash, duplicate slug or optimistic concurrency conflict. Reread source revision and re-request review; do not overwrite.
422 Invalid schema, missing exact confirmation or unsupported input. Correct the request against the pinned schema; do not remove authorization fields.
502/503 Research service or backend signer unavailable, not configured or upstream refusal. Check allowlisted staging endpoints and trace IDs; stop mutations.
Public state disagrees with Workspace Stale UI receipt, caching, or partial cross-service response. Treat Research as authority; compare exact served revision and audit trail.
Approvals exist but publication blocked Missing distinct dimension, rights freshness or area release. Inspect which Research gate refused; do not assume all approvals are interchangeable.

19. Maintain audit trails and prevent unsafe recovery

Never delete old signed decisions, rewrite hash-pinned revision contents, forge reviewer identities, purge public withdrawal notices, or replay a publication write blindly. A usable recovery plan has a reviewed backup and rollback boundary, a dry-run restore to disposable infrastructure and a post-recovery check of public/private state. For an in-flight request, first determine whether Research already committed it before retrying; use the source-defined idempotent operation only where supported.

Private and public audit stores have different disclosure obligations. Publish a concise evidence citation, not the underlying restricted dataset, approval signature secret or private reviewer information.

20. Separate scientific validity from authorization

Signed approval can establish who authorized a specific revision under a specific policy. It cannot establish that the scientific methods are valid, that uncertainty is adequately represented or that every cited result reproduces. Require an explicit methodological or independent review appropriate to the claim. If a single owner authorizes release under an exception, disclose that it is not independent review.

21. Production verification and release gates

A release claim requires matching the actual running Workspace and Research service/image digests to a reviewed commit, proving applied migrations and configuration, and executing the positive and negative acceptance matrix with disposable staging fixtures. The CI workflow and its fake Research tests alone do not satisfy these gates. Any production cutover or public-release action additionally requires explicit authorization, backup/restore acceptance and post-cutover evidence.

Gate Current evidence Remaining proof
Source contract Inspected files, workflow and tests at pinned GitHub commit Identify merged release commit and supported component version
Local contract Repository contains fake-Research test suite; not rerun for this article Record executed results for the intended baseline
Staging Deployment not independently inspected in this article Authorized Workspace/Research staging pair, identities, fixtures, server digests, migrations, anonymous probes
Production No production acceptance claimed Explicit approved cutover, image provenance, rights and identity controls, rollback verification
Scientific judgment Not evaluated Method/rights/editorial review evidence for the exact research output

22. Knowledge Base quality metadata

The body contains the exact headings Goal, Requirements, Procedure, Troubleshooting, Symptoms and Resolution. These address common structural checks but do not populate WordPress metadata automatically.

KB field Recommended value Important distinction
Product Workspace Select the existing canonical product entry.
Component Publication Studio / Outputs & Publishing, or exact supported taxonomy component Create no unverified component if a canonical one already exists.
Supported version Leave pending until an actual verified deployed release is matched Source commit 6c5dfee4803ace1dbb2aca563b0bb80f3bfbdd2b is not a deployed-version number.
Last verified version Not established for production; keep verification pending Do not reuse Backend 3.83.0 from the experiment-tracking pilot as publication-control certification.
Related engineering work SC-ED-01 PR #24 and SC-OUTPUT-01 PR #77 if relevant Both were open/unmerged when inspected; links are issue/implementation context, not deployment proof.
Article verification notice Source-anchored guidance, deployed integration pending Editorial publication and technical certification are separate.

23. Technical references

  1. SC-PUB-ENDTOEND-01 — Outputs & Publishing — documented Research lifecycle and release boundaries.
  2. Workspace Research output routes — source-level bind, send, approve, publish, unlist, relist and withdraw controls.
  3. Authenticated approval service — signed decisions, grants, revocation and scoped exception behavior.
  4. Approval desk — reviewer UI and CSP.
  5. SC-RIGHTS-02 rights delivery — delivery/retry/reconciliation semantics.
  6. Research output contract tests — fake Research; not a live-service acceptance.
  7. Approval-desk test suite — revision-confirmation and safety checks.
  8. Owner self-authorization tests — explicitly non-independent review mode.
  9. GitHub Actions workflow — specified CI test composition.
  10. W3C PROV-DM — provenance data model.
  11. OWASP API Security — authorization and access-control considerations.
Scroll to Top