Skip to content

fix(runs): keep a job's folder name when its root ends with a slash - #793

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/job-root-trailing-slash
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/job-root-trailing-slash

Conversation

@harenome

@harenome harenome commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #773

What

  • Job folders are normalized where found (unless .. after a link changes the folder), so jobs/pair, jobs/pair/ (as a glob pair/** gives it) and jobs/pair/. give pair~a-m-1.
  • Before: runs list jobs/pair/ gave ~a-m-1; runs show jobs/pair/ pair~a-m-1 exited 3; a save could copy another pair's old judgement.

Touches

  • runs/parse.py: find_job_dirs, parse_job id, views_of; SCHEMA 35, so cached jobs are read again.
  • runs/uid.py: the folder fact.

Verified

  • test_cli: three spellings, equal uids; link/../nested still lists nested.
  • test_judgement_follows_job: a slash root copies no ambiguous old judgement.
  • New tests fail on main, except the link guard. Both suites.

Risk

  • Roots ending in a slash (as a glob gives them), . or ..: judgements saved under their old uids are not found under the corrected uid.

Agents

  • Claude Code, Opus 5.5

@harenome
harenome marked this pull request as ready for review December 3, 2026 16:53
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 3, 2026
@harenome
harenome merged commit 5833de9 into ThinkFlowLab:main Dec 3, 2026
4 checks passed
@harenome
harenome deleted the fix/job-root-trailing-slash branch December 3, 2026 17:06
harenome added a commit that referenced this pull request Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runs: a job root given with a trailing slash loses its folder name in view ids

1 participant