Skip to content

User judge on a trial of another workspace saves into the open workspace's job of the same name #447

In progress

Description

@harenome

Priority

P2 · Planned: limited in scope, has a way around it, or a missing feature

Evidence

Trial page with ?workspace=B while A is open, both holding job-x: a flag set on the User judge tab is written to A's job-x/failure-analysis.json. The page says "Saved"; B's tab stays empty.

The form posts to /failure/<job>/<trial> without workspace=: failure_route is missing from _preserve_record_workspace (app/web/shared.py), so _trial_evidence reads the open workspace. The redirect drops it too.

Route test on 328888b:

form actions: ['/failure/job-x/hello-world__mAXMKXR']
POST 302 -> /trial/job-x/hello-world__mAXMKXR?tab=failure#failure
workspace A job-x/failure-analysis.json: written
workspace B job-x/failure-analysis.json: absent

Compare links each column's trials with workspace=, so this is the usual path to it. A flag accepted there changes A's filtered score.

Reproduction

  1. Workspaces A (open) and B, each with a job job-x holding the same trial.
  2. Compare A's and B's job-x; open a trial of B's column.
  3. User judge tab: flag the task, Save.

Expected

The flag is in B's job-x; A's is unchanged.

Acceptance

  • Every User judge action on a trial opened with ?workspace= writes to that workspace's job
  • The redirect after saving keeps workspace=

Related

#252 (the same for the judge's forms), #427

Activity

  1. added
    bug
    P2
    on Nov 26, 2026
  2. added theissue type on Nov 26, 2026
  3. harenome commented on Nov 26, 2026

    @harenome
    CollaboratorAuthor

    Two more routes lose the workspace, both from the job page opened with ?workspace=B while A is open.

    • job_live: the live board polls A's feed (app/templates/runs/_live_board.html:3). B's run is still going; the board is told it finished.
    • trial_attempts: the arrow on a task's row opens A's attempts (app/templates/runs/job.html:454). B's second attempt is not listed.

    Route test on 328888b, both holding job-x, B's feed cut before its end and B given a second attempt:

    GET /job/job-x?workspace=b -> 200
    /job/job-x?workspace=b: job_live: /job/job-x/live  [NO workspace=]
    /job/job-x?workspace=b: trial_attempts: /trial/job-x/hello-world__mAXMKXR/attempts  [NO workspace=]
    
    job_live /job/job-x/live -> 200 state=finished; with workspace=B -> 200 state=running
    trial_attempts /trial/job-x/hello-world__mAXMKXR/attempts -> 200 attempt rows=2 extra attempt listed=False; with workspace=B -> 200 attempt rows=4 extra attempt listed=True
    

    Neither is in the set of _preserve_record_workspace (app/web/shared.py:431).

    Fine: trial_picture, artifact_download and the trial page's All attempts tab pass workspace= themselves and answer with B's record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions