1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Private signature collections — isolated implementation evidence
Status: implemented and dev-verified, uncommitted on `feat/signature-collections`
in `/tmp/signet-roadmap-20261112/signatures` (base `9876b79`). The owner-approved
2026-11-14 follow-up integrated this into `feat/feature-first-roadmap` and upgraded
the preserved :18087 preview in place; see `preview-upgrade.md`. No production
rollout or remote publication. The evidence below records the initial isolated
implementation before that follow-up.
## Model and implementation
D30 / `docs/adr/0002-private-signature-collections.md`: organisation seals/logos
remain PIM image references into DAM. User originals are private immutable
labelled facsimiles, not DAM assets. One ready default; the signer chooses at
sign-off. An owned/enrolled UUID is recorded with the decision, including when
an old client omits the optional choice. Default changes never reinterpret it.
Migration 002 keeps legacy username filenames/metadata and NULL-reference
historical decisions. New variants use UUID files, worker PNG decoding, byte
hashes, durable publication, and exact-reference validation before stamping.
Self/admin uploads share one helper. Metadata is bounded (32 ready/pending
variants, latest failed attempts within a 64-row response); originals are never
served by an API. Activation retry requeues the same ID and is idempotent.
## Verified
* Clean Alpine build, no compiler warning/error matches; JS/shell syntax and
`git diff --check` clean.
* Old-image collection red: `FAIL - enrolment must return an immutable variant reference`.
* Full E2E ends `all passed`: command/image/configurable-identity contracts,
sequential privacy, snapshots/corrections and collection/migration contracts.
* Migration repeated in temporary PostgreSQL DB: original metadata fingerprint
unchanged, legacy decision still NULL, multiple variants insert successfully.
* Collection contracts: owner/role/UUID/NUL/label validation; private 0600 files
unreadable by API UID; queued explicit/default choices remain fixed; damaged
chosen bytes fail closed and exact restoration/retry succeeds; old NULL
decisions retain legacy meaning after default changes; failed PNGs preserve
defaults; Redis LPUSH denial rolls back; quota, lost activation and duplicate
retry activate 32 variants with exactly one default.
* Retained render contract passes, including 30-second command hang, missing
original, queue failure and replay; browser progress failure/retry passes.
* Real-browser collection upload/default/picker/recorded-ID regression passes;
32-row collection with an 80-byte unbroken label scrolls without horizontal
overflow. Both-page edit/proof/stamped/final plus audit/picker reviewed visually.
Latest browser document: `83fd5722-3cc8-4e39-bb29-2b4dbda83473`.
## Dev restart investigation (tracker 15)
Reproduced with SIGUSR1, without changing any host/VM clock. Even `--init` alone
fails: the shell exec'd lighttpd while its background signetd remained a direct
child. The stopped web server waits for that worker; terminating the worker
unblocked restart. Keep the startup shell as parent, with web and worker as
siblings, and trap shutdown for Redis save/PostgreSQL fast stop. Repeated
three-restart contracts pass while preserving the worker. Bootstrap copies
seeds nonoverwriting and retains existing config.
A controlled same-container restart with custom signature/organisation PNG and
config sentinels preserved every document/signature/DAM/config file hash and
complete documents/doc_decisions/facsimiles/doc_events row fingerprints.
Sentinels were restored to their original synthetic bytes and another restart
passed. This was only the disposable test stack, not the user's container.
## Artifacts and preview
Product image: `6009232559c7ca6082c66bff36aa70086e4d5c135021c9c7c298f005e91865f2`.
Product C/UI/schema/bootstrap file hashes matched the built container; see
`/tmp/signet-signatures-final-source-hashes.txt`.
Logs `/tmp/signet-signatures-final-{build,e2e,render,browser,progress}.log`;
visuals `/tmp/signet-signatures-final-browser/`; restart red
`/tmp/signet-signature-restart-red.log`; collection red
`/tmp/signet-collections-baseline-red.log`; persistence log/helper/fingerprints
`/tmp/signet-signatures-persistence*`. Retained fixture RSS sampling during
render/browser/progress peaked at 34632 KB, 263 samples; excludes PG/Redis and
is not production/native/aggregate-resource certification.
Clean preview: `signet-signatures-preview`, http://127.0.0.1:18090, same verified
product image, fresh synthetic data. Manager/management has one legacy default;
My signatures and the three-restart health contract work. Verification stack
`signet-signatures-final` (:18089) and early stack `signet-signatures-test`
(:18088) are stopped/retained. Latest browser harness has identity reload and
32-row UI checks; it runs from the worktree and was also copied into the
verification container after the product image build.
During this initial implementation the user's :18087 preview was not modified.
The later owner-approved upgrade of that same container, with all original data
preserved and real-backup restore/rollback rehearsed, is in `preview-upgrade.md`.
The preserved :8080 stack, unrelated PHP :8087, original dirty checkout, shared
services and maa-1 remain untouched. Native OpenRC/proxy/DAM-writer/production
backup/concurrency/resource gates remain tracker 9 / ticket 14; do not infer
production readiness from either local verification.