fix(industry): 审计收尾 — MEDIUM + LOW 全部清零
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

M-1: Industries 创建弹窗添加 cold_start_template + pain_seed_categories
M-3: industryStore console.warn → createLogger 结构化日志
B2: classify_with_industries 平局打破 + 归一化因子 3.0 文档化
S3: set_account_industries 验证移入事务内消除 TOCTOU
T1: 4 个 SaaS 请求类型添加 deny_unknown_fields
I3: store_trigger_experience Debug 格式 → signal_name 描述名
L-1: 删除 Accounts.tsx 死代码 editingIndustries
L-3: Industries.tsx filters 类型补全 source 字段
This commit is contained in:
iven
2026-04-12 20:37:48 +08:00
parent 3cff31ec03
commit f8c5a76ce6
7 changed files with 28 additions and 13 deletions

View File

@@ -426,7 +426,7 @@ async fn store_trigger_experience(
let entry = zclaw_growth::MemoryEntry::new(
agent_id,
zclaw_growth::MemoryType::Experience,
&format!("trigger/{:?}", signal),
&format!("trigger/{}", signal_name),
content,
);

View File

@@ -9,6 +9,9 @@ import { create } from 'zustand';
import { persist } from 'zustand/middleware';
import type { IndustryFullConfig, AccountIndustryItem } from '../lib/saas-client';
import { saasClient } from '../lib/saas-client';
import { createLogger } from '../lib/logger';
const log = createLogger('industryStore');
// ============ Types ============
@@ -61,7 +64,7 @@ export const useIndustryStore = create<IndustryStore>()(
configs[item.industry_id] = fullConfig;
} catch (err) {
// Non-fatal: one industry failing shouldn't block others
console.warn(`[industryStore] Failed to fetch config for ${item.industry_id}:`, err);
log.warn(`Failed to fetch config for ${item.industry_id}:`, err);
}
}