Přeskočit na obsah

Tato stránka byla automaticky přeložena z angličtiny, jediného jazyka, ve kterém se tento web píše. Číst originál.

I3759 — Every language's homepage is held to the declared weight budget, and the capability list is fetched rather than inlined

The weight section of scripts/ci/homepage-check measures the homepage of every language site/i18n/languages.json declares against the one [budget] of site/data/homepage.toml, naming the language of a page over it, and the For engineers block of site/templates/index.html stops inlining an option per capability and fills its picker from the graphs/surfaces.json it already fetches, so that every copy fits the budget in the change that adds the gate.

PŘIPRAVENO vlna 0 · p1 · profil implementation · běží samostatně

Součást public-proof — Návštěvník vidí, jak se produkt sám dokazuje, a může ověřit každé jeho tvrzení.

Připraveno. Všechny závislosti jsou hotové, takže majordomus plan start I3759 bude přijato.

Cíl

The weight section of scripts/ci/homepage-check measures the homepage of every language site/i18n/languages.json declares against the one [budget] of site/data/homepage.toml, naming the language of a page over it, and the For engineers block of site/templates/index.html stops inlining an option per capability and fills its picker from the graphs/surfaces.json it already fetches, so that every copy fits the budget in the change that adds the gate.

Proč

The landing audit of 2026-10-20 measured the published Czech homepage at 160,895 bytes against a declared 160,000, and the English at 158,121, under two kilobytes from failing its own gate; the gate reads only the English page, so the copy every Czech reader is sent to has no budget at all. A budget that one language escapes is a figure the site does not keep. The gate must land together with the trim, or it turns master red. It is not parallel_safe because site/templates/index.html sits under the claim held for I2745; it is taken once that claim is released. public-proof owns the homepage.

Aktuální stav

On origin/master scripts/ci/homepage-check:149 reads only site/public/index.html into home, and its weight section at :831-868 compares that page alone with html_bytes, assets_bytes and inline_json_bytes; site/data/homepage.toml:40-43 declares html_bytes = 160000 for the homepage without naming a language. site/templates/index.html:326-328 renders the capability <select> with one <option> per entry of reg.registry.builtin, inline in every copy, although its x-data at :323 already fetches graphs/surfaces.json on focus.

Cílový stav

homepage-check reads site/i18n/languages.json and measures site/public/index.html and site/public/<lang>/index.html for every other language, each against the same declared budget, with one ok line per language naming its bytes and one bad line per page over a limit naming the language; the capability picker ships with only the option it shows selected and fills the rest from graphs/surfaces.json when opened; every copy of master's homepage is under its budget with the headroom reported; case 3732_every_languages_homepage_is_held_to_its_budget holds the gate on fixture pages.

Rozsah

  • scripts/ci/homepage-check
  • site/templates/index.html
  • test/cases/3732_every_languages_homepage_is_held_to_its_budget.sh
  • test/cases/406_one_declaration_every_surface.sh
  • .ai/repo/project/issues/I3759.yaml

Mimo rozsah

  • Raising any figure of site/data/homepage.toml [budget]; raising a budget is its own reviewed change
  • A separate budget per language; one declared budget holds every copy
  • The homepage's copy or sections beyond the capability picker
  • The translation memory, which I3753 and I3758 change

Závislosti

Žádné. Tento úkol je kořenem grafu.

Kritéria přijetí

  • A fixture whose English homepage is under the budget and whose Czech copy is over it fails the weight section, naming cs and the bytes over
  • A fixture where every language's homepage is under the budget passes with one ok line per declared language
  • Negative: a language declared in languages.json whose homepage copy the build did not write fails, rather than being skipped
  • The built homepage carries one capability <option> and the picker still lists every capability after it is opened
  • Every copy of the homepage built from the branch is under html_bytes

Validace

  • env -u MAJORDOMUS_SHARE -u MAJORDOMUS_HTTP_HOST -u MJ_ROOT bash test/run.sh 3732_every_languages_homepage_is_held_to_its_budget
  • env -u MAJORDOMUS_SHARE -u MAJORDOMUS_HTTP_HOST -u MJ_ROOT bash test/run.sh 333_homepage_narrative
  • scripts/site-build && scripts/ci/homepage-check && scripts/site-check

Požadované důkazy

  • every_languages_homepage_is_held_to_its_budget

Důkazy

Nic nezaznamenáno. Za každým tokenem výše musí stát příkaz nebo artefakt, než lze tento úkol dokončit; vyprávění se odmítá.

Časová osa

zahájeno
—
ověřeno
—
dokončeno
—

Tato tři pole, důkazy výše a stav závislostí jsou vše, z čeho se stav skládá. Neexistuje žádné pole stavu, které by s nimi mohlo být v rozporu.

Canonical record: .ai/repo/project/issues/I3759.yaml. Read it back with majordomus plan show I3759.

Prohledává názvy a popisy všech stránek, které tento web publikuje.