Problem
The current duplicate-code gate did not catch a UI renderer path that repeated exception details already present in the user-facing exception message.
This is expected for the current gate because it detects similar source-code blocks, not semantic repetition in rendered output. There is also a confusing mismatch between the duplicate-code threshold documented in pyproject.toml and the stricter threshold used by the pre-push hook.
Expected behavior
The harness and related documentation should make it clear what duplicate checks do and do not cover. Repeated user-facing facts in error rendering should be caught by an appropriate review or validation path before they land.
Definition of Done
Problem
The current duplicate-code gate did not catch a UI renderer path that repeated exception details already present in the user-facing exception message.
This is expected for the current gate because it detects similar source-code blocks, not semantic repetition in rendered output. There is also a confusing mismatch between the duplicate-code threshold documented in
pyproject.tomland the stricter threshold used by the pre-push hook.Expected behavior
The harness and related documentation should make it clear what duplicate checks do and do not cover. Repeated user-facing facts in error rendering should be caught by an appropriate review or validation path before they land.
Definition of Done