Skip to content

Bug: agent-memory-cobertura-dedup-generalization-wrong #532

Description

@drmoisan
  • Work Mode: minor-audit

Summary

Stored agent memory records an incorrect generalization about Cobertura root-attribute deduplication: the claim holds only for raw dotnet-coverage output, not for post-processed ConvertTo-KoverageCoberturaXml artifacts.

Environment

  • OS/version: Windows 11 Pro 10.0.26200
  • Python version: n/a (documentation defect)
  • Command/flags used: n/a
  • Data source or fixture: .claude/agent-memory/atomic-executor/project_coverage_delta_reproduce_baseline_counting_method.md:34-36

Steps to Reproduce

  1. Read .claude/agent-memory/atomic-executor/project_coverage_delta_reproduce_baseline_counting_method.md:34-36.
  2. Apply its stated rule to a post-processed ConvertTo-KoverageCoberturaXml artifact.
  3. Compare the resulting figure against the class-level rollup count.

Expected Behavior

The memory should state the distinction between raw generator output and post-processed artifacts explicitly, so a future agent does not skip a needed adjustment.

Actual Behavior

The memory asserts that the repository-wide root <coverage> attributes "are already deduped and match a per-package all-descendant sum in this repo, so repo-level figures need no adjustment." That is true only of raw dotnet-coverage output. It was false for any post-processed ConvertTo-KoverageCoberturaXml artifact, where (before #441 was fixed) the root attributes were the all-descendant sum - the very defect #441 corrects.

Logs / Screenshots

  • Attached minimal logs or snippet
  • Snippet: measured on the two committed samples -
    • raw coverage-baseline.cobertura.xml: class-level <line> count 79957 equals its own lines-valid="79957"; the all-descendant count is 161086.
    • post-processed coverage-final.cobertura.xml: the all-descendant count 110849 equals its emitted lines-valid="110849"; the class-level count is 62345.

Impact / Severity

  • Blocker
  • High
  • Medium
  • Low

A future agent following the memory verbatim could skip a needed adjustment when reading a post-processed artifact. No production code is affected.

Source

From: docs/features/potential/2026-08-10-agent-memory-cobertura-dedup-generalization-wrong.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions