Skip to content

Commit 59adb0c

Browse files
committed
Fix audit doc: multiple prompt refinements from execution
Prompt 3.1: Relaxed receipt has_store requirement to match compiler behavior (optional for receipts, mandatory for resource/shared). Prompt 4.2: Added note about missing dedicated negative stateful scenarios (duplicate vesting claim) as a 0.15.x follow-up item. Prompt 5.3: Replaced imaginary --schema-manifest-report CLI flag with the actual -o output workflow, matching the --backend-shape-report fix. All 524 tests pass.
1 parent 54ae5e0 commit 59adb0c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎docs/CELLSCRIPT_0_15_PRE_RELEASE_AUDIT_AND_HARDENING.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ done
197197
> - `verify-artifact` 对每个捆绑示例都通过,且 `target_profile` 确实是 `ckb`。
198198
> - `examples/registry.cell` 和 `examples/language/*.cell` 作为非生产语言示例,至少不导致编译器 panic。
199199
> - 严格模式下,`has transfer` 和 `has destroy` 被正确拒绝(CS0150/CS0151)。
200-
> - 所有资源、共享状态、收据都声明了 `has store`(除了明确设计为 ephemeral 的 receipt)。
200+
> - 所有 resource 和 shared 声明了 `has store`;receipt 的 `has store` 是可选的(ephemeral records 可 omit)。
201201
202202
### 3.2 CKB 发布门控脚本
203203

@@ -287,6 +287,7 @@ cargo run --locked -p cellscript -- explain-proof \
287287
> - 多步协议流程(如 vesting grant → claim → revoke)在本地 CKB 链上按顺序执行成功。
288288
> - 中间状态 Cell 在每个步骤后都可被正确索引。
289289
> - 违反 invariant 的交易(如重复 claim 同一 vesting grant)被正确拒绝。
290+
> **Note**: Dedicated negative stateful scenarios (e.g. duplicate vesting claim) are not yet present in the current acceptance script. Lock invalid-spend matrix covers script-level rejection, but action-level stateful negative evidence should be added as a 0.15.x follow-up.
290291
> - 时间锁示例的 `env::current_timepoint()` 映射到 HeaderDep#0 epoch number,而非 Unix 时间戳。
291292
292293
---
@@ -373,11 +374,11 @@ docs/CELLSCRIPT_0_15_RELEASE_NOTES_DRAFT.md
373374
### 5.3 Molecule Schema 与元数据契约
374375

375376
```bash
376-
# 生成 schema manifest 报告
377-
mkdir -p target/cellscript-schema-manifest
377+
# 生成 ELF + metadata,从 .meta.json 中检查 schema 声明
378378
cargo run --locked -p cellscript -- \
379379
examples/token.cell --target riscv64-elf --target-profile ckb --primitive-strict 0.15 \
380-
--schema-manifest-report target/cellscript-schema-manifest/schema-manifest-report-main.json
380+
-o target/cellscript-audit/token.elf
381+
# Schema manifest 在 token.elf.meta.json → molecule_schema_manifest 中
381382
```
382383

383384
**Prompt**:

0 commit comments

Comments
 (0)