myxce/.wolf/buglog.json
Rongsong Shen 98c52b7d96
chore(buglog): bug-1864 fixed (0d3bb965); log bug-1865
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 14:44:14 +00:00

28022 lines
2.4 MiB

{
"version": 1,
"bugs": [
{
"id": "bug-002",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-21T07:46:54.198Z",
"error_message": "Incorrect value in code",
"file": ".claude/skills/kiro-spec-init/SKILL.md",
"root_cause": "Had `.kiro/settings/templates/specs/init.json`",
"fix": "Changed to `templates/specs/init.json`",
"tags": [
"auto-detected",
"wrong-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 12,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-004",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-21T07:58:54.673Z",
"error_message": "Wrong reference: g_tmpdir should be g_instdir",
"file": "src/controller/testsuite/test_config_repl.c",
"root_cause": "Used \"g_tmpdir\" instead of \"g_instdir\"",
"fix": "Changed g_tmpdir \u2192 g_instdir",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-005",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-21T08:24:10.738Z",
"error_message": "Missing guard clause",
"file": "src/controller/config_repl.c",
"root_cause": "No early return/throw for edge case: rc == 0",
"fix": "Added guard clause: if (rc == 0)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-006",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-21T08:30:20.719Z",
"error_message": "AddressSanitizer: attempting double-free on sctx in ha_connect_to_peer",
"file": "src/controller/ha.c",
"root_cause": "endpoint_fini calls FREEUP(ep->data) which frees sctx, then ha_connect_to_peer also calls free(sctx) \u2014 double-free at lines 3594-3595 and 3600-3601",
"fix": "Set ep->data = NULL before endpoint_fini so FREEUP becomes a no-op; then free(sctx) explicitly in the error paths",
"tags": [
"md",
"double-free",
"asan",
"ha_connect_to_peer",
"endpoint_fini",
"integration-test",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-007",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-21T12:53:13.789Z",
"error_message": "AddressSanitizer: heap-use-after-free in liveness_poll_fn at ha.c:3293 \u2014 reading ctx->cancelled after ha_arm_heartbeat_timeout_vtask freed the old ctx",
"file": "src/controller/ha.c",
"root_cause": "ha_arm_heartbeat_timeout_vtask freed the old liveness_poll_ctx_t immediately after setting cancelled=1, but the delaymgr task was already in flight reading ctx->cancelled=0 and then continued to read ctx->ha after free",
"fix": "ha_arm_heartbeat_timeout_vtask no longer frees old ctx; liveness_poll_fn now frees ctx when it fires with cancelled=1 (guarded by #ifndef XCE_TESTING to avoid bad-free on stack-allocated test ctxs)",
"tags": [
"guard-clause",
"c",
"heap-use-after-free",
"asan",
"liveness_poll_fn",
"ha_arm_heartbeat_timeout_vtask",
"race-condition",
"integration-test",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-008",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-21T13:20:28.953Z",
"error_message": "Missing guard clause",
"file": "src/controller/config_repl.c",
"root_cause": "No early return/throw for edge case: getaddrinfo(host, port_str, &hints, &res",
"fix": "Added guard clause: if (getaddrinfo(host, port_str, &hints, &res)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-020",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-25T11:31:55.826Z",
"error_message": "Function not marked async",
"file": ".kiro/specs/ha-config-bootstrap/brief.md",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-023",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T07:17:31.980Z",
"error_message": "Missing guard clause",
"file": ".kiro/specs/ha-config-bootstrap/brief.md",
"root_cause": "No early return/throw for edge case: req->term < my_term",
"fix": "Added guard clause: if (req->term < my_term)",
"tags": [
"auto-detected",
"guard-clause",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-024",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T07:18:36.066Z",
"error_message": "Missing guard clause",
"file": "../../../../../claude/.claude/plans/prancy-herding-nest.md",
"root_cause": "No early return/throw for edge case: n_peers == 2",
"fix": "Added guard clause: if (n_peers == 2)",
"tags": [
"auto-detected",
"guard-clause",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-026",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T07:26:48.363Z",
"error_message": "Wrong return value",
"file": ".kiro/specs/ha-config-bootstrap/brief.md",
"root_cause": "Was returning: 1;",
"fix": "Now returns: 1; // single-node: always primary",
"tags": [
"auto-detected",
"return-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-027",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T07:27:34.925Z",
"error_message": "Wrong condition in logic",
"file": "../../../../../claude/.claude/plans/prancy-herding-nest.md",
"root_cause": "Condition was: if (n_peers == 2)",
"fix": "Changed to: if (n_peers == 1)",
"tags": [
"auto-detected",
"logic-fix",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-029",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T07:29:11.741Z",
"error_message": "Incorrect value in code",
"file": ".kiro/specs/ha-config-bootstrap/brief.md",
"root_cause": "Had `main.c`",
"fix": "Changed to `-EINVAL`",
"tags": [
"auto-detected",
"wrong-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-032",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T09:07:23.015Z",
"error_message": "Incorrect value in code",
"file": ".kiro/specs/ha-config-bootstrap/brief.md",
"root_cause": "Had `-EINVAL`",
"fix": "Changed to `--vcpus N`",
"tags": [
"auto-detected",
"wrong-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-034",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T09:23:02.818Z",
"error_message": "Missing guard clause",
"file": "../../../../../claude/.claude/plans/prancy-herding-nest.md",
"root_cause": "No early return/throw for edge case: rc == 0",
"fix": "Added guard clause: if (rc == 0)",
"tags": [
"auto-detected",
"guard-clause",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-035",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T09:46:12.902Z",
"error_message": "Incorrect value in code",
"file": ".kiro/specs/ha-config-bootstrap/brief.md",
"root_cause": "Had `sysconf(_SC_NPROCESSORS_ONLN)`",
"fix": "Changed to ` when not specified. Values `",
"tags": [
"auto-detected",
"wrong-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-038",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T10:09:32.424Z",
"error_message": "Missing guard clause",
"file": ".kiro/specs/ha-config-bootstrap/brief.md",
"root_cause": "No early return/throw for edge case: c->myconf->config_version_tag != 0",
"fix": "Added guard clause: if (c->myconf->config_version_tag != 0)",
"tags": [
"auto-detected",
"guard-clause",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-039",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T10:09:57.711Z",
"error_message": "Wrong return value",
"file": "../../../../../claude/.claude/plans/prancy-herding-nest.md",
"root_cause": "Was returning: 0 (standby); fresher peer runs its own election",
"fix": "Now returns: `-ENODATA`. Not a normal runtime path.",
"tags": [
"auto-detected",
"return-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-041",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T10:10:40.149Z",
"error_message": "Incorrect value in code",
"file": "../../../../../claude/.claude/plans/prancy-herding-nest.md",
"root_cause": "Had `test_fetch_config_from_best_peer`",
"fix": "Changed to `test_handle_config_request_standbys_serve_config`",
"tags": [
"auto-detected",
"wrong-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-042",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T11:35:44.097Z",
"error_message": "Function not marked async",
"file": ".kiro/specs/ha-config-bootstrap/brief.md",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-046",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T13:51:32.274Z",
"error_message": "Missing error handling in unknown",
"file": "../../../../../claude/.claude/plans/prancy-herding-nest.md",
"root_cause": "Code path had no error handling \u2014 exceptions would propagate uncaught",
"fix": "Added try/catch block | Also: - [ ] `test_heartbeat_carries_committed_lsn`: heartbeat payl; `committed_lsn`; standby updates `ha.last_known_committed_ls",
"tags": [
"auto-detected",
"error-handling",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-047",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-26T13:52:49.044Z",
"error_message": "Missing error handling in unknown",
"file": ".kiro/specs/ha-config-bootstrap/brief.md",
"root_cause": "Code path had no error handling \u2014 exceptions would propagate uncaught",
"fix": "Added try/catch block | Also: // Catch-up gate (Clarification 6): behind nodes must not in; if (c->ha.in_catch_up) {",
"tags": [
"auto-detected",
"error-handling",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-048",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-27T03:02:34.912Z",
"error_message": "Missing error handling in unknown",
"file": "../../../../../claude/.claude/plans/prancy-herding-nest.md",
"root_cause": "Code path had no error handling \u2014 exceptions would propagate uncaught",
"fix": "Added try/catch block | Also: name, key, applied_lsn, and config_tag immediately after TCP; - [ ] `test_ctrl_hello_registers_standby_in_repl`: handle_ct",
"tags": [
"auto-detected",
"error-handling",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-059",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-27T07:24:56.724Z",
"error_message": "Incorrect value in code",
"file": ".kiro/specs/ha-config-bootstrap/brief.md",
"root_cause": "Had `-ENOSYS`",
"fix": "Changed to `bootstrap_config_if_needed()`",
"tags": [
"auto-detected",
"wrong-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-060",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-27T09:24:44.651Z",
"error_message": "Incorrect value in code",
"file": ".kiro/specs/ha-config-bootstrap/spec.json",
"root_cause": "Had \"2026-05-27T01:24:00-07:00\"",
"fix": "Changed to \"2026-05-27T01:30:00-07:00\"",
"tags": [
"auto-detected",
"wrong-value",
"json",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-067",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T03:42:53.810Z",
"error_message": "Incorrect value in code",
"file": "src/controller/meson.build",
"root_cause": "Had 'worker.c'",
"fix": "Changed to 'startup_validation.c'",
"tags": [
"auto-detected",
"wrong-value",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-068",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T04:01:56.031Z",
"error_message": "Wrong condition in logic",
"file": "src/controller/main.c",
"root_cause": "Condition was: if (arguments->vcpus < 1)",
"fix": "Changed to: if (validate_vcpus(arguments->vcpus)",
"tags": [
"auto-detected",
"logic-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-069",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T04:02:06.925Z",
"error_message": "Wrong reference: vcpus should be nres",
"file": "src/include/clusterconfig.h",
"root_cause": "Used \"vcpus\" instead of \"nres\"",
"fix": "Changed vcpus \u2192 nres",
"tags": [
"auto-detected",
"wrong-reference",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-071",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T04:02:48.429Z",
"error_message": "Incorrect value in code",
"file": "src/schema/controller.capnp",
"root_cause": "Had \"vcpus\"",
"fix": "Changed to \"resources\"",
"tags": [
"auto-detected",
"wrong-value",
"capnp",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-074",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T05:59:28.525Z",
"error_message": "Wrong condition in logic",
"file": "src/controller/ha.c",
"root_cause": "Condition was: if (opcode == OPCode_requestVote || opcode == OPCode_p)",
"fix": "Changed to: if (opcode == OPCode_requestVote ||\n opcod)",
"tags": [
"auto-detected",
"logic-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-075",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T07:04:33.895Z",
"error_message": "Incorrect value in code",
"file": "src/controller/meson.build",
"root_cause": "Had 'startup_validation.c'",
"fix": "Changed to 'testsuite/test_ha_election.c'",
"tags": [
"auto-detected",
"wrong-value",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-078",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T07:22:56.418Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: peer_idx < 0 || peer_idx >= ctx->n_peers",
"fix": "Added guard clause: if (peer_idx < 0 || peer_idx >= ctx->n_peers)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-081",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T07:53:10.883Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: role != CTRL_STANDBY",
"fix": "Added guard clause: if (role != CTRL_STANDBY)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-082",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T08:23:40.040Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: ctx->done_posted",
"fix": "Added guard clause: if (ctx->done_posted)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-083",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T08:45:37.921Z",
"error_message": "Missing guard clause",
"file": "src/controller/config_repl.c",
"root_cause": "No early return/throw for edge case: !host || !tag_out",
"fix": "Added guard clause: if (!host || !tag_out)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-084",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T08:48:58.609Z",
"error_message": "Wrong reference: capn_str_null should be str",
"file": "src/controller/config_repl.c",
"root_cause": "Used \"capn_str_null\" instead of \"str\"",
"fix": "Changed capn_str_null \u2192 str",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-086",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T09:13:17.676Z",
"error_message": "Incorrect value in code",
"file": "src/controller/meson.build",
"root_cause": "Had 'startup_validation.c'",
"fix": "Changed to 'testsuite/test_ha_bootstrap_support.c'",
"tags": [
"auto-detected",
"wrong-value",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-087",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T10:13:52.421Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: !workdir",
"fix": "Added guard clause: if (!workdir)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-091",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T13:53:09.924Z",
"error_message": "Wrong reference: in_catch_up should be acked_config_lsn",
"file": "src/controller/repl.c",
"root_cause": "Used \"in_catch_up\" instead of \"acked_config_lsn\"",
"fix": "Changed in_catch_up \u2192 acked_config_lsn",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-092",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T14:11:04.583Z",
"error_message": "Missing guard clause",
"file": "src/controller/persist.c",
"root_cause": "No early return/throw for edge case: p->current_lsn == 0 || cutoff_lsn + 1 >= p->current_lsn",
"fix": "Added guard clause: if (p->current_lsn == 0 || cutoff_lsn + 1 >=)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-094",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T14:47:44.445Z",
"error_message": "Wrong reference: ha_state_t should be _Atomic",
"file": "src/controller/ha.h",
"root_cause": "Used \"ha_state_t\" instead of \"_Atomic\"",
"fix": "Changed ha_state_t \u2192 _Atomic",
"tags": [
"wrong-reference",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-095",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T15:04:44.613Z",
"error_message": "Wrong reference: socket should be epoll",
"file": "src/controller/ha.c",
"root_cause": "Used \"socket\" instead of \"epoll\"",
"fix": "Changed socket \u2192 epoll",
"tags": [
"auto-detected",
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-096",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-28T15:05:23.129Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: ha_tcp_connect_hook",
"fix": "Added guard clause: if (ha_tcp_connect_hook)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-097",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-29T02:48:17.371Z",
"error_message": "Missing guard clause",
"file": "src/lib/request.c",
"root_cause": "No early return/throw for edge case: (ep == NULL",
"fix": "Added guard clause: if ((ep == NULL)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-098",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-29T02:50:46.444Z",
"error_message": "Wrong reference: XCE_ERR_STANDBY should be E_XCE_STANDBY",
"file": "src/lib/request.c",
"root_cause": "Used \"XCE_ERR_STANDBY\" instead of \"E_XCE_STANDBY\"",
"fix": "Changed XCE_ERR_STANDBY \u2192 E_XCE_STANDBY",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-099",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-29T02:51:03.529Z",
"error_message": "Wrong reference: XCE_ERR_NOT_READY should be E_XCE_NOT_READY",
"file": "src/lib/testsuite/test_libxce_retry.c",
"root_cause": "Used \"XCE_ERR_NOT_READY\" instead of \"E_XCE_NOT_READY\"",
"fix": "Changed XCE_ERR_NOT_READY \u2192 E_XCE_NOT_READY",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-102",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-29T03:37:52.117Z",
"error_message": "Wrong reference: data should be ctrl_hello_reply_t",
"file": "src/include/typemap.h",
"root_cause": "Used \"data\" instead of \"ctrl_hello_reply_t\"",
"fix": "Changed data \u2192 ctrl_hello_reply_t",
"tags": [
"wrong-reference",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-104",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-29T03:54:23.205Z",
"error_message": "Missing error handling in struct",
"file": "src/include/typemap.h",
"root_cause": "Code path had no error handling \u2014 exceptions would propagate uncaught",
"fix": "Added try/catch block | Also: wal_catchup_entry_t* walcatchupentrymsg;; snapshot_transfer_t* snapshottransfermsg; | Also: /* Forward declarations for types defined later in this file; typedef struct snapshot_transfer_t snapshot_transfer_fw",
"tags": [
"auto-detected",
"error-handling",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 3,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-109",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-29T06:59:14.045Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: !ha",
"fix": "Added guard clause: if (!ha)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-111",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-29T07:02:31.287Z",
"error_message": "Wrong condition in logic",
"file": "src/controller/ha.c",
"root_cause": "Condition was: if (c->myconf && c->myconf->cluster_config)",
"fix": "Changed to: if (c->myconf && c->myconf->peers_cfg.candidates_count)",
"tags": [
"auto-detected",
"logic-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-117",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-29T13:41:46.841Z",
"error_message": "Incorrect value in code",
"file": "src/controller/myapp.c",
"root_cause": "Had \"Pre-election config loaded: tag=%016\"",
"fix": "Changed to \"Pre-election config loaded: tag=%016llx\"",
"tags": [
"auto-detected",
"wrong-value",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-118",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-29T13:51:42.299Z",
"error_message": "Wrong reference: nres should be vcpus",
"file": "src/include/clusterconfig.h",
"root_cause": "Used \"nres\" instead of \"vcpus\"",
"fix": "Changed nres \u2192 vcpus",
"tags": [
"auto-detected",
"wrong-reference",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-119",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-29T16:32:10.285Z",
"error_message": "Wrong reference: data should be request_vote_reply_t",
"file": "src/include/typemap.h",
"root_cause": "Used \"data\" instead of \"request_vote_reply_t\"",
"fix": "Changed data \u2192 request_vote_reply_t",
"tags": [
"wrong-reference",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-122",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T00:05:02.052Z",
"error_message": "Wrong reference: cluster_init_phase2 should be cluster_register_listener",
"file": "src/controller/include/cluster.h",
"root_cause": "Used \"cluster_init_phase2\" instead of \"cluster_register_listener\"",
"fix": "Changed cluster_init_phase2 \u2192 cluster_register_listener",
"tags": [
"wrong-reference",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-123",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T00:20:27.244Z",
"error_message": "Missing guard clause",
"file": "src/controller/cluster.c",
"root_cause": "No early return/throw for edge case: c->ep.flags == 0",
"fix": "Added guard clause: if (c->ep.flags == 0)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-127",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T01:12:38.572Z",
"error_message": "Wrong reference: CTRL_PERF_NHASH should be c",
"file": "src/controller/cluster.c",
"root_cause": "Used \"CTRL_PERF_NHASH\" instead of \"c\"",
"fix": "Changed CTRL_PERF_NHASH \u2192 c",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-129",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T01:21:20.140Z",
"error_message": "Wrong reference: true should be false",
"file": ".claude/skills/xce-build/SKILL.md",
"root_cause": "Used \"true\" instead of \"false\"",
"fix": "Changed true \u2192 false",
"tags": [
"auto-detected",
"wrong-reference",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-130",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T01:28:22.079Z",
"error_message": "Wrong reference: 120 should be 300",
"file": "src/controller/meson.build",
"root_cause": "Used \"120\" instead of \"300\"",
"fix": "Changed 120 \u2192 300",
"tags": [
"auto-detected",
"wrong-reference",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-135",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T06:19:47.181Z",
"error_message": "Incorrect value in code",
"file": ".kiro/specs/election-iomgr-refactor/design.md",
"root_cause": "Had `cluster_init_phase2`",
"fix": "Changed to `cluster_config == NULL`",
"tags": [
"auto-detected",
"wrong-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-136",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T06:38:09.325Z",
"error_message": "Missing error handling in unknown",
"file": ".kiro/specs/election-iomgr-refactor/design.md",
"root_cause": "Code path had no error handling \u2014 exceptions would propagate uncaught",
"fix": "Added try/catch block | Also: /* After election determines role: */; int is_first_boot = !c->running; /* running=1 only after cl | Also: #### `ha_dispatch_gate` \u2014 CTRL_PRIMARY_COMMITTING case; ```c | Also: ### 3-node startup \u2014 ctrl-a wins (with COMMITTING phase); participant PeerC as ctrl-c endpoint | Also: - **`ha_start_election_async()` is fully non-blocking**: Arm; - *Initial startup* (`ha->phase2_done == 0`): calls `cluster",
"tags": [
"auto-detected",
"error-handling",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 5,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-139",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T06:58:05.115Z",
"error_message": "Incorrect value in code",
"file": ".kiro/specs/election-iomgr-refactor/design.md",
"root_cause": "Had `delay_task_cancel()`",
"fix": "Changed to `clock_gettime(CLOCK_MONOTONIC)`",
"tags": [
"auto-detected",
"wrong-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-142",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T07:57:14.052Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: xce_vote_request_hook != NULL",
"fix": "Added guard clause: if (xce_vote_request_hook != NULL)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-143",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T08:16:03.222Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: !pkt || !pkt->data || pkt->sz == 0",
"fix": "Added guard clause: if (!pkt || !pkt->data || pkt->sz == 0)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-144",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T08:49:04.058Z",
"error_message": "Function not marked async",
"file": "src/controller/ha.h",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-145",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T08:49:59.817Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: atomic_load(&t->cancelled",
"fix": "Added guard clause: if (atomic_load(&t->cancelled)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-147",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T09:13:19.377Z",
"error_message": "Function not marked async",
"file": "src/controller/ha.h",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-149",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T10:31:53.836Z",
"error_message": "Incorrect value in code",
"file": "src/controller/meson.build",
"root_cause": "Had 'startup_validation.c'",
"fix": "Changed to 'testsuite/test_ha_vote_gate.c'",
"tags": [
"auto-detected",
"wrong-value",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-153",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T11:43:01.989Z",
"error_message": "Incorrect value in code",
"file": "src/controller/meson.build",
"root_cause": "Had 'startup_validation.c'",
"fix": "Changed to 'testsuite/test_ha_repl_push.c'",
"tags": [
"auto-detected",
"wrong-value",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-154",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T11:43:44.829Z",
"error_message": "Missing error handling in XCE_TESTING",
"file": "src/controller/ha.c",
"root_cause": "Code path had no error handling \u2014 exceptions would propagate uncaught",
"fix": "Added try/catch block | Also: /* Push config to standbys with lower config_tag (Req 7.1) *; #ifdef XCE_TESTING",
"tags": [
"auto-detected",
"error-handling",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-157",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T12:02:39.009Z",
"error_message": "Function not marked async",
"file": "src/controller/testsuite/test_ha_startup.c",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-159",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T12:22:57.013Z",
"error_message": "Wrong return value",
"file": "src/controller/testsuite/test_ha_startup.c",
"root_cause": "Was returning: in < 10ms.",
"fix": "Now returns: in < 5ms (design spec).",
"tags": [
"auto-detected",
"return-value",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-160",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T12:23:18.560Z",
"error_message": "Incorrect value in code",
"file": "src/controller/testsuite/test_ha_startup.c",
"root_cause": "Had \"myapp_run path: ha_start_election_async must retu",
"fix": "Changed to \"myapp_run path: ha_start_election_async must retu",
"tags": [
"auto-detected",
"wrong-value",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-161",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T12:29:45.867Z",
"error_message": "Function not marked async",
"file": "src/controller/ha.h",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-162",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T12:30:10.570Z",
"error_message": "Function not marked async",
"file": "src/controller/ha.c",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-163",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T12:31:02.203Z",
"error_message": "Function not marked async",
"file": "src/controller/testsuite/test_ha_failover.c",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-164",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T12:45:22.182Z",
"error_message": "Function not marked async",
"file": "src/controller/ha.h",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-166",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T12:50:35.870Z",
"error_message": "Missing guard clause",
"file": "src/controller/testsuite/test_ha_bootstrap_support.c",
"root_cause": "No early return/throw for edge case: c->myconf->config_version_tag != 0",
"fix": "Added guard clause: if (c->myconf->config_version_tag != 0)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-167",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T13:06:57.152Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: cancelled_val",
"fix": "Added guard clause: if (cancelled_val)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-168",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T13:24:06.024Z",
"error_message": "Incorrect value in code",
"file": "src/controller/meson.build",
"root_cause": "Had 'startup_validation.c'",
"fix": "Changed to 'testsuite/test_ha_repl_ack.c'",
"tags": [
"auto-detected",
"wrong-value",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-169",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T13:42:28.077Z",
"error_message": "Wrong reference: third should be second",
"file": "src/controller/testsuite/test_ha_repl_ack.c",
"root_cause": "Used \"third\" instead of \"second\"",
"fix": "Changed third \u2192 second",
"tags": [
"auto-detected",
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-170",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T14:35:07.679Z",
"error_message": "Function not marked async",
"file": "src/controller/ha.c",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-172",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-30T23:42:12.644Z",
"error_message": "Function not marked async",
"file": "src/controller/ha.c",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-176",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T02:09:39.630Z",
"error_message": "Wrong condition in logic",
"file": "src/controller/ha.c",
"root_cause": "Condition was: if (c->myconf && c->myconf->peers_cfg.candidates_count)",
"fix": "Changed to: if (ha->my_priority > 0)",
"tags": [
"auto-detected",
"logic-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-183",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T03:02:33.311Z",
"error_message": "Missing guard clause",
"file": "src/lib/request.c",
"root_cause": "No early return/throw for edge case: req == NULL",
"fix": "Added guard clause: if (req == NULL)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-186",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T04:11:45.534Z",
"error_message": "Missing error handling in struct",
"file": ".kiro/specs/raft-library/design.md",
"root_cause": "Code path had no error handling \u2014 exceptions would propagate uncaught",
"fix": "Added try/catch block | Also: Caller->>RaftSM: raft_on_vote_request(state, from, term); alt term < current_term",
"tags": [
"auto-detected",
"error-handling",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-188",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T04:19:54.524Z",
"error_message": "Incorrect value in code",
"file": ".kiro/specs/raft-library/design.md",
"root_cause": "Had `raft.c`",
"fix": "Changed to `raft.h`",
"tags": [
"auto-detected",
"wrong-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-190",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T05:07:37.759Z",
"error_message": "Missing guard clause",
"file": "src/lib/raft/raft.c",
"root_cause": "No early return/throw for edge case: cfg->n_peers < 1",
"fix": "Added guard clause: if (cfg->n_peers < 1)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-191",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T05:23:19.394Z",
"error_message": "Missing guard clause",
"file": "src/lib/raft/raft.c",
"root_cause": "No early return/throw for edge case: s->role == RAFT_CANDIDATE || s->role == RAFT_LEADER",
"fix": "Added guard clause: if (s->role == RAFT_CANDIDATE || s->role == )",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-197",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T07:08:23.387Z",
"error_message": "Function not marked async",
"file": "src/controller/ha.c",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-206",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T08:40:00.000Z",
"error_message": "test_vote_reply_handler_term_fencing FAIL: Expected 10 Was 3 \u2014 ha->term must be atomically updated to peer term when peer term > ours",
"file": "src/controller/ha.c",
"root_cause": "vote_reply_msg_handler delegated term fencing entirely to raft_cb_become_follower (via raft_on_vote_reply). In XCE_TESTING builds, vote_reply_dispatch calls xce_vote_reply_hook and returns early, bypassing raft_on_vote_reply and thus never updating ha->term.",
"fix": "Added explicit CAS loop in vote_reply_msg_handler before vote_reply_dispatch to advance ha->term when vr_term > ha->term. This applies on both the production path and the XCE_TESTING hook path.",
"tags": [
"term-fencing",
"raft",
"ha",
"xce-testing",
"test-seam",
"vote-reply",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-207",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T08:47:08.484Z",
"error_message": "Wrong reference: test_raft_init_zero_peers_returns_einval should be test_raft_init_even_peers_returns_einval",
"file": "src/lib/testsuite/test_raft.c",
"root_cause": "Used \"test_raft_init_zero_peers_returns_einval\" instead of \"test_raft_init_even_peers_returns_einval\"",
"fix": "Changed test_raft_init_zero_peers_returns_einval \u2192 test_raft_init_even_peers_returns_einval",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-208",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31",
"error_message": "ASAN LeakSanitizer: detected memory leaks in scheduler testsuite \u2014 build exits with error code",
"file": "src/scheduler/testsuite/test.c",
"root_cause": "sched_meet_host_selection() lazily allocates w->host_eval_ctx via build_host_eval_ctx(). Four test functions (test_meet_host_selection_always_true_passes, test_meet_host_selection_always_false_fails, test_meet_host_selection_numeric_match, test_meet_host_selection_string_match) called zarray_fini() without first calling sched_worker_release_host_ctx() to free the lazily-allocated host_eval_ctx.",
"fix": "Added sched_worker_release_host_ctx(&w) calls before zarray_fini() in all four affected test functions.",
"tags": [
"asan",
"leak",
"scheduler",
"test",
"host_eval_ctx",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-209",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T10:19:47.014Z",
"error_message": "Wrong condition in logic",
"file": "src/controller/ha.c",
"root_cause": "Condition was: if (ha_rdhup_election_hook != NULL)",
"fix": "Changed to: if (c->myconf && c->myconf->peers_cfg.candidates_count)",
"tags": [
"auto-detected",
"logic-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-211",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T11:29:03.301Z",
"error_message": "Wrong reference: 2000 should be 5000",
"file": "src/controller/ha.h",
"root_cause": "Used \"2000\" instead of \"5000\"",
"fix": "Changed 2000 \u2192 5000",
"tags": [
"auto-detected",
"wrong-reference",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-215",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T12:43:45.333Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: !pkt || !pkt->data || pkt->sz == 0",
"fix": "Added guard clause: if (!pkt || !pkt->data || pkt->sz == 0)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-216",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T12:49:40.554Z",
"error_message": "Incorrect value in code",
"file": ".kiro/specs/ha-peer-connection-reuse/tasks.md",
"root_cause": "Had 's vote endpoints to standby control channels\n\n- [",
"fix": "Changed to 's vote endpoints to standby control channels\n\n- [",
"tags": [
"auto-detected",
"wrong-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-218",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T12:58:44.435Z",
"error_message": "Wrong reference: Request_body_nodata should be Request_body_nomsg",
"file": "src/controller/ha.c",
"root_cause": "Used \"Request_body_nodata\" instead of \"Request_body_nomsg\"",
"fix": "Changed Request_body_nodata \u2192 Request_body_nomsg",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-220",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-05-31T14:20:41.161Z",
"error_message": "Wrong reference: vote_reply_msg_handler should be vote_reply_msg_handler_for_test",
"file": "src/controller/ha.c",
"root_cause": "Used \"vote_reply_msg_handler\" instead of \"vote_reply_msg_handler_for_test\"",
"fix": "Changed vote_reply_msg_handler \u2192 vote_reply_msg_handler_for_test",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-224",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T02:07:55.176Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: !c->delaymgr.running",
"fix": "Added guard clause: if (!c->delaymgr.running)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-229",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T02:49:09.141Z",
"error_message": "Wrong operator: && should be !=",
"file": "src/controller/ha.c",
"root_cause": "Used \"&&\" instead of \"!=\"",
"fix": "Changed operator && \u2192 !=",
"tags": [
"auto-detected",
"operator-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-233",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T03:07:51.264Z",
"error_message": "Incorrect value in code",
"file": "src/controller/meson.build",
"root_cause": "Had 'testsuite/test_ha_connect.c'",
"fix": "Changed to 'testsuite/test_ha_ctrlhello.c'",
"tags": [
"auto-detected",
"wrong-value",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-235",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T03:13:14.521Z",
"error_message": "Incorrect value in code",
"file": "src/controller/meson.build",
"root_cause": "Had 'testsuite/test_ha_connection_reuse.c'",
"fix": "Changed to 'testsuite/test_ha_connect.c'",
"tags": [
"auto-detected",
"wrong-value",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-236",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T03:15:29.129Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: rc < 0",
"fix": "Added guard clause: if (rc < 0)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-238",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T03:23:32.483Z",
"error_message": "Incorrect value in code",
"file": "src/controller/meson.build",
"root_cause": "Had 'testsuite/test_ha_connect.c'",
"fix": "Changed to 'testsuite/test_ha_connection_reuse.c'",
"tags": [
"auto-detected",
"wrong-value",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-239",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T03:28:46.956Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: ha_tcp_connect_hook != NULL",
"fix": "Added guard clause: if (ha_tcp_connect_hook != NULL)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-240",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T04:08:07.950Z",
"error_message": "Incorrect value in code",
"file": "src/controller/meson.build",
"root_cause": "Had 'testsuite/test_ha_connect.c'",
"fix": "Changed to 'testsuite/test_ha_connection_reuse.c'",
"tags": [
"auto-detected",
"wrong-value",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 3,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-241",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T04:13:03.001Z",
"error_message": "Wrong reference: test_ha_connect should be test_ha_ctrlhello",
"file": "src/controller/testsuite/controller_test.c",
"root_cause": "Used \"test_ha_connect\" instead of \"test_ha_ctrlhello\"",
"fix": "Changed test_ha_connect \u2192 test_ha_ctrlhello",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-242",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T05:19:12.427Z",
"error_message": "Wrong reference: vcpu should be vcpus",
"file": "src/tools/deploy-ha.sh",
"root_cause": "Used \"vcpu\" instead of \"vcpus\"",
"fix": "Changed vcpu \u2192 vcpus",
"tags": [
"auto-detected",
"wrong-reference",
"sh",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-250",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T07:46:05.128Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: !ep || !ep->data",
"fix": "Added guard clause: if (!ep || !ep->data)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-252",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T08:35:29.969Z",
"error_message": "Incorrect value in code",
"file": "src/controller/meson.build",
"root_cause": "Had 'startup_validation.c'",
"fix": "Changed to 'testsuite/test_ha_rdhup_integration.c'",
"tags": [
"auto-detected",
"wrong-value",
"build",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-255",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T12:02:55.635Z",
"error_message": "Wrong condition in logic",
"file": "src/controller/cluster.c",
"root_cause": "Condition was: if (rc != 0)",
"fix": "Changed to: if (validate_heartbeat_config(ha_cfg.heartbeat_timeout)",
"tags": [
"auto-detected",
"logic-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-256",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T12:36:28.381Z",
"error_message": "Wrong reference: startup_validation should be testsuite_test_ha_liveness",
"file": "src/xce.build/build.ninja",
"root_cause": "Used \"startup_validation\" instead of \"testsuite_test_ha_liveness\"",
"fix": "Changed startup_validation \u2192 testsuite_test_ha_liveness",
"tags": [
"wrong-reference",
"ninja",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-260",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T14:42:41.325Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: interval_s <= 0",
"fix": "Added guard clause: if (interval_s <= 0)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 3,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-263",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-01T15:32:59.304Z",
"error_message": "Missing guard clause",
"file": "src/controller/testsuite/test_ha_liveness.c",
"root_cause": "No early return/throw for edge case: !f",
"fix": "Added guard clause: if (!f)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-265",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-03T08:47:25.835Z",
"error_message": "Function not marked async",
"file": "src/controller/ha.c",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-266",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-03T08:47:54.376Z",
"error_message": "Function not marked async",
"file": "src/controller/ha.h",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-269",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-03T08:50:58.837Z",
"error_message": "Wrong reference: test_am_i_primary should be test_ha_cluster",
"file": "src/controller/testsuite/controller_test.c",
"root_cause": "Used \"test_am_i_primary\" instead of \"test_ha_cluster\"",
"fix": "Changed test_am_i_primary \u2192 test_ha_cluster",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-279",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-04T11:54:56.114Z",
"error_message": "Incorrect value in code",
"file": ".kiro/specs/ha-repl-hardening/design.md",
"root_cause": "Had `(checkpoint_lsn, last_received_chunk)`",
"fix": "Changed to `snap.part`",
"tags": [
"auto-detected",
"wrong-value",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-284",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-04T14:33:03.464Z",
"error_message": "Missing error handling in XCE_TESTING",
"file": "src/controller/testsuite/test_config_repl.c",
"root_cause": "Code path had no error handling \u2014 exceptions would propagate uncaught",
"fix": "Added try/catch block | Also: /* \u2500\u2500 Task 2.1: OPCode_walCatchupEntry handler \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500; #ifdef XCE_TESTING | Also: /* Task 2.1: OPCode_walCatchupEntry handler */; RUN_TEST(test_wal_catchup_entry_advances_applied_lsn);",
"tags": [
"auto-detected",
"error-handling",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 3,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-285",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-04T14:41:35.073Z",
"error_message": "Missing error handling in XCE_TESTING",
"file": "src/controller/cluster.c",
"root_cause": "Code path had no error handling \u2014 exceptions would propagate uncaught",
"fix": "Added try/catch block | Also: case OPCode_walCatchupEntry:; /* Task 2.1: standby applies a single WAL catch-up entry fro",
"tags": [
"auto-detected",
"error-handling",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-288",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-04T14:46:44.652Z",
"error_message": "Missing error handling in unknown",
"file": "src/controller/ha.h",
"root_cause": "Code path had no error handling \u2014 exceptions would propagate uncaught",
"fix": "Added try/catch block | Also: #include \"persist.h\" /* persist_t, apply_wal_entry */; #include \"typemap.h\" /* wal_catchup_entry_t */",
"tags": [
"auto-detected",
"error-handling",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-292",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-04T16:15:43.743Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: peer_idx < 0 || peer_idx >= MAX_HA_CANDIDATES",
"fix": "Added guard clause: if (peer_idx < 0 || peer_idx >= MAX_HA_CANDI)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-294",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-04T16:45:25.724Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: standby_tag < committed_tag",
"fix": "Added guard clause: if (standby_tag < committed_tag)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-295",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-04T16:57:59.213Z",
"error_message": "Incorrect value in code",
"file": "src/controller/testsuite/test_ha_role.c",
"root_cause": "Had \"test_evaluate_repl_action_stream_wal_from_zero: P",
"fix": "Changed to \"test_evaluate_repl_action_send_snapshot_lsn_zero:",
"tags": [
"auto-detected",
"wrong-value",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-296",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-04T16:58:16.627Z",
"error_message": "Wrong reference: test_evaluate_repl_action_stream_wal_from_zero should be test_evaluate_repl_action_send_snapshot_lsn_zero",
"file": "src/controller/testsuite/test_ha_role.c",
"root_cause": "Used \"test_evaluate_repl_action_stream_wal_from_zero\" instead of \"test_evaluate_repl_action_send_snapshot_lsn_zero\"",
"fix": "Changed test_evaluate_repl_action_stream_wal_from_zero \u2192 test_evaluate_repl_action_send_snapshot_lsn_zero",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-297",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-04T17:08:18.571Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: !ha || peer_idx < 0 || peer_idx >= MAX_HA_CANDIDATES",
"fix": "Added guard clause: if (!ha || peer_idx < 0 || peer_idx >= MAX_H)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-301",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-04T23:09:43.701Z",
"error_message": "Missing guard clause",
"file": "src/controller/testsuite/test_config_repl.c",
"root_cause": "No early return/throw for edge case: g_snaptest_chunk_count >= 16",
"fix": "Added guard clause: if (g_snaptest_chunk_count >= 16)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-302",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-04T23:10:44.426Z",
"error_message": "Missing guard clause",
"file": "src/controller/config_repl.c",
"root_cause": "No early return/throw for edge case: !snap_dir",
"fix": "Added guard clause: if (!snap_dir)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-308",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-05T01:19:20.356Z",
"error_message": "Missing guard clause",
"file": "src/controller/config_repl.c",
"root_cause": "No early return/throw for edge case: !d",
"fix": "Added guard clause: if (!d)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-309",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-05T01:33:20.146Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: !ha || !p || !snap_dir || !chunk",
"fix": "Added guard clause: if (!ha || !p || !snap_dir || !chunk)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-310",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-05T01:34:06.660Z",
"error_message": "Missing guard clause",
"file": "src/controller/cluster.c",
"root_cause": "No early return/throw for edge case: !chunk",
"fix": "Added guard clause: if (!chunk)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-311",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-05T02:21:15.033Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: ua > ub",
"fix": "Added guard clause: if (ua > ub)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-312",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-05T02:47:32.237Z",
"error_message": "Wrong reference: uintptr_t should be void",
"file": "src/controller/testsuite/test_ha_evaluate_committing.c",
"root_cause": "Used \"uintptr_t\" instead of \"void\"",
"fix": "Changed uintptr_t \u2192 void",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-314",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-05T04:01:58.721Z",
"error_message": "Missing guard clause",
"file": "src/controller/ha.c",
"root_cause": "No early return/throw for edge case: !ha",
"fix": "Added guard clause: if (!ha)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-315",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-05T04:52:32.206Z",
"error_message": "Wrong reference: 10000 should be 60000",
"file": "src/controller/ha.h",
"root_cause": "Used \"10000\" instead of \"60000\"",
"fix": "Changed 10000 \u2192 60000",
"tags": [
"auto-detected",
"wrong-reference",
"h",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 2,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-317",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-05T04:53:55.034Z",
"error_message": "Wrong reference: 10000 should be HA_DEFAULT_COMMITTING_TIMEOUT_MS",
"file": "src/controller/testsuite/test_ha_evaluate_committing.c",
"root_cause": "Used \"10000\" instead of \"HA_DEFAULT_COMMITTING_TIMEOUT_MS\"",
"fix": "Changed 10000 \u2192 HA_DEFAULT_COMMITTING_TIMEOUT_MS",
"tags": [
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-320",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-05T06:50:00Z",
"error_message": "3-node startup: majority convergence never fires; cluster falls through to committing_timeout degraded-mode WARN",
"file": "src/controller/ha.c",
"root_cause": "ha->n_peers was set to candidates_count (3, total including self) in ha_start_election_async. ha_check_majority_convergence loops i=0..n_peers-1 checking standby_converged[], but standby_converged[] is indexed by votes_idx (relative, self excluded: 0..n_other-1). With n_peers=3, it checked standby_converged[2] which is never set, so n_converged (2) < n_peers (3) always \u2014 majority convergence path could never succeed.",
"fix": "Changed ha->n_peers = n_peers to ha->n_peers = n_other (= n_peers-1 = other-node count). Moved the assignment after n_other is computed. ha_repl_ack_received quorum formula (ha->n_peers+2)/2 still yields correct majority for both old and new value.",
"tags": [
"ha",
"majority-convergence",
"n_peers",
"off-by-one",
"integration-test",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-326",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-06T11:06:46.509Z",
"error_message": "Wrong reference: DEBUG2 should be INFO",
"file": "src/controller/ha.c",
"root_cause": "Used \"DEBUG2\" instead of \"INFO\"",
"fix": "Changed DEBUG2 \u2192 INFO",
"tags": [
"auto-detected",
"wrong-reference",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-327",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-06T12:11:21.422Z",
"error_message": "Incorrect value in code",
"file": "src/controller/ha.c",
"root_cause": "Had \"HA: heartbeat tick (role=%d, n_standbys=%d)\"",
"fix": "Changed to \"HA: primary heartbeat armed\"",
"tags": [
"auto-detected",
"wrong-value",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-328",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-06T13:02:49.052Z",
"error_message": "Missing guard clause",
"file": "src/lib/delay.c",
"root_cause": "No early return/throw for edge case: t1_is_ms && t2_is_ms",
"fix": "Added guard clause: if (t1_is_ms && t2_is_ms)",
"tags": [
"auto-detected",
"guard-clause",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-329",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-08T13:12:54.436Z",
"error_message": "Function not marked async",
"file": ".kiro/specs/raft-library/research.md",
"root_cause": "Function uses await but wasn't declared async",
"fix": "Added async modifier",
"tags": [
"auto-detected",
"async-fix",
"md",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-334",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-09T12:56:11.095Z",
"error_message": "Wrong condition in logic",
"file": "src/controller/ha.c",
"root_cause": "Condition was: if (my_role == CTRL_STANDBY && ha_heartbeat_is_fresh(h)",
"fix": "Changed to: if (my_role == CTRL_STANDBY && ha->primary_ctrl_fd >= )",
"tags": [
"auto-detected",
"logic-fix",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-335",
"status": "fixed",
"status_updated": "2026-09-24",
"timestamp": "2026-06-09T00:00:00Z",
"error_message": "UPDATE_RESVALS dequeue writes worker resval at index 0 unconditionally instead of resolving resource idx by name",
"file": "src/scheduler/src/scheduler.c",
"root_cause": "zarray_put(&w->resvals, 0, rv->val) hardcodes index 0; worker resvals are indexed by resource idx (see schedobj.c:291)",
"fix": "FIXED 2026-06-10: UPDATE_RESVALS now resolves rv->name via key_find on sched->resmgr and writes to r->idx (matching UPDATE_RESVALS_FULL pattern) instead of hardcoding index 0.",
"tags": [
"scheduler",
"resvals",
"latent-bug",
"gap-analysis",
"c",
"fixed",
"closed-by-scheduler-sim-live-allocation"
],
"related_bugs": [],
"occurrences": 1,
"last_seen": "2026-09-19T09:00:00Z"
},
{
"id": "bug-336",