Research
Three frameworks, each written down with the rule we run, its file and line, and what is public. The first is a command you can run on your own repository today.
Three frameworks, each written down with the rule we run, its file and line, and what is public. The first is a command you can run on your own repository today.
One command reads a repository and says where the cost of change sits.
git clone https://github.com/pranavlakherwal/architecture-as-function.git cd architecture-as-function PYTHONPATH=impl python3 -m a_star measure .
Seven readings come back. Each is a cost, ranked against the 58 repositories we have measured, and lower is better. Python 3.9 or later, standard library only, nothing to install. Here is what we got on smt-router, our public routing repository, on 7 November 2026. The run took 0.17 seconds.
Read 7 November 2026, against 58 repos measured 7 November 2026. Lower is better on every line. How deep a reader digs to find a file 1.131 weighted folder levels higher than 6 of 58 measured repos fine How often a changed file changes again in a year 2.025 touches per file higher than 48 of 58 measured repos act How much the repository stores 2,458,418 bytes (2.3 MB) higher than 19 of 58 measured repos fine What the system costs to run each month 0 USD per month higher than 0 of 58 measured repos fine How many kinds of file the repository mixes 0.757 of 1 higher than 43 of 58 measured repos fine How many links inside the docs point nowhere 0.000 of 1 higher than 0 of 58 measured repos fine How much of what is tracked is a build output 0.000 of 1 higher than 0 of 58 measured repos fine Top three fixes (1 reading sits above three quarters of the measured repos; the rest are the next by rank) 1. Split the files that take most of the changes. The 5 most touched files take 28 of 160 touches (18%): README.md (7), CHANGELOG.md (6), paper/main.pdf (6), paper/main.tex (5), router/config.py (4). Split the ones that change for more than one reason. 2. Cut the odd file types. 13 file types across 69 files. The rarest: .bak (1, e.g. registration/SMT_Router_Paper_v1.4.pdf.ots.bak), .bib (1, e.g. paper/bibliography.bib), .example (1, e.g. .env.example), .lock (1, e.g. uv.lock), .yml (1, e.g. .github/workflows/ci.yml). Each odd type is a tool a new reader has to learn; drop or consolidate the ones nobody runs. 3. Move the largest files out. The 5 largest files hold 1.6 MB of 2.3 MB (69%): uv.lock (784.4 KB), SMT_Router_Paper_v1.5.pdf (249.5 KB), paper/main.pdf (249.5 KB), SMT_Router_Paper_v1.4.pdf (239.5 KB), SMT_Scoring_AI_Endpoints.pdf (125.4 KB). Move the ones that are outputs, not sources, out of the repository.
The offer. The first three readings we do with a team are free, in return for permission to quote the before and after. After three, a paid step: an hour with your engineer and a written reading.
architecture = f( purpose, knowledge, pipeline, people, models, constraints )
The command is the measuring end of the function above. Seven starting classes and four operators, applied with a depth cap of three, derive a system from a job description. Composition is capped, flow runs one way, and a system that fails one of five gates stops.
Status: the version 0.2 specification is frozen and the measure command is public. The first end-to-end derivation on a live engagement is open. We label A* directional.
Public: the command, the seven readings, the 58-repository reference as numbers only, all six inputs, the operators, the gates. Ours: the thresholds and the weightings.
The repository holds the command, the specification and the research notes.
S(M,T) is a score over models M and tasks T. It is fitted to a client's own tasks, so the routing decision belongs to their work.
For each kind of job the router names up to three options. Each is the cheapest setting that got 90, 95 or 98 answers right in 100, cleared twice. The paper is at version 1.5, dated 7 November 2026.
The rule we run: a softmax over model scores at a temperature that falls as evidence accumulates. It is written in scorer.py at lines 130 and 156, and the settle picture on the home page draws it.
As deployed: the live prompt hook runs one fixed temperature, at line 455 of shadow_router.py. As verified: an offline replay across 344 models cut cost by about half. Quality stayed within a few points of the frontier model, on the tasks measured.
We label that result directional. When an earlier headline number of ours traced to a confound, we demoted it ourselves. That is the standard here, and no outside check of the replay has run yet.
Public: all six inputs and the shape of the rule. Ours: the fitted weights.
Every system we ship carries checks that run before anything reaches a person.
This site runs four gates of its own on its writing: voice, citation, redaction and design conformance. Every piece on Architecturalism passed all four before it was published.
Public: the checks and what each asks. Ours: the thresholds.
Three repositories are public, with the papers beside the code. Each carries a registration folder. It holds the hash of the work, tied to a Bitcoin block through OpenTimestamps. Anyone can check the date without trusting us.
To check a proof: open opentimestamps.org, drag in the proof file and the document, and read the block and its date. The how-to sits in each registration folder.
Each piece on Architecturalism names the framework it derives from.
The next pieces describe our own systems the same way. The job in one line. The framework and the rule, and the papers each build derives from. The function, with all six inputs filled in.
If it can be written down, it can be checked, and the model inside it can change.