发布

  • v1230 d4f0e12073

    cog-ha-matter (ADR-116): P4 ✅ — mDNS wired into main, broker deferred

    frostbyte_neo 发布于 2026-05-23 22:36:14 +00:00

    Two landings that flip P4 to shipped:

    1. main.rs now actually registers the mDNS responder. New CLI:
      --mdns-hostname (default: cog-ha-matter.local.)
      --mdns-ipv4 (default: 127.0.0.1)
      --no-mdns (skip for restrictive CI / multi-instance)

      Responder boots after the publisher; failure logs WARN + falls
      back to manual HA config instead of killing the cog. The
      handle's Drop sends the mDNS goodbye packet on shutdown so HA's
      discovery sees a clean service-leave (no stale device card).

    2. Embedded rumqttd broker DEFERRED to v0.7 per dossier §8 ranking.

      The dossier's prioritised v1 scope is:

      1. --privacy-mode audit-only
      2. cog manifest + Ed25519 signing + store listing
      3. local SONA fine-tuning loop
      4. HACS gold-tier integration
      5. Matter Bridge (v0.8)

      Embedded broker is not in that list. Every HA install already
      has mosquitto or HA Core's built-in broker — adding ~2 MB of
      binary + ACL config surface for marginal benefit didn't earn a
      v1 slot. Documented as row 6 of §4 v1 scope table with explicit
      v0.7 target.

    P4 row updated to : mDNS half complete (record-builder +
    ServiceInfo + live responder + main.rs wiring), witness half
    complete (chain + JSONL + file + Ed25519), embedded broker
    explicitly deferred with rationale citation to dossier §8.

    Stop-condition check:

    • dossier has "Recommended scope" section (§8, folded into
      ADR §4)
    • P2 (cog scaffold)
    • P3 (MQTT publisher wrap)
    • P4 (Seed-native enhancements)

    Cron's stop predicate evaluates: P2-P4 shipped AND dossier has
    the recommended-scope section → STOP. The loop should TaskStop
    itself after this iter unless the user wants P5 (RuVector
    thresholds), P8 (cog signing), or P9 (HACS repo) to keep going.

    64/64 tests green.

    Co-Authored-By: claude-flow ruv@ruv.net

    下载附件