Skip to content

fix(aio): recognize AI observability aliases - #70764

Merged
pauldambra merged 1 commit into
masterfrom
posthog-code/recognize-aio-aliases
Jul 14, 2026
Merged

fix(aio): recognize AI observability aliases#70764
pauldambra merged 1 commit into
masterfrom
posthog-code/recognize-aio-aliases

Conversation

@pauldambra

Copy link
Copy Markdown
Member

Problem

PostHog AI can treat the common shorthand "AIO" as an unknown tool instead of recognizing the AI observability product.

Why: People use AIO, LLM analytics, and LLMA interchangeably. The agent should resolve those names before asking for clarification.

Changes

  • Add AIO, LLM analytics, and LLMA as aliases in the PostHog product glossary injected into the agent system prompt.
  • Extend the existing prompt test to protect the alias mapping.

How did you test this code?

  • uv run hogli ci:preflight --fix passed for both changed files.
  • ruff check products/posthog_ai/backend/services/system_prompt/prompt.py products/posthog_ai/backend/tests/test_system_prompt.py passed.
  • Directly imported the system prompt and verified the alias text is present.
  • uv run pytest products/posthog_ai/backend/tests/test_system_prompt.py -q could not complete because the local Postgres host db is unavailable in this workspace. The added assertion guards against removing the alias mapping.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Docs update

No docs update. This changes internal agent terminology resolution rather than a documented product workflow.

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

Codex CLI made this focused change after tracing discovery from the skill index to the PostHog AI system prompt. It used the /writing-skills, /working-with-skills, and /writing-tests guidance. The product glossary was chosen over adding a broad umbrella skill because the failure is terminology resolution, not a missing workflow.


Created with PostHog Code

Generated-By: PostHog Code
Task-Id: 0205db43-c0f8-46e1-880b-59b3f7a254b6
@pauldambra pauldambra self-assigned this Jul 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hey @pauldambra! 👋

It looks like your git author email on this PR isn't your @posthog.com address (paul.dambra@gmail.com). Since you're on the PostHog team, it's worth pointing your local git author email at your @posthog.com address. Why it matters:

  • Consistent work identity in git history — internal tooling that attributes commits to team members keys off your @posthog.com address.
  • Keeps team contributions easy to tell apart from external community ones when scanning history.

You can fix it for this repo with:

git config user.email "you@posthog.com"

Or set it globally with git config --global user.email "you@posthog.com". No need to redo this PR — just a nudge for next time. 🙂

@trunk-io

trunk-io Bot commented Jul 14, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@pauldambra
pauldambra marked this pull request as ready for review July 14, 2026 15:59
@pauldambra pauldambra added the stamphog Request AI approval (no full review) label Jul 14, 2026
@pr-assigner-resolver-posthog
pr-assigner-resolver-posthog Bot requested a review from a team July 14, 2026 15:59

@stamphog stamphog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trivial one-line copy addition to a system-prompt string plus a matching test assertion; no risky territory, no behavior change beyond terminology recognition.

  • 👍 on the PR from chatgpt-codex-connector[bot], hex-security-app[bot].
Gate mechanics and policy version
Gate Result
prerequisites all clear
deny-list no deny categories matched
size 2L, 1F substantive, 3L/2F incl. docs/generated/snapshots — within ceiling
tier T1-agent / T1a-trivial (3L, 2F, single-area, fix)
stamphog 2.0.0b3 .stamphog/policy.yml @ d81afd0 · reviewed head 5b0161d

@pauldambra
pauldambra merged commit 5569d9a into master Jul 14, 2026
352 of 385 checks passed
@pauldambra
pauldambra deleted the posthog-code/recognize-aio-aliases branch July 14, 2026 18:29
@deployment-status-posthog

deployment-status-posthog Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-07-14 19:03 UTC Run
prod-us ✅ Deployed 2026-07-14 19:24 UTC Run
prod-eu ✅ Deployed 2026-07-14 20:00 UTC Run

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

Labels

stamphog Request AI approval (no full review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant