Skip to content

feat(portal): the per-patch log view for owners and admins #412

Closed

Description

@allisonmahmood

Part of #384. Implements the log view of spec §17; decisions the contract point 11, identity points 5 and 8, the view as picked on the design ticket.

What to build

A per-patch log page in the portal, reached from the patch card: the patch's invocations newest first, each an invocation tree reading "Alice · Sales CRM v12 · leads.import (action)" with its operation rows beneath ("warehouse.customers.list · as Alice", "leads.create (mutation) · as the patch"), outcome, timing and ctx.log lines. Owners open it for their own patches, admins for every patch, and reassignment moves the owner's access. The page says the log is an attribution record, not an access audit, and that ctx.log text is the patch's own. It is bounded and paged by cursor, composed from the shared component set under ui-consistency, and reads the runtime_invocations and runtime_calls columns as they are. The per-connection recent-calls list is unchanged.

Admitted at merge

Owners and admins read tier 2 logs.

Done when

An owner sees their patch's tree and not another owner's; an admin sees every patch; a reassigned patch's old owner is refused; a failed action shows the connection call that succeeded before it failed.

Surfaces

The Portal glossary if a term is added, docs/product.md (who reads the log), ui-consistency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uiready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions