Cybersecurity-Projects/PROJECTS/beginner/canary-token-generator/backend/internal/token/generators
CarterPerez-dev 73dd837362 feat(canary): register pdf generator in registry
Fourth entry in the registry map. Cardinality bumps 3 → 4; pending list
shrinks to {kubeconfig, envfile, mysql} (3 remaining).

  - registry.go: adds the import + token.TypePDF: pdf.New() entry
  - registry_test.go:
      - TestBuild_RegistersPDF added (mirrors RegistersDocx)
      - TypePDF removed from TestBuild_PendingTypesNotYetRegistered
      - TestBuild_OnlyExpectedTypesPresentInPhase4 renamed → InPhase5,
        cardinality assertion bumped 3 → 4

Pre-audit gate clean at HEAD: go build ./... + go vet ./... + go test
-race -timeout=60s ./... + go test -tags=integration -race -timeout=300s
./internal/token/... ./internal/event/... + golangci-lint run ./... all
pass with 0 issues.
2026-05-13 13:54:33 -04:00
..
docx fix(canary-phase4): address audit nits before rollup 2026-05-13 03:19:13 -04:00
pdf feat(canary): pdf generator (byte-replace fixed-width URI action) 2026-05-13 13:54:24 -04:00
pixel fix(canary-phase2): address audit findings before rollup 2026-05-12 02:56:29 -04:00
registry feat(canary): register pdf generator in registry 2026-05-13 13:54:33 -04:00
slowredirect fix(canary-phase3): address audit findings before rollup 2026-05-12 06:46:45 -04:00
webbug fix(canary-phase2): address audit findings before rollup 2026-05-12 02:56:29 -04:00
generator.go fix(canary): clear pre-audit lint debt + migrate golangci config to v2 2026-05-12 02:49:56 -04:00