Repository navigation
feat(catalog): serve workflows and revisions over TinyBus - #17
Merged
Merged
Conversation
…lows-drivers/src/catalog/revisi Auto-committed-on: macbook
Auto-committed-on: macbook
…ates/tinyflows-module/src/catal Auto-committed-on: macbook
Auto-committed-on: macbook
…/tinyflows-drivers/src/catalog/ Auto-committed-on: macbook
…s.rs Auto-committed-on: macbook
…lows-bus/src/catalog_tests.rs,c Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
…s.rs,crates/tinyflows-module/sr Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
…ts.rs,crates/tinyflows-drivers/ Auto-committed-on: macbook
Auto-committed-on: macbook
…lows-bus/src/catalog/storage_ty Auto-committed-on: macbook
…s.rs,crates/tinyflows-drivers/s Auto-committed-on: macbook
Auto-committed-on: macbook
…lows-bus/src/catalog/storage_ty Auto-committed-on: macbook
…quence.rs,crates/tinyflows-driv Auto-committed-on: macbook
…rates/tinyflows-drivers/src/cat Auto-committed-on: macbook
…quence_tests.rs,crates/tinyflow Auto-committed-on: macbook
…/tinyflows-bus/src/catalog_test Auto-committed-on: macbook
This was referenced Oct 16, 2026
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.
Serve Catalog v2 from
tinyflows-moduleover an agent-boundCatalogStoragedocument callback. The module runs workflow list/get, create/update/duplicate, delete, enablement and revision history throughFlowCatalogDocuments. Stale updates return a structured conflict with the current workflow. Create results report automatic-trigger disablement and forced approval, while summaries include the latest committed graph revision, run status, trigger kind, node count, update time and skipped-row count.The graph revision sequence is stored in the catalog definition: new and duplicated workflows start at 1, and only a successful graph update advances it. Failed or stale updates and metadata-only writes preserve the number. Legacy definitions without a sequence bootstrap from visible retained history; history imports remain unseeded until the first graph update persists the sequence, because prior snapshots do not change the current graph. History already pruned before bootstrap cannot be reconstructed.
The bus crate defines serde-only catalog and document callback types, including typed storage preconditions, filters, queries, collection declarations, cursors and result records. Its wire tests cover every type and pin literal request and response JSON. The callback exposes only ensure/get/put/delete/query/delete-where, which cover the current driver’s needs. Module integration tests exercise separate agent scopes, CRUD, stale conflicts, duplicate and enablement behavior, revision history, safety flags and corrupt-row reporting.
Validation:
cargo fmt --all -- --checkcargo clippy --all-targets --all-features -- -D warningscargo check -p tinyflows-module --all-featurescargo test --all-features(pass with Bash 5.3; the existing release-workflow test usesmapfile, unavailable in macOS system Bash 3.2)Refs #1
Part of tinyhumansai/openhuman#8055