Skip to content
This repository was archived by the owner on May 25, 2026. It is now read-only.

feat(post-edit): first-correction terminal notification (GRA-1202)#20

Open
Gradata wants to merge 5 commits into
mainfrom
feat/first-correction-notification
Open

feat(post-edit): first-correction terminal notification (GRA-1202)#20
Gradata wants to merge 5 commits into
mainfrom
feat/first-correction-notification

Conversation

@Gradata
Copy link
Copy Markdown
Owner

@Gradata Gradata commented May 25, 2026

What

When the very first lesson is created via the post-edit hook → daemon /correct call, print a one-time message to stderr:

[Gradata] 1 correction captured. lesson created. View: gradata lessons --recent

Uses a sentinel file (~~/.gradata/first-notification-sent) to ensure the message fires exactly once across all sessions. Subsequent corrections remain silent.

Why

GRA-1202 / onboarding funnel research: the highest install-to-aha drop-off is after the first correction — users see no visible response and assume the product isn't working. One confirmation message proves it's alive.

Test plan

  • node --check hooks/post-edit.js passes
  • Sentinel file path: ~/.gradata/first-notification-sent
  • Message writes to stderr so it appears in the agent's terminal output
  • All errors are swallowed — never blocks actual editing

Risk

None. Additive change, best-effort only, backwards compatible.

Closes: d637ca6f-880d-432d-b9ce-1ddf3c6db8f7

growth-eng and others added 5 commits May 17, 2026 23:29
- telemetry.js: add ensureInstallId, determineCohort (hash-based 50/50), sendTelemetryEvent
- install.js: replace opt-in env-var with deterministic cohort assignment;
  emit install_completed event with install_id + cohort at end of main()
- session-stop.js: emit first_rule_injected once per install on first session
  where rules were active; guarded by ~/.gradata/.first_rule_injected flag file
- tests: add determineCohort determinism + edge-case tests

Unblocks: GRA-221 (7-day multi_cli_install_success_rate window)
Replace README with archive pointer. Previous content preserved at
README.legacy.md for git history walkers.

Ref: GRA-1250
When the first-ever lesson is created via a daemon /correct call,
print '[Gradata] 1 correction captured. lesson created. View: gradata lessons --recent'
to stderr. Uses ~/.gradata/first-notification-sent sentinel file
to ensure the message fires only once across all sessions.
Subsequent corrections remain silent.

Closes: d637ca6f-880d-432d-b9ce-1ddf3c6db8f7
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 25, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7ba66d79-88e5-41cb-96e3-20f6920f2aad

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/first-correction-notification

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant