FA-11807 / Document structure integrity / Member archive
A heading attaches to a previous sibling instead of a shallower heading · case 02
A heading attaches to a previous sibling instead of a shallower heading in the controlled document model.
Case contract
For each positive heading level, return the index of the nearest preceding heading with a strictly smaller level, or None.
Why this case matters
Structured editing must preserve document semantics independently of visual rendering.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| document fixture 0 | [null, 0, 1, 2] | [null, 0, 0, 2] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