Skip to content

feat(fleet-hosted): retire the scheduled ingestion sweep (C2-S4 of #9570, #17079) - #17115

Merged
dezren39 merged 1 commit into
mainfrom
xaltha/17079-retire-ingestion-sweep
Nov 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
xaltha/17079-retire-ingestion-sweep

Conversation

@dezren39

@dezren39 dezren39 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

What

The D8 retire row of C2-S4 (#17079; design record doc/2026-11-26T07-52-58Z_design_c2_event_pipeline, §4 D8): the fleet-hosted Worker's scheduled ingestion sweep is retired.

  • wrangler.toml: the [triggers] crons = ["*/15 * * * *"] block is removed; the comments now record the retirement and what INGESTION_REPOS still scopes.
  • src/worker.ts: the scheduled handler (and its ScheduledContext) is removed, with a comment recording the retirement and where the sweeper survives.
  • Stale comments in src/config.ts and src/routes/ingestion.ts corrected to match.
  • Book: pkgs/fleet/book/concepts/fleet-hosted.md updated in the same pass (the sweeper surface is the on-demand route; the deployment section no longer describes a live scheduled sweep).

Why this row, now

The sweep ran inert for its whole life: INGESTION_REPOS was never populated in production and the route was not adopted on a timer (design D1/D8). It has no replacement to wait a cycle for — the webhook receiver is the primary ingestion path and stays; the sweeper survives as the on-demand POST /v1/ingestion/sweep door, and backfill covers whole-scope passes. runIngestionSweep, the scope config, and all ingestion routes are untouched, so the package's test suite (which exercises the sweep through the route) is unaffected in substance.

Remainder on #17079

The convert rows (pm-git-sync, fleet-feed-collector, auto-format workflow) and the D7 out-of-repo triage stay open: their hard edge — C2-S2 verified for one full cycle — is not yet met (S2 core landed 2026-11-30, no verified cycle yet).

Verification: fleet-run dispatch on this head for npm test + npm run typecheck in pkgs/fleet/hosted-worker; run id recorded on #17079. CI is not a gate — merging on the lane's diff read, with the run as the fix-forward wake.

Refs #17079.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T06:42:10Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "c36a28d672723b085b14125996bcd72b1931e09d"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

, #17079)

The D8 retire row of the C2 design: the fleet-hosted Worker's
scheduled ingestion sweep ran inert for its whole life —
INGESTION_REPOS was never populated in production and the sweep
was never adopted on a timer. Remove the cron trigger from
wrangler.toml and the scheduled handler from worker.ts. The
sweeper itself survives as the on-demand POST /v1/ingestion/sweep
door (and backfill covers whole-scope passes); runIngestionSweep,
the INGESTION_REPOS scope config, and the ingestion routes are
untouched. Stale comments in config.ts and routes/ingestion.ts
corrected, and the fleet-hosted book chapter updated in the same
pass.

Refs #17079 (the convert rows and the D7 triage remain: their
hard edge — C2-S2 verified for one full cycle — is not yet met).
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aa71ec78-cdb6-4022-a7cb-debffe6b5601
Commits

Reviewing files that changed from the base of the PR and between 9cb952f and 68403dc.

Files selected for processing: 5

  • pkgs/fleet/book/concepts/fleet-hosted.md
  • pkgs/fleet/hosted-worker/src/config.ts
  • pkgs/fleet/hosted-worker/src/routes/ingestion.ts
  • pkgs/fleet/hosted-worker/src/worker.ts
  • pkgs/fleet/hosted-worker/wrangler.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 17a6ada into main Nov 30, 2026
2 checks passed
@dezren39
dezren39 deleted the xaltha/17079-retire-ingestion-sweep branch November 30, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant