fix(stage): align session export render cap with artifact bound

Six computed Flutter runs stopped at the export handoff gate because the
rendered session.html cap was 2 MiB while their complete sessions (well inside
the 8 MiB source read bound) rendered between 2.25 and 4.28 MiB once html
escaping and the readable projection duplicated native text.

Raise SessionExportFileLimit to 8 MiB, the server's existing per-artifact file
bound, so a complete export is still listed and served. Normal export
verification, versioned repair and the handoff gate keep using the single
shared constant. The source read bound is unchanged, and an over-cap render is
still visibly truncated and recorded partial.

Add focused regressions for a complete export above the old cap, an over-new-cap
file rejected as partial, repair above the old cap leaving original evidence
untouched, the gate accepting the larger repair, and the constant staying inside
the artifact file bound. Update the artifact, handoff-gate and operations docs
and record the diagnosis in docs/notes/session-export-render-cap.md.
This commit is contained in:
2026-10-21 15:26:29 +01:00
parent 0a00526692
commit 22801a9b06
9 changed files with 261 additions and 12 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ retry and refresh of an already-open Session tab. Large (>256 KiB) API fixtures,
wrong identity, partial/empty exports, restart, cancellation, workspace reservation,
and exactly-once successor admission have focused regressions. A full ordinary
artifact inventory no longer blocks versioned audit repair.
Repairs have a separate bounded allowance (twenty attempts, each at most 2 MiB),
Repairs have a separate bounded allowance (twenty attempts, each at most 8 MiB),
so neither the ordinary inventory's file count nor its byte budget consumes the
mandatory audit-recovery capacity. The ordinary scan limits remain unchanged.