Terrace documentation

Terrace commands

On this page

Voucher payer accounting uses hap.remittance.record, hap.remittance.allocate, hap.remittance.outcome, hap.change.prepare, hap.change.preview and hap.change.approve. The native Rent & arrears forms use these same commands. GET /api/hap-remittances?tenancyId=ID returns completely scoped remittance records and held remainders. GET /api/hap-reconciliation?tenancyId=ID&asOf=YYYY-MM-DD returns separate payer and owner balances; format=csv downloads the same reconciliation. See voucher payer accounting for authority, original custody, exact approval and documentary receipt boundaries.

All reads and writes authenticate a current Base operator session. Send the session cookie privately, never in a URL. Mutations require Origin equal to the installation origin, including command-line requests. Revoking an operator or changing their sign-in tier invalidates their sessions. There is no anonymous or implicit agent authority.

ROLE-001: the Authority column lists the roles whose rows in the capability table (tt_role_actions, migration 0030) grant each command; the owner holds every command. Staff with assigned portfolios reach only tenancies on units in those portfolios: any other record answers 404, and a command outside their role answers 403 before any record is read. Company, legal entity, operating account and portfolio changes and tenancies without a unit need all-portfolio scope. operator.invite (displayName, email, role, allPortfolios or portfolio:<id> fields), operator.role (operatorId, role, scope as for invite) and operator.status (operatorId, status) are the owner's alone and recorded.

ROLE-003: maintenance.approve and proposal.approve answer 403 preparer_cannot_approve to whoever prepared the terms (a revision, quote selection or reassignment makes that person a preparer), unless no other active operator who did not prepare them can approve; that approval is labelled self-approved: no second person (approval_label, and approvalLabel in the approval snapshot). Above the owner's quote requirement, approval needs that many quotes (409 quotes_required).

SAFE-001: entity.add, account.add, operator.invite, operator.role, operator.status, factor.require and factor.reset also need Base's fresh email-link proof: the sign-in link that created the session, or POST /auth/step-up with {"action":"credentials:mint"} and then that link opened in the same browser, within 10 minutes; otherwise 403 step_up_required. A person with a confirmed authenticator, or anyone signing in by email link while the owner requires a second factor, gets 403 second_factor_required on every other door until factor.verify passes for that sign-in (or, if not enrolled, factor.start and factor.confirm). Identity-provider (OIDC) sign-ins count as passed.

GET /api/commands lists commands. GET /api/state lists the company, legal entities, operating accounts and tenancies (each with its currency and time_zone); GET /api/state?tenancy=ID adds its rent, household, proposals, inspections and maintenance. POST /api/commands accepts JSON { "command": "name", ...fields } and returns { "ok": true, "result": ... }, or a non-200 { "ok": false, "error", "message" }. Uploads use multipart form data to the same URL.

PORT-006: tenancy.end and tenancy.transfer return turnoverId for the source unit’s make-ready board when WORK-013’s next-day vacancy prerequisite allows it. The board and lease transition commit together; an exact unit/move-out board is reused with its task history. Unit-less leases return null. Immediate successor occupancy returns null with an explicit make-ready follow-up notice; the lease still ends. turnoverOutcome distinguishes opened, existing, unit_not_linked and successor_occupied, independently of display wording. No deposit refund, task completion or unit-ready claim is inferred.

PORT-006: move.checklist records an operational handover snapshot for tenancyId, kind (move_in or move_out), moveDate, the reviewed checklist version (0 when absent), and the current leaseVersion from /api/state. For each prefix keys, meters, condition, possession and forwarding, supply <prefix>State (pending, recorded, not_applicable) and <prefix>Notes (up to 1,000 characters; details/reason required except pending). Supply reference (up to 500 characters). Meter notes retain the staff-entered identifier, reading and units; Terrace does not calculate consumption. The existing owner/portfolio-manager/leasing move-out authority and live portfolio scope apply; prepare API credentials cannot run this command. Each successful correction appends a revision and advances the tenancy version; stale checklist or lease revisions return 409 with nothing changed. Move-in uses the lease start; move-out is inside the lease and must match its recorded ended-on day when ended. A changed departure date makes older evidence need review. /api/state?tenancy=ID and /api/v1/leases/ID expose moveChecklists, with parsed items, revision, source, actor/time, needsReview and operational complete. Completing these items does not reconcile money or deposits. Revisions follow SAFE-004 lease evidence, appear in resident access and readable exports, and survive .rer restore.

