Repository navigation
docs: retarget laptop-docs verification from v0.9.0 to v0.8.1 - #2615
Merged
Merged
Conversation
This was referenced Oct 2, 2026
v0.9.0 is now planned for end of October, but v0.8.1 shipped as a normal release on 2026-10-01 and carries everything the laptop docs describe. Verify against it rather than holding the docs behind a tag that does not exist yet. Verified against v0.8.1 (cmd/agentop): - CA path ~/.cortex/ca/ca.crt, port 47600, launchd label io.rossoctl.cortex, systemd unit cortex.service - authoritative cost header x-litellm-response-cost, bundled rate table in core/cost/pricing - sessions-table column set, em-dash rule, narrow-terminal drop of the money columns, SAVED~ marker, precision rule Corrected two claims v0.8.1 does not support: - the latency section described time-to-first-token and p50/p95/p99 percentiles; v0.8.1 reports a mean per bucket with whiskers. Rewrote the section to what ships and marked TTFT/percentiles as planned (cortex#951). - the worked example carried TTFT percentile rows; replaced with mean response time and slowest call. Left pending: the local-only claim still needs a re-read when sqlite persistence (cortex#901) lands, and the $0.00 answer tracks cortex#1046. Refs rossoctl/cortex#959, rossoctl/cortex#960, rossoctl/cortex#963 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Mariusz Sabath <[email protected]>
mrsabath
force-pushed
the
worktree-docs-verify-v081
branch
from
October 2, 2026 20:27
5a049e9 to
64c8e86
Compare
huang195
approved these changes
Oct 2, 2026
mrsabath
added a commit
that referenced
this pull request
Oct 7, 2026
Three corrections and two additions, all against cortex main as of today. Latency — my own error in #2615. That PR said the whiskers were "the fastest and the slowest call" and told readers to read the upper one as the worst case. The code computes LatMeanMs +/- LatStdDevMs (cmd/agentop/tui/usage_whiskers.go): standard deviation, not extremes. No maximum is recorded anywhere in the pipeline, so the slowest call can sit above the top of the chart with nothing on screen saying so -- which is the whole of cortex#1026. Rewritten to mean with +/-1σ caps, with a caution that the upper cap is not a worst case. The worked example's "Slowest call" row became a spread, since Cortex does not record that figure. Context column — CONTEXT(1M) is now CTX(1M), shortened in cortex#1246. Three occurrences. Stale abctl and a ps grep that misses current installs — the two-installs section used `abctl service stop|install`, and grepped ps for authbridge-proxy alone. The binary is `cortex` now; authbridge-proxy is only the pre-rename name, and a machine carrying both generations is exactly what that section is about, so match either. New: `agentop configure` covers five agents (claude-code, bob, bobshell, opencode, codex), so "Other agents" now names the command per agent instead of sending everyone to set HTTP_PROXY by hand. And `agentop setup` with no --from repairs an install, which is a better answer than "run the install again" for a missing CA. Also verified the two-installs section's own markers against main: all five loopback ports come from the --local preset in cmd/cortex/local.go and the 30-second restart ceiling from superviseMaxDelay in cmd/cortex/supervise.go. Both paths moved in the rename. Refs rossoctl/cortex#963, rossoctl/cortex#1026, rossoctl/cortex#1236, rossoctl/cortex#1237 Signed-off-by: Mariusz Sabath <[email protected]>
mrsabath
added a commit
that referenced
this pull request
Oct 7, 2026
…#2618) * docs: correct the latency reading, and cover the new agentop surfaces Three corrections and two additions, all against cortex main as of today. Latency — my own error in #2615. That PR said the whiskers were "the fastest and the slowest call" and told readers to read the upper one as the worst case. The code computes LatMeanMs +/- LatStdDevMs (cmd/agentop/tui/usage_whiskers.go): standard deviation, not extremes. No maximum is recorded anywhere in the pipeline, so the slowest call can sit above the top of the chart with nothing on screen saying so -- which is the whole of cortex#1026. Rewritten to mean with +/-1σ caps, with a caution that the upper cap is not a worst case. The worked example's "Slowest call" row became a spread, since Cortex does not record that figure. Context column — CONTEXT(1M) is now CTX(1M), shortened in cortex#1246. Three occurrences. Stale abctl and a ps grep that misses current installs — the two-installs section used `abctl service stop|install`, and grepped ps for authbridge-proxy alone. The binary is `cortex` now; authbridge-proxy is only the pre-rename name, and a machine carrying both generations is exactly what that section is about, so match either. New: `agentop configure` covers five agents (claude-code, bob, bobshell, opencode, codex), so "Other agents" now names the command per agent instead of sending everyone to set HTTP_PROXY by hand. And `agentop setup` with no --from repairs an install, which is a better answer than "run the install again" for a missing CA. Also verified the two-installs section's own markers against main: all five loopback ports come from the --local preset in cmd/cortex/local.go and the 30-second restart ceiling from superviseMaxDelay in cmd/cortex/supervise.go. Both paths moved in the rename. Refs rossoctl/cortex#963, rossoctl/cortex#1026, rossoctl/cortex#1236, rossoctl/cortex#1237 Signed-off-by: Mariusz Sabath <[email protected]> * docs: Address review on the latency page and the agent surfaces Hai's review on #2618. Every claim below was re-checked against the cortex tree at v0.8.1 and at main before changing the text. Accuracy rule 2, do not document unreleased behaviour. The page now describes v0.8.1 throughout, which is what the install one-liner delivers: - Revert CTX(1M) to CONTEXT(1M) and keep the 97-column money threshold. cortex#1246 shortens the heading and moves the threshold to 93, but it is in no tag. The contradictory VERIFY markers are reconciled, and a v0.9.0 marker records the follow-up by quoted text rather than by line number, which goes stale. - Drop `agentop configure opencode`, which arrived in cortex#1243 after v0.8.1; on v0.8.1 it prints "coming soon" and exits 0. OpenCode joins Codex on `agentop exec`. - Drop the Codex `configure` row: it only ever prints "coming soon", so "each one takes disable and status" was false for it. - Replace `agentop setup` (cortex#1245, unreleased) with `agentop service restart`. No setup step touches the CA; the proxy mints one on boot when any of tls.crt, tls.key or ca.crt is missing (tlsbridge.EnsureFileSource), so a restart is what regenerates it. Trust-store variables. REQUESTS_CA_BUNDLE, SSL_CERT_FILE, CURL_CA_BUNDLE and GIT_SSL_CAINFO REPLACE the trust store rather than adding to it, so they need ca/bundle.crt, not ca.crt. Pointed at ca.crt a program trusts only the Cortex CA and every unbridged host fails. Only NODE_EXTRA_CA_CERTS is additive. The proxy value gains its scheme. The macOS note was correct for Go only. It is crypto/x509 on darwin that ignores SSL_CERT_FILE; git, curl and Python read these variables there too, so steering a Python user to the keychain sent them somewhere that does nothing for them. Retitled, scoped to Go, and it now gives the login-keychain command instead of an anchor that lands on the section top. Same correction applied to the copy in troubleshooting.md. Latency section, which claimed figures Cortex does not produce: - The caps are mean +/- 1 sigma over the calls in a bucket, not the fastest and slowest call. Removed "Slowest call | 24 s" and the per-session "spread (+/-1 sigma)" row: sigma exists only per chart bucket, SessionSummary has no latency field, and the only window-wide figure is the usage footer's request-weighted LATENCY mean, with no sigma. - Durations are kept for every non-tunnel response, not model calls alone, so fast non-model requests pull the mean down. - A bucket with no measured call reads 0 with the legend "0 = no measured responses"; only an empty window says "no latency samples in this window". - One-call buckets and collapsed caps both draw a bare crossbar, and the lower cap is clamped at zero, so a foot on the bottom row means sigma >= mean, not an instant reply. - The slowest call IS recorded, on the event, in the sortable DURATION column. "Cortex records no maximum" sent readers away from the one view that answers the question; it is the usage charts that keep none. - Issue attribution split correctly: #951 is TTFT and percentiles, #1026 is the maximum and p99. Also: :::caution is not in CONTRIBUTING's callout table and Docusaurus v3 deprecates it, so the one this PR added is now :::warning. The backoff prose is marked macOS-only, since the systemd unit retries every 10s and gives up after 5 starts in 300s. Signed-off-by: Mariusz Sabath <[email protected]> Assisted-By: Claude Code * docs: Address round 2 of the review on the agent surfaces and latency Hai's second review on #2618. Every claim below was re-checked against the cortex tree at v0.8.1 (a6cb1d77) and at main before changing the text. The two must-fixes: - OpenCode does not send its traffic from the process you run. One background service per user sends all of it and keeps the environment it started with, so `agentop exec -- opencode` routes nothing when the service is already running, and the routing outlives the command when exec is what started it. The page now says both, plus how to check (`opencode service status`). Codex keeps the old sentence, which is true of Codex alone. - The lower cap on the bottom row of a latency whisker does not mean sigma >= mean. The bottom row holds every value up to a tenth of the frame's top, so a cap there means mean minus 1 sigma is near zero. Re-worded, and "one standard deviation" is spelled out where sigma had not been defined yet. Three of Hai's own round-1 sentences, corrected: - bobshell reads no config at configure time; only claude-code and bob read `~/.cortex/config.yaml`, and the intro now says which. - The by-hand variable list gains HTTP_PROXY and the lowercase proxy names (a plain-http call or a lowercase-only tool silently bypasses Cortex otherwise), and $HOME in place of ~, which does not expand in a quoted export or a settings file. - The ps pattern anchors on the binary followed by a flag (`/(cortex|authbridge-proxy) --`), which the service always passes, so a `tail -f` of proxy.log, a cortex.test binary or an `--proxy .../cortex` argument no longer match. A section that ends in `kill <pid>` owes that much. Smaller corrections from the same review: - The Claude Code row names CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC; the Bob row says the printed command needs sudo, writes the System keychain, and that Bob needs a restart; the bobshell row names the rc files and stops calling a fragment a sentence. - Sorting by DURATION now gives the keys (c, then s in the picker) and two limits: the sort covers the newest 2000 events (o loads older), and a chart opened from Sessions covers every session. - "Typical call" became "average call", the planned-figures note no longer reads as "time-to-first-token percentiles", and the worked example names the source of its 11 s: the usage pane's LATENCY footer, scoped to the session, at most the last 6 h. - The v0.9.0 marker for cortex#1246 now lists every place the heading and the 97-column threshold appear, including "Read the context gauge" here and the CONTEXT column mention in troubleshooting. - No setup or install step *writes* the CA (install.sh and service status do read it); after a restart mints a new CA, a keychain that trusted the old one needs the command again; the service log is proxy.log (log show and journalctl never see the proxy's own lines); the Linux log sample no longer shows a supervisor line systemd does not run; `agentop service stop` stops whichever install holds the one label per user, so the fix sequence says HOME and abctl and why it still converges; the macOS supervisor notes are scoped away from Linux, where ps shows one cortex per running install and the lost unit reads failed. - "Another program stopped working" names the most likely cause, a replacing variable pointed at ca.crt rather than bundle.crt, and the env grep gains SSL_CAINFO so GIT_SSL_CAINFO shows. The no-events checklist no longer tells the reader to set "the certificate variable" by hand for agents that configure or exec covers. - The Go note copies laptop.md's line (LibreSSL, the bundle) instead of drifting from it. Assisted-By: Claude Code Signed-off-by: Mariusz Sabath <[email protected]> --------- Signed-off-by: Mariusz Sabath <[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.
Summary
v0.9.0 is now planned for end of October. v0.8.1 shipped as a normal release on 2026-10-01 and already carries everything the laptop docs describe, so this retargets the
VERIFYmarkers at v0.8.1 instead of holding three docs issues behind a tag that does not exist yet.Also corrects two claims that v0.8.1 does not support — the docs were describing a feature that is not implemented.
Verified against v0.8.1 (
cmd/agentop)~/.cortex/ca/ca.crt, port47600, launchd labelio.rossoctl.cortex, systemd unitcortex.servicex-litellm-response-cost; rates from the bundled table incore/cost/pricingSAVED~marker, precision ruleCorrected
Still pending (deliberately)
$0.00answer describes current behaviour; cortex#1046 would change it and is open.Issues
Unblocks rossoctl/cortex#959 and rossoctl/cortex#960 (both closeable on merge). rossoctl/cortex#963 stays open — its latency content depends on cortex#951, and the outside-reader pass for exit criterion 5 has not run.
🤖 Generated with Claude Code