Add nuanced prompt scaffolding around "profile info" based on profile type
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- typescript
Research direction
Start with functions/src/structured_prompt.utils.ts and trace how experiment profile-stage data reaches the promptData object. Resolve how selected versus assigned ProfileType values should affect scaffolding, including hardcoded profile identities across stages. Done means the agreed profile-specific behavior is implemented without leaking alternate identities, with tests covering the resulting prompt content.
Written by the indexing model from the issue text.
Description
See context and comment in https://github.com/PAIR-code/deliberate-lab/pull/814:
"Update: I ended up adding a set of TODO comments for now as I think this warrants a bigger discussion around profile type specific scaffolding—happy to file an issue to circle back.
If I understand your intention correctly here, your implementation in the original PR does not actually solve this. The profileSetId bit is being used as a hack for hardcoding the profile for the current stage only (I've left a comment in my commit to explain this); we are currently using this for negotiation games where participants interact with different aliases for each game. This means that profileSetId being empty does not indicate whether or not the profile type is assigned/selected; it just means there is no hardcoding for the current stage.
What we'd want to check instead is the ProfileType indicated in the profile stage of the experiment (we have a P2 out to move that field to the experiment level, by the way). Right now, there are two types (default, default gendered) that are "selected" and two types (anonymous animal, anonymous participant) that are "assigned." So the work would involve extracting that bit from the experiment and (likely) storing it in the promptData object that is used throughout functions/src/structured_prompt.utils.ts to fill in the prompt.
Additionally, we may want to think about how we present profile info in the hardcoded cases. If a participant was playing as "Lion" for a past set of stages but will be represented as "Tiger" in the current stage, presumably the scaffolding should communicate this. (We could always share all the profile identities but my guess is that might lead to model confusion / leaking of alternate profile information.)
Anyway, I'll merge this as-is with TODOs and let's figure out what the right approach to "better profile type specific scaffolding" is as a follow-up."
- Dominant language
- TypeScript
- Stars
- 97
- Forks
- 41
- Avg merge
- 1m
- Merged PRs (30d)
- 22
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PAIR-code/deliberate-lab
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
PAIR-code/deliberate-lab#1214 ·
Maintainers usually reply within 1 day
-
area:build
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
PAIR-code/deliberate-lab#1179 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
PAIR-code/deliberate-lab#1155 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
PAIR-code/deliberate-lab#1144 ·
Maintainers usually reply within 1 day
-
starter bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
PAIR-code/deliberate-lab#1096 ·
Maintainers usually reply within 1 day
All issues in PAIR-code/deliberate-lab
Similar issues
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apex-dev-tools/apex-log-parser#199 ·
Maintainers usually reply within 1 day
-
area/frontend/library-panels automated-triage type/bug type/ux
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
PostHog/posthog.com#21607 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
ajv-validator/ajv#2689 ·
-
[Bug]: IME confirmation Enter can submit the SSH port-forward dialogPossibly taken @seijikohara claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day