Status: Accepted (in force). Verified live 2026-07-20.
Context
DocumentTemplateType has three values: Offer (1), Employee document (2), and Company document (3). The first two are clearly things a company writes. The third is different, and the difference is easy to miss when reading the enum — all three look like peer "template types."
Observation / decision
Company Documents flow to the tenant, from PaidHR — the tenant cannot create them. Live evidence from the "Pade Demo" tenant:
- The Create new document flow (
/dashboard/documents/new) offers exactly two options: Offer Template and Employee Document. There is no Company Document option.
- The Company tab describes them as "correspondences between your company and [PaidHR] as well as any government documents we file on behalf of your company."
- A live example: a "Pade HCM Service Level Agreement" sitting there with status Ready and "We need you to read and sign our service level agreement."
So type 3 is a platform-to-tenant channel: SLAs, and government documents PaidHR files for the company. The tenant's role is to read and sign, not author.
Consequences
Good:
- One inbox for the company's relationship-with-PaidHR paperwork, alongside the documents they author — consistent UX, one signing mechanism.
- Government filings PaidHR makes on the company's behalf are visible to the company without a separate system.
Bad / costs:
- The enum misleads. Type 3 sits beside types 1–2 as if it were a peer the tenant creates. Anyone building an admin "create template" UI must special-case it out (as the live UI does).
- Provenance asymmetry — types 1–2 are written by the tenant; type 3 is written by PaidHR ops. Same table, different authority. Code that mutates templates must not let a tenant touch type 3.
- Absence of a company document is not a tenant-fixable state — it means PaidHR hasn't issued it (runbook §8).
Guidance
- Do not build a tenant create/edit path for
COMPANY_DOCUMENT.
- Guard mutations by type — a tenant may sign, never author, type 3.