Repository navigation
docs: 📝 Plugin doc updates - #858
Conversation
Signed-off-by: Evaline Ju <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe PR updates plugin documentation for IBAC judge settings, session token limits, plugin catalog metadata, file-sourced values, and the SPARC threshold example. ChangesPlugin documentation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Plugin configuration, catalog, and reference documentation now reflects current settings and examples. No current merge-readiness risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (5 skipped: 5 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ollow the wait plan
Two gaps against context-guru's own docs/how-to/cache-strategies.md:
1. keep_alive: had its own static policy (enabled/idle_seconds/max_pings/
max_usd_per_ping/min_prefix_tokens) and never touched context-guru's
named strategy table, so none of auto, none, 1-ping, 2-ping, 1-hour-head,
1-hour-on-wait, 1-hour-always or 30-min-ping could be picked.
2. The per-wait ping plan (keepalive.Policy.WaitPlan) was never turned on,
and recordFor filled none of the inputs it needs, so every wait got the
same flat ping count instead of following what the thread actually waits
for (its own tool, a person, background work, a teammate, done).
keepAliveConfig.policy now takes the engine's own resolved cache: block
(cgconfig.CacheConfig, already parsed by cgconfig.LoadBytes from engine:
in Configure -- context-guru's own config.applyStrategy resolves the named
strategy into it, so nothing here reimplements that table). Set
engine: {cache: {strategy: auto}} (or any other name) to pick one;
keep_alive: {enabled: false} still always wins as a kill switch. With no
cache.strategy set, policy() returns exactly what it always did -- the
per-wait plan's rossoctl#858 "no ping before the first tool call" rule changes
real scheduling, not just a tunable, so it only turns on through an
explicit strategy.
recordFor now carries Usage.StopReason (inf.FinishReason) and
ToolUseNames (inf.ToolCalls) so the keeper's WaitingFor can classify the
wait. ToolUseIncomplete is always false: that flag covers a host that
assembles ToolCalls from a spliced streaming-sniff window, which does not
describe this parser (inferenceparser fully assembles ToolCalls before
OnFinish runs). OpenTasks (background-task/teammate markers) is left
unset: that scanner lives in context-guru's internal/waitcause, which the
core does not export -- a background/teammate wait here falls back to
WaitingFor's unknown cause rather than a cortex-side approximation of a
scanner we cannot see.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: DAVID BOAZ <[email protected]>
…ollow the wait plan
Two gaps against context-guru's own docs/how-to/cache-strategies.md:
1. keep_alive: had its own static policy (enabled/idle_seconds/max_pings/
max_usd_per_ping/min_prefix_tokens) and never touched context-guru's
named strategy table, so none of auto, none, 1-ping, 2-ping, 1-hour-head,
1-hour-on-wait, 1-hour-always or 30-min-ping could be picked.
2. The per-wait ping plan (keepalive.Policy.WaitPlan) was never turned on,
and recordFor filled none of the inputs it needs, so every wait got the
same flat ping count instead of following what the thread actually waits
for (its own tool, a person, background work, a teammate, done).
keepAliveConfig.policy now takes the engine's own resolved cache: block
(cgconfig.CacheConfig, already parsed by cgconfig.LoadBytes from engine:
in Configure -- context-guru's own config.applyStrategy resolves the named
strategy into it, so nothing here reimplements that table). Set
engine: {cache: {strategy: auto}} (or any other name) to pick one;
keep_alive: {enabled: false} still always wins as a kill switch. With no
cache.strategy set, policy() returns exactly what it always did -- the
per-wait plan's rossoctl#858 "no ping before the first tool call" rule changes
real scheduling, not just a tunable, so it only turns on through an
explicit strategy.
recordFor now carries Usage.StopReason (inf.FinishReason) and
ToolUseNames (inf.ToolCalls) so the keeper's WaitingFor can classify the
wait. ToolUseIncomplete is always false: that flag covers a host that
assembles ToolCalls from a spliced streaming-sniff window, which does not
describe this parser (inferenceparser fully assembles ToolCalls before
OnFinish runs). OpenTasks (background-task/teammate markers) is left
unset: that scanner lives in context-guru's internal/waitcause, which the
core does not export -- a background/teammate wait here falls back to
WaitingFor's unknown cause rather than a cortex-side approximation of a
scanner we cannot see.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: DAVID BOAZ <[email protected]>
…ollow the wait plan
Two gaps against context-guru's own docs/how-to/cache-strategies.md:
1. keep_alive: had its own static policy (enabled/idle_seconds/max_pings/
max_usd_per_ping/min_prefix_tokens) and never touched context-guru's
named strategy table, so none of auto, none, 1-ping, 2-ping, 1-hour-head,
1-hour-on-wait, 1-hour-always or 30-min-ping could be picked.
2. The per-wait ping plan (keepalive.Policy.WaitPlan) was never turned on,
and recordFor filled none of the inputs it needs, so every wait got the
same flat ping count instead of following what the thread actually waits
for (its own tool, a person, background work, a teammate, done).
keepAliveConfig.policy now takes the engine's own resolved cache: block
(cgconfig.CacheConfig, already parsed by cgconfig.LoadBytes from engine:
in Configure -- context-guru's own config.applyStrategy resolves the named
strategy into it, so nothing here reimplements that table). Set
engine: {cache: {strategy: auto}} (or any other name) to pick one;
keep_alive: {enabled: false} still always wins as a kill switch. With no
cache.strategy set, policy() returns exactly what it always did -- the
per-wait plan's rossoctl#858 "no ping before the first tool call" rule changes
real scheduling, not just a tunable, so it only turns on through an
explicit strategy.
recordFor now carries Usage.StopReason (inf.FinishReason) and
ToolUseNames (inf.ToolCalls) so the keeper's WaitingFor can classify the
wait. ToolUseIncomplete is always false: that flag covers a host that
assembles ToolCalls from a spliced streaming-sniff window, which does not
describe this parser (inferenceparser fully assembles ToolCalls before
OnFinish runs). OpenTasks (background-task/teammate markers) is left
unset: that scanner lives in context-guru's internal/waitcause, which the
core does not export -- a background/teammate wait here falls back to
WaitingFor's unknown cause rather than a cortex-side approximation of a
scanner we cannot see.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: DAVID BOAZ <[email protected]>
…ollow the wait plan
Two gaps against context-guru's own docs/how-to/cache-strategies.md:
1. keep_alive: had its own static policy (enabled/idle_seconds/max_pings/
max_usd_per_ping/min_prefix_tokens) and never touched context-guru's
named strategy table, so none of auto, none, 1-ping, 2-ping, 1-hour-head,
1-hour-on-wait, 1-hour-always or 30-min-ping could be picked.
2. The per-wait ping plan (keepalive.Policy.WaitPlan) was never turned on,
and recordFor filled none of the inputs it needs, so every wait got the
same flat ping count instead of following what the thread actually waits
for (its own tool, a person, background work, a teammate, done).
keepAliveConfig.policy now takes the engine's own resolved cache: block
(cgconfig.CacheConfig, already parsed by cgconfig.LoadBytes from engine:
in Configure -- context-guru's own config.applyStrategy resolves the named
strategy into it, so nothing here reimplements that table). Set
engine: {cache: {strategy: auto}} (or any other name) to pick one;
keep_alive: {enabled: false} still always wins as a kill switch. With no
cache.strategy set, policy() returns exactly what it always did -- the
per-wait plan's rossoctl#858 "no ping before the first tool call" rule changes
real scheduling, not just a tunable, so it only turns on through an
explicit strategy.
recordFor now carries Usage.StopReason (inf.FinishReason) and
ToolUseNames (inf.ToolCalls) so the keeper's WaitingFor can classify the
wait. ToolUseIncomplete is always false: that flag covers a host that
assembles ToolCalls from a spliced streaming-sniff window, which does not
describe this parser (inferenceparser fully assembles ToolCalls before
OnFinish runs). OpenTasks (background-task/teammate markers) is left
unset: that scanner lives in context-guru's internal/waitcause, which the
core does not export -- a background/teammate wait here falls back to
WaitingFor's unknown cause rather than a cortex-side approximation of a
scanner we cannot see.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: DAVID BOAZ <[email protected]>
…context-guru headers Keeper scope. The keeper keyed a thread by the agent header only, so a session's one-shot call (a title, a permission check) was the main thread's. It replaced the main thread's last turn with a turn that called no tool, which the keeper never pings (context-guru #858). - resolveThread finds the thread once, at the start of OnRequest, before the keeper's Arrive. keeperKey, oneHourFirstFor, ThreadOf (threadOfFor), the accountant and OnFinish all read that one result. - A request with no usable message list (thread.SourceSession) keeps the header rule. - After the pipeline, OnRequest clears a stale keep-alive candidate (offload.ClearStaleKeepAliveCandidate), as lifecycle.Prepare does. Prepare itself is not used: it injects the context_guru_expand tool, which Cortex cannot answer. Header strip. context-guru's host contract (agent/agent.go) asks a host to remove every x-context-guru-* header before it forwards a request. Cortex forwarded them. OnRequest now removes them on every path, after it reads them. The plugin's own calls keep their sentinel. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: DAVID BOAZ <[email protected]>
…context-guru headers Keeper scope. The keeper keyed a thread by the agent header only, so a session's one-shot call (a title, a permission check) was the main thread's. It replaced the main thread's last turn with a turn that called no tool, which the keeper never pings (context-guru #858). - resolveThread finds the thread once, at the start of OnRequest, before the keeper's Arrive. keeperKey, oneHourFirstFor, ThreadOf (threadOfFor), the accountant and OnFinish all read that one result. - A request with no usable message list (thread.SourceSession) keeps the header rule. - After the pipeline, OnRequest clears a stale keep-alive candidate (offload.ClearStaleKeepAliveCandidate), as lifecycle.Prepare does. Prepare itself is not used: it injects the context_guru_expand tool, which Cortex cannot answer. Header strip. context-guru's host contract (agent/agent.go) asks a host to remove every x-context-guru-* header before it forwards a request. Cortex forwarded them. OnRequest now removes them on every path, after it reads them. The plugin's own calls keep their sentinel. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: DAVID BOAZ <[email protected]>
Summary
Doc accuracy sweep against current plugin source without overlap with #857. Fixes: litellm-budget-track direction column to Both with placement guidance (reconciling PR #847 and #851); context-guru and cpex status Coming Soon → Opt-in; sparc deny_score_threshold example from an out-of-range 2.0 to 0.4; missing session-budget per-kind ceilings, ibac judge fields, and a stale client-registration reference.
Note: cpex was not updated - #856 was opened as a follow-up issue
Assisted-By: Claude (Anthropic AI) [email protected]
Summary by CodeRabbit
context-guruandcpexas opt-in, and clarified bidirectional cost tracking forlitellm-budget-track.