Skip to content
This repository was archived by the owner on Nov 29, 2025. It is now read-only.

Conversation

@westonbrown
Copy link
Owner

Fixes #81

Summary

Centralizes configuration access through ConfigManager and improves operation reliability for release-0.1.4.

Config Consolidation

  • Added typed env accessors (getenv, getenv_bool, getenv_int, getenv_float)
  • Implemented env change detection with automatic cache invalidation
  • Replaced 77+ direct os.getenv() calls across manager.py, evaluation.py, cyber_autoagent.py
  • Fixed cache staleness bug

Precedence Fixes

  • CYBER_OBJECTIVE now respects CLI args in Python mode (only overrides in React UI)
  • Added INFO logs when env vars override saved configuration

Operation Improvements

  • Switched to SummarizingConversationManager for better token efficiency
  • Increased operation timeouts to 20 minutes for long assessments
  • Enhanced report agent reliability
  • Fixed handler timeout configurations

Testing

  • 76/76 core tests passing
  • No regressions introduced

@github-actions
Copy link

github-actions bot commented Nov 8, 2025

PR Quality Check

Pylint Score: 9.57/10 [PASS]
Tests: Check workflow status above

[PASS] All checks passed!

@westonbrown
Copy link
Owner Author

@double16 @konradsemsch Please review when you have a chance - added a few enhancements based on testing (conversation manager, timeout adjustments, precedence fixes).

@westonbrown westonbrown added the enhancement New feature or request label Nov 8, 2025
@westonbrown westonbrown added this to the release 0.1.4 milestone Nov 8, 2025
@westonbrown westonbrown mentioned this pull request Nov 8, 2025
@github-actions
Copy link

github-actions bot commented Nov 8, 2025

PR Quality Check

Pylint Score: 9.57/10 [PASS]
Tests: Check workflow status above

[PASS] All checks passed!

@westonbrown
Copy link
Owner Author

@claude Please review this PR for code quality and completeness.

Focus on:

  • Verify ConfigManager consolidation is complete (no missed os.getenv() calls)
  • Check environment variable accessor methods (getenv, getenv_bool, getenv_int, getenv_float)
  • Validate cache invalidation logic works correctly
  • Review precedence fix for CYBER_OBJECTIVE
  • Verify SummarizingConversationManager change is appropriate
  • Run full test suite (uv run pytest) to ensure no regressions

@caa-swe-agent
Copy link

caa-swe-agent bot commented Nov 8, 2025

Claude Code is working…

I'll analyze this and get back to you.

View job run

@westonbrown westonbrown self-assigned this Nov 8, 2025
@github-actions
Copy link

github-actions bot commented Nov 8, 2025

PR Quality Check

Pylint Score: 9.57/10 [PASS]
Tests: Check workflow status above

[PASS] All checks passed!

@github-actions
Copy link

PR Quality Check

Pylint Score: 9.66/10 [PASS]
Tests: Check workflow status above

[PASS] All checks passed!

caa-swe-agent[bot] and others added 14 commits November 10, 2025 23:30
Centralized all environment variable access through ConfigManager to
ensure consistent configuration handling and proper cache invalidation.

Changes:
- Added centralized env access methods (getenv, getenv_bool, getenv_int, getenv_float)
- Implemented environment change detection and automatic cache invalidation
- Replaced 77+ direct os.getenv() calls across manager.py, evaluation.py, and cyber_autoagent.py
- Fixed caching bug: cache now detects env changes and auto-invalidates
- All 248 tests passing with no regressions

Fixes #81

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Aaron Brown <[email protected]>
… configuration options, and module descriptions;
…functions, and improve logging for better debugging and maintainability
@westonbrown westonbrown force-pushed the claude/issue-81-20251108-1705 branch from 39fe4d0 to a30c122 Compare November 11, 2025 05:33
@github-actions
Copy link

PR Quality Check

Pylint Score: 9.68/10 [PASS]
Tests: Check workflow status above

[PASS] All checks passed!

@github-actions
Copy link

PR Quality Check

Pylint Score: 9.68/10 [PASS]
Tests: Check workflow status above

[PASS] All checks passed!

@westonbrown westonbrown merged commit 64c3170 into release-0.1.4 Nov 11, 2025
1 check passed
@westonbrown westonbrown deleted the claude/issue-81-20251108-1705 branch November 29, 2025 17:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant