A community based topic aggregation platform built on atproto

test(lexicon): clean up obsolete test data files

Remove test data files that are no longer valid after enum → knownValues changes:

**Removed obsolete enum validation tests:**
- post/post-invalid-enum-type.json - knownValues allow unknown types
- community/moderator-invalid-permissions.json - knownValues allow extension
- interaction/share-valid*.json (2 files) - interaction lexicons removed
- interaction/tag-*.json (3 files) - interaction lexicons removed

**Fixed invalid test data:**
- moderation/tribunal-vote-valid.json - corrected invalid AT-URI format
Changed: at://$1/... → at://did:plc:testuser123/...

**Rationale:**
With knownValues (vs strict enums), the lexicon validator accepts unknown
values for extensibility. These test files expected rejection of unknown
enum values, which no longer applies under the knownValues pattern.

**Validation Status:** All 58 lexicons validated successfully
- 15/15 valid test files passing
- 11/11 invalid test files correctly rejected
- 13 record types with test coverage

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

-9
tests/lexicon-test-data/community/moderator-invalid-permissions.json
···
-
{
-
"$type": "social.coves.community.moderator",
-
"user": "did:plc:moderator123",
-
"community": "did:plc:community123",
-
"role": "moderator",
-
"permissions": ["remove_posts", "invalid-permission"],
-
"createdAt": "2024-06-15T10:00:00Z",
-
"createdBy": "did:plc:owner123"
-
}
···
-5
tests/lexicon-test-data/interaction/share-valid-no-community.json
···
-
{
-
"$type": "social.coves.interaction.share",
-
"subject": "at://did:plc:originalauthor/social.coves.post.record/3k7a3dmb5bk2c",
-
"createdAt": "2025-01-09T17:00:00Z"
-
}
···
-6
tests/lexicon-test-data/interaction/share-valid.json
···
-
{
-
"$type": "social.coves.interaction.share",
-
"subject": "at://did:plc:originalauthor/social.coves.post.record/3k7a3dmb5bk2c",
-
"community": "did:plc:targetcommunity",
-
"createdAt": "2025-01-09T17:00:00Z"
-
}
···
-6
tests/lexicon-test-data/interaction/tag-invalid-empty.json
···
-
{
-
"$type": "social.coves.interaction.tag",
-
"subject": "at://did:plc:author123/social.coves.post.record/3k7a3dmb5bk2c",
-
"tag": "",
-
"createdAt": "2025-01-09T17:15:00Z"
-
}
···
-6
tests/lexicon-test-data/interaction/tag-valid-custom.json
···
-
{
-
"$type": "social.coves.interaction.tag",
-
"subject": "at://did:plc:author123/social.coves.post.record/3k7a3dmb5bk2c",
-
"tag": "beginner-friendly",
-
"createdAt": "2025-01-09T17:15:00Z"
-
}
···
-6
tests/lexicon-test-data/interaction/tag-valid-known.json
···
-
{
-
"$type": "social.coves.interaction.tag",
-
"subject": "at://did:plc:author123/social.coves.post.record/3k7a3dmb5bk2c",
-
"tag": "nsfw",
-
"createdAt": "2025-01-09T17:15:00Z"
-
}
···
+1 -1
tests/lexicon-test-data/moderation/tribunal-vote-valid.json
···
{
"$type": "social.coves.moderation.tribunalVote",
"tribunal": "at://did:plc:community123/social.coves.moderation.tribunal/3k7a3dmb5bk2c",
-
"subject": "at://$1/social.coves.community.post/3k7a2clb4bj2b",
"decision": "remove",
"reasoning": "The moderator's action was justified based on clear violation of Rule 2 (No Spam). The user posted the same promotional content across multiple communities within a short timeframe.",
"precedents": [
···
{
"$type": "social.coves.moderation.tribunalVote",
"tribunal": "at://did:plc:community123/social.coves.moderation.tribunal/3k7a3dmb5bk2c",
+
"subject": "at://did:plc:testuser123/social.coves.community.post/3k7a2clb4bj2b",
"decision": "remove",
"reasoning": "The moderator's action was justified based on clear violation of Rule 2 (No Spam). The user posted the same promotional content across multiple communities within a short timeframe.",
"precedents": [
-11
tests/lexicon-test-data/post/post-invalid-enum-type.json
···
-
{
-
"$type": "social.coves.community.post",
-
"community": "did:plc:programming123",
-
"author": "did:plc:testauthor123",
-
"postType": "invalid-type",
-
"title": "This has an invalid post type",
-
"content": "The postType field is not defined in the schema and should be rejected",
-
"tags": [],
-
"langs": ["en"],
-
"createdAt": "2025-01-09T14:30:00Z"
-
}
···