feat: improve sync architecture conformance failure diagnostics (#861)#863
Open
prompt-driven-github[bot] wants to merge 3 commits intomainfrom
Open
feat: improve sync architecture conformance failure diagnostics (#861)#863prompt-driven-github[bot] wants to merge 3 commits intomainfrom
prompt-driven-github[bot] wants to merge 3 commits intomainfrom
Conversation
Updates code_generator_main and agentic_sync_runner prompts to surface structured, actionable diagnostics when architecture conformance fails: - Stable "Architecture conformance error" headline with prompt filename, generated path, missing symbols, AST-detected top-level symbols (capped at 50), and a local repro command. - Sync runner pins the conformance block ahead of the keyword tail when the headline is detected in stdout/stderr. Refs #861 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: #863 SummaryPrimary reviewer is satisfied after reviewing the fixer response. 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
Improves the diagnostics surfaced when
pdd synchits an architecture conformance failure so reviewers and CI logs see exactly which symbols were missing, which generated file was checked, and how to reproduce locally — instead of the truncateddeclared symbols missingheadline.Closes #861
Changes Made
Prompts Modified
pdd/prompts/code_generator_main_python.prompt— Requirement 5 + Architecture Logic instructions get a new sub-bullet mandating that conformance-failureclick.UsageErrormessages contain a stableArchitecture conformance errorheadline followed by a structured block (prompt filename, generated path, missing symbols, AST-detected top-level symbols capped at 50, local repro command)._verify_architecture_conformancegains an optionalgenerated_pathparameter; the call site passesoutput_path.pdd/prompts/agentic_sync_runner_python.prompt— Requirement 9a gets a new "conformance pinning" clause: when the headline is detected in stdout/stderr, the runner extracts up to 12 follow-up diagnostic lines (prompt:,generated:,missing:,detected:,repro:) and pins them ahead of the keyword tail. Adds a_extract_conformance_blockhelper.Architecture
architecture.json— minor metadata update reflecting the prompt edits.Related
Review Checklist
Next Steps After Merge
pytest -vv tests/).Created by pdd change workflow