Skip to content

Follow-ups from Spec 108-e scope attribution review (#1436) #1437

Closed

Description

@Dumbris

Low-severity findings left open after the review and live QA of #1436 (Spec 108-e).

  • internal/httpapi/server.go:1936 (and the legacy branch at 1974): GET /servers?profile=<name> from a non-admin token pinned to a narrower profile is limited only by the token's allowed_servers, not by the caller's own pin. Its tool_count can therefore count tools that the caller's profile hides. GET /tools applies filterProfileToolRows first, so the two routes disagree. Only an aggregate count is exposed.
  • A disabled server contributes no rows to GET /tools?client= or ?profile=, because disabling disconnects the server and leaves its tool set empty. FR-032/E14 expects a server_state row. Either list disabled servers' tools or remove server_state from the FR-032/E14 text.
  • For a scoped SSE subscriber, its own internal_tool_call.completed event has no attribution, while its own tool_call.completed does. This errs toward withholding, so nothing leaks.
  • Quickstart recipe 108-e step 15 expects /ui/usage?profile= and /ui/tools?client= to open already filtered, with a chip. That is 108-i/108-j scope. Revisit the recipe once they land.
  • Info: the name of a revoked agent token cannot be reused (DELETE /tokens/ro-bot returns 204, then recreating ro-bot fails).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugpriority/lowtriage/accepted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions