AGENTS/SPEC: cross-checks with ROT-8-viz now need -n

ROT-8-viz switched its default I/O to serial ASCII (cells >= 8 bits) with the
old decimal numbers behind -n/--numbers, so the handoff notes that tell the
next session to compare numeric OUT streams against rot8_test have to say -n.
Also records the new commit hash of that repo (a083a34) and that its default is
serial now, which is exactly what the ASCII from clb_digits wants.

Checked: rot8_test.exe -n on the asm/test.r8asm tape gives the same 93 values
as r8forge_tape_run.
This commit is contained in:
dsh committed 2026-11-09 16:25:28 +08:00
1 parent c4048132cc
commit ad45823768
2 files changed
+6 -5

No files matched your search

+5 -4
View File
@@ -46,9 +46,9 @@ r8forge_synth_test examples/full_add.r8asm # all eight combinations ok
r8forge_derive verify_loop.r8asm -1 0=5 # out 5 0
```
**另一个仓库**:`../ROT-8-viz`(fork `dsh/ROT-8-viz`,`main` = `6e51df5`)有串行 7E1
(`-s` / `--parity` / `--stop` / `--7e1`),`clb_digits` 产出的 ASCII 正好能直接喂它的
`OUT`。那边的工作树也是干净的。
**另一个仓库**:`../ROT-8-viz`(fork `dsh/ROT-8-viz`,`main` = `a083a34`)
默认 **串行 ASCII I/O**(cell ≥ 8 位;数值 I/O 用 `-n` / `--numbers`),另有 7E1 帧
(`--parity` / `--stop` / `--7e1`)—— `clb_digits` 产出的 ASCII 正好直接喂它的 `OUT`。
> **动手之前,先把这份文件从头读完**,再看 `SPEC.md`(本仓库自己的:`%synth` 指令 +
> `asm/` 里每个宏的契约、纸带长度、验证口径)、上游语言规格
@@ -235,7 +235,8 @@ inline constexpr uint32_t kDefaultCellMask = (1u << kDefaultCellSize) - 1u;
`ROT-8-viz/` 是 upstream `starcells/ROT-8` 的 fork(`origin` = `dsh/ROT-8-viz`,`main`),
默认 **11 位 x 259 格**,几何还能运行期改(`--cell` / `--mem`;默认值与字段在
`include/rot8/rot8.h`,名字就是 `cell_size` / `mem_size`)。对答案的办法:
`ROT-8-viz/build/Release/rot8_test.exe <tape.rot8>` 把每个 `OUT` 按行打出来,
`ROT-8-viz/build/Release/rot8_test.exe -n <tape.rot8>` 把每个 `OUT` 按行打成十进制数
(**`-n` 不能省**:那边的默认 I/O 是串行字符,直接喂只会得到一串字符),
和 `r8forge_derive <src.r8asm> -1` 的 `out` 逐位比即可。
* 位宽变大还有个正面效果:`fibonacci` 不再在 256 处回绕,现在跑出 **13 项**(到 233)。
* **旧 tape 换到新位宽上不只是算错,还可能永远跑不完**:按 8 位写死的程序里
+1 -1
View File
@@ -711,7 +711,7 @@ E 大宏(`clb_ones` / `loop` / `clb_digits` + `clb_undigits`)→ F 语言特
* **必须留在 65536 条指令以下**:ROT-8-viz 的 `INS_SIZE`(`include/rot8/rot8.h`)是 65536,
超了 `read_tape` 会截断,交叉验证就废了。所以 hash 只留两轮、每个宏只调一次。
* 三个实现(`r8forge_derive`、`r8forge_tape_run`、ROT-8-viz 的 `rot8_test`)对这份 `out`
* 三个实现(`r8forge_derive`、`r8forge_tape_run`、ROT-8-viz 的 `rot8_test -n`)对这份 `out`
逐位一致;最后 6 个值 `1322 5 82 0 1786 94` 是老 hash 的指纹
(`1322`/`1786` = 两轮的 h,`5`/`94` = 两轮的 PH,`82` = 被乘数保留、`0` = 乘数被吃)。