Skip to content

Normalized the AI disclosure comment and added a check that keeps it so - #762

Open
fdesbiens wants to merge 2 commits into
eclipse-threadx:devfrom
fdesbiens:chore/normalize-ai-disclosure
Open

fdesbiens wants to merge 2 commits into
eclipse-threadx:devfrom
fdesbiens:chore/normalize-ai-disclosure

Conversation

@fdesbiens

@fdesbiens fdesbiens commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

The repository-wide pass covered source files only, so build files, CMake toolchain files, shell scripts and the GDB and manifest files kept the older per-edit form of the disclosure comment, which names a product and a model version. The Cortex-R52 module manager port then merged after that pass and brought the old form back into the sources as well.

Replaced it with the fixed text in all of them, using the comment character each file already uses.

Comment-only. 143 files, one line each. The repository now holds 601 files carrying exactly one disclosure line, none carrying the old form, and none carrying more than one.

Assisted-by: Claude Code (Opus 5) noreply@anthropic.com

The repository-wide pass covered source files only, so build files, CMake
toolchain files, shell scripts and the GDB and manifest files kept the older
per-edit form of the disclosure comment, which names a product and a model
version. The Cortex-R52 module manager port then merged after that pass and
brought the old form back into the sources as well.

Replaced it with the fixed text in all of them, using the comment character
each file already uses.

Comment-only. 143 files, one line each. The repository now holds 601 files
carrying exactly one disclosure line, none carrying the old form, and none
carrying more than one.

Assisted-by: Claude Code (Opus 5) <noreply@anthropic.com>
@fdesbiens
fdesbiens force-pushed the chore/normalize-ai-disclosure branch from 9f76610 to aabbfb3 Compare September 22, 2026 20:22
@fdesbiens fdesbiens changed the title Normalized the AI disclosure line in the Cortex-R52 module manager port Normalized the AI disclosure line across every tracked file type Sep 22, 2026
…d form

Nothing enforced the disclosure convention, so the drift it exists to prevent
returned twice: once when a port merged after the normalisation pass carrying
the older per-edit form, and once because that pass had covered source files
only, leaving build files and scripts untouched for months.

Added scripts/check_ai_disclosure.sh, which rejects the superseded per-edit
form, a doubled comment marker, more than one disclosure line in a file, and
any spelling of the line that is not exact. It runs from repo_checks.yml, a
workflow with no path filter, because a source-path filter is what hid the
build files the first time.

The check passes on this branch. Each of its four rules was confirmed to fail
on a tree with that defect reintroduced, and to pass once it was removed.

Assisted-by: Claude Code (Opus 5) <noreply@anthropic.com>
@fdesbiens fdesbiens changed the title Normalized the AI disclosure line across every tracked file type Normalized the AI disclosure comment and added a check that keeps it so Sep 22, 2026

This branch has not been deployed

No deployments
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