Tasks

tasks15/15
Created openspec/changes/surface-grant-client-metadata/tasks.mdView on GitHub →

1. Spec And Contract

  • 1.1 Add a reference-only requirement for optional grant and trace client metadata.
  • 1.2 Validate openspec validate surface-grant-client-metadata --strict.

2. Reference Surface

  • 2.1 Batch-enrich grant and trace correlation summaries with registered client metadata for SQLite and Postgres.
  • 2.2 Project the optional client object on grant_summary and trace_summary entries only.
  • 2.3 Add operation-level tests for the optional projection and missing-metadata fallback.

3. Console Consumer

  • 3.1 Extend the console GrantSummary type with optional client metadata.
  • 3.2 Prefer grant.client.client_name for relationship labels while preserving client_id.
  • 3.3 Keep the owner-issued-client fallback for already-loaded metadata.
  • 3.4 Prefer trace.client.client_name for recent-read labels.
  • 3.5 Prefer client metadata in shared grant/trace list-row labels.
  • 3.6 Avoid bolding raw technical client IDs in the calm recent-read fallback.

4. Verification

  • 4.1 Run focused reference and console tests.
  • 4.2 Run console typecheck and git diff --check.
  • 4.3 Deploy under the live-stack mutex and verify the live Standing relationship rows no longer render only raw cli_... when client metadata exists.
  • 4.4 Deploy the trace/list-label extension under the live-stack mutex and verify live recent-read rows no longer render raw cli_... as primary labels when metadata exists.