Skip to content

refactor(snapshot): drop the bridge truncation dimension; stop promising --scope for depth caps - #2511

Open
thymikee wants to merge 1 commit into
fix/snapshot-truncation-disclosurefrom
chore/truncation-residue-simplify
Open

refactor(snapshot): drop the bridge truncation dimension; stop promising --scope for depth caps#2511
thymikee wants to merge 1 commit into
fix/snapshot-truncation-disclosurefrom
chore/truncation-residue-simplify

Conversation

@thymikee

Copy link
Copy Markdown
Member

Stacked on #2510 (merge that first; this diff is the top commit). Second-order cleanup after the shared truncation disclosure.

Drop the truncation dimension inference

The bridge adapter guessed a truncation dimension (nodes / depth / payload) and limit from counts and put them in the acquisition residue. Nothing rendered them: residue never reaches the CLI, and the only consumer was the comparison-identity string in ios-snapshot-planning.ts, where { kind: 'truncated' } yields the same comparability (two cut captures compare equal; a cut and a complete one do not). The runner never produced the field. IosTruncationDimension and the inference function are gone; createAcquisition and createAcquisitionResidue lose the parameters that only fed it.

Depth-cap warning stops promising --scope

The copy said "Re-run with --depth N --scope <container> only if you need deeper content." On iOS, scope narrows the presented view; acquisition is scope-blind, and the private AX ladder already extends depth on its own. The warning now says the backend capped the tree and what to do instead (navigate so the content sits higher; screenshot for the rest), the same shape as the new truncation disclosure.

Tests: residue fixtures updated; the three depth-copy assertions updated. Lint, fallow, typecheck green.

…ing --scope for depth caps

The dimension and limit the bridge adapter inferred for a cut capture had
no renderer and one consumer, the comparison-identity string, where the
kind alone gives the same comparability. The runner never produced them.

The depth-cap warning suggested --scope to read deeper content; on iOS
scope narrows presentation and acquisition stays scope-blind.
@github-actions

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
Installed (including dependencies) 4.50 MB 4.50 MB -368 B
Package (unpacked) 4.50 MB 4.50 MB -368 B
Package (download) 1.32 MB 1.32 MB -117 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 23.2 ms 22.8 ms -0.3 ms
CLI --help 62.1 ms 62.4 ms +0.2 ms

@thymikee
thymikee added this pull request to stack #2513 September 12, 2026 12:07
@thymikee

Copy link
Copy Markdown
Member Author

No code findings in the cleanup layer at 2e9dedb. Removing inferred truncation dimensions preserves the complete-versus-truncated comparison, and the depth warning no longer promises an acquisition change from --scope. There are no conflicts, but merge depends on the warning correction in #2510. The iOS smoke failure is automation-longpress not becoming visible after scrolling; it appears unrelated to this layer’s residue/copy changes and still needs resolution before merge.

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.

1 participant