ื‘ืกืดื“

SPEC โ€” Worker ๐Ÿ Finder (Telegram BEE command + portal tile)

docs/WORKER_BEE_FINDER_SPEC.md ยท last changed (pre-VM history) ยท rendered from GitHub master

SPEC โ€” Worker ๐Ÿ Finder (Telegram BEE command + portal tile)

Owner lane: command-inbox / ops-api (the #042 session). Worker ๐Ÿ wrote this spec; the #042 session builds it. Paste-ready.
Goal: Sam, from his phone, can find the live Worker Bee session in one move โ€” no opening files, no transcript dig.
Created: 2026-06-12 by Worker ๐Ÿ (session ae81915d). Pairs with docs/WORKER_BEE.md (the beacon).

The one shared source of truth

A single ops-api KV key bee:beacon holding the current bee pointer as JSON:

{
  "session_id": "ae81915d-7da1-4eef-9646-86435c46ed3d",
  "cwd": "C:\\Users\\ztrei\\OneDrive\\2. Hook Street\\05. 2026 BH",
  "started": "2026-06-12T16:00:00Z",
  "last_active": "2026-06-12T16:54:00Z",
  "state": "LIVE โ€” building the finder",
  "next_action": "Sam picks phone-finder; bee wiring writer script",
  "resume_cmd": "claude --resume ae81915d-7da1-4eef-9646-86435c46ed3d"
}

Both the Telegram command and the portal tile read THIS. Never two sources.

3 pieces to build

1. Endpoint โ€” POST /bee/beacon (writer) + GET /bee/beacon (reader)

2. Telegram BEE command (command-inbox bot)

3. Portal tile (outputs/home.html, extend โ€” don't build a new page)

Machine-side writer (Worker Bee's lane โ€” scripts/bee.ps1)

The bee POSTs its pointer to /bee/beacon at session-open, at milestones, and before going dormant โ€” keeping KV current the same way docs/WORKER_BEE.md is kept current. Reads the endpoint+secret from the gitignored command-inbox/.claude-notify.json. (Bee writes this script once the endpoint contract is confirmed.)

Done =

Sam texts BEE from the car โ†’ gets the live session + resume command. Tile mirrors it. KV is the only source. No transcript archaeology, ever.

Source trail ยท docs/WORKER_BEE_FINDER_SPEC.md @ master ยท rendered 2026-07-02 7:23 PM EDT by scripts/build-docs.py ยท the .md in the repo is the truth; this page is the phone-readable view