Skip to content

feat: enforce minimal trace size - #2190

Merged
DavePearce merged 4 commits into
mainfrom
2157-feat-enforce-minimal-trace-size
Aug 28, 2026
Merged

feat: enforce minimal trace size#2190
DavePearce merged 4 commits into
mainfrom
2157-feat-enforce-minimal-trace-size

Conversation

@DavePearce

Copy link
Copy Markdown
Contributor

No description provided.

@DavePearce DavePearce linked an issue Aug 26, 2026 that may be closed by this pull request
@DavePearce
DavePearce force-pushed the 2157-feat-enforce-minimal-trace-size branch from 30770cb to 337071b Compare August 27, 2026 03:38
This removes the AllowPadding() flag which is actually not required.

Signed-off-by: DavePearce <dave01001110@gmail.com>
This reworks the padding mechanism to ensure that each module has a
pre-determined minimum trace size, according to the shift schedule.
Specifically, for a maximum negative shift of N and a maximum positive
shift of M, we enforce a minimum size of N+M+1.

This also removes the notion of "defensive" padding, as this is not
really required any more.  Specifically, because ZkC has fairly minimal
requirements on shifting.

This puts through a simple fix for json.Writer which ensures traces can
be correctly written out into JSON, even in the presence of static
reference tables.

Signed-off-by: DavePearce <dave01001110@gmail.com>
This now adds support for printing the trace generated from "zkc trace".
The reason for this is simply to aid debugging.

Signed-off-by: DavePearce <dave01001110@gmail.com>
@DavePearce
DavePearce force-pushed the 2157-feat-enforce-minimal-trace-size branch from 337071b to 358eb3b Compare August 27, 2026 03:39
The initial padding row has been dropped, since this is no longer
required.  Specifically, its main purpose was to handle lookups with
"manual selectors".  However, we now have conditional lookups and,
hence, no need for this mode.

Signed-off-by: DavePearce <dave01001110@gmail.com>
@DavePearce
DavePearce force-pushed the 2157-feat-enforce-minimal-trace-size branch from 358eb3b to 00f2747 Compare August 27, 2026 05:37
@DavePearce
DavePearce enabled auto-merge (squash) August 27, 2026 21:36
@DavePearce
DavePearce merged commit 82f78c8 into main Aug 28, 2026
22 checks passed
@DavePearce
DavePearce deleted the 2157-feat-enforce-minimal-trace-size branch August 28, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: enforce minimal trace size

2 participants