Repository navigation
docs(components): document marker_mode on the six pages that omit it, and collapse's max_frac - #68
Merged
OsherElhadad merged 1 commit intoAug 18, 2026
Conversation
… and collapse's max_frac `marker_mode` is the per-component reversibility switch: `full` (the default) stashes the original and leaves a resolvable `<<cg:HASH>>` marker so the expand tool can restore it, while `summary` and `off` are deliberate irreversible drops. It is accepted and honored by ten components, but only four documented it — `mask`, `cmdfilter`, `extract` and `extract_llm`. Anyone assembling a pipeline around recoverability had no way to learn from the docs that the other six take the same knob. Adds the row to `collapse`, `summarize`, `dedup`, `failed_run`, `skeleton` and `smartcrush`, reusing the wording already in `mask.md`, and lists it in the matching `components.md` overview entries (which also omitted it for `mask`). Also documents `collapse.max_frac`, which was undocumented entirely: it sets the collapse threshold as a fraction of the model's context window and wins over `max_tokens` when the window is known (`resolveBudget`, common.go:47). Verified: every `yaml:"..."` tag on all twelve documented components now appears in its page, and `mkdocs build --strict` passes. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Itay-Nakash <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
marker_modeis the per-component reversibility switch:full(default) — stash the original and leave a resolvable<<cg:HASH>>marker, so the expand tool can restore itsummary/off— deliberate irreversible dropsTen components accept and honor it, but only four documented it:
mask,cmdfilter,extract,extract_llm. So someone assembling a pipeline around recoverability could not learn from the docs that the other six take the same knob.This adds the row to the six pages that omitted it —
collapse,summarize,dedup,failed_run,skeleton,smartcrush— reusing the exact wording already inmask.md, and lists it in the matchingcomponents.mdoverview entries (which omitted it formasktoo).It also documents
collapse.max_frac, which was undocumented entirely: it sets the collapse threshold as a fraction of the model's context window and wins overmax_tokenswhen the window is known (resolveBudget,components/offload/common.go:47).Docs only — no behavior change, no defaults touched.
How it was found
Diffing every
yaml:"..."struct tag undercomponents/against the Configuration table on each component's page. Result before → after:collapsemarker_mode,max_fracsummarizemarker_modededupmarker_modefailed_runmarker_modeskeletonmarker_modesmartcrushmarker_modemask,cmdfilter,extract,extract_llm,format,toonVerification
yaml:tag on all twelve documented components now appears on its page (re-ran the same diff: 0 remaining).mkdocs build --strictpasses — the checkdocs.yamlruns on anydocs/**change.parseMarkerMode→tryMark/mark), so this documents real behavior rather than a parsed-but-ignored field.Two follow-ups I did not put in this PR
Happy to open either if useful — flagging rather than assuming.
maskis the observation-masking baseline andsummarizeis the summary-buffer baseline from the agent-context literature, and it would be worth saying so with citations. The closest published head-to-head is The Complexity Trap (JetBrains Research, DL4C @ NeurIPS 2025, MIT code) — SWE-bench Verified, 500 instances, five model configs — which finds observation masking halves cost while matching or exceeding LLM summarization's solve rate. Its Dec-2025 follow-up adds the mechanism: summarization makes agents run 13–15% longer, and it reports a 10-turn masking window as optimal (mask.keep_recentdefaults to 3 here). That is a documentation/positioning change, not a defaults change — measuring before moving a default is the right order.trim_messages,ChatMemoryBuffer,BufferedChatCompletionContext,ChatHistoryTruncationReducer) and no component covers it today —maskdrops tool-output content by age and keeps every turn, which is a different thing. It is the baseline a reviewer asks about first.🤖 Generated with Claude Code