Skip to content

Version raising and strict-mode refusal #141

Closed

Description

@michaelstonis

Parent

#87 → #33 Spec: Broadside v1

What to build

Every writable feature declares its minimum PDF version; saving raises the header (full save) or the catalog Version (incremental save) to the highest one used and adds developer-extension entries for ISO/TS features, or throws in strict mode naming the feature.

Spec clauses

ISO 32000-2 §7.2.2, §7.5.2, §7.12; ADR 0003

Builds on

Integrated earlier work: #44

Acceptance criteria

  • Saving a PDF 1.4 corpus file with object streams raises it to 1.5 in lenient mode and throws in strict mode with the feature named.
  • An incremental save that needs 1.6 writes the catalog Version and leaves the header bytes untouched.
  • catalog-version-extensions.pdf keeps its extensions on round trip.
  • A table of features and minimum versions is covered by tests, one per row.

Blocked by

None — can start immediately

Deliverables (every ticket)

  • Tests through the public seam (see the spec's Testing Decisions)
  • XML docs citing clauses on public types
  • Conformance map rows updated in the same PR
  • PublicAPI.Unshipped.txt updated
  • Fuzz target and benchmark where the ticket adds a parser, codec or hot path

Amendment from the Phase 7 coverage audit

  • An extension's BaseVersion later than the document version records a diagnostic and throws in strict mode (conformance row 7.12.4).

Activity

  1. added
    taskUnit of work from the task template
    ready-for-agentTriaged: an agent can pick this up without further clarification
    on Oct 10, 2026
  2. added a commit that references this issue on Oct 14, 2026
  3. added
    integratedMerged into the spec integration branch; closes when the integration PR merges
    and removed
    in-progressClaimed and being worked on
    on Oct 14, 2026
  4. added 2 commits that reference this issue on Oct 14, 2026
  5. michaelstonis commented on Oct 16, 2026

    @michaelstonis
    OwnerAuthor

    Done: implemented, tested and merged into the integration branch spec/33-broadside-v1 (full gate green). It reaches main with PR #277.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

integratedMerged into the spec integration branch; closes when the integration PR mergesphase:4Phase 4ready-for-agentTriaged: an agent can pick this up without further clarificationtaskUnit of work from the task templatetrack:4A-canvasTrack 4A-canvas

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions