Anchor audit agent paths to project root#19
Merged
groupthinking merged 3 commits intojules-audit-agent-16337681246389421261from Jan 29, 2026
Merged
Anchor audit agent paths to project root#19groupthinking merged 3 commits intojules-audit-agent-16337681246389421261from
groupthinking merged 3 commits intojules-audit-agent-16337681246389421261from
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…t root Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] WIP Address feedback on Nightly Audit Agent implementation
Anchor audit agent paths to project root
Jan 29, 2026
groupthinking
approved these changes
Jan 29, 2026
f2a91b8
into
jules-audit-agent-16337681246389421261
3 of 5 checks passed
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request fixes a path resolution issue in the nightly audit agent script that caused failures when executed from cron or outside the repository root directory. The change anchors the log_dir and report_dir paths to the project root using Path(__file__).resolve().parent.parent, ensuring consistent path resolution regardless of the working directory from which the script is invoked.
Changes:
- Anchored
log_dirandreport_dirpaths to project root inscripts/nightly_audit_agent.py
Comments suppressed due to low confidence (2)
scripts/nightly_audit_agent.py:17
- Import of 'os' is not used.
import os
scripts/nightly_audit_agent.py:22
- Import of 'List' is not used.
Import of 'Optional' is not used.
from typing import Dict, List, Any, Optional
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
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.
The nightly audit agent used relative paths for
log_dirandreport_dir, causing failures when executed from cron or outside the repository root.Changes:
log_dirandreport_dirto project root usingPath(__file__).resolve().parent.parentscripts/scheduled_cleanup.py:221Before:
After:
This ensures paths resolve consistently regardless of execution context (cron, manual invocation, different working directories).
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.