Skip to content

Review fixes before 0.2.0: scope snapshot, baseline setup errors, run --check, landing, one set of numbers - #52

Merged
mtrager merged 7 commits into
mainfrom
fixes-0.2.0
Nov 24, 2026
Merged

mtrager merged 7 commits into
mainfrom
fixes-0.2.0

Conversation

@mtrager

@mtrager mtrager commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

The codebase review's fixes before 0.2.0: the findings its triage marks "run" (review written against 2e3ce1f, 65 findings, none high). Four commits from an AutoHelix run (fhte, 4 iterations), three by hand after an independent review.

Edge bugs

  • Files the agent writes outside the scope (datasets, checkpoints) are no longer hashed into the repository's objects at each freeze. The snapshot lists the change set first and stages only in-scope names with update-index. The discarded list is capped at 20 in the record and the prompt, frozen paths first.
  • A command's background child holding its output no longer hangs the command: its group ends once the shell exits.
  • The agent's process group ends on any exception, not only Ctrl-C. Every backend skips JSON lines that aren't objects.
  • Long output lines are cut at 500 characters in the prompt and the record.

Baseline rule

  • A setup that can't work stops at the baseline with a setup error naming the gate: a command gate exiting 126/127 (unless its first word is a non-ignored path the agent may write), or an ask: gate exiting 2.
  • Every segment start checks the agent's executable.

run --check

  • It says what run would: start notices, the uncommitted config, template errors, the flags.
  • A damaged history is named.

Landing and run names

  • delete refuses without --force when the tip is on no branch, tag or remote-tracking ref.
  • land says when it did nothing.
  • Bare land/report take the latest run that isn't running.
  • Config names give the run they mean.

Screens

  • One set of numbers on every screen: the baseline row's cost, the run page's time with the baseline, and view's Budget/time/cost wording matching run's.
  • The resume wait line.
  • Stored config/template read without following symlinks.
  • A clear message when view's port is taken.

Infrastructure stops

  • Only HTTP 401/403 end a run at once. 429 and 5xx are ordinary agent failures; three in a row still stop it.

Small fixes and examples

  • The "changed" refusal names the field and the added files.
  • The template's model: is commented out.
  • run --help's fork recipe.
  • Examples that run as written (Docker quick start, autoresearch's stop, setups' git identity).
  • The autoresearch and kernelbench configs no longer pin Bedrock ids.
  • posttrain says it keeps one model folder.

Cleanup

  • Dead code from the review's removal table.
  • CLAUDE.md, docs and CHANGELOG updated.

Verified: full suite (2154 passed). An independent review checked the diff against the triage. The snapshot rewrite was compared with the old add -A on 180+ edge cases (layouts, scopes, git configs, attributes and filters, symlinks, file/folder changes) and gives the same trees, discarded lists and rejections.

…ckend check; background children end with their shell, the agent's group dies on any error, non-object JSON lines are raw, failure…

Changes 1-3: path-independent stop tests and a written pre-release backend check; background children end with their shell, the agent's group dies on any error, non-object JSON lines are raw, failure tails cut per line, the snapshot lists before hashing (no out-of-scope objects) and caps the discarded list; a gate that can't run (126/127, ask exit 2) is a baseline setup error and every resume checks the agents' executables

AutoHelix iteration 1

remaining: 11 -> 8 (+27.3%)

AutoHelix-Run: 20261123-1848-fixes-0-2-0-fhte
AutoHelix-Iteration: 1
…d config, template errors, flags), damaged histories named; delete guards unreachable tips, land says when it did nothing, land/re…

Changes 4 and 5: run --check says what run would (notices, uncommitted config, template errors, flags), damaged histories named; delete guards unreachable tips, land says when it did nothing, land/report skip running runs, config names resolved in errors, failed-baseline next commands; plus iter 1 review fixes (frozen discards listed first, one-pathspec snapshot add)

AutoHelix iteration 2

remaining: 8 -> 6 (+25.0%)

AutoHelix-Run: 20261123-1848-fixes-0-2-0-fhte
AutoHelix-Iteration: 2
…een (baseline row cost, run-page time, view Budget/time/cost wording, phase words, resume wait line, stored config without symlink…

Changes 6-11 and iter-2 review fixes: one set of numbers on every screen (baseline row cost, run-page time, view Budget/time/cost wording, phase words, resume wait line, stored config without symlinks, port-in-use message), only 401/403 stop a run, changed-config refusal names the field, template model commented, run --help fork recipe, examples fixed, dead code removed, CLAUDE.md and __version__ settled

AutoHelix iteration 3

remaining: 6 -> 2 (+66.7%)

AutoHelix-Run: 20261123-1848-fixes-0-2-0-fhte
AutoHelix-Iteration: 3
…arity) with a comment; stale docstrings and '30 minutes' fixtures; snapshot_changes returns its kinds so the remedy no longer pars…

Iter-3 review fixes: autoresearch keeps its Bedrock model id (arms' parity) with a comment; stale docstrings and '30 minutes' fixtures; snapshot_changes returns its kinds so the remedy no longer parses file names; _ancestor_configs kept (06-3 later) as a plain loop; end-to-end test that 429/5xx are ordinary failures and 401 stops at once

AutoHelix iteration 4

remaining: 2 -> 0 (+100.0%)

AutoHelix-Run: 20261123-1848-fixes-0-2-0-fhte
AutoHelix-Iteration: 4
…gnored gate paths aren't exempt

- Copy.snapshot stages the kept names with update-index instead of `git add`
  with literal pathspecs, which refused a tracked file inside an ignored folder
  (.vscode/settings.json under .vscode/) whenever any name was out of scope,
  rejecting the iteration. Also drops the exclude trick for files below an
  added name, the separate symlink case, the one-pathspec shortcut and the
  dependency on --pathspec-from-file.
- The baseline rule's exemption for a gate whose first word the agent may
  write no longer covers a git-ignored path (.venv/bin/pytest never reaches a
  copy).
- land --help, report --help and docs/cli.md name the default run they take
  (the most recently active run that isn't running).
@mtrager
mtrager merged commit 9dfbba1 into main Nov 24, 2026
10 checks passed
@mtrager
mtrager deleted the fixes-0.2.0 branch November 24, 2026 04:47
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.

1 participant