{
 "number": 36614,
 "repo": "bitcoin/bitcoin",
 "url": "https://github.com/bitcoin/bitcoin/pull/36614",
 "title": "test: check algorithm after SelectionResult::Merge",
 "author": "Naomi-Gift",
 "author_association": "FIRST_TIME_CONTRIBUTOR",
 "created_at": "2026-10-22T18:14:01Z",
 "updated_at": "2026-10-23T06:22:45Z",
 "description_hash": "3705f1915a6579a5",
 "age_days": 10,
 "draft": false,
 "labels": [
  "Tests"
 ],
 "milestone": null,
 "base": "master",
 "head_sha": "4959d341309255188a878d92d23703a7a3686b1d",
 "head_ref": "test-selectionresult-merge-algo",
 "head_repo": "Naomi-Gift/bitcoin",
 "head_history": [],
 "additions": 23,
 "deletions": 0,
 "changed_files": 1,
 "commit_count": 1,
 "size_bucket": "S",
 "mergeable_state": "clean",
 "bot": {
  "drahtbot": {
   "present": true,
   "reviews": {
    "ack": [
     {
      "login": "mercie-ux",
      "url": "https://github.com/bitcoin/bitcoin/pull/36614#issuecomment-6358727789"
     }
    ]
   },
   "conflicts": []
  }
 },
 "acks_parsed": {
  "mercie-ux": {
   "kind": "ack",
   "hash": "4959d34130",
   "t": "2026-10-23T06:14:17Z",
   "stale": false
  }
 },
 "acks_tally": {
  "ack": 1,
  "stale_ack": 0,
  "concept_ack": 0,
  "approach_ack": 0,
  "nack": 0,
  "concept_nack": 0,
  "approach_nack": 0
 },
 "reviews": {
  "approved": 0,
  "changes_requested": 0,
  "distinct_reviewers": [
   "fanquake",
   "mercie-ux"
  ]
 },
 "signals": {
  "needs_rebase": false,
  "ci_failed": false,
  "mergeable_state": "clean",
  "last_author_activity": "2026-10-22T17:37:09Z",
  "last_reviewer_activity": "2026-10-23T06:14:17Z",
  "last_reviewer": "mercie-ux",
  "author_silent_days": 10,
  "waiting_on_author_days": 9,
  "days_since_update": 9
 },
 "refs": {
  "mentioned": [],
  "depends_on": [],
  "fixes": [],
  "linked_issues": [],
  "references": [],
  "conflicts": []
 },
 "stack": {
  "shares_commits_with": [],
  "based_on": [],
  "base_for": []
 },
 "review_paths": [],
 "body": "The wallet merges preset (`MANUAL`) inputs with the automatic coin selection result in `spend.cpp`. With the mutant applied, the merged result is incorrectly reported as `MANUAL` instead of the algorithm that actually selected the coins.\n\nThe test checks both cases:\n- Preset inputs merged into an automatic result should keep the automatic algorithm.\n- A `MANUAL` result merged with another result should take the algorithm of the other result.\n\nWith the mutant applied, both checks fail with `manual != bnb`.",
 "commits": [
  {
   "sha": "4959d341309255188a878d92d23703a7a3686b1d",
   "date": "2026-10-22T17:37:09Z",
   "message": "test: check algorithm after SelectionResult::Merge"
  }
 ],
 "timeline": [
  {
   "t": "2026-10-22T19:30:51Z",
   "kind": "comment",
   "who": "fanquake",
   "assoc": "MEMBER",
   "text": "cc @murchandamus",
   "id": "c:6349478753",
   "url": "https://github.com/bitcoin/bitcoin/pull/36614#issuecomment-6349478753",
   "hash": "48742ebb6837a249",
   "edited": null
  },
  {
   "t": "2026-10-23T06:14:17Z",
   "kind": "comment",
   "who": "mercie-ux",
   "assoc": "CONTRIBUTOR",
   "text": "ACK 4959d34130\n\nThis covers the surviving mutant https://bitcoincore.space/src/wallet/coinselection.cpp#3707. I ran bcore-mutation and confirmed that `merge_algo_test` kills it.",
   "id": "c:6358727789",
   "url": "https://github.com/bitcoin/bitcoin/pull/36614#issuecomment-6358727789",
   "hash": "cd673d6a6da27fa7",
   "edited": "2026-10-23T06:22:45Z"
  }
 ],
 "labels_log": [
  {
   "t": "2026-10-22T18:14:06Z",
   "action": "labeled",
   "label": "Tests",
   "who": "DrahtBot"
  }
 ],
 "state_log": [],
 "text_chars": 806,
 "text_tokens_estimate": 201,
 "changed_paths": [
  "src/wallet/test/coinselector_tests.cpp"
 ],
 "files": [
  {
   "path": "src/wallet/test/coinselector_tests.cpp",
   "add": 23,
   "del": 0
  }
 ],
 "test_lines": 23,
 "git": {
  "head": "4959d341309255188a878d92d23703a7a3686b1d",
  "head_matches_backup": true,
  "base": "152a55397e451fed9c10041bddf01aa6839847d5",
  "patch_id": "9f32024f7e51770f",
  "commits": [
   {
    "sha": "4959d34130",
    "subject": "test: check algorithm after SelectionResult::Merge",
    "files": 1,
    "add": 23,
    "del": 0
   }
  ],
  "patch_truncated": false
 },
 "patch_id": "9f32024f7e51770f",
 "input_hash": "4b1465a6532f9a77",
 "extracted_at": "2026-11-02T01:09:49+00:00"
}