veza/proto
senke 172581ff02 chore(cleanup): remove orphan code + archive disabled workflows + .playwright-mcp
Triple cleanup, landed together because they share the same cleanup
branch intent and touch non-overlapping trees.

1. 38× tracked .playwright-mcp/*.yml stage-deleted
   MCP session recordings that had been inadvertently committed.
   .gitignore already covers .playwright-mcp/ (post-audit J2 block
   added in d12b901de). Working tree copies removed separately.

2. 19× disabled CI workflows moved to docs/archive/workflows/
   Legacy .yml.disabled files in .github/workflows/ were 1676 LOC of
   dead config (backend-ci, cd, staging-validation, accessibility,
   chromatic, visual-regression, storybook-audit, contract-testing,
   zap-dast, container-scan, semgrep, sast, mutation-testing,
   rust-mutation, load-test-nightly, flaky-report, openapi-lint,
   commitlint, performance). Preserved in docs/archive/workflows/
   for historical reference; `.github/workflows/` now only lists the
   5 actually-running pipelines.

3. Orphan code removed (0 consumers confirmed via grep)
   - veza-backend-api/internal/repository/user_repository.go
     In-memory UserRepository mock, never imported anywhere.
   - proto/chat/chat.proto
     Chat server Rust deleted 2026-02-22 (commit 279a10d31); proto
     file was orphan spec. Chat lives 100% in Go backend now.
   - veza-common/src/types/chat.rs (Conversation, Message, MessageType,
     Attachment, Reaction)
   - veza-common/src/types/websocket.rs (WebSocketMessage,
     PresenceStatus, CallType — depended on chat::MessageType)
   - veza-common/src/types/mod.rs updated: removed `pub mod chat;`,
     `pub mod websocket;`, and their re-exports.
   Only `veza_common::logging` is consumed by veza-stream-server
   (verified with `grep -r "veza_common::"`). `cargo check` on
   veza-common passes post-removal.

Refs: AUDIT_REPORT.md §8.2 "Code mort / orphelin" + §9.1.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 20:33:40 +02:00
..
common refactor(infra): centralize protobuf definitions in shared proto/ directory 2026-02-22 17:45:11 +01:00
stream refactor(infra): centralize protobuf definitions in shared proto/ directory 2026-02-22 17:45:11 +01:00
README.md refactor(infra): centralize protobuf definitions in shared proto/ directory 2026-02-22 17:45:11 +01:00

Centralized Protobuf Definitions (CLN-07)

This directory contains the canonical source of all .proto files for the Veza monorepo.

Structure

proto/
├── common/
│   └── auth.proto      # Shared auth service (ValidateToken, GetUserInfo, etc.)
├── stream/
│   └── stream.proto    # Stream service (veza-stream-server)
├── chat/
│   └── chat.proto      # Chat service (veza-chat-server)
└── README.md

Intent

  • Single source of truth: All protobuf definitions live here. Edit these files when changing API contracts.
  • Generated code stays in place: Go/Rust generated code remains in veza-backend-api, veza-chat-server, and veza-stream-server. Build scripts in those projects should use this directory as the --proto_path when invoking protoc.
  • Shared common types: common/auth.proto is imported by both chat.proto and stream.proto.

Consumers

Consumer Proto files used Generated output location
veza-chat-server chat.proto, common/auth.proto (existing generated dirs)
veza-stream-server stream.proto, common/auth.proto (existing generated dirs)
veza-backend-api All (if applicable) (existing generated dirs)

Migration note

The original .proto files were duplicated in veza-chat-server/proto/ and veza-stream-server/proto/. Those copies can be removed or symlinked to this directory once build pipelines are updated to use proto/ as the source.