Skip to content

Subscribe to a mediator address (ADR 0012) - #135

Merged
AdamSpitz merged 3 commits into
devfrom
feature/mediator-is-an-address
Aug 21, 2026
Merged

Subscribe to a mediator address (ADR 0012)#135
AdamSpitz merged 3 commits into
devfrom
feature/mediator-is-an-address

Conversation

@AdamSpitz

Copy link
Copy Markdown
Owner

Summary

Listeners opt into a mediator Ethereum address, whether a human or an LLM process is authoring (ADR 0012).

  • CauseStarter cluster pages and /bridge/triple opt in without a serviceUrl.
  • Attached-service cards still require a live URL for GET /anchors.
  • bridge-creator can publish the same cluster documents on a tick when parent_causes is set.

Review notes

Pre-PR review found two bugs, both fixed in this branch:

  • Dedup is saved only after cluster write succeeds.
  • LLM rosters include bridgeCluster extras so CauseStarter can label modified/bridge causes.

Test plan

  • Open a published cluster, opt in, confirm trusted nudgers store the address with no service URL.
  • Confirm a cause mediator card without serviceUrl still cannot opt in.
  • Smoke /bridge/triple publish path locally (statements + parent→modified nudges).
  • Optional: configure parent_causes on a local bridge-creator and confirm /bridge/:owner/:slug loads.

Human clusters and statement triples opt in without a service URL. LLM ticks
can publish the same cluster documents when parent causes are configured
(ADR 0012).
Save publication dedup only after cluster write succeeds, and include
bridgeCluster extras so CauseStarter can label modified and bridge causes.
Strip trailing hyphens after slice, uniquify colliding parent slugs, and
build cause-mediator deep links only from a complete service identity.

@AdamSpitz AdamSpitz left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Review receipt.

Reviewed ADR 0012 mediator-address opt-in. Fixed slugify trailing-hyphen truncation and uniquify colliding parent slugs; cause-mediator deep links now require a live service URL. Follow-up: CauseStarter normalizeSlug has the same slice-then-hyphen issue (listed in causestarter/TODO.md).

Reviewed-with: grok
Reviewed-files: 36
Reviewed-commit: 5ab04b5

@AdamSpitz
AdamSpitz merged commit 687d942 into dev Aug 21, 2026
3 checks passed
@AdamSpitz
AdamSpitz deleted the feature/mediator-is-an-address branch August 21, 2026 00:43
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