feat: momentum metrics, agents.yml validation, drift detection, hardening (#9)

Review fixes:
- applyMigrations resolves chained renames deterministically (cycle guard)
- GraphQL errors name the failing owner/repo, not the alias
- sanitizeCell escapes backslash + angle brackets (README md/HTML injection)
- timeNow/graphqlURL seams; new httptest fetch tests, site + delta tests
  (coverage 30% -> 65.6%)

Features:
- delta30d computed from history; dashboard gains sortable D30d column
- README shows Top 7-day mover line
- 'go run . -check' validates agents.yml offline (dupes, categories,
  name patterns); wired into CI for contributor PRs
- isArchived + rename drift warnings in daily run; archived badge on
  dashboard (E2E found 3 archived repos: gpt-engineer, void, Roo-Code)
This commit is contained in:
2026-08-09 03:26:01 +07:00
committed by GitHub
parent 101e7129f1
commit 0d5e4b3266
16 changed files with 1036 additions and 55 deletions
+3
View File
@@ -9,6 +9,8 @@ on:
- 'go.mod'
- 'go.sum'
- '.github/workflows/ci.yml'
- 'data/agents.yml'
- 'templates/**'
permissions:
contents: read
@@ -27,6 +29,7 @@ jobs:
- run: go vet ./...
- run: go test ./...
- run: go build ./...
- run: go run . -check
lint:
runs-on: ubuntu-latest