Skip to content

Instantly share code, notes, and snippets.

@aviadr1
aviadr1 / gist:57bb7a7d80d415571174e1fed7acacba
Created January 19, 2026 21:04
Assesing quality/velocity of work on a repository
# Engineering Output & Quality Audit
You are auditing a codebase to answer: **What was actually built, how complex was it really, how long did it take, and how stable is it?**
Ignore commit counts - they measure activity, not output. Focus on deliverables. FOR THE LAST 90 days.
## PHASE 1: Identify What Was Actually Built
### 1.1 Discover Distinct Deliverables
```bash
# Find feature areas by looking at what directories changed
git log --since="YYYY-MM-DD" --name-only --pretty=format: | grep -E "^[a-z]" | cut -d'/' -f1-3 | sort | uniq -c | sort -rn | head -30
# Find ticket/feature references in commit messages
git log --since="YYYY-MM-DD" --pretty=format:"%s" | grep -oE "[A-Z]+-[0-9]+" | sort | uniq -c | sort -rn
@aviadr1
aviadr1 / json_schema.py
Last active December 24, 2025 09:49
**OpenAI JSON Schema Sanitizer for Pydantic Models** - A production-ready function that transforms any Pydantic model into an OpenAI Structured Outputs-compatible JSON schema, handling optionals, unions, recursion detection, numeric constraints, and additionalProperties issues that cause API failures. Includes comprehensive test suite covering a…
"""
File: gv/ai/common/llm/json_schema.py
Author: Aviad Rozenhek
OpenAI Structured Outputs (`response_format={"type":"json_schema"}`) supports only a subset of JSON Schema.
Many perfectly valid Pydantic constructs won't fly as-is. Use these patterns:
-------------------------------------------------------------------------
1) Optional / nullable / Default fields
-------------------------------------------------------------------------
Patient History Report
Client: Batiz, Andrea (23583) Patient: HADES (23583-1)
Phone: (254) 251-8121 Species: FELINE Breed: DOMESTIC
SHORTHAIR
Address: 4306 Fremont Drive Age: 5 Mos. 3 Wks. 4
Days
Sex: Neutered Male