name: mike-upstream-sync description: Entry point for updating MikeAzureDev from upstream Mike OSS. Points to the MikeMigrate orchestration (/mike-sync in ../MikeMigrate), and covers the dev-side conventions - batch branches, sync-log comments, numbered migrations, UPSTREAM_SYNC_LOG.md, and the post-merge checklist. Use when the user says "update from upstream", "sync from upstream", "drain the upstream backlog", or asks where sync work happens.
Updating from upstream (dev-side entry point)
Do not sync from this repo. The machinery lives in ../MikeMigrate
(guardian daemon + CLI + its own skills). Open a Claude session THERE and
run /mike-sync — it refreshes clones, plans the batch, cherry-picks
upstream commits (git cherry-pick -x, messages verbatim) onto a batch
branch in its own workspace clone, runs the test gate, and reports.
/mike-status shows backlog state; /mike-promote handles the later
dev → OSS-mirror step. The rulebook is
../MikeMigrate/docs/MIGRATION_KNOWLEDGE.md.
Conventions this repo relies on
- Syncs are ALWAYS branched:
upstream-sync/<source>-batch-<YYYYMMDD>, merged to main via PR (see #16, #21). Main stays releasable throughout — a customer hotfix can always be cut mid-sync. Never sync directly on main. - Migrations: dev uses numbered
0000–00NNfiles; upstream's date-based migrations andbackend/schema.sqlare NEVER adopted — schema deltas are re-authored as the next numbered migration. Every schema decision (applied or skipped, with reasoning) is appended to backend/migrations/UPSTREAM_SYNC_LOG.md (newest on top). - Divergence comments: where dev deliberately rejects an upstream
change, the rejection site carries an
// Upstream divergence (sync-log: <sha>): ...comment. Preserve these; they are how future syncs know a "missing" upstream change is a decision. - Whole-feature hard stop: if a required frontend/backend/schema/tool
counterpart is deferred, do not improvise the missing feature. Disable the
partial adoption, mark it
NOT SUPPORTED — counterpart deferred; keep dev during conflict resolution, and add a regression test. A later sync keeps dev at that marker unless its plan explicitly adopts the complete feature. - Fixes are separate commits (
fix(<short-sha>): ...) — cherry-picked commits are never amended; their(cherry picked from commit ...)trailers anchor the dev → OSS promotion step. - Batch narrative notes live at
../MikeMigrate/notes/upstream-sync/<batch>.md.
After the batch PR merges to main
- Run both suites +
tsc --noEmiton main once more (the batch gate ran on the branch; the merge itself is what ships). Triage per themike-test-maintenanceskill. - New upstream features with no coverage = coverage debt from the batch report — write those tests now, same patterns.
- Check new KV secrets / env vars the batch introduced: each one is an
image-only-upgrade landmine unless the backend self-seeds it (the
initDownloadSigningSecretpattern) — surface in the next release's upgrade guide (mike-release skill, Phase 0 step 6). - Note the new sync date — the marketplace "What's new" text states
"synced with upstream Mike as of
", and the next Tier B delivery to the OSS mirror should follow once the batch has soaked on mike.altien.com.