Repository navigation
Conversation
|
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-cache | f0530b2 | Jul 11 2026, 09:44 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-playground | f0530b2 | Jul 11 2026, 09:44 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-do | f0530b2 | Jul 11 2026, 09:44 AM |
Scope checkThis PR changes 883 lines across 2 files. Large PRs are harder to review and more likely to be closed without review. If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs. See CONTRIBUTING.md for contribution guidelines. |
There was a problem hiding this comment.
This PR adds a self-contained identity resolver for AT Protocol labelers in the aggregator. The approach fits the existing codebase: it mirrors apps/aggregator/src/did-resolver.ts (constructor-injected cache + resolver, invalidate() keeping other timestamps intact, D1 binding kept separate), and it treats the labelers table rows as the operator-managed allowlist by requiring a pre-existing row before any outbound DID resolution. The validation is appropriately strict: DID shape check, exactly one #atproto_labeler service of type AtprotoLabeler, HTTPS endpoint with no credentials or fragment, exactly one #atproto_label verification method with controller match, valid canonical P-256 multikey, and a round-trip multikey check to catch non-canonical encodings. The cache logic preserves existing operator metadata, fails closed on malformed/unconfigured DIDs, and does not overwrite the cache when resolution fails. Tests cover the unit contract and the D1 binding contract, including negative cases.
I reviewed the changed files and cross-checked did-resolver.ts and the existing migrations/0001_init.sql (labelers schema). I did not run the test suite/linter. No line-level bugs or AGENTS.md violations stood out: SQL is parameterized, internal imports use .js, type-only imports are correct, the component is package-private so no changeset is needed, and there is no admin UI/i18n surface area.
One process caveat I cannot verify from the diff: AGENTS.md requires maintainer-approved Discussion for new features; the author links this to umbrella PR #1909 as the ratified registry labeler spec, which I am treating as acknowledged.
Approve — no findings.
eeec578
into
feat/plugin-registry-labelling-service
What does this PR do?
Implements W4.1 labeler configuration and DID resolution for the plugin registry aggregator:
labelersrows as the bounded configured-source allowlist.#atproto_labelerservice and canonical P-256#atproto_labelverification method.Part of umbrella PR #1909. Subscription ingestion remains scoped to W4.2.
Type of change
Checklist
pnpm typecheckpassespnpm lintpassespnpm testpasses (targeted and full aggregator suites)pnpm formathas been runAI-generated code disclosure
Screenshots / test output
Non-visual Worker change. Verified with:
pnpm buildpnpm --filter @emdash-cms/aggregator buildpnpm typecheckpnpm --filter @emdash-cms/aggregator typecheckpnpm lint: 0 warnings and 0 errors across 2,080 filespnpm --filter @emdash-cms/aggregator test: 216 testspnpm --filter @emdash-cms/aggregator exec vitest run test/labeler-resolver.test.ts: 30 testsgit diff --check