Skip to content

feat(audit): add sin-code audit --complexity (repo-wide ponytail-audit analog)#214

Merged
Delqhi merged 1 commit into
mainfrom
feat/issue-180
Jun 16, 2026
Merged

feat(audit): add sin-code audit --complexity (repo-wide ponytail-audit analog)#214
Delqhi merged 1 commit into
mainfrom
feat/issue-180

Conversation

@Delqhi

@Delqhi Delqhi commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Closes #180

Summary

Adds sin-code audit complexity as a repo-wide ponytail-audit analog and integrates it as the 48th gate in sin-code ceo-audit.

What changed

  • cmd/sin-code/internal/audit/complexity.goAuditor, Finding, Result types, deterministic static pass (single-impl interfaces, single-product factories, wrappers, one-export files, dead flags/config, hand-rolled stdlib), optional LLM judge pass, // sin-debt: marker approval.
  • cmd/sin-code/audit_cmd.gosin-code audit complexity with --path, --format, --tags, --rank, --since, --max-net-lines, --strict, --no-llm.
  • cmd/sin-code/ceo-audit_cmd.go — 48-gate CEO audit with complexity-audit as gate 48; score contribution +1 per 100 removable lines.
  • cmd/sin-code/internal/audit/complexity_test.go + cmd/sin-code/audit_cmd_test.go — race-free tests.
  • docs/complexity-audit.md, AGENTS.md, CHANGELOG.md — docs.

Verification

  • go build ./... ok
  • go test -race -count=1 ./cmd/sin-code/internal/audit/ -v ok
  • go test -race -count=1 ./cmd/sin-code/ -run 'TestAuditCommand|TestCEOAUDIT' -v ok
  • golangci-lint (new files) ok
  • govulncheck ./... ok
  • gosec audit package clean ok
  • python3 scripts/validate_skill.py --all-bundled --strict ok

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sin-code Ready Ready Preview, Comment, Open in v0 Jun 16, 2026 7:38pm

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/aragonheld-7756s-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/mariobatrhs-9606s-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-young-hobby-team-24h").

Learn More: https://vercel.com/manheiler-8784s-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/einskarst-2238s-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/ronaldokrause-9559s-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/cristianoronalodbau-9053s-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-young-hobby-team-24h").

Learn More: https://vercel.com/spriterfrau-5830s-projects?upgradeToPro=build-rate-limit

…t analog)

Adds sin-code audit complexity and sin-code ceo-audit (48 gates):

- cmd/sin-code/internal/audit/complexity.go: Auditor, Finding, Result,
  deterministic static pass (single-impl interfaces, single-product factories,
  wrappers, one-export files, dead flags/config, hand-rolled stdlib),
  optional LLM judge pass, // sin-debt: marker approval.
- cmd/sin-code/audit_cmd.go: sin-code audit complexity with --path, --format,
  --tags, --rank, --since, --max-net-lines, --strict, --no-llm.
- cmd/sin-code/ceo-audit_cmd.go: 48-gate CEO audit with complexity-audit as
  gate 48; score contribution +1 per 100 removable lines.
- Tests, docs, AGENTS.md and CHANGELOG.md updates.

Closes #180
@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)
📊 Download SARIF (for Code Scanning)

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Medium findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)

Run ID: 27643154812 · Commit: ${github.sha}

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

@Delqhi
Delqhi deleted the feat/issue-180 branch June 16, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(audit): add sin-code audit --complexity (ponytail-audit analog, repo-wide, 5-tag format)

1 participant