@resolveio/server-lib 22.3.222 → 22.3.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1080,7 +1080,7 @@ function normalizeSupportDiagnosisEvidence(values, ownerFiles) {
|
|
|
1080
1080
|
.map(function (entry) {
|
|
1081
1081
|
var type = cleanText(entry.type, 80).toLowerCase();
|
|
1082
1082
|
var artifactPath = cleanText(entry.artifactPath || entry.artifact_path || entry.artifact || entry.path || entry.file, 500);
|
|
1083
|
-
var summary = cleanText(entry.summary || entry.detail || entry.supports || entry.support || entry.message || entry.evidence || entry.reason || entry.rejection_reason || entry.rejectionReason || entry.fact || entry.finding || entry.description || entry.proof || entry.proof_required || entry.proofRequired, 1200)
|
|
1083
|
+
var summary = cleanText(entry.summary || entry.detail || entry.observation || entry.supports || entry.support || entry.message || entry.evidence || entry.reason || entry.rejection_reason || entry.rejectionReason || entry.fact || entry.finding || entry.description || entry.proof || entry.proof_required || entry.proofRequired, 1200)
|
|
1084
1084
|
|| (artifactPath ? "Evidence from ".concat(artifactPath) : '');
|
|
1085
1085
|
var evidenceText = [summary, artifactPath].filter(Boolean).join(' ');
|
|
1086
1086
|
var inferredType = (function () {
|
|
@@ -1817,6 +1817,8 @@ function supportDiagnosisNarrativeText(value, max) {
|
|
|
1817
1817
|
'problem',
|
|
1818
1818
|
'customer_symptom',
|
|
1819
1819
|
'customerSymptom',
|
|
1820
|
+
'reported_behavior',
|
|
1821
|
+
'reportedBehavior',
|
|
1820
1822
|
'reported_issue',
|
|
1821
1823
|
'reportedIssue',
|
|
1822
1824
|
'rationale',
|
|
@@ -2444,6 +2446,7 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2444
2446
|
var rawFailingPath = source.failing_path || source.failingPath;
|
|
2445
2447
|
var rawProofPlan = source.proof_plan || source.proofPlan;
|
|
2446
2448
|
var issueCaseSource = cleanObject(rawIssueCase);
|
|
2449
|
+
var reproductionSource = cleanObject(issueCaseSource.reproduction || issueCaseSource.repro || source.reproduction || source.repro);
|
|
2447
2450
|
var hypothesisSource = cleanObject(source.accepted_hypothesis || source.acceptedHypothesis);
|
|
2448
2451
|
var failingPathSource = cleanObject(source.failing_path || source.failingPath);
|
|
2449
2452
|
var proofPlanSource = cleanObject(source.proof_plan || source.proofPlan);
|
|
@@ -2551,6 +2554,8 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2551
2554
|
'customer_symptom',
|
|
2552
2555
|
'customerSymptom',
|
|
2553
2556
|
'symptom',
|
|
2557
|
+
'reported_behavior',
|
|
2558
|
+
'reportedBehavior',
|
|
2554
2559
|
'issue',
|
|
2555
2560
|
'problem',
|
|
2556
2561
|
'reported_issue',
|
|
@@ -2590,19 +2595,32 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2590
2595
|
|| pickText(source, ['expected_result', 'expectedResult', 'expected', 'expected_business_result', 'expectedBusinessResult', 'primary_goal', 'primaryGoal', 'requested_behavior', 'requestedBehavior', 'desired_result', 'desiredResult'], 1000)
|
|
2591
2596
|
|| (!featureRequestClassified && issueCasePrimaryText ? "Expected customer-facing business result from ticket evidence: ".concat(issueCasePrimaryText) : '')
|
|
2592
2597
|
|| (featureRequestClassified && issueCasePrimaryText ? "Implement the requested workflow: ".concat(issueCasePrimaryText) : '');
|
|
2593
|
-
var observedResult = pickText(issueCaseSource, ['observed_result', 'observedResult', 'observed', 'actual', 'actual_result', 'actualResult', 'current_state', 'currentState', 'customer_symptom', 'customerSymptom', 'symptom'], 1000)
|
|
2594
|
-
|| pickText(source, ['observed_result', 'observedResult', 'observed', 'actual', 'actual_result', 'actualResult', 'current_state', 'currentState', 'customer_symptom', 'customerSymptom'], 1000)
|
|
2598
|
+
var observedResult = pickText(issueCaseSource, ['observed_result', 'observedResult', 'observed', 'actual', 'actual_result', 'actualResult', 'current_state', 'currentState', 'customer_symptom', 'customerSymptom', 'symptom', 'reported_behavior', 'reportedBehavior'], 1000)
|
|
2599
|
+
|| pickText(source, ['observed_result', 'observedResult', 'observed', 'actual', 'actual_result', 'actualResult', 'current_state', 'currentState', 'customer_symptom', 'customerSymptom', 'reported_behavior', 'reportedBehavior'], 1000)
|
|
2595
2600
|
|| (!featureRequestClassified && (browserEvidenceText || issueCasePrimaryText) ? "Observed/reported wrong business result from ticket or screenshot evidence: ".concat(browserEvidenceText || issueCasePrimaryText) : '')
|
|
2596
2601
|
|| (featureRequestClassified ? "Current repo evidence indicates no implemented route/module for ".concat(routeModule || 'the requested workflow', ".") : '');
|
|
2597
2602
|
var accountCustomerContext = pickText(issueCaseSource, ['account_customer_context', 'accountCustomerContext', 'account_context', 'accountContext', 'customer_context', 'customerContext', 'client_context', 'clientContext', 'affected_customer', 'affectedCustomer', 'account', 'customer', 'client', 'user', 'context', 'reporter'], 800)
|
|
2598
2603
|
|| pickText(source, ['account_customer_context', 'accountCustomerContext', 'affected_account_user', 'affectedAccountUser', 'account_context', 'accountContext', 'customer_context', 'customerContext', 'client_context', 'clientContext', 'affected_customer', 'affectedCustomer', 'account', 'customer', 'client', 'user', 'context', 'reporter'], 800)
|
|
2599
2604
|
|| (issueCasePrimaryText ? 'Customer/account context from support ticket intake and hydrated support attachments.' : '')
|
|
2600
2605
|
|| (featureRequestClassified ? 'Customer/account context from support ticket intake.' : '');
|
|
2601
|
-
var rawReproductionStatus = issueCaseSource.reproduction_status
|
|
2602
|
-
|
|
2606
|
+
var rawReproductionStatus = issueCaseSource.reproduction_status
|
|
2607
|
+
|| issueCaseSource.reproductionStatus
|
|
2608
|
+
|| reproductionSource.reproduction_status
|
|
2609
|
+
|| reproductionSource.reproductionStatus
|
|
2610
|
+
|| reproductionSource.status
|
|
2611
|
+
|| source.reproduction_status;
|
|
2612
|
+
var blockingArtifactsText = cleanList(issueCaseSource.blocking_artifacts
|
|
2613
|
+
|| issueCaseSource.blockingArtifacts
|
|
2614
|
+
|| reproductionSource.blocking_artifacts
|
|
2615
|
+
|| reproductionSource.blockingArtifacts
|
|
2616
|
+
|| reproductionSource.missing_artifacts
|
|
2617
|
+
|| reproductionSource.missingArtifacts
|
|
2618
|
+
|| source.blocking_artifacts
|
|
2619
|
+
|| source.blockingArtifacts, 8, 500)
|
|
2603
2620
|
.join(' | ')
|
|
2604
2621
|
.slice(0, 1000);
|
|
2605
|
-
var explicitReproductionBlocker = pickText(issueCaseSource, ['reproduction_blocker', 'reproductionBlocker', 'runtime_blocker', 'runtimeBlocker', 'blocked_reason', 'blockedReason', 'blocker', 'blocked_by', 'blockedBy'], 1000)
|
|
2622
|
+
var explicitReproductionBlocker = pickText(issueCaseSource, ['reproduction_blocker', 'reproductionBlocker', 'runtime_blocker', 'runtimeBlocker', 'blocked_reason', 'blockedReason', 'blocker', 'blocked_by', 'blockedBy'], 1000)
|
|
2623
|
+
|| pickText(reproductionSource, ['reproduction_blocker', 'reproductionBlocker', 'runtime_blocker', 'runtimeBlocker', 'blocked_reason', 'blockedReason', 'reason', 'blocker', 'blocked_by', 'blockedBy'], 1000);
|
|
2606
2624
|
var inferredReproductionBlocked = /\b(?:runtime\s+)?reproduction\s+(?:is\s+)?blocked\b|\bno accessible staged runtime\b|\bstaged (?:mongo|log|runtime) artifacts?.{0,80}\b(?:not accessible|unavailable|missing)\b|\b(?:cannot|unable to) reproduce\b/i.test(issueCaseText);
|
|
2607
2625
|
var inferredReproductionBlocker = explicitReproductionBlocker
|
|
2608
2626
|
|| blockingArtifactsText
|
|
@@ -2614,10 +2632,16 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2614
2632
|
hypothesisSource.evidenceRefs,
|
|
2615
2633
|
hypothesisSource.code_evidence,
|
|
2616
2634
|
hypothesisSource.codeEvidence,
|
|
2635
|
+
hypothesisSource.why_accepted,
|
|
2636
|
+
hypothesisSource.whyAccepted,
|
|
2617
2637
|
source.hypothesis_evidence,
|
|
2618
2638
|
source.hypothesisEvidence,
|
|
2619
2639
|
hypothesisSource
|
|
2620
2640
|
], 10, 800);
|
|
2641
|
+
var hypothesisFalsifiableBy = cleanList(hypothesisSource.falsifiable_by
|
|
2642
|
+
|| hypothesisSource.falsifiableBy
|
|
2643
|
+
|| hypothesisSource.falsifies_by
|
|
2644
|
+
|| hypothesisSource.falsifiesBy, 8, 500).join(' | ').slice(0, 1000);
|
|
2621
2645
|
var gate = {
|
|
2622
2646
|
issue_case: {
|
|
2623
2647
|
customer_complaint: explicitCustomerComplaint || customerIssueCaseText,
|
|
@@ -2632,9 +2656,10 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2632
2656
|
},
|
|
2633
2657
|
issue_class: issueClass || 'missing_wrong_data',
|
|
2634
2658
|
accepted_hypothesis: {
|
|
2635
|
-
statement: pickText(hypothesisSource, ['statement', 'hypothesis', 'root_cause', 'rootCause', 'summary'], 1200)
|
|
2659
|
+
statement: pickText(hypothesisSource, ['statement', 'hypothesis', 'root_cause', 'rootCause', 'root_cause_theory', 'rootCauseTheory', 'theory', 'summary', 'why_accepted', 'whyAccepted'], 1200)
|
|
2636
2660
|
|| hypothesisText,
|
|
2637
|
-
falsifiable_test: pickText(hypothesisSource, ['falsifiable_test', 'falsifiableTest', 'test', 'proof', 'falsifier'], 1000)
|
|
2661
|
+
falsifiable_test: pickText(hypothesisSource, ['falsifiable_test', 'falsifiableTest', 'falsification_method', 'falsificationMethod', 'falsifiable_method', 'falsifiableMethod', 'test', 'proof', 'falsifier'], 1000)
|
|
2662
|
+
|| hypothesisFalsifiableBy
|
|
2638
2663
|
|| (failingPathText ? "Verify the accepted hypothesis against the failing path evidence: ".concat(failingPathText) : ''),
|
|
2639
2664
|
evidence: explicitHypothesisEvidence.length
|
|
2640
2665
|
? explicitHypothesisEvidence
|
|
@@ -2644,7 +2669,7 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2644
2669
|
failing_path: {
|
|
2645
2670
|
frontend: pickText(failingPathSource, ['frontend', 'frontend_path', 'frontendPath', 'eventPath', 'frontend_event_data_path', 'frontendEventDataPath'], 700),
|
|
2646
2671
|
backend: pickText(failingPathSource, ['backend', 'backend_path', 'backendPath', 'methodPublicationPath', 'backend_method_publication_query_path', 'backendMethodPublicationQueryPath'], 700),
|
|
2647
|
-
shared_library: pickText(failingPathSource, ['shared_library', 'sharedLibrary', 'library', 'lib'], 700),
|
|
2672
|
+
shared_library: pickText(failingPathSource, ['shared_library', 'sharedLibrary', 'shared_library_path', 'sharedLibraryPath', 'library', 'lib'], 700),
|
|
2648
2673
|
data_query: pickText(failingPathSource, ['data_query', 'dataQuery', 'query', 'data_path', 'dataPath'], 700),
|
|
2649
2674
|
description: pickText(failingPathSource, ['description', 'path_chain', 'pathChain', 'chain', 'visibility_gate_trace', 'visibilityGateTrace', 'reported', 'verified', 'reported_path', 'reportedPath', 'verified_path', 'verifiedPath', 'path', 'assessment', 'summary', 'route', 'frontend_event_data_path', 'frontendEventDataPath', 'backend_method_publication_query_path', 'backendMethodPublicationQueryPath', 'data_path', 'dataPath'], 1200) || failingPathText
|
|
2650
2675
|
},
|