Skip to Content
Coverage

Coverage

What the claims on this site rest on, which source and tests support each topic, what was run to confirm it, and what this checkout cannot establish. The site describes code behaviour; it is not an assessment of any running deployment.

Home · Architecture Overview · Workflows

Checkout context

ItemValue
Backend source verifiedportal-backend 997ae3e, 20 October 2026
Docs sitepackages/backend-docs of the portal monorepo, written against portal-backend 997ae3e (the row above)
Node for executed probes26.10.0; package.json requires ^24.21.0. The behaviours that depend on Node defaults (unhandled rejections, top-level await) were not re-run on 24
Libraries read in node_modulesas named in each page’s Evidence section, for example Koa 3.2.1, koa-body 8.0.0, koa-jwt 4.0.4, tsyringe 4.10.0, keyv 5.6.0 with @keyv/redis 5.1.6, pino 10.3.1, p-retry 8.0.1, @nats-io/jetstream 3.4.0, axios 1.20.0

Every deep page ends with the same stamp. A later backend commit can change any claim; re-check the cited src/... symbol before relying on a page for a newer checkout.

Evidence labels

Label on a pageMeaning
noneRead in the backend source; the file and symbol are cited next to the claim
executed <date>Run on that date: a worked trace, a probe of a library, or a request against the sample-data Repliers key (read-only requests only)
syntheticA worked trace built from the source with stand-in values; not run
upstream behaviour, observed <date>Seen in a Repliers, Follow Up Boss or provider response on that date; the source cannot settle it
upstream behaviour, unverifiedNot observed; a link to the provider’s public documentation is given where one exists

Evidence coverage

