# Ticket20: representative A5 workload (2026-11-18)

The owner says most documents will resemble those under
`~/Projects/salaryprocess/out/a5/`. That is workload evidence, not permission to
lower admitted limits or waive `.scratch/parser-window.md` /
`.scratch/parser-coordination.md` counterexamples. No product source changed.

## Read-only structural inventory

Existing host Poppler utilities inspected32 local PDFs without extracting text
or copying real files into the repository, container or evidence archives:

-3913–4210 bytes each;131337 bytes total.
-All one page,420×595 points (A5), rotation0, PDF1.7.
-No encryption, forms, JavaScript or raster image objects.
-Helvetica and Helvetica-Bold, Type1 Custom encoding, unembedded.

Reports and fixtures contain no employee names, pay amounts or other real
payroll content. No source file was modified. Structural similarity is not
proof that arbitrary PDFs/fonts or future scanned inputs have the same cost.

## Retained synthetic probe

`test/resource-a5.c` generates a4108-byte, one-page420×595-point PDF using the
existing native writer: base14 unembedded Helvetica,29 synthetic tabular rows,
no source images or real data. It intentionally does NOT reproduce the exact
producer/font-pair/encoding/bytes of the private inputs. It is a comparable
small text-only workload, not a visual replica or PDF parser compatibility
certificate for every real file.

`test/resource-a5-probe.sh` is opt-in, destructive disposable-stack only:

```
SIGNET_RESOURCE_PROBE_DISPOSABLE=yes sh /src/test/resource-a5-probe.sh
```

Run after normal dev-stack initialization, never on preserved/shared services.
The script refuses without explicit opt-in. It compiles the generator against
current native writer source, creates only synthetic organisation/document
records, and sequentially creates/submits/signs/releases32 documents. It adds a
small PIM text imprint using the ordinary DejaVuSans font, a fixture seal, and
the seeded manager's synthetic facsimile. This includes actual PDF overlay and
release/audit work, not just copying32 small source files.

For every document it checks exact uploaded/downloaded source SHA256, one-page
A5 proof, seal presence, released status/event, final SHA256, qpdf validity,
two-page final (one A5 body plus audit), all29 source rows, the PIM text,
exactly two final image objects (seal/facsimile), and audit SIGNOFF text.
It does not claim rasterized edit/proof visual acceptance or exact image bytes;
those remain covered separately by existing image/render/fidelity contracts.

The RSS sampler includes signet/signetd/lighttpd UID cohorts, including kcgi
helpers and external tools. It excludes root test clients/compiler/sampler,
PostgreSQL and Redis; shared DB/cache service allocation remains a native gate.
Polling is1ms plus non-atomic /proc scan time, NOT certified instantaneous peak.
The batch is sequential, not concurrent users, burst admission or a throughput
benchmark. Synthetic records remain only inside the owned disposable stack;
private temporary files/sampler are cleaned on exit.

## Results

Baseline image `signet-logging-final-r2`, new unpublished disposable container
`signet-a5-resource-20261118`, no host ports. Product binaries/47 product inputs
are unchanged. Only generator/probe/sampler test sources were copied in.

-Initial exploratory4438-byte/32-row fixture:33460KiB. It was reduced to29 rows
 to match the observed4KiB profile, not to change product capacity.
-Final4108-byte fixture: sampled33424KiB.
-Full normal `test/e2e.sh` after the representative batch ends **all passed**.
-Warmed repeat after full E2E:33952KiB (34766848 bytes).
-Final strengthened assertions (all rows and seal/facsimile counts):33528KiB
 (34332672 bytes), all32 releases verified.

The final result is `within_for_representative_fixture`, NOT whole-runtime
acceptance. The actual admitted-input failure63112KiB and rejected gate's
warm child-buffering failures59136/59296KiB remain unresolved. No maximum
capacity/admission/worker concurrency was reduced. No new dependency, build
framework, browser run, commit/publication or preview upgrade.

## Evidence and cleanup

Private source/evidence directory:
`~/.local/var/signet-work/a5-resource-20261118/`.
Logs include initial, final, warm, strengthened and full E2E runs. Initial setup
attempt ran before web startup and failed connection; it is not a resource result.
Host sh syntax, actual Alpine warning-clean native compilation, opt-in refusal
and `git diff --check` pass. Source hashes match copied test sources; all47
product hashes match the existing final22 manifest on host and tested image.
Owned fixture checks show normal pools, empty queues, no lock holders/stopped
processes/preload/temporary resource directories; container stopped/retained
exit0. No preserved services were changed. These source/evidence archives are
not runtime user-data backups.

## Consequence for next work

The expected small text-based documents have substantial observed headroom in
this sequential fixture. Keep this test as the normal-workload baseline while
continuing20's adversarial child-buffering/metadata/catalogue/history/native
work. Do not add an admission framework merely because a large artificial
fixture fails, but do not turn typical-case samples into an unsupported global
60MB promise either. Any supported-input/production-resource policy change is
an owner decision, not an inference from this folder.
