-
Notifications
You must be signed in to change notification settings - Fork 0
fix(observer): project each run into its channel and scope the link to it #570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Local run observer projection | ||
|
|
||
| `flows run` and `flows resume` project journal facts into `wf-<root-run-id>` | ||
| when a Relaycast workspace is configured. The printed link uses a scoped | ||
| `ot_live_` observer token, never the workspace key. `--no-observer-link` and | ||
| `FLOWS_NO_OBSERVER=1` suppress both token creation and publication. | ||
|
|
||
| YAML observation spans initial admission, out-of-band worker completion, | ||
| retries and final classification. An idempotent or recovered start watches | ||
| the existing run instead of creating another. Resume folds old facts silently; | ||
| an old terminal fact cannot close the resumed projection. Epoch summaries reset | ||
| the projected step state to the journal's retained done/open steps. Authored | ||
| child failures keep the root's channel and observer link. | ||
|
|
||
| The producer sends `{text, data: {relayflow: {version: 1, event, run}}}` to | ||
| Relaycast's message endpoint. Relaycast exposes that payload as | ||
| `message.metadata.relayflow` to the dashboard. Changing the request field to | ||
| `metadata` is not compatible with the message API. | ||
|
|
||
| After queued publication settles, the CLI retires its session publisher using | ||
| Relaycast's history-preserving agent deletion endpoint. Current Relaycast | ||
| tombstones the agent and revokes its credentials without deleting its messages. | ||
| Cleanup and publication are best-effort and bounded; an unavailable service or | ||
| abrupt process death cannot affect execution and can leave cleanup unfinished. | ||
| The journal remains the record (RFC-0001 decision 7). | ||
|
|
||
| Full visual acceptance requires the Relaycast observer renderer (#450) in | ||
| addition to this producer. The joint proof must show live step progression, | ||
| the final status, single-channel token scope, retained history after publisher | ||
| retirement, and unchanged execution with observation disabled/unavailable. | ||
| Mocked transport tests do not establish that deployed end-to-end behavior. |
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.