apiVersion: jenkins.io/v1 kind: PipelineActivity metadata: annotations: lighthouse.jenkins-x.io/cloneURI: https://github.com/greencapitaltrade/destiny.git lighthouse.jenkins-x.io/job: release pipeline.jenkins-x.io/traceID: de27cc52b57c012314e1110fd963dca5 creationTimestamp: "2026-07-21T04:58:01Z" generation: 7 labels: branch: main build: "122" context: release created-by-lighthouse: "true" event-GUID: bc0ce1ea-84c0-11f1-9fe3-042a891c3357 lighthouse.jenkins-x.io/baseSHA: 029969bd600c12c6525f22ce299df92ddb344cad lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1784609881489" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: apitaltrade-destiny-main-release-8ss7v lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: 029969bd600c12c6525f22ce299df92ddb344cad lighthouse.jenkins-x.io/refs.org: greencapitaltrade lighthouse.jenkins-x.io/refs.repo: destiny lighthouse.jenkins-x.io/type: postsubmit owner: greencapitaltrade podName: apitaltrade-destiny-main-release-wjg4c-from-build-pack-pod provider: github repository: destiny tekton.dev/pipeline: apitaltrade-destiny-main-release managedFields: - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: f:branch: {} f:context: {} f:owner: {} f:provider: {} f:repository: {} f:spec: f:lastCommitMessage: {} f:lastCommitSHA: {} f:releaseNotesURL: {} f:version: {} manager: jx-changelog-0.10.22 operation: Update time: "2026-07-21T05:00:30Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:spec: f:completedTimestamp: {} f:status: {} manager: jx-promote-0.6.42 operation: Update time: "2026-07-21T05:01:31Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:lighthouse.jenkins-x.io/cloneURI: {} f:lighthouse.jenkins-x.io/job: {} f:pipeline.jenkins-x.io/traceID: {} f:labels: .: {} f:build: {} f:created-by-lighthouse: {} f:event-GUID: {} f:lighthouse.jenkins-x.io/baseSHA: {} f:lighthouse.jenkins-x.io/branch: {} f:lighthouse.jenkins-x.io/buildNum: {} f:lighthouse.jenkins-x.io/context: {} f:lighthouse.jenkins-x.io/id: {} f:lighthouse.jenkins-x.io/job: {} f:lighthouse.jenkins-x.io/lastCommitSHA: {} f:lighthouse.jenkins-x.io/refs.org: {} f:lighthouse.jenkins-x.io/refs.repo: {} f:lighthouse.jenkins-x.io/type: {} f:podName: {} f:tekton.dev/pipeline: {} f:spec: .: {} f:baseSHA: {} f:batchPipelineActivity: {} f:build: {} f:buildLogsUrl: {} f:context: {} f:gitBranch: {} f:gitOwner: {} f:gitRepository: {} f:gitUrl: {} f:message: {} f:pipeline: {} f:startedTimestamp: {} f:steps: {} manager: jx-build-controller operation: Update time: "2026-07-21T05:02:18Z" name: greencapitaltrade-destiny-main-122 namespace: jx resourceVersion: "204217865" uid: b3d25647-fb63-4b25-a468-2041ee2b34e6 spec: baseSHA: 029969bd600c12c6525f22ce299df92ddb344cad batchPipelineActivity: {} build: "122" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/greencapitaltrade/destiny/main/122.log completedTimestamp: "2026-07-21T05:01:09Z" context: release gitBranch: main gitOwner: greencapitaltrade gitRepository: destiny gitUrl: https://github.com/greencapitaltrade/destiny.git lastCommitMessage: | feat(engine): node-targeted credit_check consumption for co-applicants Wires Task 2's credit_score Kafka events into the flow engine so a specific co-applicant credit_check node completes/fails independently (review R6-F2). - engine/handlers/credit_check.js: activation is now per-applicant, matching CreditScore by config.application_user_id and completing via the existing node-targeted completeStep with a non-PII { score, pull_type, credit_score_id, summary } result. The legacy CreditScore.create() auto-pull is removed — the pull is now trigger-driven (POST .../credit_score, Task 2). Also moves the engine require inside execute() (lazy), matching the agreement.js/emandate.js pattern: a top-level require here captures the pre-export object of the engine/handlers circular dependency, leaving engine.completeStep/failStep undefined at call time. - queue/consume.js: credit_score_completed/full_match now store the event's score/pull_type/credit_score_id/summary (was just { status: 'completed' }) and both credit_score_completed/rejected pass args.node_id through to the node-targeted completeStep/failStep. - config/kafka.js: subscribe to destiny.credit_score.* so Destiny consumes Task 2's events. engine/index.js already implemented the node-targeted completeStep/failStep options (4th param) with regression coverage in flow_engine.test.js; no changes needed there. Adds tests/unit/flow_engine_credit_check.test.js covering node-targeted completion, all four on_failure policies (retry/skip/reject/block), handler auto-complete vs. stay-active-with-no-CreditScore-row, and the conditions_not_met skip regression guard. Updates queue_consume.test.js and queue_credit_score.test.js for the new payload/options shape. Co-Authored-By: Claude Sonnet 5 lastCommitSHA: fb5846b34c2c5e1273e29df38b4ec5e8aa30de0b message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: greencapitaltrade/destiny/main releaseNotesURL: https://github.com/greencapitaltrade/destiny/releases/tag/v1.72.0 startedTimestamp: "2026-07-21T04:58:01Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-07-21T05:01:09Z" name: Release startedTimestamp: "2026-07-21T05:00:09Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/4829 startedTimestamp: "2026-07-21T05:01:09Z" status: Succeeded startedTimestamp: "2026-07-21T05:01:09Z" status: Succeeded - kind: Stage stage: completedTimestamp: "2026-07-21T05:02:12Z" name: from build pack startedTimestamp: "2026-07-21T04:58:05Z" status: Succeeded steps: - completedTimestamp: "2026-07-21T04:58:18Z" name: Git Clone startedTimestamp: "2026-07-21T04:58:05Z" status: Succeeded - completedTimestamp: "2026-07-21T04:58:23Z" name: Next Version startedTimestamp: "2026-07-21T04:58:19Z" status: Succeeded - completedTimestamp: "2026-07-21T04:58:26Z" name: Jx Variables startedTimestamp: "2026-07-21T04:58:23Z" status: Succeeded - completedTimestamp: "2026-07-21T04:59:10Z" name: Build Npm Install startedTimestamp: "2026-07-21T04:58:26Z" status: Succeeded - completedTimestamp: "2026-07-21T05:00:12Z" name: Build Container Build startedTimestamp: "2026-07-21T04:59:10Z" status: Succeeded - completedTimestamp: "2026-07-21T05:00:30Z" name: Promote Changelog startedTimestamp: "2026-07-21T05:00:13Z" status: Succeeded - completedTimestamp: "2026-07-21T05:00:33Z" name: Promote Helm Release startedTimestamp: "2026-07-21T05:00:31Z" status: Succeeded - completedTimestamp: "2026-07-21T05:01:34Z" name: Promote Jx Promote startedTimestamp: "2026-07-21T05:00:34Z" status: Succeeded - completedTimestamp: "2026-07-21T05:02:12Z" name: Publish Org Kb startedTimestamp: "2026-07-21T05:01:34Z" status: Succeeded - kind: Stage stage: completedTimestamp: "2026-07-21T05:02:12Z" name: from build pack startedTimestamp: "2026-07-21T04:58:05Z" status: Succeeded steps: - completedTimestamp: "2026-07-21T04:58:18Z" name: Git Clone startedTimestamp: "2026-07-21T04:58:05Z" status: Succeeded - completedTimestamp: "2026-07-21T04:58:23Z" name: Next Version startedTimestamp: "2026-07-21T04:58:19Z" status: Succeeded - completedTimestamp: "2026-07-21T04:58:26Z" name: Jx Variables startedTimestamp: "2026-07-21T04:58:23Z" status: Succeeded - completedTimestamp: "2026-07-21T04:59:10Z" name: Build Npm Install startedTimestamp: "2026-07-21T04:58:26Z" status: Succeeded - completedTimestamp: "2026-07-21T05:00:12Z" name: Build Container Build startedTimestamp: "2026-07-21T04:59:10Z" status: Succeeded - completedTimestamp: "2026-07-21T05:00:30Z" name: Promote Changelog startedTimestamp: "2026-07-21T05:00:13Z" status: Succeeded - completedTimestamp: "2026-07-21T05:00:33Z" name: Promote Helm Release startedTimestamp: "2026-07-21T05:00:31Z" status: Succeeded - completedTimestamp: "2026-07-21T05:01:34Z" name: Promote Jx Promote startedTimestamp: "2026-07-21T05:00:34Z" status: Succeeded - completedTimestamp: "2026-07-21T05:02:12Z" name: Publish Org Kb startedTimestamp: "2026-07-21T05:01:34Z" status: Succeeded version: 1.72.0 status: {}