Onboarding funnel events cannot be correlated into a single run
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
Hướng nghiên cứu
Bắt đầu từ đường dẫn vào CLI và quá trình khởi động worker được mô tả trong issue, sau đó theo dõi cách envelope sự kiện telemetry hiện có được tạo trong từng thread. Được xem là hoàn tất khi mọi sự kiện onboarding và gateway-auth được liệt kê trong một lần khởi chạy đều mang cùng một mã định danh không được persist giữa cả hai instance của module telemetry; hãy xác minh luồng telemetry hiện có và, nếu nằm trong phạm vi, race condition khi tạo machine-id.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Onboarding telemetry events cannot be correlated into a single user's funnel, because the events that make up one first run are emitted from two different threads at times when no common identifier exists.
altimate-code tui runs the TUI on the process main thread and the HTTP server in a worker. Each loads its own instance of the telemetry module. The first-run UI events (onboarding_started, model_picker_shown, provider_selected, the Big Pickle pair, onboarding_completed, the scan-gate pair) and the gateway auth events all fire before any chat session exists, so they stamp an empty session_id and land under the synthetic startup session. The activation events (activation_menu_shown, activation_job_selected, first_job_completed, first_prompt_sent) fire later from a real session and carry its real id.
The result: the top of the funnel and the bottom of the funnel share no key.
There is a fallback identifier — machine_id, a random UUID at ~/.altimate/machine-id — but it is unreliable for exactly this case. On a genuinely new install both threads can observe the file missing and independently create it, so a single first run can emit two different machine_id values. (That race is worth fixing regardless, and is cheap: create the file exclusively and re-read on collision.)
Impact
Countable today: impressions, choices, gateway auth outcomes, scan/skip splits, sample setup invocations — anything that is a simple tally of one event type.
Not answerable today:
- End-to-end conversion. "How many people who saw the picker ended up connected?" requires linking a
model_picker_shownto anonboarding_completed. - Per-attempt drop-off.
onboarding_abandonedcarries alast_stage, but it cannot be tied to the events that led there. - Retry behaviour. A user who fails gateway auth and succeeds on the second attempt is indistinguishable from two users.
time_to_connect_msattribution when a user retries.
In other words: the events are individually correct, but the funnel is not reconstructable, which is the main thing the taxonomy exists for.
Proposal
Generate one random id per process launch and stamp it on every onboarding event, from both threads.
- Generated once in the CLI entry path, before either thread emits.
- Passed to the worker at startup so both telemetry module instances use the same value.
- Not persisted, not derived from anything about the machine or user, and not reused across launches. It carries no identifying information — it exists only to group events that belong to the same run.
A launch is the right grain here: onboarding state already resets on every process start by design, so "one launch" and "one onboarding attempt" are the same thing in practice.
Alternatives considered
- Reuse
machine_id. Groups a machine, not an attempt, so retries and repeat launches collapse together. Also affected by the creation race above. - Reuse
session_id. Does not exist for most of the funnel, which is the original problem. - Fix attribution after the fact by joining on timestamp proximity. Fragile, and impossible to do correctly for concurrent instances on the same machine.
Notes
This does not require a new sink, endpoint, or storage. It is one value threaded through the existing event envelope.
- Ngôn ngữ chính
- TypeScript
- Star
- 813
- Fork
- 134
- Merge trung bình
- 2 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 67
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AltimateAI/altimate-code
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
AltimateAI/altimate-code#1359 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
AltimateAI/altimate-code#1323 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
AltimateAI/altimate-code#1288 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
AltimateAI/altimate-code#1285 ·
-
privacy: Altimate Base consent dialog no longer discloses persistent per-installation identifier Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
AltimateAI/altimate-code#1284 ·
Tất cả issue của AltimateAI/altimate-code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
receptron/mulmoterminal#2264 ·
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
components-web-app/docs#96 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
simonsobs/tileviewer#114 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100