|
| 1 | +# P8-T2: Prepare for Release 0.4.3 |
| 2 | + |
| 3 | +**Status:** In Progress |
| 4 | +**Date:** 2026-03-10 |
| 5 | +**Priority:** P0 |
| 6 | +**Dependencies:** P1-T13, P2-T8 (completed) |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +## Objective |
| 11 | + |
| 12 | +Prepare patch release `0.4.3` for the work merged after `v0.4.2`: |
| 13 | +- `P2-T8` hardened broker startup by gating `tools/list` on a warmed tool catalog and retrying the probe instead of exposing a transient empty catalog to clients. |
| 14 | +- `P1-T13` documented the editable-install version mismatch trap so local development setups can self-diagnose stale `.venv` metadata after a version bump. |
| 15 | + |
| 16 | +The deliverable is a merge-ready branch that updates release metadata, records release notes in `CHANGELOG.md`, passes the full pre-release quality gate suite, and leaves exact post-merge tag/publish commands for the human operator. |
| 17 | + |
| 18 | +**Scope boundary:** Creating and pushing the `v0.4.3` tag, publishing to PyPI, and publishing to the MCP Registry remain post-merge human actions on `main`. This task prepares the branch and validates the repository state before those actions. |
| 19 | + |
| 20 | +--- |
| 21 | + |
| 22 | +## Current State |
| 23 | + |
| 24 | +| Artifact | Current value | |
| 25 | +|----------|---------------| |
| 26 | +| `pyproject.toml` version | `0.4.2` | |
| 27 | +| `server.json` root version | `0.4.2` | |
| 28 | +| `server.json` package version | `0.4.2` | |
| 29 | +| `README.md` version badge | `v0.4.2` | |
| 30 | +| Latest git tag on current baseline | `v0.4.2` | |
| 31 | +| Unreleased merged work since `v0.4.2` | `P2-T8`, `P1-T13` | |
| 32 | + |
| 33 | +--- |
| 34 | + |
| 35 | +## Deliverables |
| 36 | + |
| 37 | +1. **`pyproject.toml`** — `[project].version` updated to `0.4.3`. |
| 38 | +2. **`server.json`** — root `version` and `packages[0].version` updated to `0.4.3`. |
| 39 | +3. **`README.md`** — version badge updated to `v0.4.3`. |
| 40 | +4. **`CHANGELOG.md`** — new `[0.4.3] - 2026-03-10` entry summarizing the shipped fixes/docs. |
| 41 | +5. **`SPECS/INPROGRESS/P8-T2_Validation_Report.md`** — records release metadata checks, quality gates, and post-merge publish instructions. |
| 42 | + |
| 43 | +--- |
| 44 | + |
| 45 | +## Implementation Steps |
| 46 | + |
| 47 | +### 1. Update release metadata |
| 48 | + |
| 49 | +Use the existing release helpers so version fields stay in sync: |
| 50 | + |
| 51 | +```bash |
| 52 | +make bump-version VERSION=0.4.3 |
| 53 | +make badge-version TAG=v0.4.3 |
| 54 | +``` |
| 55 | + |
| 56 | +This updates: |
| 57 | +- `pyproject.toml` |
| 58 | +- `server.json` |
| 59 | +- `README.md` version badge block |
| 60 | + |
| 61 | +### 2. Add release notes |
| 62 | + |
| 63 | +Update `CHANGELOG.md` with a new `0.4.3` entry that covers: |
| 64 | +- broker `tools/list` warm-catalog gating / retry behavior (`P2-T8`) |
| 65 | +- the editable-install troubleshooting addition (`P1-T13`) |
| 66 | + |
| 67 | +### 3. Run pre-release quality gates |
| 68 | + |
| 69 | +Run the full local validation suite required by FLOW, `CONTRIBUTING.md`, and this release workflow: |
| 70 | + |
| 71 | +```bash |
| 72 | +pytest tests/ -v --cov=src --cov-report=term |
| 73 | +python -m ruff check src/ tests/ |
| 74 | +python -m ruff format --check src/ tests/ |
| 75 | +mypy src/ |
| 76 | +make doccheck-all |
| 77 | +python -m build |
| 78 | +twine check dist/* |
| 79 | +``` |
| 80 | + |
| 81 | +### 4. Record release validation |
| 82 | + |
| 83 | +Write `SPECS/INPROGRESS/P8-T2_Validation_Report.md` with: |
| 84 | +- the exact versions now present in release metadata |
| 85 | +- changelog verification |
| 86 | +- quality gate outcomes |
| 87 | +- explicit post-merge steps for tagging and publish verification |
| 88 | + |
| 89 | +### 5. Post-merge operator steps |
| 90 | + |
| 91 | +These commands must be executed only after the PR merges into `main`: |
| 92 | + |
| 93 | +```bash |
| 94 | +git checkout main |
| 95 | +git pull origin main |
| 96 | +git tag v0.4.3 |
| 97 | +git push origin v0.4.3 |
| 98 | +``` |
| 99 | + |
| 100 | +Then verify: |
| 101 | +- GitHub Actions `publish-mcp.yml` succeeds for `v0.4.3` |
| 102 | +- PyPI serves `mcpbridge-wrapper==0.4.3` |
| 103 | +- the MCP Registry reflects `0.4.3` |
| 104 | + |
| 105 | +--- |
| 106 | + |
| 107 | +## Acceptance Criteria |
| 108 | + |
| 109 | +- [ ] `pyproject.toml` contains `version = "0.4.3"`. |
| 110 | +- [ ] `server.json` root `version` and `packages[0].version` both equal `0.4.3`. |
| 111 | +- [ ] `README.md` version badge reflects `v0.4.3`. |
| 112 | +- [ ] `CHANGELOG.md` contains `[0.4.3] - 2026-03-10` and summarizes `P2-T8` and `P1-T13`. |
| 113 | +- [ ] `pytest tests/ -v --cov=src --cov-report=term` passes with coverage ≥90%. |
| 114 | +- [ ] `python -m ruff check src/ tests/` passes. |
| 115 | +- [ ] `python -m ruff format --check src/ tests/` passes. |
| 116 | +- [ ] `mypy src/` passes. |
| 117 | +- [ ] `make doccheck-all` passes. |
| 118 | +- [ ] `python -m build` and `twine check dist/*` pass. |
| 119 | +- [ ] Validation report captures the exact post-merge commands and verification steps for `v0.4.3`. |
| 120 | + |
| 121 | +--- |
| 122 | + |
| 123 | +## Risk Notes |
| 124 | + |
| 125 | +- `main` is protected. Do not tag or publish from this feature branch; tag only after merge. |
| 126 | +- `make badge-version` must be called with explicit `TAG=v0.4.3` so it does not reuse `v0.4.2`. |
| 127 | +- If the local editable install was not refreshed after the version bump, local `mcpbridge-wrapper --version` output may lag until `pip install -e .` is rerun. This is documented by `P1-T13`. |
| 128 | + |
| 129 | +--- |
| 130 | +**Archived:** 2026-03-10 |
| 131 | +**Verdict:** PASS |
0 commit comments