Troubleshooting

Troubleshoot project creation and ownership — Workspace

Troubleshoot project creation and ownership — Workspace Application: Workspace Status: Useful first draft, not a production-verified procedure. Typical symptoms Project creation and ownership fails when records cannot be resolved,

ProductSustainable Catalyst Platform CoreUpdatedNovember 20, 2026Reading time22 minutes

Application: Sustainable Catalyst Workspace
Component: Research Projects / Private Workspace; local-first Project Creation
Article type: Troubleshooting / operational recovery
Source snapshot: 2a67ee5178f38b7710003715fd4d655c7deff32d (November 20, 2026)
Supported deployed version: Not established
Last verified deployed version: Pending authorized staging/production verification
Reading time: Approximately 15 minutes
Status: Source-anchored guidance; deployed verification pending

Goal

Diagnose failed project creation, missing or inaccessible projects, ownership confusion, incomplete private-workspace setup, and revision conflicts without losing research content or crossing owner boundaries. The acceptance condition is specific to the project type: a browser-local project should persist in the same browser profile when storage remains available; an authenticated backend project should remain owner-scoped and be recoverable after the owner reauthenticates to a healthy service.

Do not assume that signing in automatically uploads a local project. These are two different storage and identity mechanisms. A local project’s presence after sign-out is not evidence of backend persistence, and a backend project’s persistence does not prove that a guest browser project was synchronized.

Requirements

  • Authorized access to the relevant Workspace browser profile or an owner-authorized private Research Project account.
  • Correct environment and origin, a known project identifier (when already created), and the original creationKey and title for a failed Research Project submission.
  • A nonproduction environment for negative tests that create or modify project records; synthetic project titles, questions and files only.
  • For backend troubleshooting, a signed-in session and approved troubleshooting access. Do not copy cookies, tokens, private payloads, or production records into a public ticket or terminal transcript.
  • Read-only access to request status, response codes, project listing and dashboard metadata, plus access to the pinned source revision for comparing behavior.
Path Creation authority Expected persistence Boundary
First-run / local Workspace Browser state port, backed by local Workspace storage Current browser profile and device, subject to local-storage availability or removal No automatic account backup, cloud sync or authenticated ownership grant
Research Projects / Reporting Studio Authenticated owner-scoped backend registry Revisioned stored project record, tied to the authenticated owner Requires session, correct origin for writes and an attached private research store for the full workspace

Symptoms

  • The Create project action succeeds visually but the project disappears after navigation, reload, browser cleanup or a new device login.
  • Research Project creation returns 401, 403, 404, 409, 422, or an unexpected 500.
  • A created Research Project appears in the list but its dashboard reports privateResearchStore: not-attached or an unavailable attachment.
  • A user cannot open a project that another owner can access; an owner sees a stale dashboard, mismatched revision, or rejected overview save.
  • Multiple similar project titles appear after retries; the original request may have been changed before resubmission.
  • Local storage has been cleared, blocked, or made unavailable, or a project exists only in an earlier browser profile.

Cause

Observation Likely cause to test Safe distinguishing check
Local project absent on another device Local-first creation; no explicit sync Check the original browser profile and whether backup/sync was explicitly completed
401 on Research Project read Missing, expired or invalid signed browser session Reauthenticate normally; repeat only a read
403 on write Origin not authorized Confirm the request came from the configured Workspace origin
404 on another owner’s project Project absent or owner-scoped denial Use the legitimate owner account; do not enumerate identifiers
409 on update Project revision changed since last read Reload metadata and compare expectedProjectRevision
422 on create Invalid area, missing research question, unsupported type, malformed UUID or disallowed field Review the validated input schema and redacted response detail
500 after create, project appears afterward Backend project stored but private research-store attachment failed Read listing and dashboard before any retry
Similar duplicate names after retries Changed creation key or title changes the derived project identity Compare original idempotency key and exact submitted title from authorized client evidence

These are diagnostic hypotheses, not a guarantee that every status code has one cause. Network failures, deployment mismatch, unavailable storage, and revoked sessions can produce additional symptoms.

Procedure

1. Identify the creation path before touching the project

Determine whether the user selected the local first-run project flow or Reporting Studio → Research Projects → New Research Project. Record the environment, workspace origin, account context (if applicable), and observed result. Do not equate a local project ID with a backend Research Project ID.

The local first-run module supports five starters: blank, research investigation, analytical assessment, decision case, and publication preparation. It creates only after explicit submission. Signed-in users still create a local copy; backup and synchronization require separate action.

2. Safely check the original browser profile

Open the original browser and inspect Workspace without exporting sensitive project content. Under an authorized session, these read-only console checks establish only whether a known local storage item is present; they do not certify its schema, integrity, or backup:

