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
| Item | Value |
|---|---|
| Backend source verified | portal-backend 997ae3e, 20 October 2026 |
| Docs site | packages/backend-docs of the portal monorepo, written against portal-backend 997ae3e (the row above) |
| Node for executed probes | 26.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_modules | as 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 page | Meaning |
|---|---|
| none | Read 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) |
| synthetic | A 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, unverified | Not observed; a link to the provider’s public documentation is given where one exists |
Evidence coverage
| Topic | Source / symbol | Test or probe | Verified behaviour | Unverified boundary |
|---|---|---|---|---|
| Module catalogue | src/routes/** (every router.get, post, put, patch, del and prefix), src/routes/index.ts | A route-inventory check compares the catalogue with the routers: 83 routes, 83 catalogued | Every mounted operation with its middleware, validator, service and store | The @openapi annotations are not a source for this site |
| Request lifecycle, error variants | src/app.ts (error middleware), src/lib/middleware/container.ts, src/providers/index.ts | koa-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 registration | What a proxy or CDN in front of the process does to a request |
| Configuration resolution | src/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 outcomes | The environment, presets and secrets of any real deployment |
| Listings search | ListingsService.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 key | The outbound request, forced filters, field additions, status constraint, guest and user responses | How Repliers ranks a queries[] union; the upstream parameter-conflict rule (taken from a code comment) |
| Detail, similar & history | ListingsService.single, similar, history, servable, withPermissions | test/routes/listings.test.ts, test/services/listings/history.test.ts; W2 executed 2026-10-20 | Availability refusals, history eligibility and synthesized permissions | Repliers’ similarity model and history ordering |
| Scrubbing, Restricted listings | src/services/scrubber/listings.ts (ListingsScrubber, scrubbed), src/services/scrubber/base.ts, excludeRestrictedListings, dropRestricted | test/services/scrubber/*.test.ts, test/services/listings/restrictedListings.test.ts, listingHelpers.test.ts; W1 and W2 responses compared field by field | Masking, dropping, board gate, nested coverage, exclusion placement | boardId on cluster listings (observed 2026-07-20, not re-run); listings with restrictive permissions in a live feed |
| MLS-number prefix | src/services/listings/mlsNumberPrefix.ts | test/services/listings/mlsNumberPrefix.test.ts | Each codec function, idempotence, the widening guards | Repliers behaviour behind the widened search |
| Autosuggest, Geocoding | AutosuggestService.search (src/services/autosuggest.ts), src/services/mapbox.ts, src/services/google.ts | test/services/autosuggest.test.ts; W3 synthetic, similarity scores computed with the installed jaro-winkler | Branches, joins, merge order, branch failure handling | Mapbox and Google ranking and response content |
| Client IP forwarding | XFFProvider (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 synthetic | Token matching, key and throttle choice, header forwarding | What a frontend build actually sends; the chain of any deployment; Repliers’ quota |
| Authentication | AuthService (src/services/auth.ts), src/routes/auth.ts, koa-jwt 4.0.4, openid-client 6.8.7 | test/routes/auth.test.ts, test/services/auth.test.ts, test/routes/oauth.test.ts, run 2026-10-20 with mocked upstreams; W9 synthetic | OTP issue and cooldown, exchange, JWT claims, revocation lookup, role resolution | No auth endpoint called against a live upstream (they send messages or create clients) |
| Caching | cached, sendCached (src/lib/decorators/cached.ts), src/providers/keyv.*.ts | test/lib/decorators/cached.test.ts, test/routes/featured.test.ts | Namespaces, keys, TTLs, invalidation, Cache-Control | Redis eviction and failover |
| Persistence, Data ownership | src/migrations/*, src/repository/*, src/services/repliers/{clients,agents,favorites,searches,estimate}.ts | Read; no repository test exists | Seven tables, one foreign key, Keyv versus SQL, readers and writers | Schema state of any real database; whether Repliers enforces ownership on its side |
| Events & Messaging | EventsCollectionService (src/services/eventsCollection/eventsCollection.ts), src/services/eventsCollection/selectors/ | test/services/eventsCollection/eventsCollection.test.ts and 17 selector tests; W7 synthetic | Selector payloads, tags, awaited versus detached reports | How Follow Up Boss stores events, tags and notes |
| Follow Up Boss, Webhooks | BossWebhooksService (src/services/boss/webhook.ts), SyncService (src/services/sync.ts), src/streams/*, src/worker.ts | Read; no test covers the webhook route, the workers, SyncService or the NATS provider; W8 synthetic | Handler steps before the response, publish, worker dispatch, ack / nak / term | FUB redelivery of a failed callback; the NATS server’s consumer defaults |
| Estimates | EstimateService (src/services/estimate.ts), AgentService (src/services/agent.ts) | test/services/estimate/estimate.test.ts, estimate selector tests; W6 synthetic | Property-details enrichment, key switching, owner adjustment, ownership checks, email flags | The Repliers estimate model and the emails Repliers sends |
| User & Favorites, Saved searches, Agent & Admin | src/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 synthetic | PATCH handling of omitted, empty and null values; ownership guards | Repliers’ handling of PATCH bodies, matching and saved-search notifications |
| Failure & degradation | src/app.ts, RepliersBase (src/services/repliers/base.ts), src/providers/keyv.otp.ts | src/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 calls | How long a Keyv call waits beyond 8 s; behaviour after a working Redis or NATS connection drops |
| Process lifecycle | src/index.ts, src/worker.ts, src/providers/nats.ts | Each entry module run with placeholder values (executed 2026-10-20, Node 26.10.0) | Startup order, the failures that stop each process, dummy mode | Signals were not sent (the probes ran on Windows); webhook installation against FUB |
| Troubleshooting | middleware.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 id | Log routing and retention of any deployment |
ContactService (src/services/contact.ts), SmtpService (src/services/smtp.ts), RepliersMessages (src/services/repliers/messages.ts) | Read; no message was sent | Which path each message takes | Delivery by Repliers or the SMTP provider | |
| First requests, Tutorials | As cited on each page | Synthetic; the tutorial code is illustrative and was not compiled | The steps match the source they cite | Output of a real run |
Export variants
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.
| Code | Described on |
|---|---|
GET /api/listings/lastUpdatedOn and its cache namespace | NLP, featured, locations & lastUpdatedOn, Caching |
GET /api/stats/neighborhoodsranking and its caches | Contact, Stats & Tours, Caching |
| The communities table body | Export variants |
| Per-deployment contact validator overrides | Configuration resolution |
| Deployment preset registrations | Configuration 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.
SIGINTandSIGTERMhandling 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.jsonrequires. - 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.