feat: support multiple compliance documents (PDFs, URLs, markdown) for PR review#2
Draft
feat: support multiple compliance documents (PDFs, URLs, markdown) for PR review#2
Conversation
…for PR review Co-authored-by: JayPat2003 <87596889+JayPat2003@users.noreply.github.com> Agent-Logs-Url: https://github.com/JayPat2003/github-architect-code-reviewer/sessions/5b791906-a427-47fb-81ce-7446faa63057
Copilot
AI
changed the title
[WIP] Add agent for handling multiple PDFs and document URLs
feat: support multiple compliance documents (PDFs, URLs, markdown) for PR review
Mar 25, 2026
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 tool previously accepted only a single
--docsource. Organizations maintain compliance requirements across multiple documents (architecture standards, security policies, company guidelines) and PRs need to be checked against all of them simultaneously.Changes
cli.py—--docnow uses Clickmultiple=True; repeat the flag for each sourcedoc_loader.py— addedload_documents(sources: List[str]) -> List[ArchitectureDoc]; wraps existingload_documentper sourcereviewer.py—_build_prompt,_parse_response, andrun_reviewnow acceptList[ArchitectureDoc]; prompt includes a clearly labelled section per documenttypes.py—ReviewResultgainscompliance_docs: List[ArchitectureDoc]for full audit trailreporter.py—meta.compliance_docswritten to the JSON report (source + doc_type per entry)README.md— updated CLI examples, report schema table, example JSON, and GitHub Actions workflowUsage
The AI prompt enumerates each document as a numbered, labelled section so the model can attribute violations to specific policies. The report
metablock records which documents were consulted on each run.💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.