Skip to content

Fail closed for unsupported browser CUG modes - #23

Merged
RobLe3 merged 1 commit into
mainfrom
feat/cug-fail-closed-refusal
Aug 21, 2026
Merged

Fail closed for unsupported browser CUG modes#23
RobLe3 merged 1 commit into
mainfrom
feat/cug-fail-closed-refusal

Conversation

@RobLe3

@RobLe3 RobLe3 commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Summary

Resolves the safe-disposition part of #22 without claiming browser CUG support.

  • adds an explicit browser operating-mode type;
  • preserves public as the compatibility default;
  • rejects private, federated_private, local_only, and custom during consumer/provider construction;
  • uses the stable bounded reason restricted_profile_unsupported;
  • proves refusal occurs before discovery, registration, or relay traffic;
  • documents that the package does not persist membership credentials or downgrade private requests to the public directory.

This is intentionally a refusal boundary. A future full browser CUG design still requires a separately reviewed WebCrypto and credential-lifecycle model.

Evidence

  • npm run typecheck — passed
  • npm test — 57 passed
  • npm run build — passed
  • npm run package:audit — passed
  • git diff --check — passed

Sentrux has no committed baseline or rules in this standalone repository, so no baseline was created merely to make a gate pass.

@RobLe3
RobLe3 merged commit f0b0862 into main Aug 21, 2026
1 check passed
@RobLe3
RobLe3 deleted the feat/cug-fail-closed-refusal branch August 21, 2026 21:42
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