GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pm-stack notifications Phase 2 step 3: edge answer intake + heartbeat drain (#8569) · Issue #13469 · developing-today/code

pm-stack notifications Phase 2 step 3: edge answer intake + heartbeat drain (#8569) #13469

New issue
Copy link
New issue
Copy link
Done
#15230
Done
pm-stack notifications Phase 2 step 3: edge answer intake + heartbeat drain (#8569)#13469
#15230
Copy link
Labels
queue/claimedQueue worker lifecycle statestatus/in-progressQueue worker lifecycle statework/assignedQueue worker lifecycle state

Description

@dezren39
dezren39
opened on Nov 23, 2026
Issue body actions

Phase 2 step 3 — edge answer intake (of #8569)

Parent: #8569. Design of record: doc/2026-11-17_design_pm8569_notifications_phase2.md §1 (heartbeat + answer drain), §2 (routes), §3 (answers while down). Steps 1 (relay skeleton + dead-man's switch) and 2 (event mirror) land first — the mirrored question state this step serves comes from step 2's mirror.

Scope

  • Edge: GET /answer/:ledgerId + POST /api/needs-drew/:ledgerId/answer on the pm-notify Worker, serving the question + full option list from DO state (parent design §5 answerable choices), authorized by the per-question answer token — the DO stores only the token's hash beside the mirrored question, expiring when the question is answered or withdrawn (design §4). Submitted answers are stored in the DO as pending, keyed by answer id: {ledgerId, optionId | freeText, answeredAt, answerTokenHash}.
  • Drain: the heartbeat response carries the pending-answer count (the field exists since step 1, always 0 until this step); the aggregator pulls pending answers (GET + ack by answer id) in the same contact, so a crash mid-drain re-offers the answer instead of losing it. The Phase-1 catcher remains the single writer to the pending-questions ledger — the edge path changes transport, never the place of record (invariant 1).
  • If the laptop is up, the Worker may also forward immediately through the existing tunnel ingress pattern (design §3 of the parent issue); the drain remains the correctness path.

Acceptance (Drew's terms, #8569)

  • Answer a needs-drew question from the push while the laptop is down → when the stack returns, the ledger shows it answered and the blocked task unblocks; nothing is lost or double-applied (answer ids dedupe the drain).
  • An answer submitted twice (double-tap, retry) is applied exactly once.
  • An expired/withdrawn question's answer page refuses the answer instead of storing it.

Tests name their oracles (repo testing doctrine) and run remotely per REMOTE BUILDS ONLY.

Out of scope

  • Cron narrowing (step 4); any change to the catcher's application of answers.

Filed by lane felix from #8569's step-1 pass, 2026-11-23. Filed without a pilot packet: the shortlist is operator-managed, and chained packets for #8569's steps are cut by the queue operator (same recorded pattern as #13342).

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    developing-todayBot
    on Nov 23, 2026 – with developing.today
    Contributor
    More actions

    CODE-4911

  2. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    Triage verdict (ITEM-WORK-58, task 22321, 2026-11-24): not resolved — implementation not started; gated on step 2.

    Fresh state: this issue is open with no implementation PR. The chain state today: step 1 (edge relay + dead-man's switch) landed via #13518 (closed); step 2 (event mirror to the pm-notify DO, #13468) is still open with no PR yet — its own triage today routed it as a scoped follow-on. This step's scope serves the mirrored question state from step 2's mirror, so step 3 cannot start until #13468 lands.

    Routing: the step-3 implementation is filed as a scoped feature_slice queue packet, structurally dep-blocked on #13468 with dep-recheck enabled; its wake protocol routes the build (edge GET /answer/:ledgerId + POST /api/needs-drew/:ledgerId/answer on the pm-notify Worker, DO pending-answer store keyed by answer id, heartbeat drain with ack-by-id) once the mirror lands. Acceptance stays Drew's terms as written in the issue body (answer while the laptop is down applied exactly once on drain; double-submit deduped by answer id; expired/withdrawn questions refuse).

    Issue stays open. Tracking: #14158.

  3. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Triage re-verification (task 23168, 2026-11-24 ~19:05Z): not resolved — still gated on step 2.

    Fresh state: #13469 is open with no implementation PR (no PR references #13469). Dependency #13468 (step 2, event mirror) is still open with no PR. Unchanged since the 10:39Z verdict.

    Routing: no new packet needed — follow-on feature_slice task 23155 already exists and is correctly blocked on #13468; dep-recheck just now returned still_blocked. It will wake when the mirror lands.

  4. developing-today-fleet
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 25, 2026
  5. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    Claimed by lane 5, 2026-11-25T20:18Z. Step 2 (#13468) merged as #14636, so this step is unblocked: edge answer page and POST route on the pm-notify Worker, pending answers in the DO, and the aggregator draining them over the heartbeat contact.


    Generated by Claude Code

  6. dezren39
    added 2 commits that reference this issue on Nov 25, 2026

    fix(pm-notify): narrow answer body before reading token (#13469)

    568a790

    feat(pm-notify): edge answer intake and drain (#13469) (#15230)

    bc0a1fb
  7. dezren39
    closed this as completedin #15230on Nov 25, 2026
  8. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    Queue verification (task 23155, lane QH, 2026-11-26): this slice was already implemented and landed before this claim — no duplicate work started.

    • PR: feat(pm-notify): edge answer intake and drain (#13469) #15230 — feat(pm-notify): edge answer intake and drain (pm-stack notifications Phase 2 step 3: edge answer intake + heartbeat drain (#8569) #13469), branch lane5/13469-edge-answer-intake, merged 2026-11-25T21:35:36Z, merge commit bc0a1fb. This issue was closed by that merge.
    • Scope delivered per the PR: edge GET /answer/:ledgerId + POST /api/needs-drew/:ledgerId/answer on the pm-notify Worker (token-hash auth, DO pending-answer store), GET /answers + POST /answers/ack shared-secret drain routes, heartbeat returns the real pending-answer count, aggregator mirror of tokenHash/answerOptions + cleared event, and the heartbeat drain that acks final outcomes and leaves an answer whose application throws at the edge for the next contact (mid-drain re-offer).
    • Tests (oracle-named, on main): pm-stack/notify-relay/test/answers.test.ts — incl. 'an answer submitted twice (double-tap, retry) is stored exactly once', withdrawn/expired questions refuse with 410 / refuse instead of storing; pm-stack/aggregator/test/edge-answers.test.ts — mirror payload, cleared event, drain and ack discipline, ledger application.
    • Remote verification: pm-aggregator-tests workflow run on the PR head 568a790 succeeded — https://github.com/developing-today/code/actions/runs/45699635868 — and the post-merge run also succeeded — https://github.com/developing-today/code/actions/runs/45705894275.
    • Note from the PR: deploying the Worker remains a separate step (no workflow deploys pm-stack/notify-relay).

    Queue task 23155 is being completed on this evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    queue/claimedQueue worker lifecycle statestatus/in-progressQueue worker lifecycle statework/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.