diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 00:56:57 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-10 01:03:33 -0300 |
| commit | 4e5e1802f3f685a70740e9527a154544b3588e33 (patch) | |
| tree | 558d016439168c734b2d263386eeb100f960cb14 /src | |
| parent | e0afc6d3fd96aaf0a887decdef39a7144503c7fd (diff) | |
| download | pardes-4e5e1802f3f685a70740e9527a154544b3588e33.tar.gz pardes-4e5e1802f3f685a70740e9527a154544b3588e33.zip | |
tape: a traced misprediction (PARDES_REPLICA_TRACE) shows each answer's bytes, not its length alone: two answers of one length that differ say which bytes do
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src')
| -rw-r--r-- | src/tape.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tape.zig b/src/tape.zig index b1bcc31d..4db78b86 100644 --- a/src/tape.zig +++ b/src/tape.zig @@ -1213,7 +1213,8 @@ pub fn describe(bytes: []const u8, w: *std.Io.Writer) void { const id = std.mem.bytesToValue(u16, payload[0..2]); w.print("host {s}", .{if (id < host_fns.len) host_fns[id] else @tagName(@as(Site, @fromBackingInt(@intCast(id - host_fns.len))))}) catch {}; }, - .ret => if (payload.len <= 8) w.print("ret {x}", .{payload}) catch {} else w.print("ret ({d} bytes)", .{payload.len}) catch {}, + // Its bytes when traced: which field of equal length differs. + .ret => if (payload.len <= 8 or libc.getenv("PARDES_REPLICA_TRACE") != null) w.print("ret {x}", .{payload}) catch {} else w.print("ret ({d} bytes)", .{payload.len}) catch {}, else => w.print("{t} ({d} bytes)", .{ kind, payload.len }) catch {}, } w.writeByte('\n') catch {}; |
