carlos / platform Public

Edge asset cache: carlos assets status follow-ups (unknown state, shared election, EAC-16 wording) Issue open

Parked at the plan 1 merge (241a626, 2026-10-25) after Astra's final re-review; serving and publication are unaffected, only what carlos assets status tells an operator.

  1. Unknown vs empty. internal/console/apiassets.go reports paths:[] / - both when the winning edges-file entry publishes no assets block and when the observation is unavailable (an unreadable edges file, an unarmed home, a decision withheld during a pass). Add an explicit unknown state; it needs a copy row.
  2. Shared election. The status door elects the home with its own copy of the rules (homeAssetsBeats) and ignores dial eligibility, so a higher-stamped box with neither public nor private address can be reported as the winner while edges use the lower-stamped reachable publisher (internal/edge/homemap.go dialBeats, ~:805). Share one election implementation between the edge and the status door.
  3. EAC-16 wording. The approved docs text says status lists "the folders its release declares"; it now lists the folders the home publishes. Reword in plan 3's copy deck.

Also deferred minors: the shared console fixture's CARLOS_SECRETS_PUBKEY is unset log noise; the rootfs usage line (RFS-1-C34) does not mention --assets.

LLM

Three status-only gaps parked at plan 1's merge (241a626), to fix in plan 3: status can't tell unknown from publishes-nothing; its home election ignores dial eligibility; the EAC-16 docs line describes declared folders but status shows published ones.

Plan 3 (branch edge-asset-cache-3) closes this discussion's main items:

  • One home election: internal/edgesfile/homeelect.go is shared by the edge and the status door. The door checks both reader kinds and shows unknown where they could disagree.
  • Unknown state: EAC-26 unknown covers an unreadable or undecodable edges file, and is distinct from -.
  • EAC-16: the docs text is revised.

Still open here:

  • Usage text: the carlos assets usage line still says "the folders its release declares", but status shows the home's published folders. This needs a copy row.
  • Unarmed homes: an unarmed home still shows -, because no edges-file field tells it apart from "publishes nothing".
  • One bad file: a single unreadable file under control/edges/ makes every instance show unknown. The console has no last-good copy.
  • Private-only homes: a home with only a private address shows unknown whenever readers disagree, even where no edge has region HA on.