Skip to content

docs: correct the validation tolerance, document n_Storey as inert, clean up register - #48

Merged
jravani merged 3 commits into
mainfrom
docs/prose-cleanup
Sep 23, 2026
Merged

jravani merged 3 commits into
mainfrom
docs/prose-cleanup

Conversation

@jravani

@jravani jravani commented Sep 23, 2026

Copy link
Copy Markdown
Member

Documentation pass over the MkDocs pages, the arc42 chapters and the OpenAPI descriptions, plus two code comments the pass showed to be wrong.

Factual corrections

Validation tolerance. docs/validation.md and docs/getting-started.md said ±2%. cmd/validate/main.go enforces 2.5, and data/README.md already said ±2.5%. Both pages now say 2.5%, and the two stale comments in cmd/validate/main.go are corrected in their own commit.

Spain. The November 2025 results table is unchanged and stays as the dated record of that run. A new "Measured 2026-09-23" subsection carries a fresh measurement of all 72 Spanish variants: 48 of 72 passing, signed mean error -2.32%, 71 of 72 computing below the reference and none above, failures between 2.50% and 3.57%, the offset flat across magnitude. Germany, Italy and France show no comparable bias on a 25-row sample each. A warning box explains why the pass count is unstable: a 2.3% offset inside a 2.5% gate, with references rounded to one decimal worth up to 2.9% at the lowest magnitudes. The prose no longer quotes the stale 22.2% figure. Tracked in #47.

n_Storey is accepted but inert. It reaches the result only through the envelope-area estimation path, gated on Code_TypeIntake_EnvelopeArea == "Estimation" (calc_level_05.go, calc_level_06.go, calc_level_07.go), and no shipped TABULA variant carries that code. Its remaining consumers are the envelope plausibility ratios, which converge on Check_EnvArea_ExactToEstim (calc_level_10.go:40); nothing reads that value, since level 11 takes only HTransmissionThermalBridging from level 10. The override table in docs/api.md no longer pairs it with h_room, which is a real lever, and the OpenAPI description and the handler doc comment now state both reasons.

PostgreSQL. README said >= 15 where docs/getting-started.md says 15 to 17. Both now say 15 to 17.

Register

Second person removed, audience: developer front matter added to the four MkDocs pages, flag emoji and tick marks removed from the country table, em dashes replaced in data/README.md and five OpenAPI descriptions. One clause of session narrative removed from ADR-002. ADR-004, ADR-005 and ADR-006 are untouched, as is documentation/content/07-deployment-view.md.

Licence, copyright and acknowledgement wording is unchanged throughout.

Checks

mkdocs build --strict exits 0. The OpenAPI file still parses as YAML. go build ./..., go vet ./... and gofmt are clean, and the calc and api test packages pass.

State the validation tolerance as the 2.5% the validator actually
enforces. Two pages said 2% while cmd/validate/main.go has always used
2.5, and data/README.md already said 2.5%.

Record a fresh measurement of the Spanish variants alongside the
November 2025 table, which stays as the dated record of that run. The
72 Spanish variants now pass 48 of 72, and the deviation is a uniform
-2.32% offset that sits just inside the 2.5% gate, so the pass count
moves without the underlying problem changing. The prose no longer
quotes the stale 22.2% figure.

Document n_Storey as accepted but inert. It reaches the result only
through the envelope-area estimation path, gated on
Code_TypeIntake_EnvelopeArea being Estimation, which no shipped TABULA
variant selects; its remaining consumers are plausibility ratios ending
in Check_EnvArea_ExactToEstim, which nothing reads.

Align the README on PostgreSQL 15 to 17, matching getting-started.md.

Remove second person, flag emoji and tick marks, and add audience front
matter to the four MkDocs pages. Replace em dashes in data/README.md and
five OpenAPI descriptions.
The comment on tolerancePercent claimed 2% next to a 2.5 constant, and
the comment above the pass check repeated it. The constant name already
states what the check does, so the second comment is removed rather than
corrected.
The comment said n_Storey has less effect once real surfaces are given.
It has none. Both paths it feeds are inert: the envelope-area estimation
branch is gated on a code no shipped variant carries, and the
plausibility ratios end in a value nothing reads.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jravani
jravani merged commit 80ea48e into main Sep 23, 2026
6 checks passed
@jravani
jravani deleted the docs/prose-cleanup branch September 23, 2026 19:46
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.

2 participants