Worked Examples

Validate scientifically workspace recovery — Workspace

Evaluate whether Workspace recovery preserves accepted research artifacts, their source and method revisions, computational outputs, audit events, and scientific interpretation.

ProductSustainable Catalyst Platform CoreUpdatedNovember 16, 2026Reading time17 minutes

Application: Sustainable Catalyst Workspace
Category: Scientific Validation / Workspace Recovery
Audience: Researchers, scientific reviewers, Workspace administrators, backend engineers, recovery operators
Technical level: Advanced
Estimated reading time: 16–20 minutes, excluding test execution and restoration rehearsal
Product component: Workspace — project state and recovery (register exact component in Knowledge Base metadata)
Supported version: Assign only a verified release in product metadata
Last verified version: Not established for deployed Workspace
Evidence: Synthetic Python fixtures, 39 executed unit tests, captured test-results.txt
Acceptance target: Recovery cannot silently remove or alter previously accepted records or their scientific lineage.
Code publication: Local test suite passed; immutable GitHub permalinks pending merge and verification

1. Goal

Demonstrate, using independently inspectable evidence, that a recovered project preserves the last accepted scientific state: governed artifacts, revision lineage, event history, dataset and method identities, output integrity references, evidence classifications, and publication restrictions. Recovering an apparently usable screen is not enough if accepted tables or conclusions now refer to different inputs.

2. Research and governance question

Can an authorized reviewer reconstruct the same accepted scientific claims and input-to-output relationships before and after recovery? Which object revision was accepted, which actor authorized it, what data and analytical methods produced it, and which observations or assumptions remain uncertain? A technical audit proves that recorded links are preserved; it does not prove the underlying science is correct.

3. Requirements

  • Two authorized, comparable snapshots: last known accepted pre-failure state and recovered state.
  • Stable organization, project, artifact, revision, and event identifiers.
  • References to source dataset identity and exact source revision, method identity and revision, and computational output digest.
  • Publication and review decisions bound to an exact artifact revision.
  • Permitted evidence access, including confidentiality and retention constraints.
  • An isolated test environment with a trusted recovery baseline and non-production credentials.

Use actual service contracts only after examining the deployed implementation. Do not manufacture missing acceptance events or research revisions to make a recovery comparison succeed.

4. Scientific acceptance model

Table 1. Independent acceptance dimensions
Dimension Comparison Failure example
Artifact continuity Previously accepted artifact remains identifiable with valid revision lineage Accepted report absent
Content integrity Same revision retains the same expected content digest Restored report overwritten
Scientific provenance Source ID/version, method ID/version, output identity and digest preserved Table points to a newer unreviewed dataset
Audit accountability Recorded event IDs, actor attribution, and parent revisions reconstruct Acceptance event lost
Disclosure Private or unreviewed outputs remain nonpublic Draft analytical output becomes public
Scientific correctness Independent review of calculations and interpretation Reproducible but invalid model

5. Reference data contract

The companion code extends the preceding recovery_validation.py reference model with ScientificLink. All identities below are synthetic and illustrative, not live service schemas.

{
  "artifact_id": "report",
  "artifact_revision": 2,
  "source_id": "dataset-1",
  "source_revision": "v1",
  "method_id": "method-1",
  "method_revision": "v3",
  "output_id": "output-1",
  "output_digest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
  "evidence_class": "derived",
  "review_state": "reviewed",
  "visibility": "private"
}

The digest in this fixture is a hexadecimal placeholder; it is not a cryptographic hash of a supplied scientific file. A deployed validator must recompute relevant hashes from protected, authorized bytes before asserting integrity.

