1Why the Kit is injected in full

This guide describes how to reinject an updated version of the Kit into an existing project, and how the project absorbs what it changes.

The Kit evolves as a whole. A new version does not merely bring a corrected stylesheet or a reworded document: it carries a full chain of dependencies. A stylesheet is always delivered with its associated Reference, at the same timestamp. The Registry declares the new active version. The technical prompt may hold new rules that rely on the new functions. The common structure may introduce new normative contracts that the project files must respect.

Absorbing an update piecemeal — replacing a stylesheet without its Reference, forgetting the Registry, keeping an old prompt that does not know the new rules — produces silent inconsistencies. The AI then reads documents that contradict each other, applies rules that no longer match the available functions, and the structure of produced documents degrades without warning.

Simple rule: a Kit update is obtained in a single gesture, as an archive deposited in the working thread. The archive carries the Kit's tree, save the fonts/ folder, which does not travel — Initialisation Guide §3 —, and replaces its kit/ folder in one go. No picking and choosing.

This rule is deliberately wider than strictly necessary. Deciding file by file what is useful assumes knowledge of the dependencies — precisely what should not be asked of you. A few extra explanatory documents in the context cost nothing; a missing file produces an inconsistency that will only show at the next generation.

💡A Kit update replaces the kit/ folder and leaves your project's files in place, in their own folder.

2Rule of non-compatibility

The Kit offers no compatibility, forward or backward: the rule, and what it means for generators, lives in Kit Prompt §5.2.

That is also why Kit documents carry no version number in their text: two versions are never in circulation. A document describes the present state; its history lives outside it — Kit Prompt §4.1.

3Files concerned

Your project holds side by side the Kit files, replaced in full at every update, and your project's own files, changed only at the points of step 4 and on your confirmation.

–Kit files — everything, together: a Kit update is injected in full, as delivered: the archive is authoritative, and the role of each file is tabulated in Initialisation Guide §3. No file-by-file examination is needed.

–Your project's files — on your confirmation: a Kit update touches your files only at step 4 below: the kit block of your Registry takes the version of the Kit dropped in, the site generator is brought into line with kit_publication.js, and a structural change introduced by the update may call for a migration — always on your explicit confirmation, one migration at a time. Everything else stays as you left it.

4Procedure

The update follows the steps below. For routine updates — fixes, minor new features — the archive does not call for opening a session straight away: version detection happens automatically at the start of the next session.

The §4.4 procedure applies in the first session after any update, before any other task — Prompt §10.1. An update that brings a major structural change — new data-module contract, new Registry flag, reworked export — finds its migrations there, to be confirmed before documentation work resumes.

4.1Step 1 — Fetch the Kit archive

Download the current Kit archive from the home page of the Kit's site, whose download icon carries the number of the published version, and deposit it in the working thread. The kit.downloadUrl address in the project Registry designates the installed version, not the new one: it does not serve an update — Prompt §8.3. Keep the previous archive on your machine until the procedure is over.

💡Always keep the previous Kit archive until the new version has been fully validated in a session.

4.2Step 2 — Check the versions

Before the replacement, the AI checks that the Kit Registry is part of the archive and that the declared version numbers match the actual versions of the new files.

Check Where to find it
Version of the new stylesheet file First lines of the .js file — the “Version : x.xx” comment.
Version declared in the Registry Kit - Registry.js, stylesheets section, version field of each stylesheet.
Timestamp of the file set Kit - Registry.js, stylesheets section, ts field. Must be identical to the timestamp carried by the name of the .js file and by that of its Reference.

A stylesheet file carries its version number in two places: the header comment, readable at a glance, and the exported constant that is actually written into each produced document. A gap between the two is invisible at runtime but falsifies any check. The matching audit is described in Quality Control §4.2.

💡The Registry is the only source of truth for the active versions. A version is never held from memory: it is reread in the Registry at the start of each session.

4.3Step 3 — Replace the kit/ folder

The archive replaces the whole kit/ folder, Kit Registry included — Prompt §8.3. The project files, in their own folder, are not touched.

At the start of the next thread the AI reads the Kit Registry and compares the versions it declares with those of the files present in kit/; it also compares kit.version in the project Registry with projectZip.version in the Kit Registry — Prompt §10.1. Any gap is reported, and the procedure of step 4 applies.

4.4Step 4 — Adapt the project files

