Skip to content

feat(tags): reserved system tags, per-tag permission, and tags in the export #805

Closed

Description

@athvin

Spec unit 1.29 (Tags) · parent #516

Filed under E8 because the epic claims this unit, and because the remaining work is review-surface work rather than matcher work.

What exists — the service, and the epic is right about this

/v1/orgs/{org}/tags, tags/{tag_id}, and tags/{tag_id}/apply|unapply|subjects, covered by rust/crates/er-server/tests/pg_tags.rs.

This unit is the epic's own correction case: #516 originally said the tag service was missing, which was wrong — a stale design doc understated it. Treat the list below as the residue, not the feature.

The gap

  • Reserved tags. The spec reserves merge, manual_merge, unmatch, link, split as system-written tags that AI and bulk actions set. Needs checking whether the tag service distinguishes system from user tags at all — if it does not, a user can create a tag that collides with a system one.
  • Role-restricted assignment. The spec's criterion is that a role denied a tag cannot apply it. Our authz is per-route; per-tag permission is finer than that.
  • Export. Tags must appear in the export alongside the group.

Out of scope here: "tags appear instantly in Salesforce" and the Lightning component — those belong with the AppExchange surface (#602), not this epic.

Done when

  • system-reserved tag names distinguished from user tags, and a user cannot create or delete a reserved one
  • per-tag assignment permission, with a denied role proven unable to apply (and a test that the denial is a 403 on role, not a 404 — the house rule er-server-control-plane states)
  • tags present in the export

Split out of the parent epic on 2026-11-07 by reading the spec's pillar table against this repo, file by file. Every "what exists" line below was grepped, not inferred — the parent epic's own body records a coverage figure that was once wrong because a stale design doc was trusted. Spec unit numbers refer to the DataGroomr Feature Parity Spec pillar tables. Estimates are mine and independent of the epic's total.

Activity

  1. added
    mvp
    docs-backlog
    on Nov 7, 2026
  2. self-assigned this
    on Nov 8, 2026
  3. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #875 (draft). Closing that PR releases the claim.

  4. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Scope note from the implementation (PR #875): the spec's tags in the export alongside the group maps to the one export this repo has — the segment CSV of golden records, which now carries a tags column. A groups-shaped export (duplicate groups with their members and tags) is E11's territory (#521), not this unit. The apply_min_role management surface (PATCH + UI picker) is filed as #876.

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

Metadata

Metadata

Assignees

Labels

docs-backlogmvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions