Skip to content

Normalized the AI disclosure comment to one fixed line per file - #188

Merged
fdesbiens merged 1 commit into
eclipse-threadx:devfrom
fdesbiens:chore/normalize-ai-disclosure
Sep 15, 2026
Merged

fdesbiens merged 1 commit into
eclipse-threadx:devfrom
fdesbiens:chore/normalize-ai-disclosure

Conversation

@fdesbiens

Copy link
Copy Markdown
Contributor

The per-edit AI disclosure named the product and model, so every tool and every model version appended another line. Deduplication was by exact string match, which a version bump defeats, and the product spelling drifted too.

Every file now carries exactly one line, fixed text naming no product:

Portions of this file were generated with AI assistance.

written with the comment character that file already uses. Precise attribution moves to where it is already mandated and already accurate: the Assisted-by trailer, which is per-change, dated and attached to its diff. git log --format='%h %(trailers:key=Assisted-by,valueonly)' -- <path> answers "which tools touched this file" better than a header ever could, because the code a header names gets rewritten while the line stays.

70 files changed: 55 // in C and C++ sources, 15 # in scripts and workflows. Fourteen of them carried more than one line, which is where the extra 14 deletions come from.

Comment-only. Every removed line was a disclosure line, every added line is the fixed text, and no file is left with zero or more than one.

Three files are left alone deliberately: guix_studio/studiox.manifest and the two .vcxproj files are XML, where the convention has no comment form that fits.

The per-edit disclosure named the product and model, so every tool and every
model version appended another line rather than recognising the one already
there. Deduplication was by exact string, which a version bump defeats.
Fourteen files here carried more than one line.

Every file now carries exactly one line, fixed text naming no product:

    Portions of this file were generated with AI assistance.

written with the comment character that file already uses. Precise attribution
stays on the commit, where the Assisted-by trailer is dated and attached to the
diff it describes. A header line cannot keep that record honest, because the
code it names gets rewritten and the line stays.

Comment-only, 70 files: every removed line was a disclosure line, every added
line is the fixed text, and no file is left with zero or more than one.

Assisted-by: Claude Code (Opus 5) <noreply@anthropic.com>
@fdesbiens
fdesbiens merged commit ab87d54 into eclipse-threadx:dev Sep 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant