fix(consult): race a bounded VedAstro gateway on the chat path
Independent Staging Quality Gate / validate (push) Successful in 10m15s
Independent Staging Quality Gate / publish (push) Successful in 10m2s

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:
Jesse_Chen
2026-08-19 17:51:27 +08:00
parent 0eedf92992
commit bffc74efc5
9 changed files with 321 additions and 11 deletions
@@ -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/);