Files
AniCraft/docs/adr/README.md
T
Rob CoenenandClaude Opus 5.5 10117b1c54 refactor(fla): read the container through craft-cfb; ADR 0096 becomes 0120
At review, the compound binary container moves to the shared craft-cfb reader
from craft-libs (rev b67b9f9, the one craft-xfl and craft-xml already use).
crates/fla's own MS-CFB reader is removed. The `cfb` module keeps only the
importer's policy: the ADR 0054 caps (1 GiB per file, 256 MiB per stream),
stream lookup by full path, and one-sentence errors. Chain walks, cycle
guards and directory bounds are craft-cfb's.

Container errors that named one structural fault each (bad header,
truncated, looping chain or tree) are now `Damaged`, carrying craft-cfb's
reason. craft-cfb is more tolerant in two places, and the tests now pin it:
- a FAT count the file could hold but its DIFAT doesn't list opens;
- a root that overstates its mini stream opens, read to the file's end at
  most.
In both cases nothing past the file is reserved. The test of the removed
reader's internal chain budget (`the_directory_reads_no_further_than_the_most_entries`)
is dropped with the code it tested.

Checked against the nine EDAP legacy files: the same streams, sizes and
record tags in `fla-dump`, the same `info`, and byte-identical frame
renders with the old and the new reader.

The ADR is renumbered to 0120, reserved for this PR (0096 is the guide
search ADR on main). Its references move with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:39:24 +01:00

1.2 KiB
Raw Blame History

Architecture decision records

One file per decision: NNNN-short-title.md, numbered in order. The files in this folder are the index.

Numbers never move

A pull request keeps the ADR number it was given until it merges or closes, so its author never has to renumber because another PR merged first.

  • Taking a number: use the next number above every ADR in this folder and every number in the table below. Add your number to the table in the same PR (or ask a maintainer to reserve it for you before you start).
  • Reserved numbers are skipped. No other PR may use a reserved number, even if a lower number looks free on main. Gaps in the sequence are expected.
  • When a PR merges, its row leaves the table (the ADR file now holds the number). When a PR closes without merging, its row leaves the table and the number stays unused.
  • Maintainers keep this table current for open pull requests from anyone, including outside contributors whose PR already contains an ADR: that PR's number is reserved as it is.

Reserved for open pull requests

Number Pull request Topic
0037 #38 (outside contribution) Interface languages
0120 #478 Legacy Flash 8–CS4 .fla import (compound binary container)