Repository navigation
[Phase 4] Consumer fixtures for Ops Hub and Support Desk - #4
Conversation
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.
|
@codex review |
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
🟢 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.
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Summary
Implements Phase 4 of
docs/PROJECT_PLAN.mdas independent consumer fixturesin this repository (the RELEASING bar before publish).
fixtures/ops-hub— health + GitHub Cron routes via@pegma/scheduler-cloudflarefixtures/support-desk— five direct host loops; no dynamic receipt-bucket tasksfixtures/azure-functions— timer entry composition for RetireGolden-style Azure hostsContext
0.0.0; fixtures pin workspace packages.integration bar until that host lands Worker phases.
HOST_COMPOSITION.mdtask shapes.Phase 4 exit criteria
Test evidence
Residual risks
0.1.0after Phase 5 publishes.