Skip to content

feat(cli): fix compile-all path resolution + add stats command - #67

Merged
gHashTag merged 1 commit into
masterfrom
feat/compile-fix-stats
Apr 4, 2026
Merged

gHashTag merged 1 commit into
masterfrom
feat/compile-fix-stats

Conversation

@gHashTag

@gHashTag gHashTag commented Apr 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix compile-all: Auto-detects the repo root by searching for specs/ directory up from CWD (up to 3 parent levels). Previously returned 0 files when run from bootstrap/ or any subdirectory. Added --specs-dir flag for explicit override.
  • Add stats command: t27c stats displays repository statistics — spec files, functions, tests, invariants, benchmarks, conformance files, seals, backends, CLI commands, compiler LOC, and fixed point ring status.

Example output

$ t27c stats
T27 Repository Statistics
========================
Spec files:     43 (28 in specs/, 15 in compiler/)
Functions:      363
Tests:          1121
Invariants:     641
Benchmarks:     301
Conformance:    11 JSON files
Seals:          43 saved
Backends:       3 (Zig, Verilog, C)
CLI commands:   10
Compiler LOC:   4957
Fixed point:    REACHED (ring-17)
phi^2 + 1/phi^2 = 3 | TRINITY

Closes #62

Test plan

  • t27c compile-all from repo root produces 43 files
  • t27c compile-all from bootstrap/ subdirectory auto-detects and produces 43 files
  • t27c compile-all --specs-dir <path> works with explicit path
  • t27c stats shows correct counts matching actual file/line analysis
  • cargo build passes with no errors

🤖 Generated with Claude Code

compile-all now auto-detects the repo root by searching for specs/
directory up from CWD (up to 3 parent levels). Also accepts an
explicit --specs-dir flag. The stats command shows repository
statistics including spec files, functions, tests, invariants,
benchmarks, seals, compiler LOC, and fixed point status.

Closes #62

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gHashTag
gHashTag merged commit 37aa14a into master Apr 4, 2026
2 checks passed
gHashTag added a commit that referenced this pull request Jun 1, 2026
feat(cli): fix compile-all path resolution + add stats command
@gHashTag
gHashTag deleted the feat/compile-fix-stats branch June 16, 2026 13:33
gHashTag added a commit that referenced this pull request Jun 17, 2026
- Add Bijan Pedram (Zenodo:18355845) and Spectral Causal Theory
  (GitHub sct-theory) as competitors #67–#68.
- Update COMPETITIVE_POSITIONING.md header to Wave Loop 75.
- Include arXiv .tex/.out/.pdf changes from W74/W75.

Landscape: 68 competitors stable; no new EXTREME threats.

Closes #1191
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.

[TASK-010] Fix compile-all path resolution + add t27c stats command

1 participant