6. Procedure

  1. Identify the accepted baseline. Resolve the last accepted project and each governed artifact before interruption. Record revision, timestamp, digest, and approval evidence.
  2. Capture scientific dependencies. For each accepted claim or output, record precise source, method, and derived-output versions, distinguishing observed, modeled, and derived evidence.
  3. Perform or observe recovery. In isolated staging, use the system’s documented restore or resumption procedure. Avoid using a browser cache or local unsaved draft as the authoritative source.
  4. Read the recovered authoritative state. Identify which writes committed and which remain pending or uncertain. Preserve trace IDs without secrets.
  5. Validate snapshots. Check tenant and project identity, unique event IDs, chronological bounds, accepted or published states, and revision lineage.
  6. Compare scientific links. Confirm accepted inputs, methods, outputs, evidence classifications, and visibility have not disappeared or silently changed.
  7. Independently recompute a sample. Re-execute at least one accepted calculation against the recorded exact inputs and method version, where feasible; reconcile values, units, uncertainty and citations.
  8. Verify public/private boundaries. Confirm recovered drafts do not inherit publication rights; inspect links, files, search metadata, and external sharing.
  9. Test persistence. Reload through a fresh authenticated session and repeat the critical comparisons.
  10. Issue an evidence receipt. Record actual source commit, installed version, snapshot references, executed checks, failures and responsible reviewer.

7. Run the executable validation package

The downloadable package contains recovery_validation.py and the earlier 19 tests, plus scientific_recovery.py and 20 additional scientific-continuity tests. It uses the Python standard library and does not connect to Workspace.

python3 -m unittest -v \
  test_recovery_validation.py \
  test_scientific_recovery.py

The test run captured for this article returned:

Ran 39 tests in 0.003s

OK

This actual local result verifies the reference implementation’s behavior under its declared fixtures and invariants. It is not a production acceptance receipt.

8. Core comparison logic

The essential reference call validates the general recovery snapshot first and then checks exact accepted scientific relationships:

from scientific_recovery import verify_scientific_recovery

# before, after, before_links and after_links
# must be constructed from authorized synthetic fixtures
# or from a separately verified adapter.
result = verify_scientific_recovery(
    before,
    after,
    before_links,
    after_links,
    tenant_id="tenant-synthetic",
)
assert result["accepted_preserved"]
assert result["scientific_lineage_preserved"]

See the companion test files for runnable fixture construction. Do not paste this illustrative invocation directly into a production runtime or mistake an asserted boolean for a trusted authorization decision.

9. Positive and negative tests

Table 2. Executed synthetic scientific-continuity cases
Test condition Expected outcome
Unchanged accepted record and scientific links Pass
Missing or altered source or method revision Reject
Changed output digest Reject
Missing accepted scientific relationship Reject
Duplicate link or unknown artifact revision Reject
Invalid evidence classification or review state Reject
Unpublished or unreviewed material exposed as public Reject
Wrong tenant, altered accepted artifact digest, or missing event Reject

Further tests required for real staging include actual database and object-store restore, revoked user access, transaction interruption, backup-retention suppression, concurrent edits, branching revision graphs, schema migrations, and cross-application publication synchronization.

10. Interpret the evidence correctly

Three conclusions must remain separate: (1) a snapshot was restored; (2) accepted scientific lineage was preserved; and (3) the findings are scientifically reliable. Only the second is the specific target of this reference validator. A valid recorded DOI, digest, or lineage edge cannot establish that measurements were unbiased, a model was appropriate, or a conclusion is justified.

11. Scientific recomputation and tolerances

Where a saved table or figure contains numerical values, compare regenerated outputs with the accepted artifact. For exact integer or decimal accounting, exact equality may be appropriate. For floating-point calculations, select a justified absolute and/or relative tolerance before testing:

|x_recovered - x_accepted|
  <= atol + rtol * |x_accepted|

Document the units, numerical precision, transformation rules, missing-data treatment, library versions, random seed (where relevant), and the rationale for any tolerance. Do not silently broaden tolerances until a failing comparison passes. A matching rendered PDF does not prove its underlying numerical outputs are correct.

12. Audit reconstruction

A reviewer should be able to explain who created, revised, accepted, and published an artifact, and when each transition occurred. Restore operations must not fabricate historical actors or retroactively apply approvals to a changed manuscript revision. The synthetic validator tests a deliberately linear sequence of revisions; a deployed system with branching, merges, asynchronous events, or separate approval objects needs a more precise implementation-specific model.

13. Publication, privacy, and rights boundaries

