Repository navigation
by the numbers
Measured on 2026-11-12 at 00dc7637f89a47ee6fd4713204f8331418428370, Sych contains five Rust crates and 98,036 physical lines of owned source, separate test files and configuration. These are repository-shape measurements, not estimates of correctness or maintenance effort. See Architecture for what the components do and Lore for their timeline.
The inventory comes from git ls-tree -r HEAD and git cat-file --batch, not a working-directory scan. HEAD and origin/main both resolved to the revision above. Untracked files, target/, node_modules/, generated wiki pages and installed dependencies do not enter the measurements.
A physical line is an LF-delimited line, including a final unterminated line. Blank lines and comments count. This is not executable/logical SLOC. Language follows the file extension, with shebang-based recognition for the two extensionless scripts. A Vue file is counted wholly as Vue, including its TypeScript and template sections; code embedded in YAML fixtures is not reclassified as Rust, Go or another language.
Classification is mutually exclusive and path-based:
-
Source: owned implementation, declarations, SQL migrations and helper scripts. This includes Rust
build.rsfiles and declaration-only TypeScript files. -
Test: code beneath
tests/or__tests__/, files namedtests.rs, and*.spec.*or*.test.*files. Test helpers are included. -
Configuration: manifests, workflow YAML, policy/example configuration, tool manifests, compiler/bundler configuration,
Dockerfile,justfileand recognized dotfiles. - Separate buckets: documentation, generated outputs/lockfiles, vendored files, fixture/evaluation data, other data and binary assets.
Generated and vendored exclusions follow the explicit paths in .gitattributes, plus Cargo.lock, the indexer's pnpm-lock.yaml and *.gen.* names. In particular, schemas/, JSON under docs/examples/, package lockfiles, web/src/modules/Ui/components/ui/ and eval/bench/plants/ are not owned source here. The generated API declaration web/src/modules/Api/schema.gen.d.ts is not tracked at this revision.
Important limitation: inline Rust #[cfg(test)] modules remain in their containing source file's bucket. No parser was used to split them out. The test/source ratios below therefore describe separate files, not the full amount of test code and certainly not test coverage. These measurement rules are not Sych's runtime classifier in crates/sych-core/src/path_class.rs.
| Bucket | Files | Physical lines |
|---|---|---|
| Owned source | 426 | 68,712 |
| Separate test code | 139 | 27,393 |
| Configuration | 45 | 1,931 |
| Measured source + test + configuration | 610 | 98,036 |
| Documentation | 28 | 3,759 |
| Generated outputs and lockfiles | 25 | 32,603 |
| Vendored code and planted benchmark patches | 51 | 1,017 |
| Fixture and evaluation data | 184 | 9,647 |
| Other text data | 4 | 231 |
| Binary assets | 24 | Not counted |
| All tracked files | 926 | 145,293 text lines |
This chart combines only the source, test and configuration columns. Rust accounts for approximately 90.4% of those physical lines. Small bars are intentionally not expanded onto a different scale.
xychart-beta horizontal
title "Owned source, tests and configuration: physical lines"
x-axis ["Rust", "Vue", "TypeScript", "SQL", "JSON", "YAML", "TOML", "Python", "JavaScript", "CSS", "Shell", "Other"]
y-axis "Physical lines" 0 --> 90000
bar [88602, 3743, 2129, 1012, 744, 639, 265, 212, 196, 177, 145, 172]
| Language or format | Source | Test | Configuration | Total |
|---|---|---|---|---|
| Rust | 62,138 | 26,464 | 0 | 88,602 |
| Vue | 3,743 | 0 | 0 | 3,743 |
| TypeScript | 1,364 | 674 | 91 | 2,129 |
| SQL | 1,012 | 0 | 0 | 1,012 |
| JSON | 0 | 0 | 744 | 744 |
| YAML | 0 | 0 | 639 | 639 |
| TOML | 0 | 0 | 265 | 265 |
| Python | 0 | 212 | 0 | 212 |
| JavaScript | 120 | 43 | 33 | 196 |
| CSS | 177 | 0 | 0 | 177 |
| Shell | 145 | 0 | 0 | 145 |
| HTML | 13 | 0 | 0 | 13 |
| Dockerfile | 0 | 0 | 41 | 41 |
| justfile | 0 | 0 | 53 | 53 |
| Other configuration | 0 | 0 | 65 | 65 |
| Total | 68,712 | 27,393 | 1,931 | 98,036 |
The Python row is the fake language-server helper at crates/sych-adapters/tests/fixtures/fake_lsp.py, not a production Python subsystem. The SQL source row contains the 17 SQLite and eight PostgreSQL migrations.
Directories are grouped by crate, dashboard source, documentation-site package, migration backend and scripts. A source-file average is the arithmetic mean of source physical lines per source-classified file in that group, excluding separate tests, configuration, generated files and vendored components.
| Directory | Source files | Source lines | Mean lines/source file | Test files | Test lines | Test/source files |
|---|---|---|---|---|---|---|
crates/sych-adapters/ |
67 | 16,323 | 243.6 | 23 | 4,323 | 0.34 |
crates/sych-app/ |
91 | 16,663 | 183.1 | 47 | 10,090 | 0.52 |
crates/sych-core/ |
90 | 21,268 | 236.3 | 33 | 8,056 | 0.37 |
crates/sych-storage/ |
31 | 7,699 | 248.4 | 17 | 4,207 | 0.55 |
crates/sych-style/ |
2 | 185 | 92.5 | 0 | 0 | 0.00 |
web/src/ |
113 | 5,240 | 46.4 | 18 | 674 | 0.16 |
web/, outside web/src/
|
2 | 14 | 7.0 | 0 | 0 | 0.00 |
site/ |
3 | 163 | 54.3 | 1 | 43 | 0.33 |
migrations/sqlite/ |
17 | 578 | 34.0 | 0 | 0 | 0.00 |
migrations/postgres/ |
8 | 434 | 54.2 | 0 | 0 | 0.00 |
scripts/ |
2 | 145 | 72.5 | 0 | 0 | 0.00 |
Repository-wide, the separate-test/source file ratio is 139 / 426 = 0.33; the corresponding physical-line ratio is 27,393 / 68,712 = 0.40. A zero separate-test count does not mean no tests: crates/sych-style/src/lib.rs, for example, contains inline unit tests. See Testing for actual test entry points.
Cargo.toml declares five workspace members. Owned Rust source comprises 281 files: 277 under crate src/ trees, two binary entry points and two build scripts. Treat 277 as a file-backed module inventory, not a compiler-resolved module count.
A line-oriented scan of those 281 files found 360 explicit mod declarations, including inline modules and inline test modules. Conditional compilation, embedded source examples and multiple declarations of one module can affect this approximation.
The same scan counted declarations beginning with unrestricted pub, excluding fields and pub use:
| Declaration kind | Approximate occurrences |
|---|---|
| Functions and methods | 701 |
| Structs | 439 |
| Enums | 155 |
| Constants | 93 |
| Type aliases | 4 |
| Traits | 3 |
| Non-module declarations | 1,395 |
| Public module declarations | 94 |
| Including modules | 1,489 |
Another 256 matching declarations use restricted visibility such as pub(crate) or pub(super) and are excluded from that public total. These are syntactic occurrences, not a stable external API size: private ancestors may hide pub items, trait members need not spell pub, reexports and macro-generated declarations are omitted, and raw strings or disabled cfg branches can be counted. No Rust semantic index was built for this measurement.
Reading only the five crate manifests' normal [dependencies] sections gives five internal edges and a longest chain of two edges, for example sych-app → sych-adapters → sych-core. The alternative through sych-storage has the same depth. sych-style has no internal workspace dependency.
graph LR
App["sych-app"] --> Adapters["sych-adapters"]
App --> Storage["sych-storage"]
App --> Core["sych-core"]
Adapters --> Core
Storage --> Core
Style["sych-style"]
Sources are crates/sych-app/Cargo.toml, crates/sych-adapters/Cargo.toml, crates/sych-storage/Cargo.toml, crates/sych-core/Cargo.toml and crates/sych-style/Cargo.toml. This excludes external crates, dev/build dependencies, feature resolution and function calls. It is not the depth of Cargo.lock's complete dependency graph.
A text scan of owned, non-test TypeScript and Vue beneath web/src/ found 112 files, 319 resolved directed edges and a longest chain of nine edges. It recognizes relative paths and the @/ alias from web/vite.config.ts, including from, side-effect imports, reexports and literal dynamic imports. Type-only imports count too. Strongly connected components were condensed before measuring; this particular scanned graph had no multi-file component.
One longest chain is:
web/src/app/entry.tsweb/src/app/router.tsweb/src/pages/audit/index.vueweb/src/modules/Audit/index.tsweb/src/modules/Audit/ui/AuditTable.vueweb/src/modules/Session/index.tsweb/src/modules/Session/ui/InstanceSwitch.vueweb/src/modules/Session/session.tsweb/src/modules/Api/index.tsweb/src/modules/Api/client.ts
This is a file import/reexport chain, not a runtime execution path. Barrel files contribute edges to exports an individual consumer might never use. External packages, styles, vendored components, tests and generated declarations are outside the graph. The one unresolved local specifier is ./schema.gen in web/src/modules/Api/client.ts, whose declaration is generated by web/package.json. Regex matching can also miss or overcount syntax; this is not a TypeScript compiler or bundler proof and does not establish an exact semantic dependency depth for the application.
History is the 156 commits reachable from origin/main at the documented revision, which also equals its first-parent count. The first recorded commit is dated 2026-10-26. Counts use each commit's recorded committer calendar date, retaining its timezone's date rather than normalizing to UTC; the latest two commits are dated November 12 in their recorded +07:00 offset.
| Window | Commits |
|---|---|
| Last seven calendar days, 2026-11-06 through 2026-11-12 | 25 |
| Last 30 calendar days, 2026-10-14 through 2026-11-12 | 156 |
| Last 90 calendar days, 2026-08-15 through 2026-11-12 | 156 |
| October 2026, observed history from October 26 | 84 |
| November 2026 through November 12 | 72 |
| Monday-start calendar week | Commits |
|---|---|
| 2026-10-26 through 2026-11-01 | 95 |
| 2026-11-02 through 2026-11-08 | 55 |
| 2026-11-09 through 2026-11-12, incomplete week | 6 |
This repository's recorded history covers only 18 calendar dates, not a full 90-day development period. These counts measure landed commits, not pull requests, work hours or contributor productivity.
Two of 156 commits, or 1.28%, have explicit bot attribution: both have a bot Co-authored-by trailer; none has a detected bot author. Commits are counted once if either field matches. The scanner checks author name/address and coauthor trailer text for [bot] or the explicit agent labels factory-droid, github-copilot, claude/claude-code and codex. Committer identities and prose mentions do not count.
This is a lower bound on visibly attributed bot involvement, not an estimate of AI-written code. Missing trailers, squash behavior, unrecognized bot names and human-authored commits made with agent assistance cannot be recovered from these fields. No per-person statistics or addresses are published.
The window is 2026-08-15 through 2026-11-12. Churn is added + deleted text lines from first-parent git log --root --no-renames --numstat, using the same source/test/configuration path rules. It excludes generated outputs, vendored files, documentation and fixture data. Historical deleted paths are retained in this history measurement; current-size measurements above use only HEAD.
The window includes the initial import, so both totals and totals after the initial commit are shown. Across the measured paths there are 104,417 added lines, 6,381 deleted lines and 110,798 churn lines; excluding the initial commit leaves 54,134 churn lines. Churn is not net growth or a defect-risk score.
| Directory | Added | Deleted | Churn | Churn after initial commit |
|---|---|---|---|---|
crates/sych-core/ |
31,482 | 2,130 | 33,612 | 14,903 |
crates/sych-app/ |
28,655 | 1,859 | 30,514 | 16,204 |
crates/sych-adapters/ |
22,435 | 1,211 | 23,646 | 6,802 |
crates/sych-storage/ |
12,862 | 928 | 13,790 | 8,104 |
web/src/ |
6,127 | 213 | 6,340 | 6,340 |
The highest-churn paths that still exist at HEAD are:
| File | Added | Deleted | Churn | Commit touches, including import |
|---|---|---|---|---|
crates/sych-core/src/publication/summary.rs |
807 | 241 | 1,048 | 10 |
crates/sych-adapters/src/tools/mod.rs |
623 | 295 | 918 | 5 |
crates/sych-core/src/broker/build.rs |
663 | 255 | 918 | 9 |
crates/sych-app/src/server/api.rs |
758 | 151 | 909 | 10 |
crates/sych-app/src/quality/score.rs |
652 | 209 | 861 | 6 |
crates/sych-storage/src/lib.rs |
682 | 121 | 803 | 17 |
crates/sych-app/tests/analysis.rs |
637 | 154 | 791 | 12 |
crates/sych-core/tests/router.rs |
673 | 109 | 782 | 7 |
Rename detection is deliberately disabled for reproducible path accounting. Consequently, the historical paths crates/sych-core/tests/config.rs and crates/sych-adapters/tests/git_snapshot.rs reach 1,182 and 1,166 churn lines, respectively, even though history shows them split/moved into directory-based suites. They are not evidence of discarded tests or wholesale subsystem rewrites.
Local generation artifacts are .local/wiki-work/measure_repository.py and .local/wiki-work/repository-statistics.json. The script uses Python 3.11+ standard-library modules and Git, asserts the documented HEAD/origin/main, reads immutable blobs and writes only the sanitized JSON report beside itself. The report contains per-file classifications, aggregate measurements, commit dates/subjects, growth checkpoints and churn tables, but no author identities or email addresses.
The tracked anchors are .gitattributes, Cargo.toml, crates/sych-core/src/lib.rs, the five crate manifests, web/package.json, web/vite.config.ts, site/package.json and the Git history of origin/main. No build, test suite, semantic indexer or dependency installation was needed to produce these figures.