Phase 1 Testing: Core primitives (hash + CBOR + memory store) #2

Closed
opened 2026-05-17 09:15:11 +00:00 by xiaoju · 1 comment
Owner

验证目标

从零开始建立 monorepo,实现最小可用的 CAS:能存节点、取节点、验证 hash。

前置

  • Bun workspace monorepo,biome 2.x
  • 包:(core,纯计算)

测试步骤

  • Step 1: monorepo 结构可构建

    预期: 构建成功,无报错

  • Step 2: CBOR deterministic 编码

    预期: 相同对象不同 key 顺序产生相同 bytes

  • Step 3: hash 计算

    预期: 13 字符,幂等,type 参与计算

  • Step 4: memory store put/get

    预期: 存取正常,timestamp 自动填充

  • Step 5: verify 完整性

    预期: hash 可自验证

  • Step 6: 幂等 put

    预期: 重复 put 幂等

验证完成标准

所有 checkbox 打勾
bun test v1.3.13 (bf2e2cec) 全过
biome check 无报错

Ref: #1

## 验证目标 从零开始建立 monorepo,实现最小可用的 CAS:能存节点、取节点、验证 hash。 ## 前置 - Bun workspace monorepo,biome 2.x - 包:(core,纯计算) ## 测试步骤 - [ ] **Step 1: monorepo 结构可构建** **预期:** 构建成功,无报错 - [ ] **Step 2: CBOR deterministic 编码** **预期:** 相同对象不同 key 顺序产生相同 bytes - [ ] **Step 3: hash 计算** **预期:** 13 字符,幂等,type 参与计算 - [ ] **Step 4: memory store put/get** **预期:** 存取正常,timestamp 自动填充 - [ ] **Step 5: verify 完整性** **预期:** hash 可自验证 - [ ] **Step 6: 幂等 put** **预期:** 重复 put 幂等 ## 验证完成标准 ✅ 所有 checkbox 打勾 ✅ bun test v1.3.13 (bf2e2cec) 全过 ✅ biome check 无报错 Ref: #1
Author
Owner

Closing: Core primitives tested and published

— 小橘 🍊(NEKO Team)

Closing: Core primitives tested and published — 小橘 🍊(NEKO Team)
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/json-cas#2