fix(consult): race a bounded VedAstro gateway on the chat path
Foreground still skips the heavy overview stack, but overlaps a timed gateway so official evidence can merge when it finishes in budget. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -67,6 +67,8 @@ const NOTE_LABELS: Readonly<Record<string, string>> = {
|
||||
official_raw_archive_not_auditable_for_this_run: "官方原始档案本轮不可审计",
|
||||
official_raw_archive_is_auditable: "官方原始档案可审计",
|
||||
official_cloud_evidence_available: "官方云证据可用",
|
||||
foreground_optional_evidence_timeout: "前台官方云证据超时,本轮未赶上",
|
||||
gateway_invocation_error: "官方云网关调用失败",
|
||||
claims_capped_until_pyjhora_jhora_jyotishganit_are_invoked_for_this_run: "结论上限受外部引擎调用限制",
|
||||
three_engine_runtime_closure_available: "三引擎运行时已闭环",
|
||||
complete_packet_required_for_high_confidence: "高置信度需完整证据包",
|
||||
|
||||
@@ -270,6 +270,7 @@ const validationKeys = new Set([
|
||||
"confidencecap", "summary", "conclusion", "publiccontextonly", "similarpubliccases",
|
||||
"highsimilaritypublicreferencesavailable", "requesteduncovereddomains", "timingstate",
|
||||
"partialmatch", "narayanastatus", "transitstatus", "productiontuningallowed", "nomajorityvote",
|
||||
"vedastrocrosscheck", "officialclosurestate", "officialclosurereason", "natal", "ascendant",
|
||||
]);
|
||||
|
||||
const domainDetailsKeys = new Set([
|
||||
@@ -465,6 +466,7 @@ function projectValidationEvidence(context: ReturnType<typeof toAgentConsultatio
|
||||
technique_truth: context.evidence_contract.technique_truth,
|
||||
reference_transparency: context.reference_transparency,
|
||||
shadbala_boundary: context.local_layers.shadbala_boundary,
|
||||
vedastro_cross_check: context.vedastro_cross_check,
|
||||
}, validationKeys, { allowAstrologyEntityKeys: true });
|
||||
const output = record(validation);
|
||||
const audit = projectTechniqueAudit(context.evidence_contract.technique_audit_table);
|
||||
@@ -487,6 +489,7 @@ const SHARED_MUST_USE_LAYERS = [
|
||||
"Arudha / UL / A10",
|
||||
"Western natal (tropical)",
|
||||
"Transits / Sade Sati",
|
||||
"VedAstro Cloud State",
|
||||
] as const;
|
||||
|
||||
const DOMAIN_MUST_USE_LAYERS: Readonly<Record<string, readonly string[]>> = {
|
||||
@@ -648,6 +651,7 @@ export function toAgentConsultationContext(data: JsonRecord) {
|
||||
range_boundary_contexts: record(data.range_boundary_contexts),
|
||||
thematic_evidence: selectedTheme,
|
||||
vedastro_gateway: record(data.vedastro_gateway),
|
||||
vedastro_cross_check: record(consumerContext.vedastro_cross_check),
|
||||
external_engine_evidence: {
|
||||
runtime_truth: record(data.runtime_truth), numerical_parity: record(data.external_parity_gate),
|
||||
real_case_calibration: record(data.real_case_calibration),
|
||||
|
||||
@@ -157,6 +157,7 @@ test("projects only bounded server-selected evidence to the model", () => {
|
||||
{ technique: "Narayana Dasha", status: "executed", system: "jyotish" },
|
||||
{ technique: "Functional Benefic/Malefic", status: "executed", key_functional_benefics: ["Jupiter"] },
|
||||
{ technique: "Western natal (tropical)", status: "executed", system: "western" },
|
||||
{ technique: "VedAstro Cloud State", status: "executed", boundary: "official_cloud_evidence_available" },
|
||||
{ technique: "MEVG / Global Web Evidence", status: "blocked", boundary: "caps_claims_until_global_web_evidence_runs" },
|
||||
],
|
||||
varga_spectrum: {
|
||||
@@ -169,9 +170,18 @@ test("projects only bounded server-selected evidence to the model", () => {
|
||||
natal: { sun: "Aries", moon: "Taurus", ascendant: "Leo" },
|
||||
techniques: { transits: { status: "executed" } },
|
||||
},
|
||||
vedastro_cross_check: {
|
||||
status: "executed",
|
||||
official_closure_state: "official_verified",
|
||||
natal: { sun: "Leo", moon: "Cancer", ascendant: "Scorpio" },
|
||||
},
|
||||
},
|
||||
reference_transparency: { similar_public_cases: { status: "public_context_only" } },
|
||||
rectification: { summary: "none" },
|
||||
vedastro_gateway: {
|
||||
official_closure_state: "official_verified",
|
||||
official_raw_response: { lat: 25.03, lon: 121.56, hour: 3, minute: 4 },
|
||||
},
|
||||
});
|
||||
const output = toModelOutput(context);
|
||||
const careerPlan = createConsultationPlan({ userIntent: "事业如何", theme: "career" });
|
||||
@@ -231,6 +241,9 @@ test("projects only bounded server-selected evidence to the model", () => {
|
||||
assert.equal(Array.isArray(mustUse), true);
|
||||
assert.equal((mustUse as string[]).includes("Yogas"), true);
|
||||
assert.equal((mustUse as string[]).includes("Arudha / UL / A10"), true);
|
||||
assert.equal((mustUse as string[]).includes("VedAstro Cloud State"), true);
|
||||
assert.equal((mustUse as string[]).includes("MEVG / Global Web Evidence"), false);
|
||||
assert.equal(serialized.includes("Scorpio"), true);
|
||||
assert.equal(serialized.includes("official_verified"), true);
|
||||
assert.equal(serialized.includes("https://"), false);
|
||||
});
|
||||
|
||||
@@ -21,6 +21,8 @@ test("web consult compute and projection keep the live skill's locally computed
|
||||
}
|
||||
assert.match(attach, /_compact_yoga_entry/);
|
||||
assert.match(attach, /_compact_chara_dasha/);
|
||||
assert.match(attach, /_join_foreground_vedastro/);
|
||||
assert.match(attach, /skip_vedastro_main_entry_overview': defer_optional_external_evidence/);
|
||||
assert.doesNotMatch(attach, /defer_optional_external_evidence = False/);
|
||||
|
||||
assert.match(workflow, /yogas: context\.local_layers\.yogas/);
|
||||
|
||||
Reference in New Issue
Block a user