Skip to content

fix(#223): Twilio SMS surface inert BY CONSTRUCTION — labelled disable, not credential-absence - #98

Merged
supmo668 merged 1 commit into
mainfrom
mangyinm/issue223-twilio-constructive-disable
Aug 24, 2026
Merged

supmo668 merged 1 commit into
mainfrom
mangyinm/issue223-twilio-constructive-disable

Conversation

@supmo668

Copy link
Copy Markdown

Inert by construction, not by absence

The SMS ruling took a capability out of scope. It did not remove the code: B-Twilio-1 is landed (PR #68, extensions/twilio in-tree). So the ruling orphaned a shipped transport surface — and that surface was "inert on staging only because no channel credentials exist."

Inert-by-accident activates the moment anyone provisions credentials for an unrelated reason. That is the dormant-branch pattern: safe only because its input is currently impossible.

The ruling, executed literally

  • register() refuses before ANY wiring unless pluginConfig.enableDespiteSmsOutOfScopeRuling is set. Not a runtime check after setup — a refusal ahead of it.
  • The basis lives AT the gate: the ruling verbatim, plus the structural death — SMS is unpairable because pairing binds channel="sms" via an allowlist the principal declined to fund, so an SMS onboarding path cannot authenticate regardless of preference. Structural death outranks preference and stops the question reopening on taste.
  • The flag name is the acknowledgement. Enabling requires literally writing DespiteSmsOutOfScopeRuling into config. You cannot turn this on without stating what you are overriding.

The red arm — the guard observed refusing a real credential

Full valid Twilio credentials provisioned in the test environment, register() driven: zero channels, zero routes, the labelled refusal.

That is the arm that matters, and it is the one a labelled disable normally never gets. A disable that has never refused a live credential is a claim; one that has is a control. It exercises exactly the accident it exists to prevent — a credential landing for an unrelated reason.

Not deleted, deliberately

Retirement is a larger call than a disable, and the code may be worth something if the ruling ever reverses. An explicit, labelled disable is reversible and honest; deletion is neither.

Gate evidence

Receipt …qgr-pr-prep-20260824-0650-c17375b verified. 93/93 twilio, full suite green, tsgo 0, formatting clean. Branched off origin/main, stacking on everything landed.

… CONSTRUCTION — [PRINCIPAL-RULED 2026-08-21] labeled at the gate; RED-ARM: full credentials provisioned, surface still refuses

Executes the CTO's orphan disposition (openclaw#7057): 'inert on staging only
because no channel credentials exist' was inert BY ACCIDENT — provisioning
Twilio creds for any unrelated reason would have activated an unowned SMS
transport. Now register() refuses BEFORE any wiring unless
pluginConfig.enableDespiteSmsOutOfScopeRuling === true (strict; truthy
strings/1 stay disabled — fail-closed on sloppy config). The flag NAME is
the acknowledgement: enabling requires writing the ruling into config.

The basis lives AT the gate, auditable: the ruling verbatim; the
structural death (SMS pairing binds channel="sms" via A7_CHANNELS, which
the principal declined to fund — an enabled transport still could not
authenticate anyone), so the question cannot reopen on taste; and the
keep-don't-delete reasoning (labeled disable is reversible and honest).
Refusal is LOUD with the ruling label — a silent disable reads as
nothing-to-report.

RED ARM per the issue spec, observed firing: full valid Twilio env
provisioned, register() driven → zero channels, zero routes, the labeled
refusal logged. Gate-removal mutant → 2 tests red. Override arm proves
the disable is the flag, not breakage (channel+route register, with a
this-is-against-the-ruling WARN). rails.test.ts's wiring contract
preserved UNDER the flag, retitled to say so.

93/93 twilio tests, full suite 914 files / 8628 green, tsgo 0, oxfmt
clean.

Generated-With: Claude Code
Co-Authored-By: openclaw <[email protected]>
Co-Authored-By: Claude <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 50 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 3de27ef8-2f22-47f5-8aca-a76670451341

📥 Commits

Reviewing files that changed from the base of the PR and between db35dc9 and 4ed54b6.

📒 Files selected for processing (3)
  • extensions/twilio/src/index.test.ts
  • extensions/twilio/src/index.ts
  • extensions/twilio/src/rails.test.ts

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

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

⚠️ Formal models conformance drift detected

The formal models extracted constants (generated/*) do not match this openclaw PR.

This check is informational (not blocking merges yet).
See the formal-models-conformance-drift artifact for the diff.

If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there.

@supmo668
supmo668 merged commit 560caf7 into main Aug 24, 2026
27 checks passed
@supmo668
supmo668 deleted the mangyinm/issue223-twilio-constructive-disable branch August 24, 2026 14:08
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