Skip to content

SCA-343: make no-changelog-needed survive the merge boundary - #11797

Merged
Git-on-my-level merged 3 commits into
mainfrom
agent/m1-studio-cursor-grok-4-6/d66fbbd5
Aug 19, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
agent/m1-studio-cursor-grok-4-6/d66fbbd5

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes SCA-343.

The no-changelog-needed PR label greened the desktop changelog gate and then reddened main's Release Eligibility run, because push has no PR context. That is a trap: a green PR can poison a main SHA and block gcp_backend.yml deploys. Live instance: #11778. Same class as #11373 and #11039.

Approach taken: (2) + (3)

In-repo {"kind": "none"} fragment as the durable internal exemption, and reject the label as an exemption for production desktop paths.

  • A new unreleased fragment of {"kind": "none"} satisfies both the PR-run and the post-merge push-run. It lives in the diff, so both lanes see the same evidence.
  • --skip / no-changelog-needed no longer passes when the diff touches production desktop paths. The PR-run and push-run therefore agree on the SCA-335: remove dead focus_sessions writer and PTT transcript cleanup #11778 shape (both fail without a fragment; both pass with kind: none).
  • Leftover kind: none fragments do not satisfy release-lane --accept-tree-fragments. That lane still requires real user-facing notes for the next release.
  • Release consolidation ignores kind: none so it never becomes a user-facing changelog line.

Why the others were rejected

  1. Resolve the PR from the merge commit and read labels via the API. Closest to the old UI intent, but it adds a network dependency to a gate that is otherwise hermetic, and it must fail-closed on direct pushes and back-merges. A label would still be invisible to local make preflight / pre-push.
  2. Reject the label alone (no in-repo marker). Smallest diff, but it forces a dishonest user-facing note for genuinely internal production edits such as dead-code deletion. Combined with (2), authors have an honest, durable escape.

The invariant: a PR that is green on this gate cannot redden main on the same gate.

Product invariants affected

none

Failure class (fixes)

Failure-Class: new

Registers FC-changelog-exemption-lost-at-merge with a reusable guard: evaluate_changelog_requirement() plus the #11778 regression in .github/scripts/test_desktop_changelog.py. Evidence PRs: #11039, #11373, #11778.

Authors

Internal-only production desktop edits (for example dead-code deletion under Desktop/Sources/) now need:

{"kind": "none"}

under desktop/macos/changelog/unreleased/. The no-changelog-needed label is not an exemption. Documented in desktop/macos/AGENTS.md.

Test plan

  • python3 .github/scripts/test_desktop_changelog.py — 16 tests, including the SCA-335: remove dead focus_sessions writer and PTT transcript cleanup #11778 PR-vs-push agreement cases
  • python3 .github/scripts/desktop-changelog.py validate
  • python3 scripts/test_failure_class.py
  • scripts/pr-preflight --pr-body-file pr-body.md
  • Confirm CI desktop-changelog-io-tests and desktop-changelog-entry on this PR
  • Confirm a follow-up internal Sources edit without a fragment fails both the PR lane and a simulated push lane (--accept-tree-fragments)

Review in cubic

Git-on-my-level and others added 3 commits August 18, 2026 12:42
The PR label greened PRs and then reddened main because push runs
cannot see labels. Require an in-repo kind:none fragment for
internal production desktop edits so both lanes agree.

Failure-Class: FC-changelog-exemption-lost-at-merge
Co-authored-by: Cursor <[email protected]>
Co-authored-by: multica-agent <[email protected]>
…starts

A 0.5s sleep raced the second process on a loaded host, so the
overlap contract passed or failed by scheduling luck.

Co-authored-by: Cursor <[email protected]>
Co-authored-by: multica-agent <[email protected]>
…r attaches

The 0.5s sleep let both children finish before they overlapped, so
the counter recorded two executions on a loaded host.

Co-authored-by: Cursor <[email protected]>
Co-authored-by: multica-agent <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit 79a585b into main Aug 19, 2026
34 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/m1-studio-cursor-grok-4-6/d66fbbd5 branch August 19, 2026 04:27
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