Skip to content

[Phase 4] Consumer fixtures for Ops Hub and Support Desk - #4

Merged
FlyOverCoderKY merged 2 commits into
mainfrom
grok/scheduler-phase-4
Jul 31, 2026
Merged

FlyOverCoderKY merged 2 commits into
mainfrom
grok/scheduler-phase-4

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Summary

Implements Phase 4 of docs/PROJECT_PLAN.md as independent consumer fixtures
in this repository (the RELEASING bar before publish).

  • fixtures/ops-hub — health + GitHub Cron routes via @pegma/scheduler-cloudflare
  • fixtures/support-desk — five direct host loops; no dynamic receipt-bucket tasks
  • fixtures/azure-functions — timer entry composition for RetireGolden-style Azure hosts
  • Integration tests prove checkpoints, independence, overlap, and safe failures

Context

  • Packages remain unpublished 0.0.0; fixtures pin workspace packages.
  • Ops Hub host application is still bootstrap-only; the fixture is the
    integration bar until that host lands Worker phases.
  • Support Desk domain packages stay in their own repo; the fixture mirrors
    HOST_COMPOSITION.md task shapes.

Phase 4 exit criteria

  • Compose Ops Hub health probing and GitHub synchronization (fixture)
  • Compose Support Desk mail/queue loops (fixture)
  • Azure Functions reference composition
  • Receipt/principal sweeps stay outside Scheduler
  • Independent consumers compile against exact pins; tests prove scheduled work

Test evidence

npm run format:check  # pass
npm run check         # pass
npm test              # 44 node + 4 D1 tests pass

Residual risks

  • Full Ops Hub Docker/Worker composition waits on ops-hub application phases.
  • External hosts pin 0.1.0 after Phase 5 publishes.

Fixtures pin workspace scheduler packages and prove real scheduled work for
health/GitHub, mail/queue loops, and an Azure Functions timer composition
without inventing per-bucket Support Desk tasks or requiring unpublished npm
releases.
Copilot AI review requested due to automatic review settings July 31, 2026 19:59
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 03d3986c2e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/PROJECT_PLAN.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready to approve

The fixtures and tests align with the scheduler’s contracts (static task registry, bounded invocations, checkpoint semantics, lease/staleness suppression) and the repo’s Phase 4 documentation updates match the implemented scope.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Adds Phase 4 “consumer fixtures” that act as independent integration bars for real host-shaped compositions (Ops Hub via Cloudflare dispatch, Support Desk direct loops, and an Azure Functions timer example), with Vitest/TS config updates so these fixtures compile and run in the repository gate.

Changes:

  • Expand test/typecheck configuration to include fixtures/ tests and sources.
  • Add three consumer fixtures (ops-hub, support-desk, azure-functions) with integration tests covering checkpoints, independence, overlap/staleness suppression, and coarse failure safety.
  • Update repository/docs status to mark Phase 4 complete and document the fixture/testing expectations.
File summaries
File Description
vitest.config.ts Runs fixture tests alongside package tests in the default Vitest suite.
tsconfig.test.json Includes fixture TypeScript sources in the test typecheck program.
README.md Updates repo status to Phase 4 and documents fixtures as part of npm test.
fixtures/support-desk/composition.ts Implements Support Desk–shaped static task registry + bounded page/checkpoint handling.
fixtures/support-desk/composition.test.ts Verifies checkpoints, independence, no dynamic task invention, and failure redaction behavior.
fixtures/README.md Documents purpose and scope of consumer fixtures and what each mirrors.
fixtures/ops-hub/composition.ts Implements Ops Hub–shaped Cloudflare route composition + task definitions.
fixtures/ops-hub/composition.test.ts Tests route wiring, independent task state, and live-lease overlap suppression.
fixtures/azure-functions/composition.ts Provides Azure timer-trigger composition example using runScheduled directly.
fixtures/azure-functions/composition.test.ts Tests checkpoint cycling and stale occurrence suppression for timer redelivery.
docs/TESTING.md Documents Phase 4 fixture coverage and clarifies pre-publication expectations.
docs/RELEASING.md Updates release checklist to point at the fixture directories (incl. Azure reference).
docs/PROJECT_PLAN.md Marks Phase 4 complete and records evidence pointing at fixtures.
docs/CONSUMER_REQUIREMENTS.md Updates requirements narrative to reflect Phase 4 fixture proof.
docs/CLOUDFLARE.md Refines Phase 4 Cloudflare fixture claims to match fixture scope (Memory Store, not durability).
docs/ARCHITECTURE.md Anchors Azure composition guidance to the new fixtures/azure-functions example.
Review details
  • Files reviewed: 16/16 changed files
  • Comments generated: 0
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Add private fixture workspaces with package.json pins for scheduler 0.0.0
so Phase 4 evidence is mechanized rather than only documented.
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 22e3a00e6f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@FlyOverCoderKY
FlyOverCoderKY merged commit 517074a into main Jul 31, 2026
2 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the grok/scheduler-phase-4 branch July 31, 2026 20:07
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.

2 participants