Repository navigation
Execute Runtime 0.2 workflows with CEL in the Obsidian client - #25
Merged
Merged
Conversation
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.
Workflows now execute their Runtime 0.2 records directly in the Obsidian client, using CEL for format v2 and the existing evaluator for unmigrated v1 files. Published mdbase-sync API v1/profile 0.1 and stable npm packages replace the dead plugin lookup and vendored prerelease.
Implemented trigger conditions, persistent seven-day run idempotency reservations and minimum intervals, evaluated concurrency groups with skip/queue/replace/allow, trailing debounce, item/deadline/error policies, timezone-aware cron and persisted fire-once catch-up. Interop step keys derive from run idempotency plus step/item. Runtime-shaped run/attempt history retains the existing UI and marks interrupted work without replay. Automatic execution has a device-local switch (desktop on/mobile off); manual runs remain available.
Reviewed migration converts Bases/templates/structured conditions into CEL, disabling unsupported conversions with explanations and preserving backup/apply/rollback. New/migrated notes honor collection type keys; missing runtime types produce a one-time pack hint. TaskNotes v5 task IDs, stable-ID lookups, metadata event shape, time-entry scaffolding, runtime note recognition, English settings text, README, schema and authoring guides are updated. Minimum Obsidian is 1.8.7 for app-local storage; plugin version stays 0.1.6.
Validation: 107 unit tests pass; npm run typecheck, npm run lint, and npm run build pass. Tests include the real InMemoryInteropBridge and canonical runtime history validation. Obsidian is unavailable here; no native reload or shared-vault build was run.
Scope limits: this is a client executor, not a claim of full durable Runtime 0.2 conformance. No distributed leases, transactional event journal, durable queue/checkpoint replay, pack installation, merge, or release. Pending debounce/queues are memory state. Local actions settle before replacement; unknown interop outcomes are indeterminate. CEL workflows open their YAML note instead of the Bases formula editor. Metadata revisions describe metadata snapshots, and type lists include explicit membership only. Bridge invocation identities are provisional until the returned outcome. These limits and migration behavior are documented in docs/workflow-schema.md.
Companion skill update: callumalpass/tasknotes-workflows-skill#1.