feat: align agentic update scope guard with included-doc permissions (#1025)#1028
Open
prompt-driven-github[bot] wants to merge 2 commits into
Open
feat: align agentic update scope guard with included-doc permissions (#1025)#1028prompt-driven-github[bot] wants to merge 2 commits into
prompt-driven-github[bot] wants to merge 2 commits into
Conversation
…1025) Extend the agentic_update scope guard to permit edits to prompt include targets and intentional new shared include files under context/, matching the permissions documented in agentic_update_LLM.prompt. - agentic_update_python.prompt: Requirement 10 now resolves <include> targets via extract_includes_from_file (pdd.sync_order) and passes allowed_directories={context/} to the guard. - agentic_common_python.prompt: _revert_out_of_scope_changes gains an additive, keyword-only allowed_directories param (default None) for directory-scoped allowances; existing callers are unaffected. Closes #1025 Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Contributor
Author
Step 7/8: Review Loop Final ReportPR: #1028 SummaryMax review cost reached: $30.00. Per-Reviewer Status
Findings
Fixer Rationale
Fixes Attempted
|
Contributor
Author
Step 7/8: Review Loop Final ReportPR: #1028 SummaryMax review cost reached: $30.00. Per-Reviewer Status
Findings
Fixer Rationale
Fixes Attempted
|
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.
Summary
Align the
run_agentic_updatescope guard allowlist with the permissions documented inagentic_update_LLM.promptso that edits to prompt-included docs and intentional new shared include files undercontext/are preserved instead of reverted.Closes #1025
Changes Made
Prompts Modified
pdd/prompts/agentic_update_python.prompt— Requirement 10 (Scope Guard) now resolves<include>targets viaextract_includes_from_filefrompdd.sync_order(the authoritative include parser, reused per the issue's acceptance criterion) and passesallowed_directories={(PROJECT_ROOT / "context").resolve()}to the guard. Addedpdd.sync_orderdependency block and graceful-fallback semantics for unparseable/missing includes.pdd/prompts/agentic_common_python.prompt— Documented Requirement 21 for_revert_out_of_scope_changes, adding an additive, keyword-onlyallowed_directories: Optional[set[Path]] = Noneparameter that admits any file under a listed directory via resolvedPath.is_relative_tocontainment. DefaultNonepreserves the strict allowlist semantics for all 15+ existing callers.Architecture
architecture.json— Refreshed to reflect the updated module wiring (agentic_update → sync_order dependency for include parsing).Review Checklist
allowed_directoriesdefaults toNone)extract_includes_from_file) per Issue bug: agentic update scope guard reverts included-doc edits #1025 acceptance criterionNext Steps After Merge
pdd sync agentic_common→pdd sync agentic_updateand continuing through dependents).pytest -vv tests/).pdd updatepreserves an edit to that doc.context/is preserved when intentionally created.Created by pdd change workflow