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.

assemble

A*: the architecture as a function

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): which model for which task

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.

The gates: checks that stop rather than guess

Every system we ship carries checks that run before anything reaches a person.

  • Sources named. Every fact carries its source and the date we read it, so you can open the same page we did.
  • Figures tied back. A number in a document is pulled from the ledger it came from, so a mistake in one line cannot travel into a total.
  • Same answer twice. The work runs again from a blank start and the numbers come back the same.
  • Stops on doubt. When a check fails, the work stops and names the one thing it needs confirmed.

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.

Read the code and check the proofs

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.

Where the writing comes from

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.

Notes
  1. scorer.py, lines 130 and 156: the softmax at temperature 1/beta(t), the rule the settle picture draws. Our router, as of October 2026.
  2. shadow_router.py, line 455: the fixed temperature in the live prompt hook, as of October 2026. The page says what runs and what was verified, and claims no more.
  3. A_STAR_v0_2.md, lines 30, 71, 113, 186 and 189; composition.py, lines 8 and 21; gates.py, line 7. The A* specification, version 0.2, as of October 2026. The measure command and the smt-router result are from the README of architecture-as-function, read 7 November 2026. The reference is 58 repositories measured that day, numbers only, in fleet_reference.json. The run took 0.17 seconds by time.
  4. The 344-model replay is our own measurement, offline, as of October 2026, recorded in our positioning note as a proof point. It carries the label directional until an outside check lands.
  5. The options at 90, 95 and 98 are from the README of smt-router and docs/ROUTE_OPTIONS_2026-11.md. We measured 56 models in 66 settings on 400 tasks, on 5 and 6 November 2026. No outside party has checked it yet. Paper v1.5 is dated 7 November 2026.

What system of yours could you write down as a function today?

If it can be written down, it can be checked, and the model inside it can change.

invade