iceboundrock / iceboundrock/AutoForge

Minor hygiene: lock file PID growth, unknown state keys, duplicated REQUIRED_PROFILES

Open
#7 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
0
Forks
0
Avg merge
8h 56m
Merged PRs (30d)
40

Description

Follow-up from PR #1 review round 1, observation O6. Three small, independent cleanups:

  1. Lock file appends a PID per acquire without truncating. Truncate before writing the PID so the file never grows across runs.
  2. state.from_dict silently drops unknown keys. A typo'd optional field is lost on next save. Either fail loudly on unknown keys (consistent with "corrupt state must fail loudly") or preserve them round-trip; failing loudly is preferred.
  3. REQUIRED_PROFILES is duplicated in src/autoforge/engine.py and src/autoforge/doctor.py. Define it once (e.g. in profiles.py next to routing) and import it in both places.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the lock-file acquisition code, state.from_dict, and the REQUIRED_PROFILES definitions in src/autoforge/engine.py and src/autoforge/doctor.py. Make the lock file truncate before writing, make unknown state keys fail loudly, and centralize REQUIRED_PROFILES so both modules import it from one location. Confirm the existing test suite covers the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.