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 — impl(fleet-hosted): ingestion receiver — GitHub webhook route + scheduled-Worker sweeper (#9076 hosted) · Issue #12590 · developing-today/code

impl(fleet-hosted): ingestion receiver — GitHub webhook route + scheduled-Worker sweeper (#9076 hosted) #12590

New issue
Copy link
New issue
Copy link
Done
Done
impl(fleet-hosted): ingestion receiver — GitHub webhook route + scheduled-Worker sweeper (#9076 hosted)#12590
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)status:done

Description

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

Design: doc/2026-11-22T14-28-45Z_design_fleet-tool-workers-edition §7.3 (component C of epic #9078, design issue #9081). Parent: #9081. Hosted form of #9076 — the native ingestion remains a peer running the same check.

Scope

Dual ingestion, hosted half:

  • GitHub webhook route on fleet-hosted: signature-verified; issue/PR opened/edited/closed/reopened/labeled events trigger the pm stack: multi-board hierarchy + full task genealogy #9060 §16 Metadata check → DB insert/refresh → queue enqueue when the event warrants work.
  • Interval sweeper as a scheduled Worker running the same check code path (catches listener misses).
  • Items lacking a block: ascertained Metadata generated and written back where the fleet has write access; insufficient cases forwarded to full triage; quickly-merged PRs completed retroactively.

Acceptance

  • An item created via the web UI or plain gh appears in the metadata DB via the webhook path, demonstrated on a test item.
  • With the listener paused (simulated), the sweeper catches the same item with the same check result.
  • A quickly-merged PR gets its Metadata completed retroactively by the sweeper, verified on a real merged PR.
  • Duplicate delivery of the same event is idempotent (one DB row, no duplicate queue items).

Activity

  1. dezren39
    added
    kind/featureNew feature or capability request
    priority/normalOrdinary priority (the default)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 22, 2026
  2. developing-today commented on Nov 22, 2026

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

    CODE-4630

  3. dezren39
    added a parent issue on Nov 22, 2026
    • design(fleet): fleet tool, Workers/TypeScript equivalent — hosted Metadata stamping/query, session provenance, sync tools #9081
  4. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  5. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 23, 2026
  6. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Ingestion door implemented — PR #12923 (open, unmerged for review)

    The hosted half of dual ingestion (design §7.3, #9060 §16) is implemented in pkgs/fleet/hosted-worker:

    • POST /v1/ingestion/github — the webhook receiver. Deliveries hold no fleet credential, so the route is public and the handler authenticates each delivery by its X-Hub-Signature-256 HMAC before any parsing (unconfigured secret → 503 webhook_not_configured; missing signature → 401 webhook_signature_missing; unverifying → 401 webhook_signature_invalid). Events/actions outside the §16 set are acknowledged 200 as ignored. The check runs over the item as freshly read through the GitHub item source, never the payload's copy.
    • POST /v1/ingestion/sweep + the Worker's scheduled handler on the wrangler cron trigger (*/15 * * * *) — the interval sweeper over a named or configured (INGESTION_REPOS) scope, same check code path. A Surface 7 registry row lands in the same PR, in the declared-not-deployed pattern (this package is not deployed; the production deploy remains impl(fleet-hosted): service skeleton — Worker route modules, RP-token auth validation, tenancy mapping, health/capabilities #12583's leg).
    • The check (src/ingestion.ts): parse the block (malformed → 400, fail-closed) → insert/refresh the DB record keyed on the item under the block's own stamped tenancy (no stamped subject → a sentinel unattributed binding; stored, gettable by identity, invisible to per-tenancy lists) → block-less items get an ascertained block (parent resolved from the primary-parent/<slug> label against the repo's epics; provenance from the item read; signed when the service holds stamp material, honestly unsigned otherwise), stored and written back through the new GitHubBodyEditor seam where the fleet has write access (refusal is a named outcome; the row stands) → insufficient Metadata (no resolvable parent, not queue-tracked) is forwarded for full triage as one deduped repo-task/v1 triage packet per item. Enqueue failure is recorded in the result, never thrown over a landed heal.

    Acceptance, as demonstrated in test/ingestion.test.ts (17 new tests): (1) an outside-created item appears in the DB via the webhook path; (2) with the listener paused, the sweeper catches the same item with the same check result; (3) a quickly-merged PR's Metadata is completed retroactively by the sweeper, verified on a seeded closed+merged PR; (4) duplicate delivery is idempotent — one DB row, second result unchanged, exactly one triage task. Also covered: the #12585 heal (metadata_inserted: false → first check stores the row), signature/payload/block negatives, item-not-visible 404, write-back refused, queue-tracked sufficiency, and the sweep route's plumbing refusals (401 / cross-tenant 403 / unscoped-token 403).

    Evidence: npm test 160/160 (143 baseline green; the two stub probes that rode this door repointed to the still-stubbed sync door #12591, per the line's pattern), tsc --noEmit clean, npm run smoke green with 3 new ingestion checks. No new dependencies.

    Design calls (full text in the PR body): webhook signature-as-credential with the route public; an authenticated sweep route alongside the scheduled handler; core deps fail closed 503 while queue/editor degrade to named outcomes; parent ascertainment scoped to the primary-parent/<slug> mark an item read actually carries (the native sub-issue parent is not exposed on a read — zero/several candidates is precisely §16's insufficient case); generated provenance signed when material exists rather than failing the heal closed.

    Remainder: none in this issue's scope. The door's production wiring (the #9074 metadata DB behind the same MetadataStore interface, a deployed Worker) is the same class of remainder as the sibling doors', owned by the deployment leg on #12583. #12591 (sync) is the last stub door.

  7. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Released by felix (outcome: done). Ingestion door implemented: PR #12923 open unmerged for Felix's review. Webhook receiver (HMAC-authenticated) + sweeper (route + scheduled handler) running one §16 check: fresh-read, block parse fail-closed, DB insert/refresh under the block's stamped tenancy, ascertainment + write-back for block-less items, deduped triage forwarding for insufficient Metadata. Evidence: npm test 160/160 (143 baseline + 17 new covering all four acceptance criteria + negatives), tsc clean, smoke green, no new dependencies. Registry row for the declared cron added in the same PR.

  8. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 23, 2026
  9. developing-today
    added
    status:in-review
    on Nov 23, 2026
  10. dezren39
    added a commit that references this issue on Nov 23, 2026

    Merge pull request #12923 from developing-today/felix/12590-ingestion…

    efffb37
  11. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: PR #12923 MERGED — the hosted ingestion door landed
    by: agent felix (kind muse, Muse sandbox seat), merging after review
    at: 2026-11-22

    PR #12923 merged (+1905/−66, 18 files). The ingestion door: an HMAC-authenticated GitHub webhook receiver plus an interval sweeper running one §16 check code path — fresh-read, fail-closed block parse, insert/refresh under the block's own stamped tenancy, ascertain + sign + write back for block-less items, insufficient Metadata forwarded to full triage as one deduped repo-task/v1 packet per item. It also heals #12585's metadata_inserted: false divergence.

    Felix's review: re-ran the suite — 160/160 (143 baseline + 17 new); read the webhook authentication (src/ingestion.ts): strict sha256= header shape, WebCrypto HMAC verify (constant-time) over the raw body BEFORE any parsing, 401 on missing/invalid, 503 when unconfigured; tenancy comes from each item's stamped auth_subject, never a header. The wrangler cron carries its Surface 7 registry row in the same PR, declared-not-deployed until #12583's production deploy. No new dependencies.

    #12590's slice is complete; the production metadata DB behind the store interface remains #9074's. One door remains on the line: #12591 (sync).

  12. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Triage verdict (queue task 22225, lane code-h): resolved in substance, closing.

    • PR impl(fleet-hosted): ingestion receiver + sweeper (#12590) #12923 (impl(fleet-hosted): ingestion receiver + sweeper) is MERGED (2026-11-23T05:09Z, +1905/-66, 18 files in pkgs/fleet/hosted-worker). Verified fresh via API just now.
    • Implemented scope matches the issue: HMAC-authenticated POST /v1/ingestion/github webhook receiver + POST /v1/ingestion/sweep with scheduled-Worker handler, one section-16 check path, fail-closed parse, tenancy-stamped DB writes. Evidence on record: npm test 160/160 (143 baseline + 17 new), tsc clean, smoke green, no new dependencies.
    • No remaining acceptance named on the issue; clearing status:in-review by closing. No follow-on packet.
  13. dezren39
    closed this as completedon Nov 24, 2026
  14. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 24, 2026
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

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)status:done

    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.