Skip to content

errors: remaining span-less errors — frontmatter name collisions and other sites without byte offsets #205

Description

@dean0x

v0.4.0 (PR #196) added spans to errors wherever byte offsets were available. However, some error sites still lack spans: frontmatter key collisions (no YAML byte offset in scope) and other boundary errors.

Current situation: Most error classes now carry spans, but frontmatter-origin errors remain spanless. Additionally, the theoretical name_collision_at class is currently guarded by an unconditional OOB degradation in at().

Open question: Can we thread byte offsets through the YAML frontmatter parser to add spans to collision diagnostics? Should we audit and close the remaining spanless error classes?

Deferred from the v0.4.0 dogfooding remediation (PR #196) — flagged during the 2026-07-17 dogfooding campaign; deliberately not implemented there pending design discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions