Historical implementation specification, preserved from revision 61e75e9. Requirements describe the work planned at that time, not current usage instructions. Original document.

Technical specification: align journal decoding with payload limits

1. Problem

Config.Validate permits enlarged limits up to absolute ceilings. The writer and staged reader use the effective Config, but the journal decoder hardcodes the default 256 MiB/1 GiB limits. A valid large-asset transaction can commit yet fail to recover after a crash with the same configuration.

The problem was found during the audit of v0.2 computation assets but is a general durability bug.

2. Requirements

Choose and document one contract:

  1. The decoder checks the manifest against immutable absolute ceilings without payload I/O, then readStagedJournal applies the effective Config; or
  2. The decoder accepts explicitly supplied immutable effective limits.

Do not:

3. Files

4. Tests

All tests use AAA.

5. Acceptance criteria