Skip to content

Commit bfc708f

Browse files
JuliaEdomclaude
andcommitted
chore(repo): untrack internal notes, add hygiene gate and tracked-only deploy policy
The public repo (and, via the old working-tree upload_folder deploy, the public HF Space) carried internal working notes: root CX/KM audits and the session handoff docs/NEXT_SESSION.md. Untrack them (local copies stay), ignore the whole class in .gitignore, and add scripts/check_repo_hygiene.py (--self-test) to CI so they cannot silently return. The Space itself was pruned of the leaked notes plus stale artifacts (pre-redesign .otf fonts, data_flow.html/pdf, orphan eval reports) in Space commit 8a247fa1; the local .deploy_hf.py now publishes git-tracked files only and prunes strays on every deploy. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent ea59c3d commit bfc708f

6 files changed

Lines changed: 171 additions & 1886 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,15 @@ jobs:
3838

3939
- name: Pytest
4040
run: uv run pytest --cov=src/nl_sql --cov-report=term-missing
41+
42+
repo-hygiene:
43+
runs-on: ubuntu-latest
44+
timeout-minutes: 5
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- name: Verify repo-hygiene detector
49+
run: python3 scripts/check_repo_hygiene.py --self-test
50+
51+
- name: Check no internal notes are tracked
52+
run: python3 scripts/check_repo_hygiene.py

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ chroma_data.*/
109109
# Reviews scratch (полные обзоры коммитятся, runtime артефакты — нет)
110110
reviews/*.err
111111

112+
# Внутренняя кухня — аудиты, планы, handoff-заметки. Никогда не публикуется:
113+
# ни в git-индексе, ни на HF Space (деплой фильтрует по git ls-files).
114+
# Гейт: scripts/check_repo_hygiene.py (CI) + прунинг в .deploy_hf.py.
115+
/audit_*.md
116+
/plan_*.md
117+
/_ref_*
118+
/[0-9][0-9]_[0-9][0-9]_[0-9][0-9].md
119+
/docs/NEXT_SESSION.md
120+
/docs/data_flow.*
121+
112122
# Secrets — никогда не коммитить
113123
secrets/
114124
credentials/

0 commit comments

Comments
 (0)