OPS-003: workflow commands. workflow.template (owner or every-portfolio manager; name, kind leasing/renewal/rent/delinquency/unit_turn, the kind's trigger field daysBeforeLeaseEnd, staleDays or minDaysPastDue, optional propertyId and minOverdue, steps as an array of {kind,title,dueDays,assignee?} or lines kind | title | due days | assignee id, contactLimit 1–10 (required with a contact step), escalateTo, reference; templateKey and the reviewed version to append a version) and workflow.retire (templateKey, version, reason). workflow.start (templateKey, subjectId, reference) starts a run on a record that matches the trigger; workflow.sweep (Run now, owner or every-portfolio manager) uses the same atomic sweep as the hourly Cron Trigger: it starts matching runs once per record/template, escalates overdue steps and creates pending WORK-010 orders. It never sends, records a reply/evidence, resumes or closes a run. Each template is fenced on the person who saved its version still being owner or an every-portfolio manager. GET /api/workflows returns tick receipts to owner/every-portfolio managers, including skipped templates needing a configurer. On a run (runId and the reviewed version from GET /api/workflows): workflow.step (reference evidence; task and gate steps), workflow.attempt (channel email/phone/text/letter/in_person, outcome reached/no_answer/refused/uncertain, reference external reference), workflow.reply (outcome agreed/declined/unclear, on, reference), workflow.resume (manager; reference, resolution delivered/not_delivered after an uncertain result or unconfirmed send reservation, optional assignee), workflow.resolve (manager; closes an escalation, never completes) and workflow.cancel (manager; reason). Each kind also needs the existing action for its records (leasing prospect.respond, renewal renewal.reply, rent and delinquency arrears.prepare, unit turn turnover.task.update) and the run's portfolio scope (404 outside). A paused run answers workflow_paused and an escalated one workflow_escalated (409) with nothing recorded; a spent contact limit answers contact_limit and escalates. GET /api/workflows (workflow.read) returns templates and runs with state, durable next_action, due day, contacts, pause or escalation reason and the sequenced events. The workflow engine sends nothing itself; existing prospect and renewal email sends are recorded against matching live runs and the shared contact limit. The hourly unattended scheduler runs the declared Cron Trigger; API credentials cannot run workflow commands.

Command Fields Authority
tenancy.create address (or unitId: the unit's address and property zone are used), ownerName, ownerEmail, tenantName, tenantEmail, startDate, endDate, rent, cadence, optional timeZone (a US IANA zone; default the office zone). Always USD. Owner, portfolio manager, leasing
portfolio.add name Owner, portfolio manager
property.add portfolioId, name, address, kind (single_family/duplex/multifamily/townhouse/condo), timeZone Owner, portfolio manager
unit.add, unit.update propertyId, identifier (add) or unitId, version (update); bedrooms, bathrooms, amenities, rentable Owner, portfolio manager
tenancy.end tenancyId, moveOut, reason; the lease is kept Owner, portfolio manager, leasing
tenancy.transfer tenancyId, unitId, moveIn, optional endDate and rent Owner, portfolio manager, leasing
turnover.open unitId, moveOut (the unit must be vacant the next day) Owner, portfolio manager, leasing, maintenance coordinator
turnover.task.update taskId, optional assignee, durationDays, delayDays, quote Owner, portfolio manager, leasing, maintenance coordinator
turnover.task.submit taskId Owner, portfolio manager, leasing, maintenance coordinator, member
turnover.task.check taskId; its dependencies must be checked Owner, portfolio manager, leasing, maintenance coordinator
turnover.publish turnoverId; every task checked Owner, portfolio manager, leasing, maintenance coordinator
household.add tenancyId, role (co_tenant/guarantor/occupant/emergency_contact/authorized_contact), name, optional email, phone, contactBy, joined Owner, portfolio manager, leasing
household.leave memberId, left Owner, portfolio manager, leasing
household.move memberId, toTenancyId, date Owner, portfolio manager, leasing
tenancy.timezone tenancyId, timeZone (US IANA zone); recorded dates and currency do not change Owner, portfolio manager
company.save name, officeAddress, officeEmail, officePhone, timeZone (office, US IANA zone). Country US, currency USD Owner, portfolio manager
entity.add legalName, ein (nine digits; format checked, not verified with the IRS); needs a saved company Owner, portfolio manager, bookkeeper
account.add entityId, name, bankName, last4. A USD reference; no full account number; no money moves Owner, portfolio manager, bookkeeper
renewal.prepare tenancyId, endDate, rent, source; for scheduled renewal work (LEASE-012) also renewalId, deadline, marketRent, marketRentDate, marketRentSource, vacantDays, makeReadyCost, makeReadySource, leasingCost, leasingSource Owner, portfolio manager, leasing, member
renewal.schedule from, to (lease end dates, inclusive, at most 367 days), optional propertyId Owner, portfolio manager, leasing, member
renewal.send renewalId; emails the approved offer through the installation mail provider, never resending an accepted or uncertain attempt Owner, portfolio manager, leasing
renewal.reply renewalId, outcome (accepted/declined/counteroffer/unknown), on, source, optional note Owner, portfolio manager, leasing
renewal.close renewalId, outcome (no_response after the deadline/nonrenewal/month_to_month), on, source Owner, portfolio manager, leasing
sibling.origin product (cabin/chest), origin (https host name only) Owner
sibling.link propertyId, product, url (a record address on the configured origin), label; sibling.unlink takes linkId Owner, portfolio manager in the property’s portfolio
arrears.prepare tenancyId, message, followUpDate Owner, portfolio manager, bookkeeper, member
proposal.approve, proposal.reject proposalId Owner, portfolio manager; current tenancy version required by saved proposal
rent.charge tenancyId, dueDate, amount, description, reference Owner, portfolio manager, bookkeeper
rent.receipt chargeId, amount, receivedDate, reference, optional method (ach/card/cash/check/other) Owner, portfolio manager, bookkeeper
rent.adjust chargeId, amount, reason Owner, portfolio manager, bookkeeper
term.add tenancyId, kind (rent/utility/pet/parking/concession), description, amount per period, starts, optional ends Owner, portfolio manager, bookkeeper
term.amend termId, effective (after the term's last posted period), amount Owner, portfolio manager, bookkeeper
charges.preview month (YYYY-MM); returns lines, missing terms and the fingerprint Owner, portfolio manager, bookkeeper
charges.post month, fingerprint from the preview Owner, portfolio manager, bookkeeper
inspection.create tenancyId, date, notes Owner, portfolio manager, maintenance coordinator
inspection.photo inspectionId, version, file (multipart JPEG/PNG) Owner, portfolio manager, maintenance coordinator
inspection.complete inspectionId, version, notes Owner, portfolio manager, maintenance coordinator
maintenance.prepare tenancyId, title, vendorId and trade (a directory vendor) or tradeName and tradeEmail (an unlisted vendor, held), dueDate, estimate, optional scope, checklist (one task per line), assetId (an in-service asset of the tenancy). Returns the qualification issues Owner, portfolio manager, maintenance coordinator, member
vendor.add, vendor.update name, email, phone, specialties, serviceAreas, w9 (received/missing), insuranceExpires, optional licenseNumber with licenseExpires, availability, rate, standing (preferred/approved/blocked); update adds vendorId, version Owner, portfolio manager, maintenance coordinator
maintenance.reassign jobId, vendorId, optional trade, version; prepared work only Owner, portfolio manager, maintenance coordinator
schedule.add tenancyId, title, trade, vendorId, optional assetId or inspectionId, intervalMonths, firstDue, budget, optional leadDays (default 30) Owner, portfolio manager, maintenance coordinator
schedule.defer scheduleId, dueDate (an occurrence without an order), deferTo, reason Owner, portfolio manager, maintenance coordinator
schedule.run none; returns created and existing order counts Owner, portfolio manager, maintenance coordinator
maintenance.exception jobId, reason; records a documented exception for the job's current qualification issues Owner, portfolio manager
asset.add tenancyId, kind, location, make, model, serial, installedDate, optional warrantyProvider with warrantyEnds, manual, replaceBy, replacementCost Owner, portfolio manager, maintenance coordinator
asset.replace assetId plus the replacement's asset.add fields; installedDate is the replacement date Owner, portfolio manager, maintenance coordinator
maintenance.dispatch jobId, version; send the exact approved packet once through installation mail; outcome is recorded, uncertain attempts never automatically retry Same roles as maintenance.sent, scoped to the job
maintenance.progress jobId, state (accepted/en_route/started/blocked/parts_needed/completed), reference (external reply source and next action), optional completedTasks (one approved task per line); completion needs every task Same roles as maintenance.sent, scoped to the job
maintenance.escalate jobId, reference (human contact evidence and next action); missed arrival window or past due date required Same roles as maintenance.sent, scoped to the job
maintenance.approve jobId, version Owner, portfolio manager
maintenance.sent jobId, version, reference Owner, portfolio manager, maintenance coordinator, after external handoff
work.limits optional quotesNeeded (2 to 10) and quotesAbove (estimate amount) for the owner's quote requirement (ROLE-003); tenancyId, limit, budget? Owner, portfolio manager; the owner's per-job limit and yearly budget, recorded by staff for the owner (WORK-003)
work.budget tenancyId, year, kind (operating or capital), optional assetId, amount, reference (approved source), version (0 for a new budget, current version when revising) Owner and scoped portfolio manager, matching the existing owner spending controls; no API credentials
quote.add jobId, vendorId or vendorName + vendorEmail, scope, availableDate, amount, tax? Owner, portfolio manager, maintenance coordinator, member, before handoff
quote.select jobId, version, quoteId Owner, portfolio manager, maintenance coordinator, member; reopens approval
maintenance.revise jobId, version, scope?, title?, estimate?, dueDate? Owner, portfolio manager, maintenance coordinator, member; reopens approval
maintenance.owner jobId, version, decision (approved/declined), source (email/document/call), reference Owner, portfolio manager, only above the limit or budget; recorded by staff for the owner
owner.add kind (individual/entity), legalName, email, mailingAddress (PORT-003) Owner, portfolio manager; all portfolios
owner.w9 ownerId, status (requested/received), date, location (where the signed W-9 is kept; required when received). Recorded by staff; no TIN is stored or validated Owner, portfolio manager; all portfolios
ownership.set propertyId, effectiveFrom, reason, and share:<ownerId> percents (or shares: [{ownerId, percent}]) totalling exactly 100; starts after the latest set Owner, portfolio manager; all portfolios
agreement.set propertyId, starts, feePercent (of collected rent), reserve (USD requirement), reference; starts after the latest agreement Owner, portfolio manager; all portfolios
factor.start none. Returns a new authenticator key once (secret, uri) for the signed-in person (SAFE-001) Everyone, for themselves
factor.confirm code (6 digits from the authenticator). Returns ten single-use recovery codes once Everyone, for themselves
factor.verify code (6 digits) or one unused recovery code; passes the second factor for this sign-in Everyone, for themselves
factor.require required (on/off); needs the owner's own authenticator passed this sign-in and a fresh email-link proof Owner
factor.reset operatorId; needs a fresh email-link proof Owner
credential.mint label, role (a staff role), scope (read or prepare), allPortfolios or portfolioIds / portfolio:<id> fields. Returns the token once Owner, with a fresh email-link proof (SAFE-001)
credential.rotate, credential.revoke credentialId; rotation returns a new token once and the old one stops Owner, with a fresh email-link proof
currency.confirm currency (AUD/USD) Owner, once per installation (PORT-001 legacy currency)
completion.record jobId, completedDate, summary, reference, callback (warranty/billable, return visits); optional WORK-007 attachment: fieldEvidence=yes, jobVersion, approvalId, laborMinutes (whole minutes), materials (or explicit none), accessOutcome (granted/not_needed/no_access), completedTasks (every approved task, one per line), beforePhotoId, afterPhotoId (distinct originals from this tenancy) Owner, portfolio manager, maintenance coordinator, member, after handoff; the vendor's report recorded by staff (WORK-008)
completion.check jobId, outcome (confirmed/unresolved/no_response), note, satisfaction?, safetyConcern? Owner, portfolio manager, maintenance coordinator, member; the resident's answer recorded by staff, resident not contacted by Terrace
completion.close jobId, reason Owner, portfolio manager; closes without the resident's confirmation
shadow.capture Multipart: propertyId, from, to, source file, reference, synthetic=yes for synthetic originals, rows as the documented JSON array; replacesId for the latest capture of an existing period Signed-in owner only; no API credentials
shadow.action runId, issueKey, responsibleId (current owner), dueOn, nextAction Signed-in owner only; documentary held follow-up
shadow.review runId, exact fingerprint, reference, consent=RECORD ONLY; every difference needs an accountable next action Signed-in owner only; no cutover or collection authority
migration.preview, migration.apply, migration.journal Exact complete manifest, reviewed fingerprint or retained migration id; see migration format Owner
import.preview, import.apply, import.journal, import.undo See move-in contract Owner
tenancy.erase tenancyId, confirm (exact tenant email) Owner
data.restore backup file, optional journal file, confirm=RESTORE (multipart) Owner, empty product destination
period.signoff month (YYYY-MM, ended in the office time zone), item (receipts, deposits or exceptions), optional note Owner, bookkeeper (all portfolios)
period.close month; needs all three sign-offs and no pending correction Owner, bookkeeper (all portfolios)
period.reopen month, reason Owner, bookkeeper (all portfolios)
correction.prepare tenancyId, kind (charge: dueDate, amount, description, reference; receipt: chargeId, amount, receivedDate, reference, optional method), reason Owner, portfolio manager, bookkeeper, accountant
correction.approve / correction.reject correctionId (reject: optional reason); the preparer never approves, and approval is refused while the month is closed Owner, portfolio manager, bookkeeper
fees.run propertyId, month (YYYY-MM, this month or earlier); returns the lines the month calls for, how many were posted and any skipped receipts Owner, portfolio manager, bookkeeper
fee.override feeId, amount (the owner's fee for that source; 0 waives), reason Owner
recovery.authorize tenancyId, utility (water, sewer, trash, gas or electric), reference (the lease clause) Owner, portfolio manager, bookkeeper
utility.prepare propertyId, utility, vendor, invoiceReference, periodStart, periodEnd, dueDate, amount, formula (occupants, bedrooms, equal or submeter; submeter takes reading:<unitId> fields), optional recoverablePercent and cap; returns the allocation and its fingerprint Owner, portfolio manager, bookkeeper
utility.approve billId, fingerprint (from the reviewed allocation); never by its preparer Owner, portfolio manager, bookkeeper
ancillary.charge tenancyId, kind (parking, storage or other), description, amount, dueDate, reference; adds the reviewed tax charge when a rule applies Owner, portfolio manager, bookkeeper
tax.prepare propertyId, kind (utility, parking, storage or other), ratePercent, label, starts Owner, portfolio manager, bookkeeper
tax.review ruleId; the rule applies from then on Owner, accountant

Amounts are decimal strings with at most two decimal places in the tenancy's stored currency (USD for new tenancies; records entered before PORT-001 are shown as “currency unconfirmed” until the installation owner confirms AUD or USD with currency.confirm {currency}, which converts nothing); dates are YYYY-MM-DD property-local days. Charges and receipt references are unique; duplicate retries are refused without duplicating money. Current versions are returned in /api/state; stale approvals and changes fail. A prepared proposal has no effect until approval. Agents use member accounts to prepare, then hand the proposal/job ID to a person. Approval records the actual authenticated actor and time; sending a role field cannot grant authority.

Reports: GET /api/rent-roll?asOf=YYYY-MM-DD&propertyId=ID&occupancy=occupied|vacant&format=json|csv|xlsx|pdf and GET /api/collections?month=YYYY-MM (owner, portfolio managers, bookkeepers and accountants, limited to their portfolios). SAFE-002: GET /api/history?from=YYYY-MM-DD&to=YYYY-MM-DD&actor=ID&action=PREFIX&tenancyId=ID&limit=N&before=ISO&format=json|csv lists history newest first (owner; portfolio managers and accountants within their portfolios; CSV export for the owner and accountants, recorded). Each row: at, actor, role, policy (role and version), action, subject, tenancyId, source, outcome (recorded, read or exported). ACCT-009: GET /api/owner-statement also returns fees (each recorded fee line with kind, source, base, rate, fee, tax, agreement reference and override reason) and cash (the owner's USD share of receipts less fees, tax on fees and the reserve floor). agreement.set takes optional leasingFee, renewalFee, minimumFee (USD), feeTaxPercent and markupPercent. ACCT-011: GET /api/period-close?month=YYYY-MM returns the month's state, checklist, exception queue, corrections and every close version with its statement lines, totals per currency, reopening reason and the entries added and removed since the version before; &version=N&format=csv downloads one version's statement (recorded read). Owner, portfolio managers, bookkeepers and accountants; lines are limited to their portfolios. SAFE-005: GET /api/readable-export (owner) returns a zip: README.md, manifest.json, tables/<table>.csv per archived table and files/<table>/<id>.<ext> original files, built from the same archive as /api/backup. REPORT-004: GET /api/maintenance-report?from=YYYY-MM-DD&to=YYYY-MM-DD&propertyId=ID&status=unresolved|<status>&format=json|csv reports each job's status, age, response, handoff and resolution hours (resolution only from the resident's current confirmation), return visits, vendor performance, asset cost and budget variance over approved estimates, with missing timestamps listed (owner, portfolio managers, maintenance coordinators, bookkeepers and accountants, limited to their portfolios). PORT-003: GET /api/owner-statement?ownerId=ID&from=YYYY-MM-DD&to=YYYY-MM-DD&format=json|csv allocates each recorded receipt on the owner's properties by the shares in force on its received date, with the agreement fee and the owner's reserve-requirement share per stretch of the period (same readers). Downloads: GET /api/statement?tenancyId=ID&from=YYYY-MM-DD&to=YYYY-MM-DD (owner/admin CSV), /api/inspections/photos/ID (authenticated image), /api/maintenance/ID/packet (approved .eml), /api/backup (owner-only archive). Downloads are private and not cacheable. An .eml is an unsent packet; its download is not delivery evidence.

Auth is Base's ordinary API: owner POST /auth/invite with email, displayName and role; invitee confirms the mailed link. /auth/operator/status changes active/inactive state and /auth/operator/role changes role. Use the app's Data & access forms for these jobs without crafting HTTP.

SAFE-004 resident retention#

Owner only: privacy.request takes tenancyId, kind (access/erase), source; privacy.review takes tenancyId/requestId and returns retained classes, reasons and fingerprint; privacy.hold takes tenancyId/class (lease/accounting/screening/communications/all)/reason; privacy.release takes tenancyId/holdId/reason. tenancy.erase now requires requestId, the current reviewed fingerprint and exact resident email in confirm. Holds and period changes invalidate the review. GET /api/resident-access?tenancyId=... downloads that primary resident’s private access JSON. Erasure retains amounts/dates/links and close evidence and redacts identity only after the reviewed periods and holds permit it. Download a new backup for the restore fence.

WORK-005 staff appointments (partial)#

appointment.book takes jobId, startsAt/endsAt, accessStartsAt/accessEndsAt (YYYY-MM-DDTHH:mm±HH:mm matching the property zone), permission=granted, permissionReference, noticeReference/noticeAt, keysAccess, availabilityReference and staffId (defaults to actor). Rescheduling also takes previousId/reason. appointment.confirm takes appointmentId/version/party (vendor/resident)/outcome (confirmed/no_response)/reference. appointment.cancel and appointment.no-show take appointmentId/version/party/reference; no-show requires the arrival window to have begun. appointment.reassign takes a cancelled/no-show appointmentId/version, vendorId/reference and reopens exact work approval. Managers/coordinators record these; no send or resident contact is claimed. State work includes appointments, appointmentEvents and scoped appointmentCalendar; maintenance reports include firstConfirmedAppointmentAt and bookingHours.

emergency.guidance (owner, or a portfolio manager over every portfolio) takes risk (gas/fire/electric/water/habitability/other), guidance, optional immediateDanger and callInstruction (required for immediate danger and gas/fire/electric; must name 911) and approves the next version. emergency.oncall (owner, portfolio manager) takes portfolioId, primaryId and backupId. emergency.report (owner, portfolio manager, maintenance coordinator) takes tenancyId, risk, emergency (yes/no), channel (phone/email/in_person/staff_observed), reporter, description, optional assetId and reportedAt (ISO with UTC offset, not future); it returns guidance, guidanceVersion and, for an emergency with on call, alertOutcome (the mail provider's status). emergency.escalate takes emergencyId/version, to (backup/primary) and reason and re-sends the alert. emergency.acknowledge (only the case's named on-call person or backup) takes emergencyId/version/reference. emergency.resolve (owner, portfolio manager) takes emergencyId/version, fieldWork and residentFollowUp. GET /api/emergencies returns scoped cases, events, current guidance, on call, portfolios and eligible responders. The maintenance report adds openEmergencies, oldestOpenEmergencyHours and emergencies. No SMS or voice page is sent and nothing escalates on a timer.

prospect.add (owner, portfolio manager, leasing) takes propertyId, name, email and/or phone, source (own_site/marketplace/email/phone/walk_in/referral), reference, optional bedrooms, occupants, moveIn, budget, pets, notes and consent_email/consent_phone/consent_text (granted/refused/unknown); a matching open prospect in the portfolio returns review=possible_duplicate with duplicateOf. prospect.review takes prospectId/version, decision (merge/separate) and reference. prospect.assign takes assignedTo; prospect.email takes subject and body and sends one email to the prospect through the installation's mail provider only while email consent is granted, returning emailOutcome (the provider's status); prospect.respond takes channel and reference (refused on refused consent; nothing is sent); prospect.stage takes stage (showing_scheduled/shown/applied/offer/leased forward only, or lost with lostReason and note), on (YYYY-MM-DD) and reference; prospect.consent takes channel, state and reference; prospect.erase (owner) takes reason. Each takes prospectId and version. GET /api/prospects returns scoped prospects with sources, consent, preferences, retainedThrough and history.

ACCT-007 private vendor bills#

GET /api/bills and /app?tab=bills list bills/authority/revisions/payables and monthly recurring templates. The Properties page links Vendor bills. GET /api/bill-attachment?id=... downloads a scoped private original. bill.create takes vendorId, invoiceNumber, date, lines [{description,code,amount,tax}], allocations [{propertyId,amount,jobId?}] and original {name,type,base64}, or a multipart invoice File. Amount/tax are USD strings in exact cents. Forms use lineItems (one description | code | amount | tax per line) and allocation:PROPERTY/job:PROPERTY fields. bill.revise takes billId/version plus full terms, bill.attach billId/version plus attachment or invoice File, bill.owner billId/version/decision/source/reference, bill.approve billId/version. Changed revisions reopen approval. bill-template.create/revise use the same terms plus purpose/starts/endDate/dayOfMonth; revise/approve/run take templateId/version, and run takes month. Template approval and each generated bill approval are separate; one bill per template/month, including replay after a template change. No payment or extraction occurs. Originals are private to authorized staff/accountants across every historical allocation; owner/PM independently approve. Work-linked invoices inherit SAFE-004 retention and erasure with shared holds and erased-byte suppression.

Signed lease versions (PORT-005)#

lease.prepare accepts tenancyId, effective, signedDate, signers, reference, source (PDF file in multipart or {name,type,base64}), terms and obligations. With renewalId (LEASE-012) it records the signed renewal of an accepted offer: effective the day after the current end, through the offer’s end, rent equal to the offer; approving its preview activates the renewal once. The HTML forms also accept chargeLines and obligationLines in the displayed pipe-delimited formats. Each term names kind, description, exact amount, starts/ends and sourceClause; obligations record deposit, pet, utility, parking, insurance, addendum and hap (explicit none when absent). A HAP obligation names housingAuthority, reference, tenantPortion and hapPortion. It records terms without posting payer splits.

lease.preview accepts leaseId and month and returns the exact future charge lines and fingerprint. lease.approve accepts those three values and independently approves that unchanged snapshot. The existing charges.preview/charges.post run then posts the reviewed amounts once. Only owners/portfolio managers prepare, preview or approve. Owners, in-scope portfolio managers, bookkeepers and accountants read leaseVersions on /api/state?tenancy=ID and retrieve private original PDFs at /api/lease-source?id=LEASE_VERSION_ID. Leasing staff receive only nonfinancial version and obligation metadata, never original downloads or charge/HAP amounts. Signed originals and versions are included in backup, restore and readable export.

Cash and vacancy comparison (REPORT-007)#

GET /api/cash-scenario uses the existing reports.read role and tenancy portfolio scope. Required shared query fields are tenancyId, from/to (inclusive property-local days), assumptionsDate, reference and confidence. For both repair and market prefixes provide Rent, RenewalDate (date or none), RenewalRent (0 for none), VacancyDays, MakeReadyDays, Concession, OpeningCash, DepositsHeld, NewDeposits, DepositRefunds, Capital, Distributions, CollectionPercent and Source. Money is exact decimal USD, including explicit zeros; rent uses the tenancy cadence. The response names current payable revisions, dated reserve agreements, every assumption, each plan’s cash/ready/deposit figures and their differences. It performs no write or approval. The native comparison form is on each authorized tenancy.

Leasing performance (REPORT-003)#

GET /api/leasing-report?from=YYYY-MM-DD&to=YYYY-MM-DD&propertyId=ID&unitId=ID uses existing reports.read and portfolio scope. The inclusive property-local window ends today or earlier. Optional unitId drills one unit (property-attributed prospects are then excluded). The Properties page links the native report. Responses include occupancy/vacancy intervals, current-market assumptions versus classified external rent receipts, first-source conversion/drop-off, recorded renewal cohorts, formulas, source references and explicit coverage gaps. Prospect IDs/events/references require prospect.read as well; other report readers receive aggregate lead counts. Listing freshness, provider delivery and electronic signatures are never inferred.

Delinquency (REPORT-002)#

GET /api/delinquency?asOf=YYYY-MM-DD&propertyId=ID&tenancyId=ID&ownerId=ID&format=json|csv uses reports.read and portfolio scope. Aging reconstructs charges due through the inclusive property-local day less dated receipts/reductions, with currencies separate; owner filters select full household balances using ownership effective that day. JSON and the native Properties → Delinquency report expose dated sources and unknown workflow gaps. delinquency.assign takes tenancyId, assignedTo, version (0 initially) and reference: owner, portfolio manager or bookkeeper assigns an active owner/manager/bookkeeper in scope, granting no sending/collection authority. Eligibility is live on read and in the write batch; stale writes fail. Source staff identities after restore do not grant authority. Assignment references/events follow SAFE-004 accounting retention and are included in subject access without staff identity.

Governed custom fields, reports and documents (REPORT-005)#

GET /api/custom-reports returns visible field definitions, schema history, sourced values, subjects, saved report/template versions and generated-document links. The native builder is /app?tab=custom. All reads use the existing property/work role rights and portfolio scope. Custom definitions belong to one portfolio and one subject kind (unit, property or owner). Owner subjects additionally require the existing private owner-directory rights: owner, or all-portfolio staff with owner.add or reports.read. Custom expressions expose only custom fields; they cannot select or join financial or other system columns.

The owner and portfolio managers use these commands. Their command aliases inherit property.add's existing role list; portfolio scope is checked before reads/writes and live authority is rechecked in the write batch.

  • custom.field.define: portfolioId, entity, key (stable lowercase identifier), label, type (text, number, boolean, date, select), readRoles (JSON array of existing staff role names), optional required, min/max (numeric bounds), options (JSON array for select), reason. Returns id/version. custom.field.revise takes fieldId/version and the same schema terms and reason. Revisions must validate every current recorded value without coercion. Keys, portfolio and subject kind remain stable; a different meaning uses a new field.
  • custom.value.set: fieldId, entityId, version (0 before its first value), value, source. Text is at most 2,000 characters; dates are real YYYY-MM-DD days; booleans are true/false; select values must be a recorded option; numeric values are finite decimals of absolute value at most 1 trillion, within the declared bounds. An optional value may explicitly be null/empty. Validation failures and stale versions write nothing. Every value retains source, schema version and an immutable version history.
  • custom.report.save: portfolioId, entity, name, readRoles, spec (object or JSON), reason. custom.report.revise: definitionId/version, name, readRoles, spec, reason. The spec has columns ({key,label,field} or {key,label,formula}), optional filters ({field,op,value}, ANDed; eq/ne/gt/gte/lt/lte/contains), groupBy (selected column keys), aggregates ({key,op,column}; count omits column, other operations sum/average/min/max). Formula trees use {field:"inspection_score"}, {literal:2} or {op:"multiply",args:[...]}; add/subtract/multiply/divide take two arguments and numeric fields only, up to eight nesting levels. Arithmetic uses finite IEEE-754 decimal numbers without monetary rounding; missing operands yield null; numeric aggregates ignore null; count counts rows. Division by zero and results outside absolute 1 quadrillion are refused. Reports never infer missing values as zero.
  • custom.template.save: portfolioId, entity, name, readRoles, body (plain text with {{field_key}} placeholders), reason. custom.template.revise: definitionId/version, name, readRoles, body, reason. Fields must be known and visible. Every merge placeholder must have a recorded non-null value when generating.

GET /api/custom-report?id=ID&format=json|csv executes the saved report under the reader's current scope and role, returning columns, rows, groups and per-row lineage (field/schema/value version, source and recorded time). Report/template definitions pin every dependent field's schema version; any schema revision requires explicit definition review/revision before a new run or generation (409). Allowed staff roles only restrict existing subject rights. The owner always retains access. Hidden dependencies are refused before evaluating columns, formulas, filters, grouping, CSV export or merges (403), and omitted from the catalog and historical definitions.

custom.document.generate takes templateId, version (the reviewed template version) and entityId; its alias inherits work.read's existing role list. It freezes plain text, template version and source/schema/value lineage in an immutable document, returning documentId. GET /api/custom-document?id=ID&format=json|text returns that snapshot; it never regenerates from current values or a revised template. Reads check both the original allowed roles and the current template/field restrictions, including historical dependencies removed from a later template. A visibility change can therefore deny later access without rewriting the original document. Downloads are private, no-store; report/document reads and CSV exports are attributable history events. Definitions, schema/value versions and generated snapshots are included automatically in backup/restore and readable export.

OPS-001 API credentials and the version 1 API#

The owner creates credentials under Data & access → API credentials or with credential.mint. A credential acts as one staff role (ROLE-001) over the portfolios chosen at minting; its capabilities and portfolios are read from D1 on every call and every write rechecks them in its batch, so a revoked or rotated token fails at once (401), a record outside its portfolios answers 404 and an action its role lacks 403. The scope is narrower still: read answers GET only; prepare may also run maintenance.prepare, maintenance.revise, quote.add, renewal.prepare, arrears.prepare, correction.prepare and charges.preview. Everything else is refused by default: approvals, owner decisions, period and access commands, credential and second-factor commands (403 credential_cannot_approve or credential_scope). Credentials never open /app, /api/backup or /api/readable-export, are never archived, and carry no session, so they never pass a second factor.

Send Authorization: Bearer ttk_… (the token is shown once; only its SHA-256 is stored). Every GET above works for a credential within its role. Writes are POST /api/commands with a JSON body and an Idempotency-Key header of 8 to 100 characters (A-Z a-z 0-9 . _ : -; no Origin header is needed because a bearer token is not an ambient credential): the same key and body replays the stored response with idempotent-replay: true, the same key with another body is 422 idempotency_conflict, and a key whose first attempt never reported an outcome is 409 idempotency_in_progress, never run again. History records the credential as the actor with its role version and scope.

GET /api/v1 lists the resources; GET /api/v1/{properties,leases,households,ledgers,owner-ledgers,documents,work,reports} pages one resource and /api/v1/<resource>/<id> returns one record. Lists are scoped before paging, sorted by id, with limit (1 to 200, default 50) and the previous page's next as cursor; the response is {data,next,limit}, and next is null on the last page. ledgers need ledger.read, owner-ledgers need reports.read and a statement period (from and to), documents lists lease-version originals (lease.source), inspection photographs (work.read) and current tenancy documents under PORT-007’s kind and portfolio permissions, with their SHA-256 and download address. Stored document ids are document-version:VERSION_ID; restricted kinds remain closed to API credentials. work lists maintenance jobs and reports lists the report doors the role may read. People signed in with a session may use the same paths.

Existing LEASE-005 prospect email and LEASE-012 offer-send doors reserve live workflow contact slots in their original send transaction. A renewal send to several recipients consumes one attempt, keeps each source email event and outcome, and pauses on any uncertainty. Accepted is awaiting a reply, not confirmed delivery; known non-sends consume no contact. Sends made while paused or escalated are listed without changing workflow state or counts. In-flight reservations block workflow work and further excess sends, survive restart/archive restore and can be reconciled by a manager through workflow.resume with source evidence and a delivered/not_delivered resolution; the unresolved attempt consumes its slot. A late provider answer is retained without recounting, and a contradiction pauses for review.

ACCT-001: GET /api/journal reads the general ledger through financial-report authority, scoped to portfolios. Optional filters: propertyId, ownerId, tenancyId, vendorId, fund, from, to. It returns immutable source entries, reversal links and the trial balance. chart.add (owner only) adds code, name, kind (asset/liability/income/expense/equity), fund (operating/deposit/both). journal.post takes propertyId, ownerId, day, fund, kind (opening/deposit/contribution/vendor_expense/journal), reference, optional tenancyId/vendorId and lines: [{account,debit,credit}] in integer cents. journal.reverse takes entryId, day, reference; rent.reverse-receipt takes receiptId, day, reference, reason. Bookkeepers and portfolio managers post within scope. No API credential can run these commands. See property ledger.

PORT-008: GET /api/rules and /app?tab=rules let every signed-in operator read the active pack values, citations, versions and held reasons for properties in their portfolio scope. Optional propertyId selects one property; an out-of-scope property answers 404 on either door. Non-owner reads omit preview inputs/calculations and inactive draft contents. API credentials remain refused. Only the owner reads the entire 51-state/DC and five-overlay publication registry and publishes, records review, activates or saves previews.

Owner-only commands: rules.pack (documented JSON object, or a file upload), rules.activate (packId, consent: REVIEWED), property.rules (propertyId, stateCode, applicable overlays, current jurisdiction version, reference), rules.preview (propertyId, action, on and the action inputs in the pack guide). Each preview snapshots its inputs and exact rule versions. Missing/inactive data is held, never substituted.

A portfolio manager uses property.rules.propose with the same jurisdiction fields. It records a pending proposal without changing the assignment or permitting an action. The owner uses property.rules.confirm with proposalId and reference; confirmation applies exactly the stored proposal only if its base jurisdiction version is still current. A competing change makes it stale; confirmed proposals cannot replay. Both actions are audited and proposals/confirmations survive backup/restore. No active counsel-reviewed contents ship, and existing operating commands do not yet enforce these previews; PORT-008 stays partial.

ACCT-002: GET /api/trust returns scoped designated accounts, authorizations, per-bank/property/beneficiary/fund balances, journal-to-custody reconciliation, unassigned cash sources, blocked-transfer exceptions and human-approved externally recorded transfers. propertyId optionally restricts the view. Existing financial-report authority applies; installation API credentials are refused. The native screen is /app?tab=trust.

  • trust.account.add: entityId, name, bankName, last4, purpose (operating, rent_trust, deposit); owner only.
  • trust.map: propertyId, bankId, fund (operating, deposit), primary (boolean), reference; owner only. Authorizations are append-only, with at most one primary per property/fund and one legal entity per property.
  • trust.assign: entryId, bankId; owner explicitly assigns a historical unassigned cash source without changing its journal.
  • trust.prepare: propertyId, ownerId, fund, fromBank, toBank, amount (USD decimal), day, reason; scoped bookkeeper/portfolio manager. Only the same property/beneficiary/designated purpose is allowed. toOwnerId or toPropertyId differing from the source is refused. This door never accepts an owner-payout purpose.
  • trust.approve: transferId; owner/portfolio manager under ROLE-003 independence.
  • trust.record: transferId, bankReference; scoped bookkeeper/portfolio manager records the approved external bank fact once. No bank instruction is sent.

All except preparation need fresh email-link confirmation. Balances, dated reserves and live approver authority are checked again at recording. See trust accounts for exact semantics and the pending ct authorization ruling.

PORT-007: GET /api/documents (and /app?tab=documents) searches stored tenancy documents (leases, applications, notices, screening reports, tax documents) plus PORT-005 signed originals and inspection photographs. Filters: q (words matched against title, type, file name, source, address, unit, property and indexed file content), tenancyId, unitId, kind, and history=1 for earlier versions; results carry url, sha256, version, current and a content snippet. GET /api/document?id=VERSION_ID downloads one stored original (recorded in history as read:document); GET /api/document-versions?id=DOCUMENT_ID lists every version with its upload check and who opened each. A document outside the reader’s portfolios, or a restricted kind the reader’s role cannot read, answers 404: screening reports need document.screening (owner, portfolio managers), applications document.application (also leasing) and tax documents document.tax (also accountants, who read and download only). A role with no document right answers 403 and a signed-out caller 401. Commands document.upload (tenancyId, kind lease, application, screening, notice or tax, title, source, file) and document.revise (documentId, version as read, source, file) take a multipart file or, for JSON, {name,type,base64}. Types: PDF, JPEG, PNG, plain text, CSV and .eml, at most 5 MB; video, inspection media, work documents and invoices belong to their own records (PORT-009). A refused file answers 422 document_refused with the reason and stores nothing; a pass means only that the static content-type and active-content screen found nothing, never a malware verdict (PORT-010). API credentials never reach restricted documents.

SAFE-003: restricted originals use GET /api/document-access?id=VERSION_ID, which checks the current role and portfolio and redirects to a session-bound download URL valid for five minutes. Add format=json to receive {url,expiresAt}. Both the redirect and the final original are private and no-store. The final download rechecks current access; an old direct document URL without authorization returns 403, and another sign-in cannot reuse the issued URL. A copied URL cannot outlive erasure or restore into another installation. Search and version metadata redact identifiers and credentials, restricted content snippets and source text are withheld, and unexpected exceptions return a generic error. Readable export metadata is redacted while its private original files and the complete owner backup preserve exact bytes. This bounded protection establishes no malware verdict or complete encryption and provider-secret assurance.

ROLE-002: staff invite portal people with portal.invite (kind resident, owner or vendor; tenancyId, ownerId or vendorId; email, displayName, source; residents may take access: delegate) and end access with portal.revoke (grantId for one record or identityId for the person; reason). Both need the fresh email-link proof; owner and vendor grants need every-portfolio scope. The person opens the emailed one-time link (it expires within 7 days) at /portal/accept, which sets a 12-hour /portal-scoped cookie. A revocation, a new ownership share set and a changed vendor on a job or bill end the open sessions of the people they touch; they sign in again. /portal/signin asks for a new link and never says whether an address has access. Pages and JSON: /portal, /portal/lease?tenancy=ID, /portal/api/resident?tenancyId=ID, /portal/statement?tenancyId=ID (CSV), /portal/owner, /portal/api/owner, /portal/owner-statement?from=&to=&format=html|json|csv, /portal/work, /portal/api/vendor, /portal/invoice-file?id=ID, /portal/api/me. A resident revokes a delegated contact on their lease with POST /portal/delegate/revoke (grantId, same origin); /portal/api/resident lists the lease’s delegated contacts to the resident only. Anything not shared with the signed-in person is 404; no /portal cookie reaches /app or /api.

PORT-006: tenancy.transfer also carries the lease's household (every member who joined before the move-in) to the new lease from the move-in day; stay (member ids, array or comma list) keeps members on the old lease. /api/state?tenancy=ID household data now includes chargeLiability: for each charge, the resident, co-tenants and guarantors named on its due day. The record names people by dates; it is not a legal opinion.

PAY-005: payment.policy (owner only) and payment.record, payment.settle, payment.fail (existing rent.receipt roles) record reviewed external payment facts. /api/state?tenancy=ID includes ledger.payments with policies, pending totals, separate settled credit, frozen allocations, versions and outcome history. See payment policies. No provider collection or credit spending is initiated.

PAY-006: owner-only latefee.policy, latefee.preview, latefee.post and latefee.waive implement explicit pack-bound manual fee schedules. /api/state?tenancy=ID includes ledger.lateFees. See late-fee schedules.

PAY-009: finance.prepare, finance.revise, finance.approve, finance.check and finance.record govern exact financial revisions for the owner/in-scope portfolio manager. ledger.financialActions is restricted to those roles and API credentials are denied. See approved external refunds and corrections. Check drafts are non-negotiable; external records do not execute or verify provider/bank actions.

PAY-010 partial: full resident grants use /portal/statement?tenancyId=ID&month=YYYY-MM&format=html|csv|json and its scoped /portal/transaction?tenancyId=ID&id=SOURCE links. Delegate monthly/source reads are 404; the prior balance/charges CSV is preserved. No PDF or delivery claim. See resident monthly statements.

finance.cancel releases a pending/approved financial source reservation with an audited reason; cancelled and recorded revisions cannot be reused.

PORT-009 record attachments: published originals and all their versions also appear in /api/v1/documents as record-media:ID, under the same work or full bill-history portfolio checks. /app?tab=media&tenancy=ID links from Inspections & maintenance. GET /api/record-media?kind=inspection|work|invoice&recordId=ID lists immutable versions; GET /api/record-media/file?id=ID returns original bytes with X-Content-SHA256. media.begin takes kind, recordId, name, mediaType, size (1..25 MB), sha256, capturedAt (YYYY-MM-DD), source, optional attachmentId and current version to append a revision; it returns id and chunkSize (262144). media.chunk takes uploadId, zero-based position and a multipart file of the exact expected chunk length. Identical replay is harmless; different bytes at a saved position are refused. GET /api/record-media/upload?id=ID returns saved positions for the same signed-in uploader. media.finish verifies all bytes and publishes the version once; media.abort removes an unfinished upload. A new version never overwrites an original. Staff use their existing inspection/work/bill rights; invoice evidence is supporting material, never an edit to approved payable terms. Existing bill commands still own revisions and financial approval. Videos (MP4/QuickTime/WebM) and photos (JPEG/PNG) belong to inspections; work and invoices also accept the existing document types within their static screen bounds (5 MB for non-raster documents). No malware verdict, transcoding or external byte egress is claimed. The existing live vendor grant reads only current approved/sent assigned work documents and its own invoice evidence at /portal/record-media; it reaches neither inspection media nor staff API routes. All originals and hashes appear in readable export and backup restore.

WORK-011: /app?tab=field&tenancy=ID provides mobile condition inspections. New doors default to owner/portfolio-manager only pending ct approval. inspection.configure takes inspectionId/version, kind (routine/move_in/move_out), checklist ([{key,room,asset}] or one key | room | asset per line), optional entryId on a move-out. inspection.capture takes inspectionId/version, clientId, capturedAt, source and items ({key,condition,notes,reading,mediaIds}); condition is good/worn/damaged/missing/unknown, reading explicitly says none when absent, and each media id must be a published original on that inspection. Every current item is required. Identical clientId replay returns the original result; changed content is refused. inspection.acknowledge takes captureId, itemKey, outcome acknowledged/disputed, note and source: it is an immutable sourced staff record of the resident’s words, not a signature or a Terrace contact. inspection.propose takes captureId, itemKey, kind work/deduction, amount for a deduction and reason; inspection.decide takes proposalId, decision approved/rejected and reason. Approval needs matching room/asset entry/exit findings with distinct original fingerprints supporting changed damage, the latest exit capture and ROLE-003 independence. A decision executes no financial, work or outbound action. Offline device drafts are opt-in only, partitioned by signed-in operator and record, contain no credentials, and are deleted on success or explicit deletion. A scope conflict pauses before upload/submission; manual review retains prior values and requires completing added items before explicit resubmission.

WORK-007 direct capture: /app?tab=technician&tenancy=ID is owner/portfolio-manager only pending ct approval. Existing completion.record takes captureMode=direct, clientId, jobVersion, approvalId, completedDate, laborMinutes (whole minutes including zero), materials (explicit none allowed), summary/work notes, reference, accessOutcome (granted/not_needed/no_access), completedTasks (every approved task, one per line), beforePhotoId and afterPhotoId. Originals may be legacy inspection photos or published JPEG/PNG/video on this job or its tenancy inspections. The server attributes the report to the signed-in operator, pins the approved snapshot and hashes, and leaves the resident check open. Identical direct clientId replay returns the prior report; changed evidence under that id is refused. Existing staff-sourced completion forms keep their separate label and behavior. maintenance.field-revise (owner/portfolio-manager) takes jobId/version, revised scope/checklist and reference: only before a completion, it retains previous evidence and dispatches and reopens exact approval. Reapproval and a new explicit handoff are mandatory; the offline page then requires manual reconciliation, keeping previous captured values with the submitted report. No new vendor identity, provider send or automatic resident resolution is claimed.

Structured inspection completion uses the existing inspection.complete command with inspectionId, current version and final notes. It requires a current complete structured capture and at least one published original photo/video (legacy photos remain supported); a changed checklist must be captured again before completion. The mobile inspection screen submits this command explicitly and retains all findings, resident responses and reviewed proposals after completion.

If an API command fails after claiming its idempotency key, Terrace retains the pending key even if the proposal already committed. The same body and key then answer 409 idempotency_in_progress, including after restart; a changed body answers 422. Inspect the scoped work list and history before considering new work. A response-persistence error never releases the key for automatic retry.

AGENT-008 partial: the owner manages structured proposal workloads through agent.enqueue, agent.pause, agent.cancel, agent.resume, agent.reassign and agent.reply. All management is audited; controls after enqueue need workloadId, current version and a reason. Reassignment also needs a new current prepare-only credentialId whose role and portfolios cover the action and tenancy; it leaves the workload paused until a separate resume.

Enqueue takes credentialId, action (maintenance.prepare, arrears.prepare, renewal.prepare or appointment.book), arguments (only that command's explicit fields, including tenancyId), purpose, nextStep, dueOn and optional untrustedDocument text. Document text is fingerprinted and discarded; it is never parsed into arguments, authority, instructions or payment details. The assigned credential calls agent.execute with workloadId, current version and an Idempotency-Key. Execution prepares one proposal or records one externally arranged appointment, with live credential and workload fences in the same transaction as the proposal. Appointment recording requires the existing approved work, explicit resident permission, external notice evidence and a named staff calendar; it never contacts either party. Execution never sends, pays, calls a model or approves. Revocation and rotation pause queued and in-flight workloads atomically; a cancellation or reassignment fences any already claimed attempt. A failed claim remains visible for explicit owner review rather than automatic retry.

GET /api/agent-workloads returns evidence to the owner and each credential for its own scoped workloads. format=text returns a human-readable report. It lists the purpose, arguments, permitted tenancy and action, human approval requirement, next step, due date, attempts, replies, zero model and provider costs and result subject. Native archives retain evidence but omit credentials; a restored workload cannot execute until the owner explicitly reviews and reassigns it. Eligible tenancy erasure redacts workload free text and prevents execution. The adopted owner-only management default awaits ct approval; other credential preparation doors remain a Gap. ACCT-013: GET /api/financial-reports and /app?tab=financial-reports expose the documented cash and accrual projection, source entries, trial balance, aging and cash flow. Supply inclusive from, to, optional basis (cash or accrual), propertyId, ownerId and entityId (or unassigned). Existing financial-report authority and portfolio scope apply; installation API credentials are refused. See financial reports.

REPORT-006 partial: owner-only report.schedule takes name, kind (financial, rent_roll, delinquency, vacancy, maintenance), propertyId, optional financial ownerId, basis, zone, starts (YYYY-MM), dayOfMonth (1 to 31), hour (0 to 23), requireClose, reference and consent (GENERATE ONLY). report.retire takes scheduleId; report.generate checks due schedules now. Private reads are /api/report-schedules and /api/report-generation?id=ID; the native screen is /app?tab=report-schedules. This generates only and sends nothing; see report generation.

REPORT-006 reviewed owner links: report.delivery.prepare takes generationId, its reviewed fingerprint, an active owner grantId, reference and consent equal to DELIVER OWNER REPORT. The financial generation must filter to that owner. The frozen allocation statement uses only the scheduled property and existing owner portal fields. report.delivery.send takes deliveryId, its reviewed statement fingerprint, reference and consent equal to SEND LINK. Only the signed-in installation owner may prepare, send or record outcomes; Cron and API credentials cannot. Accepted or uncertain sends cannot retry. Definitive refusal permits explicit retry with current source and authority checks. report.delivery.outcome records delivered or bounced with a provider evidence reference; a bounce opens a failed-delivery next action. The private GET /api/report-delivery?id=ID reviews the frozen statement. GET /api/report-schedules lists delivery states, recipients and next actions. GET /portal/report?id=ID requires the intended person's live portal session and grant; format=json returns the same frozen statement. Source or ownership changes refuse the old link. Delivery snapshots and events are installation-only and excluded from archives. See the pending policy and remaining obligations.

REPORT-006 snapshot custody: report.delivery.hold (deliveryId, kind legal or accountant, reference), report.delivery.release (deliveryId, holdId, reference) and report.delivery.delete (deliveryId, consent DELETE SNAPSHOT, reference) require the signed-in installation owner. Snapshots persist until explicit audited deletion. Active statement legal or accountant holds, and property accounting legal holds, block deletion. Deletion retains the send identity and checksum to prevent replay; private custody records never leave the installation in archives.

PORTAL-007 partial: /app?tab=requests&tenancy=ID and GET /api/requests list scoped missing items, expiry, send history, submissions and validated completions. Optional id and tenancyId restrict a read. Reach this screen from Documents. The owner and portfolio managers use fresh email-link proof for every request command; other roles and API credentials are denied. Property scope returns 404.

  • request.create: tenancyId, grantId, action (upload, sign, acknowledge or quote), title and instructions. The recipient must already hold a full resident grant on the tenancy or a current property-owner grant. Signing needs a lease documentVersionId; acknowledgement needs a notice documentVersionId and permitted equal to PERMITTED. Quote decisions need jobId with a selected quote; its exact revision and terms are frozen. This prepares without sending.
  • request.replace and request.remind: requestId, current version, reference and consent equal to SEND LINK. Each explicit send creates a seven-day scoped action link and revokes older links. Provider acceptance is not delivery. A claimed or uncertain prior send blocks another send; no automatic retry occurs.
  • request.expire: requestId, current version and reference. Expiry leaves the missing item and its history intact.
  • request.validate: requestId, current version, sha256 and reference after reviewing a submitted original. Only a matching stored fingerprint completes an upload request and stops reminders.

The recipient signs in through the existing portal, then follows /portal/request?token=TOKEN. The bearer link alone grants no general access or action. Every read and submission checks the named identity, live grant, session and expiry; a quote also requires current property ownership and unchanged terms. POST accepts token, name exactly matching the identity, consent equal to I AGREE, and either an uploaded file or decision (approved or declined). The action and tenancy come from the stored request, never submitted fields. Document originals use the existing content check and fingerprint custody. file=1 downloads only the exact document selected for signing or acknowledgement. Request evidence survives backup and restore, but links, people and sessions do not: restored open requests require a new invitation and a newly prepared request. SAFE-004 governs retention and eligible erasure. Signing records a named attestation and explicit consent; legal lease execution remains LEASE-011. Notice acknowledgement never establishes legal service. These conservative defaults await ct approval.

Annual maintenance category budgets#

maintenance.prepare and maintenance.revise accept costClass (operating by default, or capital). Changing it reopens approval. Unlinked bill allocations accept costClass and assetId; form fields use costClass:PROPERTY and asset:PROPERTY. A linked work order supplies its own classification, asset and due year. Amounts include recorded tax; each approved work estimate and its cumulative payable invoices reserve their maximum, once. Property-wide and asset-specific category limits both apply. Old records remain operating. GET /api/state?tenancy=ID exposes work.categoryBudgets and work.budgetHistory within existing scope. Budget changes preserve earlier approved sources and reject stale versions. The archive omits the installation-local concurrency clock; restored budgets, source history and work classifications remain operating data.

Maintenance stock#

The existing maintenance screen shows eligible approved purchase invoices, stock lots and repair consumption. stock.receive takes tenancyId, billId, billVersion, name, quantity (whole parts), day and reference. It receives the entire unlinked property allocation once, preserving its recorded tax-inclusive cost and purchase beneficiaries. Each beneficiary needs at least one cent per part. Existing bill approvers record receipts; existing maintenance approvers record consumption. Both retain portfolio scope. Stock reads also require existing bill-read authority.

stock.consume takes tenancyId, lotId, jobId, current jobVersion, quantity, day and reference. The native form carries the repair version in jobKey. Current approved work, sufficient stock, unchanged purchase ownership, approved estimate and category-budget authority are checked atomically. Source invoices cannot be revised after receipt. Purchasing reclassifies expense to inventory without creating another payable; consumption moves exact cost back to expense. Cumulative integer costs consume each beneficiary's final cent on the final part. The work reservation takes the greater of the approved estimate and cumulative bills plus consumed parts; unconsumed inventory is excluded from repair spend. No recovery, payment or automatic approval occurs. Stock records follow existing accounting retention and native archive custody.

Repair chargeback proposals#

On the existing maintenance screen, chargeback.prepare accepts tenancyId, sourceId (an eligible repair-cost journal entry), ownerId (that source beneficiary), kind (resident, owner or insurance), recipientId, amount, day, authority and consent equal to yes. The primary resident is identified by resident:TENANCY_ID; another liable member uses their existing household id. Owner recipients use the cost owner's id. Insurance recipients use an explicit named insurer and claim reference supported by the authorization evidence. The native form sends this as insuranceReference; API callers may use recipientId. Proposals have no financial effect. Their fingerprint covers the exact recipient, source, amount, recorded authorization, the preparer’s affirmative authorization declaration and its version, and included source-tax treatment.

chargeback.approve requires chargebackId and its displayed sha256. Existing ROLE-001 bill preparation and approval capabilities and ROLE-003 independence apply; credentials cannot act. Approval records a receivable and reduces source-owner expense once while preserving the original payable. Receivables are shown separately from cash, and are not resident rent collection or insurance coverage verification. Changed rights, another beneficiary, stale fingerprints, duplicate approvals and concurrent recovery above the remaining cost are refused. Source invoices cannot be revised after a proposal. work.chargebacks in the scoped state and the native maintenance screen show proposals, attributable approvals and cost reconciliation; the owner statement API includes scoped costAllocations separately from cash. This conservative explicit-authorization default awaits ct approval. No message or money movement occurs.

PORTAL-003: a vendor session may POST form fields to /portal/api/work-response (jobId, current version, outcome accepted or declined, consent yes). /portal/work-response serves the native form and redirects to the work page. Only currently approved or sent assigned work is eligible, and current qualification holds apply. Confirmation version 1 is “I confirm this is my response to this exact approved work.” The exact approval fingerprint, mailbox hash and time are retained. One response exists per vendor and job version; identical retries return it, conflicting answers return 409. Scope failures return 404, expired or revoked sessions return 401 on the API, and a foreign Origin returns 403. Responses do not dispatch, schedule or pay and send nothing. /portal/api/vendor includes only responses to that vendor’s currently assigned approved work. The native work page shows the approved scope and checklist. Payment labels read existing bill approval state only; payment execution remains absent.

Hosted test card collection#

Full residents use /portal/card and staff rent-receipt recorders use payment.card with tenancyId, exact USD amount, a unique requestKey and consent=yes. The response supplies a Stripe-hosted Checkout destination. PAY-005 admission and reservations apply before any provider write. No card number or security code enters Terrace. Server binding STRIPE_SECRET_KEY must be a held Stripe test credential. Live credentials are refused.

/api/stripe/events accepts POST notifications containing a Stripe event id only. The server retrieves the canonical event and verifies its matching hosted session, amount, successful intent and charge before posting the frozen allocations once. Its public response contains acknowledgement and replay state only. Staff use payment.card.reconcile with tenancyId and eventId for the same canonical verification. Browser return never posts money. See card collection for declines, expiry, fees, restore custody and the remaining deposit and actual bank-settlement gaps.

vendor.bank.prepare records an owner-prepared bank name, last four digits and external account reference; vendor.bank.verify requires a different authorized person’s exact external verification. Both need fresh email-link proof. /api/vendor-bank?vendorId=ID and the native Data & access Settings section check current staff role and every related portfolio. A replacement holds prior verification. These references authorize no bank instruction or payment. CT review of the conservative authority and custody default is pending.

Card collection consent: read the current consentVersion from the native review form and submit it with the explicit one-time consent and amount. Stale wording revisions are refused. The payment retains the accepted wording, revision, actor and time with its frozen amount; later provider outcomes do not substitute a new authorization.

Repair communication commands#

message.contact records a current resident, assigned vendor or named responder, per-channel consent evidence and recipient timezone. message.prepare freezes content for repair, arrival or page; message.approve requires APPROVE EXACT MESSAGE; message.send performs one explicit approved attempt. Every command requires a fresh native sign-in by the owner or an in-scope portfolio manager. Current role, scope and source revisions are rechecked. GET /api/messages?tenancyId=... returns that authorized tenancy's thread.

Twilio form webhooks use POST /api/twilio/inbound and POST /api/twilio/status with the account's X-Twilio-Signature. Unverified, wrong-account and unrelated events are refused. Test-mode callbacks are labeled signed fixtures. See repair communications for provider bindings, opt-out, quiet hours, restored authority and remaining policy gaps.

AGENT-005 partial: a renewal workload requires the existing campaign offer fields plus alternatives (two to five objects with rent, endDate, concessionCost and source), conditionSource, communicationSource, cashSource and requiredSigners (one to twenty distinct names supplied by the owner from reviewed legal terms). The chosen rent and end date must match an alternative. The server freezes live tenancy and campaign versions when the owner enqueues; later changes refuse execution. Source text is evidence only. Estimated concessions require separate executed lease terms before they affect charges. Counteroffers require a newly prepared and human-approved offer before another send or acceptance. Three calendar days before the reply deadline, sent unanswered offers appear in the owner follow-up queue; no message is sent automatically. A revised offer inherits its prior required-signer roster unless explicitly changed and approved; the staff-recorded original must name every required signer. This is no provider or legal verification. The approved 26 October AGENT-005 slice retains a read-only stewardship projection in GET /api/agent-workloads: current offer and campaign evidence, required signers, next human action, signature readiness and future charge verification against the reviewed schedule and any recorded charge amounts and sources. Household changes invalidate queued preparation and require a new reviewed offer before sending or recording its signed original. Renewal preparation events retain actor and timestamp with reason, policy and before-and-after detail. The projection never sends, approves, collects legal signatures or posts charges. Underlying-source refresh, provider execution and full continuing stewardship remain open.

Owner invoice originals: GET /portal/api/owner-invoices?from=YYYY-MM-DD&to=YYYY-MM-DD lists eligible originals separately from the frozen statement data. GET /portal/owner-invoice?id=ATTACHMENT_ID requires a live owner portal session. The owner statement lists only attachment ids and hashes pinned by the current payable approval. Each historical invoice allocation must fall in a period solely owned by that beneficiary; shared originals remain with staff for review. Pending revisions, revoked access, screening and unrelated originals are refused. Reads are audited and served as private downloads with sandbox response policy. This conservative disclosure default awaits ct approval for PORTAL-002 and ACCT-012; neither clause is complete.

Shared conversations and service evidence#

GET /api/threads accepts tenancyId, id and q; GET /api/thread-file?id=ENTRY downloads an original with private, no-store headers. These native staff doors require the installation owner or a scoped portfolio manager; staff outside a portfolio receive 404 and prohibited roles receive 403. Search filters before exposing results.

The Messages screen at /app?tab=messages&tenancy=TENANCY provides thread.create, thread.assign, thread.reply, thread.approve, thread.service and thread.readmark through the ordinary command door. Every mutation requires native email-link proof fresh within ten minutes. Creation takes a tenancy, named current grantId, subject, body, explicit consentReference, optional date-only deadline and optional original file. A broadcast expands to current primary residents and dated co-tenants, guarantors and authorized contacts with a notice preference in that tenancy's property; each recipient retains a separate thread and result. A legal notice has immutable content and deadline. Approval requires its frozen fingerprint, exact consent APPROVE EXACT MESSAGE and a separate approval reference. It publishes only to the named live portal recipient; nothing sends external mail. Service recording requires exact prior approval, RECORD EVIDENCE, a nonfuture property-local service date, named evidence reference, method and delivered, failed or uncertain outcome. It is staff-recorded evidence, never a provider receipt or a finding of legally sufficient service. A recorded attempt is not retried or overwritten.

GET /portal/api/threads and /portal/threads expose only approved public content for the current person's live grant. Optional q searches public content only. POST to either door replies to a conversation with threadId, current version, body and SHARE EXACT MESSAGE, or explicitly marks read with action=read. Opens change no read state. A stale retry returns 409 and callers inspect stored state before another action. Owners need a current property-local ownership share; vendors need current approved or sent assigned work; residents need the current primary-resident identity within the tenancy term. A delegate may read only an exactly approved notice tied to their original current informed household membership and a preference other than none. This grants no conversation, general document or other-household access. A replacement membership cannot revive an old notice. A private note and its original are absent from portal search and direct downloads.

Originals use the existing 5 MB static content screen, which is no malware verdict. Thread, original, consent, approval and service evidence follow communication retention and legal holds, appear in backup and readable export, and are deleted with eligible tenancy evidence and its restore fence. Source actor and grant identifiers are historical evidence after restore; portal people, grants and sessions are excluded and public replies require fresh destination authority. The 27 October CT ruling approves this bounded authority policy with riders; PORTAL-006 remains partial. Provider-verified delivery and the full household target remain unfinished.

thread.reconcile records reviewed evidence for a failed or uncertain physical-service attempt. It requires the current thread version and fingerprint, consent RECORD RECONCILIATION, outcome, an in-scope assignedTo, nextAction, dueOn and an independent evidence reference. The original result is retained; a delivered reconciliation is terminal. Every failed or uncertain first record opens a review assigned to its recorder due on that property-local day. This action sends nothing and proves no provider delivery or legal sufficiency. Reconciliation evidence follows the same archive, retention and erasure rules.

Household notice rights follow PORT-004 dates in the property timezone. Occupants, emergency contacts, opted-out members, future members and former members are excluded. A matching live portal grant and separate reviewed permission or required-service authority are still necessary. Thread action history in the staff thread data and screen retains actor, timestamp, policy, source, reason, before and after revision and original fingerprint, without copying reply bodies into history.

Applicant workspace#

See online applications for the separate applicant door, versioned submission and missing-document flow, explicit hosted household fee, current staff scope and private original custody. LEASE-007 remains partial under its conservative interim authority policy and legal disclosure boundary.

Resident account: /portal lists each granted lease. /portal/api/resident?tenancyId=ID projects charges, pending funds, deposit entries and exact shared lease originals without guarantor or screening records. The owner explicitly shares a reviewed original in Settings using portal.document.share; revisions need a new review, and sharing authority is not restored with an archive. /portal/lease-document checks the live resident grant and exact original on every download. /portal/receipt?tenancyId=ID&id=ID downloads a PDF for a recorded receipt, with CSV and JSON formats available. Browser returns never create a receipt.

Contact Settings under /portal/settings?tenancyId=ID changes only the verified person’s optional email preference through /portal/api/preferences, with version checks, same-origin confirmation and attributable history. It changes no destination, other person’s preference, legal notice obligation or sign-in address and sends nothing. portal.bank.update requires fresh staff email-link proof and always refuses: resident bank methods remain on the provider’s hosted page and Terrace stores no resident bank details.

Integration diagnostics#

The signed-in installation owner can read GET /api/integrations and save non-secret setup metadata through integration.save at POST /api/commands. Saving also requires fresh email-link confirmation. Other operators receive 403; API credentials cannot manage diagnostics. The native controls are under Settings on the Data & access page.

The command takes provider (Stripe or an existing supported mail provider), scope (unknown, hosted_test_payments for Stripe, or transactional_mail), entitlement (unknown, owner_reported_available or owner_reported_unavailable), and optional whole USD centsPerThousand with costAsOf. These are owner-reported metadata and dated estimates, never verified permissions, entitlements or measured provider billing. Keys stay in private installation configuration. Saving makes no provider request.

Diagnostics observe Stripe requests and the existing work-dispatch and resident repair-message mail boundaries. Fixed outcome classifications, counts and dates are durable and portable; provider response bodies and errors are omitted. Restored observations are historical evidence with no current successful exchange. Reconnect information is provider-specific, and restoring or reading diagnostics initiates no send, collection, provider validation or retry. Other transport paths, real authorized setup validation, complete provider coverage and measured billing remain outstanding under OPS-004.

Professional referral evidence#

BOUND-002: GET /api/professional-referrals and the Professional referrals section of /app?tab=rules serve the signed-in owner and current portfolio managers in their portfolios. API credentials are refused. Optional propertyId outside that scope returns 404. The current slice records external handoffs for held rule previews linked to an existing tenancy in the same property. It grants no professional, provider or execution authority.

referral.create takes decisionId, the preview's sourceRevision, tenancyId, a named professional, external reference, current in-scope owner or manager responsibleId and dueOn. Previews saved before source tracking need a new preview. The revision binds the exact dated pack identities and activation states plus the jurisdiction revision; publishing or activating a relevant pack or changing the jurisdiction makes earlier responses historical.

referral.response takes referralId, exact referred sourceRevision, current response count as version, outcome (received, rejected or needs_information), reference and a file original. It appends immutable evidence. A late response may be retained against its original source but is visibly inapplicable after a source change. The file uses the existing content check, size bound and erased-original hash fence. It is a restricted referral original with lease retention, never a shared resident lease.

referral.review takes referralId, responseId, nextAction, review reference and consent: RECORD ONLY. It records a next action only while that exact source is current. Neither a response nor a review releases a source hold, closes the substantive case, activates rules, executes financial or legal actions, or sends a message. Unanswered and rejected referrals remain open. Changes require a fresh source preview and referral, not editing old evidence.

Response downloads first use /api/document-access?id=VERSION to authorize the existing /api/document?id=VERSION door with live referral rights and tenancy scope, private no-store headers and the original hash. Search, version history and generic revision doors enforce the same restriction; originals cannot be replaced. Referral records and original files follow SAFE-004 lease retention and legal holds, owner readable export and SAFE-005 backup and restore. Restored evidence grants no account, credential, recipient or substantive action authority. Eligible tenancy erasure removes referrals and originals and fences both file replay and restoration of older archives when a later journal is supplied.

Restricted-original authorization and metadata#

SAFE-003: GET /api/document-access?id=VERSION checks the current role and portfolio, then redirects to an authorized original. Add format=json to obtain url and expiresAt instead. Restricted originals (applications, screening, tax and professional responses) use a five-minute HMAC authorization bound to the exact version, original hash, current person, session and role revision. /api/document refuses a restricted original without that authorization. An old URL, another session, expired authorization, revoked role or changed portfolio cannot bypass current access checks. Unrestricted originals retain their ordinary authenticated download. Restore re-creates neither session nor authorization.

Restricted document titles, filenames, source references and content snippets redact formatted identity numbers, long payment numbers and labelled credential values. The native search field also redacts those values on display. The readable export redacts restricted document metadata and omits indexed original text from its CSV metadata; the separate original file remains byte-for-byte intact with its checksum. The private backup keeps full custody for restore. These bounded rules do not claim universal data classification or a malware verdict. Unexpected errors expose a generic message; recognised input errors retain their useful explanation with the same redaction, and audit source strings redact those credential and identifier patterns.

Documentary shadow rent reads#

GET /api/shadow-runs returns retained source hashes, explicit mappings, each lease comparison, open differences, follow-up history and exact reviews. GET /api/shadow-original?id=ID downloads the exact original bytes with private no-store headers and X-Source-Sha256. Both require the current signed-in owner. A replaced source, changed native statement or restored installation cannot use a prior review as current evidence. See documentary shadow rent.

Company agent door#

The shared /mcp door and /agents person controls use signed company policy. See the supported jobs, native authority and limits and agent-surface.json. The declared subset has tools, policy, pause, audit and idempotency; resources, prompts, events and subscriptions are typed-refused. Native API credentials retain their narrower read/prepare grants and assigned-workload checks.

Submitted income criterion review#

POST /api/application-review computes a read-only comparison; the equivalent native form posts to /app/application-review. Both require the current native owner or an in-scope portfolio-manager session, satisfied second factor when required and matching Origin. API credentials are refused. The result is private and no-store. Another portfolio's application returns 404; prohibited roles return 403. No review input is placed in a URL or persisted applicant record.

Supply shared multiple (a positive decimal with at most six fractional digits), criterionReference and disclosed: "PREVIOUSLY DISCLOSED", confirming that this exact multiple was disclosed to both applicants before submission. Each of the prefixes first and second takes ApplicationId, AdultId, Version, DisclosureHash, DisclosurePackId, FileId, FileHash, Rent, Income, EvidenceState, Verification, VerifiedOn and VerificationReference. For example, firstRent and secondRent are explicitly supplied monthly USD amounts with at most two decimal places. Evidence states are missing, unverified, contested and verified. Verified evidence needs the assertion I VERIFIED INCOME, a nonfuture date and an external staff verification reference. Read the current revision, acknowledged disclosure and original hashes from /api/applications; the native source picker supplies these pins automatically.

Responses show the shared criterion and two rows with submitted revision, disclosure text and provenance, original hashes, exact-cent inputs, verification, exact rational threshold, minimumIncomeCents and result: held, meets_criterion or below_criterion. Held evidence does not yield a positive or negative criterion result. Changed inputs must be posted again. Stale revisions, changed or inaccessible originals and changed disclosure fingerprints return 409; an unavailable applicant returns 404. A successful read records only application.income-review with outcome read and the opaque applicant id.

The calculation parses neither applicant prose nor original document instructions. It creates no applicant decision, report, dispute resolution, send, fee, ledger entry, grant or custody policy. All LEASE-009 provider, counsel, legal, authority, decision, referral, notice-delivery and export-history gaps remain; see applications.

Repair email delivery evidence uses POST /api/repair-mail/events. Configure MAIL_PROVIDER as Resend or SendGrid and privately supply REPAIR_MAIL_WEBHOOK_KEY for that provider's signed delivery events. Missing configuration refuses intake. Legacy sends without a frozen provider cannot acquire delivery-event authority. The send claim freezes provider and recipient; events must match that provider, originating installation, exact stored provider message ID and recipient. Signed SendGrid batches authorize every item before any write. Conflicting event identities roll back the whole intake transaction.

Accepted, deferred, delivered, bounced and failed facts remain distinct in repair-message history. Terminal delivery cannot regress to progress. A failed delivery shows an explicit staff next action; delivery never means a person read the message. Redelivering the same signed event recovers a stored receipt whose thread projection was interrupted, without sending again. Callbacks grant no reply, appointment, paging or acknowledgement authority. Communication retention and legal holds cover provider receipts; eligible erasure removes them. Backup and readable export retain evidence, while a restored installation cannot accept archived callbacks. Synthetic signed fixtures establish no live sender, delivery, inbound identity or account entitlement.

Setup readiness disclosures#

SAFE-008: GET /api/setup-readiness serves only the signed-in installation owner, with no-store responses. Other operators and API credentials receive 403; missing or revoked authentication receives 401. The read-only native section is under /app?tab=settings. There is no activation or configuration command here.

The response separates contract-required provider onboarding and agreements from implementation availability, configuration presence, historical successful exchanges and owner-reported entitlement. Agreements, authorized credentials, authority and activation remain unverified, including after archive restoration. No provider request, connection check, send, collection or configuration write runs from a readiness read.

limits gives kind-specific byte ceilings used by native upload validation, including separate inspection photographs, tenancy documents, signed lease originals, chunked visual and document evidence, chunks and browser archive restore. These are upper validation bounds; content checks and D1 row limits can refuse smaller files. They establish no qualified storage maximum. Larger archives use the existing rer import command.

costs retains existing dated owner assumptions in USD cents per thousand outbound requests, with observed counts and estimates kept separate from unknown measured storage billing and external fees. Official pricing links are review sources, not contracted quotes. capacity lists SAFE-009's required reference and dataset and each target bound; qualified is false, receipt is null and measured timings are null while hosted reference results are unavailable. Local readiness runs never become qualified reference measurements here.

Read-only operating-risk analysis#

GET /api/operating-risks requires a current installation-owner session; API credentials and every non-owner role are refused. Required query fields are propertyId, from, to and assetIds (comma-separated distinct recorded HVAC identifiers belonging to that property). Dates are inclusive and local to the property, with the leasing report's existing bounded window. The HVAC window selects jobs by local preparation date. Attempt effective dates and recording dates, and resident-check recording dates, must be on or before To.

Optional scenario fields are assumptionDate, assumptionReference, preventiveCost, callbackCost and avoidedCallbacks; supplying any requires all five. Money inputs are positive exact USD amounts with at most two decimal places; the count is a whole number from zero through 1,000. Scenario output is hypothetical cost and benefit, never settled cost or realized savings.

The owner page is /app?tab=operating-risks, reached from Properties. Every requested analysis recomputes from current native records and returns Cache-Control: no-store. Unselected asset evidence and other-property prospect cases are omitted. The door creates no workload, proposal, approval, financial entry or provider request. See Operating-risk observations for source cohorts, duplicate exclusions and the remaining product boundary.