Recovery must not promote saved drafts, restricted data, reviewer comments, unpublished research, or unapproved outputs into public distribution. Inspect the authoritative rights and publication decisions for each exact revision. For actual release acceptance, separately test authorized access to object retrieval, attachment downloads, API serialization, public index results, and connected Research Hub publication surfaces. Lawful deletion, suppression, and retention instructions must continue to apply after backup restoration.

14. Troubleshooting

Symptoms

  • An accepted table, figure, report, or source relationship disappears after recovery.
  • An accepted output reappears but refers to a different method or source revision.
  • Historical actor or acceptance events are missing or out of order.
  • Draft or unreviewed research becomes publicly accessible.
  • Restored pages appear correct but underlying files or metadata disagree.

Cause

Possible causes include incomplete snapshot coverage, interrupted transactions, stale caches, incompatible migrations, unreconciled object storage, lost event streams, revision conflict, untrusted client state, or incorrect authorization replay. Confirm the actual failure boundary before making changes.

Resolution

  1. Stop further unsafe mutations and contain any unauthorized public exposure.
  2. Record the last accepted pre-failure and currently recovered states.
  3. Run the snapshot and scientific-lineage comparisons on authorized evidence.
  4. Resolve differences against immutable, permitted source records and true transaction outcomes.
  5. Use a documented, reversible reconciliation or guarded restore in isolated staging.
  6. Repeat numerical, source, audit, privacy and publication checks.
  7. Record actual findings and obtain appropriate scientific and operational acceptance before production use.

15. Recovery decisions and escalation

Table 3. Evidence-driven response
Observation Action
Unchanged accepted state; UI stale Refresh allowed client/index state; do not rewrite research
Accepted scientific link missing Hold acceptance and reconcile provenance from authoritative records
Accepted digest changed at same revision Investigate integrity mismatch; do not silently replace baseline
Recovered content requires new scientific interpretation Create controlled revision and request appropriate review
Private data disclosed Contain and escalate to privacy/security owner
Previous write outcome unknown Read authoritative state before retrying; honor idempotency contract

16. Evidence receipt

{
  "schema_version": "workspace-scientific-recovery-example-v1",
  "scope": "synthetic-reference",
  "general_recovery_tests": {"passed": 19, "total": 19},
  "scientific_continuity_tests": {"passed": 20, "total": 20},
  "local_result": "PASS",
  "real_workspace_identity": "NOT_TESTED",
  "database_restore": "NOT_TESTED",
  "object_store_hash_verification": "NOT_TESTED",
  "independent_scientific_recomputation": "NOT_TESTED",
  "production_authorization": "NOT_TESTED",
  "release_decision": "NO_GO"
}

Replace example fields only with actual signed or otherwise authoritative evidence. Never use a fixture result to certify production governance.

17. Acceptance criteria

Table 4. Required acceptance evidence
Criterion Evidence
Accepted artifact preserved Baseline-to-recovery object/revision comparison
Source and method lineage intact Exact-version scientific dependency comparison
Derived outputs reconcile File hashes and independent recomputation where feasible
Audit history intact Actor/event and revision continuity checks
Private remains private Real authenticated negative access tests
Recovery persists Fresh-session checks and controlled restore rehearsal
Scientific interpretation still warranted Qualified review of methods, assumptions and affected findings
Version actually verified Exact Workspace commit, release, CI and staging evidence

18. Verified reference test scope and Workspace integration

The locally executed reference package contains 19 snapshot and event-continuity tests and 20 scientific-lineage tests. The user’s Mac Terminal run reported Ran 39 tests followed by OK, with no failing cases. This verifies that the synthetic test suite ran successfully on that machine; it does not establish that a production recovery took place.

Before integration, reconcile snapshot and event contracts with the actual Workspace persistence schema, actor authorization, project/organization boundaries, approval state, immutable artifact storage, backup restore, and cross-application provenance. Establish separate acceptance for actual recovery and for independently reproduced scientific outputs. Do not equate synthetic review_state or visibility strings with enforced permissions.

19. Executable Evidence and GitHub Source Code

