Skip to content

feat(workflow): add Workflow 1.0 protocol over DIDComm v2#1

Open
vinaysingh8866 wants to merge 20 commits intomainfrom
workflow-over-didcomm
Open

feat(workflow): add Workflow 1.0 protocol over DIDComm v2#1
vinaysingh8866 wants to merge 20 commits intomainfrom
workflow-over-didcomm

Conversation

@vinaysingh8866
Copy link

No description provided.

Add package.json, tsconfig.json, tsconfig.build.json, jest.config.ts to initialize the workflow package.

Signed-off-by: Vinay Singh <vinay@verid.id>
Introduce WorkflowModule, WorkflowModuleConfig, WorkflowEvents, and public exports via index.

Signed-off-by: Vinay Singh <vinay@verid.id>
Add core model types and template validation helpers.

Signed-off-by: Vinay Singh <vinay@verid.id>
Provide planning and guard evaluation utilities for workflow execution.

Signed-off-by: Vinay Singh <vinay@verid.id>
Introduce records and repositories for workflow templates and instances.

Signed-off-by: Vinay Singh <vinay@verid.id>
Add WorkflowMessageTypes and protocol message classes: PublishTemplate, Start, Advance, StatusRequest/Status, ProblemReport, Cancel, Pause, Resume, Complete.

Signed-off-by: Vinay Singh <vinay@verid.id>
Implement handlers for publish, start, advance, status, pause/resume, complete, cancel, and problem-report.

Signed-off-by: Vinay Singh <vinay@verid.id>
Add ActionRegistry, WorkflowService, and WorkflowApi to orchestrate and expose workflow operations.

Signed-off-by: Vinay Singh <vinay@verid.id>
Add tests covering engine utilities, protocol handlers, repositories, and service workflows.

Signed-off-by: Vinay Singh <vinay@verid.id>
Add E2E test exercising anoncreds flow using the new workflow module.

Signed-off-by: Vinay Singh <vinay@verid.id>
Update lockfile to capture workflow package dependencies.

Signed-off-by: Vinay Singh <vinay@verid.id>
Remove JS eval fallback in GuardEvaluator and ignore configurable guard engine in service. This enforces side-effect-free guard evaluation.

Signed-off-by: Vinay Singh <vinay@verid.id>
Remove JS-based compute evaluator and run compute over a pure JMESPath environment with {context, participants, artifacts, now}. Updates tests to use join() instead of concat().

Signed-off-by: Vinay Singh <vinay@verid.id>
Replace '../src' with '..' in package tests so ts-jest resolves package exports correctly.

Signed-off-by: Vinay Singh <vinay@verid.id>
  test types and assertions

- Use precise types for UI checks and
  message context; format long assertions.

Signed-off-by: Vinay Singh <vinay@verid.id>
  listener callbacks, formatting

- Remove explicit any and
  tighten mock signatures.

- Resolve ctor names safely;
  accept payload args in listener mocks.

- Import ordering and
  formatting aligned with Biome.

Signed-off-by: Vinay Singh <vinay@verid.id>
  only class lint in engine

- Add targeted biome-ignore to
  GuardEvaluator and AttributePlanner utility classes (no logic
  change).

Signed-off-by: Vinay Singh <vinay@verid.id>
  profile_ref; action message-id resolution

- Reject invalid
  action.profile_ref values (must be cp.* or pp.*).

- Prefer
  found.message.id, fallback to found.id or record id.

Signed-off-by: Vinay Singh <vinay@verid.id>
@vinaysingh8866 vinaysingh8866 force-pushed the workflow-over-didcomm branch 2 times, most recently from dced4a9 to c64bd95 Compare September 27, 2025 14:49
@vinaysingh8866 vinaysingh8866 changed the title Workflow over didcomm feat(workflow): add Workflow 1.0 protocol over DIDComm v2 Sep 27, 2025
  protocol over DIDComm v2

Signed-off-by: Vinay Singh <vinay@verid.id>
Signed-off-by: Vinay Singh <vinay@verid.id>
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