Skip to content

docs: fix docs that contradict the code (salvaged from #2107) - #2144

Merged
rdimitrov merged 1 commit into
mainfrom
docs/close-out-pr4
Oct 7, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
docs/close-out-pr4

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

Fixes documentation that contradicts the current code, and carries over the two sections of the draft #2107 worth keeping. Every claim below was checked against the code on main.

Doc-vs-code fixes

Where Was Now (verified in)
user-docs/reference/http-sse-api.md (public), docs/architecture/api-surface.md, docs/architecture/agent-loop.md, user-docs/building/what-you-get/agent-loop.md POST /v1/sessions/{id}/approve, /cancel, /steer, /cancel-steer, with optional expected_run_id and steer promotion These routes were removed in #1725. The registered routes are controls/resolve-ask, controls/cancel, controls/steer, controls/cancel-steer; expected_run_id is required; a stale or too-late control returns 409 stale_run_control; steer never promotes (internal/adapter/server/http.go, service.go). Clients following the old reference got a 404.
docs/architecture/ports.md, user-docs/features/execution-environments.md (public) Reattachment via server.Config.EnvironmentResolver; a zero ref is backfilled on next save EnvironmentResolver no longer exists. Reattachment goes through the required PlacementProvider's PlacementReattacher and fails closed; a zero ref is rejected (internal/adapter/server/placement.go)
docs/architecture.md caller identity "nothing is yet refused on identity grounds", which contradicts the ownership-enforcement section Identity alone is attribution; refusal comes from caller ownership enforcement when an OIDC verifier is wired
docs/architecture.md scheduler delivery Delivery queue is durable Durable only with a local store dir; Redis-backed deployments use an in-memory queue (buildDeliveryQueue)
docs/architecture/ports.md Redis read ledger "not wired as the production default" Off by default; opt in with mecak8s --redis-read-ledger
apps/README.md task studio:check is "what CI runs"; SDK "by a semver range" It's the local gate, and CI also runs audit, integration, browser, and image jobs; the SDK is an exact version pin

Carried over from #2107

  • docs/architecture/deployment-and-hardening.md: a "Command-runner environment and credential grants" section. It covers which runners receive operator-granted credentials, which harness credentials are never restorable, and that scrubbing is not an OS sandbox. All symbols re-verified on main.
  • apps/README.md: a "Boundary" section covering published SDK only, the browser never talking to Mecatl, and the local gate. Also drops the ADR 0351 / acceptance-plan references.

Checked and not needed

PR 4 also flagged ACP Content-Length framing and a ToolHive WARN/INFO claim. Neither appears on main; they existed only in the deleted ADRs. The rest of #2107 (ADR-citation rewrites, the resource-lifetimes inventory) is intentionally dropped; the planned lean docs rewrite replaces those pages.

Test plan

  • task docs: instruction-files ok; matlatl strict 0 broken / 0 orphans
  • task site:build: Docusaurus build passes (broken links throw)
  • go test ./internal/adapter/ -run TestRedisFollowCapacity_Scenario4 (Go-version prose in edited pages)
  • Documented HTTP routes compared against the routes registered in internal/adapter/server/http.go: no documented route is missing

User-facing change

The public HTTP/SSE reference now documents the routes and request bodies the server actually accepts.

🤖 Generated with Claude Code

Correct statements verified against the current code, and carry over
the two sections from #2107 worth keeping:

- HTTP run controls: the public reference and two architecture pages
  documented /approve, /cancel, /steer, and /cancel-steer, removed in
  #1725. Document the registered controls/resolve-ask, controls/cancel,
  controls/steer, and controls/cancel-steer routes with their required
  expected_run_id, bodies, responses, and 409 stale_run_control; steer
  no longer promotes to a new run.
- Placement: server.Config.EnvironmentResolver no longer exists.
  Reattachment goes through the required PlacementProvider's
  PlacementReattacher capability and fails closed; a zero ref is
  rejected, not backfilled. Same fix on the public execution page.
- Caller identity: identity alone is attribution; refusal comes from
  caller ownership enforcement when an OIDC verifier is wired.
- Scheduler delivery queue: durable only with a local store directory;
  Redis-backed deployments use an in-memory queue.
- Redis read ledger: name the opt-in flag.
- apps/README.md: Studio boundary section (exact SDK pin, Biome import
  rules); task studio:check is the local gate, CI runs more.
- deployment-and-hardening.md: command-runner credential-grant section.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rdimitrov
rdimitrov merged commit 8048811 into main Oct 7, 2026
31 checks passed
@rdimitrov
rdimitrov deleted the docs/close-out-pr4 branch October 7, 2026 12:49
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 7, 2026
2 tasks

This branch was successfully deployed

1 active deployment
Preview — 78a4939b Deployed Oct 7, 2026 by vercel[bot]
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.

2 participants