Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Apply PI decisions: anon row cap 200, drop CRS, RA verification checklist
Browse filesAnonymous row cap 500 -> 200 (anonymous tier only; signed-in research
needs thousands of rows - scoping recorded in DECISIONS.md). CRS removed
from the library (5 dimension files; PI decision, citation was missing).
docs/verification_checklist.csv: 525 items / 94 constructs, one row per
item with RA correction columns. Library items approved for public repos
by the PI (rights question resolved).
- .env.example +1 -1
- DECISIONS.md +17 -0
- MANUAL_TESTING.md +1 -1
- backend/app/auth.py +1 -1
- docs/verification_checklist.csv +0 -0
- packages/construct_library/constructs/centrality_of_religiosity_scale_experience.yaml +0 -27
- packages/construct_library/constructs/centrality_of_religiosity_scale_ideology.yaml +0 -25
- packages/construct_library/constructs/centrality_of_religiosity_scale_intellect.yaml +0 -25
- packages/construct_library/constructs/centrality_of_religiosity_scale_private_practice.yaml +0 -24
- packages/construct_library/constructs/centrality_of_religiosity_scale_public_practice.yaml +0 -24
.env.example
CHANGED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
|
| 19 |
# ---- Tiers and limits (defaults shown) ----
|
| 20 |
# CCR_ANON_MAX_BYTES=2097152 # 2 MB anonymous upload cap
|
| 21 |
-
# CCR_ANON_MAX_ROWS=
|
| 22 |
# CCR_ANON_MAX_RUNS_PER_DAY=3 # anonymous runs/day, then sign-in
|
| 23 |
# CCR_USER_MAX_SAVED_RUNS=15 # saved-run cap for signed-in users
|
| 24 |
|
|
|
|
| 18 |
|
| 19 |
# ---- Tiers and limits (defaults shown) ----
|
| 20 |
# CCR_ANON_MAX_BYTES=2097152 # 2 MB anonymous upload cap
|
| 21 |
+
# CCR_ANON_MAX_ROWS=200 # anonymous row cap per file (PI decision)
|
| 22 |
# CCR_ANON_MAX_RUNS_PER_DAY=3 # anonymous runs/day, then sign-in
|
| 23 |
# CCR_USER_MAX_SAVED_RUNS=15 # saved-run cap for signed-in users
|
| 24 |
|
DECISIONS.md
CHANGED
|
@@ -115,3 +115,20 @@ Supabase project. Google-only accounts have no password hash and password login
|
|
| 115 |
them to the Google button. Rejected: supabase-js in the frontend (breaks the
|
| 116 |
react+react-dom-only dependency rule for one button) and provider-JWT sessions (would
|
| 117 |
fork the tier/ownership logic into two session formats for no benefit).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
them to the Google button. Rejected: supabase-js in the frontend (breaks the
|
| 116 |
react+react-dom-only dependency rule for one button) and provider-JWT sessions (would
|
| 117 |
fork the tier/ownership logic into two session formats for no benefit).
|
| 118 |
+
|
| 119 |
+
## 2026-07-14 - PI answers applied (library rights, caps, library pruning)
|
| 120 |
+
1. Questionnaire items INCLUDED in the public repos: PI's call ("I think all of them
|
| 121 |
+
are public. and we can remove some in the future."). Per-construct removal stays a
|
| 122 |
+
one-file delete; runs keep immutable snapshots regardless. This unblocks pushing to
|
| 123 |
+
the lab org and shipping the full library on the dev instance.
|
| 124 |
+
2. Anonymous row cap tightened 500 -> 200 per PI. Applied to the ANONYMOUS tier only
|
| 125 |
+
(Deva's scoping decision): signed-in research use routinely needs thousands of rows,
|
| 126 |
+
and the PI's confirmed numbers were all anonymous-tier values. Env-tunable either way.
|
| 127 |
+
3. CRS (Centrality of Religiosity Scale, 5 dimension files) removed from the library
|
| 128 |
+
per PI ("Dropp CRS too"; it was missing its citation). MFQ-30 and CRT were never
|
| 129 |
+
imported, so "drop" for those is a no-op. MFQ-2 retained. Existing dev DBs keep
|
| 130 |
+
already-synced CRS rows until their DB resets (append-only sync never deletes);
|
| 131 |
+
fresh deploys never see it.
|
| 132 |
+
4. Wording verification assigned to the PI's RA: docs/verification_checklist.csv
|
| 133 |
+
(525 items across 94 constructs, one row per item with correction columns) generated
|
| 134 |
+
for that workflow; constructs stay needs_verification until she checks them.
|
MANUAL_TESTING.md
CHANGED
|
@@ -38,7 +38,7 @@ fake but every flow works; never use for real analysis).
|
|
| 38 |
| `xlsx_upload_demo.xlsx` | Parses like a CSV |
|
| 39 |
| a `.txt` or `.pdf` file | Rejected: unsupported file type |
|
| 40 |
|
| 41 |
-
Anonymous limits (signed out): the Step 1 hint shows 2 MB /
|
| 42 |
uploads are deleted after analysis. Upload `large_demo.csv` (800 rows): rejected
|
| 43 |
with a "Sign in (top right)" message. Sign in and retry: accepted.
|
| 44 |
|
|
|
|
| 38 |
| `xlsx_upload_demo.xlsx` | Parses like a CSV |
|
| 39 |
| a `.txt` or `.pdf` file | Rejected: unsupported file type |
|
| 40 |
|
| 41 |
+
Anonymous limits (signed out): the Step 1 hint shows 2 MB / 200 rows and says
|
| 42 |
uploads are deleted after analysis. Upload `large_demo.csv` (800 rows): rejected
|
| 43 |
with a "Sign in (top right)" message. Sign in and retry: accepted.
|
| 44 |
|
backend/app/auth.py
CHANGED
|
@@ -38,7 +38,7 @@ RUNS_COOKIE_NAME = "ccr_runs"
|
|
| 38 |
_SECRET = (os.environ.get("CCR_SESSION_SECRET") or secrets.token_hex(32)).encode()
|
| 39 |
|
| 40 |
ANON_MAX_BYTES_DEFAULT = 2 * 1024 * 1024
|
| 41 |
-
ANON_MAX_ROWS_DEFAULT = 500
|
| 42 |
ANON_MAX_RUNS_PER_DAY_DEFAULT = 3
|
| 43 |
USER_MAX_SAVED_RUNS_DEFAULT = 15
|
| 44 |
ANON_TTL_HOURS_DEFAULT = 0 # 0 = purge disabled (local dev); deployments set 24
|
|
|
|
| 38 |
_SECRET = (os.environ.get("CCR_SESSION_SECRET") or secrets.token_hex(32)).encode()
|
| 39 |
|
| 40 |
ANON_MAX_BYTES_DEFAULT = 2 * 1024 * 1024
|
| 41 |
+
ANON_MAX_ROWS_DEFAULT = 200 # PI decision 2026-07-14 (was 500)
|
| 42 |
ANON_MAX_RUNS_PER_DAY_DEFAULT = 3
|
| 43 |
USER_MAX_SAVED_RUNS_DEFAULT = 15
|
| 44 |
ANON_TTL_HOURS_DEFAULT = 0 # 0 = purge disabled (local dev); deployments set 24
|
docs/verification_checklist.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
packages/construct_library/constructs/centrality_of_religiosity_scale_experience.yaml
DELETED
|
@@ -1,27 +0,0 @@
|
|
| 1 |
-
construct_id: centrality_of_religiosity_scale_experience
|
| 2 |
-
version: 1
|
| 3 |
-
name: Experience (Centrality of Religiosity Scale)
|
| 4 |
-
language: en
|
| 5 |
-
category: Religiosity
|
| 6 |
-
description: Religiosity - Experience dimension of the Centrality of Religiosity Scale.
|
| 7 |
-
citation: Huber, S., & Huber, O. W. (2012). The Centrality of Religiosity Scale (CRS). Religions, 3(3),
|
| 8 |
-
710–724. https://doi.org/10.3390/rel3030710
|
| 9 |
-
verification_status: needs_verification
|
| 10 |
-
source_url: https://www.mdpi.com/2077-1444/3/3/710
|
| 11 |
-
rights_note: nan
|
| 12 |
-
questionnaire: Centrality of Religiosity Scale
|
| 13 |
-
reverse_flags_source: not_provided_pending_verification
|
| 14 |
-
imported_from: lib.xlsx
|
| 15 |
-
items:
|
| 16 |
-
- item_id: centrality_of_religiosity_scale_experience_5
|
| 17 |
-
text: How often do you experience situations in which you have the feeling that God or something divine
|
| 18 |
-
intervenes in your life?
|
| 19 |
-
reverse_scored: false
|
| 20 |
-
- item_id: centrality_of_religiosity_scale_experience_10
|
| 21 |
-
text: How often do you experience situations in which you have the feeling that God or something divine
|
| 22 |
-
wants to communicate or to reveal something to you?
|
| 23 |
-
reverse_scored: false
|
| 24 |
-
- item_id: centrality_of_religiosity_scale_experience_15
|
| 25 |
-
text: How often do you experience situations in which you have the feeling that God or something divine
|
| 26 |
-
is present?
|
| 27 |
-
reverse_scored: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packages/construct_library/constructs/centrality_of_religiosity_scale_ideology.yaml
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
construct_id: centrality_of_religiosity_scale_ideology
|
| 2 |
-
version: 1
|
| 3 |
-
name: Ideology (Centrality of Religiosity Scale)
|
| 4 |
-
language: en
|
| 5 |
-
category: Religiosity
|
| 6 |
-
description: Religiosity - Ideology dimension of the Centrality of Religiosity Scale.
|
| 7 |
-
citation: Huber, S., & Huber, O. W. (2012). The Centrality of Religiosity Scale (CRS). Religions, 3(3),
|
| 8 |
-
710–724. https://doi.org/10.3390/rel3030710
|
| 9 |
-
verification_status: needs_verification
|
| 10 |
-
source_url: https://www.mdpi.com/2077-1444/3/3/710
|
| 11 |
-
rights_note: nan
|
| 12 |
-
questionnaire: Centrality of Religiosity Scale
|
| 13 |
-
reverse_flags_source: not_provided_pending_verification
|
| 14 |
-
imported_from: lib.xlsx
|
| 15 |
-
items:
|
| 16 |
-
- item_id: centrality_of_religiosity_scale_ideology_2
|
| 17 |
-
text: To what extent do you believe that God or something divine exists?
|
| 18 |
-
reverse_scored: false
|
| 19 |
-
- item_id: centrality_of_religiosity_scale_ideology_7
|
| 20 |
-
text: To what extend do you believe in an afterlife—e.g. immortality of the soul, resurrection of the
|
| 21 |
-
dead or reincarnation?
|
| 22 |
-
reverse_scored: false
|
| 23 |
-
- item_id: centrality_of_religiosity_scale_ideology_12
|
| 24 |
-
text: In your opinion, how probable is it that a higher power really exists
|
| 25 |
-
reverse_scored: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packages/construct_library/constructs/centrality_of_religiosity_scale_intellect.yaml
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
construct_id: centrality_of_religiosity_scale_intellect
|
| 2 |
-
version: 1
|
| 3 |
-
name: Intellect (Centrality of Religiosity Scale)
|
| 4 |
-
language: en
|
| 5 |
-
category: Religiosity
|
| 6 |
-
description: Religiosity - Intellect dimension of the Centrality of Religiosity Scale.
|
| 7 |
-
citation: Huber, S., & Huber, O. W. (2012). The Centrality of Religiosity Scale (CRS). Religions, 3(3),
|
| 8 |
-
710–724. https://doi.org/10.3390/rel3030710
|
| 9 |
-
verification_status: needs_verification
|
| 10 |
-
source_url: https://www.mdpi.com/2077-1444/3/3/710
|
| 11 |
-
rights_note: nan
|
| 12 |
-
questionnaire: Centrality of Religiosity Scale
|
| 13 |
-
reverse_flags_source: not_provided_pending_verification
|
| 14 |
-
imported_from: lib.xlsx
|
| 15 |
-
items:
|
| 16 |
-
- item_id: centrality_of_religiosity_scale_intellect_1
|
| 17 |
-
text: How often do you think about religious issues?
|
| 18 |
-
reverse_scored: false
|
| 19 |
-
- item_id: centrality_of_religiosity_scale_intellect_6
|
| 20 |
-
text: How interested are you in learning more about religious topics?
|
| 21 |
-
reverse_scored: false
|
| 22 |
-
- item_id: centrality_of_religiosity_scale_intellect_11
|
| 23 |
-
text: How often do you keep yourself informed about religious questions through radio, television, internet,
|
| 24 |
-
newspapers, or books?
|
| 25 |
-
reverse_scored: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packages/construct_library/constructs/centrality_of_religiosity_scale_private_practice.yaml
DELETED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
construct_id: centrality_of_religiosity_scale_private_practice
|
| 2 |
-
version: 1
|
| 3 |
-
name: Private practice (Centrality of Religiosity Scale)
|
| 4 |
-
language: en
|
| 5 |
-
category: Religiosity
|
| 6 |
-
description: Religiosity - Private practice dimension of the Centrality of Religiosity Scale.
|
| 7 |
-
citation: Huber, S., & Huber, O. W. (2012). The Centrality of Religiosity Scale (CRS). Religions, 3(3),
|
| 8 |
-
710–724. https://doi.org/10.3390/rel3030710
|
| 9 |
-
verification_status: needs_verification
|
| 10 |
-
source_url: https://www.mdpi.com/2077-1444/3/3/710
|
| 11 |
-
rights_note: nan
|
| 12 |
-
questionnaire: Centrality of Religiosity Scale
|
| 13 |
-
reverse_flags_source: not_provided_pending_verification
|
| 14 |
-
imported_from: lib.xlsx
|
| 15 |
-
items:
|
| 16 |
-
- item_id: centrality_of_religiosity_scale_private_practice_4
|
| 17 |
-
text: How often do you pray?
|
| 18 |
-
reverse_scored: false
|
| 19 |
-
- item_id: centrality_of_religiosity_scale_private_practice_9
|
| 20 |
-
text: How important is personal prayer for you?
|
| 21 |
-
reverse_scored: false
|
| 22 |
-
- item_id: centrality_of_religiosity_scale_private_practice_14
|
| 23 |
-
text: How often do you pray spontaneously when inspired by daily situations?
|
| 24 |
-
reverse_scored: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packages/construct_library/constructs/centrality_of_religiosity_scale_public_practice.yaml
DELETED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
construct_id: centrality_of_religiosity_scale_public_practice
|
| 2 |
-
version: 1
|
| 3 |
-
name: Public practice (Centrality of Religiosity Scale)
|
| 4 |
-
language: en
|
| 5 |
-
category: Religiosity
|
| 6 |
-
description: Religiosity - Public practice dimension of the Centrality of Religiosity Scale.
|
| 7 |
-
citation: Huber, S., & Huber, O. W. (2012). The Centrality of Religiosity Scale (CRS). Religions, 3(3),
|
| 8 |
-
710–724. https://doi.org/10.3390/rel3030710
|
| 9 |
-
verification_status: needs_verification
|
| 10 |
-
source_url: https://www.mdpi.com/2077-1444/3/3/710
|
| 11 |
-
rights_note: nan
|
| 12 |
-
questionnaire: Centrality of Religiosity Scale
|
| 13 |
-
reverse_flags_source: not_provided_pending_verification
|
| 14 |
-
imported_from: lib.xlsx
|
| 15 |
-
items:
|
| 16 |
-
- item_id: centrality_of_religiosity_scale_public_practice_3
|
| 17 |
-
text: How often do you take part in religious services?
|
| 18 |
-
reverse_scored: false
|
| 19 |
-
- item_id: centrality_of_religiosity_scale_public_practice_8
|
| 20 |
-
text: How important is to take part in religious services?
|
| 21 |
-
reverse_scored: false
|
| 22 |
-
- item_id: centrality_of_religiosity_scale_public_practice_13
|
| 23 |
-
text: How important is it for you to be connected to a religious community?
|
| 24 |
-
reverse_scored: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|