TAS Portal

← TAS Portal · Engineering handoff · CCC FAQ

Snoraire · Updated 2 November 2026

Engineering FAQ

Using this portal

Is the engineering handoff part of the TAS Portal?

Yes. Recording, analysis and results saving is a page on this portal. Home and Documents link to it. It includes two sequence diagrams, code references, failure paths, existing acceptance gates and open decisions.

Can engineers treat the handoff as a finished implementation specification?

Use it to review and plan the work. It distinguishes inspected source patterns, current product direction and proposed contracts. It does not establish that the complete flow is implemented or release-ready. Resolve the listed payload, quality, score and policy decisions before implementing the affected behaviour.

Which document takes precedence when sources differ?

Read the latest dated updates in the PRD, alongside the account/results API draft and recorded decisions. The FAQ summarises these references and adds no requirements. Raise a conflict with product and engineering rather than choosing a historical proposal as the current rule.

Why do the technical diagrams run downward?

Participants are arranged horizontally; numbered messages show time moving downward. This makes calls, responses and failure branches easier to follow. The simple left-to-right product overview shows the stages, while the technical sequence explains the interactions.

Recording and results

Does Snoraire upload the consumer recording for analysis?

The intended consumer flow records and analyses audio on the phone. Staging and production must not store raw recordings, playback clips or raw waveform data on the server. Research collection has a separate build and contract. The earlier illustrative “Upload recording” step is superseded; see the engineering handoff.

How long must a recording be?

The 28 October product direction is 2–8 recorded hours inclusive. Below two hours there is no eligible score, and capture must stop at eight hours. Duration alone does not make a recording usable: audio-quality rules remain a separate requirement. These are recording hours, not measured sleep. Short-session retention and recovery behaviour still need agreement.

Which component produces the analysis?

In the inspected local source, the durable pipeline’s analysis.finalize stage is the sole production writer. Screens use requestNightAnalysis(sessionId) to read existing analysis or ask the pipeline for a pass. Engineers should preserve that ownership rather than adding a screen-level fallback writer. The handoff pins the source revision; this is not a live-build assertion.

What should users see when analysis is not ready?

Keep analyzing, ready and unavailable distinct. Pending work should remain in a processing state; exhausted retries should show an unavailable reason. Analysis readiness is separate from score eligibility. Do not show an eligible score for a short or unusable recording. Final quality rules and recovery wording still need agreement.

What happens if recording is interrupted or the app restarts?

The intended flow inspects saved capture facts and available audio, then reports the saved duration and recovery outcome honestly. Resume is shown only when supported. Exact interrupted-session and short-session policies remain open; the handoff does not guarantee recovery on every device. Capture ownership must stay outside screen lifecycles.

Are the score formula and clinical thresholds approved?

The current material contains a recommended score approach and provisional parameters. Exact parameters, quality exclusions and care wording still need agreement and acceptance evidence. Do not treat the provisional cap as approved or interpret technical beta feedback as clinical validation. A subjective morning rating remains separate from the acoustic score.

Accounts, saving and care

Are results saved to the backend today?

The handoff does not verify consumer backend saving. Its second diagram is a proposed account/results contract. The inspected product pipeline runs local stages; existing research-upload code is not proof of consumer results saving. Engineers need to review the exact auth/routes and agree the payload before enabling the proposed flow.

Can the report be available before server saving succeeds?

Yes, in the intended contract local report availability and server-save status are separate. Show pending or failed when appropriate and show Saved only after server confirmation. Retries use the same owner, operation key and payload; conflicts must not silently overwrite another revision. See the API draft for the proposed rules.

Are logout, audio pruning and deletion the same operation?

No. Logout ends the session without deleting the account. Automatic media pruning is separate from manual Delete all recordings. The current deletion proposal removes recordings, reports and related night data while retaining the account; exact scope, retention and provider exceptions still require approval. Queued writes must not recreate deleted data or transfer to another user after an account change.

Does a successful callback request mean the care team has responded?

No. Request submission, destination receipt and human follow-up are separate outcomes. The intended care route uses explicit SG/MY selection, consent and approved fields. Country handling, payload, response promise and fallback still need agreement or evidence. Booking/payment is outside this handoff.

What should engineers do first?

Pin the app/API candidate and environments, compare the inspected patterns with that candidate, and identify the gaps. Resolve the open decisions before enabling affected contracts, then demonstrate the listed capture, analysis, ownership, retry, deletion and device acceptance gates. The handoff records the existing tracking references; this FAQ assigns no new owner or deadline.