-
Notifications
You must be signed in to change notification settings - Fork 0
Address review comments: fix paths, cleanup gating, align docs, add tests #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Copilot
wants to merge
4
commits into
jules-audit-agent-16337681246389421261
Choose a base branch
from
copilot/sub-pr-2
base: jules-audit-agent-16337681246389421261
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+441
−37
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…lign docs - Remove duplicate sys.path.append, use sys.path.insert(0, ...) - Anchor log_dir and report_dir to project root using Path(__file__).resolve() - Update docstring to match actual status code check (>= 400) - Remove unused service instantiations (MetricsService, LoggingService) - Gate database cleanup on actual database component health, not all health issues - Update AGENTS.md to clarify automated vs advisory actions - Align AGENTS.md thresholds with implementation (>= 400, complete log scan) - Add note that agent is internal monitoring tool, not part of core workflow Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
- Test initialization (dry-run, live mode, path anchoring) - Test log analysis (missing file, various status codes, >= 400 threshold) - Test database cleanup gating (only triggers for DB health issues) - Test dry-run mode (skips remediation and fortification) - Test report generation and saving - Test advisory labeling for remediations - All 22 tests passing Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
- Fixed inconsistent indentation (5 spaces instead of 4) in lines 208, 211, 234, 235 - All tests still passing Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement Nightly Audit & Ruthless Remediation Agent
Address review comments: fix paths, cleanup gating, align docs, add tests
Jan 29, 2026
groupthinking
approved these changes
Feb 6, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses 9 review comments from PR #2 covering path handling, service instantiation, cleanup logic, documentation alignment, and test coverage.
Code Changes
Path handling - Anchored
log_dirandreport_dirto project root viaPath(__file__).resolve().parent.parentinstead of relative paths. Prevents writes to unexpected locations when run from cron or outside repo root.Service cleanup - Removed unused
MetricsServiceandLoggingServiceinstantiations. These start background asyncio tasks that run unexpectedly during one-shot audit and produce noisy cancellation logs.Database cleanup gating - Changed from unconditional cleanup on any health issue to gated execution:
Prevents destructive cleanup operations when external services fail.
Threshold alignment - Updated docstring and filter logic documentation from
> 400to>= 400to match actual implementation. Changed AGENTS.md from "24-hour window" to "complete log scan" to reflect actual behavior.Advisory labeling - Prefixed automated recommendation actions with
[ADVISORY]marker to distinguish from truly automated operations like DB cleanup.Documentation Changes
AGENTS.md clarifications:
Test Coverage
Added 22 unit tests covering:
>= 400threshold, 200/400/500 cases)[DRY RUN]markers present)[ADVISORY])All tests passing. CodeQL clean.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.