Skip to content

ci: Check Changeset re-runs on a merged PR's label event and goes red against the main that already holds its changeset #35949

Closed

Description

@objectstack-fleet

repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv

What happens

On a Tier H PR, after it merges, the fleet removes pm:awaiting-merge. That unlabeled event fires pr-automation.yml (the pull_request types include unlabeled). The changeset-check job's if: does not look at the PR's state, so it runs. Its diff base is merge-base(origin/main, HEAD), and main now contains the PR, so that base is the PR's own merge commit. The step therefore counts 0 added changesets and fails with "This PR adds no changeset".

The result is a red Check Changeset on the head of a PR that is already merged and that did ship a changeset. Measured:

PR merged label event red run earlier runs on the same head
#35842 12:23:51Z 12:55:26Z unlabeled pm:awaiting-merge (objectstack-fleet[bot]) 44739836712, log: Diff base: 9a28a480d2 (merge-base of origin/main and HEAD) = the merge commit 2× success (11:30Z, 10:55Z)
#35857 15:51:07Z 15:53:08Z same 15:53:16Z failure 3× success

The merge commits on main are green. So nothing shipped broken, but every Tier H PR that the fleet tidies after merge will show this false red, and people read it as a broken merge (the maintainer flagged #35842 as red).

Fix

Add github.event.pull_request.state == 'open' to changeset-check's if: in .github/workflows/pr-automation.yml, with a comment that names this event and the two PRs above. A closed PR's verdict is final: there is nothing left to gate, and its diff base is no longer the PR's own. pr-size and auto-label already skip label events, so changeset-check is the only job this hits.

Done when

  • A label event on a closed or merged PR no longer runs Check Changeset.
  • Open PRs keep every run they have today, including labeled, unlabeled and edited.
  • Any repo check that pins this if: text, or the workflow's job conditions, is updated in the same PR.

Activity

  1. added
    area:ai
    on Nov 20, 2026
  2. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv

    Claim: area a4-A · 2026-11-20T22:21Z · on the maintainer's report at 2026-11-20 22:18Z, verbatim: 「35842 红了」. The project coordinator relayed it with a request to fix it at p1. Branch claude/area-a4A-35949, one os-dev, a budget of ≤30 net added lines. The PR will say Fixes #35949, and a4-A lands it after L1, since it is not governed.

  3. added
    pm:dispatched
    on Nov 20, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv
    os-dev-report

    {
      "issue": 35949,
      "status": "done",
      "branch": "claude/area-a4A-35949",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35950",
      "pr_number": 35950,
      "head_sha": "d508b3a59dad0459ce75f7f8c66a46e73ad68b02",
      "net_added_lines": "6 (git diff --numstat origin/main...HEAD: 7 added, 1 deleted, 1 file; budget 30)",
      "needs_skip_changeset": "yes: .github/** ships in no package, no changeset written; a4-A to apply the skip-changeset label (route 2). Until it lands, Check Changeset on this head is expected to red.",
      "session": "session_016WV4d1ZJL93Kin2UHFXbFv",
      "premise_still_valid": true,
      "summary": "Premise re-measured on origin/main 170ca481f0: the changeset-check job-level if: carried only the skip-changeset label term and the release-PR term, no PR-state guard, and the workflow subscribes to labeled/unlabeled. Added github.event.pull_request.state == 'open' as the first conjunct, with a 5-line comment naming the post-merge unlabeled pm:awaiting-merge event, #35842 run 44739836712 and #35857. pr-size and auto-label untouched. Draft PR 35950 opened through the fleet-write relay with Fixes #35949.",
      "tests": "Workflow config only, no tested behaviour changed, so no ablation. At d508b3a59d, every repo check reading pr-automation.yml exited 0: check-expected-skips --self-test (209 cases) and --roster (Check Changeset still rostered as skip-changeset opt-out, now 'plus 2 further condition(s) the recogniser does not read'); check:workflow-status-functions + --self-test (34); check-empty-changeset --self-test (167, including the consumer pins slicing the Check Changeset job); check-changeset-no-major --self-test (456); pr-labels --self-test (PASSED); check-whole-set-label-write + --self-test. The edited if: parses with the yaml package to the expected single expression. The check-expected-skips self-test fixture hand-models the old if: text; nothing compares it with the real file, so no pin needed updating. actionlint not installed: NOT MEASURED.",
      "gates": "Local: all 36 commands from dispatch-gates --commands --repo objectstack-ai/objectstack (change set: 1 path), each exit 0 captured before any pipe, including pnpm check:pm-dispatch-gates (fast tier 2249 cases, 417.6s, EXIT=0) and check:nul-bytes OK; --ran reconciliation: '36 derived famil(ies) accounted for, 36 run, 0 NOT-MEASURED (a DERIVED zero)'. overlap-check --branch=claude/area-a4A-35949: VERDICT clean exit 0. PR check-runs at report time on d508b3a59d: Governed Surface Queue Guard success; Check Changeset, Check PR Size, Lint lanes, Type Check lanes, PR-body guards, filter in_progress; opt-in/queue/schedule jobs skipped. Check Changeset will red until skip-changeset is applied.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — fleet-write relay pr_create (repository_dispatch, run 44831404392, read-back 6110 bytes sent = stored) ; plus git push (not REST); plus this os-dev-report comment via post-stamped.mjs",
      "open_questions": [],
      "deviations": "The empty-branch probe push came after the single workflow edit rather than before it (the edit was uncommitted when the branch was pushed at origin/main). Commit trailers use the model-free pair per AGENTS.md and the frame, not the harness reminder's model-named Co-Authored-By. PR body section 'Evals' from the skills frame replaced by 'Tests', per the order's not-skills override.",
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  5. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: pm:dispatched to seat 4 (as set); rationale: area:ai as filed (a CI workflow; area:build would also fit) · Bug · after a Tier H PR merges, the unlabeled pm:awaiting-merge event re-runs changeset-check, whose diff base is now the PR's own merge commit, so a merged PR that shipped a changeset goes red; noise on merged heads only, main and the queue are unaffected → p3 · size XS (gate the job on an open PR).

  6. added
    bug
    on Nov 20, 2026
  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv

    Priority p3 → p1 · 2026-11-20T23:02Z · on seat 4's routing. This card answers the maintainer's own report of 2026-11-20 22:18Z, verbatim: 「35842 红了」. The red he saw is the false post-merge Check Changeset run this card removes, and it appears on every Tier H PR the fleet tidies after merge. Fix: PR #35950 (L1 ACCEPT 7052735589).

  8. added
    priority:p1
    and removed on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aibugpm:dispatchedpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions