-
Notifications
You must be signed in to change notification settings - Fork 1
[DRAFT EVIDENCE] provenance-bypass proposal for issue-less agent PRs #934
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
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4a0a184
ci: fix agent completion gate for PRs without issues
Copilot b2e20bb
test: add workflow-adapter tests for PR-body fallback and extractRunI…
Copilot b0f161c
test: fix unnecessary legacyRunId extraction in synthetic-event test
Copilot e017184
fix: narrow fallback scope, add knownAgents check, mirror fallbacks i…
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Fix the code for all comments in this review comment.
When a review comment includes a suggested change, apply the suggestion exactly.
Do not make changes beyond what is described in the linked review comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added four focused workflow-adapter tests in
tests/unit/test_agent_completion_gate.py(committest: add workflow-adapter tests for PR-body fallback and extractRunId parser):test_extract_run_id_duplicate_parser_matches_legacy— extractsextractRunIdand runs it through the same node.js assertion table aslegacyRunId, includingnull/undefinedinputs, confirming the duplicate parser behaves identically.test_pr_body_fallback_populates_identity_when_issue_fields_absent— string-asserts the collector step has the correct fallback chain (legacyRunId(prBody)/manifest.agent_login/pr.user.login), then proves via node.js that issue-body fields take priority, fallbacks activate when absent, and the resultingrun_id/loginvalues are structurally valid.test_mismatch_errors_require_manifest_match— string-asserts that bothagent_run_id_mismatchandagent_login_mismatchbranches are guarded bymanifestMatch, preventing spurious mismatch errors when no manifest is present.test_synthetic_artifact_ready_event_excluded_for_non_agent_author— string-asserts theeventAuthors.has(pr.user.login)guard, then proves via node.js that the event is emitted for a matching agent login, absent for a human or empty login, and that the emitted payload fields (kind,sequence,comment_id,author,head_sha) are valid.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Fix the code for all comments in this review comment.
When a review comment includes a suggested change, apply the suggestion exactly.
Do not make changes beyond what is described in the linked review comment.
Can
You make this not a test and real code instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need clarification on your request. The original review comment asked to "Add focused workflow-adapter tests for the new PR-body fallback" - which I did by adding four test methods to
tests/unit/test_agent_completion_gate.py.Are you asking me to:
.github/workflows/pr-checks.yml)?scripts/ci/agent_completion_gate.py)?The tests currently verify:
extractRunIdparser behaviorWhat would you like converted from test code to "real code"?