Skip to content

chore(cli): carry a pull record's bundle-only fields on its bundle kind - #2651

Merged
thiras merged 3 commits into
mainfrom
fix/2642-bundle-fields-on-kind
Oct 28, 2026
Merged

thiras merged 3 commits into
mainfrom
fix/2642-bundle-fields-on-kind

Conversation

@yigitdot

@yigitdot yigitdot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

PullRecord carried files_started, files_landed and bundle on every run, with blob and entry runs writing 0, 0, null, while the page already gates them on kind === "bundle". Makes PullKind a tagged enum flattened into the record, with the bundle fields on its Bundle variant only; the dashboard's PullFields becomes a discriminated union on kind and its contract test pins it. Fixtures regenerated. Pre-mainnet record-shape change; no reader of the old shape is kept or tested.

Observed old-record behavior (not pinned; nothing depends on it before mainnet): a record with flat bundle fields parses. A bundle record's flat files_started/files_landed feed the Bundle variant, and the bundle key and a blob record's flat fields are ignored as unknown keys; read_records counts none of them as unreadable. Because the counts key is now counts, a finished bundle record in the flat shape reads with counts: None — accepted pre-mainnet, and the page does not render counts.

An entry written to a file runs the bundle path, which reports file progress and counts. Per the issue ("a blob or entry record carries no bundle fields"), its record keeps the bytes and drops the rest; the recorder's docs say so and an_entry_run_records_no_bundle_fields pins it.

Closes #2642

🤖 Generated with Claude Code

PullKind is a kind-tagged enum flattened into PullRecord; files_started,
files_landed and the end-of-run counts live on its Bundle variant, so a
blob or entry record carries no bundle fields. The dashboard's PullFields
is a discriminated union on kind, and its contract test pins each arm's
keys. Status fixtures regenerated.

An old-shape record on disk still reads: its flat file counts feed the
bundle variant, counts read as none, and leftover keys are ignored.

Closes #2642

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 27, 2026 21:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-code-quality

github-code-quality Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: Rust, Solidity

Rust / code-coverage/cargo-llvm-cov

main a86c912 fix/2642-bundle-fiel... f257481 +/-
77% 77% 0%
View coverage of the 3 most impacted files.
File main a86c912 fix/2642-bundle-fiel... f257481 +/-
crates/protocol/src/framing.rs 93% 92% -1%
crates/client/src/scheduler.rs 94% 94% 0%
crates/cli/src/...nds/activity.rs 88% 89% +1%

Solidity / code-coverage/forge

main a86c912 fix/2642-bundle-fiel... f257481 +/-
92% 92% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated October 28, 2026 02:00 UTC

An entry written to a file runs the bundle path, which reports file
progress and counts; its record keeps the bytes and none of the rest.
The recorder's docs say so, and a test pins it. The flat-field record
test reads in present tense and writes a blob record as 0, 0, null.
Comment fixes: counts are set only when a run ended with a summary,
the files column is null for a blob or entry run, and PullKind follows
PullTarget in api.ts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

Gas snapshot

No gas changes vs base.

@thiras thiras added this to the v0.3 milestone Oct 28, 2026
Pre-mainnet, no reader of the flat record shape needs to survive, so the
test that pinned old records parsing goes. The recorder docs name the
entry run instead of "a non-bundle run", and the bundle round-trip test
also pins `counts` serializing as null before the run has them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thiras
thiras merged commit 0273aad into main Oct 28, 2026
37 checks passed
@thiras
thiras deleted the fix/2642-bundle-fields-on-kind branch October 28, 2026 02:21
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.

cli: carry a pull record's bundle-only fields on its bundle kind

3 participants