Guides
Identity source-note audit — 2026-09-30
The follow-up fixes are deployed in v1.22.1. Remaining gaps against the original brief are tracked in FC-14–21; use the consolidated acceptance audit for current statuses. This page retains the original finding evidence. See current acceptance status.
The friend handouts are historical guidance, not the current implementation register. This audit compared their exact sections with the released v1.22.0 Identity implementation and current platform guides. It did not inspect production participant records or tenant configuration and does not establish legal compliance, scheduled backup execution or a restore drill. Only this audit file was written; sibling handouts were left unchanged.
Original acceptance document
The original provided Word file is Идентичность 2.0 — ТЗ приложение и бот v2.docx in the local Downloads folder; its actual heading identifies version 2.1, 2026-09-30. The supplied plain-text extraction /private/tmp/identity-brief-v2.txt was read for this follow-up. The original contains tenant-owned methodology and remains outside this repository; only requirement references are recorded here.
| Original section | Comparison with the released implementation |
|---|---|
| 2, participant journey steps 1–4; 3, bot messages 1–5 | Requires the intro sequence at /start and gate-open after acceptance. The known-user/invitation distinction and best-effort final send are implementation qualifications, not explicit original exceptions. |
| 3, legal agreement and acceptance recording | Requires separate health-data consent and version renewal when a document is replaced. The no-document legacy fallback and metadata-only PDF versioning are narrower than a fully configured Identity acceptance contract. |
| 4.1, baseline; 8, decisions 1–2 | Requires all questionnaires before other functionality opens, while allowing facilitator configuration changes. A UI gate alone does not enforce direct mutation calls; server enforcement findings are recorded in the core audit. The “once” promise requires a rule for adding questionnaires after completion. |
| 1, privacy principle; 4.3, daily diary; 5, final document | The original contains an unresolved private/shared diary question. Current accepted decision 8 explicitly permits shared entries and excludes private-to-self entries from facilitator/PDF. First-visit copy must match that decision; see the experience audit. |
| 4.2, dashboard; 4.4, weekly check-in; 5, facilitator | Data sections and charts exist. Existing tests prove representative rendering and access contracts, not every animation, long PDF or cross-role action. |
| 6, notifications | Requires participant-selected daily time, 24-hour/1-hour meeting links, immediate facilitator-response notification and immediate baseline-result notification. Outbox dispatch and quiet-hour deferral mean “immediate” is not an unconditional delivery-time guarantee; document the intended exception and expiry policy. |
| 7, Erikson reference appendix | Optional theory content “if needed”; this is not a missing mandatory screen. Owner-authored teaching content remains a configuration decision. |
| 1, methods; 8, owner decisions | Method descriptions are not a specification of complete Socratic chains. FC-CBT-001 remains a separate content/acceptance planning task. |
Sources and release evidence
../feelcouch-hub/docs/friend/identity-report.html, dated 2026-09-28: sections#now,#release,#check,#broken, and Part 2 covering recording, transcription and privacy.../feelcouch-hub/docs/friend/identity-claude-guide.md: “What exists now”, “How an update reaches production”, the five-minute checklist and incident guidance. Section names in the original are Russian.- Local
site/reports/identity-plan.html, dated 2026-09-30:#docs,#decisions,#path,#bot,#done,#waves,#you. This is an ignored local report, not versioned runtime source. - Current Identity guide, sections 2, 3, 4 and 5; facilitator guide, legal documents, baseline and final-report sections; participant guide, baseline, diary and final report.
- Project status: v1.22.0 published at 10:11:43 UTC; external
/api/versionconfirmed revision88dc204461a226c4bfa17481a249c8be83994c12. Finalcheck:fastpassed 341 tests without skips; UI checks passed 26 main plus 8 additional scenarios. This proves the release, not the completeness of facilitator-authored content.
Stale handout claims
| Source section | Finding | Reconciliation |
|---|---|---|
Plan #docs |
Says the Identity scenario page will appear after the next update. | The guide is included in released v1.22.0. Remove the future-tense notice when refreshing the handout. |
Plan #done, #waves |
Says changes await release, design is underway, and stages 1–3 are future work. | Waves 0–3 are released. Use the current Identity guide section 5 as the status source. |
Plan #waves, final paragraph |
Says every stage ships as a separate update. | The remaining changes were integrated in one v1.22.0 release. Preserve stage names as a feature map, not a promise of separate releases. |
Plan #bot, #you |
Says editable bot messages and baseline setup will become available after an update. | These controls exist in /f/bot and /f/baseline; the remaining step is facilitator configuration. |
Report #now and Claude guide “What exists now” |
Lists only weekly check-in, practices, personal space and basic facilitator tools. | Add daily mood, private diary, baseline, charts, legal documents and final PDF. Existing features remain available. |
Report #check and Claude guide update checklist |
Checks only the earlier weekly/practice/facilitator flow. | Add consent-version renewal, baseline gate, mood, private diary visibility, final-report publication/download and personal export/delete. Existing security and integration tests cover these contracts. |
Configuration-dependent behavior and mismatched promises
| Evidence | Actual behavior | Outstanding content or correction |
|---|---|---|
Plan #path; current guide section 2, steps 1–4; lib/telegram/onboarding.ts; app/api/telegram/webhook/route.ts, onboardingStart and command routing |
The four intro/about/features/legal messages run for a known user without current consent. Already-consented users receive only the gate-open message. A first-time invite token follows the invitation path; an unknown plain /start receives invitation instructions. |
Clarify that the five-message narrative spans registration and consent, rather than every first /start automatically producing all five messages. Test first-time invitation behavior separately before claiming this exact narrative for unknown users. |
Current guide section 2, step 4; app/actions/privacy.ts, acceptCurrentConsent |
Message 5 is sent after consent on a best-effort basis; a Telegram failure is swallowed and does not block the in-app redirect. | Do not promise guaranteed delivery of the gate-open message. A reliable notification-outbox version would be separate work. |
Plan #decisions, #path, #you; lib/legal-documents.ts, getLegalState, consentFormComplete, computeDocumentVersion |
With no configured documents the legacy consent version remains active and the extra health-data checkbox is not required. Any configured document enables health consent. The version hashes kind/title/summary/URL; it does not fetch or hash the remote PDF bytes. | Facilitator must configure all three approved document entries. Replacing a PDF at the same URL without changing these fields will not renew consent; use versioned URLs or update metadata. Do not treat the presence of one document as proof that the complete legal package is ready. |
Plan #you; current guide section 4, decisions 1–2; lib/baseline.ts, isBaselineLocked, validateBaselineLinks |
The baseline gate only requires active questionnaire IDs. With no active questionnaires it is open. Indicator values are entered by the facilitator. | Populate and activate the intended questionnaires and indicators; code availability is not evidence they are configured on production. |
Plan #path; current guide section 2, step 9; lib/bot-settings.ts, DEFAULT_BOT_SETTINGS; lib/reminders.ts, dueReminders and enqueueDueReminders |
Session reminders default to 24 hours plus 1 hour, but the tenant-wide reminder switch defaults to false. Daily check-in reminders use participant preferences and active membership; these are distinct controls. | Confirm facilitator reminder settings, meeting times and join links. Do not infer live delivery from defaults or from the successful release. |
Plan #decisions, reminder timing; lib/reminders.ts, enqueueCheckinReminders; lib/notification-policy.ts |
The participant timezone falls back to the group timezone and then Europe/Moscow. Quiet hours can defer the chosen reminder time. | Explain that the selected time is evaluated in the configured timezone and delivery may wait until quiet hours end. |
Plan #decisions, #path; lib/queries/diary.ts, facilitatorVisibleEntries; lib/final-report.ts; tests/security/diary.test.ts, final-report.test.ts |
Private diary entries are excluded from facilitator queries and final PDFs; final report access depends on publication and role scope. | No missing implementation was found for this contract. The owner’s personal export appropriately includes their own private diary; it is a different scope from the facilitator PDF. |
Current guide section 3; lib/telegram/onboarding.ts; i18n/catalogs/v1/ru.json, botOnboarding |
Tenant bot overrides are stored in the tenant database, but fallback onboarding copy identifies the specific Identity author/program and uses the Russian catalog directly. | Before another tenant adopts this shared runtime, require tenant-specific overrides or generalize the fallback. Do not claim locale-aware onboarding just because an English catalog exists. |
Operational guidance: scope and limits
- Report
#release,#brokenand Claude guide release/incident sections give estimates of 10–15 minutes to deploy and about one minute to roll back. These are estimates, not measured guarantees for every release. The actual deployment verifies health and can restore the prior application image; see../feelcouch-hub/docs/runbook.md, application rollout and automatic deployment sections. - Their statement that rollback loses no participant data must be scoped to application rollback with a compatible expanded schema. It is not a database recovery guarantee. Rollout contract and project status retain the separate archive compatibility/restore-drill gates.
- Report
#nowand Claude guide “What exists now” say a backup is made daily. A pre-release backup was verified in this session; this audit did not verify the daily scheduler, retention history or recoverability. Keep daily-backup operation and restore evidence distinct. - Report Part 2 proposes audio retention of seven days, raw transcript retention of thirty days and notes until program end. The runtime operational purge in
lib/privacy/retention.tscovers webhook updates, delivered notifications and audit rows; it does not implement audio/transcript storage or these retention schedules. This is an external manual workflow, as the handout itself acknowledges. - Part 2’s consent draft, product prices, transcription claims and legal statements are historical supplied guidance. They were not independently validated in this implementation audit and must not be presented as platform capabilities or current legal advice.
Remaining work
- Refresh the ignored plan and friend-facing handouts with the released status and configuration-dependent onboarding behavior, using the current guides as the source. This audit did not modify those documents.
- Confirm actual tenant configuration: approved legal PDFs and summaries, active questionnaires/indicators, bot copy, reminder switch, meeting times/links, and participant timezone preferences. No production content was read or fabricated.
- Reconcile the strict five-message first-invitation narrative with current routing if that exact experience remains an acceptance requirement; similarly decide whether gate-open notification must use the durable outbox.
- Keep FC-CBT-001 open as P2. Its specification explicitly defers implementation until re-planning; existing workbooks and experiments are reusable primitives, not evidence that the authored Socratic chains already exist.
- Keep restored-archive compatibility, RPO/RTO drill, capacity measurement, independent recovery access, tenant provisioning and payment/legal readiness separate from the completed Identity release. The issue register and task board track these limits.