Repository navigation
Run the agent inside an ATLAS study, for the students a researcher picks - #36
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ATLAS can now give a study student the INVITE Agent. For a ticked student who agreed to take part, ATLAS's study page frames
agent.inviteai.org/study#ticket=..., and this page wraps their study session of ZANY the same way it wraps ZANY at vr.inviteai.org.The ticket is signed with a secret only ATLAS and the agent hold (
AGENT_STUDY_SECRET). A newzany-studyenvironment takes the student from the ticket and never from the link, so nobody can open another student's chat by guessing an ID. A valid ticket also passes the Turnstile check, since ATLAS already signed the student in. The environment reads the student's rows from ATLAS'slog_record, kept apart from link students who share the same IDs. When ATLAS deletes a student's records, the agent deletes everything it keeps about them, their chat too, and an hourly check catches a missed notice.The page at
/studysigns the student in from the ticket with no form and no Sign out button. With no ticket it says to open it from the study page. The sign-in form never offers the study environment.The design and plan are in
docs/superpowers/. Server tests are 95 passing, including 9 new study tests, and client tests are 20 passing.It needs
zany-studyinENVIRONMENTS,AGENT_STUDY_SECRETin/etc/agent/zany.envandSELECT ON log_recordforagent_reader. Those go in through infra.Closes #35