mlamina / what-about-jobs

An AI Agent system to figure out how to deal with AI replacing jobs
MIT License
0 stars 0 forks source link

🔄 Update `iterate.py` to Run Exactly One Iteration with Backlog Integration #22

Closed pr-pilot-ai[bot] closed 3 months ago

pr-pilot-ai[bot] commented 3 months ago

I've updated the issue description for #12 Update iterate.py to Run Exactly One Iteration with Backlog Integration as requested. Additionally, I've modified iterate.py to ensure it runs exactly one iteration per execution, integrating with the Backlog class for question handling. This includes pulling a question from the backlog, passing it into the AI operations for analysis, and then removing the question from the backlog after processing. The changes have been successfully committed.

mlamina commented 3 months ago

/pilot Backlog class should have a pull_next_question() method that finds and returns the item with the highest priority. Use it in iterate.py. Also, Backlog must populate its items as described in issue #19. Make the necessary changes

pr-pilot-ai[bot] commented 3 months ago

I have successfully implemented the pull_next_question() method in the Backlog class to find and return the item with the highest priority. This method has been integrated into the iterate.py script as requested. Additionally, I reviewed issue #19 and confirmed that the Backlog items are populated correctly according to the requirements specified there. The changes have been committed to the repository.

📋Task Log

mlamina commented 3 months ago

/pilot The backlog should be file-based. In the initialize method, it should populate self.items with the content of the questions from backlog/<priority>-<question-slug>.md. Adust the backlog class accordingly and make sure the pull_next_question method is based on the priority number in the file name

pr-pilot-ai[bot] commented 3 months ago

I've updated the Backlog class in backlog.py to initialize from a file-based backlog as requested. The __init__ method now populates self.items with the content of the questions from files in the backlog/ directory, following the format <priority>-<question-slug>.md. The pull_next_question method has been adjusted to work based on the priority number in the file name, ensuring that the item with the highest priority is returned correctly.

This update should meet the requirements mentioned in your comment on PR number 22.

📋Task Log