docpresser

module
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: Apache-2.0, MIT

README

Docpresser

Qualification and synthetic-workload harness for structured documents. YAML and JSON (I-JSON/JCS) today; XML, XHTML, SVG, OOXML and PDF planned.

Status: experimental (v0.2.3). Version 0.2.3 implements the first wave: deterministic pack generation, structcorpus binding and pack validation, out-of-process driver execution under containment supervision with NDJSON evidence recording, the independent verifier and summary reports, and YAML and JSON (including I-JSON and JCS) subject drivers. XML, XHTML, SVG, text extraction, OOXML, and PDF profiles are planned for later waves. Releases are source-only signed tags; no binaries are published. Commands, schemas, and evidence formats may change before 1.0.

Run manifests written by 0.1.0 record a fixed placeholder in subjects[].version; it does not identify the subject's version. Later versions record the version each driver reports in its handshake.

Docpresser generates or binds deterministic workload packs (including pinned 3leaps/structcorpus releases), drives document readers, emitters, canonicalizers, and extractors inside bounded out-of-process execution environments, and independently verifies retained evidence against the selected input pack.

Results separate four distinct axes and never collapse them into a single composite score:

  • Correctness: outcome against the pack's format or profile expectations (pass, fail, unsupported, inconclusive).
  • Adversarial containment: bounded structured refusal versus process crash, stack exhaustion, timeout, or out-of-memory termination under hostile inputs.
  • Migration divergence: structured behavioral differences between dialects or engines (for example YAML 1.2.2 Core Schema versus legacy YAML 1.1 scalars and merge keys), reported without treating an incumbent engine as the format oracle.
  • Telemetry: throughput, latency percentiles, peak physical RSS, and memory amplification ratios tied to recorded binary, toolchain, and host facts.

Documentation

Contributing

Read AGENTS.md alongside the canonical 3leaps Crucible role catalog and fierce-collaboration review standard.

License

Licensed under either of Apache-2.0 or MIT at your option.

Directories

Path Synopsis
cmd
docpresser command
internal
buildinfo
Package buildinfo reports the docpresser build version recorded in evidence.
Package buildinfo reports the docpresser build version recorded in evidence.
cmd
containment
Package containment supervises out-of-process subject drivers with wall-clock timeouts, process-group termination, isolated scratch directories, output caps, and child resource telemetry.
Package containment supervises out-of-process subject drivers with wall-clock timeouts, process-group termination, isolated scratch directories, output caps, and child resource telemetry.
driver
Package driver implements the out-of-process JSON/NDJSON subject driver client backed by the containment supervisor.
Package driver implements the out-of-process JSON/NDJSON subject driver client backed by the containment supervisor.
evidence
Package evidence records schema-validated run observations and manifests inside a confined evidence directory.
Package evidence records schema-validated run observations and manifests inside a confined evidence directory.
generate
Package generate produces deterministic synthetic structured-document packs using a seeded SplitMix64 PRNG.
Package generate produces deterministic synthetic structured-document packs using a seeded SplitMix64 PRNG.
model
Package model defines the governed data structures for docpresser/v0 packs, observations, run manifests, and verification reports.
Package model defines the governed data structures for docpresser/v0 packs, observations, run manifests, and verification reports.
oracle
Package oracle implements the zero-trust offline verifier for docpresser/v0 evidence bundles against their bound or generated packs.
Package oracle implements the zero-trust offline verifier for docpresser/v0 evidence bundles against their bound or generated packs.
pack
Package pack manages deterministic offline corpus packs and synthetic workload packs.
Package pack manages deterministic offline corpus packs and synthetic workload packs.
runner
Package runner orchestrates pack execution across target and baseline subject drivers and records the resulting evidence bundle.
Package runner orchestrates pack execution across target and baseline subject drivers and records the resulting evidence bundle.
schemas
docpresser/v0
Package v0 embeds and validates the governed docpresser/v0 JSON schemas.
Package v0 embeds and validates the governed docpresser/v0 JSON schemas.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL