Repository navigation
fix(workflow): accept authenticated multiline PASS attestations (CHE-11114 server) [squash] - #2332
Merged
Merged
Conversation
Author
|
Merge-Eligibility: REFUSED
|
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.
Status
Draft. This PR implements the server half of CHE-11114. The dotfiles sweeper PR is also required to complete the issue.
Conditions
The parser accepts the explicit multiline Reviewer, reviewed head, and Signed form. The authenticated comment author must match Reviewer. Existing source-task ownership, edit, withdrawal, cross-lab, and current-head checks remain in force.
Change
parseVerdictAttestationrecognizes the multiline form and keeps the legacy bold inline-head form.verifiedSignerscompares Reviewer with the authenticated commenter's agent name in the comment query. Parser and database-backed signer tests cover acceptance and rejection.Blast Radius
The change affects verdict parsing and signer qualification in
server/internal/service. A parser or identity mismatch can reject a valid review or count an invalid one. The focused parser and signer tests detect these failures. Proof level: 2.Evidence
go test ./internal/service -run TestVerifiedSigners -count=1failed because the parser rejected the fixture's exact head. The next run exposed a busy database connection during reviewer lookup..env.worktreeloaded,go test ./internal/service -run 'Test(ParseMultilineVerdictRequiresOneCompleteAttestation|VerifiedSigners)' -count=1passed:ok github.com/multica-ai/multica/server/internal/service 3.537s.git diff --checkpassed.Changelog: Reviewers can submit authenticated multiline PASS attestations.
Refs CHE-11114