Worked Examples
Validate scientifically publication controls — Workspace
Validate scientifically publication controls — Workspace Application: Workspace Status: Useful first draft, not a production-verified procedure. Research and governance question Evaluate whether publication controls preserves the
Application: Workspace
Area: Scientific validation, Publication Studio / Outputs & Publishing / Research approval governance
Content status: Published technical guidance; source reviewed, live integration verification pending
Reference component: Workspace Backend source baseline at 6c5dfee4803ace1dbb2aca563b0bb80f3bfbdd2b (source identifies a 3.83.0 backend profile; this is not a deployed-release claim)
Supported deployed version: Not established
Last verified deployed version: Not established
Article type: Scientific validation protocol / research governance
Estimated reading time: 20–25 minutes
Goal
Evaluate whether Workspace and Research publication controls preserve the identity, scientific meaning, provenance, authorship, rights and release authorization of an exact research revision. The principal acceptance claim is that a private research output cannot become public without the appropriate, revision-specific human decisions and a successful decision by the authoritative Research service. A secondary claim is that unrelated private work remains private.
The result is a governance validation, not a conclusion that the underlying research result is true. Report separately whether software controls behaved correctly, whether the evidence was independently scientifically assessed, and whether the deployed release was actually tested.
Requirements
- Read-only access to the owning source repository and its exact commit; an authorized staging environment is required for real integration claims. Never exercise the procedures on private or live research without owner authorization.
- For a staging gate: isolated synthetic owners, distinct reviewer roles, disposable Research/Workspace data, scoped credentials, available interface contracts, versioned service image digests and applied migration inventory.
- An immutable Studio revision identifier, source and output SHA-256 digests, associated method and dataset revisions, rights evidence, intended audience and editorial context.
- Defined scientific review criteria: hypothesis, data quality, methods, uncertainty, competing explanations, limitations, reproducibility standard and reviewer independence.
- An evidence storage location with sanitized request/response transcripts, signature-verification receipts where appropriate, test results and explicitly withheld secret or personal information.
Use a standard Python 3 installation only for the offline synthetic companion. Running the actual backend test suite additionally requires the repository’s pinned dependencies and a properly isolated environment; certain PostgreSQL tests require a disposable database.
1. Research question and falsifiable claims
Question: For a given project, source set, Studio revision and intended audience, does the publication process reject every unauthorized or scientifically unreviewed transition while preserving the reviewed material exactly?
Let P(r) mean Research exposes revision r publicly; H(r) means its content and source references match the reviewed immutable digests; and Ad(r) means valid, current authorization for dimension d. For the publication policy under test, require:
P(r) => H(r) AND A_scientific(r) AND A_rights(r) AND A_ownership(r) AND A_publication(r) AND A_area(r)
This is a necessary-control invariant, not a sufficient scientific-truth condition. A test should attempt to falsify it by removing or corrupting each prerequisite individually. The exact deployed policy, including any authorized exceptions, must be observed and recorded rather than assumed.
For a separate sibling revision s that was never approved, assert public_projection(s)=false, including anonymous discovery, snippets, graph edges, cached pages and export paths. Do not infer privacy from a hidden UI button.
2. Authoritative boundaries and state model
The Workspace source defines Scientific Publication Studio revisions and its Outputs & Publishing orchestration. It records user-scoped requests and Research-confirmed receipts; Research returns publication state and controls public exposure. The source document SC-PUB-ENDTOEND-01 source contract describes the intended workflow and recognizes five approval dimensions: scientific, rights, ownership, publication, plus area-publication for the Research area.
| Object or service | Owns or proves | Does not prove |
|---|---|---|
| Studio document/revision | Prepared content, revision and its SHA-256 | Public release or scientific correctness |
| Workspace approval service | Authenticated actors, dimension grants, revision-bound decisions and signed records | That Research has accepted or published the revision |
| Source-rights notice | Recorded statement about a pinned source and its rights status | Underlying legal ownership merely by possession |
| Research | Authoritative editorial/publication state and public projection | Scientific validity without review of methods and evidence |
| Public Research Hub | What Research serves to anonymous readers | Authorization for unpublished sibling objects |
Distinct transitions include draft, submitted for review, approved for an exact revision, public, unlisted, relisted and withdrawn. A later Studio revision must not inherit prior scientific or rights authorization by implication. Unlisting may retain link access and return noindex; withdrawal is documented as a terminal public 410 tombstone. Verify actual behavior in an authorized environment before claiming either.
3. Independence, reviewer identity and permitted exceptions
The examined research_approvals.py binds requesters and deciders to authenticated Workspace identities, not client-provided actor names. It supports dimension-specific grants and prohibits ordinary requesters from approving their own requests. An owner may confirm ownership of an editor-raised request, but that is not a substitute for independent scientific review.
The source also includes an optional, feature-gated owner self-authorization path requiring fresh step-up authentication, exact-revision confirmation and a written declaration. Its signed record must label the decision owner-self-authorization with independent=false. This path is not independent review; do not describe it as such, even where the deployment permits it.
Scientific validation under this protocol additionally requires an appropriately qualified reviewer independent of the author/requester and an inspectable assessment of the specific scientific evidence. The framework’s software capability and the organization’s scientific-review policy are separate matters.
Method
Use a predeclared acceptance matrix, not exploratory tests selected only after the system behaves as expected. Fix the following before any test: object and project IDs; reviewed revision hash; data and method versions; authorized actor roster; source-rights status; test environment; target source commit, service image digests and migration ledger; expected response and immutable evidence path. Record missing environmental prerequisites as blocked, never passed.
The method has three levels: (1) independent consistency checks on synthetic fixtures; (2) source-matched unit/contract tests on the actual Workspace implementation; (3) separately authorized end-to-end staging and deployment verification using actual Research responses and public projections. Only level 3 can support a claim about the installed integration.
Procedure
- Identify the exact candidate. Record project, owner, document ID, Studio revision and SHA-256, Research article/area IDs, source object digests, chosen methodology, data restrictions and intended readership. Obtain the real Research-generated subject reference; do not fabricate one for actual records.
- Freeze scientific context. Export the method description, versioned parameters, dataset identifiers, result lineage, assumptions, uncertainty and limitations. Determine what analysis would disconfirm the principal claim.
- Separate private and public artifacts. Keep private source objects, drafts, revisions and unrelated sibling outputs non-public. Use independent anonymous checks on every relevant public interface.
- Check source rights. Match each rights statement to the exact source digest, license and intended redistribution. Verify that a revoked or restricted notice blocks new eligible publication; separately test the actual delivery/reconciliation boundary where authorized.
- Verify scientific review independently. Check methods and data quality, statistical assumptions and calculations, disclosed uncertainty, evidential limitations and whether the conclusion follows. Store a human review decision that names the exact revision, reviewer identity and relevant evidence.
- Request dimension-specific publication approvals. Inspect authenticated grants for scientific, rights, ownership and publication decisions. Verify the area-publication decision separately. Confirm that the decision refers to the same immutable revision submitted for review.
- Test refusals before the positive path. Omit rights clearance, use a stale revision, revoke a grant, spoof an actor, attempt self-approval, mutate artifact bytes, and try an unauthorized sibling. Retain denial status and absence of public exposure.
- Exercise the authorized path only in isolated staging. Use the actual Workspace Publishing UI/API and its Research service with disposable identities. Confirm Research accepted the exact revision and returned the publication receipt. Confirm a fresh anonymous read sees only the authorized article.
- Test subsequent changes. Submit an unreviewed second revision while the prior approved revision remains the public one, then test unlist, relist and withdraw semantics where authorized. Inspect caches, source leakage and tombstone behavior.
- Close with evidence and independent disposition. Capture image digests, source commits, applied migrations, sanitized transcripts, raw test outcomes, signed-record verification results (using the actual configured verifier), scientific review notes and remaining blocks. Record each dimension separately as passed, failed, blocked or untested.
The implementation reference includes research_outputs.py, research_approvals.py and rights_delivery.py. Their existence in the source tree is not proof that their routes are enabled in a live deployment.
4. Reproducible source inspection and repository tests
For developer inspection, start from an explicitly recorded source SHA. These commands clone and inspect source; they do not publish anything.
git clone https://github.com/Content-Catalyst-LLC/sustainable-catalyst-workspace.git
cd sustainable-catalyst-workspace
git fetch origin 6c5dfee4803ace1dbb2aca563b0bb80f3bfbdd2b
git checkout --detach 6c5dfee4803ace1dbb2aca563b0bb80f3bfbdd2b
git rev-parse HEAD
rg -n 'approval|publish|rights|research' backend/app/research_outputs.py \
backend/app/research_approvals.py backend/app/rights_delivery.py
rg -n '^def test_' backend/tests/test_sc_pub_e2e01_outputs.py \
backend/tests/test_research_approvals_sc_ed01.py \
backend/tests/test_sc_pub_self01_owner_self_authorization.py
Source-matched test entry points: the Workspace repository includes SC-PUB-ENDTOEND-01 contract tests and SC-ED-01 approval tests. The former tests publishing interactions against a fake Research HTTP transport; the latter contains unit and PostgreSQL-dependent approval checks. It is therefore incorrect to describe every passing run as a live Research integration. A local command, once dependencies are installed into a disposable virtual environment, is:
# Run ONLY from an isolated clone; use a disposable database for DB-backed cases.
python3 -m venv /tmp/sc-pub-science-venv
. /tmp/sc-pub-science-venv/bin/activate
python -m pip install -r backend/requirements.txt pytest
cd backend
python -m pytest -q tests/test_sc_pub_e2e01_outputs.py \
tests/test_research_approvals_sc_ed01.py \
tests/test_sc_pub_self01_owner_self_authorization.py
Record actual pass/fail/skip counts, PostgreSQL configuration and any mocked HTTP boundaries. No such application test execution is claimed as part of this editorial update. The documented staging harness, scripts/sc_pub_e2e01_staging_harness.py, is a separate authorized acceptance step; do not run it against production without a reviewed deployment plan.
5. Positive and negative acceptance matrix
| Case | Control under test | Expected evidence |
|---|---|---|
| AP-01 Positive, all required approvals | Exact approved revision | Research receipt and allowed public projection for that revision only; separately verified signature, identity and runtime state |
| AP-02 Missing rights | Rights dimension withheld | Research refusal and no new public projection |
| AP-03 Stale revision | Approval refers to prior hash | Conflict/refusal; no promotion of newer revision |
| AP-04 Actor spoofing or wrong role | Authentication/authorization | Denied with no signed approval created |
| AP-05 Revoked approver grant | Grant freshness | Decision denied; old record remains historically inspectable |
| AP-06 Owner self-authorization | Explicit optional exception | Disabled unless configured; enabled record marked not independent and supported by step-up and declaration |
| AP-07 Modified source or output bytes | Content integrity and lineage | Checksum mismatch / blocked, not silently accepted |
| AP-08 Separate private sibling | Publication isolation | No anonymous content, metadata, graph links or indexed excerpt for sibling |
| AP-09 Revised document | Approval binding | Previously public revision remains distinct; new revision is not automatically authorized |
| AP-10 Unlist/withdraw | Public visibility transitions | Observed index restrictions, withdrawal notice / tombstone according to deployed contract |
| AP-11 Reviewer-method discrepancy | Scientific soundness | Reasoned independent scientific review identifies problems even when all software gates pass |
| AP-12 Unavailable Research service | Fail-closed boundary | Clear failed request and no invented Workspace publication receipt |
Expected statuses above are test objectives. Record actual HTTP statuses, response codes, service logs and preserved state during live integration acceptance; do not invent observed results.
6. Offline reproducibility: receipt-consistency checker
The companion package includes receipt_check.py, synthetic-receipt.json, synthetic-paper.txt and test_receipt_check.py. It checks whether a fabricated publication receipt is internally consistent, whether the referenced local artifact still hashes to its stated digest, whether rights and decision dimensions are present, and whether each decision names the exact revision. Its output deliberately uses CONSISTENT_NOT_AUTHENTICATED, not verified or approved.
Run the actual files supplied with this article package:
cd sc-publication-science-validation
python3 -m unittest discover -s . -p 'test_*.py' -v
python3 receipt_check.py synthetic-receipt.json
# Expected sample status: CONSISTENT_NOT_AUTHENTICATED
# A mutation of the synthetic-paper.txt bytes must fail its SHA-256 check.
Locally executed results for this article: 15 tests passed with zero failures. Negative cases covered missing rights approval, explicit restricted rights, stale approval subjects, duplicate decisions, altered or missing bytes, self-authorization disclosure, scientific independence, area authorization, private-sibling exposure, stale published revision, incomplete scientific-review fields, source-lineage mismatch and path traversal. The fixture’s reviewer identities, approval records and published status are fabricated assertions. The checker does not verify Ed25519 signatures, evaluate reviewer qualifications, prove actual rights or authorize any real publication.
7. Example receipt: what an offline consistency check can and cannot show
For a synthetic article, the key references should form a closed chain:
{
"studio_revision": {
"document_id": "demo-output", "revision": 1,
"sha256": "<SHA256 of exact local article bytes>"
},
"research_article": {
"object_id": "demo-article",
"subject_ref": "research-object:demo-article#<same SHA256>",
"submitted_revision_sha256": "<same SHA256>",
"published_revision_sha256": "<same SHA256>"
},
"approvals": [
{"dimension": "scientific", "subject_ref": "<same subject_ref>",
"decision": "approve", "independent": true},
{"dimension": "rights", "subject_ref": "<same subject_ref>",
"decision": "approve"}
]
}
This is an illustrative fragment, not a complete receipt. Four article dimensions and the area authorization are required in the full test fixture. In a real system, equality of text fields is insufficient: the actual recipient must verify signature format, trusted public key, subject binding, active authorization and revocation policy. These checks must use the authentic deployed contract, not a browser-supplied claim of signatureVerified=true.
8. Scientific assessment beyond the publication gate
Institutional authorization and scientific validity must remain separate decisions. A complete scientific assessment records:
- Evidence basis: which empirical measurements, published literature, derived observations and excluded sources support the claim. Cite exact identifiers and data dates.
- Method integrity: computation, parameters, calibration, control groups, selection bias, missing-data handling, assumptions and potential confounding.
- Reproducibility: immutable inputs, runnable environment and independent comparison. For floating-point replay, specify an acceptance rule before executing, e.g.
|y_replay − y_reference| ≤ ε_abs + ε_rel × |y_reference|; the tolerances must be justified for the domain and magnitude. - Uncertainty: units, precision, confidence or credible intervals where appropriate, systematic errors, sensitivity analysis and failure modes. An apparently exact byte hash is not a quantitative uncertainty estimate.
- Claim strength: distinguish direct observations, model output, estimates, assumptions, institutional judgments and causal conclusions. Record what would change the interpretation.
- Independence and limitations: reviewer qualifications, conflicts, disagreements, negative findings and residual uncertainty, including when an author is allowed to self-authorize publication.
The binary software proposition “publication controls prevented an unauthorized release” is not the scientific proposition “the research conclusion is supported by evidence.” Report each with its own reviewer and evidence trail.
Evidence
| Evidence item | Minimum record | Disposition if absent |
|---|---|---|
| Source and release provenance | Exact source SHA, configuration, image digests, migrations, feature flags and test environment | Cannot claim deployment-specific behavior |
| Document and source identity | Document ID, Studio revision, Research subject reference, source hashes, method/data versions | Cannot prove precise subject of approval |
| Approval decisions | Signed records, trusted key verification, actor/grant scope, reviewer independence, exact revision, revocation status | Authorization unverified |
| Research state | Actual Research receipts, public/anonymous responses, sibling checks, publication status before and after | Publication transition unverified |
| Scientific review | Review protocol, methodological findings, evidence citations, limitations, independent sign-off | Scientific validity unverified |
| Negative case transcripts | Denial status, unchanged state, no leaked private content, relevant sanitized logs | Fail-closed behavior unverified |
Keep confidential research records and credentials outside public CI artifacts and WordPress. For public documentation, use redacted receipts, exact public source references and a private evidence index where necessary.
Acceptance Criteria
Accept a technical publication-control claim only when the specified release was tested with an independent authorized observer, the required rights/review/ownership/publication/area gates blocked each negative case, and Research’s actual public projection matched the authorized revision while unrelated private material remained inaccessible.
Accept a scientific claim only through a separate review of real methods, observations, uncertainty and conclusions. Do not convert an automated governance or checksum pass into scientific certification. If any gate failed, was mocked, lacked staging authorization or did not have adequate evidence, classify that requirement failed, fixture-only, pending review, blocked or untested as appropriate.
Symptoms
- A manuscript appears public while its required rights or scientific approval is missing.
- Approvals exist but reference a different content hash or project.
- Research returns a refusal even though Workspace displays a publication action.
- Owner self-authorization is described as an independent scientific review.
- A later draft replaces the approved public revision without a new approval cycle.
- A withdrawn or unlisted article still leaks through search, graph, previews or cached exports.
- A local test suite passes but no running service identity, migration inventory or authorized staging receipt exists.
Troubleshooting
| Observed symptom | Likely boundary | Safe diagnostic |
|---|---|---|
| 403 on publication / evidence release | Missing rights, reviewer decision, active role or area permission | Inspect exact Research refusal and associated signed record; do not fabricate approvals |
| 409 stale subject / revision | Approval refers to an outdated hash | Compare Studio revision digest, Research revision subject and decision-bound digest |
403 step-up-required |
Fresh reviewer authentication absent | Use the configured SC Identity step-up; do not reuse shared credentials |
| 503 Publishing unavailable | Research endpoint or signing backend unconfigured/unavailable | Verify approved staging service config and read-only health probes; do not retry production writes blindly |
| Owner decision marked independent | Misleading self-authorization disclosure | Inspect review.kind and review.independent; require separate scientific reviewer |
| Public sibling becomes discoverable | Research projection, graph or cache leakage | Stop acceptance, preserve sanitized evidence and test anonymous routes |
| Checksum mismatch | Corrupt or substituted revision bytes | Quarantine output, recompute SHA-256 of the exact bytes and rebind review after correction |
Resolution
- Stop the proposed release; if a real private-data exposure exists, follow the organization’s incident and access-control procedure.
- Preserve the original immutable revision and denied transition receipts. Never change stored digests to manufacture a passing result.
- Identify the owning authority: Workspace identity/grants, source-rights service, Publication Studio, or Research publication service.
- Correct the underlying grant, rights basis, exact-revision selection or method; obtain new review and authorization when the subject changes.
- Re-run the same negative tests and fresh anonymous checks in an authorized environment. Preserve before/after evidence, outcomes and review decisions.
- Update the Knowledge Base claim/evidence mapping and leave deployment version and scientific validity unverified until independently accepted.
9. Current implementation evidence and limitations
Source inspection at 6c5dfee4803ace1dbb2aca563b0bb80f3bfbdd2b identified these actual implementation elements:
- research_outputs.py — Studio-to-Research output binding, submission, approval attachment, publishing and Research-confirmed receipt handling.
- research_approvals.py — authenticated grants, signed approval records, revision confirmation, review disclosure and optional owner self-authorization.
- Approval Desk source — same-origin approval desk, designed around authenticated decisions.
- rights_delivery.py — source-rights delivery and retry/reconciliation code; external correctness remains an integration question.
- SC-PUB-ENDTOEND-01 contract tests and SC-ED-01 approval tests — real source tests, with mocked Research or PostgreSQL prerequisites depending on the test.
SC-ED-01 draft PR #24 remains open and unmerged. The separate generic verification framework is under SC-KB-VERIFY-01 draft PR #36; it does not independently certify this article. The 15/15 tests reported in this article apply only to its offline fabricated receipt checker. This editing task did not inspect or execute live Research publication, independently verify Workspace approval signatures using a deployed trust root, or assess an actual scientific study.
Last verification classification: source-anchored editorial review, offline synthetic consistency checks passed; real Workspace/Research staging and production acceptance pending.
10. Knowledge Base classification and version metadata
Recommended WordPress classification: Workspace → Scientific Publication Studio / Publication Governance, using the closest existing product component. Associate SC-PUB-ENDTOEND-01 and SC-ED-01 as development references. Attach a specific supported product version and last verified deployment version only after authorized acceptance establishes their exact identity. The source-level backend profile 3.83.0 is not automatically an eligible supported or deployed version.
The quality-check headings Goal, Requirements, Procedure, Troubleshooting, Symptoms and Resolution appear verbatim in the article body. WordPress taxonomy, supported version and verification metadata must be assigned separately; adding text does not populate those fields.
Technical References
- SC-PUB-ENDTOEND-01 source contract — authoritative source-level publication lifecycle description and staging boundaries.
- research_outputs.py — Workspace Outputs & Publishing implementation at pinned source baseline.
- research_approvals.py — revision-bound approval records, reviewer grants and disclosure logic.
- SC-PUB-ENDTOEND-01 contract tests — synthetic Research HTTP contract tests.
- SC-ED-01 approval tests — approval and PostgreSQL-backed tests.
- SC-PUB-SELF-01 owner-self-authorization tests — owner self-authorization negative/positive checks; explicitly not independent review.
- rights_delivery.py — signed source-rights notice outbox and reconciliation logic.
- publication test workflow — source-controlled CI test entry points (not evidence of a live deployment).
- SC-ED-01 draft PR #24 — open development PR for authenticated, persisted approvals.
- SC-KB-VERIFY-01 draft PR #36 — draft generic Knowledge Base technical verification framework.
