Skip to content

[#846] Display "{human}'s AI Writer" via ERC-8004 owner + FID#851

Merged
realproject7 merged 2 commits intomainfrom
task/846-human-ai-writer-display
Apr 5, 2026
Merged

[#846] Display "{human}'s AI Writer" via ERC-8004 owner + FID#851
realproject7 merged 2 commits intomainfrom
task/846-human-ai-writer-display

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Added getAgentOwnerProfile server action: looks up agent's owner Farcaster profile via DB
  • Updated WriterIdentity (server) and WriterIdentityClient to show "{owner}'s AI Writer" for ERC-8004 agents
  • Story cards, story detail, and plot detail pages now pass writerType to identity components
  • Profile page shows "Operated by" section with owner's Farcaster avatar, name, and "ERC-8004 Verified" badge
  • Falls back to regular Farcaster profile or truncated address when owner has no FID
  • Version bumped to 0.1.18

Test plan

  • Story cards show "{owner_name}'s AI Writer" for agent-written stories
  • Story detail header shows "{owner_name}'s AI Writer"
  • Profile page shows "Operated by" section with owner info for agents
  • "ERC-8004 Verified" badge displayed next to owner
  • Falls back to regular display when owner has no Farcaster profile
  • Human-written stories still show normal Farcaster identity
  • Truncated address fallback works when no profiles available

Fixes #846

🤖 Generated with Claude Code

Add getAgentOwnerProfile server action that looks up an agent writer's
owner Farcaster profile. Update WriterIdentity (server) and
WriterIdentityClient to show "{owner}'s AI Writer" when the writer is
an ERC-8004 agent with an owner who has a Farcaster profile.

Update StoryCard, story detail, and plot detail pages to pass
writerType to identity components. Add "Operated by" section to
profile page showing owner's Farcaster avatar + name with
"ERC-8004 Verified" badge.

Falls back to regular Farcaster profile or truncated address when
owner has no FID. Bump to v0.1.18.

Fixes #846

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 5, 2026 7:23am

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES

Summary

The owner-linked identity path is in place, but the fallback behavior still does not match issue #846. When an agent owner has no FID, the UI falls back to the writer wallet's own Farcaster/address display instead of a plain agent label, so agent-written stories can still render as a bare wallet or regular profile rather than an AI writer identity.

Findings

  • [high] The new writer-identity components only render the human-linked label when getAgentOwnerProfile() succeeds. If the writer is an agent but the owner has no FID, both components fall back to the writer wallet's own profile/address (@username or truncated wallet) instead of the required plain agent fallback such as AI Writer #<agentId>. That misses the explicit fallback behavior in issue #846 and leaves agent-written stories mislabeled on cards and detail pages.
    • File: src/components/WriterIdentity.tsx:31
    • Suggestion: keep an agent fallback path when writerType === 1, using the agent row's agent_id / agent_name even when the owner profile lookup returns null, rather than falling through to the writer wallet identity.

Decision

Requesting changes because the current head still does not satisfy the required agent fallback behavior when the owner lacks a Farcaster profile.

When a writer is an agent but the owner has no Farcaster profile,
show "AI Writer #{agentId}" instead of falling through to the
agent wallet's own Farcaster identity. getAgentOwnerProfile now
returns agent info even without owner FID (ownerProfile: null).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The latest revision resolves the remaining fallback issue in the writer identity flow. Agent writers now show the owner-linked label when an owner Farcaster profile exists, and they correctly fall back to a plain AI Writer #<id> label when the owner has no FID.

Findings

  • None.

Decision

Approving. The owner-based identity display, profile-page owner section, and agent fallback behavior now align with issue #846.

@realproject7 realproject7 merged commit 73f458b into main Apr 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[#841] Display "{human}'s AI Writer" via ERC-8004 owner + FID lookup

2 participants