docs: assume computeMiseEnPlace as public API (audit B10) #65

Merged
abiwab merged 3 commits from fix/audit-b10 into main 2026-09-30 18:19:00 +02:00
Owner

Audit B10. computeMiseEnPlace was exported by accident (export * on metrics.ts) yet documented and used by the conformance suite. Decision (maintainer): keep it public and assume it, before 1.4.0 freezes it.

  • JSDoc states the contract: signature stable, the way the cost is split between sections may still be refined in a minor, like a compiler fix
  • contract tests on the public index: computeMiseEnPlace(result.sections, registry) equals the compiled miseEnPlace, and calculatePreparationTime gives the same result with or without the split passed as third argument
  • docs EN/FR: the calculatePreparationTime signature was outdated since the optional third parameter (B9); computeMiseEnPlace now says what it returns
  • kitchen changeset extended

No behaviour change: ci (1310 tests) and conformance 98/98.

Audit B10. `computeMiseEnPlace` was exported by accident (`export *` on metrics.ts) yet documented and used by the conformance suite. Decision (maintainer): keep it public and assume it, before 1.4.0 freezes it. - JSDoc states the contract: signature stable, the way the cost is split between sections may still be refined in a minor, like a compiler fix - contract tests on the public index: `computeMiseEnPlace(result.sections, registry)` equals the compiled `miseEnPlace`, and `calculatePreparationTime` gives the same result with or without the split passed as third argument - docs EN/FR: the `calculatePreparationTime` signature was outdated since the optional third parameter (B9); `computeMiseEnPlace` now says what it returns - kitchen changeset extended No behaviour change: ci (1310 tests) and conformance 98/98.
abiwab merged commit 73b396d593 into main 2026-09-30 18:19:00 +02:00
abiwab deleted branch fix/audit-b10 2026-09-30 18:19:00 +02:00
Sign in to join this conversation.
No description provided.