Skip to content

fix(action): late Action/Task/protocol registrations are refused out loud - #27

Merged
Snider merged 1 commit into
mainfrom
fix/refused-registrations-loud
Nov 19, 2026
Merged

Snider merged 1 commit into
mainfrom
fix/refused-registrations-loud

Conversation

@Snider

@Snider Snider commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #26, which fixed Command, Data and Drive. These three drop the same Registry.Set refusal after a locked conclave seals, but couldn't return a Result without breaking callers:

  • c.Action(name, h): callers chain .Description = … onto the result, so the signature stays. A refused registration now logs an error and returns an Action that can't run: Exists() is false and Run returns the refusal. Before, the returned Action ran its handler even though nothing could reach it by name. The new test caught exactly that on the old code.
  • c.Task(name, t): same treatment. Run returns the refusal.
  • API.RegisterProtocol now returns the Result. It's only ever called as a statement (core/go only, estate-wide), so no caller breaks.

Checked:

  • go test -race, go vet, gofmt and all three drift guards are clean.
  • agent, cli, go-process, api and mcp were tested against this branch through a scratch go.work. There are no new failures: agent shows its usual 6 go.work-environment failures, and the other four pass.

🤖 Generated with Claude Code
Co-Authored-By: Virgil virgil@lethean.io

…loud

c.Action and c.Task dropped Registry.Set's refusal after a locked conclave
sealed: the returned *Action still ran its handler although nothing could
reach it by name. Their signatures stay (callers chain .Description), so a
refused registration now logs an error and returns a value that can't run:
Exists is false and Run returns the refusal. API.RegisterProtocol returns
its Result; every caller uses it as a statement, so none breaks.

Co-Authored-By: Virgil <virgil@lethean.io>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Snider
Snider merged commit e3a9301 into main Nov 19, 2026
2 of 3 checks passed
@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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