Skip to content

[TAG-01] Store environment-owned manual thread tags #11

Open

Description

@jdbencardinop

ID: TAG-01 (TAG-001). Priority: P1. Blocked by: #2. Backlog: #1.

Scope

Environment-owned tag definitions and thread assignments using ordinary
command -> event -> projector flow, bounded queries/deltas and optimistic
revisions. Definitions/assignments use opaque IDs; the environment comes from
the authenticated target. Manual user and derived tws namespaces stay
distinct even when labels are identical.

Decisions and acceptance criteria

  • Define/create/update/archive/restore and manual assign/remove are idempotent
    through command receipts. Stale revisions return a typed conflict/latest
    authorized object. Duplicate successful commands are not replayed as errors.
  • Normalize keys deterministically (NFKC, trim, Unicode case-fold), never host
    locale. Preserve display capitalization. Reuse an adopted stable helper when
    equivalent; otherwise specify the exact shared normalization once.
  • Uniqueness includes environment and namespace. An archived definition
    reserves its key; rename collision never auto-merges. Rename does not change
    IDs or detach assignments.
  • Archive preserves history/assignments, excludes them from default active
    filters and prevents new assignment until restore. Restore re-exposes the
    preserved relationships. Remove is a separate reversible assignment event.
  • Thread deletion removes active assignment visibility without corrupting tag
    definitions; replay follows existing thread-deletion semantics.
  • Only manual commands can mutate manual definitions. Client requests to forge
    TWS provenance or assign derived tags are rejected. Hidden derived tags are
    a presentation preference, not a server mutation.
  • Define row/byte/text/cardinality limits explicitly; queries are indexed and
    paginated and summaries compact. Provenance is fetched lazily. Large filter
    results cannot require loading thread histories.
  • Use the same gap-free bootstrap/replay/reset invariants specified by ATT-03
    for tag subscriptions, adapting existing stable generic helpers when useful.
    TAG-01 does not depend on the attention feature's implementation or schema.
  • Focused migration/replay tests cover collisions across namespace/environment,
    rename/archive/restore, concurrent mutations, duplicates, unauthorized
    threads, filtering, deletion and bounded large datasets.

Coverage and non-goals

Server/contracts/shared normalization for web/desktop/mobile and every provider.
Preserve all connection modes. No UI, global definitions, turn tags, content
inference, inferred routing, TWS mutation or automatic same-label merging.

Activity

  1. added
    fork-backlog
    status:blocked
    priority:P1
    on Sep 14, 2026
  2. added
    status:ready
    and removed
    status:blocked
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fork-backlogpriority:P1status:ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions