Skip to content

[Experiment] Schedule standalone activities with BUFFER_LATEST - #60

Draft
chaptersix wants to merge 1 commit into
experiment/scheduler-action-contractsfrom
experiment/scheduler-standalone-activities
Draft

[Experiment] Schedule standalone activities with BUFFER_LATEST#60
chaptersix wants to merge 1 commit into
experiment/scheduler-action-contractsfrom
experiment/scheduler-standalone-activities

Conversation

@chaptersix

@chaptersix chaptersix commented Sep 5, 2026

Copy link
Copy Markdown
Owner

CHASM schedules can now dispatch standalone activities through the existing frontend APIs. Activity actions own validation, timestamp target IDs, current-configuration start requests, exact ID/run-ID termination, and native completion interpretation. Activity execution retries retain one scheduler action and overlap slot; scheduler retries reuse the buffered target and request IDs. Activity results never populate legacy workflow fields or flow implicitly into later activity arguments.

Activity schedules require an explicit configured overlap policy. They support SKIP, BUFFER_ONE, BUFFER_ALL, ALLOW_ALL, TERMINATE_OTHER, and registered temporal.buffer_latest; CANCEL_OTHER, selector conflicts, unknown names, action-kind changes, V1 routing, and V1 migration are rejected. BUFFER_LATEST replaces only older waiting occurrences of its own policy, using occurrence time and insertion order, and records overlap skips without consuming capacity.

Validation: action/policy and frontend routing tests pass on this intermediate layer. Full lifecycle, serialization, lost-response, callback, retry, termination, and manual/backfill coverage is included in the final integration layer.

This is an experimental draft stack; do not merge. The local integration base combines server main ad7b2298dcce00688cfe3b83ab02819abf9249e8 with the published readability stack e6c239bd4a368fcaaae7aefec85e3e4281f38045, preserving both sets of tests. Published branches are unchanged.

Cross-repository dependencies:

  • Source API: 40766d34ea6c0d2e59c100c1cf20cdf4fb286fe4
  • Generated API-Go: 5fd10bc0a6cd7694373353cf6e00a0886a0b8167
  • Go SDK: a6bed7c8ed3c4b90c467f003571c98b44ea8785b
  • Complete server integration: d80de5800cde0845596277a1af957c731eb1c0a2 on experiment/extensible-chasm-scheduler

Validation uses Go 1.26.7 and an external four-module go.work containing server, API-Go, SDK, and SDK/test. No dependency replacements or workspace files are committed; standalone CI needs these linked revisions wired explicitly until dependency versions are published.

Complete server review order: contracts, activity, visibility, coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant