policy: one subject, one standing comment — by derivation, not dedup #77
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Meta/Campaign
Meta/Epic
Meta/Session
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Curated
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Scope/Campaign
Status/Abandoned
Status/Blocked
Status/Conflicted
Status/In Progress
Status/In Review
Status/Need Grooming
Status/Need More Info
Status/Ready
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Ting/Jostoph!77
Loading…
Reference in a new issue
No description provided.
Delete branch "agent.teyla/Jostoph:tango/40-standing-comment-dedup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
status_effectwas declared against every conclusion, on the theory thatidentical effects collapse downstream. They do not: the reason column makes
each tuple distinct, so a subject with two findings was declared two
identical comments — an executor handed that posts twice, and the test that
says "every finding lands in ONE comment" has been red on
main.It cannot ride no conclusion either: resolve keeps only effects a real
conclusion asked for. So it rides exactly one — the agg-min reason, a single
deterministic witness — and which one does not matter, because the body
already carries them all.
Found this landing
lar.ad/flake-ops#75(Jostoph on bifrost): the package'sown
postInstall/checkPhase runs the test suite, so a Nix build of thesteward failed on a pull request whose body was missing two required
sections — deterministically, not flakily, every run.
Cherry-picked verbatim from an already-written fix sitting on
tango/33-the-reconciler(commite342667, part of the larger #37), landedhere on its own because it is a self-contained correctness fix unrelated to
that PR's reconciler feature — the estate answering-once law shouldn't wait
on review of a bigger, separate change.
In scope
src/policy.rs:status_effectnow ridesagg reason = min(reason) in conclusion(...)— one deterministic witness reason — instead of everyconclusion's reason.
Out of scope
tango/33-the-reconciler/ #37.Boundary
via
standing. Only whichconclusionrow carries the (now singular)effect tuple changes.
Acceptance
cargo test: 62/62 pass, includingpolicy::tests::every_finding_lands_in_one_comment, previously red onmain.cargo fmt --check/cargo clippy --all-targets -- -D warningsclean.nix flake checkpasses.