Skip to content

Restore plugin-audit's README "See Also" link to runtime-services/audit-service, dropped in PR #9531 because the page was wrong #9589

Description

@os-steve

Blocked-by: #9534

Found while implementing #9534. Reported rather than fixed: packages/plugins/plugin-audit/README.md is #9517's file and outside that card's pinned surface.

Background

#9517 rewrote plugin-audit's published README. Its old "See Also" section linked content/docs/kernel/runtime-services/audit-service.mdx as the reference for the audit service. While checking whether that link was safe to keep, the author measured the page's claims and found them wrong — it documented record() / 'set' | 'reset' (the settings sink) rather than the slot's real recordAuthEvent() / 'login' | 'logout'. PR #9531 therefore dropped the link rather than propagate a claim measured to be wrong, and filed the page's defect as #9534.

What to do once #9534 lands

PR #9587 rewrites that page around the real slot: recordAuthEvent(event), action: 'login' | 'logout', canonical source packages/plugins/plugin-audit/src/auth-event-audit.ts. The README's own "The audit service slot" section (added by #9531) and the rewritten page now describe the same shape in the same terms, so the reason the link was dropped no longer holds.

⇒ Consider restoring the "See Also" pointer to /docs/kernel/runtime-services/audit-service.

Why it is not automatic

Two things deserve a decision rather than a reflex:

  1. check:published-readme-symbols (added in ci: a published README's symbol claims are checked against the package's built exports #9546) now checks a published README's symbol claims against the package's built exports. Whether it has anything to say about an outbound docs-site link should be confirmed before adding one.
  2. The README section docs(plugin-audit): the published README stops documenting an API, a row shape and an action vocabulary that do not exist (#9517) #9531 wrote is self-contained — it already states the full surface. The link is worth restoring only if the page adds something the README deliberately does not carry (the error posture, the organizationId visibility note, the settings-sink disambiguation). That is a judgment call for whoever owns the published README's scope, not a mechanical revert.

⚠️ Small scope. Blocked until #9534 is merged — restoring the link before that would re-point readers at the page in its wrong state.

Refs: #9517 · PR #9531 · #9534 · PR #9587

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions