Repository navigation
feat(runtime): observe native Workflow creation and first do attempts - #110
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | c3b85ff | Oct 27 2026, 06:23 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional Cloudflare parent-runtime observer for native workflow creation responses and first
step.docallback attempts. It supplies trusted app/version identity and the existing native instance UUID. Completed cache replays and retries do not emit another first-attempt event; explicit restarts can execute first attempts again. The product version advances to 0.4.12.Creation observations distinguish resolved native creates from ambiguous rejected responses. They run before catalog confirmation. Background delivery never gates app execution; errors, resets and termination can lose observations. Existing creation recovery, read-only lookups, suspension and native results/errors remain unchanged. The hook does not count sleeps/event waits, provider billing totals, state bytes or orchestration CPU, and is not enabled for celld. No application parameters, step names, results or error text are included.
Validation:
pnpm checkpassed (build, workspace typechecks, format and type-aware lint).No deployment or hosted execution was performed. The local engine tests establish adapter behavior, not provider invoice equivalence.


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Adds an optional parent-side observer for native Cloudflare workflow creation and first
step.doattempts.No actionable issues were found. Tests were inspected but not run during this review.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Catalog create] --> B[Native create] B --> C[Queue create observation] C --> D[Catalog confirmation or recovery lookup] E[Native do callback] --> F{Attempt is 1?} F -->|Yes| G[Queue started observation] F -->|No| H[Run app callback] G --> H C -.-> I[Background extension delivery] G -.-> IReviews (2) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile