|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to this project will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), |
| 6 | +and this project adheres to [Semantic Versioning](https://semver.org/) once |
| 7 | +it reaches 1.0. Pre-1.0 releases may break compatibility. |
| 8 | + |
| 9 | +## [Unreleased] |
| 10 | + |
| 11 | +### Added |
| 12 | + |
| 13 | +- **Wire-level HMAC-SHA256** (`Frame.encode(wire_secret=...)` / `decode(...)`): |
| 14 | + optional 16-byte truncated signature appended to every frame. Both Bridge |
| 15 | + and device must agree; no in-band downgrade marker by design. |
| 16 | +- **Self-contained SHA-256 + HMAC-SHA256** in the ESP32 firmware |
| 17 | + (`DCPCrypto.h`/`.cpp`) — no mbedtls/ESP-IDF dependency, ~1 KB of code. |
| 18 | +- **DCPBle**: ESP32 BLE peripheral via NimBLE-Arduino. Same intent table as |
| 19 | + `DCP`; one service, c2d/d2c characteristics derived from service UUID by |
| 20 | + convention (`0xC1` / `0xD1` last byte). |
| 21 | +- **Conformance suite**: `tests/conformance/golden_frames.yaml` + Python |
| 22 | + runner. Language-neutral; ports can write equivalent runners. |
| 23 | +- **Codegen `--stubs`**: emits handler-function signatures and a |
| 24 | + `DCP_BINDINGS[]` table so the firmware author only writes business logic. |
| 25 | +- **Quickstart video script** at `docs/QUICKSTART_VIDEO.md`. |
| 26 | + |
| 27 | +### Changed |
| 28 | + |
| 29 | +- `Bridge` constructor takes `wire_secret=` for per-frame signing. |
| 30 | + |
| 31 | +## [0.2.0] - 2026-05-12 |
| 32 | + |
| 33 | +### Added |
| 34 | + |
| 35 | +- **HMAC-SHA256 capability tokens** (`dcp.tokens`): mint, verify, expiry. |
| 36 | + Bridge accepts `token=` + `secret=` at construction and enforces capabilities |
| 37 | + from the token on every call. |
| 38 | +- **MQTT transport** (`dcp.transports.mqtt`): `dcp/{prefix}/{c2d,d2c}` topic |
| 39 | + convention, QoS 1, paho-mqtt 2.x callback API. |
| 40 | +- **BLE GATT transport** (`dcp.transports.ble`): one service, c2d/d2c |
| 41 | + characteristics derived from service UUID by convention. |
| 42 | +- **YAML → C header codegen** (`dcp codegen`): generates intent IDs, event |
| 43 | + IDs, capability constants, and a manifest hash. |
| 44 | +- **Compile-time `DCP_ID(name)` macro** in firmware (C++14 constexpr CRC-16), |
| 45 | + removing the runtime `intent_id()` call from `setup()`. |
| 46 | +- **CLI subcommands**: `dcp codegen`, `dcp token mint`, `dcp token keygen`. |
| 47 | +- **CLI flags on `dcp serve`**: `--mqtt HOST[:PORT]`, `--mqtt-prefix`, |
| 48 | + `--ble ADDRESS`, `--ble-service UUID`. |
| 49 | +- Smarter `GenericSimulator`: read intents named `read_X` / `get_X` return |
| 50 | + the last value written by `set_X`. |
| 51 | + |
| 52 | +### Changed |
| 53 | + |
| 54 | +- `Bridge` constructor now optionally takes `token=` and `secret=`. |
| 55 | +- README quickstart updated to install all extras by default. |
| 56 | + |
| 57 | +## [0.1.0] - 2026-05-12 |
| 58 | + |
| 59 | +### Added |
| 60 | + |
| 61 | +- Wire format: 6-byte header + CBOR payload, CRC-16/CCITT intent IDs. |
| 62 | +- Manifest parser (YAML → dataclasses) with units, ranges, capability strings. |
| 63 | +- Safety layer: range checks, type coercion, capability gating. |
| 64 | +- Bridge orchestrator with async call/reply, event subscription, dry-run. |
| 65 | +- Transports: `LoopbackTransport` (in-memory), `UartTransport` (COBS + CRC-16 |
| 66 | + over pyserial-asyncio). |
| 67 | +- `GenericSimulator` for hardware-free demos. |
| 68 | +- MCP server wrapper (`dcp serve --simulator | --serial`) exposing each |
| 69 | + intent as an MCP tool. |
| 70 | +- `dcp` CLI with `serve` and `inspect` subcommands. |
| 71 | +- ESP32 reference firmware (Arduino-compatible C++): tiny CBOR subset, COBS |
| 72 | + framing, CRC-16, intent dispatch, dry-run support. Target <16 KB flash. |
| 73 | +- Smart-lamp example: manifest, Python demo, ESP32 sketch. |
| 74 | +- Design rationale doc (`docs/RATIONALE.md`) covering MCP / WoT / Matter / |
| 75 | + Sparkplug B / OpenAPI comparisons. |
| 76 | +- GitHub Actions CI: Linux + Windows × Python 3.11–3.13, pytest + ruff. |
| 77 | + |
| 78 | +[Unreleased]: https://github.com/device-context-protocol/dcp/compare/v0.2.0...HEAD |
| 79 | +[0.2.0]: https://github.com/device-context-protocol/dcp/releases/tag/v0.2.0 |
| 80 | +[0.1.0]: https://github.com/device-context-protocol/dcp/releases/tag/v0.1.0 |
0 commit comments