Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

More robust server handling

Open
#368 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale

Research direction

Start by locating the AEPsych server's handling for setup, ask, tell, and other messages, then inspect the existing unit-test coverage. Done means setup-required responses, graceful handling of malformed messages, Sobol fallback after model-fit failure, client-disconnection recovery, detailed logging, and tests for each case.

Written by the indexing model from the issue text.

Description

The AEPsych server receives data from clients through "tell" messages and fits a model to that data to recommend trials that it sends back to the client through "ask" messages. There are a number of things that could go wrong in this process (all of these issues should be recorded in the logs with sufficient detail to understand what happened):

  • The server cannot process ask, tell, or other messages before it has received a setup message. Right now it just crashes if this happens, but it should have a "setup required" response.
  • The server could receive ill-formatted messages. It should be able to fail gracefully, and wait to receive another message.
  • The server could fail to fit the model after an "ask" message. It should fallback to sending a Sobol trial.
  • The server could lose connection to the client. It should recognize this and wait for a new connection.
  • There are surely lots of other scenarios that the server should be prepared for.

Unit tests should be written to test all these cases and to see where the cracks are in the current error-handling.

Dominant language
HTML
Stars
75
Forks
57
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from facebookresearch/aepsych

All issues in facebookresearch/aepsych

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.