Add CL canonical namespace search and tighten commandlayer-namespace claim validation#288
Merged
GsCommand merged 1 commit intoMay 22, 2026
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
public/claim.htmlto introduce aTRUST_VERIFICATION_MAP/TRUST_PARENTSsource, canonical autocomplete (Type a letter), selected canonical namespace chips with remove controls, and tenant-label validation (/^[a-z0-9-]{3,32}$/with no leading/trailing hyphen or.eth).signagent.eth…verifyagent.eth), limited selections to 10, and implementedgetEffectiveClVerbs()to derive verbs from selected canonical parents for preview, package, and submission payloads.ownandsinglemodes as package-only (no submit button / no POST to the CL claim endpoint) and added small safety copy clarifying CommandLayer-subnames do not grant ownership of the canonical parent.api/claim/commandlayer-namespace.jsto requireactivationMode === 'cl', strict tenant label rules,packId === 'trust', capability → canonical parent mapping from the allowed map,agent.ens === \\${tenant}.${canonicalParent}\``,skill === 'trust-verification.{capability}', and `skillFamily === 'trust-verification'`.tests/api-claim-commandlayer-namespace.test.jswith cases covering rejectedactivationModevalues (own,single), tenant.eth, tenant leading/trailing hyphen, unsupported canonical parent, mismatched capability/canonicalParent, skill mismatch, and too-many capabilities.Testing
npm testin repo root and all tests passed (53tests passed).npm installfailed in this environment due to registry access (npm 403 for@neondatabase/serverless) so a full local install was not possible here.npm run buildis not defined in this repo (reported as missing).cd examples/webhook-auto-verify && npm install && npm run checkand the example checks completed successfully.Codex Task