Component map

DocumentService implements the domain; AdminDocumentsService and Employee/DocumentsService expose role-specific wrappers. Company-scoped TenantDb entities include DocumentTemplate, EmployeeDocument, SmartText and Signatory. Document policies/requests intersect with the Requests engine.

Hiring references Offer.DocumentTemplateId for type 1. New-hire issuance consumes approved templates and audience flags. Do not duplicate Hiring’s candidate acceptance/onboarding contract here or assume signing automatically provisions a person.

Separate writes and evidence

Approve/Decline changes template eligibility. Assign creates EmployeeDocument records. Employee Sign writes Signature and ActionDate; Acknowledge writes ActionDate only. Company counter-signature fields remain on the template. Recall concerns assignment withdrawal, not retroactive erasure of a legal event.

The source does not establish immutable rendered-content/version snapshots, how a later template edit affects an issued copy, or preservation of signed content after recall/removal. These are substantive evidence/retention checks, not optional implementation detail. Do not promise cryptographic proof, qualified electronic-signature status or legal enforceability from the listed fields alone.

Access and delivery

Controllers have class-level authorization, company scope and document-related permissions. Source permission families include can_view_documents_and_offer_templates, can_*_offer_templates, can_create_document_policies and can_create_document_requests. Exact action/download ownership checks and signed-link expiry are not fully enumerated; verify them before exposing employee documents or signatures.

Smart text can contain salary/contact details. Keep previews, stored files and downloads scoped to the intended people. Fixing token resolution does not justify broadening document visibility.

Host and destructive operations

The observed list used middleware-dev.paidhr.com/admin/documents/select; core-backend also exposes Admin/Documents/Select. The screen-to-service split is incomplete. Capture the actual URL before routing an incident.

Delete, Restore and Remove are different operations; sources describe soft deletion and harder removal without a complete deployed contract. Recall is another distinct operation. Inspect the service and retention obligations before wiring or running destructive actions.

The frontend parent directory also contains unrelated features. Only the nested documents module determines its scope; source folders are not product navigation.

Conflicting Company Document claims

System/live-source material identifies type 3 as platform-issued. Handhold describes tenant creation and everyone-visible company documents. Keep the contradiction open and obtain a current contract. Do not treat either a broad visibility statement or a generic create article as authorization.

Source scope

Documents — business view · Documents — technical view · Documents — configuration · Documents — API reference · Documents — user journeys · Documents — runbook

July system documentation identifies Company Documents as PaidHR-issued and absent from tenant authoring, while several Handhold articles describe tenant-created company-wide documents. These claims are unresolved; do not infer a create path or universal visibility. Employee completion and template/signatory screens were partly code-derived. Middleware/core routing, immutable issued-content snapshots, recall retention, fine-grained download grants and exact deletion semantics remain unverified.