Skip to content

chore(personhog): fix stale mock path in router AGENTS.md - #91369

Draft
posthog[bot] wants to merge 1 commit into
masterfrom
posthog-self-driving/chorepersonhog-router-drop-stale-229cf2
Draft

chore(personhog): fix stale mock path in router AGENTS.md#91369
posthog[bot] wants to merge 1 commit into
masterfrom
posthog-self-driving/chorepersonhog-router-drop-stale-229cf2

Conversation

@posthog

@posthog posthog Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Problem

  • An agent reading rust/personhog-router/AGENTS.md for test conventions was sent to src/service/tests/mocks.rs, a path removed when the typed proxy was deleted.
  • The crate has no src/service/ directory and no mock traits (zero mockall references), so the line pointed the file's only audience at a directory it could try to recreate.

Changes

  • Replace the stale mock-traits line with an accurate note: shared integration-test helpers live in tests/common/mod.rs and start real in-process gRPC test servers (TestReplicaService, TestLeaderService), not mock traits.
  • CLAUDE.md is a symlink to AGENTS.md, so the fix reaches both.

How did you test this code?

  • Docs-only change. Verified against the tree: src/service/ is absent, grep -rn mockall src tests Cargo.toml returns nothing, and tests/common/mod.rs holds the two in-process gRPC test services now named in the file.

Automatic notifications

  • Publish to changelog?

Docs update

None.

🤖 Agent context

Autonomy: Fully autonomous

Authored by the PostHog self-driving agent from an inbox report. The change is a single-line doc fix in rust/personhog-router/AGENTS.md; no runtime code is touched. The replacement wording was checked against tests/common/mod.rs so it describes the real helpers rather than repeating the deleted mock-traits claim on a new path.


Created with PostHog Desktop from this inbox report, addressing #91368.

The router AGENTS.md pointed at `src/service/tests/mocks.rs`, a path
removed when the typed proxy went away. The crate now has no
`src/service/` directory and no mock traits. Replace the line with an
accurate note about the shared integration-test helpers in
`tests/common/mod.rs`, which start real in-process gRPC test servers.

Generated-By: PostHog Desktop
Task-Id: 935255bb-2a39-40b6-9dae-9a10780492be
@trunk-io

trunk-io Bot commented Aug 30, 2026

Copy link
Copy Markdown

Merging to master in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@posthog

posthog Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor Author

🦔 PostHog Review reviewed this pull request

Nothing worth raising this time, so here's a calming picture instead:

Someone relaxing in a sunny garden

@posthog posthog Bot added the skip-agent-review Save $$$, skip auto agent reviews (Greptile) — use for trivial or chore PRs label Aug 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🤖 CI report

Trunk lane — non-backend lane

This PR is assigned to the non-backend lane. It does not run backend Python tests and may merge in parallel with PRs in other lanes.

@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.

Single-line documentation fix correcting a stale file path reference in a markdown file; no runtime code, no risky territory, content matches description.

Gate mechanics and policy version
Gate Result
prerequisites all clear
deny-list no deny categories matched
size 0L, 0F substantive, 3L/1F incl. docs/generated/snapshots — within ceiling
tier T0 auto-approve: T0-deterministic (3L, 1F, single-area, chore)
stamphog 2.0.0b4 .stamphog/policy.yml @ 61861e5 · reviewed head 61861e5

@trunk-io

trunk-io Bot commented Aug 30, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

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

Labels

skip-agent-review Save $$$, skip auto agent reviews (Greptile) — use for trivial or chore PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants