Skip to content

[0.3.0-C] Plan minimal safe revalidation from semantic operation impact #267

Description

@mberrys

Problem
#129 correctly requires re-preflight after every fix, but rerunning every check over every page is unnecessary and will not scale. The system needs a conservative impact model: rerun only what can be proven affected, and fall back to full validation whenever impact is uncertain.
Technical direction

enum class PDFEvidenceDomain
{
    Geometry,
    Images,
    Color,
    Fonts,
    Transparency,
    Overprint,
    Metadata,
    Structure,
    Security
};

struct PDFOperationImpact
{
    QSet<PDFEvidenceDomain> domains;
    QSet<int> pages;
    bool affectsDocumentScope = false;
    bool requiresFullRewrite = false;
    bool impactComplete = false;
};

PDFRevalidationPlan planRevalidation(const PDFOperationImpact& impact,
                                     const PDFResolvedProfile& profile);

Acceptance criteria

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions