Skip to content

Profits to achievements#305

Draft
kiankyars wants to merge 5 commits intomainfrom
profits-to-achievments
Draft

Profits to achievements#305
kiankyars wants to merge 5 commits intomainfrom
profits-to-achievments

Conversation

@kiankyars
Copy link
Copy Markdown
Collaborator

closes #278
work I did to try to sort out achievements and delete profits

- Renamed fle/commons/models/achievements.py -> production_flows.py
- Renamed fle/env/utils/achievements.py -> achievement_calculator.py
- Deleted fle/env/utils/profits.py (legacy code)
- Updated all imports to use new module paths
- Replaced get_achievements() calls with AchievementTracker.calculate_achievements()
- Fixed gym environment to use proper ProductionFlows objects instead of dicts
- Updated all evaluators and task verification to use new achievement system
- Deleted tests/eval/test_profits.py (testing removed functionality)
- Remove broken is_valid() method that always returned true
- Fix None handling in ProductionFlows.from_dict() for Lua nil values
- Add graceful error handling for malformed crafted data
- Add comprehensive test suite covering edge cases and validation
- Tests reveal and fix real bugs in the implementation
- Changed Response object to contain absolute flows instead of delta flows
- Updated get_observation to use Response flows when available for consistency
- Added explicit delta_flows to info dict for cases where step changes are needed
- Now both Response and Observation contain the same canonical absolute flow data
@kiankyars kiankyars linked an issue Aug 21, 2025 that may be closed by this pull request
@kiankyars kiankyars marked this pull request as ready for review August 21, 2025 17:23
@kiankyars kiankyars marked this pull request as draft August 21, 2025 17:25
@kiankyars
Copy link
Copy Markdown
Collaborator Author

#308 addresses the same task so noting this for future review

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.

Duplicated achievements code Static Production

1 participant