Skip to content

fix(execution): refuse a run whose first record cannot be saved - #559

Merged
aitianshi merged 2 commits into
mainfrom
fix/refuse-run-without-record-522
Dec 1, 2026
Merged

aitianshi merged 2 commits into
mainfrom
fix/refuse-run-without-record-522

Conversation

@aitianshi

Copy link
Copy Markdown
Collaborator

Closes #522

What

  • A run whose run.json could not be written started anyway; a restart could not pick it up.
  • A launch now saves every run's first record before any starts.
  • A failed save: nothing starts or is registered; records already saved are removed.
  • Run, the API and nullius remote run (exit 4) answer 503: "The run's record could not be saved (Permission denied). Check the permissions and free space of , then retry."
  • Later saves stay best-effort.

Verified

  • Read-only runs folder, POST /run: main 200, a run with no record; now 503, nothing started.
  • New route test fails on main.
  • Backend 3504 (one module timed out under load, passes alone), routes 926.
  • Not checked: a host run.

Risk

  • A refused launch's jobs folder stays in its workspace's roots.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5

@aitianshi
aitianshi marked this pull request as ready for review December 1, 2026 13:31
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

🟡 PR judge · 4 of 5 yes · #559 ↔ #522

Merge risk 🔴 MAJOR the judge's reading of the diff; app/nullius/execution.py is in the path of every run
Depth 🔴 EXTREME the deepest path is app/nullius/execution.py
Question Verdict
Changes do what the issue asks · 3 of 3 criteria ✅ yes
Issue and pull request describe the same change ❔ undecided
Description matches the diff ✅ yes
Diff stays in scope ✅ yes
Risk named in the description ✅ yes
Before and after shown –
Acceptance criteria, 3 of 3 met
# Criterion Verdict
1 An initial record write failure starts no worker and returns an actionable error. ✅ met
2 Failed launch leaves no active execution registered. ✅ met
3 A regression test injects the initial write failure. ✅ met
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/, .agents/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 1, 2026
@aitianshi
aitianshi merged commit c901e71 into main Dec 1, 2026
6 checks passed
@aitianshi
aitianshi deleted the fix/refuse-run-without-record-522 branch December 1, 2026 13:41
@github-actions github-actions Bot removed the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runs start when their initial record cannot be saved

1 participant