1Introduction

The Kit presents itself as independent from the artificial intelligence that runs it; its chain nonetheless assumes tools, a directory layout and behaviours that the engine must provide. This document states what it requires.

Each engine writes its own record alongside, answering the contract of §2 line by line and declaring what it lacks. The contract belongs to the Kit and holds everywhere; the record belongs to the engine, and only it can measure it.

Note:A record ages, and that is intended. An environment that shifts shows in the gap between two records. It is also why the check in §5 is replayed every session rather than read from a document.

2Execution contract

Each line names a capability, the use the chain makes of it, and what falls away without it. The order of the lines is fixed: it is what makes two records comparable.

Capability Use Without it Degree
Node.js Runs the stylesheets and the generators. Version 22, 24, or 26 and later: range imposed by the dependencies pinned in package-lock.json. Nothing is produced. Required
docx module Builds the document and serialises it. No document. Required
Python 3 Extraction, checking and rendering tools. No checks, no cover sheet. Required
pandoc Converts a document into a web page, and reads the Cover Sheet. Version 3 or later: the conversion reads table cells in that version's format. The publication pass stops, naming it: no web page. The renderer stops too: no cover sheet rendered. Required to publish the site
LibreOffice Converts a document into PDF. The site publishes without PDFs; the pass announces it at the start. Conditional
zip Produces the project archive, which every project delivers. The pass, or the production of the archive outside the pass, stops, naming it: the project archive would not be produced. Required to publish the site or produce the project archive
unzip Checks the content of the project archive. The pass, or the production of the archive outside the pass, stops, naming it: the archive would go unchecked. Required to publish the site or produce the project archive
Pillow Composes the cover sheet PNG. No rendered cover sheet. Conditional
Verdana fonts Rendering the cover sheet — fonts/Verdana-Regular.ttf, -Bold and -Italic, deposited from the user’s machine. The renderer stops, naming the missing faces: no rendered cover sheet. Conditional
adm-zip module Builds the site archive. The publication pass stops, naming it: no site archive. Required to publish the site
Note:No external module other than docx is required to produce a document: the fingerprint is verified by reading the archive’s central directory, without a library. adm-zip serves only site publication, which depends on it.

3Degrees of requirement

The degrees govern what to do when a capability is missing.

–Required: the chain stops. There is no honest degraded version of a document: without the building engine there is not a poorer document, there is no document.

–Required to publish the site: the publication pass stops, naming the capability; producing and checking documents go on.

–Required to publish the site or produce the project archive: as the previous degree, and producing the project archive outside the pass also stops, naming the capability — Common Structure §11.

–Conditional: one output disappears, the rest comes out. A site without PDFs beats no site. The omitted output is declared.

–Tolerated: a workaround exists and is declared with its cost, for a required capability as for any other. Installing at the start of a session is one: it does not survive.

Note:Produce what you can as long as what you produce stays right. The distinction lies in the nature of what is missing: a missing conditional capability removes an output, a missing required one makes the result wrong. A document with an empty body opens without warning; check 13 of the validator and the round trip stop it — Quality Control §3.1, §3.10 and §3.14.

4Rules independent of the engine

They follow from the contract and hold in any environment. Those whose home is elsewhere are recalled here because a record answers them; the last one has its home here.

–Single resolution: every file in one chain resolves the building module the same way. Two instances produce a valid and empty document. General Reference §1.3.

–Resolution order: ordinary resolution, then the node_modules folder declared in KIT_NODE_MODULES, then the one the package tool reports. No path is written in advance.

–Local timestamp: file names carry Luxembourg time, never the container’s. Only the Registry deployment stamp is in universal time.

–Rewritten generator: no document generator survives from one session to the next; each session starts from the active stylesheet and its Reference. The project's site generator and the Kit's tools are durable — Kit Prompt §4.1.

–No engine-specific code: the Kit has no module and no stylesheet variant per engine. What sets an engine apart — what its container exposes, what its importer does with the binaries — is declared in its record — §1.

5Environment check

The engine replays the check below and declares its result, each capability before the step that uses it: at the start of the session, Node.js, the docx module and Python; before a site publication, pandoc, LibreOffice, zip, unzip and adm-zip; before producing the project archive outside the pass, zip and unzip; before a cover sheet rendering, pandoc, Pillow and the fonts. The commands are run from the Kit folder, kit/ beside the project, where docx and the fonts live — Common Structure §3: run elsewhere, they do not see what the stylesheet resolves. Each part of the check opens the step it precedes in the chain of Quality Control §3.13; Quality Control §3.14 details the module test.

# Depuis le dossier du Kit — kit/, à côté du projet
# À l’ouverture de session
node --version
node -p "require.resolve('docx')"
node -p "Object.keys(require('docx')).length"
python3 --version
# Avant une publication du site
which pandoc soffice zip unzip
pandoc --version | head -1
soffice --version
node -e "require('adm-zip'); console.log('adm-zip')"
# Avant une production de l’archive du projet hors de la passe
which zip unzip
# Avant un rendu de couverture
pandoc --version | head -1
python3 -c "import PIL; print('Pillow', PIL.__version__)"
ls fonts/

The declaration precedes the step that uses the capability, never the reverse. The engine announces what it will produce and what it will not. Discovering an absence at the end of a pass is discovering it too late.

–A required capability is missing: stop, naming the capability and the command that installs it.

–A conditional capability is missing: the corresponding output is announced absent, and the pass continues.

–A workaround is applied: it is declared in the pass output and carried into the engine’s record.

6Format of a record

An engine record carries the engine prefix and the Documentation category — Naming Convention §2. It has the following sections, in this order.

# Section Content
1 Purpose and dates Which environment, date of writing and date of last check. The gap between them informs.
2 Answer to the contract The table of §2, same line order, with what is observed and where.
3 Gaps What is missing, and which degree of §3 it matches.
4 Workarounds What is done about it, and what it costs.
5 Particularities What changes how one works, outside the contract.
6 Raw record Commands and outputs, verbatim. The evidence for section 2.
Note:Section 5 is the one no other engine can write in its place. It carries what no command measures: how an attached file reaches the engine, what survives a session, what is lost.

7What the Kit does not guarantee

Some assumptions fall outside the contract because the Kit endures them without being able to impose them. They belong in each engine’s record, section 5.

–Persistence between sessions. Nothing guarantees that an environment recovers its state. This is what grounds the §5 check and the rewriting of the document generator.

–The form of an attached file. An engine may deliver a document as a binary or as extracted text. In the second case, modifying an existing document from what is read produces an impoverished file with nothing to signal it — hence the Source file rule, Kit Prompt §4.1.