feat: 工具链与 vocab 模块(任务书 01)
- npm 包、TypeScript、node --test、dependency-cruiser;结构.md 第六部分的检查规则一次写全,临时违规实测均报错。 - vocab:基础类型与编号格式、规范序列化与哈希、角色/阶段/提交名单、指标与运行定义及结果、模型用量、16 种提交的 TypeBox 字段定义。 - 测试:规范序列化预期串手写,哈希预期值用 sha256sum 算出;每种提交一份合法样例。 - 结构.md 第八部分补 vocab 对外内容;WORK_LOG 记下用户决定。 用户决定(2026-10-01):"同意 A,vocab 上限改为 1100 行";"同意 A:解释的 cells 去掉 minItems,改为可选";"3、4、5、6:同意保留你的写法";答案路径与保障动手次数"tasks 只记读到的原始内容",对表由以后有位置表的模块现算。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
// vocab:各模块共用的类型、名单、提交字段定义,以及规范序列化与哈希两个函数(docs/结构.md 第二部分)。
|
||||
export { canonical, hash, Direction, DIRECTIONS, Id, Measured, type Json } from "./basics.ts";
|
||||
export {
|
||||
ROLES,
|
||||
STAGES,
|
||||
SUBMISSION_KINDS,
|
||||
type Role,
|
||||
type Stage,
|
||||
type SubmissionKind,
|
||||
} from "./roster.ts";
|
||||
export {
|
||||
ANSWER_PATH_KEY,
|
||||
AnswerPath,
|
||||
HypothesisMetric,
|
||||
JudgedResult,
|
||||
METRIC_LAYERS,
|
||||
MetricDefinition,
|
||||
MISSING_POLICIES,
|
||||
MISSING_POLICY_EFFECTS,
|
||||
ModelUsage,
|
||||
ProcessResult,
|
||||
RunDefinition,
|
||||
SAFEGUARD_TRIGGERS_KEY,
|
||||
SafeguardTriggers,
|
||||
VERDICTS,
|
||||
type MetricLayer,
|
||||
type MissingPolicy,
|
||||
type Verdict,
|
||||
} from "./runs.ts";
|
||||
export { Range, SUBMISSION_SCHEMAS, type Submission } from "./submissions.ts";
|
||||
Reference in New Issue
Block a user