TopicSource / symbolTest or probeVerified behaviourUnverified boundary
Module cataloguesrc/routes/** (every router.get, post, put, patch, del and prefix), src/routes/index.tsA route-inventory check compares the catalogue with the routers: 83 routes, 83 cataloguedEvery mounted operation with its middleware, validator, service and storeThe @openapi annotations are not a source for this site
Request lifecycle, error variantssrc/app.ts (error middleware), src/lib/middleware/container.ts, src/providers/index.tskoa-body run with the backend’s configuration behind the same branch order (executed 2026-10-20)Middleware order, the five error branches, 413 and 400 parsing errors, DI lifetimes per registrationWhat a proxy or CDN in front of the process does to a request
Configuration resolutionsrc/config.ts, src/lib/settings.ts (Settings.merge, postProcess, constructEventsCollectionUrls)test/lib/settings.test.ts; src/config.ts imported with placeholder values and no env file (executed 2026-10-20)Construction order, asserts, array replacement, URL assembly outcomesThe environment, presets and secrets of any real deployment
Listings searchListingsService.search (src/services/listings.ts), RepliersListings.search (src/services/repliers/listings.ts), withRequiredFields (src/lib/utils.ts)test/routes/listings.test.ts, test/services/listings/*.test.ts, test/lib/utils.test.ts; W1 executed 2026-10-20 against the sample-data keyThe outbound request, forced filters, field additions, status constraint, guest and user responsesHow Repliers ranks a queries[] union; the upstream parameter-conflict rule (taken from a code comment)
Detail, similar & historyListingsService.single, similar, history, servable, withPermissionstest/routes/listings.test.ts, test/services/listings/history.test.ts; W2 executed 2026-10-20Availability refusals, history eligibility and synthesized permissionsRepliers’ similarity model and history ordering
Scrubbing, Restricted listingssrc/services/scrubber/listings.ts (ListingsScrubber, scrubbed), src/services/scrubber/base.ts, excludeRestrictedListings, dropRestrictedtest/services/scrubber/*.test.ts, test/services/listings/restrictedListings.test.ts, listingHelpers.test.ts; W1 and W2 responses compared field by fieldMasking, dropping, board gate, nested coverage, exclusion placementboardId on cluster listings (observed 2026-07-20, not re-run); listings with restrictive permissions in a live feed
MLS-number prefixsrc/services/listings/mlsNumberPrefix.tstest/services/listings/mlsNumberPrefix.test.tsEach codec function, idempotence, the widening guardsRepliers behaviour behind the widened search
Autosuggest, GeocodingAutosuggestService.search (src/services/autosuggest.ts), src/services/mapbox.ts, src/services/google.tstest/services/autosuggest.test.ts; W3 synthetic, similarity scores computed with the installed jaro-winklerBranches, joins, merge order, branch failure handlingMapbox and Google ranking and response content
Client IP forwardingXFFProvider (src/lib/xffprovider.ts), RepliersBase (resolveApiKey, activeThrottler in src/services/repliers/base.ts)test/providers/xffprovider.test.ts, test/services/repliers/base.test.ts, test/services/throttler.test.ts; W10 syntheticToken matching, key and throttle choice, header forwardingWhat a frontend build actually sends; the chain of any deployment; Repliers’ quota
AuthenticationAuthService (src/services/auth.ts), src/routes/auth.ts, koa-jwt 4.0.4, openid-client 6.8.7test/routes/auth.test.ts, test/services/auth.test.ts, test/routes/oauth.test.ts, run 2026-10-20 with mocked upstreams; W9 syntheticOTP issue and cooldown, exchange, JWT claims, revocation lookup, role resolutionNo auth endpoint called against a live upstream (they send messages or create clients)
Cachingcached, sendCached (src/lib/decorators/cached.ts), src/providers/keyv.*.tstest/lib/decorators/cached.test.ts, test/routes/featured.test.tsNamespaces, keys, TTLs, invalidation, Cache-ControlRedis eviction and failover
Persistence, Data ownershipsrc/migrations/*, src/repository/*, src/services/repliers/{clients,agents,favorites,searches,estimate}.tsRead; no repository test existsSeven tables, one foreign key, Keyv versus SQL, readers and writersSchema state of any real database; whether Repliers enforces ownership on its side
Events & MessagingEventsCollectionService (src/services/eventsCollection/eventsCollection.ts), src/services/eventsCollection/selectors/test/services/eventsCollection/eventsCollection.test.ts and 17 selector tests; W7 syntheticSelector payloads, tags, awaited versus detached reportsHow Follow Up Boss stores events, tags and notes
Follow Up Boss, WebhooksBossWebhooksService (src/services/boss/webhook.ts), SyncService (src/services/sync.ts), src/streams/*, src/worker.tsRead; no test covers the webhook route, the workers, SyncService or the NATS provider; W8 syntheticHandler steps before the response, publish, worker dispatch, ack / nak / termFUB redelivery of a failed callback; the NATS server’s consumer defaults
EstimatesEstimateService (src/services/estimate.ts), AgentService (src/services/agent.ts)test/services/estimate/estimate.test.ts, estimate selector tests; W6 syntheticProperty-details enrichment, key switching, owner adjustment, ownership checks, email flagsThe Repliers estimate model and the emails Repliers sends
User & Favorites, Saved searches, Agent & Adminsrc/routes/{user,favorites,searches,agent,admin}.ts, src/validate/*test/routes/favorites.test.ts, test/validate/*.test.ts; validators run in isolation with the project’s Joi (executed 2026-10-20); W4, W5 syntheticPATCH handling of omitted, empty and null values; ownership guardsRepliers’ handling of PATCH bodies, matching and saved-search notifications
Failure & degradationsrc/app.ts, RepliersBase (src/services/repliers/base.ts), src/providers/keyv.otp.tssrc/app.ts served locally with a Repliers stand-in that never answers and closed Mapbox and database ports; Keyv with @keyv/redis against a closed port (both executed 2026-10-20)Status and body per failing dependency; pending Keyv callsHow long a Keyv call waits beyond 8 s; behaviour after a working Redis or NATS connection drops
Process lifecyclesrc/index.ts, src/worker.ts, src/providers/nats.tsEach entry module run with placeholder values (executed 2026-10-20, Node 26.10.0)Startup order, the failures that stop each process, dummy modeSignals were not sent (the probes ran on Windows); webhook installation against FUB
Troubleshootingmiddleware.logger, src/worker.ts (logger.setBindings)Request log lines of a failed request and a pino setBindings probe (executed 2026-10-20)Which lines carry a correlation idLog routing and retention of any deployment
EmailContactService (src/services/contact.ts), SmtpService (src/services/smtp.ts), RepliersMessages (src/services/repliers/messages.ts)Read; no message was sentWhich path each message takesDelivery by Repliers or the SMTP provider
First requests, TutorialsAs cited on each pageSynthetic; the tutorial code is illustrative and was not compiledThe steps match the source they citeOutput of a real run

Export variants

Not in OSS

The site is published unchanged with every export, including the open-source one, so it also describes code that the open-source export removes. Such code is marked Not in OSS where it is described; the canonical list is Export variants.

CodeDescribed on
GET /api/listings/lastUpdatedOn and its cache namespaceNLP, featured, locations & lastUpdatedOn, Caching
GET /api/stats/neighborhoodsranking and its cachesContact, Stats & Tours, Caching
The communities table bodyExport variants
Per-deployment contact validator overridesConfiguration resolution
Deployment preset registrationsConfiguration resolution

Unverified boundaries

The source in this checkout cannot establish the following; pages that touch them label the claim.

  • Repliers. Search scoring and union ordering, the NLP model, the estimate model, similarity and history ordering, Messages delivery, quotas and rate limiting. Behaviour observed against the sample-data key on a given date is labelled with that date and may differ for other accounts.
  • Follow Up Boss. Redelivery of failed webhook callbacks, how it reads id[] parameters, whether its own updates fire webhooks, tag replacement semantics.
  • NATS server. Consumer defaults (acknowledgement policy and wait, maximum deliveries), redelivery limits, and client behaviour during a reconnect.
  • Redis. Eviction, failover, and how long a call waits during an outage beyond the observed 8 s.
  • Mapbox and Google Maps. Ranking and response content.
  • Signals. SIGINT and SIGTERM handling is read from the source; the probes ran on Windows, where a signal cannot be delivered to a Node process from outside.
  • Node version. Probes ran on Node 26.10.0, not on the 24.x line that package.json requires.
  • Deployments. Environments, presets, secrets, proxy and CDN chains, process counts and log handling of any real deployment are not inferred from this checkout.
  • The frontend. What the Next.js SSR and SSG renders send is described from what the backend accepts; the frontend’s code is not in this repository.

Verified against portal-backend 997ae3e, 2026-10-20.

Last updated on