Skip to content

rename package chasm/lib/workflow/commands -> chasm/lib/workflow/workflowregistry#9474

Open
gow wants to merge 4 commits intonexus/hsm-to-chasm-migrationfrom
cg/nexus/history_events_registry_1
Open

rename package chasm/lib/workflow/commands -> chasm/lib/workflow/workflowregistry#9474
gow wants to merge 4 commits intonexus/hsm-to-chasm-migrationfrom
cg/nexus/history_events_registry_1

Conversation

@gow
Copy link
Contributor

@gow gow commented Mar 11, 2026

What changed?

Just a package rename. No other code change.

Why?

Migrating Nexus from HSM to CHASM

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Note

Low Risk
Primarily a package/API rename and dependency wiring update; low behavioral risk, but broad mechanical changes could cause compile-time breakage if any call sites were missed.

Overview
Renames the CHASM workflow command registry package from chasm/lib/workflow/command to chasm/lib/workflow/workflowregistry and updates its public API (RegisterCommandHandler, CommandHandler, CommandHandlerOptions, ErrCommandNotSupported).

Propagates the rename through Nexus operation command handlers/tests, History RespondWorkflowTaskCompleted CHASM fallback path, engine/fx wiring, and related Nexus components so CHASM command handling continues to resolve and invoke handlers via the new registry.

Written by Cursor Bugbot for commit e4740af. This will update automatically on new commits. Configure here.

@gow gow requested review from a team as code owners March 11, 2026 17:36
@gow gow marked this pull request as draft March 11, 2026 17:36
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@gow gow force-pushed the cg/nexus/history_events_registry_1 branch from e407480 to f384291 Compare March 11, 2026 18:08
@gow gow force-pushed the nexus/hsm-to-chasm-migration branch from f0ba72b to c4c868f Compare March 12, 2026 03:13
@gow gow force-pushed the cg/nexus/history_events_registry_1 branch from f384291 to d3e600d Compare March 12, 2026 04:10
@gow gow marked this pull request as ready for review March 12, 2026 04:31
Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also rename Registry.Register to Registry.RegisterCommandHandler

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if chasmHandler, ok := handler.chasmWorkflowRegistry.CommandHandler(command.GetCommandType()); ok {

@stephanos stephanos self-requested a review March 12, 2026 16:52
@gow gow force-pushed the nexus/hsm-to-chasm-migration branch from a5b9a45 to 3cb6ca5 Compare March 16, 2026 22:28
@gow gow force-pushed the cg/nexus/history_events_registry_1 branch from d3e600d to 6509cde Compare March 16, 2026 22:32
@gow gow force-pushed the nexus/hsm-to-chasm-migration branch from 3cb6ca5 to 4ca6b5a Compare March 17, 2026 00:36
@gow gow force-pushed the cg/nexus/history_events_registry_1 branch from 6509cde to 9c5b648 Compare March 17, 2026 00:39
@gow gow requested a review from bergundy March 17, 2026 06:04
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.

2 participants