You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/10/05 15:17:34 UTC
[PR] fix(release-vote-tally): bind a vote to its real sender address only [magpie]
potiuk opened a new pull request, #1530:
URL: https://github.com/apache/magpie/pull/1530
<!-- SPDX-License-Identifier: Apache-2.0
https://www.apache.org/licenses/LICENSE-2.0 -->
## Summary
- `tally.py`'s `normalise_address` took the **first** `<…@…>` anywhere in a vote's `from`, so a display name written as an address bound the vote to that person: `"<al...@apache.org>" <ma...@example.org>` counted as a **binding** vote from roster member `alice`.
- Because voter identity drives supersession, such a later vote also **replaced** alice's real vote — a `-1` sent that way overwrote her `+1`.
- `from` is now parsed as an address header (`email.utils.getaddresses`), so only the real mailbox counts. A `from` holding several addresses, or one the parser rejects, is non-binding and keeps an identity of its own, so it can never supersede another voter. Bare addresses and bare handles are taken as written, as before.
## Type of change
- [ ] Skill change (`.claude/skills/<name>/`) — eval fixtures updated below
- [ ] Tool / bridge contract (`tools/<system>/*.md`)
- [ ] Python package (`tools/*/` with `pyproject.toml`)
- [ ] Groovy reference impl
- [ ] Cross-cutting (RFC, AGENTS.md, sandbox, privacy-LLM)
- [ ] Documentation (`docs/`, `README.md`, `CONTRIBUTING.md`)
- [ ] Project template (`projects/_template/`)
- [ ] CI / dev loop (`prek`, workflows, validators)
- [x] Other: skill sibling script (`plugins/magpie-release-management/skills/vote-tally/scripts/tally.py`) and its unittest suite
## Test plan
- [x] `python3 -m unittest discover -s plugins/magpie-release-management/skills/vote-tally/tests` — 43 tests pass
- [x] The four new tests fail against `main`'s `tally.py` (display-name address binds; two ambiguous senders bind; a spoofed `-1` supersedes a member's `+1`) and pass with this change
- [x] Pre-commit hooks pass on the commit
- [ ] For skill changes: eval suite — not applicable; `SKILL.md` is unchanged (it names the matching order, which is the same)
## RFC-AI-0004 compliance
- [x] **HITL** — no new mutation; the script stays read-only and the RM still confirms the tally before any `[RESULT]` goes out
## Linked issues
None — found during review of #1512's sibling scripts.
## Notes for reviewers (optional)
The exposure is bounded — the model classifies replies and passes `from` through, and the RM reviews the tally — but this is the one deterministic step in the vote count, so it should not be the part that can be talked into the wrong answer.
---
Generated-by: Claude Opus 5 (assisted; reviewed by the PR author)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(release-vote-tally): bind a vote to its real sender address only [magpie]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #1530:
URL: https://github.com/apache/magpie/pull/1530
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org