Skip to content

test(identity): pkgs/identity Go suite (7 tests, incl. credential/JWT log guards) is run by nothing — identity-build builds and vets but never tests #17783

Done

Description

@developing-today-fleet

Gap (Go test-venue census at origin/main 668b524, lane 0900-GV, 2026-11-30)

pkgs/identity has a real Go test suite that no workflow runs:

  • pkgs/identity/auth/auth_logging_test.go — TestAuthenticationLogsDoNotReferenceCredentialMaterial
  • pkgs/identity/web/auth_logging_test.go — TestSetCookieHandlerDoesNotLogJWT, TestSetCookieHandlerDoesNotLogInvalidJWT
  • pkgs/identity/cmd/ssh/layout_test.go — TestLayoutBoxerRendersStackAndColumns
  • pkgs/identity/cmd/ssh/metrics_test.go — TestSshMetricsMiddlewareCountsSessions, TestSshMetricsCommand
  • pkgs/identity/cmd/ssh/ssh_logging_test.go — TestAuthenticationLogsDoNotReferenceCredentialMaterial

7 test functions in 5 files, several of them security-relevant (credential material must never reach identity logs; JWTs must never be logged).

The only workflow touching the module, .github/workflows/identity-build.yml (#340), runs tidy + go build + go vet for both build-tag variants (sqlite, libsql) on the nightly schedule — it never runs go test. A full-repo grep of .github/workflows/, the justfile, and flake.nix finds no go test invocation for this module (the one identity-adjacent step in scripts-test.yml runs an unrelated shell script, pkgs/identity/provider/core-static-test.sh).

Fix

Add a go test -tags ${{ matrix.tags }} ./... step to identity-build.yml, guarded so a missing suite fails loudly instead of reporting a false green (the go-modules-build.yml chat pattern), and verify the suite passes at the PR head for at least one tag variant before merge.

Claim: lane 0900-GV (xaltha, wave 0900) claims this issue in the filing body and is implementing it now: wiring in a fresh worktree, remote verification at head, PR with Closes on this issue, merge on own verification.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T22:31:15Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch/workspace/github-work/hatch-personal",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch/workspace/github-work/hatch-personal",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "c4e6b1ce985a6695dcf416f30dccb65274209112"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    priority/normal
    effort/s
    on Nov 30, 2026
  2. added a commit that references this issue on Nov 30, 2026
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

    effort/spriority/normal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions