Skip to content

feat(router): configure generic scope matching - #19

Merged
first-assist merged 3 commits into
mainfrom
agent/scope-matcher
Aug 22, 2026
Merged

first-assist merged 3 commits into
mainfrom
agent/scope-matcher

Conversation

@first-assist

@first-assist first-assist commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a strict, generic scopeMatcher file section while preserving exact matching when omitted
  • expose hierarchical separator, wildcard, universal-wildcard, superScopes, exactOnlyScopes, and exactOnlyScopePatterns options through the optional auth-agql adapter
  • apply one configured matcher to fixed and rendered requirements
  • align the direct-host coexistence fixture and current bridge guidance with agql-auth 0.16 so consumers resolve one auth type universe

Consumer neutrality

This serves consumers beyond GEMA by letting any router deployment select exact compatibility or its own hierarchical authorization policy without consumer-specific code. No consumer identifiers or policies are embedded upstream.

Before opening and updating this PR, the complete diff was scanned case-insensitively for gema and separately against GEMA's catalogue scope strings; both scans returned zero matches.

Verification

  • no-default-features tests: 59 unit + 1 binary smoke
  • auth-agql tests: 60 unit + 1 binary smoke
  • warnings-denied clippy in both modes
  • warnings/missing-docs-denied rustdoc with auth-agql
  • documentation, generated inventory, package release-policy, and diff checks
  • direct-host coexistence fixture pin and lock aligned for the required single auth type universe

Documentation impact

  • Documentation updated
  • No documentation impact

Updated the router README, configuration reference, example, changelog, and migration guide; the current ORM bridge guide, workspace inventory, and package handoff notes now describe the aligned external auth revision. No descriptor, GraphQL schema, token, database, or stored-data migration is required.

The router package is bumped to 0.2.0. This PR depends on Dastari/agql-auth#3 and temporarily pins its reviewed head revision; that pin will be replaced with the merged full revision before this PR is merged.

@Dastari
Dastari force-pushed the agent/scope-matcher branch from fdf5c8e to 0e47a37 Compare August 22, 2026 03:34
@Dastari
Dastari force-pushed the agent/scope-matcher branch from 0e47a37 to ff88dad Compare August 22, 2026 04:07
@first-assist
first-assist merged commit 7d18375 into main Aug 22, 2026
10 checks passed
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