Log review checklist
********************

For each matching container, scan the extracted full log files for:

* Python tracebacks and exception class names.

* HTTP 500s, failed "/launch", dashboard errors, and failed scheduled
  jobs.

* Prolific API failures, status verification errors, bonus payment
  errors, unread-message parsing errors, and assignment-return loops.

* Database errors such as "UndefinedTable", "DeadlockDetected",
  transaction rollbacks, and missing columns/attributes.

* Worker restarts, clock crashes, queue errors, and repeated warning
  loops.

* Whether the error stopped the deployment or was followed by a
  successful launch.

Always correlate timestamps across containers. A web traceback during
"/launch" may be transient if a later "/launch" succeeds.

After the experiment completes on Prolific, download the full Dozzle
logs again and repeat the log review. Do not rely only on the
deployment-time ZIP, because completion can trigger later recruiter,
approval, bonus, assignment-return, and participant-status jobs.
Compare the post-completion logs with the initial scan and report any
new errors separately.

Useful search patterns for downloaded logs:

   Traceback|TypeError|AttributeError|RuntimeError|Exception|ERROR|CRITICAL|Internal Server Error| 500 |raised an exception|ProlificServiceException|no assignment data|Session idle|Deadlock|UndefinedTable
   assignment_returned|AssignmentReturned|AssignmentAbandoned|approve_participant_submission|bonus|reward|Prolific API request|Close recruitment|Recruitment closed|launch complete|Launched experiment

Interpretation shortcuts:

* "TypeError: sequence item 0: expected str instance, list found" in
  "Experiment.run_recruiter_checks" points to a PsyNet notifier
  combine/list bug.

* "We found no assignment data for participant <id> with assignment ID
  <assignment_id> on Prolific!" should be cross-checked against the
  participant dashboard row for "status", "failed", "failed_reason",
  and "failure_tags".

* "Prolific session not yet submitted (current status is 'ACTIVE')"
  during "approve_participant_submission" can be non-fatal if the
  worker continues to pay bonuses and later state is consistent.

* "ERROR: could not obtain lock on row in relation "participant"" or
  "... in relation "sync_group"" (SQLSTATE 55P03) in the app's
  PostgreSQL logs is expected in group experiments: a barrier check
  that finds a waiter's row locked defers and retries. Report it only
  if the "web" logs also show failed requests or stuck waiters (see
  "deploy/reference/troubleshooting").

* "Session idle in transaction!" warnings are worth noting, but are
  lower priority unless paired with deadlocks, stuck jobs, or failed
  requests.

* Scanner-style 404s for random assets and manually probed invalid
  dashboard URLs are not PsyNet/Dallinger product failures.
