Worked Examples
Apply project creation and ownership — Workspace
Apply project creation and ownership — Workspace Application: Workspace Status: Useful first draft, not a production-verified procedure. Purpose Create a research project with accountable owner, research scope and permissions. Use
Application: Sustainable Catalyst Workspace
Component: Projects / Project Registry, First-Run Onboarding, and Research Project Workspace
Article type: Practical how-to and implementation verification
Verification scope: Source inspection and offline synthetic contract checks; no live release attestation
Source baseline: ba06715359842c93821f088a3524fa69eb3af06d
Supported deployed version: Not established
Estimated reading time: 17–20 minutes
Creating a project is more than entering its title. A sound project record must have a stable identity, an explicit research purpose, appropriate access boundaries, a recoverable revision history, and clear separation between private work and public release. Workspace has two distinct creation paths. The ordinary first-run experience is local-first; the signed-in Research Projects area creates a private, revisioned backend record. A researcher should choose the path that matches their persistence and governance requirements.
Goal
Create a research project with an accountable scope and evidence of ownership, then demonstrate that the correct project can be reopened without exposing it to an unauthorized account. Acceptance must address identity, project state, privacy, persistence, and version transitions independently. Creating a project never constitutes scientific approval, institutional endorsement, or public publication.
Requirements
- A research title, specific question or objective, proposed research area, and intended data classifications. Document the legitimate custodian of any private material before importing it.
- A supported browser with writable device storage for a local-first project, or an authorized Workspace Identity browser session for backend Research Projects. These are different assurance levels.
- For a backend project, an authenticated account, the application’s approved write Origin, and a unique browser-held
creationKeyUUID for retry-safe creation. Never supply or trust an owner ID in the request body. - Permission to use any datasets, personal information, figures, imported publications, or third-party sources; creation alone grants no redistribution rights.
- A safe test environment and separate identities for negative access checks. Never perform adversarial access tests against another person’s real data.
1. Choose the correct project-creation pathway
| Property | Local-first Workspace project | Authenticated Research Project |
|---|---|---|
| Entry point | Workspace first-run / New Project experience | Reporting Studio → Research projects → New Research Project |
| Persistence authority | Browser-local Workspace state port and storage | Owner-scoped backend project registry and revisioned database record |
| Login requirement | No login needed | Signed-in Workspace browser session |
| Ownership evidence | Local project identity; not cryptographically linked to a human account | Backend owner derived from authenticated session, not client-supplied JSON |
| Cross-device availability | Not automatic; backup and sync are separate explicit operations | Backend record can be read by the same authorized account when service/session are available; test actual deployment |
| Publication | Never automatic | Private by default; separate review and Research publication controls |
The first-run source explicitly says that even signing in does not upload a newly created local project. An existing project in one browser should not be assumed to exist in the backend registry until an authorized backup/sync or other documented transfer has actually occurred. Conversely, a Research Project’s private backend record should not be mistaken for browser localStorage.
2. Define research scope and stewardship before creating
Prepare a short project charter: research question, study geography and time interval, methods under consideration, initial data sources, rights restrictions, intended audience, and the person or organization responsible for the work. Treat “owner” as two separate concepts: (a) the technical account principal allowed to read or write the record and (b) the scientific or institutional custodian accountable for interpretation and ethics. A project title, owner-entered label, or UI badge does not prove institutional authority.
For sensitive investigations, collect only necessary project descriptions at creation. Store restricted documents only in approved locations. Use synthetic project names and content in verification or support tickets.
Procedure
Follow the local-first procedure in section 3 or the authenticated Research Projects procedure in section 4. Sections 5–9 describe persistence, ownership, revision and validation checks applicable to the selected path.
3. Create a local-first Workspace project
- Open the Workspace application in the intended browser profile. Confirm the current user and local-device context. Do not use a shared browser profile for restricted material.
- On first run, choose a title, optional description and one of the source-defined starters: Blank project, Research investigation, Analytical assessment, Decision case, or Publication preparation.
- Explicitly submit the creation form. Selecting a starter is not a creation action; it does not automatically run a workflow, upload documents, sync an account, or advance lifecycle status.
- Record the new project ID and intended study scope. Add one synthetic note or non-sensitive object; reload the page and verify the same project is still available.
- If this project must survive device loss, use the documented account backup or export workflow separately, then verify its receipt and the restore procedure on an authorized test device. Do not infer backup completion from sign-in.
Boundary: The first-run source describes storage schema 35 and project schema sc-workspace-project/20.0. These are code contracts, not proof that the same version is running on the public site. The extracted project runtime sc-workspace-project-runtime/1.0 saves through a state port and reverts the in-memory creation if persistence explicitly fails.
4. Create a private backend Research Project
Use the authenticated Reporting Studio Research Projects area when a revisioned, owner-scoped server record is required. The inspected implementation exposes the following project API, under its Reporting Studio route:
POST /v1/private-research/reporting-studio/research-projects/api/projects
GET /v1/private-research/reporting-studio/research-projects/api/projects
GET /v1/private-research/reporting-studio/research-projects/api/projects/{project_id}
POST /v1/private-research/reporting-studio/research-projects/api/projects/{project_id}/setup
POST /v1/private-research/reporting-studio/research-projects/api/projects/{project_id}/overview
From an authenticated browser session, choose a research area, title, required research question, and optional description and project type. The browser generates a creationKey and retains it through retries. The request body below is illustrative JSON for an authorized synthetic test; it is not an instruction to send credentials or write to production:
{
"creationKey": "0b7c6a52-6f0e-4c51-9a55-1f1f8a3e2c11",
"title": "Synthetic coastal wetland carbon study",
"area": {"slug": "climate-land-carbon"},
"researchQuestion": "How would a synthetic monitoring protocol compare two field designs?",
"description": "Fictional study; no real records or personal data.",
"projectType": "investigation"
}
The source-defined request model rejects extra fields. creationKey must be a lowercase UUID-formatted string; the title has a 160-character maximum, research question a 2,000-character maximum, and description a 4,000-character maximum. Valid project types are investigation, paper, policy-analysis, data-methods, and other. The area may identify a known institutional/owner-defined slug or supply a new area title.
Upon initial success, the source returns HTTP 201 with created: true and a project record; reissuing the same authorized creation returns HTTP 200 with created: false and the same project identity. Do not manufacture a new creation key to retry an ambiguous request. First reconcile the server state using the same key and account.
5. Capture a minimal identity and provenance record
For an authenticated Research Project, preserve the returned project.projectId, revision, fingerprint, declared area, research question, and a timestamp in an access-controlled project log. The server derives the owner from the validated browser session; the project creation input does not accept an ownerUserKey parameter.
Project identity is deterministic for a given owner and creation key: the code computes a title-derived slug followed by the first 12 hexadecimal characters of the SHA-256 digest of SC-RESEARCH-PROJECT-01, a null separator, the authenticated owner key, a null separator, and the creation UUID. This explains why an idempotent retry returns the same identity; it is not an authentication or authorization mechanism. Access decisions are performed separately against the account-scoped registry.
6. Confirm the private research workspace attachment
The backend creates a project with a sc-research-project-profile/1.0 object, an initial private visibility designation, and a first revision in the existing project registry. It then attaches the project to the private research store.
These actions are not a single atomic commit. A transient failure can leave the project correctly created but its private-store attachment incomplete. The dashboard explicitly reports privateResearchStore: not-attached; calling the same creation request again or the dedicated /setup endpoint is intended to finish the attachment without duplicating the project. Never delete the record simply because its dashboard attachment is incomplete.
Reopen the project dashboard and verify the profile’s research area and question. Its available sections include overview, documents, library, analysis, figures, and publications. These sections may link to related tools; their presence does not mean content has been reviewed or released.
7. Update the project without overwriting a newer revision
Updates to the Research Project overview carry expectedProjectRevision. The server checks that this equals the current stored revision before accepting changes. If another edit advanced the project, it returns HTTP 409; the correct response is to reload, compare, and explicitly reconcile the edits rather than blindly retry a stale payload.
{
"expectedProjectRevision": 1,
"researchQuestion": "Which synthetic monitoring design gives the clearest audit trail?",
"description": "Only synthetic records in this test project.",
"objectives": ["Document data rights", "Specify evaluation criteria"],
"status": "active",
"milestones": [{"title": "Methods reviewed", "due": "", "done": false}]
}
The project registry stores versioned project data; its API makes a distinction between a sync-head and a manual backup. An old manual backup is not allowed to replace an active sync head. Project creation does not itself give authority to modify another owner’s project or to publish any outputs.
8. Test persistence after reload, sign-out and reauthentication
- Local-first: reload in the same browser profile, confirm that the project ID and a non-sensitive test change remain. Then sign out, where applicable, and check whether device-local project content remains accessible. This is a privacy check: browser-local data may persist despite sign-out.
- Backend Research Projects: create a synthetic project as account A; record its ID and revision. Sign out and verify that the protected backend API rejects unauthenticated reads. Sign in again as A, reopen the same project ID, and compare the stored revision and research profile.
- Sign in separately as synthetic account B. Verify that B’s project list omits A’s project and that direct GET and mutation attempts against A’s project return
404. Do not infer this from the navigation menu alone. - If testing cross-device continuity, repeat only with an explicitly authorized backend or a confirmed backup-and-sync workflow. Document device, browser storage boundary, environment and runtime release.
Key distinction: passing an authenticated backend isolation test does not prove isolation of shared-device localStorage. Shared-browser privacy requires separate browser profiles, data-clearing policy, or another supported local safeguard.
9. Test retry and partial-failure recovery
Record the initial 201, then retry with the same creationKey as the same signed-in user. Expect 200, created: false, the same project ID, and no new project revision. The checked-in isolated test deliberately simulates failure after project persistence but before the research-store attachment. The subsequent retry repairs the attachment and still returns the original project. These observations are implementation-level test scenarios, not evidence that live production recovery has been exercised.
10. Developer contract and endpoint responsibilities
| Operation | Source contract | Failure or constraint |
|---|---|---|
| List projects | GET …/api/projects scoped to signed-in principal |
Anonymous 401 |
| Create project | POST …/api/projects; private profile and revisioned registry |
Wrong/missing Origin 403; invalid request 422; retry 200 |
| Read dashboard | GET …/api/projects/{project_id} |
Unknown or other-owner project 404 |
| Complete private attachment | POST …/api/projects/{project_id}/setup |
Existing non-research project 409 |
| Save overview | POST …/api/projects/{project_id}/overview with expected revision |
Stale expected revision 409 |
| Browser-local create | createProject(input) in workspace-project-runtime-v34630.js |
Persistence failure rolls in-memory creation back |
Protected server endpoints rely on a signed session and strict same-origin write checking. An isolated test harness may substitute a synthetic identity header for a real signed cookie; this is a test fixture, not a public authentication method. Do not send x-test-sub headers to a live service expecting them to confer access.
11. Reproduce the repository’s real isolated tests
In a trusted, pinned clone of the Workspace repository, install its documented development dependencies into a virtual environment, then run the scoped tests below. They use a disposable in-memory SQLite database with foreign keys enabled, synthetic users and a FastAPI in-process client; they do not require production credentials.
# From the checked-out repository root (after installing required dependencies)
python -m pytest backend/tests/test_sc_research_project01_project_workspace.py -q
node tests/test_first_run_onboarding_project_creation_runtime.js
# Inspect the source contracts for the exact revision under review
git rev-parse HEAD
git show HEAD:backend/app/research_projects.py
git show HEAD:app/projects/workspace-project-runtime-v34630.js
Do not describe these tests as having passed until you actually execute them against the pinned checkout. Their results are isolated implementation evidence rather than signed-in browser, deployed database, or end-to-end production evidence.
12. Optional offline identity-and-response check
The downloadable companion contains check_project_creation.py, synthetic_trace.json, and test_project_creation.py. The checker reproduces the documented owner-and-creation-key identity formula and evaluates an explicitly synthetic response transcript for idempotency, private initial state, anonymous denial, foreign-owner denial, and Origin protection. It does not call Workspace, authenticate a principal, or establish actual authorization.
cd sc-project-creation-ownership
python check_project_creation.py synthetic_trace.json
python -m unittest -v test_project_creation.py
To verify a real deployment later, replace synthetic observations with evidence collected by an authorized operator and independently validate the request traces, HTTP status, issuer, source SHA, running container image and persistence store. Do not place real session cookies, password values, private project content, or personal identifiers into a public evidence package.
13. Safeguard scientific and institutional ownership
A backend user key proves which authenticated principal the service associated with a request; it does not alone prove who owns copyright, who has ethics approval, or which organization is responsible for the science. Record those governance assignments separately, with institutional evidence where necessary. Keep scientific reviewer, rights holder, project operator, and publisher roles distinct. A project may be technically private and still contain material that its operator is not permitted to use.
14. Do not mistake project creation for publication
The Research Project profile begins with visibility: private and publication: author-controlled. The creation route neither binds an output to the public Research Hub nor invokes release approval. A published report requires its own exact-revision, scientific, rights, ownership and publication decisions as implemented in the separate Outputs & Publishing subsystem. Presence of a Publications tab is therefore not a permission grant or publishing receipt.
Symptoms
| Observed symptom | Meaning to investigate |
|---|---|
| Project disappears after reload | Browser storage failed or was cleared; wrong browser profile; project not actually saved |
| Project appears locally but not under Research Projects | Local-first creation was never uploaded; wrong account; no backend record |
| Project exists but its private workspace is incomplete | Post-creation attachment failed; dashboard reports not-attached |
401 when reading Research Project |
Missing, invalid or expired signed browser session |
403 on write |
Write Origin is missing or not the approved Workspace Origin |
404 on project read |
No such project for the authenticated owner; do not disclose cross-owner existence |
409 on overview save |
Stale expected revision or incompatible project profile |
| Two similar projects were created | New creation keys used after an uncertain response, or manual duplicate creation |
Cause
Root causes most commonly fall into four groups: persistence boundary errors (confusing browser-local state with account-backed state); authentication or tenant-scope errors (expired session, wrong account, missing allowed Origin); version conflicts (stale expectedProjectRevision or duplicate creation keys improperly rotated); and partial workflow completion (registry commit succeeded but optional private-store attachment did not). A user-visible project title alone cannot diagnose any of these.
Troubleshooting
- Identify whether the project was created locally or by the signed-in Research Projects API. Confirm the active browser profile, account, environment, and project ID before touching stored data.
- Capture nonsecret status codes, response schema, source/version pin, and UTC timestamps. Distinguish a failed HTTP request from a successful write followed by a failed view or attachment.
- For local state loss, check the browser’s storage quota and profile boundaries. Make a permitted export before clearing caches. Never “repair” by overwriting the sole copy with a stale export.
- For authenticated projects, use the same account and original creation key to query or retry an uncertain creation. Check whether the server registry has an existing project before changing the key.
- For an incomplete attachment, confirm
privateResearchStore: not-attachedand use the documented idempotent setup action; do not recreate the project. - For
401/403, reauthenticate and verify the correct application Origin. Never bypass CSRF enforcement or add a synthetic test identity header to production. - For
409, compare current and attempted project revisions. Preserve both versions and explicitly reconcile rather than forcing a write. - For suspected tenant leakage, halt exposure, retain restricted evidence, and escalate under the security incident process. Do not publish raw private records in a support ticket.
Resolution
The resolution is successful only when the project has the expected stable identity, data and research profile, the selected persistence mechanism survives its intended reload/reentry test, and unauthorized backend access is denied. Record any partial attachment or revision conflict as a resolved incident with evidence of the follow-up action. If local-only data cannot be recovered, state the limitation; do not claim that an account sign-in can reconstruct a never-synchronized browser project.
Verification
Evidence-based verification requires both a positive and a negative case. For backend Research Projects, confirm 201 creation, 200 idempotent retry, the same project ID and revision, owner A’s successful re-read, anonymous 401, other-owner 404, and forbidden-Origin 403. Validate that an update with an obsolete revision returns 409, and that creation has not released public data. Re-read after sign-out and fresh sign-in under the same account in an approved staging environment.
For local-first projects, compare the stored project identity and a harmless artifact before and after reload; test the actual backup/sync operation separately. Do not claim multi-user access isolation for browser-local storage based on backend tests. Collect browser, operating system, runtime release, storage profile, source commit and UTC capture time in the acceptance receipt.
15. Negative test matrix
| Scenario | Expected result | Evidence |
|---|---|---|
| Missing session | API returns 401; protected page redirects to sign-in as documented |
Sanitized response, zero private payload |
| Another account requests A’s project | 404; no metadata leak |
Synthetic two-account test |
| Missing or unexpected write Origin | 403 |
Request/response without cookies in public logs |
| Same owner + same creation key retried | One project; response 200, created: false |
Identity and revision comparison |
| Private attachment fails after project commit | Project remains; subsequent setup completes without duplicate | Before/after project list |
| Stale expected overview revision | 409 and no silent overwrite |
Revision before/after comparison |
| Creation attempted with unsupported fields | Validation rejects extra fields | Schema/422 evidence |
| Local project on shared browser after sign-out | Assess whether local data remains visible; treat as privacy risk if so | Controlled local profile test |
| Attempt to infer publication from creation | No Research public URL or release receipt created merely by creating the project | Private state and public-surface comparison |
16. Evidence and acceptance record
For each tested project, preserve a sanitized receipt containing: application and exact source commit, runtime image/version when known, environment, test actor roles (not private identifiers), stable project ID or redacted fingerprint, request timestamps, original creation-key fingerprint, HTTP status outcomes, before/after project revision, attachment status, unauthorized access outcomes, and reviewer conclusion. Document any exceptions and material scientific limitations. Verify retention rights and never export private project bodies solely to prove that a list or title can be read.
17. Scope of source verification and version metadata
Relevant source inspections were made at ba06715359842c93821f088a3524fa69eb3af06d. Historic documentation identifies first-run onboarding v0.71.0 and the extracted project runtime v3.46.3.0; the authenticated Research Projects implementation is in backend/app/research_projects.py. These are source and feature references, not verified production-supported versions. WordPress product component, supported version and last verified release should be set only from an approved release/deployment inventory. Quality-check completion alone does not imply security acceptance.
18. Technical references
- Research Projects API and owner-scoped creation — strict request model, retry identity, private profile, revision control and attachment repair.
- Private project access enforcement — session identity, origin controls and cross-owner 404 behavior.
- Revisioned project registry — storage modes, optimistic revision conflicts, owner-scoped lookups.
- Isolated backend project tests — idempotency, incomplete attachment recovery, foreign-account denial, private defaults.
- Local project runtime — persistence state port and failure rollback.
- First-run onboarding helper — explicit submission, starter options and no automatic upload/sync.
- v0.71.0 feature documentation — local persistence and schema boundaries.
- SC-KB-VERIFY-01 technical verification framework — potential future binding of this article’s canonical WordPress revision to independently reviewed evidence; not proof of enrollment.
Release decision: Treat this article as source-anchored technical guidance with independent deployment validation pending. Do not describe local, staging, production, institutional ownership or scientific conclusions as verified unless that exact scope has been documented and reviewed.
