gh-agent-viz

Security Guidelines

This project is a terminal-side control surface for Copilot workflows. Security is critical because it touches local session artifacts, GitHub-authenticated CLI operations, and potentially future analytics pipelines.

Security Principles

  1. Least privilege by default
    • Only read files and execute commands required for the requested feature.
  2. No secret exposure
    • Never log or commit tokens, credentials, cookies, or sensitive local metadata.
  3. Untrusted input handling
    • Treat gh command output and local session files as untrusted; parse defensively.
  4. Explicit error visibility
    • Do not hide security-relevant failures behind silent fallbacks.
  5. Data minimization
    • Collect/store only the minimum data needed for UI and diagnostics.

Threat Surface

Required Engineering Practices

Data & Privacy Guardrails

Security Review Triggers

Require explicit review when changes involve: