feat: capability extensions — evaluatePermissions, MCP verdict tools, pagination & rerank docs#12
Merged
Conversation
No changeset: documentation only.
…nly licenseVersion, shared INTENTS, label-aware note, MCP path tests
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.
Summary
Wave 4 (final wave) of the hardening plan:
evaluatePermissions(core, minor): the strict-deny gate is now a programmable public API —evaluatePermissions(rights, required, ctx?, opts?)withPermissionKey/EvaluateOptions; the fourevaluateUseintents are presets over it. Behavior-identical, proven by the untouched existing test suite; historical verdict wording preserved via a preset label and pinned by new tests.evaluate_useandbuild_attribution— inputs carry the rights fields, so agents can re-ask "may I use this / how do I credit it" for any prior result without server-side sessions. Plus unifiedREFKIT_<PROVIDER>_KEYenv names (all legacy names still honored, tested both ways).controls.pageprovider-local pagination semantics + dedupe-by-canonicalUrl "load more" recipe (JSDoc + README);docs/examples/semantic-rerank.mdrunnable BYO-embedding reranker cookbook.Test Plan
pnpm -r typecheck— 20/20 cleanpnpm test:run— 305/305 (evaluate-use suite unchanged = behavior oracle; +13 new tests incl. wording pins, MCP tool tests, env-alias tests)