fix(inference): #86 tighten Call 1 prompt and closed lists
Ship locked expert Call 1 seed: order cats before edge, species=best confidence, mill-count edge rules, Wild for cookies/burl, multi figure, feature_tag_ids only (no free-text bags, no grade). LISTS keys match the seed; feat- prefix stripped for the model. Gate and review UI apply feature_tag_ids. Seed auto-activates on deploy when still seed-authored.
This commit is contained in:
@@ -269,12 +269,8 @@ export interface Call1Suggestions {
|
||||
edge_type_term_id?: number | null;
|
||||
figure_term_ids?: number[];
|
||||
figure_confidence?: number | null;
|
||||
grade_term_id?: number | null;
|
||||
grade_confidence?: number | null;
|
||||
character?: string | null;
|
||||
inclusions?: string | null;
|
||||
voids?: string | null;
|
||||
checks?: string | null;
|
||||
feature_tag_ids?: number[];
|
||||
feature_tag_confidence?: number | null;
|
||||
}
|
||||
|
||||
export interface Call1Result {
|
||||
|
||||
@@ -226,6 +226,10 @@
|
||||
}
|
||||
if (s.edge_type_term_id) edgeTypeId = s.edge_type_term_id;
|
||||
if (s.figure_term_ids) { figureIds = [...s.figure_term_ids]; recs.push(...s.figure_term_ids); }
|
||||
if (s.feature_tag_ids?.length) {
|
||||
featTagIds = [...s.feature_tag_ids];
|
||||
recs.push(...s.feature_tag_ids);
|
||||
}
|
||||
// Grade is not AI-suggested (METADATA-40) — owner judgment. Do not auto-fill.
|
||||
aiRecommendations = recs;
|
||||
aiNote = recs.length ? `AI suggested ${recs.length} field${recs.length === 1 ? '' : 's'} — review & edit below.` : 'No confident AI suggestions.';
|
||||
|
||||
Reference in New Issue
Block a user