Skip to content

fix(init): warn when mirror mode has no release fold-back - #1809

Merged
c-vigo merged 2 commits into
devfrom
bugfix/1758-mirror-fold-release-coupling
Oct 3, 2026
Merged

c-vigo merged 2 commits into
devfrom
bugfix/1758-mirror-fold-release-coupling

Conversation

@c-vigo

@c-vigo c-vigo commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Description

DEVKIT_SYNC_TARGET mirror mode only folds back into the trunk through the release train (#1424), which is rendered into release-core.yml. With release in DEVKIT_FEATURES_DISABLED, that file is pruned. The fold render's -f guard then skipped it without any output, so the mirror was never merged back and the trunk's docs/issues/ + docs/pull-requests/ froze at the switch with no marker (hit in tessera#362).

The scaffold now prints a notice for this combination. It does not abort: a release-less consumer can choose this as a deliberate interim setup, which matches the #1284 / #1431 notice precedent.

The docs also claimed that "each sync run regenerates full state", which made the permanent divergence look self-healing. The sync is incremental (it uses a watermark), and only a force-update dispatch rebuilds from scratch. See the issue comment and #1757.

Type of Change

  • fix -- Bug fix

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

Changelog Entry

Fixed

  • Mirror mode without a release feature froze the trunk's archive silently
    (#1758)
    • The DEVKIT_SYNC_TARGET mirror's only fold-back is the release train, so
      with release in DEVKIT_FEATURES_DISABLED it was never merged back and
      the trunk's docs/issues/ stopped updating, with no output. The scaffold
      now prints a notice for that combination (it still proceeds)
    • The .vig-os and migration docs no longer claim each sync regenerates full
      state: the sync is incremental, and only force-update rebuilds

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

TDD: the notice test was committed failing first (f36da62) and passes after the fix. Full BATS suite: 648/648 ok. prek run --all-files is green.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Out of scope: a fold-back that does not depend on releases (option 2 in the issue). It brings back the protected-branch problem that mirror mode exists to avoid. It should get its own issue if a release-less consumer needs one.

Refs: #1758

@c-vigo
c-vigo enabled auto-merge October 3, 2026 18:44
@c-vigo
c-vigo merged commit 5b821c4 into dev Oct 3, 2026
16 checks passed
@c-vigo
c-vigo deleted the bugfix/1758-mirror-fold-release-coupling branch October 3, 2026 18:46
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