Skip to content

docs: 📝 Plugin doc updates - #858

Merged
evaline-ju merged 1 commit into
rossoctl:mainfrom
evaline-ju:doc-update
Sep 3, 2026
Merged

evaline-ju merged 1 commit into
rossoctl:mainfrom
evaline-ju:doc-update

Conversation

@evaline-ju

@evaline-ju evaline-ju commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Documentation
    • Documented optional IBAC settings for limiting judge responses and requesting JSON-formatted output.
    • Updated the plugin catalog to show context-guru and cpex as opt-in, and clarified bidirectional cost tracking for litellm-budget-track.
    • Clarified file-sourced value behavior during operator-managed Secret mounting.
    • Expanded session-budget documentation with per-kind token limits.
    • Corrected the SPARC score threshold example to use a valid normalized value.

Signed-off-by: Evaline Ju <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: c23d6bd7-3fea-4897-ab5e-5e48e58c22a4

📥 Commits

Reviewing files that changed from the base of the PR and between 25b3a4a and 01f62f6.

📒 Files selected for processing (5)
  • authbridge/docs/ibac-plugin.md
  • authbridge/docs/plugin-catalog.md
  • authbridge/docs/plugin-reference.md
  • authbridge/docs/session-budget-plugin.md
  • authbridge/docs/sparc-plugin.md

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The PR updates plugin documentation for IBAC judge settings, session token limits, plugin catalog metadata, file-sourced values, and the SPARC threshold example.

Changes

Plugin documentation

Layer / File(s) Summary
Plugin configuration and validation documentation
authbridge/docs/ibac-plugin.md, authbridge/docs/session-budget-plugin.md
Documents IBAC judge token and JSON settings. Adds session-budget per-kind token limits and includes them in validation requirements.
Plugin catalog metadata
authbridge/docs/plugin-catalog.md
Updates plugin availability, direction, and LiteLLM response-cost tracking details.
Reference text and examples
authbridge/docs/plugin-reference.md, authbridge/docs/sparc-plugin.md
Updates the pod-boot Secret explanation and changes the SPARC threshold example to 0.4.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 01f62

Plugin configuration, catalog, and reference documentation now reflects current settings and examples. No current merge-readiness risk remains.

Suggested reviewers: huang195, esnible

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed 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…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately identifies the changes as plugin documentation updates. It is concise and related to the main purpose of the pull request, although the emoji is unnecessary.
Full details: Docstring Coverage

Explanation

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)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@evaline-ju
evaline-ju merged commit 2b4cfbe into rossoctl:main Sep 3, 2026
23 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Sep 3, 2026
@evaline-ju
evaline-ju deleted the doc-update branch September 3, 2026 18:19
boazdavid added a commit to boazdavid/cortex that referenced this pull request Nov 23, 2026
…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]>
boazdavid added a commit to boazdavid/cortex that referenced this pull request Nov 23, 2026
…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]>
boazdavid added a commit to boazdavid/cortex that referenced this pull request Nov 23, 2026
…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]>
boazdavid added a commit to boazdavid/cortex that referenced this pull request Nov 24, 2026
…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]>
boazdavid added a commit that referenced this pull request Nov 25, 2026
…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]>
boazdavid added a commit that referenced this pull request Nov 26, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants