feat: recorded import grants, unclaimed creators and claiming #15

Merged
dhkatz merged 1 commits from feat/recorded-grants into main 2026-11-07 22:49:06 +00:00
Owner

Phase 4b (docs/imports.md "Unclaimed creators and claiming"): admins record consent for IMVU creators who won't make an account. The creator can prove it with a tagline code, and claim everything once they join.

Recording (console → Imports; import:grant-on-behalf, which admins and moderators hold and which needs two-factor sign-in)

  • The form takes the IMVU creator (username or ID), the catalog, the scope (whole shop with exclusions, or listed products), listed or unlisted, and the evidence (required: where and when they agreed).
  • An IMVU account linked to someone on T5DE is refused (409 linked): those creators grant themselves.
  • The grant belongs to an unclaimed creator: a placeholder person without credentials.
    • Its username is imvu_<IMVU ID>; signing up with the imvu_ prefix is now refused.
    • Its display name is the IMVU name, and its email ends in .invalid; it has no password.
  • The grant is pending until the catalog's team accepts it, like any other.
  • Proof without an account: the console makes a code (t5de-XXXX-XXXX) for the creator's IMVU tagline, then checks it. The grant then shows as "proven", on the console and on the catalog's Imports page.
  • Until the creator claims it, admins can change what it covers and withdraw it. The page also lists the most asked-for IMVU creators, with names from cached product info.

Claiming

  • Linking or unlinking the IMVU account doesn't suspend an unclaimed creator's grants, since they rest on the recorded consent. Before this, suspendFor would have ended them.
  • Whoever links the account sees "Your IMVU Products on T5DE" on their account page. Claiming moves the products (and their revisions' uploader) and the grants to them, and deletes the placeholder. From then on they manage the grants as their own, and admins no longer can.

Checks

  • Tests: a new API test covers recording (permissions, evidence, linked accounts, duplicates), acceptance, proof (no code, wrong tagline, right tagline), an import landing on the placeholder, admin changes, the reserved username, claiming, and the audit log. One console test's sections now include "imports". All 61 tests pass, and type checks pass.
  • Scratch hub: as an admin with two-factor sign-in, through the console forms:
    • recorded a grant for a real IMVU creator (looked up on IMVU)
    • made a proof code; checking it against their real tagline correctly said the code wasn't there
    • the catalog's owner accepted it
    • Claiming needs someone to link that IMVU account, so it was only tested in the API test.

Not built: attaching a screenshot to the evidence.

🤖 Generated with Claude Code

Phase 4b (docs/imports.md "Unclaimed creators and claiming"): admins record consent for IMVU creators who won't make an account. The creator can prove it with a tagline code, and claim everything once they join. **Recording** (console → Imports; `import:grant-on-behalf`, which admins and moderators hold and which needs two-factor sign-in) - The form takes the IMVU creator (username or ID), the catalog, the scope (whole shop with exclusions, or listed products), listed or unlisted, and the **evidence** (required: where and when they agreed). - An IMVU account linked to someone on T5DE is refused (409 `linked`): those creators grant themselves. - The grant belongs to an **unclaimed creator**: a placeholder person without credentials. - Its username is `imvu_<IMVU ID>`; signing up with the `imvu_` prefix is now refused. - Its display name is the IMVU name, and its email ends in `.invalid`; it has no password. - The grant is pending until the catalog's team accepts it, like any other. - **Proof without an account:** the console makes a code (`t5de-XXXX-XXXX`) for the creator's IMVU tagline, then checks it. The grant then shows as "proven", on the console and on the catalog's Imports page. - Until the creator claims it, admins can change what it covers and withdraw it. The page also lists the most asked-for IMVU creators, with names from cached product info. **Claiming** - Linking or unlinking the IMVU account doesn't suspend an unclaimed creator's grants, since they rest on the recorded consent. Before this, `suspendFor` would have ended them. - Whoever links the account sees "Your IMVU Products on T5DE" on their account page. Claiming moves the products (and their revisions' uploader) and the grants to them, and deletes the placeholder. From then on they manage the grants as their own, and admins no longer can. **Checks** - **Tests:** a new API test covers recording (permissions, evidence, linked accounts, duplicates), acceptance, proof (no code, wrong tagline, right tagline), an import landing on the placeholder, admin changes, the reserved username, claiming, and the audit log. One console test's sections now include "imports". All 61 tests pass, and type checks pass. - **Scratch hub:** as an admin with two-factor sign-in, through the console forms: - recorded a grant for a real IMVU creator (looked up on IMVU) - made a proof code; checking it against their real tagline correctly said the code wasn't there - the catalog's owner accepted it - Claiming needs someone to link that IMVU account, so it was only tested in the API test. Not built: attaching a screenshot to the evidence. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
dhkatz added 1 commit 2026-11-07 19:12:42 +00:00
feat: recorded import grants, unclaimed creators and claiming
Pull request / title (pull_request) Successful in 1s
CI / test (pull_request) Successful in 1m19s
CI / image (apps/api/Dockerfile, t5de-hub-api) (pull_request) Skipped
CI / image (apps/web/Dockerfile, t5de-hub-web) (pull_request) Skipped
64b9658bad
Admins record consent for IMVU creators without an account; their products
belong to a placeholder (imvu_<ID>) until they link the account and claim
them. Proof by a tagline code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
dhkatz merged commit 8f6dacba10 into main 2026-11-07 22:49:06 +00:00
dhkatz deleted branch feat/recorded-grants 2026-11-07 22:49:06 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: t5de/t5de-hub#15