Publish gated tracker changes without pending changelog churn
Fixes #295
Problem
Gated sync and closeout included a regenerated root CHANGELOG.md in tracker proposals. In a disposable Git repository with two sibling proposals, the old sync candidate conflicted as soon as the first sibling landed. Nine of the cited fleet sync PRs carried the same root file.
Behavior
Both workflows probe the caller's installed pm-changelog --help for --check-pending. Omission selects automatic handling. With pending-aware pm-changelog, the default hook is empty and the proposal contains tracker files and declared artifacts. Older or unavailable launchers retain automatic changelog:full generation and emit one compatibility notice naming 2026.11.28. The internal @auto default preserves an explicit empty input.
Named scripts and their npm lifecycle hooks still run verbatim. An explicit changelog:full receives a deprecation notice for changelog-only use. Pending mode restores hook-generated root changelog output before the read-only caller check and final gate. Release generation still writes the complete file.
The two workflow contracts, caller templates, README, and migration guide describe the policy. Workflow regressions exercise the staging scope, exact artifact commit, failing caller checks, and Git merge behavior.
Verification
- Typecheck, test typecheck, lint, identity inventory, and
changelog:checkpassed after fetching tags and regenerating. The final commit passed privacy in an isolated object store. - Local affected-file coverage was 1,025 tests. The broad run reported 992/996, including all 186 closeout decisions. Two setup-artifact controls passed on the final helper and the isolated privacy run passed 26/26, including the two cases affected by unreachable objects in the shared store. Two additional workflow-reference files passed 29/29.
- The focused suite passed 11/11 with npm-installed tarballs and 11/11 with Bun-installed tarballs. Both used published pm-changelog 2026.11.24 and the packed main build at
a05b3c22b29a130db2ddb379711abb44292482cc(package version 2026.11.27). The offline sibling fixture and scope controls passed 3/3. - The revert runs reproduced the sibling changelog conflict, missing deprecation, stale migration documentation, failed legacy generation, skipped explicit lifecycle hooks, and inadmissible changelog or artifact staging. The three runs failed 4/4, 5/5, and 2/2 for their expected reasons. Fixed controls passed.
Downstream rollout
The existing caller pins in pm-beads, pm-presets, pm-brief, pm-web, pm-ops, pm-glossary, pm-vcs, pm-swarm, and pm-slack-standup need a separate rollout. In pm-vcs, the current workflow script stages changelog output before generating a bundle that verifies against the committed changelog. That script needs to use the committed changelog when it adopts tracker-only publication. Caller rollout #300
The independent strict check wrappers in pm-ops, pm-slack, pm-gantt-chart, and pm-review are covered by pm-changelog#385.
Summary by cubic
Stops gated sync and closeout workflows from committing a regenerated root CHANGELOG.md, which made sibling proposals conflict on the same ## Unreleased hunk.
- Sync and closeout now probe the caller's installed
pm-changelogfor--check-pending(2026.11.28+). When present, the defaultpost-import-script/post-closeout-scriptinput is@auto, so proposals contain only tracker files and declared artifacts. - Omitted script input keeps automatic
changelog:fullgeneration for legacy launchers and emits one compatibility notice named 2026.11.28. - Explicit caller scripts and their npm lifecycle hooks still run verbatim; an explicit
changelog:fullfor changelog-only use receives a deprecation notice. - Caller templates, README, migration guidance, and workflow regression tests are updated. Caller rollout is tracked in #300;
pm-vcsmust adopt the committed changelog when it repins.