A Kit update may bring changes that affect the structure of the project files: a new mandatory field in a data module, a new flag, a reworked export. In the first working session after the update, the procedure below applies without exception before any other task.

–Gap diagnosis: the structure of the existing project files is compared with the normative structure of Common Structure. Each gap is reported as “Gap detected in [file]: [description]. Migration proposed: [action]”, and waits for your explicit confirmation. No silent modification.

–Data modules: the module-specific check — mandatory fields, export conformity, multilingual format — follows the procedure in Common Structure §6.7.

–Missing optional files: for each optional file described in Common Structure and absent from your project, creation is offered explicitly. Never a silent creation.

–Existing optional files: an optional file already present is never deleted, even if its flag is false. Deleting an existing project file happens only on your explicit instruction.

–projectZip block: every project produces its archive. A Registry without a projectZip block receives one, with version, filename and updated, and the deploy block the lastArchive and lastDeploy keys, at null — Common Structure §5.1. A block still named kitZip, the former name, is renamed projectZip. kit_check_registry.py refuses their absence, and a site generator that calls kit_publication.js stops at its very start as long as they are missing — Common Structure §11.

–Part outside the Kit, optional: a project with a part outside the Kit that its site needs — corpus, scripts, pages — declares it under projectZip.include, so that its archive rebuilds them — Common Structure §11. A declared corpus that changes makes projectZip rise at the following Kit pass.

–Pages present only on the server, optional: a site whose older pages live only on the server declares their path under deploy.historicalPath. Under this path, a missing target goes to the record instead of stopping the pass; the site is then deployed by extraction over the site in place, never by replacement, and the backup of these pages falls to the site's manager — HTML Pipeline §4.

–Order of the resolutions register: the table in §4 of the journal is reversed, the most recent entry first, numbers unchanged — Common Structure §14. At the journal's next regeneration.

–kit block: kit.version takes the version of the deposited Kit — projectZip.version of its Registry —, and kit.downloadUrl the address that Registry declares under projectZip.downloadUrl. A Registry without a kit block receives one — Common Structure §5.1. kit_check_registry.py refuses its absence.

–Cover sheet: the Registry key rendering.coverSheet is removed, and so is the TAB_NUMBERED_MAX line of Cover Sheet §3, whose linked files are regenerated: a section's height always follows its content — Cover Sheet §3. kit_check_registry.py and kit_render_cover_sheet.py stop as long as either remains.

–Reading titles: a title in the lecture field of Document Titles that starts with an article — le, la, les, l’, der, die, das, the — loses it, and an adjective that followed it takes its form without an article: an index does not repeat the article on every line — Common Structure §6.8. The cover images are then rendered alone, at the timestamp of their .docx — Prompt §14.

–Site generator: the project's site generator requires ../kit/kit_publication.js and calls verifierDepart(), controlerDocuments() and demarrer() at the start, copierIcones() and copierPieces() next, preparerConversion() before the conversion of each document and imageDeMarqueur() during its walk, controlerAncres() on the converted body of each document, before renderDocument, empreinteDeContenu() and empreinteDeContenuAnterieure() on its AST, for the record that terminer() receives, copierImagesLiees(), controlerCiblesDeLiens() and controlerLiensDuSite() after the last page, etatDuSite() and renderAboutPage() for the About page of each language, and terminer() at the end of the pass, without tmpBase, instead of what it composed itself — document, anchor and link checks, content fingerprint, resources, archive, number guard, setting aside of the site, writing of the Registry. It sets the setters kit_check_setters.py --html always requires — setLanguage, setFamilyDomains, setWebAuthor, setLanguageSelector, setSiteInfrastructure — and, with several glossaries, setGlossaryHref and the buildSearchTerms surfaces in each page's language. The linter reports any absence — HTML Pipeline §7.9, Quality Control §3.4.

–Site generator outside the Kit: a project that also publishes a site outside the Kit keeps its own generator, which does not require kit_publication.js: kit_check_registry.py ignores and names it. The Kit site generator is the one that requires kit_publication.js; gen-[prefix]-site.js remains its recommended, non-reserved name — Naming Convention §3.5. kit_check_setters.py recognises the stylesheet by its own setters: a generator that names it other than style has nothing to change — Quality Control §3.4.