Repository: Sustainable Catalyst Workspace on GitHub (public repository). Publication status of these specific validation files: not yet verified. The completed local test run and the existence of a public repository do not establish that this package has been committed, reviewed, or merged. Until the source is confirmed at an immutable commit, do not advertise a permanent source-code permalink or a completed CI run.

Reference package inventory

Path under scientific_validation/workspace_recovery/ Evidence purpose Expected checks
README.md Run instructions and limitations Reproduction instructions
recovery_validation.py Snapshot, event, revision, and accepted-artifact continuity Reference implementation
test_recovery_validation.py General recovery positive and negative tests 19 tests
scientific_recovery.py Source, method, output, and evidence visibility consistency Reference implementation
test_scientific_recovery.py Scientific-lineage positive and negative tests 20 tests
test-results-macos.txt Captured local execution output (generated on the operator’s Mac) Actual execution evidence, not necessarily committed

Reproduce the local checks

cd scientific_validation/workspace_recovery
python3 -m unittest -v test_recovery_validation test_scientific_recovery

Observed local result (November 16, 2026): Ran 39 tests in 0.002s and OK, using Python 3.15.2 on macOS. This is a local synthetic-regression receipt, not evidence of GitHub CI, production database restoration, production authorization, or independent scientific review.

Publish and verify permanent links

After the five reference files have been security-reviewed, committed to a feature branch, reviewed in a pull request, and merged, resolve the exact commit and inspect the source paths. Use the resulting URLs in this article. Do not replace placeholders with speculative branch or commit references.

# Run from the Workspace repository root after the PR is merged.
git switch main && git pull --ff-only
SHA=$(git rev-parse HEAD)
BASE="https://github.com/Content-Catalyst-LLC/sustainable-catalyst-workspace/blob/$SHA/scientific_validation/workspace_recovery"
for f in README.md recovery_validation.py test_recovery_validation.py scientific_recovery.py test_scientific_recovery.py; do
  test -f "scientific_validation/workspace_recovery/$f" || exit 1
  printf '%s/%s\n' "$BASE" "$f"
done

Knowledge Base publishing gate: Add deep links only after confirming they resolve for an unauthenticated reader, the source is appropriate for public release, the linked commit matches the executed test artifact, and CI or a dated local test receipt is archived with sufficient environment and revision metadata. A main-branch link alone is not immutable. A green CI badge is not a substitute for actual test and deployment evidence.

Evidence citation record

Field Current value
Reference test count 39 (19 recovery + 20 scientific-continuity)
Local execution Passed on macOS, Python 3.15.2, November 16, 2026
Source repository Content-Catalyst-LLC/sustainable-catalyst-workspace
Validation source commit Pending verified public commit SHA
Pull request / review Pending verified GitHub PR reference
GitHub Actions run Not established
Production recovery acceptance Not performed in this package

20. Scientific and technical references

  1. National Academies of Sciences, Engineering, and Medicine (2019). Reproducibility and Replicability in Science. https://doi.org/10.17226/25303.
  2. W3C. PROV-O: The PROV Ontology. https://www.w3.org/TR/prov-o/.
  3. Wilkinson, M.D. et al. (2016). The FAIR Guiding Principles for Scientific Data Management and Stewardship. https://doi.org/10.1038/sdata.2016.18.
  4. Python Software Foundation. unittest — Unit Testing Framework. https://docs.python.org/3/library/unittest.html.
  5. OWASP. Authorization Cheat Sheet. OWASP guidance.

21. Completion and verification record

Reference validation: 39/39 synthetic tests executed and passed in the local macOS run. The reference package and output have been inspected, but the exact public GitHub source commit and permanent file permalinks are not yet verified. Production validation: Not tested. Scientific review: Not performed on a real recovered study. Release acceptance: Not granted.

Completion criterion: An authorized reviewer can identify and reconstruct each previously accepted artifact and its exact scientific inputs, methods, results, review state, and historical events after recovery, without silent loss, undocumented changes, or unauthorized exposure. Such continuity is necessary but not sufficient for scientific validity.

Scroll to Top