oficina / docs Public

feat/contract-workflow

Contract preparation needs a renderer that substitutes typed fields without changing the source template or silently losing contract terms. This branch adds a pure internal renderer with structural fields, ISO dates, exact integer-minor-unit money, strict schema validation, literal multiline values, and PDF bytes returned with their SHA-256 digest.

Rendering refuses missing values, unsupported formatting, missing glyphs, layout overflow, oversized words/text, and page-budget exhaustion. It returns no partial or truncated artifact on failure. Ordinary document export remains uncapped; the new bounded PDF entry point is used by contract previews.

Independent GPT-6 design and code reviews approved this isolated foundation after fixes for cumulative indentation and long-word shaping costs. Focused contract/export tests, race-enabled contract tests, a deliberate substitution mutation, PDF text extraction and visual inspection passed. Remote CI passed for 2f38033; detailed local results are recorded in discussion 81.

This branch also records the wider native-signing workflow design. It does not expose an authoring UI, change the live editor schema, fetch Fichas records, persist preparations or issue/sign agreements. Those app-level pieces remain outstanding; suite discussion 14 tracks the source-transfer and issuance authority boundary.

Commits 0
Discussions 1 1 open
Tasks 1/1 done

Discussions 1 open

Tasks 1/1 done

  • Implement and verify bounded contract template rendering Done

Activity