–Linked photos: a photo of a document lives under assets/png/{slug}/ and the document links it — General Reference §13.5. The site generator calls the three image functions of kit_publication.js, which kit_check_setters.py --html now requires — HTML Pipeline §7.10. A document that embeds its photos has them taken out under that name, normalised — HTML Reference §14.7 —, then is regenerated; caps of the project’s own are declared under rendering.images — Common Structure §5.1.

–Timestamped data modules: a data module carries its timestamp, as Naming Convention §2.1 requires: [Prefix] - Colors.js becomes [Prefix] - Colors (TS).js. kit_check_registry.py rejects, under a requires flag set to true, a module without a timestamp or a missing one — Common Structure §6.6.

–Cited Kit documents: under requires.documentTitles, every project generator also calls setKitDocumentTitles, with the table of ../kit/Kit - Document Titles (TS).js and the Kit site root, read in the Kit folder — HTML Pipeline §7.9; kit_check_setters.py requires it. A project reference that targets a Kit document by a label the project also carries is written with Kit before the label, or with the full name, then the document is regenerated — General Reference §16.

–Glossary window: a site generator that set a window or a card on glossary links itself, or a Back arrow on the glossary pages, removes that post-processing: the HTML stylesheet renders them, with no setter — HTML Reference §28. An HTML glossary produced outside kit_gen_glossaire_html.js passes glossaryPage: true to renderDocument to carry the arrow.

–Translation note: its wording changes, and it is no longer set by default: a project that wants it sets rendering.translationNote to true — Common Structure §5.1; otherwise regenerating a variant removes it. The traduction field of the glossary texts is written in the new wording, then the glossary file set is regenerated — Kit Prompt §17.

–Subtitle and cover date: regeneration composes the subtitle without language tag — General Reference §16 —, with no other step. The date in the cover page footer keeps the timestamp by default; a project that wants another sets rendering.coverDate in the Registry, or coverDate and coverDateValue per document in Document Titles — Common Structure §5.1 and §6.8.

–Root loader and embedded mode: a site generator that writes the root page itself replaces it with pageChargeur from kit_publication.js — Quality Control §3.19: it carries over the parameters of the address, embed=1 included. The embedded mode now keeps the site bar, and the landing page takes a white background there — HTML Reference §27.

–Site title and derived colours: the site generator passes titreDuSite from kit_publication.js to renderLandingPage and renderHistoryPage — Quality Control §3.19; a project without Document Titles declares deploy.siteName. A COVER_NUM_COLOR or BAR_TEXT_COLOR set only to follow the bar can leave the colours module: the Kit derives it — HTML Reference §20.

–Kit folder: it holds only the Kit archive, with node_modules/ and fonts/. Empty kit/ before unzipping a new archive into it: a file that does not come from it stops the publication pass, which names it — Quality Control §3.19. Removing it remains your decision.

Note:No project file is ever deleted autonomously, for any reason — flag switched off, file judged obsolete, or anything else. Deletion is always your decision, stated in the chat.

4.5Step 5 — Check the rendering floor

Most updates do not affect the appearance of documents already produced. Some do: a changed spacing, a changed width, a replaced colour. Your old documents then differ from your recent ones, and the binder becomes a mix of two layouts.

The Kit signals these cases with a floor, minDocumentVersion, which Kit - Registry.js declares for General, Glossary and YAML — HTML Pipeline §3.1. A document produced below any of them is no longer published; the Kit manager raises it when a rendering change requires the document set to be regenerated — HTML Pipeline §7.4. Each produced document remembers the version that produced it.

–The floor has not moved: nothing to do. Your documents stay valid, whatever version produced them.

–The floor has risen: every document produced by an earlier version is regenerated. The content does not change — it is extracted from the existing source file and rendered by the active version. The site generator refuses, through kit_publication.js, to publish a document below the floor, and says so with the file name — Quality Control §3.19.

Note:A regeneration campaign is checked document by document: kit_check_markup.py compares the markup between the source file and the regenerated document. Across a whole corpus, it also detects a perfectly valid document whose content would be another's.

5Absorption session

Open a new working thread, attach the project archive and the current Kit archive, and paste the text below as the first message.

That text triggers the orderly absorption of the update: rereading every source of truth, detecting version gaps between the Registry and the actual files, applying the §4.4 procedure to your existing project files, and proposing the necessary migrations one at a time. None of your files is modified without your explicit confirmation.