// Run only in your own authorized Workspace tab.
const item = localStorage.getItem('sc_workspace');
console.log({ localStatePresent: item !== null,
              localStateBytesApprox: item ? new Blob([item]).size : 0 });
// Do not paste the stored value, project titles, or object bodies into tickets.

If the key is absent, check whether the user changed browser profiles, used private/incognito mode, cleared site data, or moved devices. Do not create new sample records in the affected profile while recovery is being assessed; preserve any authorized backup or export instead.

3. Check authenticated Research Project state before retrying

Use the existing Research Projects page or its authenticated, owner-scoped GET contracts. The route prefix below is sourced from research_projects.py; its use depends on the route being enabled in the target deployment.

Method Route suffix Purpose
GET /api/projects List projects available to the current authenticated owner
GET /api/projects/{project_id} Read dashboard, project revision and private-store attachment
POST /api/projects Create once, or retry same exact payload with same creation key
POST /api/projects/{project_id}/setup Complete an incomplete private research-store attachment
POST /api/projects/{project_id}/overview Revision-checked changes to the research overview

These paths are relative to /v1/private-research/reporting-studio/research-projects. Use the authenticated browser’s Network panel for GET observations; never move a production session cookie into an example command. Document the sanitized status, observed project ID, revision, storage mode and attachment state without exporting private research bodies.

4. Reconcile a failed creation response

The backend derives its project identifier from a slug of the submitted title plus a SHA-256 prefix computed from programme, authenticated owner and creationKey. For the same owner, key and title, retrying is intended to return the existing project. Changing the title changes the identifier prefix and can undermine the intended deduplication behavior. Do not generate a new key or edit the title on retry.

The source defines this request shape (illustrative synthetic values only; do not post this example to production):

{
  "creationKey": "0b7c6a52-6f0e-4c51-9a55-1f1f8a3e2c11",
  "title": "Synthetic Wetland Carbon Study",
  "area": { "slug": "climate-land-carbon" },
  "description": "Disposable test project; no human-subject or private data.",
  "researchQuestion": "How would a synthetic baseline change under treatment?",
  "projectType": "investigation"
}

First inspect the owner’s project list. If the project exists and the private research store is attached, treat the original response as uncertain rather than issuing another creation. If it exists with not-attached, use the documented setup action under an authorized owner session; the unit tests cover this interrupted-creation recovery. If no project exists, retry only after validating that the exact original payload and creation key are available.

5. Resolve an ownership or permissions issue without changing authority

The backend derives owner identity from the signed session, not from a client-supplied owner field. Owner-scoped project lookup intentionally returns 404 for a foreign or missing project; a missing session returns 401. A cross-owner denial should remain denied. Do not “repair” it by editing database owner keys, guessing project IDs, copying browser cookies or granting unreviewed access.

The research-project-profile/1.0 object documents the research area, question, type, lifecycle and private visibility. It is not a general collaborative permissions system. An accountable institutional owner, collaborator, steward and reviewer should only be represented when a separate, verified authorization workflow supports those roles.

6. Handle stale overview revisions

The overview write requires expectedProjectRevision matching the current backend revision. On 409, stop, reload the current project, compare the proposed changes with the new revision and ask the authorized owner to reconcile. Never automatically overwrite a newer research question, milestone or file reference.

7. Confirm persistence across appropriate session boundaries

For a local project, reload the same browser profile, then test after sign-out if applicable. For a backend Research Project, complete sign-out, sign in to the same account again, then inspect the project list and dashboard revision. Repeat owner-isolation checks using a separate synthetic account in authorized staging. A same-device reload alone does not establish server persistence; a server-side presence check alone does not establish off-site backup or cross-device sync.

Troubleshooting

Browser-local creation appears to fail

Check storage availability and persistence notices. The extracted project runtime restores the previous in-memory project list when a creation cannot be persisted. Avoid clearing storage, running destructive cleanup scripts or reloading before preserving any recoverable state. The local runtime exposes projectCount, activeProjectId and persistenceAuthority: state-port for inspection by its host; this is not a public REST API.

Research Project exists but has no attached workspace

Read the dashboard first. The source supports completing the missing attachment without creating another project. The existing isolated test specifically simulates a failure after the project record commits and then a successful idempotent recovery. An attachment marked unavailable requires schema/dependency investigation, not arbitrary database writes.

Authentication or origin denial

Use the normal Workspace sign-in flow. The source requires a valid signed browser session and checks the request’s Origin for writes. A 403 is not a reason to disable origin checking or substitute an administrator credential. Keep cookies and request headers out of published logs.

