Skip to content

git.status caps its frame; find streams to the caller - #128

Closed
CMGS wants to merge 2 commits into
mainfrom
feat/status-truncation-find-seq
Closed

git.status caps its frame; find streams to the caller#128
CMGS wants to merge 2 commits into
mainfrom
feat/status-truncation-find-seq

Conversation

@CMGS

@CMGS CMGS commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Two bounds the #127 review surfaced outside its scope.

git_status on a large tree (about 100k changed or untracked files, a node_modules checkout) rendered one frame past the 8 MiB cap, so the writer failed and the connection dropped with no terminal frame. The entry list now stops at an eighth of the frame cap in estimated bytes and the result carries truncated: true; the head of the list still arrives, and the field is absent when nothing was cut (old readers ignore it). Fixture resp_git_status_result_truncated.json pins the shape on both sides.

Find accumulated every match on the host with no bound. The Go SDK gains FindSeq (an iter.Seq2 over the same stream; breaking out closes the connection, which ends the walk in the guest — the producer side of that is silkd's budget close from #127) and the Python SDK find_iter; Find/find keep their slice APIs on top of the stream. collectRPC is now a thin loop over streamRPC.

Docs: silkd verb table, Go and Python SDK pages. Gates: cargo fmt/clippy/test (macOS), make lint both GOOS, Go tests in every module, Python suite 154 passed, ruff check clean.

CMGS added 2 commits September 3, 2026 13:08
A status of a large tree rendered one frame past the cap and dropped the
connection with no terminal frame. The entry list now stops at an eighth
of the frame cap in estimated bytes and the result carries truncated: true,
so the head of the list still arrives. The Go SDK gains FindSeq and the
Python SDK find_iter: matches stream to the caller, and leaving the loop
closes the connection, which ends the walk in the guest, so the caller
bounds the result instead of accumulating it. Find keeps its slice API on
top of the same stream.
@CMGS

CMGS commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by the rebuilt branch (same commits on the merged main plus the disconnect fix): see the new PR.

@CMGS CMGS closed this Sep 3, 2026
@CMGS
CMGS deleted the feat/status-truncation-find-seq branch September 3, 2026 05:30
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