Note:Every project meets its archive again at the first pass of its generator, which calls kit_publication.js: as long as projectZip keeps its number, the archive named under deploy.lastArchive must be present — under the site's assets/downloads/ if the project is shared, at the project root otherwise — and the pass stops to ask for it if it is missing — Publishing and reuse §8.
ABSORBING A KIT UPDATE
==============================
 
CONTEXT:
------------------------------
 
The kit/ folder carries the updated Kit archive, the Kit
Registry included; the project keeps its own Registry in
its folder — one folder, one Registry. No project-owned file may be
modified without explicit confirmation.
 
MANDATORY READING — STRICT ORDER:
------------------------------
 
Before any other action, read in this order:
 
1. Kit - Registry.js
   — source of truth for the active versions.
2. Kit - Projet - Prompt - FR (TS).docx
   — permanent technical instructions; may hold new rules.
3. Kit - Projet - Guide de mise à jour - FR (TS).docx
   — this guide, in particular §4.4 adaptation procedure.
4. Kit - Projet - Structure commune - FR (TS).docx
   — normative contract of the project files, reference for
     the gap diagnosis.
5. Kit - Stylesheet - General - Code (TS).js
   + Reference - FR (TS).docx
   — main file set.
6. The other stylesheet file sets (Glossary, YAML, HTML)
   — Code (TS).js + Reference - FR (TS).docx each time.
7. [Prefix] - Registry.js and the project prompt
   — the project's declared state, to compare with the Kit.
 
VERSION DETECTION — MANDATORY REPORT:
------------------------------
 
For each stylesheet, compare:
− version declared in Kit - Registry.js
− version read at the head of the .js file
− version constant exported by the .js file
− timestamp of the file set (.js and Reference .docx)
 
Report expected for each stylesheet:
− Registry version: x.xx
− .js header version: x.xx
− exported constant: x.xx
− file set timestamp: YYYY-MM-DD - HHhMM
− consistent: yes / no
 
Also compare kit.version of the project Registry with
projectZip.version of Kit - Registry.js — Prompt §10.1.
A gap is an update to absorb.
  
GAP DIAGNOSIS ON THE PROJECT FILES:
------------------------------
 
After the full Kit reading, compare the structure of the
existing project files with the normative structure of
Kit - Projet - Structure commune. For each gap, report as:
 
    “Gap detected in [file]: [description].
      Migration proposed: [action].”
 
List every gap before applying any migration. Change nothing
until the full report has been delivered.
 
STOP CONDITIONS:
------------------------------
 
If any of the following is met, full stop and explicit
report:
 
− Kit - Registry.js missing or out of date
− a Kit .js file present without its Reference .docx,
  or the reverse, or with mismatched timestamps
− Registry version and .js file version diverge
− an expected Kit file missing from the working tree
− an existing project file contradicts a Common Structure
  contract in an ambiguous way
 
AFTER THE FULL REPORT — WAIT FOR THE GO:
------------------------------
 
No modification of an existing project file happens without
explicit confirmation, one migration at a time. No project
file is deleted autonomously, for any reason.
 
For missing optional files, ask explicitly whether they
should be created. Never a silent creation.

After the reading report and the gap diagnosis, answer “go” for each migration you approve, or “skip” for those you want to postpone. Only approved migrations are applied.

6Special case — changing language

To change your project's documentation language, ask the AI. It changes project.docLanguage in your Registry, which is its single source of truth, renames all the project files and regenerates every document in the new language — Naming Convention §5.4.

The change covers the whole project in a single batch: no document stays in the old language.

Not to be confused with publishing a document in several languages, which is a per-document decision and does not affect the project language — Naming Convention §2.4.

7What an update touches in your project

A Kit update touches your project only at the points of step 4, and on your confirmation — §4.4.

Item Impact of a Kit update
Your project files The kit block of the Registry, the site generator and the confirmed migrations — §4.4; nothing else.
Your document generators Not reusable — rewritten each session, Kit Prompt §4.1. The project's site generator is maintained and follows the steps of §4.4.
Your content documents already produced None as long as the rendering floor does not rise; beyond that, they are regenerated — §4.5.
Your glossary and data modules The confirmed structural migrations — §4.4, Common Structure §6.7 — and, when the Glossary floor rises, the regeneration of the glossary — §4.5; nothing else.
Your project-specific conventions None — they live in the dedicated section of your project prompt.