Project missing after sign-out or device change

Classify the store first. If browser-local, look for the correct browser profile and an explicitly created backup/sync artifact. If backend, use the same owner identity and verify availability of the project registry. Do not promise restoration from a backend if the project never left the browser.

Duplicate projects after uncertain retries

Freeze further writes, preserve a sanitized record of each projectId, creationKey identifier fingerprint, original submitted title and response status. Reconcile each actual project against its saved revisions and assets before deciding whether any deletion is permitted. The backend delete route only allows an empty project created by this workflow and requires the exact project title for confirmation.

Resolution

Close the incident only when the affected user can find and reopen the correct project in its intended storage context, the authoritative revision and private-store attachment are accounted for, the expected owner has access, unauthorized accounts remain denied, and no duplicate creation or unexpected publication occurred. Preserve the original failure, recovery action, validation results and unresolved limitations in a sanitized incident record.

Do not claim success when only a synthetic test passes, a session-bound page renders, or a locally stored project is visible. Production and cross-device recovery require their own evidence.

Verification

Reproduce the source-level tests in an isolated checkout

With the appropriate backend dependencies installed, run the existing isolated SQLite fixture tests; they mock a synthetic identity and require no production credentials:

# Use a disposable checkout, not a production working directory.
git clone https://github.com/Content-Catalyst-LLC/sustainable-catalyst-workspace.git
cd sustainable-catalyst-workspace
git checkout 2a67ee5178f38b7710003715fd4d655c7deff32d
# Install dependencies using the repository's maintained development instructions.
cd backend
python -m pytest -q tests/test_sc_research_project01_project_workspace.py
cd ..
node tests/test_first_run_onboarding_project_creation_runtime.js

The first test file checks first creation, same-key retries, interrupted attachment, owner isolation, status codes and revisions using isolated SQLite fixtures. The JavaScript test checks the five first-run starters and no-automatic-sync boundary. These commands are recommended reproduction steps, not test results for the user’s deployment. A separate local companion fixture checker is supplied with this article package.

Case Expected outcome Evidence to retain
New backend Research Project 201, created: true, private profile, revision 1 Sanitized response fields and owner-scoped list
Exact same owner/key/title retry 200, created: false, same project ID Two response summaries and unchanged revision
Interrupted private-store attachment Existing project remains; authorized retry/setup restores attachment Before/after attachment states
Unauthenticated request 401 for private API reads Status only; no private body
Wrong Origin write 403, no mutation Denied request and unchanged revision
Foreign-account project access 404, no project data Denied response and private-data leak check
Stale overview revision 409, newer revision preserved Current revision and conflict status
Malformed UUID or unsupported area 422, no project created Schema-validation result
Local-only project across a second device No implicit cloud copy or authorization claim Explicit backup/sync history, if any
Project creation vs publication Private project remains unpublished Separate Research publication state

Acceptance criteria and evidence

  1. Identify which storage path produced the project and the exact source/test version assessed.
  2. Confirm project ID, revision, owner scope, attachment state and documented creation outcome.
  3. Test a successful case and at least one negative case in an isolated authorized environment.
  4. Reauthenticate as the rightful backend owner and verify the same saved project is available; verify a foreign owner is refused without private details.
  5. Record sanitized timings, expected and observed status codes, revision fingerprints where authorized, and any incomplete environment/deployment evidence.
  6. Do not close a production incident without staging/production evidence appropriate to the claimed scope. Do not infer scientific validity or publication approval from project creation.

Security and privacy boundaries

Keep account cookies, research questions, manuscript content, personally identifying information, credentials, and private file paths out of support tickets and example fixtures. Avoid recording full request/response payloads when status codes and redacted metadata suffice. Run cross-owner tests using disposable synthetic accounts only. A project’s default visibility: private is not a substitute for checking the separate Research publication controls.

Technical references

  1. SC-RESEARCH-PROJECT-01: backend creation, profile, attachment, and API contracts.
  2. Backend isolated project-creation tests.
  3. Signed-session and Origin authorization boundaries.
  4. Owner-scoped registry, revision handling and conflict checks.
  5. Local first-run project-creation guide.
  6. Project state port and local persistence rollback.
  7. First-run runtime contract tests.
  8. SC-KB-VERIFY-01 — Technical verification documentation (draft). Article-specific WordPress mapping and review require independent acceptance; a source link is not a verification decision.

Editorial verification record: Source-inspected on November 20, 2026; the currently deployed product version, WordPress component taxonomy, supported version assignment and last verified deployed version must be completed using owner-authorized release evidence. Publication of this support article is independent of its technical verification status.

Scroll to Top