Skip to content
Back to skills

Actor Privacy

ASecurity

Who a server-side product event is about (observe.WithActor, opaque ids only), the no-personal-data rule for properties and its three enforcement points (observe.LooksLikePII, the ingest gateway's scrub, forgeconv-product-event-pii), and opt-out with observe.SetConsentSource (fails closed).

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
ai-agentsgo

Works with

  • cli

Security analysis

A100/100

Scanned November 14, 2026

npx -y skills add reliant-labs/forge --skill actor-privacy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Actor Privacy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Actor Privacy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reliant-labs-actor-privacy/badge)](https://www.skillsdirectory.com/skills/reliant-labs-actor-privacy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: observability/product-events/actor-privacy
description: Who a server-side product event is about (observe.WithActor, opaque ids only), the no-personal-data rule for properties and its three enforcement points (observe.LooksLikePII, the ingest gateway's scrub, forgeconv-product-event-pii), and opt-out with observe.SetConsentSource (fails closed).
---

# Product events: the actor, personal data and consent

## Who the event is about: `observe.WithActor`

Code with no request claims (a webhook, a reaper, a queue consumer) names the
actor itself:

```go
ctx = observe.WithActor(ctx, observe.Actor{OrgID: d.OrgID, UserID: d.CreatedBy, AnonymousID: installID})
observe.Track(ctx, "deploy_succeeded", slog.String("mode", "account"), slog.Bool("first_for_org", first))
```

A non-empty `Actor` field wins over the claims; an empty one falls back to
them. Ids must be opaque (an auth subject, an org id, a random install id):
an id with an `@`, an IP address or a JWT is dropped (the event is kept),
with one warning per process.

## No personal data in properties

Properties are tags: enums, booleans, counts, buckets. Never free text, emails,
names, hostnames, paths, URLs or error text. Enforced three ways:

- `observe.Track` (and the CLI emitter) drop a property whose value looks like
  an email, an IP, a JWT, a bearer token, a provider key, URL userinfo or a
  long opaque run (`observe.LooksLikePII`), with one warning per key that names
  the key and never the value.
- On Reliant hosting the ingest gateway scrubs `product.*` attributes with the
  same patterns.
- `forge lint` (`forgeconv-product-event-pii`) flags a property key with an
  `email`, `name`, `ip`, `url`, `path` or `token` part.

## Consent: `observe.SetConsentSource`

An app whose users can opt out of product analytics registers its lookup once
at startup. It is asked about every server-side event's actor, and it fails
closed: an error or a panic drops the event.

```go
observe.SetConsentSource(observe.ConsentFunc(func(ctx context.Context, a observe.Actor) (bool, error) {
	return !optOuts.Has(a.UserID), nil // answer from memory or a cache: it runs on every event
}))
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.