Skip to content

feat: enable raw fallback for shared Postgres stores in work-server - #1

Closed
MichaelSaucier wants to merge 1 commit into
lovyou-ai:mainfrom
transpara-ai:fix/work-server-fallback
Closed

feat: enable raw fallback for shared Postgres stores in work-server#1
MichaelSaucier wants to merge 1 commit into
lovyou-ai:mainfrom
transpara-ai:fix/work-server-fallback

Conversation

@MichaelSaucier

Copy link
Copy Markdown

Summary

One-line change: sets event.RawFallback before bootstrap in work-server so it can read from a Postgres store shared with other subsystems (hive, agent, etc.) without failing on unknown event types.

Problem

When work-server connects to a Postgres store that contains events from hive, agent, or other subsystems, Head() during bootstrap fails with "unknown event type" because only work.* types are registered.

Solution

event.SetFallbackUnmarshaler(event.RawFallback)

Called before bootstrapGraph(). Depends on lovyou-ai/eventgraph#1.

Test plan

  • go build ./cmd/work-server/ compiles
  • work-server starts against a store containing hive+work events
  • Task dashboard renders correctly at /

🤖 Generated with Claude Code

Sets event.RawFallback before bootstrap so the work-server can read
from a Postgres store shared with hive/agent/membrane subsystems
without failing on unknown event types.

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

Copy link
Copy Markdown
Author

Closing as redundant — superseded by #2, which contains the same commit (5251376) as a cross-fork PR from transpara-ai:main.

@MichaelSaucier
MichaelSaucier deleted the fix/work-server-fallback branch April 4, 2026 19:54
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.

1 participant