stakwork / sphinx-tribes

Backend for sphinx tribes and bounties. The bounty platform pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
33 stars 60 forks source link

Feature Tracking: Stakwork Common Workflow Plumbing #1922

Open humansinstitute opened 2 weeks ago

humansinstitute commented 2 weeks ago

Context

Hive Process will integrate Stakwork Workflows and automation into the Hive Development Process. This will reduce workload on Product Managers by streamlining creative tasks and automating the drafting of product artefacts and audit tasks.

We will do this by integrate Stakwork agent workflows into the Hive Product Management process and having work completed by the bounty platform.

Feature: Common End Point for Stakwork Calls

Feature Brief:

Through the Hive Process we will be integrating Stakwork Workflows with the Bounties Program. The first instances of this were the User Story generation, but the implementation was specific to this feature and replicating this approach would have a lot of rework and maintenance in the future.

To speed up deployment of new features we will build a generic endpoint on Sphinx Tribe Server to process and submit all of these requests and track their progress and then take the next actin on receipt of a successful workflow response from the Stakwork workflow.

User Stories:

Requirements:

System Schematic:

image

Logical Flow

Logical Flow for this feature:

  1. Front end generates request data object
  2. posts to endpoint /workflow/request
  3. write request to DB for monitoring
  4. processed and sent to Stakwork
  5. response received back at /workflow/response
  6. write to queue for processing
  7. read requestID to build the "action object" (union of request and response object)
  8. post reponse data to workflow/action for next step (e.g. update user stories, update ticket plan etc)

Ticket Plan

Phase: Now

Minimal plumbing required that would support workflow integration by specifying, action string and workflowID/

Backend - Changes:

Front End - Changes:

Workflow - Changes:

Phase: Future

humansinstitute commented 2 weeks ago

Feature Tracking: issues won't be assigned as work.