fix(aio): recognize AI observability aliases - #70764
Merged
Merged
Conversation
Generated-By: PostHog Code Task-Id: 0205db43-c0f8-46e1-880b-59b3f7a254b6
Contributor
|
Hey @pauldambra! 👋 It looks like your git author email on this PR isn't your
You can fix it for this repo with: git config user.email "you@posthog.com"Or set it globally with |
There was a problem hiding this comment.
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
How did you test this code?
uv run hogli ci:preflight --fixpassed for both changed files.ruff check products/posthog_ai/backend/services/system_prompt/prompt.py products/posthog_ai/backend/tests/test_system_prompt.pypassed.uv run pytest products/posthog_ai/backend/tests/test_system_prompt.py -qcould not complete because the local Postgres hostdbis 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
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-testsguidance. 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