Skip to content

docs(memos): the participant model, consent and the deletion matrix - #1546

Merged
hrustalq merged 3 commits into
devfrom
docs/1411-call-participants-adr
Dec 3, 2026
Merged

hrustalq merged 3 commits into
devfrom
docs/1411-call-participants-adr

Conversation

@hrustalq

@hrustalq hrustalq commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Closes #1411
Refs #1401
Refs #1400

Completes the phase-0 record for call participants. #1412 (PR #1545) fixed the speaker-embedding model and the
voice-profile vector store with measured numbers; this PR writes the half around it: the evidence ladder, the
participant shape, machine matches beside the uploader's choices, the profile row and its consent, separate tracks,
the deletion matrix, the threshold knobs as hypotheses, and the phase-1 handoff.

The file already existed — PR #1545 created it — so this extends it. Its measured half (## Model, ## Vector store,
## Probe) is untouched byte for byte; the only edit inside the old text is the issue line gaining #1411. A new
## Appendix heading wraps the existing ### Probe so it stays the last appendix after the new sections; its content
is unchanged.

Why the shape is what it is

  • The ladder is ordered by cost and certainty, not by convenience: a separate track is exact, a provider roster
    is exact but only for attendance, a voice embedding is probabilistic, and an LLM reading a self-introduction is a
    guess. Only the first two may produce a metadata match, only a voice profile may produce auto, and the context
    guess may only fill suggestedUserId.
  • memos.speakers is never written by a machine. Machine answers live in speaker_matches, so no migration and no
    re-run can rewrite a person's confirmed choice; resolveSpeakers stays pure and reads the matches as one more
    input.
  • The profile row carries no vector. The embedding is the VoiceProfile vertex; PG is the consent record and the
    ACL, read before any suggestion. Deletion is vector-first, with the statement feat(memos): call participants 0.2 — embedding provider and vector store evaluation #1412 measured (DELETE FROM …, never
    DELETE VERTEX).
  • Consent is a versioned, per-person act with three gates: env ceiling, workspace policy, then the person. An admin
    can enable or disable the workspace, never enrol or read another person's signature.
  • The threshold is a release gate, not a number here. Both knobs default to 1.0 (auto off); phase 5 sets them
    from a corpus and the ≤ 1% false-identification budget, or auto never ships.

Divergences from the issues

  1. The file is not new. feat(memos): call participants 0.1 — evidence, consent and deletion ADR #1411's body says docs/features/89-call-participants.md (new) because it was written
    before 0.2 ran. PR docs(memos): the speaker-embedding model and the voice-profile vector store #1545 created it and its measured half is final; this PR extends it and re-measures nothing.
  2. voice_profiles.embedding is not a column. feat(memos): call participants phase 2 — opt-in voice enrollment and profiles #1403's row list names one; the merged record puts the vector in the
    VoiceProfile ArcadeDB vertex (feat(memos): call participants 0.2 — embedding provider and vector store evaluation #1412 § Vector store). The row carries model and dimension, which is what makes
    a stale pair detectable.
  3. NoteParticipant is widened, not replaced. It is { name: string } today (packages/contracts/src/notes/ index.ts:237); the doc gives it the same optional fields as MemoParticipant. The widening is additive and needs
    no migration, and an old row reads as one external person.
  4. The precedence gains metadata. feat(memos): call participants phase 3 — match diarized voices to enrolled members #1404's line is confirmed > remembered > auto > suggested; the doc states
    confirmed > remembered > metadata > auto > suggested, because the ladder puts a track and a named transcript above
    voice. Phase 3 implements the full order.
  5. feat(memos): call participants 1.4 — named transcript mapping #1416 calls the field source; the settled shape calls it evidence. The doc uses evidence: 'track' | 'metadata' | 'voice' throughout, per feat(memos): call participants phase 3 — match diarized voices to enrolled members #1404's shape, so a metadata match and a track match are the same
    field with different values.
  6. ## Appendix is a structural heading, added so ### Probe remains the last appendix after the new sections.
    Its text is unchanged.

Acceptance — #1401

criterion status where
the chosen evidence ladder, storage and consent model, with rejected options and reasons met § The rule, § Evidence ladder, § Voice profiles, § Consent, § Rejected options
schema and route sketches are in the doc; no migration is written met § Participants (wire type), § Matches (SpeakerMatch), § Voice profiles (Prisma sketch), § Separate tracks (manifest), § Operations (route sketch); the PR's diff is one .md
the deletion matrix covers user, workspace, revoke, memo/note, audio and guest met § Deletion matrix — the six rows, plus leaving-a-workspace
initial thresholds and the evaluation budget are stated as hypotheses, not facts met § Thresholds — 1.0 / 1.0 (auto off), ≤ 1% false-identification budget, no cosine decided
a reviewer signs off and phase 1 can start without reopening the model met § How phase 1 starts (1.1–1.4 → #1413–#1416); § Open questions holds only the VoxCeleb ruling, anti-spoofing and an inactivity window

#1411's acceptance is this set without the thresholds row: ladder/storage/consent named with rejected options (met,
same sections), schema and route sketches with no migration (met), six deletion cases (met), reviewer sign-off and
phase 1 unblocked (met, § How phase 1 starts).

Review

Independent review of the committed range against #1411's and #1401's acceptance, #1400's § Decisions assumed and the
merged #1412 text, in fresh contexts before this PR existed. The doc is sliced by section, each slice one fresh
reviewer instructed to read only its slice; an interrupted child is a block, never a pass.

Verification

  • make verify — exit 0 (350 API test files / 5357 tests, 105 web files / 776 tests; turbo replayed the cached tasks,
    since docs are not an input to lint, typecheck or test).
  • git diff --stat origin/dev...HEAD — docs/features/89-call-participants.md only, 386 insertions, 1 deletion.
  • git show origin/dev:docs/features/89-call-participants.md | grep -c spkrec-ecapa-voxceleb — 3, unchanged.
  • No changelog entry: docs-only, precedent docs(architecture): infrastructure requirements for scaffold and serve #1382/docs(mcp): verify Kimi Code 2.8.0 MCP tools #1387. No migration, no code, no CLAUDE.md or docs/README.md row
    (phase 5's docs task owns those).

@hrustalq
hrustalq merged commit 48e3f90 into dev Dec 3, 2026
2 checks passed
@hrustalq
hrustalq deleted the docs/1411-call-participants-adr branch December 3, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant