Troubleshooting
Troubleshoot research workspaces — Workspace
Troubleshoot research workspaces — Workspace Application: Workspace Status: Useful first draft, not a production-verified procedure. Typical symptoms Research workspaces fails when records cannot be resolved, authorization is miss
Application: Sustainable Catalyst Workspace
Component: Research Projects / Research Workspaces
Article type: Technical troubleshooting
Source baseline: Workspace main, commit 957738a1
Technical review: Source-anchored; live configuration and deployment not verified
Estimated reading time: 15–18 minutes
Goal
Diagnose and recover research workspaces when a research question, dataset, document, notebook, figure, decision, or publication output appears under the wrong project, disappears, fails to save, cannot be opened, or produces a stale or incomplete view. The primary acceptance criterion is that every artifact belongs to an authorized research context and can be traced to an authoritative owner, project, source, and applicable revision—not merely displayed in a dashboard.
Record the project ID, the active authenticated subject without revealing their session credential, the expected object ID, the source system, the last known-good revision, and whether the affected data are browser-local or backed by the private research service. Use only synthetic fixtures in public bug reports and test environments.
Requirements
- A project or staging environment the investigator is authorized to inspect, with a non-production test account where possible.
- Permission to read the relevant Workspace project and source-owned records. Do not impersonate another user or use privileged tokens to circumvent access checks.
- Exact
projectId, artifact or notebook identifier, expected owner, last successful revision, source application, and incident timestamp (UTC). - The current release manifest/deployment digest and the corresponding source commit. A source version is not evidence that production runs that version.
- For destructive or state-changing operations: an independently verified recovery point, an approved change, and a reversible staging rehearsal. Read-only diagnostics come first.
Architecture and authoritative boundaries
Workspace has distinct persistence modes. First-run browser projects are local-first: signing in does not automatically upload or sync them. The signed-in Research Projects flow uses the owner-scoped, revisioned backend registry and may attach a second private research-store entry. These workflows are not interchangeable.
| Area | Authoritative state / key | What the Research Project dashboard proves |
|---|---|---|
| Research project | Owner-scoped repository project head and revisions; profile sc-research-project-profile/1.0 |
Identity, current revision and declared research question, not independent scientific approval |
| Private-store attachment | Owner/project-scoped workspace_private_research_projects |
attached, not-attached or unavailable; an attachment failure need not mean creation failed |
| Dataset / document / figure files | Owner-scoped native artifact store and content-addressed bytes | Project-scoped file identifiers, roles and SHA-256 metadata; scientific provenance and rights require separate evidence |
| Notebooks | Notebook heads selected by owner and project_id |
Notebook ID, revision and project-scoped Notebook Desk link; not a guaranteed reproducible execution |
| Citations | Citation Studio collection associated with the project package | Reference list and count; not evidence that sources were independently authenticated |
| Publication outputs | Publication Studio output records and Research publication governance | Private drafts and binding metadata; a Research binding is not the same as public release |
| Integrated project context | Specialist Workspace subsystems and their own records | Reference-first aggregation; no automatic truth determination or general-purpose write authority |
Canonical view contract: sc-research-project-dashboard/1.0 returned by GET /v1/private-research/reporting-studio/research-projects/api/projects/{project_id}. Its top-level sections include project, profile, overview, documents, library, analysis, figures and publications. For an older project without a Research Project profile, the dashboard may be read-only for profile editing. The Reporting Studio feature itself can be disabled and return 503.
Symptoms
| Observed symptom | First evidence to inspect | Do not conclude |
|---|---|---|
| Project not found after signing out | Local versus backend creation path, signed-in owner, local browser profile, saved project list | That sign-out deleted a cloud project |
| Dashboard fails with 401, 403 or 404 | Session validity, authorized write Origin, exact owner/project pair | That 404 is proof a project does not exist for any owner |
| Project exists but tools say setup incomplete | privateResearchStore status |
That retrying creation with a new key is safe |
| Research question or milestones fail to save | expectedProjectRevision and latest project revision |
That the prior update was discarded |
| Dataset or figure missing from dashboard | Artifact ID, owner, project ID, role, Trash state and content hash | That absent dashboard projection means bytes are gone |
| Notebook opens the wrong project | Notebook head owner/project association and URL project parameter | That URL text establishes server-side ownership |
| File upload fails with 400, 409, 413 or 415 | Filename safety, duplicate bytes/names, Trash status, size, supported extension | That blind re-upload or overwrite is supported |
| Output appears but not publicly accessible | Private draft state, binding state, rights and approval records | That creating a draft or binding it to a private Research article made it public |
Cause
Map the symptom to a falsifiable cause before attempting a repair.
- Storage-context confusion: A browser-local project was mistaken for an authenticated backend project. Guest projects persist only subject to browser storage; account backup and sync are explicit separate actions.
- Identity or Origin failure: The session subject is absent/expired (
401), a write originated from an unauthorized Origin (403), or an owner-scoped lookup cannot resolve the requested project (404). A 404 intentionally does not disclose another owner’s project. - Partial project creation: The canonical project was stored, but attaching
workspace_private_research_projectsfailed. The project may shownot-attached; idempotent repeat or the dedicated setup route can complete attachment. - Revision conflict:
expectedProjectRevisionis stale, or an update targets a project without a Research Project profile. The server rejects with409instead of overwriting the current state. - File uniqueness or lifecycle policy: A duplicate digest, existing filename, or file in Trash triggers
409. A path-like filename may trigger400, unsupported file format415, and excessive size413. - Projection or linkage gap: A notebook belongs to a different owner/project, a file carries a different role, or source data exist in a specialist subsystem but are not projected in the current dashboard.
- Scientific or publication governance gap: Source rights, method versions, review, or publication authorization have not been established. Successful persistence does not cure these defects.
Procedure
1. Establish the incident and freeze unsafe changes
Capture a sanitized incident record: UTC timestamp, affected service, project ID or redacted correlation reference, request ID if present, HTTP status, last known revision, and affected object kind. Record whether the issue was observed in browser-local Workspace, authenticated Reporting Studio, Notebook Desk, or Research. Stop uploads, publication transitions, bulk retries and deletion until the authority boundary is established. Never paste session cookies, private datasets, access keys or unpublished research into a public ticket.
2. Confirm the correct application and owner
For a signed-in Research Project, the authenticated backend list is the first owner-scoped observation. In an authorized staging session, use the following read-only pattern. Substitute an authorized staging base URL and a protected cookie jar; do not run it against another user’s account. No access token appears in the command arguments or printed output.
BASE="https://staging.example.invalid"
COOKIE_JAR="$HOME/.config/sc-staging/session.cookies"
# Session jar must already be obtained through an authorized staging login.
# Store it outside shared directories with owner-only permissions.
curl --fail-with-body --silent --show-error \
--cookie "$COOKIE_JAR" \
--header 'Accept: application/json' \
"$BASE/v1/private-research/reporting-studio/research-projects/api/projects"
Compare the returned projectId and kind. Do not use project titles as identities. If the project is only in browser-local Workspace, inspect its local persistence, explicit export/backup status and the correct browser profile first. Do not assume a cloud backup exists.
3. Retrieve the authoritative project dashboard
PROJECT_ID="an-authorized-synthetic-or-staging-project-id"
curl --fail-with-body --silent --show-error \
--cookie "$COOKIE_JAR" \
--header 'Accept: application/json' \
"$BASE/v1/private-research/reporting-studio/research-projects/api/projects/$PROJECT_ID" \
-o project-dashboard.private.json
# This file may contain private metadata; retain only in authorized storage.
Check schema, project.projectId, project.revision, project.kind, project.privateResearchStore, and the six dashboard sections. Check whether a Research Project profile exists before suggesting any profile edit.
4. Reconcile each artifact against its source owner
- Question: Compare the saved
profile.researchQuestionandoverview.researchQuestionwith the expected accepted revision. A newer revision may make an earlier browser view stale. - Datasets: Verify native artifact
artifactId, project association,role=data, SHA-256 metadata, and rights/provenance declarations. Use the original bytes for integrity checks; the dashboard digest alone does not rehash bytes. - Notebooks: Confirm notebook head owner/project/revision in the Notebook Desk authority. The dashboard link encodes
?project=but a URL alone is not an authorization decision. - Figures: Check figure-role files, the generating dataset and notebook/run reference, transformations, axes/units and figure digest. Some visualizations and reports live in specialist stores and are represented by references, not copied into the project dashboard.
- Decisions: Follow decisions to their owning decision/evidence subsystem. Verify evidence IDs, scope, reviewer authority and rationale. Do not infer an approved decision from a generic dashboard count.
- Publications: Distinguish private Workspace output, binding to a private Research article, submitted review, approvals, public release and withdrawal. Check source registration and rights gates in the publishing subsystem.
5. Verify a downloaded artifact against its actual bytes
Use the file’s authorized downloadUrl under its owner/project context. Compare the response X-Research-SHA256 header and the dashboard digest against a locally recomputed SHA-256. Do this only inside an approved environment; do not transfer restricted data into a public or third-party service.
python - <<'PY'
from pathlib import Path
import hashlib
path = Path('authorized-synthetic-download.csv')
expected = 'replace-with-actual-64-character-sha256'
actual = hashlib.sha256(path.read_bytes()).hexdigest()
print({'matches': actual.lower() == expected.lower(), 'sha256': actual})
PY
The digest proves byte identity relative to the recorded digest, not that a data provider was trustworthy or a numerical result is scientifically sound.
6. Classify the failure before retrying any mutation
For an uncertain project-creation outcome, first list the owner’s projects and inspect the project’s privateResearchStore status. The backend derives a project ID from the owner, creation key and a title-based slug; for a genuine retry, preserve the same creation key and exact original title. Changing either while recovering an uncertain response can create another project. A known existing Research Project with a missing private-store attachment can use the documented POST .../api/projects/{project_id}/setup after approval and revision review. The endpoint is a write operation and must not be used as a read-only probe.
7. Reconcile and record the outcome
Record the selected recovery action, its authorized operator, pre/post project revision, affected artifact IDs, observed error codes and test results. Preserve the original evidence and produce a bounded acceptance receipt with explicit failures or unknowns. Only a separately approved publication workflow may change public visibility.
HTTP contract and failure classification
| HTTP code | Common interpretation in this workflow | Safe next action |
|---|---|---|
| 200 / 201 | Read or creation request returned successfully | Verify response project ID, revision, owner context and persisted state |
| 400 | Invalid file encoding, unsafe path, malformed research input | Correct a synthetic reproduction; do not weaken filename validation |
| 401 | Missing/expired Workspace session | Reauthenticate through the supported sign-in flow; retry read first |
| 403 | Write Origin or authorization boundary denied | Verify approved origin/session policy; never forge headers to bypass security |
| 404 | Record absent or not owned by the requester | Confirm owner and project ID using the authorized account; avoid existence probes |
| 409 | Stale revision, duplicate file, trashed file, incompatible project state | Reload authoritative state, inspect conflict, reconcile without overwrite |
| 413 / 415 | Upload over size limit / unsupported file type | Check documented limits and allowed formats, not bypasses |
| 422 | Invalid schema, field constraint or unknown research area | Validate exact request schema and supported identifiers |
| 503 | Reporting Studio feature disabled or dependency unavailable | Confirm deployment/feature flag and preserve work; do not infer data loss |
| 5xx / network failure | Outcome uncertain; possible partial backend completion | Inspect owner-scoped list and current revision before any write retry |
Troubleshooting
Project created but still says not-attached
In the source implementation, project persistence occurs before the private-store attachment. A failure between the two steps can leave a usable project with a missing attachment. Verify one canonical project head first; then apply the authorized setup/repair flow or an idempotent retry with the original creation key and title. Do not create a new project as a workaround.
Dataset exists, but the dataset or figure view is empty
Check whether the artifact is present in the owner-scoped native store, whether its role is data or figure, whether it is in Trash, and whether the specialist module has its own authoritative record. The Research Projects dashboard projects a subset of objects and is not a universal inventory.
Notebook link points to another project
Inspect the notebook head in its owning store, the current session owner and the project URL parameter. Do not resolve this by editing a URL to point at a project the user does not own. Record the mismatch and use an authorized notebook association workflow if supported in the deployed release.
An older project opens, but the overview is not editable
The dashboard supports existing projects without a sc-research-project-profile/1.0 object. Its overview.editable flag can be false. The overview write endpoint returns 409 for such projects; never silently inject or overwrite a profile through an unapproved migration.
A figure or document upload reports a duplicate
The native upload route rejects an existing SHA-256, an existing filename and a file in Trash. Retrieve the existing artifact; when the file is in Trash, use the version-checked restore path if authorized. Never use repeated uploads as an attempt to overwrite immutable originals.
Publication output exists but is not public
This is expected for a private draft. The dashboard explicitly labels a draft as private (Workspace only) or as bound to a private Research article. Publishing involves separate rights, ownership, scientific and publication approval controls. Investigate the Research release record rather than changing a dashboard label.
Resolution
| Confirmed cause | Permitted recovery approach | Acceptance evidence |
|---|---|---|
| Browser-local project expected on another device | Recover from a known, authorized export or account backup if one exists | Matching project identity and content without modifying another owner’s state |
| Expired session | Reauthenticate through the configured identity flow | Owner-scoped read succeeds; unauthenticated read remains denied |
| Partial backend attachment | Repair on the existing canonical project via documented setup route | Exactly one project; privateResearchStore=attached; no duplicate head |
| Stale overview revision | Reload and compare current accepted revision; explicitly reconcile changes | Revision increments only after accepted mutation, stale write rejected |
| Missing artifact projection | Validate source-store owner/project/role and recheck the dashboard | Correct ID, role, revision and byte hash; no cross-owner visibility |
| Conflicting or trashed native file | Restore the existing file when supported, preserving original bytes | Same digest; project remains private; no silent replacement |
| Unreviewed publication | Leave private until appropriate editorial and scientific approvals exist | Release receipt and independently reviewed, authorized publication state |
Verification
Use synthetic or owner-authorized staging fixtures. Capture actual response codes and state transitions; never mark a condition passed solely because the UI displayed the expected string.
| Case | Expected observation | Evidence source |
|---|---|---|
| Positive: create owner-scoped Research Project | 201, private profile, revision 1, correct research question, attached private store |
Repository project head + dashboard + staging request receipt |
| Positive: repeat identical creation | 200, same project ID, no duplicate and no unnecessary revision increment |
Idempotency assertion + owner-scoped project list |
| Negative: unauthorized owner | Other account sees no projects; foreign project read/write returns 404 |
Independent account in isolated staging |
| Negative: missing session / incorrect write Origin | 401 / 403; no mutation |
Actual staging authentication/Origin tests |
| Negative: stale project revision | 409; original accepted project revision/fingerprint unchanged |
Revision head and conflict receipt |
| Negative: duplicate, unsafe or unsupported artifact | 409, 400 or 415; no replacement |
Native artifact store state and exact test response |
| Negative: missing source rights or broken lineage | Scientific acceptance blocked; do not convert a structure-only check into rights approval | Source-owned rights records and independent reviewer |
| Negative: draft mistaken for public release | Draft remains private; independent release evidence needed before public claims | Private output, Research approval and publish receipts |
| Persistence and recovery | Project persists after approved session transition; browser-local state follows its own boundary; no cross-owner leak | Authorized staging re-login and source state |
Reproduce offline using synthetic data
The companion package includes a standard-library Python checker, a deliberately synthetic Research Projects dashboard fixture and tests. It performs structural triage only. It does not contact production or authenticate users. It cannot establish rights clearance, original-byte integrity (without separately supplied bytes), reviewer authority, scientific correctness or deployed behavior.
python scripts/triage_research_workspace.py \
--input examples/synthetic_dashboard.json
python -m unittest discover -s tests -v
Expected fixture outcome: structure-only-pass, zero structural issues, with explicit no-authentication-check, no-source-rights-check, no-byte-integrity-check, no-independent-scientific-review and no-live-deployment-check limitations. The test fixture’s invented file digest is not a verified real file checksum; a separate byte-comparison check must read the actual authorized original.
Run the actual Workspace repository tests
In an isolated development checkout, after installing the repository’s declared test dependencies and configuring a disposable test environment, run:
git clone https://github.com/Content-Catalyst-LLC/sustainable-catalyst-workspace.git
cd sustainable-catalyst-workspace
git checkout 957738a1e76aa3347027f6af006c08c5d3db5307
cd backend
python -m pytest -q tests/test_sc_research_project01_project_workspace.py
python -m pytest -q tests/test_integrated_project_workspace_v3800.py
The Research Project test module exercises real FastAPI routers with synthetic identities and an isolated SQLite test database. It covers project creation, idempotency, partial attachment recovery, cross-owner denial, artifacts, overview revisions, private outputs and deletion safeguards. These repository tests are identified, not executed in this article upgrade; only the companion checker has a locally recorded run. SQLite test results do not replace deployment-specific PostgreSQL, identity and recovery checks.
Audit and scientific interpretation
Use a bounded incident receipt with: evidence source URI or internal ID; schema/version; source repository commit; user/owner authorization evidence (restricted); project ID; artifact/revision IDs; SHA-256 of original bytes; source-rights determination; method/run version; observed HTTP status; reviewer decision; and explicitly unverified claims. Persist and share according to classification and retention controls. A research workspace may be technically consistent while the underlying method, sampling protocol, statistical inference or source rights remain invalid.
Do not infer completeness from the dashboard’s recentActivity view, which is bounded. Scientific reproducibility requires independent replay from the relevant source inputs and methods, not just a successful project query or data hash. An authenticated session proves a security principal was present, not that the person holds institutional ownership or that a manuscript is scientifically approved.
Evidence and release acceptance
- Source-inspected: The exact Git commit and code paths below were read to establish intended behavior.
- Companion offline fixture: 26/26 standard-library tests passed using synthetic data. This verifies only the companion script’s checks.
- Workspace implementation: Existing repository tests were identified for a controlled checkout; their execution is not claimed here.
- Staging/production: No verified deployed build, account-isolation execution or live artifact recovery receipt was supplied for this article.
- Scientific/rights review: Not independently performed. A source-backed claim, artifact hash and author approval do not establish independent review.
- WordPress metadata: Assign a supported product version, component, last verified version and release association only after a canonical post/revision mapping and appropriate release evidence. Article HTML cannot populate those native fields by itself.
Technical references
- Research Project router, dashboard, artifact and lifecycle implementation — schema, route definitions, owner-scoped projection.
- Private Research owner, session and write Origin checks — authentication and scoping boundaries.
- Revisioned project repository — optimistic concurrency, fingerprints and mutation receipts.
- Integrated Project Workspace — source-authoritative, reference-first summary.
- Research output transitions — binding, submission, approvals and release boundaries.
- Research Projects test cases — positive and negative implementation coverage.
- First-run onboarding / local persistence boundary — no automatic cloud upload.
- SC-KB verification mapping work (PR #36) — canonical WordPress revision and receipt mapping; not a deployment verification.
Editorial integrity: WordPress-ready article body only; do not include a second H1 in this content. Required Knowledge Base headings present: Goal, Requirements, Procedure, Symptoms, Cause, Troubleshooting, Resolution and Verification. Re-check exact live post/revision before assigning verification metadata.
