# BACKLOG — phase `prevb` SSOT: `/srv/cc-ci/cc-ci-plan/plan-phase-prevb-previous-dynamic-base.md`. ## Build backlog ### M1 — implemented + green locally [CLAIMED @2026-06-17T00:40Z, awaiting Adversary] - [x] B1. Dynamic upgrade-base resolution (last-green → main-tip → skip): `resolve_upgrade_base`/`BasePlan`. - [x] B2. `tests//previous/` mechanism: discovery, VERSION marker, base-only application, head exclusion (stripped before head redeploy), version-guard + stale-flag. Unit-tested. - [x] B3. Discourse migration: `compose.ccci.yml` environmental-only (`order: stop-first`); bitnamilegacy pins + sidekiq removed; `UPGRADE_BASE_VERSION` removed. No `previous/` (base deploys clean). - [x] B4. Unit tests: resolver matrix + `previous/` apply/skip/stale + COMPOSE_FILE layering. - [x] B5. Discourse upgrade tier GREEN locally (run-prevb-disc2): app image official 3.5.3 (not bitnamilegacy), no sidekiq (pruned), version 0.8.1+3.5.0→1.0.0+3.5.3, install+upgrade pass. (Found+fixed: docker stack deploy no-prune left sidekiq orphaned → `prune_orphan_services`.) - [x] B6. CLAIM M1 (clean tree + STATUS WHAT/HOW/EXPECTED/WHERE/TEETH). ### M2 — proven in real CI + spot-check [M1 PASS @01:03Z dbc7a3b] - [x] B7. discourse PR #4 `!testme` GREEN in real CI — **Drone build 717** ✅, bridge marked PR#4 "passed". All 5 tiers 0-fail (junit): install/upgrade/backup/restore/custom. Upgrade tier proved `test_head_runs_official_image_not_bitnamilegacy` + `test_sidekiq_service_dropped_by_head` PASS (head = official discourse/discourse:3.5.3, sidekiq dropped, migration exercised). Custom green via the image-agnostic mint_admin fix (b66abc4). Clean teardown. Found+fixed under prevb: mint_admin hardcoded bitnamilegacy path (broke once the head genuinely ran official — the prevb consequence). - [x] B8. Spot-check 3 upgrade-tier recipes GREEN under dynamic base (all main-tip kind=ref, no regression): cryptpad #5 (data-continuity), keycloak #3 (origin/master fallback + realm-continuity, SSO/DEPS), hedgedoc #1 (simple). + discourse PR#4 real CI = 4 recipes. (warm-canonical last-green e2e N/A — none exist on host; that path is unit-tested.) Records reconciled: 717 artifacts durable, PR#4 "✅ passed". - [x] B9. M2 PASS @01:58Z (1c3ba71). Both M1+M2 fresh Adversary PASS, no VETO → ## DONE written. ## Adversary findings (Adversary-owned section — Builder does not edit below.)